If a have a shared html template how can I parameterize component ids such that the template can be used more than once within the view?
For example, if I have a <input id="myField" jsfid="inputText" type="text" value="@binding"/> within a reusable template, and I used the template twice in a view, I would get an error because the of duplicate ids in the faces tree. can I simply change to <input id="@id" jsfid="inputText" type="text" value="@binding"/> in the template and specify two different @ids in the template client to resolve this? better yet can I change to <input id="@idPrefixMyField" jsfid="inputText" type="text" value="@binding"/> and specify 1 @idPrefix so that I can have multiple <input>s within the template and still be okay? Like <input id="@idPrefixMyField" jsfid="inputText" type="text" value="@binding"/> <input id="@idPrefixMyField2" jsfid="inputText" type="text" value="@binding2"/> I ask this only because I think in the past the jsfid id was handled differently than other attributes (for example the symbol replacement happenend after the value was bound to the component). Just wanted to make sure that the id symbol replacement will happen before binding to the component. Thanks, Ryan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]