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

html:optionsCollection from a DynaActionForm

 
Greenhorn
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
Greenhorn
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.
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic