<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Handling events on ZK macro components</title> <atom:link href="http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/feed/" rel="self" type="application/rss+xml" /><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/</link> <description>You are about to read it</description> <lastBuildDate>Sat, 14 Aug 2010 13:26:26 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: nevyn</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-364</link> <dc:creator>nevyn</dc:creator> <pubDate>Sat, 14 Aug 2010 13:26:26 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-364</guid> <description>Further to this point:
In afterCompose:super.afterCompose();
Components.wireVariables(this, this); //autowires variables
Components.addForwards(this, this); //adds event forwardingJust figured this out myself. Wish it was documented a little better. The other thing I found was to watch accessors - if you&#039;ve set some attributes, then defining setAttributeName type methods does bad things...</description> <content:encoded><![CDATA[<p>Further to this point:<br
/> In afterCompose:</p><p>super.afterCompose();<br
/> Components.wireVariables(this, this); //autowires variables<br
/> Components.addForwards(this, this); //adds event forwarding</p><p>Just figured this out myself. Wish it was documented a little better. The other thing I found was to watch accessors &#8211; if you&#8217;ve set some attributes, then defining setAttributeName type methods does bad things&#8230;</p> ]]></content:encoded> </item> <item><title>By: sandeep</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-362</link> <dc:creator>sandeep</dc:creator> <pubDate>Wed, 21 Jul 2010 14:10:30 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-362</guid> <description>Thanks Felipe.</description> <content:encoded><![CDATA[<p>Thanks Felipe.</p> ]]></content:encoded> </item> <item><title>By: Felipe Cypriano</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-361</link> <dc:creator>Felipe Cypriano</dc:creator> <pubDate>Wed, 21 Jul 2010 13:03:21 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-361</guid> <description>Simple enough, just access the component:myMacro.myLabel.setVisible(false)or create an method or event.</description> <content:encoded><![CDATA[<p>Simple enough, just access the component:</p><p>myMacro.myLabel.setVisible(false)</p><p>or create an method or event.</p> ]]></content:encoded> </item> <item><title>By: sandeep</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-360</link> <dc:creator>sandeep</dc:creator> <pubDate>Wed, 21 Jul 2010 13:01:05 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-360</guid> <description>Nice Article !!What if I want to handle macrocomponents in my composer.
e.g. I want to change text or hide the label dynamically in macro components.</description> <content:encoded><![CDATA[<p>Nice Article !!</p><p>What if I want to handle macrocomponents in my composer.<br
/> e.g. I want to change text or hide the label dynamically in macro components.</p> ]]></content:encoded> </item> <item><title>By: Felipe Cypriano</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-294</link> <dc:creator>Felipe Cypriano</dc:creator> <pubDate>Tue, 27 Apr 2010 12:55:46 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-294</guid> <description>If you&#039;re using zkgrails 1.0 series try to define the composer using this syntax:&lt;code&gt;apply=&quot;com.nmtcr.composers.security.loginComposer&quot;&lt;/code&gt;Notice the lower case &#039;l&#039; in login and don&#039;t use ${}. And don&#039;t forget to join &lt;a href=&quot;http://groups.google.com/group/zk-grails-user&quot; rel=&quot;nofollow&quot;&gt;ZKGrails User Group&lt;/a&gt;, you&#039;ll get better and faster answers there :)</description> <content:encoded><![CDATA[<p>If you&#8217;re using zkgrails 1.0 series try to define the composer using this syntax:</p><p><code>apply="com.nmtcr.composers.security.loginComposer"</code></p><p>Notice the lower case &#8216;l&#8217; in login and don&#8217;t use ${}. And don&#8217;t forget to join <a
href="http://groups.google.com/group/zk-grails-user" rel="nofollow">ZKGrails User Group</a>, you&#8217;ll get better and faster answers there <img
src='http://felipecypriano.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: B Dangubic</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-293</link> <dc:creator>B Dangubic</dc:creator> <pubDate>Tue, 27 Apr 2010 12:43:21 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-293</guid> <description>This is top of the page</description> <content:encoded><![CDATA[<p>This is top of the page</p> ]]></content:encoded> </item> <item><title>By: B Dangubic</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-292</link> <dc:creator>B Dangubic</dc:creator> <pubDate>Tue, 27 Apr 2010 12:42:51 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-292</guid> <description>felipe,I am investigating zk grails and have a quick question if you have a moment. In the apply attr I am placing fully-qualified name of the composer as you have in several of your examples. however, when I ran the app I am getting this stacktrace below stating that bean cannot be found even though it actually works (the composer code is actually getting executed).Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named &#039;com.nmtcr.composers.security.LoginComposer&#039; is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1041)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:265)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1004)
at org.zkoss.zkgrails.ComposerResolver.resolveComposer(ComposerResolver.java:16)
... 104 morethe top of the page isThanks for your time.</description> <content:encoded><![CDATA[<p>felipe,</p><p>I am investigating zk grails and have a quick question if you have a moment. In the apply attr I am placing fully-qualified name of the composer as you have in several of your examples. however, when I ran the app I am getting this stacktrace below stating that bean cannot be found even though it actually works (the composer code is actually getting executed).</p><p>Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named &#8216;com.nmtcr.composers.security.LoginComposer&#8217; is defined<br
/> at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:504)<br
/> at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1041)<br
/> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)<br
/> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)<br
/> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:265)<br
/> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)<br
/> at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1004)<br
/> at org.zkoss.zkgrails.ComposerResolver.resolveComposer(ComposerResolver.java:16)<br
/> &#8230; 104 more</p><p>the top of the page is</p><p>Thanks for your time.</p> ]]></content:encoded> </item> <item><title>By: suvigy</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-255</link> <dc:creator>suvigy</dc:creator> <pubDate>Wed, 07 Apr 2010 14:05:51 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-255</guid> <description>hm the code wasn&#039;t copied</description> <content:encoded><![CDATA[<p>hm the code wasn&#8217;t copied</p> ]]></content:encoded> </item> <item><title>By: suvigy</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-254</link> <dc:creator>suvigy</dc:creator> <pubDate>Wed, 07 Apr 2010 14:04:57 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-254</guid> <description>Hi!What if, when I have a macro something like that:
.....So it&#039;s like a grid, the listview can contain any kind and number of elements (a button has a forward, but the proper method won&#039;t be called), in that case should one traverse the children recursively? Or is there better way?</description> <content:encoded><![CDATA[<p>Hi!</p><p> What if, when I have a macro something like that:</p><p>&#8230;..</p><p>So it&#8217;s like a grid, the listview can contain any kind and number of elements (a button has a forward, but the proper method won&#8217;t be called), in that case should one traverse the children recursively? Or is there better way?</p> ]]></content:encoded> </item> <item><title>By: Felipe Cypriano</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-240</link> <dc:creator>Felipe Cypriano</dc:creator> <pubDate>Thu, 18 Mar 2010 11:05:08 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-240</guid> <description>Hi Rajesh,You can handle the events on any composer that your macro is within. Just like any other component.</description> <content:encoded><![CDATA[<p>Hi Rajesh,</p><p>You can handle the events on any composer that your macro is within. Just like any other component.</p> ]]></content:encoded> </item> <item><title>By: rajesh</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-239</link> <dc:creator>rajesh</dc:creator> <pubDate>Thu, 18 Mar 2010 05:01:39 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-239</guid> <description>good one.but is there any way to use different composer for macro and handling its events in that composer? rather than to handle events of macro components in composer of main zul file.</description> <content:encoded><![CDATA[<p>good one.but is there any way to use different composer for macro and handling its events in that composer? rather than to handle events of macro components in composer of main zul file.</p> ]]></content:encoded> </item> <item><title>By: Abinesh S</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-238</link> <dc:creator>Abinesh S</dc:creator> <pubDate>Wed, 17 Mar 2010 10:47:29 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-238</guid> <description>yes, got it thank you very much.</description> <content:encoded><![CDATA[<p>yes, got it thank you very much.</p> ]]></content:encoded> </item> <item><title>By: Trevor</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-233</link> <dc:creator>Trevor</dc:creator> <pubDate>Sat, 06 Mar 2010 04:43:25 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-233</guid> <description>Exactly what I needed to know. Well done and thank you!</description> <content:encoded><![CDATA[<p>Exactly what I needed to know. Well done and thank you!</p> ]]></content:encoded> </item> <item><title>By: hne</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-231</link> <dc:creator>hne</dc:creator> <pubDate>Thu, 04 Mar 2010 10:37:12 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-231</guid> <description>Great! Well Done ! Very Helpful and useable!A real complete description and easy to understand!Thank you !</description> <content:encoded><![CDATA[<p>Great! Well Done ! Very Helpful and useable!</p><p>A real complete description and easy to understand!</p><p>Thank you !</p> ]]></content:encoded> </item> <item><title>By: shumy</title><link>http://felipecypriano.com/blog/2010/01/15/handling-events-on-zk-macro-components/comment-page-1/#comment-189</link> <dc:creator>shumy</dc:creator> <pubDate>Fri, 26 Feb 2010 22:14:13 +0000</pubDate> <guid
isPermaLink="false">http://felipecypriano.com/blog/?p=303#comment-189</guid> <description>Wonderful, this is just what I need.</description> <content:encoded><![CDATA[<p>Wonderful, this is just what I need.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 24/47 queries in 0.084 seconds using disk

Served from: felipecypriano.com @ 2010-09-08 15:52:56 -->