You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by nazarhussain_s <na...@gmail.com> on 2011/04/20 12:56:34 UTC
How to resolve --->>>>" [ +/- ] Exception: Unable to read OGNL
expression '' "<<<----
Hi,
Getting the following exception for the <select jwcid="cities"></select>
in Home.html
The code in the Home.page is given below
<component id="city" type="PropertySelection">
<binding name="model" value="cities" />
<binding name="value" value="city"/>
</component>
changes related to "city" in Home.java
-------------------------------------
public IPropertySelectionModel getCities(){
if (getCountry().equals("US")) {
return new StringPropertySelectionModel(new String[] { "New York",
"Boston", "Chicago" });
}
else if(getCountry().equals("China")){
return new StringPropertySelectionModel(new String[] { "Beijing",
"Shanghai" });
}
else if(getCountry().equals("UK")){
return new StringPropertySelectionModel(new String[] { "London" ,
"Birmingham" });
}
else
{
return new StringPropertySelectionModel(new String[] { "Santiago",
"Arica" });
}
}
Exception ->>>
---------
[ +/- ] Exception: Unable to read OGNL expression '<parsed OGNL expression>'
of $DropDown_0@3c1[Home]: cities
org.apache.tapestry.BindingException
binding: ExpressionBinding[Home cities]
location: context:/WEB-INF/Home.page, line 14, column 45
9 <component id="country" type="Autocompleter">
10 <binding name="value" value="country"/>
11 <binding name="model" value="countryAutoCompleteModel"/>
12 </component>
13 <component id="city" type="PropertySelection">
14 <binding name="model" value="cities" />
15 <binding name="value" value="city"/>
16 </component>
17 </page-specification>
Can anybody suggest what needs to be done in this case?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-resolve-Exception-Unable-to-read-OGNL-expression-parsed-OGNL-expression-tp4315469p4315469.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: How to resolve --->>>>" [ +/- ] Exception: Unable to read OGNL
expression '' "<<<----
Posted by LLTYK <LL...@mailinator.com>.
value="ognl:cities"
You need to spam "ognl:" all over. It's the T4 way.
--
View this message in context: http://tapestry-users.832.n2.nabble.com/How-to-resolve-Exception-Unable-to-read-OGNL-expression-parsed-OGNL-expression-tp6290263p6290279.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org