<p:dataTable id="asdf"> doesn't bind "id" tag to HTML

UI Components for JSF
Post Reply
a87
Posts: 1
Joined: 09 May 2010, 13:11

25 Oct 2010, 02:11

Hi!

I'm using PrimeFaces 2.2RC1 and

<p:dataTable id="asdf">...
doesn't add id attribute to HTML table output

ethermion
Posts: 117
Joined: 25 Aug 2010, 15:11

25 Oct 2010, 02:36

Works for me. What makes you say that? Cannot see it in the .html source?

Keep in mind that if you reference it elsewhere, you may need to qualify it with the form id, e.g. :formId:tableId

Which also suggests you need to id your forms, lest JSF will id it for you.

-e
Mojarra 2.2.8
Primefaces 5.1
Wildfly 8.2

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

25 Oct 2010, 12:42

This is how JSF works, client ids and server ids can be different, set prependId to false on h:form so that server id and client id will be same.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 39 guests