Re: Using wicket:... tags messes up css

2015-03-10 Thread Joachim Schrod
On 03/04/15 22:03, Andreas Lundblad wrote:
 I've noticed that wicket:... tags such as wicket:enclosure messes up
 the CSS sometimes.
 
 In my particular example I have
 
 div.formRows  div {
 display: table-row;
 }
 
 and when I try to put an enclosure around a table row, the CSS child
 selector doesn't work.
 
 Is there an easy workaround (except switching deployment mode)?

Add

@Override
protected void onRender () {
IMarkupSettings markupSettings =
Application.get().getMarkupSettings();
boolean stripWicketTags =
markupSettings.getStripWicketTags();
markupSettings.setStripWicketTags(true);
super.onRender();
markupSettings.setStripWicketTags(stripWicketTags);
}

with an appropriate Javadoc to your respective classes. (I changed
line breaks to fit in 70 columns.)

Joachim

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: jsch...@acm.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using wicket:... tags messes up css

2015-03-04 Thread Thorsten Schöning
Guten Tag Andreas Lundblad,
am Mittwoch, 4. März 2015 um 22:14 schrieben Sie:

 That's a very crude solution. Almost as crude as switching deployment mode.

From my point of view Wicket's tags are an implementation detail and
don't belong to the HTML output, stripping them is therefore the only
correct solution.

 The wicket tags are useful during debugging and I'd like them to be
 available (except possibly in this case) in development mode.

You obviously can't have both, either you see them as part of your end
user DOM, than you need to care in CSS of them, or not, then just
strip them. What exactly do they help you with during debugging? There
might be other solutions for what you are trying to achieve.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning   E-Mail: thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

Telefon...05151-  9468- 55
Fax...05151-  9468- 88
Mobil..0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using wicket:... tags messes up css

2015-03-04 Thread Tobias Soloschenko

Hi,

try getMarkupSettings().setStripWicketTags(true); in the applications init.

kind regards

Tobias

Am 04.03.15 um 22:03 schrieb Andreas Lundblad:

I've noticed that wicket:... tags such as wicket:enclosure messes up
the CSS sometimes.

In my particular example I have

div.formRows  div {
 display: table-row;
}

and when I try to put an enclosure around a table row, the CSS child
selector doesn't work.

Is there an easy workaround (except switching deployment mode)?

best regards,
Andreas Lundblad




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using wicket:... tags messes up css

2015-03-04 Thread Don Ferguson
I think:
getMarkupSettings().setStripWicketTags(true);
in your Application.init() would do the trick.

-Don


 On Mar 4, 2015, at 1:03 PM, Andreas Lundblad andreas.lundb...@gmail.com 
 wrote:
 
 I've noticed that wicket:... tags such as wicket:enclosure messes up
 the CSS sometimes.
 
 In my particular example I have
 
 div.formRows  div {
display: table-row;
 }
 
 and when I try to put an enclosure around a table row, the CSS child
 selector doesn't work.
 
 Is there an easy workaround (except switching deployment mode)?
 
 best regards,
 Andreas Lundblad



Using wicket:... tags messes up css

2015-03-04 Thread Andreas Lundblad
I've noticed that wicket:... tags such as wicket:enclosure messes up
the CSS sometimes.

In my particular example I have

div.formRows  div {
display: table-row;
}

and when I try to put an enclosure around a table row, the CSS child
selector doesn't work.

Is there an easy workaround (except switching deployment mode)?

best regards,
Andreas Lundblad


Re: Using wicket:... tags messes up css

2015-03-04 Thread Andreas Lundblad
That's a very crude solution. Almost as crude as switching deployment mode.

The wicket tags are useful during debugging and I'd like them to be
available (except possibly in this case) in development mode.

best regards,
Andreas Lundblad

