Thanks Martijn. How does one go about using css to add markup to a
file? Do you have an example I could look at?

On 4/30/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> Or you could add an attribute modifier and add a class to the
> components, using css to prepend the elements with a *
>
> Martijn
>
> On 5/1/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > that is usually not the wicket way.
> >
> > there are two different ways to do it based on your usecase.
> >
> > 1) you can always add the span with * into markup, but hide it by overriding
> > isvisible or directly calling setvisible. this is good if you dont have too
> > many of these on the screen and so dont care about taking the hit on having
> > components that are not visible in your hierarchy.
> > 2) conditionally adding the markup with or without the *. this will involve
> > having a fragment that contains just the number, and one that contains the
> > number and the star, and conditionally adding one or the other.
> >
> > but like i said it really depends directly on your usecase.
> >
> > -igor
> >
> >
> >
> > On 4/30/07, Lowell Kirsh <[EMAIL PROTECTED] > wrote:
> > > I have a table of numbers, and I want to flag each some of them by
> > > putting a red star next to them. What's the easiest way to do this? I
> > > imagine I'll  have many red stars on the page. Would this be best done
> > > with a subclass of Label which renders itself as normal and also
> > > appends a '<span class=...>*</span>' to the text from within the java
> > > code?
> > >
> > > Thanks,
> > > Lowell
> > >
> > >
> > -------------------------------------------------------------------------
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> --
> Learn Wicket at ApacheCon Europe: http://apachecon.com
> Join the wicket community at irc.freenode.net: ##wicket
> Wicket 1.2.6 contains a very important fix. Download Wicket now!
> http://wicketframework.org
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to