It's a tapestry page, which is not a simple bean, but it uses bean-style
properties. If you're following standard procedure, these properties
will be declared "abstract" in the java file and also declared in the
page specification:
<property-specification name="foo" type="java.lang.String"/>
----
public abstract String getFoo();
public abstract void setFoo(String foo);
Jamie
webtekie wrote:
So the casting class is just sort of Bean where I have all my getters and
setters for variables (according to
http://wiki.apache.org/jakarta-tapestry/MoreFrequentlyAskedQuestions that
Shing referenced)?
On 4/13/05, Jamie <[EMAIL PROTECTED]> wrote:
It's another page!
The code says:
get the page called "ToppingsResult";
set the property "toppings" to toppings;
go to the page.
webtekie 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]
---------------------------------------------------------------------
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]