Forums Register Login

onmouseup problem with commandLink

+Pie Number of slices to send: Send
Hi guys...

I have this problem of confirming in JSF. Here's my code:

<h:commandLink id="batchUpdateSpecial" action="{SpecialOrderBean.batchUpdateSelectedOrders}"

onmouseup="if (!confirm('Are you sure you want to update the selected record[s]?')) return false">

<h:outputText id="txtBatchUpdate" styleClass="outputText" value="Perform Batch Update"></h:outputText>
</h:commandLink>


But what happens is that if i click on OK or CANCEL, nothing happens. Isn't it supposed to be that if the return value is true it will go on to the "action" attribute?

Please help!
+Pie Number of slices to send: Send
Try using onclick
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1375 times.
Similar Threads
h:selectOneListbox - causing navigation to fail
Highlighting a row when it's selected
Datatable trying to access non-existent field from Bean
JSF - Renderized String of tags...
Problem with commandLink
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 20:09:41.