take a look at how GMap2 component resolve that problem: /** * @see org.apache.wicket.MarkupContainer#onRender(org.apache.wicket.markup.MarkupStream) */ @Override protected void onRender(MarkupStream markupStream) { super.onRender(markupStream); if (Application.DEVELOPMENT.equalsIgnoreCase(Application.get().getConfigurationType()) && !Application.get().getMarkupSettings().getStripWicketTags()) { log.warn("Application is in DEVELOPMENT mode && Wicket tags are not stripped," + " Firefox 3.0 will not render the GMap." + " Change to DEPLOYMENT mode || turn on Wicket tags stripping." + " See:" + " http://www.nabble.com/Gmap2-problem-with-Firefox-3.0-to18137475.html."); } }
On Wed, Sep 30, 2009 at 8:55 AM, Martin Letendre <letendre.mar...@gmail.com>wrote: > My component is ment to be distribute to a third party. I have no access to > the Application class. Is there a way to apply the same behavior to a > single > component... > > > On Wed, Sep 30, 2009 at 7:01 AM, Alex Objelean <alex_objel...@yahoo.com > >wrote: > > > > > In your Application class add the following line: > > > > getMarkupSettings().setStripWicketTags(true); > > > > > > Martin Letendre wrote: > > > > > > Don't display the <wicket:panel> tag > > > > > > 1- I am using a wicket panel to create a component here is the code. > > > > > > <wicket:panel> > > > <div> > > > ... some code > > > </div> > > > </wicket:panel> > > > > > > > > > 2- The call to the component is > > > > > > <div wicket:id="actionMenuOne">actions</div> > > > > > > 3- The generated HTML by wicket is > > > > > > <div wicket:id="actionMenuOne" id="actionMenuOne1"> > > > <wicket:panel> > > > <div> > > > ... some code > > > </div> > > > </wicket:panel> > > > </div> > > > > > > 4- The tag <wicket:panel> is breaking some YUI javascript... > > > > > > *Question: * > > > > > > is there a way to exclude <wicket:panel> tag for this component but > keep > > > the <div wicket:id="actionMenuOne"> tag ? > > > > > > > > > > > > > > > > > > > > > -- > > > Martin Letendre > > > 4230 Wilson > > > Montréal, Qc > > > 514.690.8027 > > > > > > > > > > -- > > View this message in context: > > > http://www.nabble.com/exclude-%3Cwicket%3Apanel%3E-tp25678826p25678951.html > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > -- > Martin Letendre > 4230 Wilson > Montréal, Qc > 514.690.8027 > -- Pedro Henrique Oliveira dos Santos