p:rize is broken with toggleable="true"

UI Components for JSF
Post Reply
scipio
Posts: 1
Joined: 30 Jul 2015, 23:22

31 Jul 2015, 19:19

I have p:panel toggleable="true" and panel is made resizable by p:resizable.
Then size of pane was changed and toggle button was clicked, the content of panel disapears, but the pannel remains untoggle

Code: Select all

  
 <p:panel id="pnl" header="Poisitions"  toggleable="true" widgetVar="pnl" >
                            <p:ajax event="toggle"   oncomplete="onTogle('pnl')"  />
                            <h:form prependId="false" >
                                <p:poll listener="#{RMI2Table.loadPositions()}"   delay="500" async="true"
                                        ignoreAutoUpdate="true" immediate="true" partialSubmit="true" />
                                <p:dataTable scrollable="true" id="positions" value="#{RMI2Table.positions}" 
                                                             var="repeater" scrollHeight="150"
                                                             rowStyleClass="#{repeater.red ? 'suspend' : null}">
                                       <p:column   style="text-align:right" width="80" headerText="pair/symbol">                        
                                           <h:outputText value="#{repeater.name}" />
                                       </p:column>
                                       <p:column   style="text-align:right" width="80" headerText="position">                        
                                           <h:outputText value="#{repeater.difference}" >
                                                <f:convertNumber type="number" 
                                                                 groupingUsed="true" locale="en" />
                                            </h:outputText>
                                           <f:facet name="footer">
                                                <h:outputText value="Total(USD)" style="text-align:right"/>
                                            </f:facet>
                                       </p:column>
                                       <p:column   style="text-align:right" width="80" headerText="pl">                       
                                            <h:outputText value="#{repeater.usd}" >
                                                <f:convertNumber type="number" 
                                                                 groupingUsed="true" locale="en" />
                                            </h:outputText>
                                            <f:facet name="footer">
                                                <h:outputText value="#{RMI2Table.positionsUSDSum}" >
                                                    <f:convertNumber type="number" 
                                                                     groupingUsed="true" locale="en" />
                                                </h:outputText>
                                            </f:facet>
                                       </p:column>            
                                 </p:dataTable> 
                            </h:form>
                        </p:panel>
                        <p:resizable for="pnl"  aspectRatio="true"/>
Primefaces 5.2 Mojarra 2.2.7

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 34 guests