[
https://jira.jboss.org/jira/browse/RF-7603?page=com.atlassian.jira.plugin...
]
Lukas Fryc commented on RF-7603:
--------------------------------
Reproduced in 3.3.3.BETA1, verified in 3.3.3.CR1:
<a4j:form data="${bean.data}" oncomplete="alert(data)"
ajaxSubmit="true">
<h:commandButton />
</a4j:form>
a4j:form data="#{}" does not populate javascript data
variable (data is undefined)
----------------------------------------------------------------------------------
Key: RF-7603
URL:
https://jira.jboss.org/jira/browse/RF-7603
Project: RichFaces
Issue Type: Patch
Security Level: Public(Everyone can see)
Components: component-a4j-core
Affects Versions: 3.3.2.CR1
Environment: Gentoo Linux 2.6.24
Sun Java 1.6.0.0.7
RichFaces 3.2.1_GA
Facelets 1.1.14
Apache Tomcat 6.0 AppServer
JSF 1.2 RI
Reporter: Lincoln Baxter III
Assignee: Andrey Markhel
Fix For: 3.3.3.CR1
Attachments: UIAjaxForm.java
Time Spent: 3 hours
Remaining Estimate: 0 minutes
When using the a4j:form component, the data="#{managedBean.property}" attribute
is not correctly causing the javascript data variable to be populated.
See example below. data is always undefined, even if the managed bean property is set to
a valid value, the alert box shows undefined.
I verified that when using a4j:commandButton, the data variable is correctly populated,
and the alert box displays the value.
<a4j:form id="themouth" data="#{indexBean.ajaxInputOk}"
reRender="whispers,earInput,earErrors"
oncomplete="alert(data)" ajaxSubmit="true">
<div class="centered paddingLarge"><h:outputText
id="whispers" styleClass="smallText"
value="#{indexBean.whispers}" /></div>
<div class="centered"
id="earWhisper"><a4j:outputPanel id="earErrors">
<h:message showSummary="true" showDetail="false"
for="earInput"
style="color: red;" />
</a4j:outputPanel><br />
<h:inputText id="earInput" autocomplete="off"
value="#{indexBean.input}"
validator="#{indexBean.validateWhisper}" required="true">
</h:inputText> <h:commandButton id="whisperButton"
action="#{indexBean.doWhisper}" value="whisper"
/></div>
</a4j:form>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira