[
https://issues.jboss.org/browse/RF-12479?page=com.atlassian.jira.plugin.s...
]
Brian Leathem updated RF-12479:
-------------------------------
Steps to Reproduce:
a4j:commandLink and a4j:commandButton with action works fine with RichFaces 4.2.0 but when
I upgrade to 4.2.1 or above the action on a4j:commandButton and a4j:commandLink stops
working.
xhtml:
{code}
<h:panelGroup layout="block">
<h:panelGroup layout="block" style="padding-bottom: 3px;">
<h:inputTextarea id="postText" style="width: 420px;"
maxlength="1000" cols="200" rows="3" />
</h:panelGroup>
<h:panelGroup layout="block"
style="text-align: right; width: 430px; padding-bottom: 5px;">
<a4j:commandButton value="#{msgs.share}" status="waitstatus"
styleClass="commandButton">
<a4j:ajax execute="@this postText" event="click"
render="chatterFeed" />
<a4j:actionListener listener="#{homeController.postItem}" />
</a4j:commandButton>
</h:panelGroup>
</h:panelGroup>
{code}
java:
{code}
public void postItem(ActionEvent event) {
HtmlInputTextarea inputText = (HtmlInputTextarea)
FacesContext.getCurrentInstance().getViewRoot().findComponent("mainForm:postText");
String text = inputText.getValue().toString();
if (text == null || text.trim().length() == 0)
return;
log.info(text);
inputText.setValue("");
}
{code}
was:
a4j:commandLink and a4j:commandButton with action works fine with RichFaces 4.2.0 but when
I upgrade to 4.2.1 or above the action on a4j:commandButton and a4j:commandLink stops
working.
xhtml:
<h:panelGroup layout="block">
<h:panelGroup layout="block" style="padding-bottom: 3px;">
<h:inputTextarea id="postText" style="width: 420px;"
maxlength="1000" cols="200" rows="3" />
</h:panelGroup>
<h:panelGroup layout="block"
style="text-align: right; width: 430px; padding-bottom: 5px;">
<a4j:commandButton value="#{msgs.share}" status="waitstatus"
styleClass="commandButton">
<a4j:ajax execute="@this postText" event="click"
render="chatterFeed" />
<a4j:actionListener listener="#{homeController.postItem}" />
</a4j:commandButton>
</h:panelGroup>
</h:panelGroup>
java:
public void postItem(ActionEvent event) {
HtmlInputTextarea inputText = (HtmlInputTextarea)
FacesContext.getCurrentInstance().getViewRoot().findComponent("mainForm:postText");
String text = inputText.getValue().toString();
if (text == null || text.trim().length() == 0)
return;
log.info(text);
inputText.setValue("");
}
Unable to invoke action on command link or command button
---------------------------------------------------------
Key: RF-12479
URL:
https://issues.jboss.org/browse/RF-12479
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-a4j-core
Affects Versions: 4.2.2.Final
Reporter: John Herson
Priority: Minor
a4j:commandLink and a4j:commandButton with action works fine with RichFaces 4.2.0 but
when I upgrade to 4.2.1 or above the action on a4j:commandButton and a4j:commandLink does
not work.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira