On 3/20/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> I have a use case where the text of the a page can change depending on the
> skin that is selected.  There is some dynamic text in the original text,
> such as website name, which also changes depending on skin.  However,
> currently I have added a fixed number of Label objects to deal with the
> website name, but this doesn't really work because the text of the page
> might need more instances of the website name.  I can't dynamically add more
> Label objects, so I was wondering how I could do something like Velocity
> where I can put ${websiteName} in the HTML for a page or panel, set the
> variable in the page, and have it rendered properly.  I saw that Wicket
> includes MapVariableInterpolator but how do I do it with the HTML for the
> page?  I don't want to specify a filename because the filename is dependent
> on the style/skin.
>

wicket-contrib-velocity provides exactly what you want

you can get it here with subversion:
https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-velocity

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to