This content has been marked as final.
Show 2 replies
-
1. Re: setRendered(true) dont work on custom component
jaabax Dec 5, 2008 2:47 PM (in response to jaabax)srry.. the correct code is
//TestBean IS INSIDE MY PROJECT.. IS A JAVA FILE public class TestBean extends MessageTipController { public void openPopup(ActionEvent event){ super.openPopup(event); } } //MessageTipController IS IN THE JAR AND IS .CLASS .. A PIECE OF MY FRAMEWORK public abstract class MessageTipController { public static UIComponent findParentComponent(UIComponent child, Class type) { do { child = child.getParent(); if (child == null) return null; } while (!type.isInstance(child)); return child; } public void openPopup(ActionEvent event) { UIMessageTip uMessageTip = (UIMessageTip ) findParentComponent(event.getComponent(), UIMessageTip .class); // call setRendered(true); on the htmlPANEL uMessageTip.getHtmlPanel().setRendered(true); } }
-
2. Re: setRendered(true) dont work on custom component
nbelaevski Dec 7, 2008 1:24 PM (in response to jaabax)Hello,
Does this work if you use h:commandLink instead of a4j:commandLink?