• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

dynamic page(forms) using tiles

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic