Hi,

I am using Tapestry 5.0.11 and I try to dynamically update the content of a form without reloading the whole page.

my ObjectiveAdd.tml
<t:form t:id="objectiveForm" t:zone="objectiveZone">
<t:zone t:id="objectiveZone">
<input t:type="TextArea" t:id="name" t:value="objective?.name" t:validate="required" cols="40" rows="4" />
</t:zone>
<input t:type="Submit" t:id="save" value="Save" />
</t:form>

my ObjectiveAdd.java validation
Object onValidateForm() {
        if (objectiveForm.getHasErrors())
            return objectiveZone;
       return null;
}

I get the message: Component workflow/ObjectiveAdd:objectivezone was returned from an event handler method, but is not a page component. The page containing the component will render the client response.

All the tapestry examples say to return objectiveZone.getBody(), but this is not available in 5.0.11. Does anybody know a way to update the content dynamically in the old tapestry version?

thanks!
Elisabeth

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to