You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christopher Corde <cc...@yahoo.com> on 2004/03/09 03:56:15 UTC
Passing multiple parameters through a DirectLink
Hey,
I have a simple direct link:
<span jwcid="@DirectLink"
listener="ognl:listeners.deleteSelect"
parameters="ognl:partnerBean,
ognl:productBean">Delete</span>
I want to pass two Objects as parameters into the
next page, but the code above does not work. I also
tried to write a method to place both parameters into
on Object[], and then call that method as a parameter,
but when I did that the link stopped functioning.
Anyone know the proper way to pass multiple parameters
into a DirectLink?
Thanks,
Chris Corde
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Passing multiple parameters through a DirectLink
Posted by Glen Stampoultzis <gs...@iinet.net.au>.
The trouble with doing that with a DirectLink is that the URL would become
huge. Try it and see. There are size limits on URL's as well that would
also place limits on doing this.
Regards,
Glen
At 03:55 PM 9/03/2004, Christopher Corde wrote:
>Thanks for the help.
>
>On your suggestion, I am not using a OR Mapping layer,
>but simply loading beans from the database using JDBC.
>Wouldnt it be less efficient to have to reload all the
>objects on the next page as opposed to passing them
>into the page directly? I had assumed that the ease of
>passing objects between pages is one of the major
>advantages of Tapestry.
>
>Thanks,
>Chris
>
>--- Paul Ferraro <pm...@columbia.edu> wrote:
> > Try this:
> >
> > <span jwcid="@DirectLink"
> > listener="ognl:listeners.deleteSelect"
> >
>parameters="ognl:{partnerBean,productBean}">Delete</span>
> >
> > The {...} syntax is OGNL shorthand for constructing
> > a list.
> >
> > One thought though. It looks like you are trying to
> > pass objects as direct service parameters. Don't
> > forget that these will get squeezed/serialized into
> > the URL. Unless you've implemented custom data
> > squeezers or have implemented custom serialization,
> > you may want to pass identifiers instead.
> >
> > Paul Ferraro
> >
> >
> > Christopher Corde wrote:
> >
> > >Hey,
> > >
> > > I have a simple direct link:
> > >
> > ><span jwcid="@DirectLink"
> > >listener="ognl:listeners.deleteSelect"
> > >parameters="ognl:partnerBean,
> > >ognl:productBean">Delete</span>
> > >
> > > I want to pass two Objects as parameters into the
> > >next page, but the code above does not work. I also
> > >tried to write a method to place both parameters
> > into
> > >on Object[], and then call that method as a
> > parameter,
> > >but when I did that the link stopped functioning.
> > >Anyone know the proper way to pass multiple
> > parameters
> > >into a DirectLink?
> > >
> > >Thanks,
> > >Chris Corde
> > >
> > >
> > >__________________________________
> > >Do you Yahoo!?
> > >Yahoo! Search - Find what you're looking for faster
> > >http://search.yahoo.com
> > >
> >
> >---------------------------------------------------------------------
> > >To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org
> > >
> > >
> > >
> >
> >
> >
>---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org
> >
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Search - Find what you're looking for faster
>http://search.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/
Re: Passing multiple parameters through a DirectLink
Posted by Christopher Corde <cc...@yahoo.com>.
Thanks for the help.
On your suggestion, I am not using a OR Mapping layer,
but simply loading beans from the database using JDBC.
Wouldnt it be less efficient to have to reload all the
objects on the next page as opposed to passing them
into the page directly? I had assumed that the ease of
passing objects between pages is one of the major
advantages of Tapestry.
Thanks,
Chris
--- Paul Ferraro <pm...@columbia.edu> wrote:
> Try this:
>
> <span jwcid="@DirectLink"
> listener="ognl:listeners.deleteSelect"
>
parameters="ognl:{partnerBean,productBean}">Delete</span>
>
> The {...} syntax is OGNL shorthand for constructing
> a list.
>
> One thought though. It looks like you are trying to
> pass objects as direct service parameters. Don't
> forget that these will get squeezed/serialized into
> the URL. Unless you've implemented custom data
> squeezers or have implemented custom serialization,
> you may want to pass identifiers instead.
>
> Paul Ferraro
>
>
> Christopher Corde wrote:
>
> >Hey,
> >
> > I have a simple direct link:
> >
> ><span jwcid="@DirectLink"
> >listener="ognl:listeners.deleteSelect"
> >parameters="ognl:partnerBean,
> >ognl:productBean">Delete</span>
> >
> > I want to pass two Objects as parameters into the
> >next page, but the code above does not work. I also
> >tried to write a method to place both parameters
> into
> >on Object[], and then call that method as a
> parameter,
> >but when I did that the link stopped functioning.
> >Anyone know the proper way to pass multiple
> parameters
> >into a DirectLink?
> >
> >Thanks,
> >Chris Corde
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Yahoo! Search - Find what you�re looking for faster
> >http://search.yahoo.com
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> >
> >
> >
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Passing multiple parameters through a DirectLink
Posted by Paul Ferraro <pm...@columbia.edu>.
Try this:
<span jwcid="@DirectLink" listener="ognl:listeners.deleteSelect" parameters="ognl:{partnerBean,productBean}">Delete</span>
The {...} syntax is OGNL shorthand for constructing a list.
One thought though. It looks like you are trying to pass objects as direct service parameters. Don't forget that these will get squeezed/serialized into the URL. Unless you've implemented custom data squeezers or have implemented custom serialization, you may want to pass identifiers instead.
Paul Ferraro
Christopher Corde wrote:
>Hey,
>
> I have a simple direct link:
>
><span jwcid="@DirectLink"
>listener="ognl:listeners.deleteSelect"
>parameters="ognl:partnerBean,
>ognl:productBean">Delete</span>
>
> I want to pass two Objects as parameters into the
>next page, but the code above does not work. I also
>tried to write a method to place both parameters into
>on Object[], and then call that method as a parameter,
>but when I did that the link stopped functioning.
>Anyone know the proper way to pass multiple parameters
>into a DirectLink?
>
>Thanks,
>Chris Corde
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Search - Find what you’re looking for faster
>http://search.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org