81,090
社区成员
发帖
与我相关
我的任务
分享
targetChoice.add(new AjaxFormComponentUpdatingBehavior("onchange"){
@Override
protected void onUpdate(AjaxRequestTarget target) {
baseRoleMapPanel= new BaseRoleMapPanel("panel",roleid,targetChoice.getModelValue());
baseRoleMapPanel.setVisible(true);
target.add(baseRoleMapPanel,form1);
}
});
form1.add(targetChoice);
baseRoleMapPanel= new BaseRoleMapPanel("panel",roleid,targetChoice.getModelValue());
baseRoleMapPanel.setVisible(false);
baseRoleMapPanel.setOutputMarkupId(true);
baseRoleMapPanel.setOutputMarkupPlaceholderTag(true);
form1.add(baseRoleMapPanel);