You are requesting the next page from the request cycle. That is the
ToppingsResult(Page). Because cycle.getPage("...") returns IPage, you
would not be able to execute setToppings(...). By casting to the
concrete implementation of the ToppingsResult page, you can.
webtekie schrieb:
> In the book there is an example on use of html forms and combo boxes.
> One piece of code I don't quite understand:
>
> public void selectToppings(IRequestCycle cycle)
> {
> String toppings = getToppingsList();
> ToppingsResult page =
> (ToppingsResult) cycle.getPage("ToppingsResult");
> page.setToppings(toppings);
> cycle.activate(page);
> }
>
> What is the purpose of ToppingsResult class, what exectly does it cast?
>
> thanks,
> webtekie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]