[Dojo-interest] ItemFileReadStore question

1 view
Skip to first unread message

Thomas Sattler

unread,
Nov 14, 2009, 4:38:42 PM11/14/09
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


Jim Steil

unread,
Nov 16, 2009, 11:17:39 AM11/16/09
to dojo-i...@mail.dojotoolkit.org

Thomas Sattler

unread,
Nov 16, 2009, 12:01:14 PM11/16/09
to dojo-i...@mail.dojotoolkit.org
Jim,

Thanks for the reply.

I had found this page a while back, in the dojocampus documentation.  I am looking for a specific way of getting a parameter into Struts, and that's what I am so far unable to find.

Thanks,
Tom
Reply all
Reply to author
Forward
0 new messages