You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Leonardo Quijano Vincenzi (JIRA)" <ta...@jakarta.apache.org> on 2005/12/22 18:08:31 UTC

[jira] Commented: (TAPESTRY-813) Provide a global clientId for all components, not only forms related ones

    [ http://issues.apache.org/jira/browse/TAPESTRY-813?page=comments#action_12361123 ] 

Leonardo Quijano Vincenzi commented on TAPESTRY-813:
----------------------------------------------------

Actually the "idPath" property in IComponent can be used to achieve a similar effect. So if we have "compY" nested inside "compX" we can actually do:

<span id="ognl:components.compY.idPath" jwcid="compY@Any" />

And that would render as:

<span id="compX.compY">
</span>

The question is, the "." is an accepted XML name character (http://www.w3.org/TR/REC-xml/#NT-Name), but is it reserved for some special purposes?


> Provide a global clientId for all components, not only forms related ones
> -------------------------------------------------------------------------
>
>          Key: TAPESTRY-813
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-813
>      Project: Tapestry
>         Type: Improvement
>   Components: Framework
>     Versions: 4.0
>     Reporter: Leonardo Quijano Vincenzi
>      Fix For: 4.1

>
> Currently only form components support a "clientId" property that allow client-side scripting to attach to a single HTML ID, like this:
> <input id="ognl:components.someComponent.clientId" jwcid="someComponent@TextField" ... />
> This support could be refactored to support non-form components, like @Any, to allow them to be used in client-side Javascript:
> <span id="ognl:components.someComponent.clientId" jwcid="someComponent@Any" />
> </span>

-- 
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: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org