Hi

I am trying to build component which will chang its behaviour
depending in which mode user will be edit/view modes. So I create
component out of Insert component and ValidField component and one of
them is displayed depending on boolean isEditMode parameter.

I need to enclose this component in form since in edit mode i need to
submit changes and here goes the problem:

When i set value parameter of this component of mine (one that will be
displayed or edited) to form i always get this error upon form
submission:


java.lang.ClassCastException 

Stack Trace: 
org.apache.tapestry.param.AbstractParameterConnector.resetParameter(AbstractParameterConnector.java:148)
org.apache.tapestry.param.ParameterManager.resetParameters(ParameterManager.java:124)
org.apache.tapestry.AbstractComponent.cleanupAfterRender(AbstractComponent.java:932)
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:863) 

When i set value direction to "in" this error doesn't occur. 

I would really appreciate someones help here - I'm working on this
problem 6 hours by now and still dont know what's wrong.

Here is some debug info, maybe it will help:

22:37:04,510 DEBUG ParameterManager:132 -
[EMAIL PROTECTED]/newColorName.editableValue]:
connecting parameters and properties
22:37:04,520 DEBUG ParameterManager:147 - Connecting parameter disabled.
22:37:04,520 DEBUG ParameterManager:153 - Not bound.
22:37:04,520 DEBUG ParameterManager:147 - Connecting parameter displayName.
22:37:04,530 DEBUG ParameterManager:164 - Parameter is AUTO.
22:37:04,530 DEBUG ParameterManager:147 - Connecting parameter hidden.
22:37:04,530 DEBUG ParameterManager:153 - Not bound.
22:37:04,540 DEBUG ParameterManager:147 - Connecting parameter validator.
22:37:04,540 DEBUG ParameterManager:164 - Parameter is AUTO.
22:37:04,540 DEBUG ParameterManager:147 - Connecting parameter value.
22:37:04,550 DEBUG ParameterManager:164 - Parameter is AUTO.
22:37:04,560 DEBUG RequestCycle:337 - Removing attribute
org.apache.tapestry.active.Form
22:37:04,560 DEBUG AbstractEngine:929 - Uncaught exception
org.apache.tapestry.ApplicationRuntimeException:
org.apache.tapestry.BaseComponent$Enhance_135
at org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java:455)
at org.apache.tapestry.form.Form.trigger(Form.java:582)
at org.apache.tapestry.engine.DirectService.service(DirectService.java:169)

-- 
Pozdrawiam

Lukasz Kucharski
[EMAIL PROTECTED]
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to