cells in p:columns get same id

UI Components for JSF
Post Reply
jsfRocks
Posts: 7
Joined: 19 Apr 2011, 19:55
Location: Germany

20 Apr 2011, 15:52

Hello,

I tried to generate some input components inside a p:columns tag. But if I do some Ajax it breaks - the strange thing is that every rendered component gets the same id.
Regards
jsfRrocks
---
Primefaces 2.2.1 / JSF 2 / JBoss 6

User avatar
maple_shaft
Posts: 58
Joined: 10 Mar 2011, 19:49

20 Apr 2011, 17:34

Can you post your datatable code?

Are you saying that they all have the same clientId?
First Primefaces Application: PrimeFaces 2.2.1, Mojarra 2.0.4, Tomcat 7.08 - JBoss 6

Second Primefaces Application: Primefaces 3.0 FINAL (<-- AWESOME!), Mojarra 2.1.2, Spring 3 with Spring Security and Spring EL Resolver, Tomcat 6

jsfRocks
Posts: 7
Joined: 19 Apr 2011, 19:55
Location: Germany

20 Apr 2011, 23:46

Yes they all have the same clientID.

Code: Select all

 <p:dataTable var="car" value="#{testBean.cars}">  
                        <p:columns value="#{testBean.columns}"  
                                   var="column" columnIndexVar="colIndex">

                            <f:facet name="header">
                                #{column}
                            </f:facet>

                            <p:inplace>
                                <h:inputText value="#{car.model}" />
                            </p:inplace>

                        </p:columns>  
</p:dataTable>
-> after enable the ajax editing every cell in that row turns into a input field (of course only the one clicked gets the changed value in the bean)
Regards
jsfRrocks
---
Primefaces 2.2.1 / JSF 2 / JBoss 6

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 48 guests