Liferay Forms button call in JSF bean.

Ehtisham Zahid, modified 6 Years ago. New Member Posts: 4 Join Date: 3/8/19 Recent Posts
Hi.
while using Liferay forms, is this possible that a bean event can be invoked by clicking button on form ?
we need to hit some other system on every button with custom validations.
Thanks
thumbnail
Kyle Joseph Stiemann, modified 6 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts
Hi Ehtisham,
Could you explain what you are trying to do in more detail? I'm not sure there's an easy way to integrate Liferay Faces with Liferay Forms, but perhaps there's another solution that would work for you.

​​​​​​​- Kyle
Ehtisham Zahid, modified 6 Years ago. New Member Posts: 4 Join Date: 3/8/19 Recent Posts
Hi Kyle.
I am trying to call some validation method on every button call from liferay forms. that method call can be in servlet filters or bean or osgi services.
thumbnail
Kyle Joseph Stiemann, modified 6 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts
Is there a particular reason you cannot extract the logic from the JSF bean into an OSGi service or a common utility class that can be deployed in an OSGi module? Then you could call the service or utility from both JSF and Liferay Forms.
Ehtisham Zahid, modified 6 Years ago. New Member Posts: 4 Join Date: 3/8/19 Recent Posts
Thanks for your reply i was able to capture the next button filter through servlet filter.
thumbnail
Kyle Joseph Stiemann, modified 6 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts
Glad it's working for you, Ehtisham! Thanks for explaining how you got it working and for using Liferay Faces!

- Kyle