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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to