You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Robert Zeigler (JIRA)" <ji...@apache.org> on 2009/05/02 17:39:30 UTC
[jira] Commented: (TAP5-680) 'Any' component didn't render id
attribute
[ https://issues.apache.org/jira/browse/TAP5-680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705297#action_12705297 ]
Robert Zeigler commented on TAP5-680:
-------------------------------------
By design, components only render a clientId if "getClientId" is called on the component sometime during the server-side dom render.
You can do this easily with a simple mixin:
public class ForceClientId {
@InjectContainer
private ClientElement element;
@BeginRender
void ensureId() {
element.getClientId();
}
}
And then in your component:
<t:any .... t:mixins="ForceClientId"/>
If that doesn't solve your issue, then there's a genuine issue, and you can re-open this.
> 'Any' component didn't render id attribute
> ------------------------------------------
>
> Key: TAP5-680
> URL: https://issues.apache.org/jira/browse/TAP5-680
> Project: Tapestry 5
> Issue Type: Bug
> Affects Versions: 5.1.0.4
> Reporter: Nikita Koksharov
> Priority: Critical
>
> Any component not rendering id attribute if clientId defined,
> <input t:type="Any" t:clientId="someid" type="hidden"/>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.