incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Renzo Tomaselli <>
Subject Re: [Trinidad] How to right-align numbers in tr:column
Date Mon, 19 Feb 2007 12:44:13 GMT
Thanks all, now I noticed the "align" attribute. Should the "Formatting" 
paragraph be canceled from tag doc ?
Also I tried to follow the column renderer sources by a debugger: I just 
noticed that there is some automatic style selection based on actual 
child type: text, number and icon. But I miss what should lead to number 
detection, since we have no "outputNumber" component.
An icon is properly recognized if I provide it through tr:icon. The same 
for a string through ouputText.
But if my bean returns an Integer to feed an outputText value, then it 
is assigned an af_column_cell-text selector (thus left-aligned), while I 
expected a af_column_cell-number, which is right-aligned.
So the point is how to trigger this detection mechanism by data contents.

-- Renzo

Felix Gonschorek wrote:
> Hello,
> i do this with <t:column align="end" />
> regards
> felix gonschorek
> Simon Lessard schrieb:
>> Helllo Renzo,
>> I neer played with that property yet, but I think the formatType 
>> should be
>> "number" and not "right". I believe there's also either an align or 
>> halign
>> property to do that.
>> Regards,
>> ~ Simon
>> On 2/19/07, Renzo Tomaselli <> wrote:
>>> Hi, Trinidad tag documentation states that the column component should
>>> have a formatType attribute.
>>> I tried to right-align a numeric cell as <tr:column 
>>> formatType="right">,
>>> but I got the warning "Property 'formatType' is not on type
>>> How can I do align numeric columns ?

View raw message