You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Paul Spencer <pa...@apache.org> on 2008/08/26 15:00:29 UTC

[TRINIDAD] rowsByDepth in not working as expected.

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

Re: [TRINIDAD] rowsByDepth in not working as expected.

Posted by Paul Spencer <pa...@apache.org>.
Thank you for the responses. I will look into the options.

Paul Spencer

Andrew Robinson wrote:
> 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
> <an...@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 <pa...@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
>>>>
>>>
> 


Re: [TRINIDAD] rowsByDepth in not working as expected.

Posted by Andrew Robinson <an...@gmail.com>.
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
<an...@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 <pa...@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
>>>
>>
>>
>

Re: [TRINIDAD] rowsByDepth in not working as expected.

Posted by Andrew Robinson <an...@gmail.com>.
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 <pa...@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
>>
>
>

Re: [TRINIDAD] rowsByDepth in not working as expected.

Posted by Paul Spencer <pa...@apache.org>.
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
>