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
Thanks Igor,
As for what you've outlined in #2, I just have one question: suppose
that I had some conditional code in my java which said to add the
number and star iff some condition was true, otherwise just add the
number. Now in the case where I'm adding the star, how do I 'attach'
it to the
you can have two different fragments:
wicket:fragment wicket:id=num div wicket:id=number/div
/wicket:fragment
and
wicket:fragment wicket:id=num-and-star div wicket:id=number/div *
/wicket:fragment
then conditionally add the proper fragment.
-igor
On 5/2/07, Lowell Kirsh [EMAIL PROTECTED]
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
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
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