JohnG
Feb 9th, 2006, 12:02 PM
Howdy,
Any help would be much appreciated....on two related problems.
I'm working the the Portlet MVC although I think someone with general Web MVC experience will be able to help!
I'm using a SimpleFormController backed by a form backing object. The form view and the success views are one and the same.
I've not encountered anyproblems with this set up....until now.
I've just started to override the referenceData() method to provide a coupld of collection which I use within my jsp to populate some drop downs.
When I submit the form and directed to the success view (the same form) the drop down are no longer populated...I'm guessing this occurs because I am just being dispatched to the form jsp rather than submitting a new render request to the controller which would call amongst other things the referenceData() method.
A colleague is having a similar problem when using a different form backed by a different object as his success view.....the portlet app gets very confused as it attempts to bind the backing object from Form A onto the success view form....
Basically need to know how to get around this issue.
Instead of just hitting the success view as a regular jsp, we really need the submit to be treated as a regular render request dispatched to the controller.
Thanks
Any help would be much appreciated....on two related problems.
I'm working the the Portlet MVC although I think someone with general Web MVC experience will be able to help!
I'm using a SimpleFormController backed by a form backing object. The form view and the success views are one and the same.
I've not encountered anyproblems with this set up....until now.
I've just started to override the referenceData() method to provide a coupld of collection which I use within my jsp to populate some drop downs.
When I submit the form and directed to the success view (the same form) the drop down are no longer populated...I'm guessing this occurs because I am just being dispatched to the form jsp rather than submitting a new render request to the controller which would call amongst other things the referenceData() method.
A colleague is having a similar problem when using a different form backed by a different object as his success view.....the portlet app gets very confused as it attempts to bind the backing object from Form A onto the success view form....
Basically need to know how to get around this issue.
Instead of just hitting the success view as a regular jsp, we really need the submit to be treated as a regular render request dispatched to the controller.
Thanks