On Jun 23, 2011, at 6:27 PM, Thiago H. de Paula Figueiredo wrote: > On Thu, 23 Jun 2011 18:18:39 -0300, Tony Nelson <tnel...@starpoint.com> wrote: > >> In our T4 app we made a lot of use of this type of construct: >> <parameter name="selectedColumn" default-value="ognl:page.selectedColumn" >> /> > >> This particular component is embedded 4 layers deep and was able to reach >> back all the way to Page class to get values. Is there a similar construct >> in T5 > > No. > >> or am I going to have to pass these values explicitly down the components? > > Yes. You can also use the Environmental service. >
Thank you very much for your help. I was able to get my form to display properly using the Environmental Service and adding the following to my base class: void beginRender() { environment.push(SearchParameters.class, getSearchParameters()); } void afterRender() { environment.pop(SearchParameters.class); } However, when I submit the form (from an input type="image") I get the following OperationException: Failure writing parameter 'value' of component emailuser/List:pagedtable.columnsorterdata.hidden: No object of type com.starpoint.querybuilder.SearchParameters is available from the Environment. Available types are org.apache.tapestry5.TrackableComponentEventCallback, org.apache.tapestry5.ValidationTracker, org.apache.tapestry5.internal.BeanValidationContext, org.apache.tapestry5.services.ComponentEventResultProcessor, org.apache.tapestry5.services.FormSupport, org.apache.tapestry5.services.Heartbeat. The fields form search parameters are in my component as: <t:hidden value="searchParameters.column" encoder="valueEncoderForColumn" id="selectedColumn" /> <t:hidden value="searchParameters.sortDirection" id="sortDirection" /> Am I missing something simple again? Thanks again for the help. Tony Nelson --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org