Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006011 [Resin] major always 06-14-16 11:01 11-11-16 15:13
Reporter rotty3000 View Status public  
Assigned To ferg
Priority normal Resolution no change required  
Status closed   Product Version 4.0.47
Summary 0006011: JSP Compiler ignores static input to tag attribute defined as rtexprvalue=true
Description Hello,

I'm experiencing a very strange issue where on certain attributes (not all of them) the JSP compiler doesn't generate set methods when a tag uses a static value for an attribute defined as being rtexprvalue=true

e.g. suppose my tag "myTag" has:
        <attribute>
            <name>name</name>
            <required>true</required>
            <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
            <name>type</name>
            <required>false</required>
            <rtexprvalue>true</rtexprvalue>
        </attribute>

and suppose the tag is used like so:
<foo:myTag name="Ray" type="hidden" />

the JSP compiler produces java code like:

_jsp_MyTag_2 = _jsp_state.get_jsp_MyTag_2(pageContext, _jsp_parent_tag);
_jsp_MyTag_2.setName("Ray");
int _jspEval16 = _jsp_MyTag_2.doStartTag();

Note the type attribute is not even generated into the java output.

Is there some sort of flag to the JSP compiler to work around this issue? Or what combination of state causes the JSP compiler to omit an attribute from being emitted.

Thx!
Additional Information
Attached Files

- Relationships

- Notes
(0006724)
ferg
11-11-16 15:13

Tag attributes remain set when they are reused. This means that the second call to the same tag does not need to set the attribute.

  <foo:myTag name="First" type="hidden"/>
  <foo:myTag name="Ray" type="hidden"/>

The second tag does not call setType because it was already called for the first instance.

The tag implementation must not clear attributes at the end of the call.

jsp/1o71
 

- Issue History
Date Modified Username Field Change
06-14-16 11:01 rotty3000 New Issue
11-11-16 15:13 ferg Note Added: 0006724
11-11-16 15:13 ferg Assigned To  => ferg
11-11-16 15:13 ferg Status new => closed
11-11-16 15:13 ferg Resolution open => no change required


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker