prependId="true/false"

UI Components for JSF
Post Reply
luigi.toziani
Posts: 55
Joined: 08 Mar 2010, 17:11

02 Apr 2010, 10:45

Hi Cagatay,

I'm a little bit confused about the right use of the 'prependId' attribute for form tag. Could you help me for keeping things more clear?

Thanks,

Luigi

jmcollin92
Posts: 145
Joined: 05 Nov 2009, 22:32

02 Apr 2010, 11:08

With prependId="true", component id are prefixed with the formName. This is usefull if you have multiple component with same id in two different formsin the same .xhtml file.

Hope this help.
----
Primefaces 2.0.1-SNAPSHOT
JBoss 6.0.0-M2
Mojorra 2.0.2
---

luigi.toziani
Posts: 55
Joined: 08 Mar 2010, 17:11

02 Apr 2010, 12:04

Thanks a lot. All clear.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

02 Apr 2010, 15:35

prependId="false" is useful if you want to write javascript as JSF will not prefix the form id to the id you've defined.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 47 guests