-
1. Re: calling javascript-function with a4j:support?
six-p4ck Apr 1, 2009 9:39 AM (in response to schlumsch)may be just:
<h:inputText onchange="alertme();" />
-
2. Re: calling javascript-function with a4j:support?
nbelaevski Apr 1, 2009 9:40 AM (in response to schlumsch)Hello,
Use onsubmit attribute of a4j:support. -
3. Re: calling javascript-function with a4j:support?
schlumsch Apr 1, 2009 10:56 AM (in response to schlumsch)Well, thanx a lot, works fine. But now another problem occurs, maybe u can also help me with this. The method im calling when user changes the input is placing markers on a googlemap-component. The problem is now, that event onchange occurs earlier than my valuechangelistener. So when the user has entered a new value and leaves the inputelement, all data for displaying markers are empty.
I have also put a simple link on my page for testing. If i change the value of inputtext and activate this link, my map works fine... -
4. Re: calling javascript-function with a4j:support?
schlumsch Apr 1, 2009 11:16 AM (in response to schlumsch)okok, use oncomplete to solve this is the answer :)
-
5. Re: calling javascript-function with a4j:support?
schlumsch Apr 1, 2009 11:29 AM (in response to schlumsch)So, excuse me but there is another question. The same javascrip should now be called after action-method of a commandbutton has finished. Can u tell me how 2 do this?
[CODE]
<a4j:commandButton style="width:170px;" align="right" value="#res.MODALPANELSTARTADDRESSBUTTONNEWADDRESS}"
action="#{e2e.tour.takeStartAddressFromModalPanel}" onclick="#{rich:component('startModalPanel')}.hide(), showPlace()" reRender="startAddressPanelGroup, zusammenfassungStartAddress">
<a4j:actionparam name="hasCanceledStartAddressAlternative" value="true"
assignTo="#{e2e.tour.hasCanceledStartAddressAlternative}" />
<!-- <a4j:support event="onclick" oncomplete="showPlace()" reRender="tourGrid,zusammenfassung,zusammenfassungStartAddress" />-->
</a4j:commandButton>
[CODE]