You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by J <we...@fluidic.com> on 2003/06/15 17:51:36 UTC

Page links with parameters

First, I'm a newb, so forgiving is wonderful.

I have a page that does a search and displays the results.  I would like to 
create a link for each result that would take the result to the edit 
page.  From the vlib demo, I figured that I could use the ExternalLink to 
do this since it has parameters and page attributes.

Is there any other way of accomplishing this?

I thought that I could use a DirectLilnk (it can takes parameters) and the 
listener would place the parameter into the HTTPRequest and then called 
cycle.setPage() to the edit page.  This just seems a little round about, 
and I'm sure that Tapestry has a more elegant method to accomplish this 
process.

Thanks advance.

J


Re: [tapestry] Re: Page links with parameters

Posted by J <we...@fluidic.com>.
Thank you so much.  Your first message just confused me more.  Now I 
understand.  Coming from a Struts backgroud, this  component stuff is very 
different.  I have to remember that I'm working with objects and not 
html/servlet pages.\

Thank you again.  That cleaned up a lot of my code where I was using the 
HTTPRequest to store things.

J

At 6/15/2003 07:47 PM $4, you wrote:
>Ups! I think my previous message don't answer your question .
>
>You can get the selected item using a DirectLink with some paremeter or an 
>ActionLink.
>After this, you can do something like this:
>
>   IPage myEditPage = cycle.getPage("EditPage");
>   myEditPage.setSomeProperty(Something);
>   cycle.activate(myEditPage);
>
>I hope that helps.
>   Julio.
>
>At 11:51 15/06/2003 -0400, you wrote:
>>First, I'm a newb, so forgiving is wonderful.
>>
>>I have a page that does a search and displays the results.  I would like 
>>to create a link for each result that would take the result to the edit 
>>page.  From the vlib demo, I figured that I could use the ExternalLink to 
>>do this since it has parameters and page attributes.
>>
>>Is there any other way of accomplishing this?
>>
>>I thought that I could use a DirectLilnk (it can takes parameters) and 
>>the listener would place the parameter into the HTTPRequest and then 
>>called cycle.setPage() to the edit page.  This just seems a little round 
>>about, and I'm sure that Tapestry has a more elegant method to accomplish 
>>this process.
>>
>>Thanks advance.
>>
>>J
>>
>>
>>---------------------------------------------------------------------
>>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


Re: Page links with parameters

Posted by "Julio C. Rivera" <ju...@ya.com>.
You can to use a ActionLink component.

Read about it at the "Tapestry Component Reference" (if has a good example).

Regards.
   Julio.

At 11:51 15/06/2003 -0400, you wrote:
>First, I'm a newb, so forgiving is wonderful.
>
>I have a page that does a search and displays the results.  I would like 
>to create a link for each result that would take the result to the edit 
>page.  From the vlib demo, I figured that I could use the ExternalLink to 
>do this since it has parameters and page attributes.
>
>Is there any other way of accomplishing this?
>
>I thought that I could use a DirectLilnk (it can takes parameters) and the 
>listener would place the parameter into the HTTPRequest and then called 
>cycle.setPage() to the edit page.  This just seems a little round about, 
>and I'm sure that Tapestry has a more elegant method to accomplish this 
>process.
>
>Thanks advance.
>
>J
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


Re: Page links with parameters

Posted by "Julio C. Rivera" <ju...@ya.com>.
Ups! I think my previous message don't answer your question .

You can get the selected item using a DirectLink with some paremeter or an 
ActionLink.
After this, you can do something like this:

   IPage myEditPage = cycle.getPage("EditPage");
   myEditPage.setSomeProperty(Something);
   cycle.activate(myEditPage);

I hope that helps.
   Julio.

At 11:51 15/06/2003 -0400, you wrote:
>First, I'm a newb, so forgiving is wonderful.
>
>I have a page that does a search and displays the results.  I would like 
>to create a link for each result that would take the result to the edit 
>page.  From the vlib demo, I figured that I could use the ExternalLink to 
>do this since it has parameters and page attributes.
>
>Is there any other way of accomplishing this?
>
>I thought that I could use a DirectLilnk (it can takes parameters) and the 
>listener would place the parameter into the HTTPRequest and then called 
>cycle.setPage() to the edit page.  This just seems a little round about, 
>and I'm sure that Tapestry has a more elegant method to accomplish this 
>process.
>
>Thanks advance.
>
>J
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>