• Post Reply Bookmark Topic Watch Topic
  • New Topic

issues with selectOneMenu in complex table  RSS feed

 
Robert Garrido
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranch people,


I'm trying to build a complex table with IceFaces, since it is very close to JSF I'm using your forum. Ok, this table:

-should be able to add rows dinamically (a user preses a button next to it)
-each row will have four combo boxes, the first two combo boxes are loaded dinamically depending on the selection of an exterior comobobox



-the third combobox content is filled depending on the selection of the second combobox
-the fourth combobox has fixed values


The first couple of comboboxes are loaded without problem when the exterior combobox is loaded, that's because I'm able to get the value selected using the method "event.getNewValue()" ith the action listener.

The problem comes when the second combobox inside the table is selected, in such a siuation the action listener gets correctly triggered, however the item selected in such a combobox is not being retrieved, it is always null.

I wuold appreciate if you could assist me in order to detect where I'm going wrong, or at least let me know if there is a sample similar to the table I'm building, the tutorials and demos at IceFaces site are great, but I could not find something closer to this situation.

Thanks a lot!


-Fragment of the table jspx:
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're in fact misusing the valueChangeListener here. Rather look for a client-side solution. Ajax may help a lot in this. If I am correct, IceFaces is just another Ajaxical JSF component library. Check if they doesn't provide some Ajax support tags.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!