I need to load some select in cascade.
Example:
A: Colors --> if select Colors then --> B: Blue
Number
Red
.
Cian
.
When I execute my initParameter() in the usecase handler (extend
AbstractUsecase), I load the A options, and the B options is empty. I
setParameter(lstA) and get in jx file.
When change the select with the A options I need to set the options in
select attribute. I prefer not use ajax for this.
Now I use this in jx:
...
<select name="idA" id="A"
onchange="location.href='?idA='+this.value" >
....
Then I start the usecase again,and in the initParameter() get the request
parameter idA execute my method getAtributeByA(getParameter(idA)). Then I
sent the list of attribute and fill up the B select in jx.
But need to set again A list, or save this in session In the first execute
of usecase to get it in the second execute or usecase.
How can I use a workflow of usecase form keep attributes in usecase.
Can somebody see me an example for this.
Thanks very much.
--
View this message in context:
http://www.nabble.com/Load-html-select-in-cascade.-tp22461093p22461093.html
Sent from the Lenya - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]