Hi Frauke,
I tested - no problem on my side:
Code:
public void setMenu(POPUPMENUComponent value)
{
if (m_menu == value)
return;
m_menu = value;
m_menu.getChildren().clear();
if (isMenuRendered())
{
MENUITEMComponentTag mict = new MENUITEMComponentTag();
mict.setText("Menu A");
m_menu.getChildren().add(mict.createBaseComponent());
}
}
public boolean isMenuRendered()
{
return false;
}
and the layout
Code:
<t:rowbodypane id="g_5" popupmenu="TEST" >
</t:rowbodypane>
<t:popupmenu id="TEST" componentbinding="#{d.DynPopupMenuUI.menu}" rendered="#{d.DynPopupMenuUI.menuRendered}" />
Are you sure that your nice method m_rows.getSelectedItem().isLocked() is never stopping with a null pointer, e.g. if you do not have any selected items...? ;-)
Björn