dataTable onselectComplete for 2.1.RC1

UI Components for JSF
Post Reply
monakhv
Posts: 42
Joined: 08 Feb 2010, 14:01

21 Jul 2010, 09:51

Hi,All!

I've just upgrade from 2.0.2 to 2.1.RC1. The first I noticed that onselectComplete does not work!
Below the code example that worked for 2.0.2 and does not for 2.1.RC1

Code: Select all

<h:form prependId="false" styleClass="jsfcrud_list_form">
                <h:panelGroup id="users">

                    <p:dialog id="OPR" widgetVar="operate" height="100" header="#{oTUserController.selectedUser.uidName}">
                        <p:outputPanel >
                            <h:outputText value="#{oTUserController.selectedUser.firstName}  
                            <p />
                            <h:commandButton action="#{oTUserController.prepareEdit}" value="#{bundle.Dialog_Edit}"/>
                            
                        </p:outputPanel>
                    </p:dialog>
                    <p:dataTable value="#{oTUserController.items}" var="item"  paginator="true" rows="#{bundle.Config_Row_Number}"
                                 selection="#{oTUserController.selectedUser}" selectionMode="single"
                                  update="OPR" onselectComplete="operate.show()">
                        <p:column sortBy="#{item.uidName}">
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListOTUserTitle_uidName}"/>
                            </f:facet>
                            <h:outputText value="#{item.uidName}"/>
                        </p:column>
.....
 </p:dataTable>
</h:panelGroup>
</h:form>


monakhv
Posts: 42
Joined: 08 Feb 2010, 14:01

21 Jul 2010, 10:48

The problem is solved. I had to update panel inside dialog but not dialog itself as for 2.0.2 case.

So, to solve the problem I had to replace the code

Code: Select all

<p:dialog id="OPR" widgetVar="operate" height="100" header="#{oTUserController.selectedUser.uidName}">
                        <p:outputPanel >
by the following

Code: Select all

<p:dialog widgetVar="operate" height="100" header="#{oTUserController.selectedUser.uidName}">
                        <p:outputPanel  id="OPR">
That is very sad so I want to update dialog header as well!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 57 guests