Objective here is to open popup from backing bean .
You can bind the af:popup like below
<af:popup id="p1" contentDelivery="immediate"
clientComponent="true"
binding="#{backingBeanScope.employee.myPopup}">
Then in java you can use the myPopup to hide and show the popup
private RichPopup myPopup ;//bound to the UI component
public void showOrHidePopup(RichPopup popup,Boolean visible){
if(visible){
RichPopup.PopupHints hints = new RichPopup.PopupHints();
myPopup.show(hints);
You can bind the af:popup like below
<af:popup id="p1" contentDelivery="immediate"
clientComponent="true"
binding="#{backingBeanScope.employee.myPopup}">
Then in java you can use the myPopup to hide and show the popup
private RichPopup myPopup ;//bound to the UI component
public void showOrHidePopup(RichPopup popup,Boolean visible){
if(visible){
RichPopup.PopupHints hints = new RichPopup.PopupHints();
myPopup.show(hints);
}
else{
myPopup.hide();
}
That's all, Now you can call this method from any events like actionListener of a commandLink
That's all, Now you can call this method from any events like actionListener of a commandLink
Comments
Post a Comment