Re: [Wicket-user] Question about StringResourceModel
Got this sorted out. The problem was on my end - the model object was null. Apologies. On 11/28/06, Johan Compagner [EMAIL PROTECTED] wrote: please add an issue to our jira. On 11/27/06, Nick Heudecker [EMAIL PROTECTED] wrote: I just had a chance to test notice.notice. Here's what I got: java.util.MissingResourceException: Unable to find resource: notice for component: regInProgress On 11/26/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Have you tried notice.notice=My text with ${foo} ? Martijn On 11/26/06, Nick Heudecker [EMAIL PROTECTED] wrote: I'm using Wicket 1.2.3, but tried it with 1.2.2 as well. The output I get is exactly what's in the properties file. No parameter replacement is performed. On 11/26/06, Martijn Dashorst [EMAIL PROTECTED] wrote: To the best of my knowledge this should work, as it is an exact copy from the javadoc. Can you be more specific to what version of Wicket you're using, and what you /do/ get on the browser window? Martijn On 11/26/06, Nick Heudecker [EMAIL PROTECTED] wrote: I'm trying to get the following working and I'm not having much luck: IModel model = new LoadableDetachableModel() { protected Object load() { return session.getRegistrationToken().getPerson(); } }; add(new Label(notice, new StringResourceModel(notice, this, model))); notice=You currently have a registration in progress for ${firstName} ${lastName}. Any thoughts? Thanks for your time. -Nick - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href= http://www.thebeststuffintheworld.com/vote_for/wicket Vote/a for a href= http://www.thebeststuffintheworld.com/stuff/wicket Wicket/a at the a href= http://www.thebeststuffintheworld.com/ Best Stuff in the World!/a - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href= http://www.thebeststuffintheworld.com/vote_for/wicket Vote/a for a href= http://www.thebeststuffintheworld.com/stuff/wicket Wicket/a at the a href= http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about StringResourceModel
I just had a chance to test notice.notice. Here's what I got: java.util.MissingResourceException: Unable to find resource: notice for component: regInProgress On 11/26/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Have you tried notice.notice=My text with ${foo} ? Martijn On 11/26/06, Nick Heudecker [EMAIL PROTECTED] wrote: I'm using Wicket 1.2.3, but tried it with 1.2.2 as well. The output I get is exactly what's in the properties file. No parameter replacement is performed. On 11/26/06, Martijn Dashorst [EMAIL PROTECTED] wrote: To the best of my knowledge this should work, as it is an exact copy from the javadoc. Can you be more specific to what version of Wicket you're using, and what you /do/ get on the browser window? Martijn On 11/26/06, Nick Heudecker [EMAIL PROTECTED] wrote: I'm trying to get the following working and I'm not having much luck: IModel model = new LoadableDetachableModel() { protected Object load() { return session.getRegistrationToken ().getPerson(); } }; add(new Label(notice, new StringResourceModel(notice, this, model))); notice=You currently have a registration in progress for ${firstName} ${lastName}. Any thoughts? Thanks for your time. -Nick - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href= http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about StringResourceModel
Could you be more specific in what you want to achieve? If you want to use a simple message (no arguments) from a resource bundle add(new Label(notice, new ResourceModel(notice))); would be sufficient. Do you need info on where to put the messages? Erik. Nick Heudecker schreef: I'm trying to get the following working and I'm not having much luck: 1. IModel model = new LoadableDetachableModel() { 2. protected Object load() { 3. return session.getRegistrationToken ().getPerson(); 4. } 5. }; 6. 7. add(new Label(notice, new StringResourceModel(notice, this, model))); 8. 9. 10. notice=You currently have a registration in progress for ${firstName} ${lastName}. Any thoughts? Thanks for your time. -Nick -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about StringResourceModel
To the best of my knowledge this should work, as it is an exact copy from the javadoc. Can you be more specific to what version of Wicket you're using, and what you /do/ get on the browser window? Martijn On 11/26/06, Nick Heudecker [EMAIL PROTECTED] wrote: I'm trying to get the following working and I'm not having much luck: IModel model = new LoadableDetachableModel() { protected Object load() { return session.getRegistrationToken ().getPerson(); } }; add(new Label(notice, new StringResourceModel(notice, this, model))); notice=You currently have a registration in progress for ${firstName} ${lastName}. Any thoughts? Thanks for your time. -Nick - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about StringResourceModel
I'm using Wicket 1.2.3, but tried it with 1.2.2 as well. The output I get is exactly what's in the properties file. No parameter replacement is performed. On 11/26/06, Martijn Dashorst [EMAIL PROTECTED] wrote: To the best of my knowledge this should work, as it is an exact copy from the javadoc. Can you be more specific to what version of Wicket you're using, and what you /do/ get on the browser window? Martijn On 11/26/06, Nick Heudecker [EMAIL PROTECTED] wrote: I'm trying to get the following working and I'm not having much luck: IModel model = new LoadableDetachableModel() { protected Object load() { return session.getRegistrationToken ().getPerson(); } }; add(new Label(notice, new StringResourceModel(notice, this, model))); notice=You currently have a registration in progress for ${firstName} ${lastName}. Any thoughts? Thanks for your time. -Nick - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about StringResourceModel
Have you tried notice.notice=My text with ${foo} ? Martijn On 11/26/06, Nick Heudecker [EMAIL PROTECTED] wrote: I'm using Wicket 1.2.3, but tried it with 1.2.2 as well. The output I get is exactly what's in the properties file. No parameter replacement is performed. On 11/26/06, Martijn Dashorst [EMAIL PROTECTED] wrote: To the best of my knowledge this should work, as it is an exact copy from the javadoc. Can you be more specific to what version of Wicket you're using, and what you /do/ get on the browser window? Martijn On 11/26/06, Nick Heudecker [EMAIL PROTECTED] wrote: I'm trying to get the following working and I'm not having much luck: IModel model = new LoadableDetachableModel() { protected Object load() { return session.getRegistrationToken ().getPerson(); } }; add(new Label(notice, new StringResourceModel(notice, this, model))); notice=You currently have a registration in progress for ${firstName} ${lastName}. Any thoughts? Thanks for your time. -Nick - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href= http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user