Announcement Announcement Module
Collapse
No announcement yet.
Binding empty text field to command object Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Binding empty text field to command object

    I need to bind the empty text field to command object property such a way,that the property would be null. The current binding results in having the command object property to be set to empty string.

    Can anybody provide the way to have the property to be set to null (not empty string), so in the server side code we would not need routinely to check the property for empty string value and then set it to null.


    Thanks,
    Len.

  • #2
    Spring provides a property editor named StringTrimmerEditor.

    Jörg

    Comment


    • #3
      That works.

      I am still struggling w/ conversion of comma delimited string into array of string in command bean.

      All posts to my threads related to this issue did not allow me to perform the required binding.

      Maybe you would be able to contact somebody capable to clear out this ?

      Thanks,
      Len.

      Comment

      Working...
      X