This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
Get meta with me! What pursues us is our own obsessions! But not this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic