You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Everton Agner <to...@gmail.com> on 2010/12/08 00:06:42 UTC

Order from the Page Names retrieved from ComponentClassResolver

Hi friends,

I would like to know what is the ordering that ComponentClassResolver
returns the list of Page Names via .getPageNames().

Is it ordered by level? From the first one (first package under
'root.pages') to the deeper one? I'm pretty sure that's that, but I need to
be certain.

The JavaDoc says "Returns a list of all page names, in sorted order.", but
it's not clear what order would be.

Thanks!

_______________________
Everton Agner Ramos

Re: Order from the Page Names retrieved from ComponentClassResolver

Posted by Everton Agner <to...@gmail.com>.
Thanks!

_______________________
Everton Agner Ramos


2010/12/7 Thiago H. de Paula Figueiredo <th...@gmail.com>

> On Tue, 07 Dec 2010 21:26:14 -0200, Everton Agner <to...@gmail.com>
> wrote:
>
>  So, the ordering is just A-Z ?
>>
>
> Yes.
>
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Order from the Page Names retrieved from ComponentClassResolver

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, 07 Dec 2010 21:26:14 -0200, Everton Agner <to...@gmail.com>  
wrote:

> So, the ordering is just A-Z ?

Yes.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Order from the Page Names retrieved from ComponentClassResolver

Posted by Everton Agner <to...@gmail.com>.
So, the ordering is just A-Z ?

_______________________
Everton Agner Ramos


2010/12/7 Thiago H. de Paula Figueiredo <th...@gmail.com>

> On Tue, 07 Dec 2010 21:19:23 -0200, Everton Agner <to...@gmail.com>
> wrote:
>
>  I'm developing a generic auto-adapting Menu builder (that'll be open in
>> googlecode also). I need to know the ordering because my algorithm to walk
>> through the tree
>> (it's levels) needs to start from the deeper ones (the leafs) to the first
>> (the root).
>>
>
> In your case, you need some sorting logic that most probably isn't
> implemented inside Tapestry, so I suggest you to implement a Comparator that
> does what you want.
>
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Order from the Page Names retrieved from ComponentClassResolver

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, 07 Dec 2010 21:19:23 -0200, Everton Agner <to...@gmail.com>  
wrote:

> I'm developing a generic auto-adapting Menu builder (that'll be open in
> googlecode also). I need to know the ordering because my algorithm to  
> walk through the tree
> (it's levels) needs to start from the deeper ones (the leafs) to the  
> first (the root).

In your case, you need some sorting logic that most probably isn't  
implemented inside Tapestry, so I suggest you to implement a Comparator  
that does what you want.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Order from the Page Names retrieved from ComponentClassResolver

Posted by Everton Agner <to...@gmail.com>.
I'm developing a generic auto-adapting Menu builder (that'll be open in
googlecode also).

I need to know the ordering because my algorithm to walk through the tree
(it's levels) needs to start from the deeper ones (the leafs) to the first
(the root).

_______________________
Everton Agner Ramos


2010/12/7 Thiago H. de Paula Figueiredo <th...@gmail.com>

> On Tue, 07 Dec 2010 21:06:42 -0200, Everton Agner <to...@gmail.com>
> wrote:
>
>  Hi friends,
>>
>
> Hi, Everton
>
>
>  I would like to know what is the ordering that ComponentClassResolver
>> returns the list of Page Names via .getPageNames().
>>
>
> Why is that important to you? What's your scenario? I can't think of any .
> . .
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Order from the Page Names retrieved from ComponentClassResolver

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, 07 Dec 2010 21:06:42 -0200, Everton Agner <to...@gmail.com>  
wrote:

> Hi friends,

Hi, Everton

> I would like to know what is the ordering that ComponentClassResolver
> returns the list of Page Names via .getPageNames().

Why is that important to you? What's your scenario? I can't think of any .  
. .

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org