On Wed, Mar 4, 2015 at 10:11 PM, Tobias Soloschenko 
tobiassolosche...@googlemail.com wrote:

 Hi,

 try getMarkupSettings().setStripWicketTags(true); in the applications
 init.

 kind regards

 Tobias

 Am 04.03.15 um 22:03 schrieb Andreas Lundblad:

  I've noticed that wicket:... tags such as wicket:enclosure messes up
 the CSS sometimes.

 In my particular example I have

 div.formRows  div {
  display: table-row;
 }

 and when I try to put an enclosure around a table row, the CSS child
 selector doesn't work.

 Is there an easy workaround (except switching deployment mode)?

 best regards,
 Andreas Lundblad



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Using wicket:... tags messes up css

2015-03-04 Thread Andreas Lundblad
Thanks Thorsten,

I understand what you're saying and I agree to some extent.

They're present by default in development mode (which I think makes sense)
so I've gotten used to having them. Maybe I should try to break this habit.
On Mar 4, 2015 10:27 PM, Thorsten Schöning tschoen...@am-soft.de wrote:

 Guten Tag Andreas Lundblad,
 am Mittwoch, 4. März 2015 um 22:14 schrieben Sie:

  That's a very crude solution. Almost as crude as switching deployment
 mode.

 From my point of view Wicket's tags are an implementation detail and
 don't belong to the HTML output, stripping them is therefore the only
 correct solution.

  The wicket tags are useful during debugging and I'd like them to be
  available (except possibly in this case) in development mode.

 You obviously can't have both, either you see them as part of your end
 user DOM, than you need to care in CSS of them, or not, then just
 strip them. What exactly do they help you with during debugging? There
 might be other solutions for what you are trying to achieve.

 Mit freundlichen Grüßen,

 Thorsten Schöning

 --
 Thorsten Schöning   E-Mail: thorsten.schoen...@am-soft.de
 AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

 Telefon...05151-  9468- 55
 Fax...05151-  9468- 88
 Mobil..0178-8 9468- 04

 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
 AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Wicket tags in output markup may change styles

2012-08-21 Thread Adriano dos Santos Fernandes
Hi!

I was creating a website with Wicket and the CSS styles were fine.

Then I decided to replace some texts with wicket:message / and it
changed the formatting.

I know setStripWicketTags(true), but I prefer to have it working with
setStripWicketTags(false) in dev. mode.

The html is actually a XHTML transitional. The affected style is related
to body * { ... }.

I tried things like body *:* { ... } and it fixed the problem, but
introduced another ones. I'm even not sure this is a valid CSS syntax.

Has anyone have a hint on a good way to solve this problem?

Sorry to not create a quickstart, maybe this is well know thing, but it
never happened to me till now.


Adriano


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket tags in output markup may change styles

2012-08-21 Thread Pointbreak
You should at least escape your ':', i.e. something like: BODY
WICKET\:MESSAGE * {   }
But I doubt it will work on any browser. If you really want to keep the
wicket:message tags (imho you're better of without them), you could wrap
them in another container (div/span) and use that conatiner as a css
scope to style your messages.

On Tue, Aug 21, 2012, at 17:55, Adriano dos Santos Fernandes wrote:
 Hi!
 
 I was creating a website with Wicket and the CSS styles were fine.
 
 Then I decided to replace some texts with wicket:message / and it
 changed the formatting.
 
 I know setStripWicketTags(true), but I prefer to have it working with
 setStripWicketTags(false) in dev. mode.
 
 The html is actually a XHTML transitional. The affected style is related
 to body * { ... }.
 
 I tried things like body *:* { ... } and it fixed the problem, but
 introduced another ones. I'm even not sure this is a valid CSS syntax.
 
 Has anyone have a hint on a good way to solve this problem?
 
 Sorry to not create a quickstart, maybe this is well know thing, but it
 never happened to me till now.
 
 
 Adriano
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



stripping of wicket tags in html

2011-05-03 Thread madaan18
hey,

When we add markup for some label.. we do as


but what wicket does is it converts it into HTML like 
value

I think it does this using write output function of class Component tag..

I just wanna know the complete flow it does to convert it into pure HTML..

Please help me for the same..

Further after knowing i want to add a div container outside the span
tag..Please tell me how to do that

--
Thanks in advance

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/stripping-of-wicket-tags-in-html-tp3491865p3491865.html
Sent from the Users forum 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



Re: stripping of wicket tags in html

2011-05-03 Thread Ernesto Reinaldo Barreiro
I can´t see neither what you add nor what you get:-)

