Anonymous | Login | Signup for a new account | 12-17-2024 11:32 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0002029 | [Resin] | minor | always | 09-26-07 07:12 | 09-26-07 07:19 | ||||
Reporter | sam | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | urgent | Resolution | no change required | ||||||
Status | closed | Product Version | 3.1.2 | ||||||
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 --- --- |
||||||||
Additional Information | https://www.seasar.org/svn/s2struts/trunk/s2struts/src/main/java/org/seasar/struts/taglib/html/LinkTag.java [^] | ||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |