Anyone? On Mar 24, 11:11 am, bconoly <bcon...@gmail.com> wrote: > Hey All, > I'm trying to use the new @AlternateMessage annotation in my > message interface to control messages when some values are null and > some are not. The javadoc for the AlternateMessage says it accepts > Strings but it doesn't seem to handle a null value whether I try to > mark it with none or null. Any suggestions on how I can get this to > work? > > @DefaultMessage("<span class=''label''>User ID:</span> {0}, <span > class=''label''>Alt ID:</span> {1}, <span class=''label''>CIS #:</ > span> {2}, <span class=''label''>Name:</span> {3}") > @AlternateMessage({ > "other|none|none", "<span class=''label''>User ID:</span> {0}, > <span class=''label''>Name:</span> {3}", > "other|other|none", "<span class=''label''>User ID:</span> > {0}, <span class=''label''>Alt ID:</span> {1}, <span > class=''label''>Name:</span> {3}", > "other|none|other", "<span class=''label''>User ID:</span> > {0}, <span class=''label''>CIS #:</span> {2}, <span > class=''label''>Name:</span> {3}", > "none|other|other", "<span class=''label''>Alt ID:</span> {1}, > <span class=''label''>CIS #:</span> {2}, <span class=''label''>Name:</ > span> {3}" > }) > public String userSelection(@Select String memberNumber, @Select > String altMemberNumber, @Select String cisNumber, String memberName); > > Thanks
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.