Hi,
I have a problem with submitting selection from list box when the
application is deployed on Tomcat, while it works correctly in Jetty and
Glassfish.
The selection lists are implemented like in:
http://wiki.apache.org/tapestry/Tapestry5SelectObject
Here is the snippet of code:
<t:form t:id="planSelectForm">
<t:selectObject t:id="selectPlan" list="planList" value="selectedPlan"
labelField="literal:title" blankLabel="All" onChange="form.submit();" />
</t:form>
This should refresh a grid that looks like this:
<table t:type="grid" t:source="programs" t:row="programGrid" t:exclude="programId" t:add="literal:delete">
The relevant code behind looks like this:
@Persist
@Property
private Plan selectedPlan;
public List<Program> getPrograms() {
if (selectedPlan == null)
return ....;
else
return ....;
}
So the form.submit() works and the page refreshes, but it seems like the
selection has not been persisted and this happens only on Tomcat (6.0.18
if that matters).
As I mentioned in another message, everything works perfectly in Jetty,
and I have UTF problems in Glassfish, and this problem in Tomcat.
opensubscriber is not affiliated with the authors of this message nor responsible for its content.