I work on application in witch extensivly use State ( "Województwo" , Domain class is Wojewodztwo ), County ("Powiat", Domain class of the same name ) and Gmina ( whitch is the representation of city or village, Domain class is Gmina ) objects. The relationship diagram is like this:
Wojewodztwo -> Powiat -> Gmina
All the relationships are "hasMany" and "belongsTo", respectivly, so Wojewodztwo hasMany "Powiats" and "Gminas" ( Powiatów i Gmin ), Powiat belongsTo Wojewodztwo and hasMany Gminas and Gmina belongsTo one Wojewodztwo and one Powiat. What I have problem with is working chain selction on creating new Gmina, so when I choose Wojewodztwo selection list of Powiats to whitch the Gmina should be, would be shorted only to the Powiats of this Wojewodztwo, not all of them from database. I tired about two ways of doing that - this and this, will be testingthis one - and none is working for me. Could someone help me? Spend half a day on something that should be rather tirval is very demotivating...
Started with this scaffolded selction fields
Second, smaller question - I thinking about using UI plugin and don't know what to choose - GrailsUI, RichUI or maybe Dojo one? Was thinking about using even GWT, but for now, need only some little components like Date Picker in form of calendar etc. Likes the design of components of GrailsUI or Dojo one, but list of elements of RichUI is also tempting.
We can't help you if you don't show us what you have done. Where is your non-scaffolding code you've written to handle the selection change events and send the ajax request and process the response?
posted 9 years ago
Gregg Bolinger wrote:We can't help you if you don't show us what you have done. Where is your non-scaffolding code you've written to handle the selection change events and send the ajax request and process the response?
They were made all on the examples, only changing the names for my app. But here is how I remade them:
Detailed description of problem what you did - Code is in post before
what you expected to happen - Trying to make the DropDown list for Powiats only limited to those in belonging to chosen Wojewodztwo
why you expected it to happen - It's plain and simple offical tutorial and should work as such.
why you need it to happen - To make app easier to use and nicer looking and "slick" in use.
what actually happened instead and why what happened is a problem to you:
The one picture is more worth than 1000 words..
Error message - Non, just not working.
Version numbers of relevant libraries, JDK, tools, operating system etc. - JDK - 1.6.0._17 , Netbeans 6.9, Windows 7 64-bit, Browser = Google Chrome
Code snippets - upper and below
Stack trace - don't know who to show on Netbeans
What else you tried/what worked/what didn't work - other tutorial and didn't work.
Ever since I found this suit I've felt strange new needs. And a tiny ad: