Re: [Wicket-user] Setting html-tags properties
make sure you have WicketMessageTagHandler added to markupparser. -igor I had the same question - but now how exacty do I add WicketMessageTagHandler to markupparser ? I am trying to do this in the application but WicketMessageTagHandler needs a ContainerInfo. Help! - Peter On 1/19/07, Igor Vaynberg [EMAIL PROTECTED] wrote: yes you can :) -igor On 1/19/07, Erik van Oosten [EMAIL PROTECTED] wrote: Wauw! Can also do that with more properties? Something like input wicket:id=somethingButton type=submit value=hereSomething wicket:message=value=key,type=key2/ ? Erik. Igor Vaynberg wrote: input wicket:id=somethingButton type=submit value=hereSomething wicket:message=value=key/ make sure you have WicketMessageTagHandler added to markupparser. -igor - 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] Setting html-tags properties
application.init() { super.init(); getmarkupsettings.setmarkupparserfactory(new MarkupParserFactory() { protected void initMarkupFilters(final MarkupParser parser) { super.initMarkupFilters(parser); parser.registermarkupfilter(new wicketmessagetaghandler()); } -igor On 1/20/07, Peter Thomas [EMAIL PROTECTED] wrote: make sure you have WicketMessageTagHandler added to markupparser. -igor I had the same question - but now how exacty do I add WicketMessageTagHandler to markupparser ? I am trying to do this in the application but WicketMessageTagHandler needs a ContainerInfo. Help! - Peter On 1/19/07, Igor Vaynberg [EMAIL PROTECTED] wrote: yes you can :) -igor On 1/19/07, Erik van Oosten [EMAIL PROTECTED] wrote: Wauw! Can also do that with more properties? Something like input wicket:id=somethingButton type=submit value=hereSomething wicket:message=value=key,type=key2/ ? Erik. Igor Vaynberg wrote: input wicket:id=somethingButton type=submit value=hereSomething wicket:message=value=key/ make sure you have WicketMessageTagHandler added to markupparser. -igor - 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] Setting html-tags properties
Thanks Igor, I'm using 1.2.4 - and now a bit confused with these compilation problems: 1) doesn't WicketMessageTagHandler needs a ContainerInfo in the constructor. Where is the best place to get that from? 2) and the super.initMarkupFilters(parser) line does not compile either. I see that as per apidocs, the compile problem is expected: http://wicket.sourceforge.net/apidocs/wicket/markup/parser/filter/WicketMessageTagHandler.html However from SVN I see that what you provided should work. http://svn.sourceforge.net/viewvc/wicket/trunk/wicket/src/java/wicket/markup/MarkupParserFactory.java?view=markup What am I missing? Thanks, Peter. On 1/20/07, Igor Vaynberg [EMAIL PROTECTED] wrote: application.init() { super.init(); getmarkupsettings.setmarkupparserfactory(new MarkupParserFactory() { protected void initMarkupFilters(final MarkupParser parser) { super.initMarkupFilters (parser); parser.registermarkupfilter(new wicketmessagetaghandler()); } -igor On 1/20/07, Peter Thomas [EMAIL PROTECTED] wrote: make sure you have WicketMessageTagHandler added to markupparser. -igor I had the same question - but now how exacty do I add WicketMessageTagHandler to markupparser ? I am trying to do this in the application but WicketMessageTagHandler needs a ContainerInfo. Help! - Peter - 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] Setting html-tags properties
the code i wrote was against 1.3, im not sure how it is different against 1.2.x, you have 1.2.4 source code right (i dont have it checked out)? just look at how other filters are registered there. -igor On 1/20/07, Peter Thomas [EMAIL PROTECTED] wrote: Thanks Igor, I'm using 1.2.4 - and now a bit confused with these compilation problems: 1) doesn't WicketMessageTagHandler needs a ContainerInfo in the constructor. Where is the best place to get that from? 2) and the super.initMarkupFilters(parser) line does not compile either. I see that as per apidocs, the compile problem is expected: http://wicket.sourceforge.net/apidocs/wicket/markup/parser/filter/WicketMessageTagHandler.html However from SVN I see that what you provided should work. http://svn.sourceforge.net/viewvc/wicket/trunk/wicket/src/java/wicket/markup/MarkupParserFactory.java?view=markup What am I missing? Thanks, Peter. On 1/20/07, Igor Vaynberg [EMAIL PROTECTED] wrote: application.init() { super.init(); getmarkupsettings.setmarkupparserfactory(new MarkupParserFactory() { protected void initMarkupFilters(final MarkupParser parser) { super.initMarkupFilters (parser); parser.registermarkupfilter(new wicketmessagetaghandler()); } -igor On 1/20/07, Peter Thomas [EMAIL PROTECTED] wrote: make sure you have WicketMessageTagHandler added to markupparser. -igor I had the same question - but now how exacty do I add WicketMessageTagHandler to markupparser ? I am trying to do this in the application but WicketMessageTagHandler needs a ContainerInfo. Help! - Peter - 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] Setting html-tags properties
Thanks Igor, I did as you said - got the source also out of the Maven2 repo (easier :) and it is working now with this one line in app init() as follows: WicketMessageTagHandler.enable = true; Thanks for your help, Peter. On 1/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote: the code i wrote was against 1.3, im not sure how it is different against 1.2.x, you have 1.2.4 source code right (i dont have it checked out)? just look at how other filters are registered there. -igor On 1/20/07, Peter Thomas [EMAIL PROTECTED] wrote: Thanks Igor, I'm using 1.2.4 - and now a bit confused with these compilation problems: 1) doesn't WicketMessageTagHandler needs a ContainerInfo in the constructor. Where is the best place to get that from? 2) and the super.initMarkupFilters(parser) line does not compile either. I see that as per apidocs, the compile problem is expected: http://wicket.sourceforge.net/apidocs/wicket/markup/parser/filter/WicketMessageTagHandler.html However from SVN I see that what you provided should work. http://svn.sourceforge.net/viewvc/wicket/trunk/wicket/src/java/wicket/markup/MarkupParserFactory.java?view=markup What am I missing? Thanks, Peter. On 1/20/07, Igor Vaynberg [EMAIL PROTECTED] wrote: application.init() { super.init(); getmarkupsettings.setmarkupparserfactory(new MarkupParserFactory() { protected void initMarkupFilters(final MarkupParser parser) { super.initMarkupFilters (parser); parser.registermarkupfilter(new wicketmessagetaghandler()); } -igor On 1/20/07, Peter Thomas [EMAIL PROTECTED] wrote: make sure you have WicketMessageTagHandler added to markupparser. -igor I had the same question - but now how exacty do I add WicketMessageTagHandler to markupparser ? I am trying to do this in the application but WicketMessageTagHandler needs a ContainerInfo. Help! - Peter - 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] Setting html-tags properties
Wauw! Can also do that with more properties? Something like input wicket:id=somethingButton type=submit value=hereSomething wicket:message=value=key,type=key2/ ? Erik. Igor Vaynberg wrote: input wicket:id=somethingButton type=submit value=hereSomething wicket:message=value=key/ make sure you have WicketMessageTagHandler added to markupparser. -igor -- Erik van Oosten http://www.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] Setting html-tags properties
Thanks a lot. - Juha Igor Vaynberg wrote: input wicket:id=somethingButton type=submit value=hereSomething wicket:message=value=key/ make sure you have WicketMessageTagHandler added to markupparser. -igor On 1/18/07, *Juha Alatalo* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Is there any way to set html components property values in html file based on resource file? For example text can be set nicely using wicket:message wicket:message key=hereSomething/. However as far as I know for tag properties input wicket:id=somethingButton type=submit value=hereSomething/ has to be set in code using AttributeModifier. Am I correct or is there some way to do that all in html? - Juha Alatalo - 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 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: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 - 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] Setting html-tags properties
yes you can :) -igor On 1/19/07, Erik van Oosten [EMAIL PROTECTED] wrote: Wauw! Can also do that with more properties? Something like input wicket:id=somethingButton type=submit value=hereSomething wicket:message=value=key,type=key2/ ? Erik. Igor Vaynberg wrote: input wicket:id=somethingButton type=submit value=hereSomething wicket:message=value=key/ make sure you have WicketMessageTagHandler added to markupparser. -igor -- Erik van Oosten http://www.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 - 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] Setting html-tags properties
input wicket:id=somethingButton type=submit value=hereSomething wicket:message=value=key/ make sure you have WicketMessageTagHandler added to markupparser. -igor On 1/18/07, Juha Alatalo [EMAIL PROTECTED] wrote: Is there any way to set html components property values in html file based on resource file? For example text can be set nicely using wicket:message wicket:message key=hereSomething/. However as far as I know for tag properties input wicket:id=somethingButton type=submit value=hereSomething/ has to be set in code using AttributeModifier. Am I correct or is there some way to do that all in html? - Juha Alatalo - 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