I woke up at 4AM this morning to find a solution for this and it is
still not working… grrr! lost sleep for nothing!
Anyways, I have 2 select list and I want the content of the second list
to be updated according to what is selected in the first list.
I did this in the past by having my application generate all the
possible content of the second list and make some Javascript to do the
change. But this time, I cant since these list can have more than 100
elements each. So I need the first select to call an action from my
controller that would then return the string to be inserted in the
select.
Reviewing your code and reading a bit more, I finaly managed to make it
work by using an observer on the list. So when the value changes, the
observer call the action and update the other object.
Your code allowed me to learn about the :width option! Never read about
it before