Cool! thanks for sharing the solution :)

On Fri, Aug 21, 2009 at 4:45 PM, Eugene Zhulkov<ezhul...@gmail.com> wrote:
>
> Thx for reply
>
> Yes - the easiest but the worst decision... What if the form contains 1000
> lines of tml code? Copy&Paste and support 2 identical blocks? :) No :)
>
> I've solved this problem with Java code in component:
>
> public void afterRender() {
>  if(needZoneSupport){
>  Link link = resources.createFormEventLink(EventConstants.ACTION);
>  renderSupport.addInit("linkZone", form.getClientId(), zoneName,
> link.toString() + ".form");
>  }
> }
>
> So my form does not contain zone attr by default. But If I need one - It's
> being added manually with init Tapestry javascripts...
> --
> View this message in context: 
> http://www.nabble.com/Dynamically-change-attribute-set-tp25075265p25081221.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

Reply via email to