[richfaces-issues] [JBoss JIRA] (RF-13151) Number of Data Fields in PopUpPanel appear to stop events for DataScroller and sorting of extendedDataTable

Brian Leathem (JIRA) jira-events at lists.jboss.org
Tue Aug 27 21:57:26 EDT 2013


    [ https://issues.jboss.org/browse/RF-13151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799512#comment-12799512 ] 

Brian Leathem edited comment on RF-13151 at 8/27/13 9:57 PM:
-------------------------------------------------------------

Brian,  Thanks for all your help.  It appears we may have something "else" going wrong that we can't tell what it is.  We are new to Rich Faces/JSF stuff.  And I am starting to wonder if an error is happening in the background that is stopping processing and we don't ever see the error....
For this Issue.
We have that tabbed Panel, and one some pages the popup panel works fine, and on others they do not.  The code is about the same except the fields are different.
The one I wrote this ticket up for is like this:
{code}
 <a4j:region id="addEquipmentRegion" status="equipmentWaitStatus">
   <h:form id ="addEquipmentForm">
        <rich:popupPanel id="addEquipmentModPanel" domElementAttachment="form" autosized="true" width="600" height="400">
            <f:facet name="header"><h:outputText value="Add Equipment"/></f:facet>
            <f:facet name="controls">
                <h:panelGrid>
                    <h:graphicImage value="img/close_modal.png" styleClass="hidelink" id="hideAddEquipmentModPanel">
                        <rich:componentControl target="addEquipmentModPanel" operation="hide" event="onclick"/>
                    </h:graphicImage>
                </h:panelGrid>
            </f:facet>
                <rich:panel id="addEquipmentPanel">            
                    <s:decorate id="equipmentBaseIDDecoration" template="layout/edit.xhtml">
                        <ui:define name="label">Base ID</ui:define>
                          <rich:select id="addBaseID" enableManualInput="true" required="true" 
                            value="#{equipmentHome.instance.baseID}">
                            <f:selectItems value="#{entityAttribute.baseIDs}"/>
                          </rich:select> 
                    </s:decorate>
......
                <div class="actionButtons">
                    <a4j:commandLink align="left" value="Add" onclick="persistEquipmentData(); setTimeout(function(){refreshEquipmentData()}, 500);" 
                                       oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('addEquipmentModPanel')}.hide(); "
                                       reRender="true" />
                            nbsp;nbsp;
                    <a4j:commandLink align="left" value="Cancel"  
                                       onclick="#{rich:component('addEquipmentModPanel')}.hide();return false;" />
                </div>
                <a4j:jsFunction name="persistEquipmentData" action="#{equipmentHome.persist}" />
                <a4j:jsFunction name="refreshEquipmentData" action="#{equipmentList.refresh}" execute="equipmentTable" limitRender="true" render="equipmentTable" />
        </rich:popupPanel>
        </h:form>
    </a4j:region>
{code}


And now it will allow me to have all my fields in the popup.  I think you can clal this problem "done".  :-)

Can you give me a hint thought.... how do I, or can I even,  put the web application in "debug mode" and see what events are firing, where they may be getting hung up, etc??
If I get an error,  I do get the Web Console,  but I am not sure what I am seeing other than the "error".  But I am curious to see why my application stops processing at other areas for no apparent reason.
For example,  the symptom I was seeing for this problem has manifested itself on the next tab.  But this time in the ExtendedDataTable.  If I remove all fields with a InplaceINput Field, then my paging and sorting works.  But as soon as I add one field with an inplceInput,  it all stops working again...  

Thanks!!

                
      was (Author: debowsley):
    Brian,  Thanks for all your help.  It appears we may have something "else" going wrong that we can't tell what it is.  We are new to Rich Faces/JSF stuff.  And I am starting to wonder if an error is happening in the background that is stopping processing and we don't ever see the error....
