--> renderInformalParameters is the "correct" way to do this.
Jesse, You may have to take me out to the "java language spec" woodshed. But: - AbstractComponent.renderInformalParameters() is protected, and - AbstractComponent is in the org.apache.tapestry package. It is my understanding that in order to invoke MultiplePropertySelection.renderInformalParameters() my renderer implementation must be in the org.apache.tapestry package -- assuming I don't violate encapsulation via reflection. If that is the case, that would on its face, feel "wrong". Carlos -----Original Message----- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Monday, November 20, 2006 10:49 AM To: Tapestry users Subject: Re: MultiplePropertySelection - informal params - best practice Peter was right, renderInformalParameters is the "correct" way to do this. You can also use the template binding of "inherit-informal-parameters" on contained child components. On 11/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I shied away from that for two reasons: > > 1 - it is a protected method. It probably isn't suitable to use for > classes outside the inheritance hierarchy. > > 2 - they aren't used by all renderers. For instance, the > CheckBoxMultiplePropertySelectionRender doesn't use them. Some > properties don't make any sense to a collection of checkboxes, radio > buttons etc. Since the impact of informal parameters added to the > MultiplePropertySelection component is governed by the renderer , I just > figured they should be a property of the renderer directly. > > Carlos > -----Original Message----- > From: Peter Beshai [mailto:[EMAIL PROTECTED] > Sent: Monday, November 20, 2006 10:03 AM > To: users@tapestry.apache.org > Subject: RE: MultiplePropertySelection - informal params - best practice > > > Do you mean something like AbstractComponent's renderInformalParameters > ? > > http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/ap > ache/tapestry/AbstractComponent.html#renderInformalParameters(org.apache > .tapestry.IMarkupWriter,%20org.apache.tapestry.IRequestCycle) > > > > -- > Peter Beshai - Using Tapestry 4.1.1 > > Pure Mathematics Student > University of Waterloo > > > > > > >From: <[EMAIL PROTECTED]> > >Reply-To: "Tapestry users" <users@tapestry.apache.org> > >To: <users@tapestry.apache.org> > >Subject: MultiplePropertySelection - informal params - best practice > >Date: Mon, 20 Nov 2006 09:56:58 -0500 > > > >I need a select list that supports multiple selections. > > > >Using the MultiplePropertySelection component I need to create a > "select > >list" impl of IMultiplePropertySelectionRenderer. > > > >What is the best way to pass arbitrary HTML attributes (e.g. informal > >parameters) to the renderer? > > > >Currently, my renderer has an "attributes" property (map<String, > >String>). When beginRender() is invoked, the renderer will output all > >of the entries in the "attributes" map. > > > >This seems pretty obvious . . . But I wanted to double check with the > >collective - I couldn't find an already created impl of the renderer > >that did this. > > > >Carlos > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > _________________________________________________________________ > Achetez ce que vous voulez, quand vous voulez sur Sympatico / MSN > Magasiner > http://magasiner.sympatico.msn.ca/content/shp/?ctId=101,ptnrid=176,ptnrd > ata=081805 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]