[JBoss JIRA] Created: (RF-3309) I have not switched a4j: status in stop mode and no method is called a4j: commandButton onmouseout
by Alexandr Ivanov (JIRA)
I have not switched a4j: status in stop mode and no method is called a4j: commandButton onmouseout
--------------------------------------------------------------------------------------------------
Key: RF-3309
URL: http://jira.jboss.com/jira/browse/RF-3309
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: richfaces-ui-3.2.0.SR1, apache-tomcat-6.0.16
Reporter: Alexandr Ivanov
I have not switched a4j: status in stop mode and no method is called a4j: commandButton onmouseout, ie after pressing a button locked, my code:
<a4j:log popup="false" level="ALL" style="width: 800px; height: 300px;"></a4j:log>
<a4j:status startText="Progress" stopText="Done" />
<rich:tabPanel switchType="ajax" tabClass="tabPanel" selectedTab="t1" immediate="true">
<rich:tab label="1111" name="t1">
<h:form id="FoneForm">
<h:outputLabel for="fone" id="labelFone" value="add:" />
<rich:message for="fone"/>
<h:inputText id="fone" value="#{foneBean.fone}" validator="#{foneBean.Fone_validate}" size="25" maxlength="21" required="true"><f:validateLength minimum="5" maximum="21"/></h:inputText>
<a4j:commandButton value="1111" id="buttonAdd" actionListener="#{foneBean.onAddFone}" onclick="this.disabled=true;" oncomplete="this.disabled=false; this.src='./img/page/button_add.jpg';" onmouseover="this.src='./img/page/button_add_active.jpg';" onmouseout="this.src='./img/page/button_add.jpg';"/>
</h:form>
</rich:tab>
<rich:tab label="222" name="t2">
<h:form id="ChangePassForm">
<h:panelGrid columns="4" cellpadding="0" cellspacing="0">
<h:inputSecret id="passOld" size="30" maxlength="20" value="#{changePassBean.passOld}" required="true" />
<rich:message id="testMess" for="passOld"/>
<a4j:commandButton value="2222" id="buttonChangePass" action="#{changePassBean.onChangePass}" onclick="this.disabled=true;" oncomplete="this.disabled=false; this.src='./img/page/button_change.jpg';" onmouseover="this.src='./img/page/button_change_active.jpg';" onmouseout="this.src='./img/page/button_change.jpg';" />
</h:panelGrid>
</h:form>
</rich:tab>
</rich:tabPanel>
a4j:log:
debug[15:00:52,421]: Find meta name='Ajax-Update-Ids' content='FoneForm:j_id4,ChangePassForm:testMess'
debug[15:00:52,421]: Find meta name='Ajax-Response' content='true'
although ChangePassForm: testMess is in another tab...
and further in the log:
debug[15:00:52,468]: Attempt to update part of page for Id: ChangePassForm:testMess
debug[15:00:52,468]: call getElementById for id= ChangePassForm:testMess
warn[15:00:52,468]: Node for replace by response with id ChangePassForm:testMess not found in document
If you remove rich:message id="testMess" for="passOld" the problem disappears
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 4 months
[JBoss JIRA] Created: (RF-2280) a4j command: immediate and ajax single true works wrong.
by Ilya Shaikovsky (JIRA)
a4j command: immediate and ajax single true works wrong.
--------------------------------------------------------
Key: RF-2280
URL: http://jira.jboss.com/jira/browse/RF-2280
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Ilya Shaikovsky
Assigned To: Nick Belaevski
Fix For: 3.2.0
<h:form id="form">
<a4j:jsFunction name="ajaxCall" immediate="true" action="#{bean.action}" ajaxSingle="true"/>
<a4j:commandButton value="a4j button and ajaxCall" immediate="true" action="#{bean.action}" ajaxSingle="true" oncomplete="ajaxCall();"/>
<a4j:commandButton value="a4j button" immediate="true" action="#{bean.action}" ajaxSingle="true"/>
<a4j:commandLink value="a4j link" immediate="true" action="#{bean.action}" ajaxSingle="true"/>
<h:commandButton value="h button" immediate="true" action="#{bean.action}"/>
<h:inputText>
<a4j:support event="onclick" immediate="true" action="#{bean.action}" ajaxSingle="true"/>
</h:inputText>
</h:form>
Only h:control works fine. Any a4j control with both immediate and ajax Single setted to true works with next log:
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE RESTORE_VIEW 1
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RESTORE_VIEW 1
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE APPLY_REQUEST_VALUES 2
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER APPLY_REQUEST_VALUES 2
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE PROCESS_VALIDATIONS 3
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER PROCESS_VALIDATIONS 3
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE UPDATE_MODEL_VALUES 4
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER UPDATE_MODEL_VALUES 4
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE INVOKE_APPLICATION 5
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER INVOKE_APPLICATION 5
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE RENDER_RESPONSE 6
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RENDER_RESPONSE 6
So at first - request not immediate and action isn't called.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 4 months