Hi Guys, I have a form contained within a zone where I'm passing an object
into the context value. When I submit the form I get the following
exception.

*parameter #1: org.apache.tapestry5.ioc.util.UnknownValueException: Could
not find a coercion from type java.lang.String to type
org.tapdemo.demo.entity.TimeSheet.*

.tml

<t:zone t:id="formZone" id="formZone">
        <t:form t:id="form" zone="formZone" context="ts">

        <t:submit t:event="save" context="action.notification"/>

java class

public enum Action {
        WARNING, NOTIFICATION, CERTIFICATION
}

@Property
    private TimeSheetEntity ts;

public void onPrepareForSubmitFromForm(TimeSheetEntity ts) {
    this.ts = ts;
    }

    public void onSave(Action action) {
        this.action = action;
    }

Aren't you able to pass an object into context? Any ideas what might be
happening here?

-- 
George Christman
www.CarDaddy.com
P.O. Box 735
Johnstown, New York

Reply via email to