myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brondsema (JIRA)" <>
Subject [jira] Commented: (MYFACES-769) configurable IDs used for rendering
Date Fri, 24 Feb 2006 23:11:38 GMT
    [ ] 

Dave Brondsema commented on MYFACES-769:

Namespaces are definitely the solution to this problem.  Sorry I was in left field for a while
until I realized this.

The portlet container I am using is providing a good namespace, and it is used in some components,
but not others.  It seems that when I specify the id on the component, it does not use the
namespace, but when the id is automatically assigned it does use the namespace.  This is of
particular importance for my <h:form id="foo" ... > which renders as <form id="foo"
name="foo" ...>

Why do I need to make sure that the parent-most naming-container in my app has a dynamic id?

> configurable IDs used for rendering
> -----------------------------------
>          Key: MYFACES-769
>          URL:
>      Project: MyFaces Core
>         Type: Improvement
>     Reporter: Dave Brondsema
>     Assignee: Martin Marinschek

> If the same code is used ot generated a component tree for more than one part of a webpage,
the rendered IDs are the same and functionality is broken (javascript needs unique IDs).
> An example of when this happens is when as portlet uses JSF for rendering.  If the portlet
is used more than once on a single page (e.g. an RSS reader) all the IDs are the same.
> Thus we need a way to have more configurable (perhaps random) IDs when rendered.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message