Regards,

Ernesto

On Tue, May 3, 2011 at 8:55 AM, madaan18 madaa...@gmail.com wrote:
 hey,

 When we add markup for some label.. we do as


 but what wicket does is it converts it into HTML like
 value

 I think it does this using write output function of class Component tag..

 I just wanna know the complete flow it does to convert it into pure HTML..

 Please help me for the same..

 Further after knowing i want to add a div container outside the span
 tag..Please tell me how to do that

 --
 Thanks in advance

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/stripping-of-wicket-tags-in-html-tp3491865p3491865.html
 Sent from the Users forum 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



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: stripping of wicket tags in html

2011-05-03 Thread madaan18
thanks Ernesto for reply..

I just wanna know how wicket handles the HTML files... HTML does not know
about wicket id .. so it converts it to HTML .. how wicket does this???
please help..

Thanks in advance...

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/stripping-of-wicket-tags-in-html-tp3491865p3491901.html
Sent from the Users forum 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



Re: stripping of wicket tags in html

2011-05-03 Thread Ernesto Reinaldo Barreiro
Maybe as a user you might be more interested in reading some tutorials
and get a general idea on how to use the framework. E.g.

1-https://cwiki.apache.org/WICKET/newuserguide.html
2-https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html

Not sure if this is what you want?

Regards,

Ernesto

On Tue, May 3, 2011 at 9:24 AM, madaan18 madaa...@gmail.com wrote:
 thanks Ernesto for reply..

 I just wanna know how wicket handles the HTML files... HTML does not know
 about wicket id .. so it converts it to HTML .. how wicket does this???
 please help..

 Thanks in advance...

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/stripping-of-wicket-tags-in-html-tp3491865p3491901.html
 Sent from the Users forum 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



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



wicket tags

2011-04-28 Thread kamiseq
hi,
this is more about how you guys working with wicket rather then a bug or
something. and as Im relativelly new to wicket maybe you can help me out.

I created panels that can be extended ie.

wicket:panel
   headermy header/header
   form
  wicket:child/wicket:child
  input type=text /
   /form
/wicket:panel

usually I style the component in offline mode (without running the server)
so I need to add some additional markup to mock it, plus I set wicket to
strip wicket tags and override onComponentTag to set name of the tag (let
say section) so it look like.

section class=custom-component-class
wicket:panel!-- this will go away --
   headermy header/header
   form
  wicket:child/wicket:child
  input type=text /
   /form
/wicket:panel
/section

so now the problem is that

   1. I cannot use css selector like section.custom-component-class  header
   or I need to comment the wicket:panel tag on time I style component
   2. wicket:child is not recognized as valid html tag so I cannot add style
   to it ie. display:none
   3. surrounding wicket:child element with some html tag makes no sens

why wicket tags couldnt be attributes so any valid html could have attribute
like wicket:behavior=panel or type=child or something like that

I know that this is not a big issue. probably designer should create html +
css styles first and then developer turn it into the working code but with
time things like that are annoying,

so how do you work with such problems?

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__


RE: wicket tags

2011-04-28 Thread Wilhelmsen Tor Iver
1) Why do you use immediate-child selectors (involving  ) instead of just 
child selectors (without the )? The selector .custom-component-class header 
will work.
2) wicket namespace tags are removed in deployment mode (or if you tell markup 
settings to strip them), so wicket:child will disappear the same way 
wicket:panel does.
3) Look into approaches that involve less subclassing, the real problem is that 
design-time you will not see the entire HTML template as long as fractions are 
spread around due to child class markup. Even using wicket:fragment elements 
within the replaced element will make it easier to see the design.

mvh
- Tor Iver Wilhelmsen, Arrive AS

-Original Message-
From: kamiseq [mailto:kami...@gmail.com] 
Sent: 28. april 2011 11:14
To: users@wicket.apache.org
Subject: wicket tags

hi,
this is more about how you guys working with wicket rather then a bug or
something. and as Im relativelly new to wicket maybe you can help me out.

I created panels that can be extended ie.

wicket:panel
   headermy header/header
   form
  wicket:child/wicket:child
  input type=text /
   /form
/wicket:panel

usually I style the component in offline mode (without running the server)
so I need to add some additional markup to mock it, plus I set wicket to
strip wicket tags and override onComponentTag to set name of the tag (let
say section) so it look like.

section class=custom-component-class
wicket:panel!-- this will go away --
   headermy header/header
   form
  wicket:child/wicket:child
  input type=text /
   /form
/wicket:panel
/section

so now the problem is that

   1. I cannot use css selector like section.custom-component-class  header
   or I need to comment the wicket:panel tag on time I style component
   2. wicket:child is not recognized as valid html tag so I cannot add style
   to it ie. display:none
   3. surrounding wicket:child element with some html tag makes no sens

why wicket tags couldnt be attributes so any valid html could have attribute
like wicket:behavior=panel or type=child or something like that

I know that this is not a big issue. probably designer should create html +
css styles first and then developer turn it into the working code but with
time things like that are annoying,

so how do you work with such problems?

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__


Re: wicket tags

2011-04-28 Thread kamiseq
I know I can work around this, it is just I see it as a place to improve
framework.

I want to use immediate-child selectors because I see benefits from this
whatever that is
I know that in runtime those tags goes away but while working with raw html
files (let say graphic designer takes them and fixes some bugs with
styling/rendering) he needs to think about wicket as well.

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__


Strip Wicket Tags but keep Wicket IDs

2010-06-21 Thread Baschir Jaghoori
Hi,

Does anyone know if it is possible to remove all Wicket Tags from output
but keep the wicket:id attribute?

Thanks
Baschir


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to strip Wicket tags in development mode?

2010-03-04 Thread David Chang

I understand that in deployment, all Wicket tags are stripped from the rendered 
markup that is sent to the client. 

How can I strip all Wicket tags from the rendered markup in development mode. I 
want to see clean HTML content in the client.

Thanks for help!




  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to strip Wicket tags in development mode?

2010-03-04 Thread James Carman
http://wicket.apache.org/docs/1.4/org/apache/wicket/settings/IMarkupSettings.html#setStripWicketTags%28boolean%29

On Thu, Mar 4, 2010 at 6:44 PM, David Chang david_q_zh...@yahoo.com wrote:

 I understand that in deployment, all Wicket tags are stripped from the 
 rendered markup that is sent to the client.

 How can I strip all Wicket tags from the rendered markup in development mode. 
 I want to see clean HTML content in the client.

 Thanks for help!






 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to strip Wicket tags in development mode?

2010-03-04 Thread Cemal Bayramoglu
David,

Take a look here [1].

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com

[1] http://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html


On 4 March 2010 23:44, David Chang david_q_zh...@yahoo.com wrote:

 I understand that in deployment, all Wicket tags are stripped from the 
 rendered markup that is sent to the client.

 How can I strip all Wicket tags from the rendered markup in development mode. 
 I want to see clean HTML content in the client.

 Thanks for help!






 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to strip Wicket tags in development mode?

2010-03-04 Thread David Chang
James and Cemal,

Thanks so much for your kind help!

Cheers.

