How to format properties file for Messages and @Select

118 views
Skip to first unread message

Filippo De Luca

unread,
Mar 9, 2012, 10:16:54 AM3/9/12
to google-we...@googlegroups.com
Hi,
I have wrote an interface containing this method:

String errorRemovingWidget(@Select Type type);

Type is an enum.

The properties file contains:
errorRemovingWidget=Could not remove widget from dashboard
errorRemovingWidget[A]=Could not remove an A from dashboard
errorRemovingWidget[B]=Could not remove an B from dashboard

But it doesn't work. How the properties file messages should be formatted to work with the Select?




kretel

unread,
Mar 10, 2012, 8:10:40 PM3/10/12
to google-we...@googlegroups.com
Hi,

Did you define default messages annotation for your interface method? 

Than, once you compile your project you should have default properties file created for you. 

Thanks,
Kris

Filippo De Luca

unread,
Mar 12, 2012, 8:21:19 AM3/12/12
to google-we...@googlegroups.com
Thank you Kris
Reply all
Reply to author
Forward
0 new messages