- 
        1. Re: <h:commandButton onClick action...nbelaevski Dec 13, 2010 3:35 PM (in response to anonyin)Hi, Valid attribute names are "onclick" & "oncomplete". Also there is no 'oncomplete' attribute at h:commandLink, only a4j:commandLink. 
- 
        2. Re: <h:commandButton onClick action...nbelaevski Dec 13, 2010 3:36 PM (in response to nbelaevski)One more thing: no need to use 'javascript:' in the code. 
- 
        3. Re: <h:commandButton onClick action...anonyin Dec 13, 2010 4:03 PM (in response to nbelaevski)Thanks will try these options. 
- 
        4. Re: <h:commandButton onClick action...anonyin Dec 13, 2010 4:23 PM (in response to anonyin)That helps. Another issue: I have a home.xhtml which is using template layout. I have following link and the function in the home.xhtml <h:commandButton value="Save" onclick="Richfaces.showModalPanel('waitPanel');showSearch();" /> <a4j:jsFunction name="showSearch" 
 action="#{treeBean.wait1}"
 oncomplete="Richfaces.showModalPanel('SearchModalPanel');"
 reRender="SearchModalPanel" >
 </a4j:jsFunction>and I have added <ui:include src="/search.xhtml" /> in the home.xhtml. search.xhtml has a <rich:modalPanel id="SearchModalPanel".... waitpanel shows up successfully. but the SearchModalPanel is not showing up when I click the save, what am I missing here ? Thanks in Advance. 
- 
        5. Re: <h:commandButton onClick action...anonyin Dec 13, 2010 4:43 PM (in response to anonyin)Nick neermind. Figured it out my self. Thanks 
- 
        6. Re: <h:commandButton onClick action...anonyin Dec 13, 2010 5:37 PM (in response to anonyin)Nick, I don't know how to use <a4j commands. Where can I get the tutorial for a4j uage. ? I have following code and its nor working, when I dbclick on the row the js function is not getting called. <rich:dataTable width="483" rows="10" value="" var="category" 
 onRowDblClick="showDetails();">----- <a4j:jsFunction name="showDetails" 
 action="#{treeBean.wait1}"
 oncomplete="Richfaces.hideModalPanel('waitPanel');Richfaces.showModalPanel('DetailModalPanel');"
 reRender="DetailModalPanel" >
 </a4j:jsFunction>what am I missing here ? 
- 
        7. Re: <h:commandButton onClick action...nbelaevski Dec 13, 2010 7:03 PM (in response to anonyin)Hi, Check docs and demos: see overview & documentation menu items atop this page. 
- 
        8. Re: <h:commandButton onClick action...anonyin Dec 14, 2010 7:05 PM (in response to nbelaevski)Nick, I am using the Rich Tree and I want to restrict it inside a panel, meaning even if you expand the tree horizontally or vertically I want it to appear inside a fixed width and height panel with a Scroll. Is it possoble to acheive it ? I tried sorrounding the tree with a rich:panel with bodyClass="body3" as explained in the below link but it didn't help. http://livedemo.exadel.com/richfaces-demo/richfaces/panel.jsf?tab=look&cid=444977 Thanks In Advance for your help. 
- 
        9. Re: <h:commandButton onClick action...anonyin Jan 6, 2011 7:16 PM (in response to anonyin)Just add below style tag to the <rich:tree...> and it will work. style="overflow:auto;width:150px;height:500px;" Thanks Anony. 
 
    