For this Issue.
We have that tabbed Panel, and one some pages the popup panel works fine, and on others they do not.  The code is about the same except the fields are different.
The one I wrote this ticket up for is like this:
<code>
 <a4j:region id="addEquipmentRegion" status="equipmentWaitStatus">
   <h:form id ="addEquipmentForm">
        <rich:popupPanel id="addEquipmentModPanel" domElementAttachment="form" autosized="true" width="600" height="400">
            <f:facet name="header"><h:outputText value="Add Equipment"/></f:facet>
            <f:facet name="controls">
                <h:panelGrid>
                    <h:graphicImage value="img/close_modal.png" styleClass="hidelink" id="hideAddEquipmentModPanel">
                        <rich:componentControl target="addEquipmentModPanel" operation="hide" event="onclick"/>
                    </h:graphicImage>
                </h:panelGrid>
            </f:facet>
                <rich:panel id="addEquipmentPanel">            
                    <s:decorate id="equipmentBaseIDDecoration" template="layout/edit.xhtml">
                        <ui:define name="label">Base ID</ui:define>
                          <rich:select id="addBaseID" enableManualInput="true" required="true" 
                            value="#{equipmentHome.instance.baseID}">
                            <f:selectItems value="#{entityAttribute.baseIDs}"/>
                          </rich:select> 
                    </s:decorate>
......
                <div class="actionButtons">
                    <a4j:commandLink align="left" value="Add" onclick="persistEquipmentData(); setTimeout(function(){refreshEquipmentData()}, 500);" 
                                       oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('addEquipmentModPanel')}.hide(); "
                                       reRender="true" />
                            nbsp;nbsp;
                    <a4j:commandLink align="left" value="Cancel"  
                                       onclick="#{rich:component('addEquipmentModPanel')}.hide();return false;" />
                </div>
                <a4j:jsFunction name="persistEquipmentData" action="#{equipmentHome.persist}" />
                <a4j:jsFunction name="refreshEquipmentData" action="#{equipmentList.refresh}" execute="equipmentTable" limitRender="true" render="equipmentTable" />
        </rich:popupPanel>
        </h:form>
    </a4j:region>
</code>


And now it will allow me to have all my fields in the popup.  I think you can clal this problem "done".  :-)

Can you give me a hint thought.... how do I, or can I even,  put the web application in "debug mode" and see what events are firing, where they may be getting hung up, etc??
If I get an error,  I do get the Web Console,  but I am not sure what I am seeing other than the "error".  But I am curious to see why my application stops processing at other areas for no apparent reason.
For example,  the symptom I was seeing for this problem has manifested itself on the next tab.  But this time in the ExtendedDataTable.  If I remove all fields with a InplaceINput Field, then my paging and sorting works.  But as soon as I add one field with an inplceInput,  it all stops working again...  

Thanks!!

                  
> Number of Data Fields in PopUpPanel appear to stop events for DataScroller and sorting of extendedDataTable
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: RF-13151
>                 URL: https://issues.jboss.org/browse/RF-13151
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Deb Owsley
>              Labels: waiting_on_user
>
> In my rich:popupPanel,  I have 10 elements, as follows:
> {code}
> <a4j:region id="addEquipmentRegion" status="equipmentWaitStatus">
>         <rich:popupPanel id="addEquipmentModPanel" autosized="true" width="600" height="400">
>             <f:facet name="header"><h:outputText value="Add Equipment"/></f:facet>
>             <f:facet name="controls">
>                 <h:panelGrid>
>                     <h:graphicImage value="img/close_modal.png" styleClass="hidelink" id="hideAddEquipmentModPanel">
>                         <rich:componentControl target="addEquipmentModPanel" operation="hide" event="onclick"/>
>                     </h:graphicImage>
>                 </h:panelGrid>
>             </f:facet>
>                 <rich:panel id="addEquipmentPanel"> 
>                                
>                     <s:decorate id="equipmentBaseIDDecoration" template="layout/edit.xhtml">
>                         <ui:define name="label">Base ID</ui:define>
>                           <rich:select id="addBaseID" enableManualInput="true" required="true" 
>                             value="#{equipmentHome.instance.baseID}">
>                             <f:selectItems value="#{entityAttribute.baseIDs}"/>
>                           </rich:select> 
>                     </s:decorate>
> .....
> {code}
> This popup panel is called from a button on one of my pages that contains a data scroller and an extendedDataTable.
> If I add an 11th element inside of my PopUpPanel,  then all data scrolling and sorting in the extendedDataTable stops working.
> I have removed different elements from the popup and it doesn't matter.  As long as I only have 10 all events fire. As soon as there are 11,  everything stops.
> I get absolutely no errors in my jboss console.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list