You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Stefan Lindner <li...@visionet.de> on 2008/10/01 14:24:15 UTC
How to get rid of wicket:id in XML output
I'm trying to build a dynamic site map according to Michael Sparers
article
http://cwiki.apache.org/WICKET/seo-search-engine-optimization.html
Instead of an HTML page a XML page is used with XML markup looking like
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url wicket:id="urlList">
<loc wicket:id="locNode">http://www.example.com/</loc>
<lastmod wicket:id="lastmodNode">2005-01-01</lastmod>
<changefreq wicket:id="changefreqNode">monthly</changefreq>
<priority wicket:id="priorityNode">0.8</priority>
</url>
</urlset>
When I use a ListView for "urlList" and add Labels for "locNode" etc.
the wicket:id properties are included in the XML output.
How can I get rid of wicket:id? Setting a global
"getMarkupSettings().setStripWicketTags(true)" does not work.
I use Wicket 1.4M3
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to get rid of wicket:id in XML output
Posted by Igor Vaynberg <ig...@gmail.com>.
that should work, got a quickstart?
-igor
On Wed, Oct 1, 2008 at 5:24 AM, Stefan Lindner <li...@visionet.de> wrote:
> I'm trying to build a dynamic site map according to Michael Sparers
> article
> http://cwiki.apache.org/WICKET/seo-search-engine-optimization.html
> Instead of an HTML page a XML page is used with XML markup looking like
>
> <?xml version="1.0" encoding="UTF-8"?>
> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
> <url wicket:id="urlList">
> <loc wicket:id="locNode">http://www.example.com/</loc>
> <lastmod wicket:id="lastmodNode">2005-01-01</lastmod>
> <changefreq wicket:id="changefreqNode">monthly</changefreq>
> <priority wicket:id="priorityNode">0.8</priority>
> </url>
> </urlset>
>
> When I use a ListView for "urlList" and add Labels for "locNode" etc.
> the wicket:id properties are included in the XML output.
>
> How can I get rid of wicket:id? Setting a global
> "getMarkupSettings().setStripWicketTags(true)" does not work.
>
> I use Wicket 1.4M3
>
> Stefan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to get rid of wicket:id in XML output
Posted by Martin Grigorov <mc...@e-card.bg>.
https://issues.apache.org/jira/browse/WICKET-1859
On Fri, 2008-10-03 at 09:22 -0700, Igor Vaynberg wrote:
> jira issue
>
> -igor
>
> On Thu, Oct 2, 2008 at 11:45 PM, Martin Grigorov <mc...@e-card.bg> wrote:
> >
> > On Thu, 2008-10-02 at 09:35 -0700, Jonathan Locke wrote:
> >>
> >> btw, shouldn't we fail init if super isn't called in this case like those
> >> other protections we built in?
> > +1
> >>
> >> Martijn Dashorst wrote:
> >> >
> >> > Why mocking with that setter. Put wicket in deployment mode. That way
> >> > you can't mess up the order of setting things. Read chapter 14 of
> >> > Wicket in Action on configuring Wicket—it will tell you to call
> >> > super.init() first before doing anything yourself. It also instructs
> >> > you to *NEVER* deploy your web app with development mode to a
> >> > production system.
> >> >
> >> > Martijn
> >> >
> >> > On Wed, Oct 1, 2008 at 2:24 PM, Stefan Lindner <li...@visionet.de>
> >> > wrote:
> >> >> I'm trying to build a dynamic site map according to Michael Sparers
> >> >> article
> >> >> http://cwiki.apache.org/WICKET/seo-search-engine-optimization.html
> >> >> Instead of an HTML page a XML page is used with XML markup looking like
> >> >>
> >> >> <?xml version="1.0" encoding="UTF-8"?>
> >> >> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
> >> >> <url wicket:id="urlList">
> >> >> <loc wicket:id="locNode">http://www.example.com/</loc>
> >> >> <lastmod wicket:id="lastmodNode">2005-01-01</lastmod>
> >> >> <changefreq wicket:id="changefreqNode">monthly</changefreq>
> >> >> <priority wicket:id="priorityNode">0.8</priority>
> >> >> </url>
> >> >> </urlset>
> >> >>
> >> >> When I use a ListView for "urlList" and add Labels for "locNode" etc.
> >> >> the wicket:id properties are included in the XML output.
> >> >>
> >> >> How can I get rid of wicket:id? Setting a global
> >> >> "getMarkupSettings().setStripWicketTags(true)" does not work.
> >> >>
> >> >> I use Wicket 1.4M3
> >> >>
> >> >> Stefan
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> >> For additional commands, e-mail: users-help@wicket.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Become a Wicket expert, learn from the best: http://wicketinaction.com
> >> > Apache Wicket 1.3.4 is released
> >> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> > For additional commands, e-mail: users-help@wicket.apache.org
> >> >
> >> >
> >> >
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to get rid of wicket:id in XML output
Posted by Igor Vaynberg <ig...@gmail.com>.
jira issue
-igor
On Thu, Oct 2, 2008 at 11:45 PM, Martin Grigorov <mc...@e-card.bg> wrote:
>
> On Thu, 2008-10-02 at 09:35 -0700, Jonathan Locke wrote:
>>
>> btw, shouldn't we fail init if super isn't called in this case like those
>> other protections we built in?
> +1
>>
>> Martijn Dashorst wrote:
>> >
>> > Why mocking with that setter. Put wicket in deployment mode. That way
>> > you can't mess up the order of setting things. Read chapter 14 of
>> > Wicket in Action on configuring Wicket—it will tell you to call
>> > super.init() first before doing anything yourself. It also instructs
>> > you to *NEVER* deploy your web app with development mode to a
>> > production system.
>> >
>> > Martijn
>> >
>> > On Wed, Oct 1, 2008 at 2:24 PM, Stefan Lindner <li...@visionet.de>
>> > wrote:
>> >> I'm trying to build a dynamic site map according to Michael Sparers
>> >> article
>> >> http://cwiki.apache.org/WICKET/seo-search-engine-optimization.html
>> >> Instead of an HTML page a XML page is used with XML markup looking like
>> >>
>> >> <?xml version="1.0" encoding="UTF-8"?>
>> >> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
>> >> <url wicket:id="urlList">
>> >> <loc wicket:id="locNode">http://www.example.com/</loc>
>> >> <lastmod wicket:id="lastmodNode">2005-01-01</lastmod>
>> >> <changefreq wicket:id="changefreqNode">monthly</changefreq>
>> >> <priority wicket:id="priorityNode">0.8</priority>
>> >> </url>
>> >> </urlset>
>> >>
>> >> When I use a ListView for "urlList" and add Labels for "locNode" etc.
>> >> the wicket:id properties are included in the XML output.
>> >>
>> >> How can I get rid of wicket:id? Setting a global
>> >> "getMarkupSettings().setStripWicketTags(true)" does not work.
>> >>
>> >> I use Wicket 1.4M3
>> >>
>> >> Stefan
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >> For additional commands, e-mail: users-help@wicket.apache.org
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Become a Wicket expert, learn from the best: http://wicketinaction.com
>> > Apache Wicket 1.3.4 is released
>> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>> >
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to get rid of wicket:id in XML output
Posted by Martin Grigorov <mc...@e-card.bg>.
On Thu, 2008-10-02 at 09:35 -0700, Jonathan Locke wrote:
>
> btw, shouldn't we fail init if super isn't called in this case like those
> other protections we built in?
+1
>
> Martijn Dashorst wrote:
> >
> > Why mocking with that setter. Put wicket in deployment mode. That way
> > you can't mess up the order of setting things. Read chapter 14 of
> > Wicket in Action on configuring Wicket—it will tell you to call
> > super.init() first before doing anything yourself. It also instructs
> > you to *NEVER* deploy your web app with development mode to a
> > production system.
> >
> > Martijn
> >
> > On Wed, Oct 1, 2008 at 2:24 PM, Stefan Lindner <li...@visionet.de>
> > wrote:
> >> I'm trying to build a dynamic site map according to Michael Sparers
> >> article
> >> http://cwiki.apache.org/WICKET/seo-search-engine-optimization.html
> >> Instead of an HTML page a XML page is used with XML markup looking like
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
> >> <url wicket:id="urlList">
> >> <loc wicket:id="locNode">http://www.example.com/</loc>
> >> <lastmod wicket:id="lastmodNode">2005-01-01</lastmod>
> >> <changefreq wicket:id="changefreqNode">monthly</changefreq>
> >> <priority wicket:id="priorityNode">0.8</priority>
> >> </url>
> >> </urlset>
> >>
> >> When I use a ListView for "urlList" and add Labels for "locNode" etc.
> >> the wicket:id properties are included in the XML output.
> >>
> >> How can I get rid of wicket:id? Setting a global
> >> "getMarkupSettings().setStripWicketTags(true)" does not work.
> >>
> >> I use Wicket 1.4M3
> >>
> >> Stefan
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> >
> >
> > --
> > Become a Wicket expert, learn from the best: http://wicketinaction.com
> > Apache Wicket 1.3.4 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to get rid of wicket:id in XML output
Posted by Jonathan Locke <jo...@gmail.com>.
btw, shouldn't we fail init if super isn't called in this case like those
other protections we built in?
Martijn Dashorst wrote:
>
> Why mocking with that setter. Put wicket in deployment mode. That way
> you can't mess up the order of setting things. Read chapter 14 of
> Wicket in Action on configuring Wicket—it will tell you to call
> super.init() first before doing anything yourself. It also instructs
> you to *NEVER* deploy your web app with development mode to a
> production system.
>
> Martijn
>
> On Wed, Oct 1, 2008 at 2:24 PM, Stefan Lindner <li...@visionet.de>
> wrote:
>> I'm trying to build a dynamic site map according to Michael Sparers
>> article
>> http://cwiki.apache.org/WICKET/seo-search-engine-optimization.html
>> Instead of an HTML page a XML page is used with XML markup looking like
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
>> <url wicket:id="urlList">
>> <loc wicket:id="locNode">http://www.example.com/</loc>
>> <lastmod wicket:id="lastmodNode">2005-01-01</lastmod>
>> <changefreq wicket:id="changefreqNode">monthly</changefreq>
>> <priority wicket:id="priorityNode">0.8</priority>
>> </url>
>> </urlset>
>>
>> When I use a ListView for "urlList" and add Labels for "locNode" etc.
>> the wicket:id properties are included in the XML output.
>>
>> How can I get rid of wicket:id? Setting a global
>> "getMarkupSettings().setStripWicketTags(true)" does not work.
>>
>> I use Wicket 1.4M3
>>
>> Stefan
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Wicket-Community-Meetup-in-South-Florida--tp19758680p19782931.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to get rid of wicket:id in XML output
Posted by Martijn Dashorst <ma...@gmail.com>.
Why mocking with that setter. Put wicket in deployment mode. That way
you can't mess up the order of setting things. Read chapter 14 of
Wicket in Action on configuring Wicket—it will tell you to call
super.init() first before doing anything yourself. It also instructs
you to *NEVER* deploy your web app with development mode to a
production system.
Martijn
On Wed, Oct 1, 2008 at 2:24 PM, Stefan Lindner <li...@visionet.de> wrote:
> I'm trying to build a dynamic site map according to Michael Sparers
> article
> http://cwiki.apache.org/WICKET/seo-search-engine-optimization.html
> Instead of an HTML page a XML page is used with XML markup looking like
>
> <?xml version="1.0" encoding="UTF-8"?>
> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
> <url wicket:id="urlList">
> <loc wicket:id="locNode">http://www.example.com/</loc>
> <lastmod wicket:id="lastmodNode">2005-01-01</lastmod>
> <changefreq wicket:id="changefreqNode">monthly</changefreq>
> <priority wicket:id="priorityNode">0.8</priority>
> </url>
> </urlset>
>
> When I use a ListView for "urlList" and add Labels for "locNode" etc.
> the wicket:id properties are included in the XML output.
>
> How can I get rid of wicket:id? Setting a global
> "getMarkupSettings().setStripWicketTags(true)" does not work.
>
> I use Wicket 1.4M3
>
> Stefan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org