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/20 00:06:30 UTC

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

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


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


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

Posted by "Leonardo Quijano Vincenzi (JIRA)" <ta...@jakarta.apache.org>.
    [ 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


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

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-813?page=all ]

Jesse Kuhnert resolved TAPESTRY-813.
------------------------------------

    Resolution: Fixed

Didn't notice this was also fixed. Sorry! getClientId() should always return the most correct ID for the component you are working on, regardless of whether or not it is a form component.

> 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
>          Issue Type: Improvement
>          Components: Framework
>    Affects 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


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

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-813?page=all ]

Jesse Kuhnert updated TAPESTRY-813:
-----------------------------------

    Fix Version: 4.1

> 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