tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alvaro tovar" <alvaro.to...@gmail.com>
Subject Re: BreadCrumb thoughts...
Date Mon, 04 Jun 2007 19:14:43 GMT
hi, in zope (www.zope.org ) i see a way to create a navigation bar, but this
is based in the files in the actually folder. This create a list of links to
the page that are in the actuall folder. maybe is posible copy this idea.

i don't know if this is avaible o funtionaly.





On 6/4/07, Jacob Bergoo <jacob.bergoo@gmail.com> wrote:
>
>
> Hi Jan,
> try this:
>
> in your java file:
>
> @InjectObject("engine-service:external")
> public abstract IEngineService getExternalService();
>
>
> String linkURL = getExternalService().getLink(false, new
> ExternalServiceParameter("YourPageName", new Object[] {parameter1,
> parameter2, ...})).getURL());
>
>
>
> in your page file:
>
> public abstract class YourPage extends BasePage implements IExternalPage ,
> PageBeginRenderListener {
>
>         public abstract Long getParameter1();
>         public abstract void setParameter1(Long id);
>
>         public abstract Long getParameter2();
>         public abstract void setParameter2(Long id);
>
>         ....
>
>
>        public void pageBeginRender(PageEvent event) {
>                 // Do something here with the parameters
>         }
>
>         public void activateExternalPage(Object[] parameters,
> IRequestCycle cycle)
> {
>                 setParameter1((Long)parameters[0]);
>                 setParameter2((Long)parameters[1]);
>         }
>
>
>
> }
>
> Hopes it helps,
> Jacob
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/BreadCrumb-thoughts...-tf3866074.html#a10953676
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message