Why don't they have compilers and code autocompletion in gmail?
On Thu, Jul 29, 2010 at 7:01 PM, Scott Swank <[email protected]> wrote:
> You can just use:
>
> new AttributeModifier("class", true, Model.of("the-class-name"));
>
> On Thu, Jul 29, 2010 at 4:57 PM, jverstry <[email protected]> wrote:
> >
> > I just tried to add your code in my code:
> >
> > WebMarkupContainer mydiv = new WebMarkupContainer("MyDiv");
> > mydiv.add(new AttributeModifier("class", true, "the-class-name"));
> > add(mydiv);
> >
> > but it won't compile because the "the-class-name" parameter cannot be a
> > string.
> >
> > I checked the doc and saw that it should be an IModel. This interface is
> > implemented by many classes.
> >
> > Which one should I use?
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307380.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]
>
>
--
Jeremy Thomerson
http://www.wickettraining.com