wicketwicket-1.5wicket-6wicket-1.6wicket-7

isTransparentResolver() in wicket 6.x or 7.x


I have below code need to change it to wicket 6.6, but isTransparentResolver() is removed and I am trying according to this link


Solution

  • Finally I have written this using TransparentWebMarkupContainer

    add(new TransparentWebMarkupContainer("bodyElement"){
                @Override
                protected void onComponentTag(ComponentTag tag) {
                    super.onComponentTag(tag);
                    if((usrLoginHstryList == null || usrLoginHstryList.isEmpty()) && (usrChangeHstryList == null || usrChangeHstryList.isEmpty())){
                        tag.put("onload", "hideHistoryButtons();");
                    }else if(usrLoginHstryList == null || usrLoginHstryList.isEmpty()){
                            tag.put("onload", "hideUserLoginHstryBtn();");
                    }else if(usrChangeHstryList == null ||usrChangeHstryList.isEmpty()){
                            tag.put("onload", "hideUserChngHstryBtn();");
                    }
                }   
    
            });