p:columns in p:dataTable buggy or just inconvenient to use?

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

28 Oct 2010, 17:18

Hi!

I refer to the example on this page http://www.primefaces.org/showcase/ui/d ... olumns.jsf.
Why is it not possible to replace line 14-18 with the following code, as it is possible in datatables with static columns?

Code: Select all

<p:commandButton image="remove"
        action="#{tableBean.removeColumn(column)}"
        update="carsTable" title="Remove Column" style="float:right" />
In the remove method this code is used

Code: Select all

FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("columnToRemove");
This is ok for strings to remove...but if I use my own objects it gets inconvenient since I have to map a string to an object.

Do I overlook something?

Kind regards and thanks for your help!
Fabian
PF 2.2.1
JSF 2.0 (Mojarra 2.1)
Glassfish 3.1
FF 3.6, IE 8

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests