Its a class that allows a tag attribute of a wicket component to be
modified on the fly with the value supplied.
We can do something like this, hope this makes sense
WebMarkupContainer myImage = new WebMarkupContainer("image");
String url
=image.getThumbnailURL()==null?image.getURL():image.getThumbnailURL();
if(url == null || url.equals(""))
{
myImage.setVisible(false);
}
else
{
AttributeModifier am = new AttributeModifier("src", new Model(url));
myImage.add(am);
}
cheers
-dipu
On Nov 15, 2007 7:29 AM, nlif <[EMAIL PROTECTED]> wrote:
>
> Thanks. What is the "attribute modifier"?
>
> Naaman
>
>
>
>
> alshamsi wrote:
> >
> > In your html page you can use the set the dir attribute of the html tag
> > to the direction you want
> >
> > <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
> >
> > I believe you can do so automatically using the new attribute modifier.
> >
> > Regards
> > Alshamsi
> >
> >
> > nlif wrote:
> >> Hi all,
> >>
> >> I would like to be able to set the page direction: right-to-left or
> >> left-to-right.
> >> This can be done via the browser's view -> switch page direction
> >> menu-option,
> >> but I need to be able to set this dynamically (i.e. by the application),
> >> based on the locale.
> >> Is this supported in Wicket?
> >>
> >>
> >> Thanks,
> >> Naaman
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-can-I-switch-page-direction-%28LTR-RTL%29--tf4805391.html#a13762990
> 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]