--- On Thu, 3/4/10, Cemal Bayramoglu jweekend_for...@cabouge.com wrote:

 From: Cemal Bayramoglu jweekend_for...@cabouge.com
 Subject: Re: How to strip Wicket tags in development mode?
 To: users@wicket.apache.org
 Date: Thursday, March 4, 2010, 6:47 PM
 David,
 
 Take a look here [1].
 
 Regards - Cemal
 jWeekend
 OO  Java Technologies, Wicket
 Consulting, Development, Training
 http://jWeekend.com
 
 [1] 
 http://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html
 
 
 On 4 March 2010 23:44, David Chang david_q_zh...@yahoo.com
 wrote:
 
  I understand that in deployment, all Wicket tags are
 stripped from the rendered markup that is sent to the
 client.
 
  How can I strip all Wicket tags from the rendered
 markup in development mode. I want to see clean HTML content
 in the client.
 
  Thanks for help!
 
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



how to strip wicket tags for particular component

2009-07-20 Thread Vladimir Kovalyuk
I'm trying to convert main menu into components to control visibility of
items depending on the user logged in and the context.
I use borders to wrap menu item into li tags.

The problem is that the rendered markup contains additional wicket:border
and wicket:body tags. They breaks the menu and it is eventually displayed
as the simple list.

Stripping wicket tags at the application level would obviously solve the
problem. But I'd like to keep wicket tags for most markup and strip only for
menu.

Can I override Border class somehow and strip wicket tags manually?


Re: how to strip wicket tags for particular component

2009-07-20 Thread Mathias Nilsson

This may not be the best solution but it should work

DateTextField  dateField = new DateTextField(date, new ModelDate(new
Date())){
@Override
protected void onBeforeRender() {


Application.get().getMarkupSettings().setStripWicketTags(true);
super.onBeforeRender();
}
@Override
protected void onAfterRender() {

Application.get().getMarkupSettings().setStripWicketTags(false);
super.onAfterRender();
}

}; 
-- 
View this message in context: 
http://www.nabble.com/how-to-strip-wicket-tags-for-particular-component-tp24568122p24568890.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



Re: how to strip wicket tags for particular component

2009-07-20 Thread Vladimir K

For now I use the following workaround

public class CleanBorder extends Border {
private boolean savedStripWicketTags; 

public CleanBorder(String id) {
super(id);
setRenderBodyOnly(true);
getBodyContainer().setRenderBodyOnly(true);
}

public CleanBorder(String id, IModel? model) {
super(id, model);
setRenderBodyOnly(true);
getBodyContainer().setRenderBodyOnly(true);
}

@Override
protected void onAfterRender() {
super.onAfterRender();

Application.get().getMarkupSettings().setStripWicketTags(savedStripWicketTags);
}

@Override
protected void onBeforeRender() {
savedStripWicketTags =
Application.get().getMarkupSettings().getStripWicketTags();
Application.get().getMarkupSettings().setStripWicketTags(true);
super.onBeforeRender();
}


that looks like a hack. I would prefer a settings on the MarkupContainer
that by default uses the application settings but in case of border can be
overridden.


Vladimir K wrote:
 
 I'm trying to convert main menu into components to control visibility of
 items depending on the user logged in and the context.
 I use borders to wrap menu item into li tags.
 
 The problem is that the rendered markup contains additional
 wicket:border
 and wicket:body tags. They breaks the menu and it is eventually
 displayed
 as the simple list.
 
 Stripping wicket tags at the application level would obviously solve the
 problem. But I'd like to keep wicket tags for most markup and strip only
 for
 menu.
 
 Can I override Border class somehow and strip wicket tags manually?
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-strip-wicket-tags-for-particular-component-tp24568122p24568909.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



Re: how to strip wicket tags for particular component

2009-07-20 Thread Vladimir K

Mathias,

I just posted right after your post :) Anyway thanks.

The problem is that you can not restore origianal settings when the body of
the border is being rendered. At lease it is difficult to figure out what
workaround I could employ.

Thankfully I haven't to care about that in my case so I use it.


Mathias Nilsson wrote:
 
 This may not be the best solution but it should work
 
 DateTextField  dateField = new DateTextField(date, new ModelDate(new
 Date())){
   @Override
   protected void onBeforeRender() {
   
   
 Application.get().getMarkupSettings().setStripWicketTags(true);
   super.onBeforeRender();
   }
   @Override
   protected void onAfterRender() {
   
 Application.get().getMarkupSettings().setStripWicketTags(false);
   super.onAfterRender();
   }
 
   }; 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-strip-wicket-tags-for-particular-component-tp24568122p24568972.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



