Xpage tip:getValue() of getSubmittedValue()
Category xpages web domino
Bookmark :
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'
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();
Bookmark :
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'
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
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!
Posted by Andrew At 13:23:08 On 03-10-2009 | - Website - |
Posted by Edwin At 17:36:29 On 18-11-2009 | - Website - |