[richfaces-issues] [JBoss JIRA] (RF-12268) 4.1.0.final javascript error : element is null, ajax queue operation

zhifu Jin (JIRA) jira-events at lists.jboss.org
Tue May 22 21:47:17 EDT 2012


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

zhifu Jin edited comment on RF-12268 at 5/22/12 9:46 PM:
---------------------------------------------------------

I can't access your page.
I had read your code. Your page a little different with ours. You need add render attribute for "action 1" and rendered for "action 2", and "action 2" will be delete, when "action 1" response arrived. it like this: 
<a4j:commandButton id="ajaxAction1" render="action2Area"/> 
<a4j:outputPanel id="action2Area" rendered="#{!action1Click}">
 <a4j:commandButton id="ajaxAction2"/>
</a4j:outputPanel>


                
      was (Author: war0071):
    I can't access your page.
I had read your code. Your page a little different with ours. If you need add render attribute for "action 1" and rendered for "action 2", and "action 2" will be delete, when "action 1" response arrived. it like this: 
<a4j:commandButton id="ajaxAction1" render="action2Area"/> 
<a4j:outputPanel id="action2Area" rendered="#{!action1Click}">
 <a4j:commandButton id="ajaxAction2"/>
</a4j:outputPanel>


                  
> 4.1.0.final javascript error : element is null, ajax queue operation
> --------------------------------------------------------------------
>
>                 Key: RF-12268
>                 URL: https://issues.jboss.org/browse/RF-12268
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component
>    Affects Versions: 4.1.0.Final
>            Reporter: zhifu Jin
>              Labels: richfaces, waiting_on_user
>   Original Estimate: 1 day
>  Remaining Estimate: 1 day
>
> the issue is when have two requests like below will cause js error:"element is null" and browser crash.   
>                1. first request sending, and don't have response arrived.
>                2. the second request start, will add this request into queue.
>                3. first response arrived , the second request will be dequeue and send request, it will find source element first,  and our page had changed, the element is null.

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