Hi, trying to help here. i assume you add beans.delegate in form component.don't use static-binding expression, use binding expression instead. here is an example: <bean name="delegate" class="org.apache.tapestry.valid.ValidationDelegate" lifecycle="page"/>
<component id="form" type="Form"> <binding name="listener" expression="listeners.formSubmit"/> <binding name="delegate" expression="beans.delegate"/> </component> <component id="myValidField" type="ValidField"> <binding name="value" expression="domainObject.someValue"/> <static-binding name="displayName" value="'My Valid Field'"/> <binding name="validator" expression="beans.intValidator"/> <static-binding name="size" value="5"/> <static-binding name="maxlength" value="4"/> </component> regards, Gunna ----- Original Message ----- From: "gcormier" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, December 15, 2005 2:44 AM Subject: RE: TextField component issue. > Thank you both for your promt replies! I'm using 3.0, is there another solution for 3.0 so if/when we upgraded it wouldn't be a problem? > > > I changed it to ValidField and set some parameters, then got an error about a delegate, so I added > > > > > > > > > "long" > > > But now I'm still getting errors, > > org.apache.tapestry.param.ConnectedParameterException > Unable to set property delegate of component EditDepartment/departmentForm from StaticBinding[beans.delegate]. > > org.apache.tapestry.BindingException > Parameter delegate (beans.delegate) is an instance of java.lang.String, which does not implement interface org.apache.tapestry.valid.IValidationDelegate. > > > What's the next step? > > Thanks, > Greg > > > -------------------- m2f -------------------- > > Sent from www.TapestryForums.com > > Read this topic online here: <<topic_link>> > > http://www.tapestryforums.com/viewtopic.php?p=11980#11980 > > -------------------- m2f -------------------- > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
