Timeline for ActionSupport NOT firing when field getting populated with Javascript
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 24, 2015 at 20:53 | comment | added | JJSHHS | @MarkPond - Yes, the page does have a pageMessages tag. When I see the debug logs, I see that that once the Lookup page gets closed, the parent page is not being loaded at all. However, without using the lookup window, when I change the value in the field on the parent page (the checkParent method fires), I'm able to capture that in the debug logs. | |
Nov 24, 2015 at 20:28 | comment | added | Mark Pond |
What steps did you take to verify that the onchange event isn't firing? Does your page have a pageMessages tag where errors show up? Does your component rerender the pageMessages tag to surface problems? I'd first make sure the change event fires within the parent page by just changing the value manually and then make sure that there aren't validation rules or required fields or other errors preventing the rerender call to the checkParent method from succeeding.
|
|
Nov 24, 2015 at 20:22 | history | edited | JJSHHS | CC BY-SA 3.0 |
added 2 characters in body
|
Nov 24, 2015 at 20:22 | comment | added | JJSHHS | @MarkPond - I changed it to onchange event and it's still not working...Let me update the above post now to show it correctly. I saw in some forum that it's not working for onchange and there was a suggestion to use onblur. Hence, I tried it out. | |
Nov 24, 2015 at 20:02 | comment | added | Mark Pond |
Your actionSupport tag (as written above) is using onBlur which is an event fired after the field loses focus, onChange is an event fired when a field's value changes. You need to use onChange because the user's browser won't ever fire the blur event on the field because it never had focus. Can you confirm that you are using the change event in your code and maybe update the question to be more accurate if so?
|
|
Nov 24, 2015 at 19:30 | answer | added | Mark Pond | timeline score: 1 | |
Nov 24, 2015 at 19:09 | history | edited | JJSHHS | CC BY-SA 3.0 |
added 833 characters in body
|
S Nov 24, 2015 at 8:25 | history | suggested | Ratan Paul | CC BY-SA 3.0 |
update the code indentation
|
Nov 24, 2015 at 7:42 | answer | added | Tushar Sharma | timeline score: 1 | |
Nov 24, 2015 at 6:44 | review | Suggested edits | |||
S Nov 24, 2015 at 8:25 | |||||
Nov 24, 2015 at 6:40 | history | asked | JJSHHS | CC BY-SA 3.0 |