Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35E19909C for ; Sun, 8 Apr 2012 10:58:37 +0000 (UTC) Received: (qmail 61688 invoked by uid 500); 8 Apr 2012 10:58:36 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 61561 invoked by uid 500); 8 Apr 2012 10:58:35 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Delivered-To: moderator for dev@myfaces.apache.org Received: (qmail 4916 invoked by uid 99); 8 Apr 2012 00:23:45 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) X-Virus-Scanned: amavisd-new at alinto.net Message-ID: <4F80DA6D.6070304@romandie.com> Date: Sun, 08 Apr 2012 02:23:09 +0200 From: De Marco Steven User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: dev@myfaces.apache.org Subject: Trinidad Question about component extension Content-Type: multipart/alternative; boundary="------------050605030003050507070305" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------050605030003050507070305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, i'm sorry if it's not the right place to ask this question but i found nowhere else to ask (and have a relevant answer) I'm starting to work with adf and also with the trinidad components framework. One of my test case is to build a page where a user can see a list of project. Each project can have sub-Projects and so on... Example : * Project 1 o SubProject 1 * Project 2 o SubProject 2 + SubSubProject 3 + SubSubProject 4 * Project 3 And of course i can't know the depth of all of that (so i can't use the bad pattern of nesting af:iterator) For me it's a question in recursivity. I can't use the af:tree component because i don't want that my user could show/hide projects like with the af:tree So i looked into your source files and try to learn how you did it. Looked into the af:iterator to try to use a TreeModel instead of a CollectionModel. Looked into the af:tree to try to change the TreeRenderer. Looked into the CollectionModel trying to override some properties with goal to simulate the depth of my projects (and then in the view add some spacer to push the subprojects to the rights, but too hackish for me...) After several days trying to learn your code, trying extending or building my own code, i came to the result that a lot of your functionnalities are package protected and that i can't easily extend the UIXIterator or even the UIXHierarchy or the UIXCollection without losing lot of good pattern and code. (and i haven't a good understanding of the concepts) The rewriting of the TreeRenderer was unsuccesful too. Too many concepts that i don't understand. Too many things that i don't know if i can safely ignore. And not even sure how to (and if i can) tell adf to use my Renderer only for that page for the af:tree component. The other solution (some found on the net) seem to hackish and absolutly not safe, so don't want to go that way Please, could you tell me the right way (patterns or concepts) to do that. Which direction can i take to achieve my requierement. Is there somewhere a good documentation where i could find some answers. I know it's certainly not the good place to ask, and it's a very long mail but please could you take some time to explain me how to handle the trinidad (and adf) framework. Thanks for your time and i hope you could help. Steven --------------050605030003050507070305 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi,
i'm sorry if it's not the right place to ask this question but i found nowhere else to ask (and have a relevant answer)

I'm starting to work with adf and also with the trinidad components framework.
One of my test case is to build a page where a user can see a list of project. Each project can have sub-Projects and so on...

Example :
  • Project 1
    • SubProject 1
  • Project 2
    • SubProject 2
      • SubSubProject 3
      • SubSubProject 4
  • Project 3
And of course i can't know the depth of all of that (so i can't use the bad pattern of nesting af:iterator)

For me it's a question in recursivity.
I can't use the af:tree component because i don't want that my user could show/hide projects like with the af:tree

So i looked into your source files and try to learn how you did it.
Looked into the af:iterator to try to use a TreeModel instead of a CollectionModel.
Looked into the af:tree to try to change the TreeRenderer.
Looked into the CollectionModel trying to override some properties with goal to simulate the depth of my projects (and then in the view add some spacer to push the subprojects to the rights, but too hackish for me...)

After several days trying to learn your code, trying extending or building my own code, i came to the result that a lot of your
functionnalities are package protected and that i can't easily extend the UIXIterator or even the UIXHierarchy or the UIXCollection without losing lot of good pattern and code. (and i haven't a good understanding of the concepts)

The rewriting of the TreeRenderer was unsuccesful too. Too many concepts that i don't understand. Too many things that i don't know if i can safely ignore. And not even sure how to (and if i can) tell adf to use my Renderer only for that page for the af:tree component.

The other solution (some found on the net) seem to hackish and absolutly not safe, so don't want to go that way

Please, could you tell me the right way (patterns or concepts) to do that.
Which direction can i take to achieve my requierement. Is there somewhere a good documentation where i could find some answers.

I know it's certainly not the good place to ask, and it's a very long mail but please could you take some time to explain me how to handle the trinidad (and adf) framework.

Thanks for your time and i hope you could help.

Steven

--------------050605030003050507070305--