Hello all,
 
I'm trying to evaluateTapestry-2.4-alpha-2 and having a problem.
 
I have a page responsible for showing data for an activity. Activity's data is storing in a java bean ActivityDTO which is a member of my page.
The page is displaying  ok. But when I try to submit data exception occur :(
If it is something wrong with my OGNL expressions then I expect that data won't be shown properly but it does.
Error message:
 
net.sf.tapestry.RequestCycleException: Unable to update expression 'activityDTO.subject' for wf.web.Activity@24e801[Home] to Activity's subject.
 
net.sf.tapestry.BindingException: Unable to update expression 'activityDTO.subject' for wf.web.Activity@24e801[Home] to Activity's subject.
 
ognl.OgnlException: target is null for setProperty(null, "subject", Activity's subject)
 
Thanks in advance
 
PS. Documentation I have downloaded is out of date. When approx it will be possible to download latest docs?
 
Here is the code of the page:
 
public class Activity extends BasePage {
  public ActivityDTO activityDTO;
  public void beginResponse(IMarkupWriter writer, IRequestCycle cycle) throws RequestCycleException {
    activityDTO = Helper.getActivity( new BigDecimal( cycle.getRequestContext().getParameter( "activityId" ) ) );
  }
  public void detach() {
    activityDTO = null;
    super.detach();
  }
  public void formSubmit(IRequestCycle cycle) {  }
}
 
HTML template (excerpt):
...
<input jwcid="subjectTextField" size="12"/>
...
Page specification (excerpt):
...
<page-specification class="wf.web.Activity">
<component id="activityForm" type="Form">
   <binding name="listener" expression="listeners.formSubmit"/>
</component>
<component id="subjectTextField" type="TextField">
   <binding name="value" expression="activityDTO.subject"/>
</component>
...

Reply via email to