• 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

html:optionsCollection from a DynaActionForm

Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having trouble getting a html:select component populated from a DynaActionForm.

The page in question is called from a standard forwardAction so I do not have an Action to populate the form with an initial list, however I have based my code on an example which does not seem to require this.

I have a simple DynaActionForm defined:

And my page attempts to construct the select box as follows:

The intention is that an action would populate the drop down with a different set of options depending on other form data when it is next submitted (which is why initially no Action is 'needed'):

However when I first goto that page I get the error:

I've not made an error with the spelling or case of the property names so I don't understand why this is not working.

Interestingly if I change the name of the filter_type (the value I am expecting to be the selected item for the list) I get a different error!

Which I find quite baffling.

Any help would be very much appreciated, on both the difference beween the two, and how to populate the select component.
[ October 10, 2008: Message edited by: Rich Peate ]
Rick Smith
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got around this problem by providing an initialisation action which is called from the standard forward. This initialisation action ensures that a List (ableit an empty one) is defined on the Dynamic Action Form, successful initialisation then forward to my page where the select list of populated based on the List just defined.
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic