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

Ron Piterman commented on TAPESTRY-603:
---------------------------------------

I meant something else.
If a component defined *inside* another component is taking the "id" parameter, 
or one wishes to set the Id attribute of an html element, than one can not do 
so using annotations:

currently:
======

@Component(type="PageLink", id="MyLink", page="MyPage")
public abstract PageLink getLinkMyPage();

The id= refers to the jwcid, not the id attribute of the html tag.

in the componen's (or page's) template <a jwcid="MyLink" ...
will produce 

<a href="..."

My proposal:
========

@Component(type="PageLink",id="MyLink", jwcid="myPageLink", page="MyPage")
public abstract PageLink

in the template:

<a jwcid="myPageLink">...

should produce:

<a id="MyLink" href...


> annotation "component" parameter "id" making it impossible to define an id 
> parameter
> ------------------------------------------------------------------------------------
>
>          Key: TAPESTRY-603
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-603
>      Project: Tapestry
>         Type: Wish
>     Versions: 4.0
>     Reporter: Ron Piterman

>
> defining @Component(id = "...") making it impossible to define id attribute 
> to components.
> Id is a very important attribute in html, this is a serious limitation.
> Why not use jwcid instead (which is also very intuitive...)

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to