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.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to