Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-12030

rich:dataScroller doesn't work if a rich:message exists inside of a collapsed rich:collapsiblePanel with switchType='ajax'

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 4.2.0.Final, 4.2.2.Final
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      container: tomcat 7, JBoss AS 7.1.1.Final
      mojarra 2.1.7, myfaces-2.1.6
      browsers: all

    • Steps to Reproduce:
      Hide

      1. use dataScroller to switch table-pages. you can see, that this works.
      2. collaps collapsiblePanel
      3. if collapsiblePanel is collapsed, the dataScroller doesn't react anymore.
      4. if you use switchType='client' everything works correct

      Show
      1. use dataScroller to switch table-pages. you can see, that this works. 2. collaps collapsiblePanel 3. if collapsiblePanel is collapsed, the dataScroller doesn't react anymore. 4. if you use switchType='client' everything works correct

      Description

      rich:dataScroller doesn't work if a rich:message exists inside of a collapsed rich:collapsiblePanel with switchType='ajax'

      examplepage.xhtml
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
      	  xmlns:h="http://java.sun.com/jsf/html"
      	  xmlns:f="http://java.sun.com/jsf/core"
      	  xmlns:ui="http://java.sun.com/jsf/facelets"
      	  xmlns:a4j="http://richfaces.org/a4j"
      	  xmlns:rich="http://richfaces.org/rich"	 
      	 >
      	<h:head>
      		<title>JSF Test</title>		
      	</h:head>
      
      <h:body>					
      	<h:form id="myForm">  			
      	        	
      	    	
      	    <rich:collapsiblePanel header="collapsPanel" id="collapsPanel" expanded="true" switchType="ajax">
                  	<h:inputText id="test" value="" />
                  	if rich:message doesn't exists, everything works...
                  	<rich:message id="testMessage" for="test"/>
                  </rich:collapsiblePanel>
                  
                  <rich:dataTable id="tableA" 
      		var="item" value="#{model.tableList}" 
      		rows="5" style="width:350px;">
      		<f:facet name="header">
      		   <h:outputText value="HeaderA" />				
      		</f:facet>
      		<rich:column id="colA" >
      			<f:facet name="header">
      				ColA
      		        </f:facet>
      			#{item.itemA}
      		</rich:column>
      		<f:facet name="footer">
      			<rich:dataScroller for="tableA" id="ds"/>				
      		</f:facet>
      	    </rich:dataTable>
      	</h:form>		
      </h:body>
      </html>
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  reneo Rene O
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: