Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay Forms button call in JSF bean.
			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
		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
				
				
					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
		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
			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.
		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.
				
				
					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.
		
		
			Thanks for your reply i was able to capture the next button filter through servlet filter.
		
		
				
				
					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
		- Kyle