m: Riyad Kalla [mailto:rka...@gmail.com]
> > Sent: Friday, February 26, 2010 3:06 PM
> > To: users@wicket.apache.org
> > Subject: Re: format float/double in dataview
> >
> > new SimpleAttributeModifier("text-align", "right") on the Label?
> >
&
}
This way, the cell is right aligned.
Andreas
> -Original Message-
> From: Riyad Kalla [mailto:rka...@gmail.com]
> Sent: Friday, February 26, 2010 3:06 PM
> To: users@wicket.apache.org
> Subject: Re: format float/double in dataview
>
> new SimpleAttributeModifier
Using CSS makes it XHTML compatible.
On Fri, Feb 26, 2010 at 9:18 AM, Riyad Kalla wrote:
> DOH, Wilhelmsen thanks for catching that.
>
> On Fri, Feb 26, 2010 at 7:08 AM, Wilhelmsen Tor Iver
> wrote:
>
>> > new SimpleAttributeModifier("text-align", "right") on the Label?
>>
>> "text-align" is not
DOH, Wilhelmsen thanks for catching that.
On Fri, Feb 26, 2010 at 7:08 AM, Wilhelmsen Tor Iver wrote:
> > new SimpleAttributeModifier("text-align", "right") on the Label?
>
> "text-align" is not a known attribute. It is a CSS property so
> SimpleAttributeModifier("style", "text-align: right") cou
> new SimpleAttributeModifier("text-align", "right") on the Label?
"text-align" is not a known attribute. It is a CSS property so
SimpleAttributeModifier("style", "text-align: right") could work, or there is
an attribute "align" that may or may not be OK depending on HTML spec.
- Tor Iver
the code.
> >
> > Thanks again
> >
> > Andreas
> >
> >> -Original Message-
> >> From: James Carman [mailto:jcar...@carmanconsulting.com]
> >> Sent: Wednesday, February 24, 2010 8:35 PM
> >> To: users@wicket.apache.org
> >
2010 8:35 PM
>> To: users@wicket.apache.org
>> Subject: Re: format float/double in dataview
>>
>> public class MessageFormatColumn extends PropertyColumn
>> {
>> private final String pattern;
>>
>> public MessageFormatColumn(IModel displayModel
-
> From: James Carman [mailto:jcar...@carmanconsulting.com]
> Sent: Wednesday, February 24, 2010 8:35 PM
> To: users@wicket.apache.org
> Subject: Re: format float/double in dataview
>
> public class MessageFormatColumn extends PropertyColumn
> {
> private final
public class MessageFormatColumn extends PropertyColumn
{
private final String pattern;
public MessageFormatColumn(IModel displayModel, String
propertyExpression, String pattern)
{
super(displayModel, propertyExpression);
this.pattern = pattern;
}
public Messag
you can create your own column that uses a label with a specific
converter. or a model that does the conversion.
-igor
On Wed, Feb 24, 2010 at 10:43 AM, Andreas Lüdtke
wrote:
> I'm displaying doubles in an AjaxFallbackDefaultDataTable. Is it possible to
> format them i.e. with a precision of 2 d
10 matches
Mail list logo