« Digital Image Gallery rebuild in Xpages | Main| Xpage: getWeek() function in Server Side JS »

Xpage tip:getValue() of getSubmittedValue()

Category   
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 

I am building a Xpage application with multiple comboboxes. The values will depend on the previous combobox value. In the onChange event of the combobox I wrote some code sessionScope.company = getComponent("company").getValue(); The Change event of the Combox will partial refresh the next combobox, but you don't want any data validation. To suppress this validation you must check the checkbox of 'No data validation' nodatavalidation.png Downside of this property is that my onChange event of the combobox doesn't work anymore. On Twitter I found the solution New code in de onChange Event sessionScope.company = getComponent("company").getSubmittedValue();

Comments

Gravatar Image1 - That's probably the most useful thing I have read on the interweb since, well, for while.

I've been having serious problems getting to grips with server side validation in xpages, so if you have any more gems like this, please feel free to share! Emoticon

Gravatar Image2 - Thanks for your help

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

OpenNTF random projects

PlanetLotus