[richfaces-issues] [JBoss JIRA] (RF-12092) a4j:poll : a4j:status never clears

Brian Leathem (JIRA) jira-events at lists.jboss.org
Thu Mar 29 15:26:49 EDT 2012


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

Brian Leathem edited comment on RF-12092 at 3/29/12 3:26 PM:
-------------------------------------------------------------

I'm able to reproduce it on...
RichFaces 4.2.0.CR1
MyFaces MyFaces 2.0.6
JBoss 6.0.0.Final
JVM 1.7_01
IE 9.0.8
FF 3.6.16
Chrome 17.0.963.83 m

I'm using the following code...

{code}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Use strict mode now. This will ensure IE8 honors our requirement to compress rows in
Element Type box and Collection Status box-->

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:jdt="http://www.jenia.org/jsf/dataTools"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j"
        xmlns:fn="http://java.sun.com/jsp/jstl/functions">
<h:head>

</h:head>
<h:body id="DiscoveryStatusBody" >


<h:form id="mainForm">

<a4j:queue timeout="20000"/>

<!-- Keep this in mainForm so we can read in the table rows selected and reRender them on table updates-->
<a4j:poll id="ajaxPoll" interval="5000" enabled="true" render="helloText" />


            <a4j:status id="a4jstatus">

                <f:facet name="start">
                    <img src='/appiq/images/ajax-loader.gif'/>
                </f:facet>
                <!--<f:facet name="stop">-->
                <!--<img src="/appiq/images/minor_icon.gif"/>-->
                <!--</f:facet>-->
            </a4j:status>

    <h:outputText id="helloText" value="hello"/>
</h:form>
</h:body>
</html>
{code}
                
      was (Author: RobertGary1):
    I'm able to reproduce it on...
RichFaces 4.2.0.CR1
MyFaces MyFaces 2.0.6
JBoss 6.0.0.Final
JVM 1.7_01
IE 9.0.8
FF 3.6.16
Chrome 17.0.963.83 m

I'm using the following code...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Use strict mode now. This will ensure IE8 honors our requirement to compress rows in
Element Type box and Collection Status box-->

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:jdt="http://www.jenia.org/jsf/dataTools"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j"
        xmlns:fn="http://java.sun.com/jsp/jstl/functions">
<h:head>

</h:head>
<h:body id="DiscoveryStatusBody" >


<h:form id="mainForm">

<a4j:queue timeout="20000"/>

<!-- Keep this in mainForm so we can read in the table rows selected and reRender them on table updates-->
<a4j:poll id="ajaxPoll" interval="5000" enabled="true" render="helloText" />


            <a4j:status id="a4jstatus">

                <f:facet name="start">
                    <img src='/appiq/images/ajax-loader.gif'/>
                </f:facet>
                <!--<f:facet name="stop">-->
                <!--<img src="/appiq/images/minor_icon.gif"/>-->
                <!--</f:facet>-->
            </a4j:status>

    <h:outputText id="helloText" value="hello"/>
</h:form>
</h:body>
</html>

                  
> a4j:poll : a4j:status never clears
> ----------------------------------
>
>                 Key: RF-12092
>                 URL: https://issues.jboss.org/browse/RF-12092
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-push/poll
>    Affects Versions: 4.2.0.Final
>            Reporter: Robert Gary
>            Assignee: Brian Leathem
>         Attachments: a4jPollIssue.war
>
>
> When a4j:poll fires a4j:status correctly displays the request is in progress. However, it never shows it complete. Using any other a4j component will correctly update the a4j:status. So if the a4j:status is stuck showing its waiting because of an a4j:poll if you click on an a4j:commandButton the a4j:status will correctly show its now complete.
> <a4j:poll id="ajaxPoll" interval="5000" enabled="true" action="#{faces$DiscoveryStatus.poll}"
>            render="#{faces$DiscoveryStatus.reRenderStr}"/>
>             <a4j:status id="a4jstatus">
>                 <f:facet name="start">
>                     <img src='/images/ajax-loader.gif'/>
>                 </f:facet>
>                 <!--<f:facet name="stop">-->
>                 <!--<img src="/appiq/images/minor_icon.gif"/>-->
>                 <!--</f:facet>-->
>             </a4j:status>
> This code works correctly in RF 3.3.3.

--
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

        


More information about the richfaces-issues mailing list