Feature Requests item #553310, was opened at 2002-05-07 11:24 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=354754&aid=553310&group_id=4754
Category: framework Group: None >Status: Closed >Resolution: Fixed Priority: 7 Submitted By: Howard Lewis Ship (hship) Assigned to: Howard Lewis Ship (hship) Summary: Set properties from parameter bindings Initial Comment: As discussed in the Tapestry Developer mailing list. Tapestry should be able to automatically set JavaBeans properties from bound parameters before rendering a component, then clear the parameter after rendering the component. This will make writing Tapestry components much simpler, though at some loss of performance (hopefully not noticable). If a writable JavaBeans property exists, has the correct property name, has the correct Java type, then Tapestry can set the property just before rendering the component. Big change: render() is changed and made final in AbstractComponent. render() invoked setupForRender(), then renderComponent (), then cleanupAfterRender(). renderComponent() is what subclasses (including BaseComponent) implement. The setup and cleanup methods set and then clear the "connected" properties. Properties for static bindings are set once and never cleared. The parameter specification will be expanded to include an optional "property-name" attribute (for times when the property name can't match the parameter name). Finally, this just covers input parameters. Output parameters (such as TextField.value, etc.) are to be handled as they are through release 2.0.2a ... by obtaining the IBinding and updating through it with setObject(). ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=354754&aid=553310&group_id=4754 _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
