-
1. Re: oncomplete arguments problem
alexanderbelov Sep 17, 2007 9:11 AM (in response to konstantin_grigoriev)Prease, watch the following:
http://jira.jboss.com/jira/browse/RF-919
http://jira.jboss.com/jira/browse/RF-932 -
2. Re: oncomplete arguments problem
konstantin_grigoriev Sep 17, 2007 9:26 AM (in response to konstantin_grigoriev)I think http://jira.jboss.com/jira/browse/RF-932 is the same problem as discussed at
http://jboss.com/index.html?module=bb&op=viewtopic&t=118324
But http://jira.jboss.com/jira/browse/RF-919 is another problem as i understand. -
3. Re: oncomplete arguments problem
michaelhaug Sep 18, 2007 4:53 AM (in response to konstantin_grigoriev)The same problem occurs also with other ajax functions, for instance a4j:jsFunction.
We use the following javascript function to validate input data on the server side:
<a4j:jsFunction name="validate" bypassUpdates="true" data="#{facesContext.maximumSeverity}" oncomplete="if (typeof data == 'undefined') alert('all values are valid');" />
The data object in the oncomplete handler is always 'undefined' if IE6 is used. In case of Firefox, the data object depends on the property facesContext.maximumSeverity, that means the data object is available if there is an error. -
4. Re: oncomplete arguments problem
konstantin_grigoriev Sep 19, 2007 3:22 AM (in response to konstantin_grigoriev)I've found this bug in JIRA and i think it's already fixed in svn.
http://jira.jboss.com/jira/browse/RF-963 -
5. Re: oncomplete arguments problem
psw Oct 24, 2008 8:02 AM (in response to konstantin_grigoriev)https://jira.jboss.org/jira/browse/AJSF-141
This sounds like "a4j:form data="#{}" does not populate javascript data variable (data is undefined)".
But as I understand, another elements have the same behaviour: data is always undefined.
I have such a error with a4j:support.<a4j:support event="onchange" ............ data="#{bean.message}" oncomplete="alert(data)" />
Alert constantly shows "undefined". :(
RF 3.2.2. -
6. Re: oncomplete arguments problem
nbelaevski Oct 24, 2008 6:47 PM (in response to konstantin_grigoriev)I've just checked with 3.2.2.GA:
<h:form> <h:inputText> <a4j:support event="onkeyup" data="#{'some data'}" oncomplete="alert(data)" /> </h:inputText> </h:form>
works fine with FF3/IE6/IE7. -
7. Re: oncomplete arguments problem
psw Oct 27, 2008 2:21 AM (in response to konstantin_grigoriev)Oh, I've checked almost the same example, but with the bundle.
data="#{bundle['some_data']}"
May be my problem is with loadBundle... But you case works fine, and my returns "undefined". -
8. Re: oncomplete arguments problem
ilya_shaikovsky Oct 27, 2008 5:06 AM (in response to konstantin_grigoriev)Are you using a4j:loadBundle instead of f:loadBundle? Change if not.
-
9. Re: oncomplete arguments problem
psw Oct 27, 2008 6:46 AM (in response to konstantin_grigoriev)"ilya_shaikovsky" wrote:
Are you using a4j:loadBundle instead of f:loadBundle? Change if not.
Thanks!
This helps.