Re: how to strip wicket tags for particular component

2009-07-20 Thread Mathias Nilsson

What about

@Override
public void onComponentTag( ComponentTag tag){ 
 tag.remove( wicket:id );
 super.onComponentTag(tag);
} 
-- 
View this message in context: 
http://www.nabble.com/how-to-strip-wicket-tags-for-particular-component-tp24568122p24571367.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



Re: how to strip wicket tags for particular component

2009-07-20 Thread Erik van Oosten

Turning the 2 lines around might give better results.

Regards,
   Erik.


Mathias Nilsson wrote:

What about

@Override
		public void onComponentTag( ComponentTag tag){ 
		 tag.remove( wicket:id );

 super.onComponentTag(tag);
		} 
  


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to strip wicket tags from markup in development mode?

2008-05-21 Thread Lauri Lehtinen

Hi -

Is there an easy way to strip the wicket tags from the produced markup 
while keeping the application in development mode?


I'm finding the development of a Facebook FBML app pretty painful, as 
wicket:* are ignored by Facebook and result in error messages. With 
deployment configuration I get around this, but then I run into a lot of 
Internal error pages which aren't very helpful.


Thanks

--
LL

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to strip wicket tags from markup in development mode?

2008-05-21 Thread Gerolf Seitz
in MyApplication.init():

getMarkupSettings().setStripWicketTags(true);

  Gerolf

On Wed, May 21, 2008 at 7:08 PM, Lauri Lehtinen 
[EMAIL PROTECTED] wrote:

 Hi -

 Is there an easy way to strip the wicket tags from the produced markup
 while keeping the application in development mode?

 I'm finding the development of a Facebook FBML app pretty painful, as
 wicket:* are ignored by Facebook and result in error messages. With
 deployment configuration I get around this, but then I run into a lot of
 Internal error pages which aren't very helpful.

 Thanks

 --
 LL

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: How to strip wicket tags from markup in development mode?

2008-05-21 Thread Uwe Schäfer

Lauri Lehtinen schrieb:

Is there an easy way to strip the wicket tags from the produced markup 
while keeping the application in development mode?


take a look at
http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/settings/Settings.html#setStripWicketTags(boolean)

cu uwe

--

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://morningnews.thomas-daily.de für die 
kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages 
morgens um 9:00 in Ihrer Mailbox.


Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 
8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 
16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer 
Redaktion lautet [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to strip wicket tags from markup in development mode?

2008-05-21 Thread Zappaterrini, Larry
In Application.init add getMarkupSettings().setStripWicketTags(true);

-Original Message-
From: Lauri Lehtinen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 1:09 PM
To: users@wicket.apache.org
Subject: How to strip wicket tags from markup in development mode?

Hi -

Is there an easy way to strip the wicket tags from the produced markup 
while keeping the application in development mode?

I'm finding the development of a Facebook FBML app pretty painful, as 
wicket:* are ignored by Facebook and result in error messages. With 
deployment configuration I get around this, but then I run into a lot of

Internal error pages which aren't very helpful.

Thanks

--
LL

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

__

The information contained in this message is proprietary and/or confidential. 
If you are not the 
intended recipient, please: (i) delete the message and all copies; (ii) do not 
disclose, 
distribute or use the message in any manner; and (iii) notify the sender 
immediately. In addition, 
please be aware that any message addressed to our domain is subject to 
archiving and review by 
persons other than the intended recipient. Thank you.
_

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket tags and IE6

2008-05-17 Thread Frank Bille
What happens if you add the wicket namespace to the html tag?

html xmlns:wicket=http://wicket.apache.org;

Frank

On Fri, May 16, 2008 at 7:33 PM, John Krasnay [EMAIL PROTECTED] wrote:
 I've just noticed a specific problem with Wicket tags interfering with
 IE6. I have a page that uses the jqModal plugin for jQuery to display a
 popup div. It works fine on FF, but on IE6 the overlay (the
 semi-transparent div that blocks out the rest of the page while the
 popup is active) pushes the rest of the content down instead of floating
 above it, and the popup div itself is not visible.

 After quite a bit of debugging I narrowed it down to a Border I was
 using on the page, and I suspect it was the wicket:body tag that was
 giving IE fits.

 Of course, this is easily fixed by suppressing Wicket tags from the
 output, but I was wondering if (a) anyone else had seen this and can
 think of another workaround, and (b) if there's some way of fixing this
 in Wicket itself short of renaming wicket:body.

 jk

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket tags and IE6

2008-05-17 Thread John Krasnay
On Sat, May 17, 2008 at 09:57:13AM +0200, Frank Bille wrote:
 What happens if you add the wicket namespace to the html tag?
 
 html xmlns:wicket=http://wicket.apache.org;
 
 Frank
 

I thought about that, but the page already has the declaration.

jk

 On Fri, May 16, 2008 at 7:33 PM, John Krasnay [EMAIL PROTECTED] wrote:
  I've just noticed a specific problem with Wicket tags interfering with
  IE6. I have a page that uses the jqModal plugin for jQuery to display a
  popup div. It works fine on FF, but on IE6 the overlay (the
  semi-transparent div that blocks out the rest of the page while the
  popup is active) pushes the rest of the content down instead of floating
  above it, and the popup div itself is not visible.
 
  After quite a bit of debugging I narrowed it down to a Border I was
  using on the page, and I suspect it was the wicket:body tag that was
  giving IE fits.
 
  Of course, this is easily fixed by suppressing Wicket tags from the
  output, but I was wondering if (a) anyone else had seen this and can
  think of another workaround, and (b) if there's some way of fixing this
  in Wicket itself short of renaming wicket:body.
 
  jk
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket tags and IE6

2008-05-17 Thread Frank Bille
Then I don't really know. Perhaps file a bug report with Microsoft ;-)

Frank


On Sat, May 17, 2008 at 12:47 PM, John Krasnay [EMAIL PROTECTED] wrote:
 On Sat, May 17, 2008 at 09:57:13AM +0200, Frank Bille wrote:
 What happens if you add the wicket namespace to the html tag?

 html xmlns:wicket=http://wicket.apache.org;

 Frank


 I thought about that, but the page already has the declaration.

 jk

 On Fri, May 16, 2008 at 7:33 PM, John Krasnay [EMAIL PROTECTED] wrote:
  I've just noticed a specific problem with Wicket tags interfering with
  IE6. I have a page that uses the jqModal plugin for jQuery to display a
  popup div. It works fine on FF, but on IE6 the overlay (the
  semi-transparent div that blocks out the rest of the page while the
  popup is active) pushes the rest of the content down instead of floating
  above it, and the popup div itself is not visible.
 
  After quite a bit of debugging I narrowed it down to a Border I was
  using on the page, and I suspect it was the wicket:body tag that was
  giving IE fits.
 
  Of course, this is easily fixed by suppressing Wicket tags from the
  output, but I was wondering if (a) anyone else had seen this and can
  think of another workaround, and (b) if there's some way of fixing this
  in Wicket itself short of renaming wicket:body.
 
  jk
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wicket tags and IE6

2008-05-16 Thread John Krasnay
I've just noticed a specific problem with Wicket tags interfering with
IE6. I have a page that uses the jqModal plugin for jQuery to display a
popup div. It works fine on FF, but on IE6 the overlay (the
semi-transparent div that blocks out the rest of the page while the
popup is active) pushes the rest of the content down instead of floating
above it, and the popup div itself is not visible.

After quite a bit of debugging I narrowed it down to a Border I was
using on the page, and I suspect it was the wicket:body tag that was
giving IE fits.

Of course, this is easily fixed by suppressing Wicket tags from the
output, but I was wondering if (a) anyone else had seen this and can
think of another workaround, and (b) if there's some way of fixing this
in Wicket itself short of renaming wicket:body.

jk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket tags and IE6

2008-05-16 Thread Ryan Gravener
You can place
getMarkupSettings().setStripWicketTags(true); into your Application.init().
I believe these are automatically stripped when you are in deployment mode.

On Fri, May 16, 2008 at 1:33 PM, John Krasnay [EMAIL PROTECTED] wrote:

 I've just noticed a specific problem with Wicket tags interfering with
 IE6. I have a page that uses the jqModal plugin for jQuery to display a
 popup div. It works fine on FF, but on IE6 the overlay (the
 semi-transparent div that blocks out the rest of the page while the
 popup is active) pushes the rest of the content down instead of floating
 above it, and the popup div itself is not visible.

 After quite a bit of debugging I narrowed it down to a Border I was
 using on the page, and I suspect it was the wicket:body tag that was
 giving IE fits.

 Of course, this is easily fixed by suppressing Wicket tags from the
 output, but I was wondering if (a) anyone else had seen this and can
 think of another workaround, and (b) if there's some way of fixing this
 in Wicket itself short of renaming wicket:body.

 jk

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Wicket tags and IE6

2008-05-16 Thread John Krasnay
Yeah, that's the easy fix I mentioned, and it indeed fixes the problem.

jk

On Fri, May 16, 2008 at 01:43:07PM -0400, Ryan Gravener wrote:
 You can place
 getMarkupSettings().setStripWicketTags(true); into your Application.init().
 I believe these are automatically stripped when you are in deployment mode.
 
 On Fri, May 16, 2008 at 1:33 PM, John Krasnay [EMAIL PROTECTED] wrote:
 
  I've just noticed a specific problem with Wicket tags interfering with
  IE6. I have a page that uses the jqModal plugin for jQuery to display a
  popup div. It works fine on FF, but on IE6 the overlay (the
  semi-transparent div that blocks out the rest of the page while the
  popup is active) pushes the rest of the content down instead of floating
  above it, and the popup div itself is not visible.
 
  After quite a bit of debugging I narrowed it down to a Border I was
  using on the page, and I suspect it was the wicket:body tag that was
  giving IE fits.
 
  Of course, this is easily fixed by suppressing Wicket tags from the
  output, but I was wondering if (a) anyone else had seen this and can
  think of another workaround, and (b) if there's some way of fixing this
  in Wicket itself short of renaming wicket:body.
 
  jk
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 Ryan Gravener
 http://twitter.com/ryangravener

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Where to find documentation for Wicket tags?

2008-02-21 Thread Igor Vaynberg
there is a wiki page that lists them...

-igor

On Thu, Feb 21, 2008 at 11:09 AM, MYoung [EMAIL PROTECTED] wrote:

  Are they documented?
  --
  View this message in context: 
 http://www.nabble.com/Where-to-find-documentation-for-Wicket-tags--tp15618680p15618680.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Where to find documentation for Wicket tags?

2008-02-21 Thread Scott Swank
On the wiki

http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html


On Thu, Feb 21, 2008 at 11:09 AM, MYoung [EMAIL PROTECTED] wrote:

  Are they documented?
  --
  View this message in context: 
 http://www.nabble.com/Where-to-find-documentation-for-Wicket-tags--tp15618680p15618680.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Scott Swank
reformed mathematician

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Where to find documentation for Wicket tags?

2008-02-21 Thread MYoung

Are they documented?
-- 
View this message in context: 
http://www.nabble.com/Where-to-find-documentation-for-Wicket-tags--tp15618680p15618680.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Where to find documentation for Wicket tags?

2008-02-21 Thread Claudio Miranda

http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html


MYoung wrote:
 
 Are they documented?
 


-
Claudio Miranda
http://weblogs.java.net/blog/claudio
http://www.claudius.com.br/blog
-- 
View this message in context: 
http://www.nabble.com/Where-to-find-documentation-for-Wicket-tags--tp15618680p15618719.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]