You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by NateBot2000 <bi...@nathanbeach.com> on 2007/08/01 16:44:49 UTC
Conditionally excluding sections of markup
Howdy:
Is there a way to conditionally exclude sections of wicket markup? What I'm
trying to do is only include a couple of wicket:id's if debug is enabled,
e.g.:
if (logger.isDebugEnabled()) {
add (new Label("label", "text"));
}
Markup:
<? some way to programmatically exclude this ?>
<span wicket:id="label">blah</span>
</?>
Thanks for any hints...
NateBot2000
--
View this message in context: http://www.nabble.com/Conditionally-excluding-sections-of-markup-tf4200496.html#a11946990
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: Conditionally excluding sections of markup
Posted by NateBot2000 <bi...@nathanbeach.com>.
>add(new Label("label", "test").setVisible(logger.isDebugEnabled()));
Perfect -- thanks!
>From NateBot2000
--
View this message in context: http://www.nabble.com/Conditionally-excluding-sections-of-markup-tf4200496.html#a11947962
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: Conditionally excluding sections of markup
Posted by Martijn Dashorst <ma...@gmail.com>.
oki, remove the !
Martijn
On 8/1/07, Martijn Dashorst <ma...@gmail.com> wrote:
> Which can be condensed to:
>
> add(new Label("label", "test").setVisible(!logger.isDebugEnabled()));
>
> Martijn
>
> On 8/1/07, Pierre Coquentin <pi...@anyware-tech.com> wrote:
> > Set your label visible only if you are on debug mode.
> >
> > Label label = new Label("label", "test");
> > label.setVisible(false);
> > if (logger.isDebugEnabled()) {
> > label.setVisible(true);
> > }
> > add (label);
> >
> > and in your html file
> >
> > <span wicket:id="label">blah</span>
> >
> > NateBot2000 wrote:
> > > Howdy:
> > >
> > > Is there a way to conditionally exclude sections of wicket markup? What I'm
> > > trying to do is only include a couple of wicket:id's if debug is enabled,
> > > e.g.:
> > >
> > > if (logger.isDebugEnabled()) {
> > > add (new Label("label", "text"));
> > > }
> > >
> > > Markup:
> > >
> > > <? some way to programmatically exclude this ?>
> > > <span wicket:id="label">blah</span>
> > > </?>
> > >
> > > Thanks for any hints...
> > >
> > > NateBot2000
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> --
> Wicket joins the Apache Software Foundation as Apache Wicket
> Apache Wicket 1.3.0-beta2 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/
>
--
Wicket joins the Apache Software Foundation as Apache Wicket
Apache Wicket 1.3.0-beta2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Conditionally excluding sections of markup
Posted by Martijn Dashorst <ma...@gmail.com>.
Which can be condensed to:
add(new Label("label", "test").setVisible(!logger.isDebugEnabled()));
Martijn
On 8/1/07, Pierre Coquentin <pi...@anyware-tech.com> wrote:
> Set your label visible only if you are on debug mode.
>
> Label label = new Label("label", "test");
> label.setVisible(false);
> if (logger.isDebugEnabled()) {
> label.setVisible(true);
> }
> add (label);
>
> and in your html file
>
> <span wicket:id="label">blah</span>
>
> NateBot2000 wrote:
> > Howdy:
> >
> > Is there a way to conditionally exclude sections of wicket markup? What I'm
> > trying to do is only include a couple of wicket:id's if debug is enabled,
> > e.g.:
> >
> > if (logger.isDebugEnabled()) {
> > add (new Label("label", "text"));
> > }
> >
> > Markup:
> >
> > <? some way to programmatically exclude this ?>
> > <span wicket:id="label">blah</span>
> > </?>
> >
> > Thanks for any hints...
> >
> > NateBot2000
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Wicket joins the Apache Software Foundation as Apache Wicket
Apache Wicket 1.3.0-beta2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Conditionally excluding sections of markup
Posted by Pierre Coquentin <pi...@anyware-tech.com>.
Set your label visible only if you are on debug mode.
Label label = new Label("label", "test");
label.setVisible(false);
if (logger.isDebugEnabled()) {
label.setVisible(true);
}
add (label);
and in your html file
<span wicket:id="label">blah</span>
NateBot2000 wrote:
> Howdy:
>
> Is there a way to conditionally exclude sections of wicket markup? What I'm
> trying to do is only include a couple of wicket:id's if debug is enabled,
> e.g.:
>
> if (logger.isDebugEnabled()) {
> add (new Label("label", "text"));
> }
>
> Markup:
>
> <? some way to programmatically exclude this ?>
> <span wicket:id="label">blah</span>
> </?>
>
> Thanks for any hints...
>
> NateBot2000
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: maven-jetty-plugin Error
Posted by ji...@uk.bnpparibas.com.
Many thanks....
Internet
martijn.dashorst@gmail.com
01/08/2007 16:17
Please respond to
users@wicket.apache.org
To
users
cc
Subject
Re: maven-jetty-plugin Error
There is no 4.2.24 jetty plugin for maven. Use version 6.1.5 for the
latest stable release:
http://www.mvnrepository.com/artifact/org.mortbay.jetty/maven-jetty-plugin/6.1.5
Martijn
On 8/1/07, jimmy.lawrence@uk.bnpparibas.com
<ji...@uk.bnpparibas.com> wrote:
> Hi
>
> Still trying to get started with Wicket and am getting the following
error
> in the QuickStart (mvn jetty:run).
>
> Reason: Unable to download the artifact from any repository
> org.mortbray.jetty:maven-jetty-plugin:pom4,2,24
>
> from the specified remote repositories:
> central <http://repo1.maven.org/maven2>
>
>
> I have the following in my pom file:
>
> <plugin>
> <groupId>org.mortbay.jetty</groupId>
> <artifactId>maven-jetty-plugin</artifactId>
> <version>4.2.24</version>
> <configuration>
> <scanIntervalSeconds>60</scanIntervalSeconds>
> <webAppSourceDirectory>src/webapp</webAppSourceDirectory>
> </configuration>
> </plugin>
>
> Can anyone help please?
>
> Many thanks.
> Jimmy
>
>
> This message and any attachments (the "message") is
> intended solely for the addressees and is confidential.
> If you receive this message in error, please delete it and
> immediately notify the sender. Any use not in accord with
> its purpose, any dissemination or disclosure, either whole
> or partial, is prohibited except formal approval. The internet
> can not guarantee the integrity of this message.
> BNP PARIBAS (and its subsidiaries) shall (will) not
> therefore be liable for the message if modified.
>
>
**********************************************************************************************
>
> BNP Paribas Private Bank London Branch is authorised
> by CECEI & AMF and is regulated by the Financial Services
> Authority for the conduct of its investment business in
> the United Kingdom.
>
> BNP Paribas Securities Services London Branch is authorised
> by CECEI & AMF and is regulated by the Financial Services
> Authority for the conduct of its investment business in
> the United Kingdom.
>
> BNP Paribas Fund Services UK Limited is authorised and
> regulated by the Financial Services Authority
>
>
--
Wicket joins the Apache Software Foundation as Apache Wicket
Apache Wicket 1.3.0-beta2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: maven-jetty-plugin Error
Posted by Martijn Dashorst <ma...@gmail.com>.
There is no 4.2.24 jetty plugin for maven. Use version 6.1.5 for the
latest stable release:
http://www.mvnrepository.com/artifact/org.mortbay.jetty/maven-jetty-plugin/6.1.5
Martijn
On 8/1/07, jimmy.lawrence@uk.bnpparibas.com
<ji...@uk.bnpparibas.com> wrote:
> Hi
>
> Still trying to get started with Wicket and am getting the following error
> in the QuickStart (mvn jetty:run).
>
> Reason: Unable to download the artifact from any repository
> org.mortbray.jetty:maven-jetty-plugin:pom4,2,24
>
> from the specified remote repositories:
> central <http://repo1.maven.org/maven2>
>
>
> I have the following in my pom file:
>
> <plugin>
> <groupId>org.mortbay.jetty</groupId>
> <artifactId>maven-jetty-plugin</artifactId>
> <version>4.2.24</version>
> <configuration>
> <scanIntervalSeconds>60</scanIntervalSeconds>
> <webAppSourceDirectory>src/webapp</webAppSourceDirectory>
> </configuration>
> </plugin>
>
> Can anyone help please?
>
> Many thanks.
> Jimmy
>
>
> This message and any attachments (the "message") is
> intended solely for the addressees and is confidential.
> If you receive this message in error, please delete it and
> immediately notify the sender. Any use not in accord with
> its purpose, any dissemination or disclosure, either whole
> or partial, is prohibited except formal approval. The internet
> can not guarantee the integrity of this message.
> BNP PARIBAS (and its subsidiaries) shall (will) not
> therefore be liable for the message if modified.
>
> **********************************************************************************************
>
> BNP Paribas Private Bank London Branch is authorised
> by CECEI & AMF and is regulated by the Financial Services
> Authority for the conduct of its investment business in
> the United Kingdom.
>
> BNP Paribas Securities Services London Branch is authorised
> by CECEI & AMF and is regulated by the Financial Services
> Authority for the conduct of its investment business in
> the United Kingdom.
>
> BNP Paribas Fund Services UK Limited is authorised and
> regulated by the Financial Services Authority
>
>
--
Wicket joins the Apache Software Foundation as Apache Wicket
Apache Wicket 1.3.0-beta2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
maven-jetty-plugin Error
Posted by ji...@uk.bnpparibas.com.
Hi
Still trying to get started with Wicket and am getting the following error
in the QuickStart (mvn jetty:run).
Reason: Unable to download the artifact from any repository
org.mortbray.jetty:maven-jetty-plugin:pom4,2,24
from the specified remote repositories:
central <http://repo1.maven.org/maven2>
I have the following in my pom file:
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>4.2.24</version>
<configuration>
<scanIntervalSeconds>60</scanIntervalSeconds>
<webAppSourceDirectory>src/webapp</webAppSourceDirectory>
</configuration>
</plugin>
Can anyone help please?
Many thanks.
Jimmy
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
**********************************************************************************************
BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.
BNP Paribas Securities Services London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.
BNP Paribas Fund Services UK Limited is authorised and
regulated by the Financial Services Authority