voyent
ace:panel closable -- how to redisplay it?  XML
Forum Index -> Development Build Feedback
Author Message
sreynolds

Joined: 04/Apr/2008 00:00:00
Messages: 62
Offline


I'm trying to get this to work with the 4.0 beta release.
I display a panel with closable set to true.
Click the close button and the panel disappears.
So far, so good.

Now I want to be able to bring the panel back -- AND have it be closable again. The showcase suggests that the panel be made to reappear by setting its closable to false. That works, but then the close button is gone and there is no obvious way to get it back.

Any suggestions?
judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1396
Offline


You might want to re-consider if you want a panel or an ace:dialog?

However, you can always use the js show() fn on the widgetVar:-
[code]
<h:form>
<ace:panel header="SOME HEADER" id="pan1"
closable="true" toggleable="true"
collapsed="#{panel.collapsed}" widgetVar="myPanel">
.....CONTENT......
<ace:ajax event="close" /> <!-- if you need it -->
</ace:panel>

<ace:pushButton value="jsOpen" id="pb">
<ace:ajax execute="@this" render="@form"
onStart="myPanel.show();"/>
</ace:pushButton>
</h:form>


[code]
 
Forum Index -> Development Build Feedback
Go to:   
Powered by JForum 2.1.7ice © JForum Team