Like below, how can we add minimize and maximize button at the upper right corner of the page in richface popup panel?
Using the below code, we can add the 'X' at the upper right corner and, on click of this, popup window gets closed.
<f:facet name="controls">
<h:outputLink value="#"
onclick="#{rich:component('simplePopup2')}.hide(); return false;">
X
</h:outputLink>
</f:facet>
Please, suggest me.
It is possible to extend jQuery with two custom functions that will do the maximize/minimize.
Than you can use it with richfaces popupPanel
Note the
.cdiv
before calling the maximize/minimize function. This is intended for reference to jQuery object itself so it will be possible to access the new functions.The functions provided above is just a proof of concept so you will have to extend them in order to be able to restore to original size etc..