Hi Captain, we are facing some problem on creating popup modal and setting some nodes to its dynamicrow using onrowExecute.
Here is the pagebean class file we want to popup.
Code:
public class card extends PageBean implements Serializable {
public ROWDYNAMICCONTENTBinding m_row = new ROWDYNAMICCONTENTBinding();
public ROWDYNAMICCONTENTBinding getRow() { return m_row; }
public card(){
}
public interface IListener {
}
private IListener m_listener;
public String getPageName() { return "/Card.jsp"; }
public String getRootExpressionUsedInPage() { return "#{d.card}"; }
public void prepare(IListener listener)
{
m_listener = listener;
}
}
As you can see we declare dynamicrow so we can set nodes on it.
Here is the code we use to create a popup modal and setting nodes on it.
Code:
public void onRowExecute(){
card buildcard = new card();
PANENode paneNode = new PANENode();
paneNode.setHeight("100%");
paneNode.setWidth("100%");
paneNode.setBackground("green");
buildcard.m_row.setContentNode(paneNode);
modelesspopup = openModalPopup(buildcard, "Item card", 600, 500,
new ModalPopup.IModalPopupListener(){
@Override
public void reactOnPopupClosedByUser() {
closePopup(buildcard);
}
});
modelesspopup.setLeftTopReferenceCentered();
}
As we run this code the popup works but the nodes didnt.
is this a bug or are we missing something?
thank you in advance.