myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: [TRINIDAD] rowsByDepth in <tr:treeTable > not working as expected.
Date Wed, 27 Aug 2008 20:13:14 GMT
An easier alternative is for you to write an EL function that does the
conversion. For example:

rowsByDepth="#{myLib:convertToIntArray('1 2 3 4 5')}"

-Andrew

On Wed, Aug 27, 2008 at 2:10 PM, Andrew Robinson
<andrew.rw.robinson@gmail.com> wrote:
> http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_treeTable.html
>
> Shows that the attribute type is "int[]". So you cannot pass in values
> and expect them to be converted. You can file a wish request and send
> in a patch that will support both the JSP tag and facelets tag
> handlers. The partialTriggers attribute is handled similarily by
> converting space separated strings to a string array. Without the
> patch it probably won't be done though from experience.
>
> -Andrew
>
> On Wed, Aug 27, 2008 at 1:33 PM, Paul Spencer <paulsp@apache.org> wrote:
>> The value of the property rowsByDepth is being passed into the component.
>>  If an array of int is passed, i.e. rowsByDepth=#{myBean.arrayOfInts}", I
>> get the expected output.
>>
>> Thus, should the property value be converted to an array if int?
>>  Is this a bug?
>>  If so, I will file an issue.
>>
>> Paul Spencer
>>
>>
>> Paul Spencer wrote:
>>>
>>> Trinidad 1.2.9 & MyFaces 1.2.3
>>>
>>> I want to use "rowsByDepth" to control the vertical space occupied by the
>>> tree.  Below is the tag I am using to limit any level to 3 rows. It is
>>> adapted form the Tree Table example[1], but I am not seeing the pagination
>>> rows.
>>>
>>> <tr:treeTable var="foo" value="#{enterprise.model}"
>>>    rendered="true"
>>>    rowsByDepth="3"
>>>    initiallyExpanded="true"
>>>    summary="Demo of treeTable"
>>>    binding="#{enterprise.table}"
>>>    >
>>>
>>> Suggestions?
>>>
>>> Paul Spencer
>>>
>>> [1] http://www.irian.at/trinidad-demo/faces/components/treeTable.jspx
>>>
>>
>>
>

Mime
View raw message