Archive for May, 2016

escaping ampersand in url

 

http://stackoverflow.com/questions/1693595/can-we-use-in-url

 

&

<h:commandLink value=” display”
onclick=’window.open(“http://google.com/3101&amp;entity_id=102&amp;pid=99&#8221;);’>
</h:commandLink>

,

Leave a comment

Prevent double submit with a4j:commandButton

Ended up adding these attributes to the a4j:commandButton:

onclick="this.disabled=true" oncomplete="this.disabled=false"

, ,

Leave a comment