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.
cells in p:columns get same id
- maple_shaft
- Posts: 58
- Joined: 10 Mar 2011, 19:49
Can you post your datatable code?
Are you saying that they all have the same clientId?
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
Second Primefaces Application: Primefaces 3.0 FINAL (<-- AWESOME!), Mojarra 2.1.2, Spring 3 with Spring Security and Spring EL Resolver, Tomcat 6
Yes they all have the same clientID.
-> 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)
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>
Regards
jsfRrocks
---
Primefaces 2.2.1 / JSF 2 / JBoss 6
jsfRrocks
---
Primefaces 2.2.1 / JSF 2 / JBoss 6
-
- Information
-
Who is online
Users browsing this forum: No registered users and 48 guests