Hi Massimo,
for normal links we have two cases: anchor or button.
For an anchor the callback function has to replace the window href. In your jsp you should have something like:
onclick="bootbox.confirm('<c:out value="${_wr_message}"/>',
function(c) { if (c) { setWindowLocation('<webratio:Link link="ln1" position="index"/>'); } } );
event.preventDefault ? event.preventDefault() : event.returnValue = false;
return false;">
For a button you should submit the form, but you have also to specify the flow to follow. This can be done appending an hidden input to the form with the same name of the button.
In this case the jsp should be:
onclick="bootbox.confirm('<c:out value="${_wr_message}"/>', function(c) {
if (c) {
$('#page1FormBean')[0].target='_self';
$('<input type=hidden name=button:ln2 value=button></input>').appendTo($('#page1FormBean'));
$('#page1FormBean')[0].submit();
}
} );
event.preventDefault ? event.preventDefault() : event.returnValue = false;
return false;"
Emanuele