Re: T5: PageLink on img tag

2009-06-02 Thread Andy Buckley
Thiago H. de Paula Figueiredo wrote: > Em Mon, 01 Jun 2009 12:04:48 -0300, Andy Buckley > escreveu: > >> Hi, > > Hi! > >> (only without the "literal:" bits in practice: these contexts will be >> generated dynamically). The result isn't quite

T5: PageLink on img tag

2009-06-01 Thread Andy Buckley
al PageLink treatment for tags that would use the "src" attribute rather than "href". So, *is* there a nice way to dynamically create src attributes pointing to Tapestry pages? Thanks, Andy -- Dr Andy Buckley Institute for Particle Physics Phenome

Re: T5: Passing named/structured-type params in URLs?

2009-05-19 Thread Andy Buckley
Thiago H. de Paula Figueiredo wrote: > Em Mon, 18 May 2009 13:31:43 -0300, Andy Buckley > escreveu: > >> One final, final (I hope) thing: the decoded context appears to be >> shared between pages using the same session, > > They aren't. Maybe yo

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Andy Buckley
Thiago H. de Paula Figueiredo wrote: > On Mon, May 18, 2009 at 11:48 AM, Andy Buckley > wrote: >> XML >> >> 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 >>

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Andy Buckley
Thiago H. de Paula Figueiredo wrote: > On Mon, May 18, 2009 at 10:57 AM, Andy Buckley > wrote: >> Thanks for the advice. I'd rather avoid using separate pages, as >> mentioned, but including the format handling in the activation context >> is certainly possible

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Andy Buckley
I add public EventContext onPassivate(EventContext context) { return context; } then I get an EventLink URI like this: .../view:xml?t:ac=org.apache.tapestry5.internal.structure.ComponentPageElementImpl$$14$004075ecf6 Bookmarkable, but not something that can be programmatically accessed..

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Andy Buckley
st an expression that I find it rather unusual to have to use explicit loop indices in Java these days when essentially performing a foreach operation ;) Cheers, Andy -- Dr Andy Buckley Institute for Particle Physics Phenomenology Durham University 0191 3343798 | 0191 3732613 | www.insectnation.org

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Andy Buckley
Thiago H. de Paula Figueiredo wrote: > Em Fri, 15 May 2009 12:36:34 -0300, Andy Buckley > escreveu: > >> Any replies to this (see below, or my previous mail in this thread)? >> >> Specifically, can I use Tapestry components to link "bookmarkably" to >

Re: T5: Passing named/structured-type params in URLs?

2009-05-15 Thread Andy Buckley
tem, what alternative approach do you recommend for (extensible) alternative page formats? Cheers, Andy Andy Buckley wrote: Thiago H. de Paula Figueiredo wrote: Em Fri, 08 May 2009 17:39:07 -0300, Andy Buckley escreveu: So, is there a Tapestry meachnism for doing something like this? I can do it

Re: T5: Passing named/structured-type params in URLs?

2009-05-12 Thread Andy Buckley
n how to do this with a custom ValueEncoder as you've suggested, and what the benefits would be of doing it that way? (e.g. would this make it easy to use the same param value encoding scheme on multiple pages?) Cheers, Andy -- Dr Andy Buckley Institute for Particle Physics Phenomenology

Re: T5: Passing named/structured-type params in URLs?

2009-05-12 Thread Andy Buckley
uestion about ActionLinks and URL params/context being passed to event handlers, so if you're still feeling helpful then feel free to chip in elsewhere on the thread ;) Cheers, Andy -- Dr Andy Buckley Institute for Particle Physics Phenomenology Durham Universi

Re: T5: Passing named/structured-type params in URLs?

2009-05-12 Thread Andy Buckley
Thiago H. de Paula Figueiredo wrote: > Em Fri, 08 May 2009 17:39:07 -0300, Andy Buckley > escreveu: > >> So, is there a Tapestry meachnism for doing something like this? I can >> do it right now, but I'd rather not have to fight the system. I would >> expect Tapes

T5: Passing named/structured-type params in URLs?

2009-05-08 Thread Andy Buckley
Hi, I've been using T5 to develop a scientific database Web frontend, and a requirement is that Web visitors need to be able to bookmark pages, i.e. the parameters of what paper, dataset, etc. have to be in the URL. Having looked at the Web documentation and the Packt book, it seemed that PageLi

Re: T5: Using external Hibernate-mapped entities: the "contribute" method goes where?

2007-10-01 Thread Andy Buckley
on is done programmatically rather than via the hibernate.cfg.xml file - but thanks for the suggestion anyway! Cheers, Andy -- Andy Buckley: CEDAR @ IPPP, Durham Work: www.cedar.ac.uk www.insectnation.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

T5: Using external Hibernate-mapped entities: the "contribute" method goes where?

2007-10-01 Thread Andy Buckley
Hi, I'm trying to get Tapestry working with Hibernate - unfortunately there isn't much guidance on this, but I found this tutorial handy: http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate My application differs from this template, though, because the mapped entities are in an ex