opensubscriber
   Find in this group all groups
 
Unknown more information…

u : users@tapestry.apache.org 13 September 2009 • 3:25AM -0400

Tapestry5SelectObject problem with Tomcat - selection is not persisted
by Vangel V. Ajanovski

REPLY TO AUTHOR
 
REPLY TO GROUP




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.





Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.