On Thursday, September 15, 2011 11:31:37 AM UTC+1, Thomas Broyer wrote:
I don't think ServiceLayerDecorator would work (interface won't validate against domain object; you could use @SkipInterfaceValidation but that actually wouldn't help, at least with GWT 2.4.0: see my comments on http://code.google.com/p/--google-web-toolkit/source/ ).detail?r=10542 How about adding getters and setters to your domain object that do the conversion between JodaTime types and strings or numbers?I.e.public final String getDurationString() {return getDuration().toString();}public final void setDurationString(String s) {setDuration(Duration.parse(s)); }Not ideal but assured to work.Ideally of course, ValueCodex would be pluggable. If you have an idea how to refactor it so anyone could plug his "codecs", that'd be awesome ;-)
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/769ePAcM-vgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment