You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andy Yeung (JIRA)" <ta...@jakarta.apache.org> on 2006/11/17 08:56:37 UTC

[jira] Commented: (TAPESTRY-1125) Duplicate id and updateComponents

    [ http://issues.apache.org/jira/browse/TAPESTRY-1125?page=comments#action_12450656 ] 
            
Andy Yeung commented on TAPESTRY-1125:
--------------------------------------

I have tried the latest snapshot and found that the case is partly solved only.
The dojo javascript is generated correctly. However for the directlink, the updateParts parameters is not generated correctly if I have 2 components with the same name. I have tried using {component.'name'.id} in the updateComponents but the output updateParts still be the name.



> Duplicate id and updateComponents
> ---------------------------------
>
>                 Key: TAPESTRY-1125
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1125
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework, Web
>    Affects Versions: 4.1, 4.1.1
>         Environment: Win XP, tomcat 5.5.17
>            Reporter: Frank Jørgensen
>         Assigned To: Jesse Kuhnert
>             Fix For: 4.1.1
>
>
> Got a problem with duplicate id's :
> <a jwcid="@DirectLink"
>            listener="listener:setAvailable"
>            id="ognl:currentHour.id"
>            updateComponents="ognl:{'calendar'}"
>            async="ognl:true"
>            parameters="ognl:currentHour"
>            class="setavailable">                     
>  </a>
> When Tapestry render the HTML there are 2 id's in the code, and this gives the async update a javascript error. 
> Want to make my own id because, the link will not be a link after the async update, and if I let Tapestry generate the id's, then the DirectLink id's will not be the same as before the update. And the AJAX/DOJO javascript is not updated, so the next time I click on a Link it will not be async.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org