a4j:support onsubmit with return confirm('question') not working
----------------------------------------------------------------
Key: RF-1488
URL:
http://jira.jboss.com/jira/browse/RF-1488
Project: RichFaces
Issue Type: Bug
Environment: Jboss 4.2.2, RF 3.1.3 snapshot
Reporter: Tomislav Jakopec
working example, but when I click cancel it also does ajax request.
<t:outputText styleClass="velikaSlova" id="strucnaSprema"
value="#{radnoMjesto.strucnaSprema.naziv.naziv}">
<a:support event="onclick"
action="#{radnoMjesto.setStrucnaSprema(null)}"
onsubmit="confirm('#{messages['zajednicke.ponistiVrijednost']}');"
reRender="strucnaSprema" />
</t:outputText>
not working example
<t:outputText styleClass="velikaSlova" id="strucnaSprema"
value="#{radnoMjesto.strucnaSprema.naziv.naziv}">
<a:support event="onclick"
action="#{radnoMjesto.setStrucnaSprema(null)}"
onsubmit="return
confirm('#{messages['zajednicke.ponistiVrijednost']}');"
reRender="strucnaSprema" />
</t:outputText>
when I click OK it doesn't do ajax request
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira