Hi all,
 I'm a newbie to Tapestry. I'm trying to get the RadioGroup component to
work, but with no success so far. I've tried the minimal example off the
official site(
http://jakarta.apache.org/tapestry/tapestry/ComponentReference/RadioGroup.html),
but it throws an exception.
 I've attached the Java/HTML below. Any help would be greatly appreciated!
Many thanks.
  ** Java:

public abstract class Home extends BasePage {
public final static Integer SMALL = new Integer(1);
public final static Integer MEDIUM = new Integer(2);
public final static Integer LARGE = new Integer(3);

public abstract Integer getOrderSize();
public void doSubmit() {}

}

*** HTML template:

<html>

<head>

<body>

<form jwcid="@Form" success="listener:doSubmit">

<span jwcid="[EMAIL PROTECTED]" selected="ognl:orderSize">

<input type="radio" jwcid="@Radio" value="ognl:@com.myexample.OrderPage
@SMALL"/> Small

<input type="radio" jwcid="@Radio" value="ognl:@com.myexample.OrderPage
@MEDIUM"/> Medium

<input type="radio" jwcid="@Radio" value="ognl:@com.myexample.OrderPage
@LARGE"/> Large

</span>

</form>

</body>

</head>

</html>

** The error I get is the following:

  Unable to read OGNL expression '<parsed OGNL expression>' of
[EMAIL PROTECTED]: $BasePage_0.orderSize binding: ExpressionBinding[Home
orderSize]  location: context:/WEB-INF/Home.html, line 7
  2 <head> 3 <body> 4 Hi 5  6 <form jwcid="@Form"
success="listener:doSubmit"> 7 <span jwcid="[EMAIL PROTECTED]"
selected="ognl:orderSize"> 8 <input type="radio" jwcid="@Radio" value="
ognl:@[EMAIL PROTECTED]"/> Small 9 <input type="radio"
jwcid="@Radio" value="ognl:@[EMAIL PROTECTED]"/> Medium 10 <input
type="radio" jwcid="@Radio" value="ognl:@[EMAIL PROTECTED]"/>
Large 11 </span> 12 </form>

Reply via email to