[JBoss JIRA] (RF-11805) a4j:queue onerror doesn't seem to work
by Brendan Healey (Created) (JIRA)
a4j:queue onerror doesn't seem to work
--------------------------------------
Key: RF-11805
URL: https://issues.jboss.org/browse/RF-11805
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.1.0.CR2
Reporter: Brendan Healey
I was just testing some 'global' ajax error handling code. I put an <a4j:queue onerror="alert('A')"/>
outside a form, then forced an ajax error like this:
<h:inputText>
<a4j:ajax event="blur" listener="#{myBean.forceAjaxError}"/>
</h:inputText>
public void forceAjaxError(AjaxBehaviorEvent event) {
getResponse().setStatus(501);
}
public HttpServletResponse getResponse() {
return (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();
}
so I click into and out of the input, the ajax POST request completes with a 501 status but no alert is shown.
I just tried it with a4j:status and this does pick up the error.
--
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
12 years, 9 months
[JBoss JIRA] (RF-11783) disabled a4j:commandButton with nested tooltip disappears when enabled with ajax render
by Brendan Healey (Created) (JIRA)
disabled a4j:commandButton with nested tooltip disappears when enabled with ajax render
---------------------------------------------------------------------------------------
Key: RF-11783
URL: https://issues.jboss.org/browse/RF-11783
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.1.0.Milestone4
Environment: Mojarra 2.1.3, Glassfish 3.1.1.
Reporter: Brendan Healey
The following code resides in the footer of an extendedDataTable, although my
guess is that this is not relevant. The button is initially disabled, then
bean.property is set true and we do ajax render="myButton". The button
disappears from the screen. Removing the tooltip makes it work as expected.
<a4j:commandButton
id="myButton"
value=" test "
action="apage?faces-redirect=true"
disabled="#{empty bean.property}">
<rich:tooltip mode="client" showDelay="850">
<h:panelGroup layout="block" style="width: 200px; text-align: justify">
<h:outputText escape="false" value="some text"/>
</h:panelGroup>
</rich:tooltip>
</a4j:commandButton>
--
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
12 years, 9 months
[JBoss JIRA] (RF-11782) [rich:tabPanel] switching tabs doesn't work correctly with switchtype="ajax"
by Rene O (Created) (JIRA)
[rich:tabPanel] switching tabs doesn't work correctly with switchtype="ajax"
----------------------------------------------------------------------------
Key: RF-11782
URL: https://issues.jboss.org/browse/RF-11782
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.1.0.CR1
Environment: mojarra-2.1.4, RF-CR1
Reporter: Rene O
A testcase to reproduce this issue is attached:
http://localhost:8080/jsf2testcase/tabswitchtest.jsf
Steps to reproduce the issue:
1. switch to 'Tab 3' -> console/server-log shows 'getTestListA' and 'getTestListB' -> this is a bug, expected is only 'getTestListB', because tab3 has only one table with testListB
2. switch to 'Tab 1' -> console/server-log shows 'getTestListB' -> this is a bug, expected is nothing new in console/server-log, because tab1 has no table
{code:title=xhtml}
...
<h:form id="testform">
<rich:tabPanel id="tabpanel" switchType="ajax" activeItem="#{dataBean.activeTab}">
<rich:tab id="tab1" header="Tab 1">
Here is tab #1
</rich:tab>
<rich:tab id="tab2" header="Tab 2">
<rich:dataTable value="#{dataBean.testListA}" var="item" rows="10">
<rich:column >
<f:facet name="header">
List A
</f:facet>
h:outputText value="#{item.a}"/>
</rich:column>
</rich:dataTable>
</rich:tab>
<rich:tab id="tab3" header="Tab 3">
<rich:dataTable value="#{dataBean.testListB}" var="item" rows="10">
<rich:column >
<f:facet name="header">
List B
</f:facet>
<h:outputText value="#{item.a}"/>
</rich:column>
</rich:dataTable>
</rich:tab>
</rich:tabPanel>
</h:form>
...
{code}
{code:title=java}
...
public List<TestObject> getTestListA() {
System.out.println("getTestListA");
return testListA;
}
...
public List<TestObject> getTestListB() {
System.out.println("getTestListB");
return testListB;
}
...
{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
12 years, 9 months