Or -1, but it's semantically wrong since nothing is selected and we're dealing with primitive wrappers where null actually has a meaning. :) When nothing is selected, the value *should* be null... No biggie, though. :)

D

Francisco Hernandez wrote:

what about using headerKey="0" headerValue="Select Country"
assuming you can use 0 as a key..

Dag Liodden wrote:

Hi all,

How can I create a select-control with an Integer list-key and have the action property the key set to null when no item has been selected (iemptyOption-parameter is set)? This causes a conversion-error in XWorkConverter since it treats a ""-value as illegal for an Integer field. I agree with the earlier discussions that when passing "" to a string property, it should say as an empty string, not null. :) How about Integers?

Is there a better way to do this?

Cheers,

Dag


------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork








------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to