Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2029 | minor | always | 09-26-07 07:12 | 09-26-07 07:19 | |
|
|||||
Reporter: | sam | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | urgent | OS Version: | |||
Status: | closed | Product Version: | 3.1.2 | ||
Product Build: | Resolution: | no change required | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0002029: attribute setter is not called for tag if the value has not changed | ||||
Description: |
(rep by T Fukuda) The s2struts package contains a LinkTag that changes to value of an internal member variable that corresponds to an attribute within the doStartTag. Resin does not call the setter unless that value has changed. For example, the following does not work: public class SampleTag extends BodyTagSupport { private String name = null; public void setName(String name) { this.name = name; } public int doStartTag() throws JspException { try { JspWriter writer = pageContext.getOut(); writer.write(this.name); } catch (IOException e) { throw new JspException(e); } this.name = "---"; return EVAL_BODY_BUFFERED; } } <% for (int i = 0; i < 3; i++) { %> <f:bar name="<%= "value" + i %>" /> <% } %> <% for (int i = 0; i < 3; i++) { %> <f:bar name="aaa" /> <% } %> value0 value1 value2 aaa --- --- |
||||
Steps To Reproduce: | |||||
Additional Information: | https://www.seasar.org/svn/s2struts/trunk/s2struts/src/main/java/org/seasar/struts/taglib/html/LinkTag.java [^] | ||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|