Hmm in the works case u can create 2 blocks. What containing the form with the zone and another without the zone. the delegate method would take care of which block to render.
On Fri, Aug 21, 2009 at 1:57 PM, Eugene Zhulkov<ezhul...@gmail.com> wrote: > > Thx for reply! > > But I need to totally remove attribute - not only change its value... > In some cases my form uses Zones in some cases does not. If I specify null - > it crashes :( > > > Juan E. Maya wrote: >> >> Good day for u tooo :) >> >> I think u could do something like this: >> >> in the template u specify the template using a "prop" prefix >> >> <t: form t:zone="prop:zone"> >> </t:form> >> >> in java i have >> @Parameter(allowNull=true,defaultPrefx=defaultPrefix=BindingConstants.LITERAL) >> @Property >> private String zone; >> >> have a nice day >> On Fri, Aug 21, 2009 at 9:16 AM, Eugene Zhulkov<ezhul...@gmail.com> wrote: >>> >>> Good day! >>> >>> Is there any way to dynamically change attributes set in some TML >>> element? >>> Like XSLT <xsl:attribute> element does >>> >>> To be more presize - I have 1 component with <t:form> element. >>> In some cases I want to add t:zone attribute or omit it. >>> >>> Thank for responses! >>> -- >>> View this message in context: >>> http://www.nabble.com/Dynamically-chang%D1%83-attribute-set-tp25075265p25075265.html >>> Sent from the Tapestry - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >> > > -- > View this message in context: > http://www.nabble.com/Dynamically-change-attribute-set-tp25075265p25077838.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org