ToppingsResult.java is the java class that is
associated with the tapestry page that displays the
selected toppings.
If you look at the source code of ToppingsResult.java
,
it extends BasePage.
The idea is that in method selectToppings, 
you pass the selected toppings to the page 
ToppingsResult, and then display it.
This is called the "Bucket Brigade pattern" .
More info on 
http://wiki.apache.org/jakarta-tapestry/MoreFrequentlyAskedQuestions



Shing

--- webtekie <[EMAIL PROTECTED]> wrote:
> 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]
> 
> 

Home page :
  http://uk.geocities.com/matmsh/index.html

Send instant messages to your online friends http://uk.messenger.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to