PDA

View Full Version : Spring's Form Controllers with IceFaces?


gkontos
Jun 8th, 2008, 03:51 PM
Is it possible to use Spring's form controllers (ie, SimpleFormController) with icefaces? I suppose the same question would apply to any another jsf implementation.

I'm kind of attached to the simplicity of onSubmit and returning a ModelAndView instance after the form is submitted. Plus, I'd rather not have to put all the navigation rules for my forms into faces-config.

I have been trying to use a bean reference to a class that extends SimpleFormController in my icefaces page. But when my form is submitted, icefaces complains that the bean doesn't exist. Oddly enough icefaces is happy validating the form and loading the form with the spring configuration... It just doesn't like the submission.

Has anyone else wrestled with this? I'd love a pointer...

Thanks!

gkontos
Jun 10th, 2008, 08:24 AM
Barring other ideas I'm gonna push forward with the solution from Cagatay Civici's post titled 'Using Spring to Manage JSF Beans' -- I can't post links, so you'll have to google the link.

For these reading along at home, It's the same as the solution alluded to in Tate and Gehtland's book.