0

I'm new to JSF. I am using JSF 2.0.

I'd like to be able to use scripts that use ajax in a classical way, not going through JSF's f:ajax tag.

However, I know that it's easy to mess up with the application's state if you go around JSF features too much. Has anyone done this before? Any ideas on how it should be done? Suggestions and existing frameworks that can help me do this are both valid answers.

jd.
  • 4,057
  • 7
  • 37
  • 45
  • why you don't like the standard way?... – Fabio B. Nov 02 '10 at 10:00
  • Because the standard way doesnt let you use AJAX if there is no user action, button clicked, text entered, etc. If there was support for custom javascript events, I would be happy to use the standard way. – jd. Nov 03 '10 at 04:10

2 Answers2

2

This goes totally beyond the nature of a component based MVC framework. This is going to bite you. Just don't use JSF then. Use an action based MVC framework instead. E.g. Stripes, Spring MVC, etc.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
0

See JSF 2.0 AJAX: Call a bean method from javascript with jsf.ajax.request (or some other way) for a way of doing going around JSF's restrictive AJAX behaviour.

Community
  • 1
  • 1
jd.
  • 4,057
  • 7
  • 37
  • 45