Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic page(forms) using tiles

 
azhar bharat
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this webapp where users can post entries on different categories.
The form fields are diferent for each category. So i have different pages with corresponding forms.
I want to add the form dynamically using tiles definition files.
The selection will be based on a parameter passed from a another form (post).
I am also thinking of an option of using resource bundle to decide which form page needs to be displayed.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a question?

Also, please review the JavaRanch naming policy and change your the "publicly displayed name" in your profile so that it complies with the policy.
[ July 18, 2006: Message edited by: Merrill Higginson ]
 
azhar bharat
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a question?

Yes, How do I go about the above mentioned problem? I dont have much experience in using tiles.

Also, please review the JavaRanch naming policy and change your the "publicly displayed name" in your profile so that it complies with the policy.

This is my real name and nothing fictional.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Azhanr S.,

I didn't mean to imply that your name was fictitious. I'm simply pointing out that the policy is to specify both a first and last name. An initial does not qualify as a name.

Merrill
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regarding your question,

I don't think trying to dynamically create Tiles definitions will work. Struts requires that tiles definitions be defined in XML beforehand, and changing them requires a restart of the application.

You could always write your own extensions to Struts in order to do it, but I think it would be profitable to pursue other options before going to the trouble of extending Struts.

I'd suggest you investigate using LazyValidatorForm. It is well suited to dynamically created pages, and does not require you to define field names or types in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic