You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Harish Krishnaswamy <wh...@yahoo.com> on 2003/04/17 09:25:08 UTC

Navigation ?

Hi,

I am looking at Tapestry for the last few days and I am very impressed. Although it has a lot of
features similar to Barracuda, I think Tapestry has refined a lot of the features. I have a
question from what I have seen so far though - is there a way of declaring page navigation in the
specification rather than hard coding it in the Page class? If not, is there any specific reason
why it is not allowed?

Thanks and good work!

-Harish

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

RE: Navigation ?

Posted by Harish Krishnaswamy <wh...@yahoo.com>.
Cool, this is exactly what I was looking for. Thanks!


--- "Howard M. Lewis Ship" <hl...@attbi.com> wrote:
> There are always solutions, and Tapestry allows you to make them elegant.
> 
> If you want your navigation to be dynamic in this way, nothing is stopping
> you.  Create a "Border" component to encapsulate navigation (as in the
> Virtual Library), and put the smarts there.  If it wants to read from a
> database, a flat file, an XML descriptor, or from the containing page's meta
> data (i.e., <property> elements in the page spec) ... all of these are fine
> ideas that are lighter wieght than doing it all in Java code.
> 
> --
> Howard M. Lewis Ship
> Creator, Tapestry: Java Web Components
> http://jakarta.apache.org/tapestry
> 
> 
> 
> > -----Original Message-----
> > From: Harish Krishnaswamy [mailto:whonts@yahoo.com] 
> > Sent: Thursday, April 17, 2003 1:48 PM
> > To: Tapestry users
> > Subject: RE: Navigation ?
> > 
> > 
> > Howard,
> > 
> > Regarding this question I was thinking more like Struts where 
> > you can specify the navigation in the struts-config file in a 
> > "forward" under each "action" specification. Tapestry has a 
> > similar solution for assets and I thought it would nice to 
> > have the same for navigation too. It would be a little 
> > annoying to change the code and redeploy it everytime there 
> > is change in the navigation. May be there already a way to do 
> > this that I am not aware of, if so I will be happy to learn :)
> > 
> > Thanks
> > Harish
> > 
> > 
> > --- "Howard M. Lewis Ship" <hl...@attbi.com> wrote:
> > > Could you describe what you mean?  I'm not overly familiar with 
> > > Barracuda. A short example would be useful for purposes of 
> > discussion.
> > > 
> > > Most issues in Tapestry are resolved using components.  Often page 
> > > navigation is supplied by an application-specific component.
> > > 
> > > --
> > > Howard M. Lewis Ship
> > > Creator, Tapestry: Java Web Components 
> > > http://jakarta.apache.org/tapestry
> > > 
> > > 
> > > 
> > > > -----Original Message-----
> > > > From: Harish Krishnaswamy [mailto:whonts@yahoo.com]
> > > > Sent: Thursday, April 17, 2003 3:25 AM
> > > > To: tapestry-user@jakarta.apache.org
> > > > Subject: Navigation ?
> > > > 
> > > > 
> > > > Hi,
> > > > 
> > > > I am looking at Tapestry for the last few days and I am very
> > > > impressed. Although it has a lot of features similar to 
> > > > Barracuda, I think Tapestry has refined a lot of the 
> > > > features. I have a question from what I have seen so far 
> > > > though - is there a way of declaring page navigation in the 
> > > > specification rather than hard coding it in the Page class? 
> > > > If not, is there any specific reason why it is not allowed?
> > > > 
> > > > Thanks and good work!
> > > > 
> > > > -Harish
> > > > 
> > > > __________________________________________________
> > > > Do you Yahoo!?
> > > > The New Yahoo! Search - Faster. Easier. Bingo 
> > > > http://search.yahoo.com
> > > > 
> > > > 
> > --------------------------------------------------------------------
> > > > -
> > > > To unsubscribe, e-mail: 
> > tapestry-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: 
> > tapestry-user-help@jakarta.apache.org
> > > > 
> > > 
> > > 
> > > 
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: 
> > tapestry-user-help@jakarta.apache.org
> > > 
> > 
> > 
> > __________________________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

RE: Navigation ?

Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
There are always solutions, and Tapestry allows you to make them elegant.

If you want your navigation to be dynamic in this way, nothing is stopping
you.  Create a "Border" component to encapsulate navigation (as in the
Virtual Library), and put the smarts there.  If it wants to read from a
database, a flat file, an XML descriptor, or from the containing page's meta
data (i.e., <property> elements in the page spec) ... all of these are fine
ideas that are lighter wieght than doing it all in Java code.

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry



