myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson (JIRA)" <...@myfaces.apache.org>
Subject [jira] Issue Comment Edited: (TRINIDAD-1514) <tr:iterator> does not add index to id
Date Mon, 22 Jun 2009 16:10:07 GMT

    [ https://issues.apache.org/jira/browse/TRINIDAD-1514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722658#action_12722658
] 

Andrew Robinson edited comment on TRINIDAD-1514 at 6/22/09 9:08 AM:
--------------------------------------------------------------------

Okay, I was able to reproduce the problem. The links are not getting the correct client ID
inside the include with Trinidad 1.2.11.

I'll upload the test case.

      was (Author: arobinson74):
    Okay, I was able to reproduce the problem. The links are getting the correct javascript
but not the correct client ID inside the include with Trinidad 1.2.11.

I'll upload the test case.
  
> <tr:iterator> does not add index to id
> --------------------------------------
>
>                 Key: TRINIDAD-1514
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1514
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions:  1.2.12-core
>         Environment: IE7, Trinidad 1.2.11, JSF ri 1.2_12
>            Reporter: Dave
>         Attachments: TRINIDAD-1514.tar.bz2
>
>
> <tr:iterator id="itr" value="#{bean.valueList}">
> <f:subview id="subPage">
>    <jsp:include page="subPage1.jsp" />
> </f:subview>	
> </tr:iterator>
> subPage1.jsp
> -------------------
> <tr:commandLink id="command" ...>
> All the comandLink IDs in the generated html are the same:  itr:subPage.command
> Suppose the  valueList has 10 elements,  10 commandLinks will be generated. if any command
link is clicked, all the 10 bound methods will be executed in server side.  
> Indice need to be add to component id under <tr:iterator>. For the example above.
 IDs should be
> itr:0:subPage.command
> itr:1:subPage.command
> itr:2:subPage.command
> itr:3:subPage.command
> itr:4:subPage.command
> itr:5:subPage.command
> itr:6:subPage.command
> itr:7:subPage.command
> itr:8:subPage.command
> itr:9:subPage.command
> <tr:iterator> inside <tr:iterator> has the same problem.

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


Mime
View raw message