[Wicket-user] Property file substitution
Is it possible to substitute properties into other properties? I tried the Ant-like syntax: Page1.properties: my.label=My homepage my.other.label=${my.label} is neat. Is there a syntax which would render my.other.label as 'My homepage is neat.'? -- View this message in context: http://www.nabble.com/Property-file-substitution-tf3382305.html#a9414382 Sent from the Wicket - User mailing list archive at Nabble.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
Re: [Wicket-user] Property file substitution
Take a look at StringResourceModel. It should do what you want. On 3/10/07, Jonathan Cone <[EMAIL PROTECTED]> wrote: Is it possible to substitute properties into other properties? I tried the Ant-like syntax: Page1.properties: my.label=My homepage my.other.label=${my.label} is neat. Is there a syntax which would render my.other.label as 'My homepage is neat.'? -- View this message in context: http://www.nabble.com/Property-file-substitution-tf3382305.html#a9414382 Sent from the Wicket - User mailing list archive at Nabble.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 -- Nick Heudecker Professional Wicket Training & Consulting http://www.systemmobile.com Eventful - Intelligent Event Management http://www.eventfulhq.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
Re: [Wicket-user] Property file substitution
I don't think we support that. Feel free to open a feature request, though personally, while I see the fun factor, I don't think it is something we can't live about. So, please provide a patch if you care about such a feature :) Eelco On 3/10/07, Jonathan Cone <[EMAIL PROTECTED]> wrote: > > Is it possible to substitute properties into other properties? I tried the > Ant-like syntax: > > Page1.properties: > > my.label=My homepage > my.other.label=${my.label} is neat. > > > Is there a syntax which would render my.other.label as 'My homepage is > neat.'? > > > -- > View this message in context: > http://www.nabble.com/Property-file-substitution-tf3382305.html#a9414382 > Sent from the Wicket - User mailing list archive at Nabble.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 > - 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
Re: [Wicket-user] Property file substitution
Oops. I didn't read his email very closely. On 3/11/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: I don't think we support that. Feel free to open a feature request, though personally, while I see the fun factor, I don't think it is something we can't live about. So, please provide a patch if you care about such a feature :) Eelco On 3/10/07, Jonathan Cone <[EMAIL PROTECTED]> wrote: > > Is it possible to substitute properties into other properties? I tried the > Ant-like syntax: > > Page1.properties: > > my.label=My homepage > my.other.label=${my.label} is neat. > > > Is there a syntax which would render my.other.label as 'My homepage is > neat.'? > > > -- > View this message in context: http://www.nabble.com/Property-file-substitution-tf3382305.html#a9414382 > Sent from the Wicket - User mailing list archive at Nabble.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 > - 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 -- Nick Heudecker Professional Wicket Training & Consulting http://www.systemmobile.com Eventful - Intelligent Event Management http://www.eventfulhq.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
Re: [Wicket-user] Property file substitution
You can easily achieve this with ant filtering, for example. ant file snippet: (...) page.properties: my.label=My homepage [EMAIL PROTECTED]@ is neat. my.label2 = My other page [EMAIL PROTECTED]@ is weird [EMAIL PROTECTED]@ and cool. On 3/10/07, Jonathan Cone <[EMAIL PROTECTED]> wrote: Is it possible to substitute properties into other properties? I tried the Ant-like syntax: Page1.properties: my.label=My homepage my.other.label=${my.label} is neat. Is there a syntax which would render my.other.label as 'My homepage is neat.'? -- View this message in context: http://www.nabble.com/Property-file-substitution-tf3382305.html#a9414382 Sent from the Wicket - User mailing list archive at Nabble.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 - 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
Re: [Wicket-user] Property file substitution
oops. Of course the idea is to use the page.properties file as your filtersfile too. On 3/11/07, Alexandre Bairos <[EMAIL PROTECTED]> wrote: You can easily achieve this with ant filtering, for example. ant file snippet: (...) page.properties: my.label=My homepage [EMAIL PROTECTED]@ is neat. my.label2 = My other page [EMAIL PROTECTED]@ is weird [EMAIL PROTECTED]@ and cool. On 3/10/07, Jonathan Cone <[EMAIL PROTECTED]> wrote: > > > Is it possible to substitute properties into other properties? I tried > the > Ant-like syntax: > > Page1.properties: > > my.label=My homepage > my.other.label=${my.label} is neat. > > > Is there a syntax which would render my.other.label as 'My homepage is > neat.'? > > > -- > View this message in context: http://www.nabble.com/Property-file-substitution-tf3382305.html#a9414382 > > Sent from the Wicket - User mailing list archive at Nabble.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 > - 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