This content has been marked as final.
Show 3 replies
-
1. Re: ValueExpressions in id attribute return null
flopsi Aug 18, 2010 11:29 AM (in response to ziphyre)Hi Marco,
i have a similar problem. What i wanna do is generate an input field with dynamic id, but:
<h:outputText value="#{obj.id}"/> <- correctly rendered, e.g. 'DE'
<h:inputText id="input_#{obj.id}" .../> <- just rendered as 'input_', not 'input_DE'
I know it's been a long time ago, but can you remember what was the solution?
Maybe it isn't possible at all cos the id is rendered while rebuilding the component tree, and the object is not available that early?!?
Another topic
http://www.seamframework.org/Community/CreatingDynamicId
also says dynamic ids are not possible, but if you say it is, did you find out how the guys managed it?
Thanks a lot, best regards
Flo -
2. Re: ValueExpressions in id attribute return null
ziphyre Aug 20, 2010 4:32 AM (in response to ziphyre)Hi Flo,
Unfortunately I don't have any solution for this, but also it's been a long time I quit working with Seam. Maybe some other people can answer your question.
Regards
-
3. Re: ValueExpressions in id attribute return null
amitev Aug 20, 2010 7:03 AM (in response to ziphyre)The JSF specification doesn't allow dynamic id's of the components. With id as EL you can break the view.