The idea is to load a page to edit the informations associated with a
product.
So I have the search page with a link to edit each row of the result on an
edit page.
If i click this link I will load a page form with the actual informations
filling the form.  The point is, how to do that?
The DTO that stores the information of the row selected I have it ready and
functional.  But to load a page with the values on the DTO is what I am
interested.

I hope that this clears any doubts concerning what I was, previously, unable
to explain. :)

On 9/26/06, D&J Gredler <[EMAIL PROTECTED]> wrote:

If I'm understanding the question correctly, you probably want to do:


    @InjectObject( "engine-service:external" )
    public abstract IEngineService getExternalService();

        ExternalServiceParameter param = new ExternalServiceParameter(
pageName, new Object[] { ... } );
        ILink link = this.getExternalService().getLink( false, param );
        return link;


Returning the external link to the page redirects to the page.



On 9/26/06, Daniel Castro <[EMAIL PROTECTED]> wrote:
>
> Guys, help me again.
>
> I have 2 pages.
> The problem is to call the method activateExternalPage on page B.  This
is
> what i have done so far, but no sucess.
> The page B loads without the values passed on the ExternalCallback.
>
> What is missing?
> ---------------------
> Page A
>
> @InjectPage("Edit")
> public abstract EditarForm getEditPage();
>
>     public EditarForm edit(String id,Produto produto,DetalheDTO
detalhe){
>         setNextPage(
>                 new ExternalCallback(getEditPage(),
>                         new Object[] { produto, detalhe }));
>         this.getRequestCycle().activate("Edit");
>         return getEditPage();
>
>     }
>
> Page B implements IExternalPage and has the method public void
> activateExternalPage(Object[] parameters, IRequestCycle cycle)
>
> The problem is that the method activateExternalPage
>
> --
> --------
> We shall go on to the end.
> We shall fight in France
> We shall fightover the seas and oceans.
> We shall fight with growing confidence and growing strength in the air.
> We shall defend our island whatever the cost may be
> We shall fight on beaches, we shall fight on the landing grounds,
> We shall fight in the fields and in the streets,
> We shall fight on the hills.
> We shall never surrender.
> Winston Churchill
>
>




--
--------
We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill

Reply via email to