On Mon, May 18, 2009 at 11:48 AM, Andy Buckley
<andy.buck...@durham.ac.uk> wrote:
> <a href="#" t:type="pagelink" t:page="view" t:context="literal:xml">XML</a>
>
> but as mentioned elsewhere in the thread, this generates a URI without
> the parent page's context (which magically still works), i.e. the URI
> generated by the above is
> .../view/xml
> rather than the hoped-for
> .../view/p1234/xml

You'll need to pass the full context (normal parameters + format parameter):
<a ... t:context="xmlContext">

public Object getXmlContext() {
    List list = new ArrayList(); // or Map
    list.add(parameter1);
    list.add(parameter2);
    list.add("xml");;
}

Of course, as you have the same proper context (without format
parameter) in more than one method, you'll refactor the above method.
Was the example good?

> Can you help with this last piece of the jigsaw? ;) Thanks yet again;
> I've learned a lot about Tapestry thanks to your (pl) helpful replies.

We all learn a lot from each other in this list. :)

-- 
Thiago

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

Reply via email to