[ 
https://issues.apache.org/struts/browse/WW-2814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44774#action_44774
 ] 

Gabriel Belingueres commented on WW-2814:
-----------------------------------------

For the "name inconsistency" the same rasoning applies. However in this case, 
the Form component doesn't provide any getName() method (see the UIBean class 
where the name is defined), so when you want to find a name (using 
stack.findValue('name')) the first object in the stack (which is the Form 
component) is skipped, and the stack is further explored, finding somewhere 
else the getName() method an calling that one.

Nevertheless, why UIBean doesn't have a getter for the name, I don't know.

> Can't access an "id" named property in template
> -----------------------------------------------
>
>                 Key: WW-2814
>                 URL: https://issues.apache.org/struts/browse/WW-2814
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.11.2, 2.1.2
>            Reporter: S. Grünewald
>
> You can't access a property "id" in a new/modified template (e.g. form.ftl)  
> via ${id} or ${Request.id} or ${Request['id']}. 
> You can access other properties e.g. ${name} and even id but only if you use 
> an other getter e.g. 
> int getMyId(){
>    return getId();
> } 
> then ${myId} works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to