This is interesting behavior. Does anyone know if this is by design, and if it's also true in JSF 2 Facelets? Sounds like a bug to me, but I don't see it in the issue tracker (although I may have missed it).<br clear="all">
---<br>Kito D. Mann | twitter: kito99 | Author, JSF in Action<br>Virtua, Inc. | <a href="http://www.virtua.com">http://www.virtua.com</a> | JSF/Java EE training and consulting<br><a href="http://www.JSFCentral.com">http://www.JSFCentral.com</a> - JavaServer Faces FAQ, news, and info | twitter: jsfcentral<br>
+1 203-404-4848 x3<br><br>Sign up for the JSFCentral newsletter: <a href="http://oi.vresp.com/?fid=ac048d0e17">http://oi.vresp.com/?fid=ac048d0e17</a><br><br>
<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername"></b> <span dir="ltr"><<a href="mailto:havis@email.cz">havis@email.cz</a>></span><br>Date: Sun, Jan 31, 2010 at 12:02 PM<br>
Subject: [jsr-314-open] Composite components<br>To: <a href="mailto:users@facelets.dev.java.net">users@facelets.dev.java.net</a><br><br><br><div>
<div>Hi Users,</div>
<div> </div>
<div>I'm comming here with such a trivial problem as the composite component is.</div>
<div>But, I have one real problem with this. Imagine I've created simple panel component, i.e. named panelBox.</div>
<div> </div>
<div>My question is: "Is there a way to stop passing component attributes deep down to another one?"</div>
<div> </div>
<div>Code snippet to illustrate my problem:</div>
<div> </div>
<div><my:panelBox style="border:1px solid red"></div>
<div> <my:panelBox/></div>
<div></my:panelBox></div>
<div> </div>
<div>Even if the second panelBox does not define attribute style, it inherits it from parent panelBox. That's the way, how Facelets using attribute searching mechanism. But, I don't realy want to set style attribute of first panelBox component to the second one.</div>
<div> </div>
<div>Is there a solution how to avoid this passing?</div>
<div> </div>
<div> </div>
<div>Thx Tom</div></div></div><br>