Saturday, 15 January 2011

java - Is it possible to bind a Spring Form to an Object using the constructor or by mapping multiple fields to a single value via a custom Editor? -


I have an object that is internal representation that is not suitable for data entry. I have a class with many custom components, one of which is a range class.

I have a fully functional constructor which can handle multiple field options but I do not believe the range class is easy to use two text field inputs instead of a text field field. Spring gets any way to use the constructor instead of the setter injection. Am I wrong about that? If I am not, can it be possible to pair two form elements of the same object member using a custom property editor or some related method?

Thank you!

I do not think much about your problem, assuming that the range object 'range' Start 'and' RangeAndend 'properties. With a field & lt; Spring: Tie Path = "yourObject.rangeStart" & gt; Use and other fields with & lt; Spring: Bind Path = "yourObject.rangeEnd" & gt; .


No comments:

Post a Comment