[ 
https://issues.jboss.org/browse/RF-12030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Juraj Húska updated RF-12030:
-----------------------------

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

{code:title=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>
{code}


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

Steps to reproduce this issue:
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

{code:title=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>
{code}


    Steps to Reproduce: 
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
     Affects Version/s: 4.2.2.Final
           Environment: 
container: tomcat 7, JBoss AS 7.1.1.Final
mojarra 2.1.5, myfaces-2.1.6
browsers: all

  was:tomcat 7, richfaces-4.2.0.Final, myfaces-2.1.6


    
> rich:dataScroller doesn't work if a rich:message exists inside of a collapsed 
> rich:collapsiblePanel with switchType='ajax'
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-12030
>                 URL: https://issues.jboss.org/browse/RF-12030
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-ScrollableDataTable, component-validators
>    Affects Versions: 4.2.0.Final, 4.2.2.Final
>         Environment: container: tomcat 7, JBoss AS 7.1.1.Final
> mojarra 2.1.5, myfaces-2.1.6
> browsers: all
>            Reporter: Rene O
>            Assignee: Juraj Húska
>
> rich:dataScroller doesn't work if a rich:message exists inside of a collapsed 
> rich:collapsiblePanel with switchType='ajax'
> {code:title=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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to