M

Liferay portlet + liferay captcha + primefaces

So I needed to implement a captcha for a submit form. This method includes a link to refresh the captcha. This is how I did it.

Add these two namespaces in your f:view :

xmlns:liferay-ui="http://liferay.com/faces/ui" and xmlns:liferay-util="http://liferay.com/faces/util".

Add the following script inside your h:head tags :




Add the following components to your h:body


``
``
``
    ``
    ``
``
``
``
    ``
``

And you're pretty much done.

This article was written by mussuponkki .