Thomas Sattler
unread,Nov 14, 2009, 4:38:42 PM11/14/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dojo-i...@mail.dojotoolkit.org
Greetings all.
I have a question about ItemFileReadStore.
I am attempting to use Dojo with Struts 2. In the user display page, users can press "Update" and a Dialog box pops up, allowing them to make changes to their data. Dialog boxes in a web browser are very, very cool.
Among other things in the Dialog, there are three dropdown boxes in which a user can specify their location (Continent, Country, Locale). If the user selects "North America" in the Continent box, the Country box should be filled with only USA, Canada, Mexico. If the user selects "Western Europe", the Country box should be filled with countries in Western Europe. And so on; you get the idea. I don't want to put all countries in the world in that "Countries" box and then filter them; I would like to update the box on demand with new data from the server.
I have everything on the Dojo side working, or so Firebug tells me. My problem is on the Struts side. If someone selects "Western Europe", I need to tell Struts that "WE" was selected, and that's what I am not getting. I cannot see how to tell Struts WHAT continent was selected.
My query looks like this:
theStore.fetch({query: {continent:selectedContinent} } );
Does anyone know how to make this work?
Thanks in advance,
Tom