> -----Original Message-----
> From: Harish Krishnaswamy [mailto:whonts@yahoo.com] 
> Sent: Thursday, April 17, 2003 1:48 PM
> To: Tapestry users
> Subject: RE: Navigation ?
> 
> 
> Howard,
> 
> Regarding this question I was thinking more like Struts where 
> you can specify the navigation in the struts-config file in a 
> "forward" under each "action" specification. Tapestry has a 
> similar solution for assets and I thought it would nice to 
> have the same for navigation too. It would be a little 
> annoying to change the code and redeploy it everytime there 
> is change in the navigation. May be there already a way to do 
> this that I am not aware of, if so I will be happy to learn :)
> 
> Thanks
> Harish
> 
> 
> --- "Howard M. Lewis Ship" <hl...@attbi.com> wrote:
> > Could you describe what you mean?  I'm not overly familiar with 
> > Barracuda. A short example would be useful for purposes of 
> discussion.
> > 
> > Most issues in Tapestry are resolved using components.  Often page 
> > navigation is supplied by an application-specific component.
> > 
> > --
> > Howard M. Lewis Ship
> > Creator, Tapestry: Java Web Components 
> > http://jakarta.apache.org/tapestry
> > 
> > 
> > 
> > > -----Original Message-----
> > > From: Harish Krishnaswamy [mailto:whonts@yahoo.com]
> > > Sent: Thursday, April 17, 2003 3:25 AM
> > > To: tapestry-user@jakarta.apache.org
> > > Subject: Navigation ?
> > > 
> > > 
> > > Hi,
> > > 
> > > I am looking at Tapestry for the last few days and I am very
> > > impressed. Although it has a lot of features similar to 
> > > Barracuda, I think Tapestry has refined a lot of the 
> > > features. I have a question from what I have seen so far 
> > > though - is there a way of declaring page navigation in the 
> > > specification rather than hard coding it in the Page class? 
> > > If not, is there any specific reason why it is not allowed?
> > > 
> > > Thanks and good work!
> > > 
> > > -Harish
> > > 
> > > __________________________________________________
> > > Do you Yahoo!?
> > > The New Yahoo! Search - Faster. Easier. Bingo 
> > > http://search.yahoo.com
> > > 
> > > 
> --------------------------------------------------------------------
> > > -
> > > To unsubscribe, e-mail: 
> tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: 
> tapestry-user-help@jakarta.apache.org
> > > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: 
> tapestry-user-help@jakarta.apache.org
> > 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


RE: Navigation ?

Posted by Harish Krishnaswamy <wh...@yahoo.com>.
Howard,

Regarding this question I was thinking more like Struts where you can specify the navigation in
the struts-config file in a "forward" under each "action" specification. Tapestry has a similar
solution for assets and I thought it would nice to have the same for navigation too. It would be a
little annoying to change the code and redeploy it everytime there is change in the navigation.
May be there already a way to do this that I am not aware of, if so I will be happy to learn :)

Thanks
Harish


--- "Howard M. Lewis Ship" <hl...@attbi.com> wrote:
> Could you describe what you mean?  I'm not overly familiar with Barracuda.
> A short example would be useful for purposes of discussion.
> 
> Most issues in Tapestry are resolved using components.  Often page
> navigation is supplied by an application-specific component.
> 
> --
> Howard M. Lewis Ship
> Creator, Tapestry: Java Web Components
> http://jakarta.apache.org/tapestry
> 
> 
> 
> > -----Original Message-----
> > From: Harish Krishnaswamy [mailto:whonts@yahoo.com] 
> > Sent: Thursday, April 17, 2003 3:25 AM
> > To: tapestry-user@jakarta.apache.org
> > Subject: Navigation ?
> > 
> > 
> > Hi,
> > 
> > I am looking at Tapestry for the last few days and I am very 
> > impressed. Although it has a lot of features similar to 
> > Barracuda, I think Tapestry has refined a lot of the 
> > features. I have a question from what I have seen so far 
> > though - is there a way of declaring page navigation in the 
> > specification rather than hard coding it in the Page class? 
> > If not, is there any specific reason why it is not allowed?
> > 
> > Thanks and good work!
> > 
> > -Harish
> > 
> > __________________________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

RE: Navigation ?

Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
Could you describe what you mean?  I'm not overly familiar with Barracuda.
A short example would be useful for purposes of discussion.

Most issues in Tapestry are resolved using components.  Often page
navigation is supplied by an application-specific component.

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry



> -----Original Message-----
> From: Harish Krishnaswamy [mailto:whonts@yahoo.com] 
> Sent: Thursday, April 17, 2003 3:25 AM
> To: tapestry-user@jakarta.apache.org
> Subject: Navigation ?
> 
> 
> Hi,
> 
> I am looking at Tapestry for the last few days and I am very 
> impressed. Although it has a lot of features similar to 
> Barracuda, I think Tapestry has refined a lot of the 
> features. I have a question from what I have seen so far 
> though - is there a way of declaring page navigation in the 
> specification rather than hard coding it in the Page class? 
> If not, is there any specific reason why it is not allowed?
> 
> Thanks and good work!
> 
> -Harish
> 
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>