bug? buttons inside dynamic column dataTable do not work

UI Components for JSF
Post Reply
fsrinxmail
Posts: 7
Joined: 01 Oct 2010, 17:14

09 Nov 2010, 11:22

Hi everyone!

Add the following code to the primefaces example in line 22: http://www.primefaces.org/showcase/ui/d ... olumns.jsf

Code: Select all

<p:dataList
   value="#{cars[colIndex].list}"
   var="str">
   <p:commandButton value="test" action="#{tableBean.test(str)}" />
</p:dataList>
Add a List of Strings the tableBean and add the test-method.

The test method won't be executed. Neither action nor actionListener works.
Place the button outside the dataList and everything works fine.

There seems to be a bug in primefaces if you places a buttons oder links inside dynamic-content components which are inside a dynamic column table...

Kind regards,
Fabian
PF 2.2.1
JSF 2.0 (Mojarra 2.1)
Glassfish 3.1
FF 3.6, IE 8

Daedin
Posts: 25
Joined: 04 Dec 2010, 13:24

27 Dec 2010, 00:14

Unless I am mistaken, I think you should enclose your commandButton inside a p:column for data selection, as mentioned in p.106 of the documentation.
Sébastien

JavaServer Faces 2.0
Primefaces 2.2 RC2
Tomcat 7.0

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 46 guests