Reply To: rewrite prevent Primefaces dialog from showing up

Splash Forums Rewrite Users rewrite prevent Primefaces dialog from showing up Reply To: rewrite prevent Primefaces dialog from showing up

#25007

Seems like Rewrite tries to parse the address and fails.

I think the simplest work around would be to use a plain HTML link for the dialog instead:

<a href="javascript:void(0)" onclick="dlg1.show();" />

There is really no good reason to use a JSF component in this case. Actually using a JSF component will increase your component tree size which has a negative impact on performance.

An alternative would be to either change the value this way:

<h:outputLink value="#" onclick="dlg1.show();" />

Or just return false from onclick which will prevent the default action for the link. This is what I usually do:

<h:outputLink value="javascript:void(0)" onclick="dlg1.show(); return false;" />