Sean,

On 7/1/05, Sean Schofield <[EMAIL PROTECTED]> wrote:
> The autogenerated id's do not have ':' in them anyways.  The clientId
> has it but not the component id.  In my case I was deriving the id of
> some hidden fields based on the client id which was a mistake.  If I
> just derive off the component id everything is fine.

However, if you derive your hidden input field id from the component
id alone, then it will result in duplicated hidden input field ids
when the component is stamped by (say) a data component, or used with
the same id inside a different naming container - both of which are
legal in JSF.

If you need to reference the generated input field value, where the
name/id has one or more colons in it, then you can alwasy use the
[]-syntax rather than dot-syntax.

For example:
  form['some:clientId:with:colons']
rather than
  form.some:clientId:with:colons

Hope this helps.

Kind Regards,
John Fallows.

Reply via email to