• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

issues with selectOneMenu in complex table

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic