Hello Helmut,
Here the simple (non ajax) version:
----jsp------------------
<tc:button label="Popup" action=#{bean.openPopup}>
<f:facet name="popup">
<tc:popup rendered="#{bean.popup}">
<tc:button label="Ok" action="#{bean.closePopup}"/>
</tc:popup>
</f:facet>
</tc:button>
----/jsp------------------
----java------------------
private boolean popup = false;
public boolean isPopup() {
return popup;
}
public String openPopup() {
popup = true;
return null;
}
public String closePopup() {
popup = false;
return null;
}
----/java------------------
Regards,
Volker
2006/11/28, H. Swaczinna <[EMAIL PROTECTED]>:
Hi,
I would like to display a popup panel on a button click. I tried this:
<tc:button label="Popup">
<f:facet name="popup">
<tc:popup>
<tc:button label="Ok"/>
</tc:popup>
</f:facet>
</tc:button>
But it didn't work. There are only examples with a popup on a toolbar
and I can't find any hint howto use a popup with a button. Isn't it
possible at all?
Regards
Helmut