Hi Luke,

The problem with DirectLink is that because the listener is called
before bindings are set, my model isn't available..

Perhaps your issue is similar to that Niklas is encountering. Could it be that you are using 'in' parameters? They get initialized only at the beginning of the render cycle, i.e. after the listeners, while the 'custom' parameters are initialized at page loading.

Basically, make them "custom" and define either get<Parameter>Binding() and set<Parameter>Binding() as described in the docs, or use the trick that I mentioned in the email to Niklas.

In this way you would have no problems using Direct, which is what I think you need in this case.

-mb

 

 Luke Galea <[EMAIL PROTECTED]> wrote:

The problem with DirectLink is that because the listener is called
before bindings are set, my model isn't available.. and the listener for
that event needs to set something in the model. Submit is no good
because I need a link that does this.. not a button.

I am curious ( I will investigate now ).. but how was this accomplished
in the Table component? It has a list of pages, etc on the top of the
table.. Does it use an Action I wonder? If I click next.. then hit
refresh... will it continue on to the next page again or stay where it
was?

Luke Galea
Software Development
BlueCat Networks
905-762-5225


-----Original Message-----
From: Adam Greene [mailto:[EMAIL PROTECTED]]
Sent: November 7, 2002 11:26 AM
To: Luke Galea
Cc: [EMAIL PROTECTED]
Subject: [Tapestry-developer] SubmitLink

Well, there are several things that you could do.

With a DirectLink you could pass the page number as the parameter and
that
way if they refreshed then you would know what page it is supposed to
be.
As to SubmitLink, To submit a form you would simply say
"javascript:this.form.submit()" (I think I have that right) as the HREF.
As
to setting what SubmitLink was pressed, look at the submit component as
it
might give you some hints (I can think of different ways, but Submit
always
worked for me, so I never bothered figuring it out).




-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer



Do you Yahoo!?
U2 on LAUNCH - Exclusive medley & videos from Greatest Hits CD

Reply via email to