Datatable with inCell editing and selection

UI Components for JSF
Post Reply
substanceoflife
Posts: 9
Joined: 15 Nov 2010, 11:25

22 Dec 2010, 12:41

Hi guys,

I'm wondering if some of you faces with such issue:

If you have a datatable with inCellEditing then row selection doesn't work for it. When you select the row there are no requests or something.

Maybe there are some sort of workaround for this.
The piece of code:

Code: Select all

<p:dataTable var="attribute" 
	               value="#{backingBean.attributes}"
	               selection="#{backingBean.selection}"  
	               scrollable="false" 
	               selectionMode="multiple"
	               id="resultPanel">
	               
	                <p:column headerText="Name" width="30%">  
	                   <p:cellEditor>
                           <f:facet name="output" >  
                                <h:outputText value="#{attribute.name}" style="width:100%" />  
                               </f:facet>  
                            <f:facet name="input">  
                                 <h:outputText value="#{attribute.name}" style="width:100%" />  
                            </f:facet>
                       </p:cellEditor>
                    </p:column>
Thanks!

substanceoflife
Posts: 9
Joined: 15 Nov 2010, 11:25

23 Dec 2010, 09:10

Well,

I still don't know the reason of the problem but as a workaround could be usage of rowSelectionListener.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 34 guests