• Post Reply Bookmark Topic Watch Topic
  • New Topic

onmouseup problem with commandLink  RSS feed

 
JP Estrada
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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">

<hutputText id="txtBatchUpdate" styleClass="outputText" value="Perform Batch Update"></hutputText>
</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!
 
Rick Beaver
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using onclick
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!