-
May 25th, 2011, 02:42 PM
#1
looking for a solution for reusable control in view layer
Could you please recommend the best practice for following scenario?
I am implementing a Spring Web App which consists of many separate application forms such as a course registration form, internet connection request form, dorm request form, library registration form.
There are many same html controls used in these pages such as an address section including two edit boxes , one list box contains country list, one list box contains state list.
I am looking for a way to encapsulate each section and reuse them in jsp pages
for example create the address section in separate jsp page with separate controller and then user <c:import to include into the target jsp pages
this solution is not really good as I have to create command object and <form:form for each sub-section (address jsp) then I will end up to have nested form in the target jsp page
I was investigating to use Portal technology however I think creating portlet for each section is too much as those sub sections are not responsible for backend interaction,
basically I just need a solutions to create reusable control in view layer
Thank you
-
Jun 15th, 2011, 09:53 AM
#2
I have found out the feature that I am looking for is a composite component in JSF 2.0, could you please let me know if we have same or equivalent feature in Spring MVC 3.0
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules