Anonymous | Login | Signup for a new account | 04-02-2025 03:51 PDT |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ 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 | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | Product Version | 3.1.2 | |||||
Product Build | |||||||||
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 [^] | ||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |