Thursday, 27 August 2015

Add custom Copy right in Intellij Idea IDE?

1.Open Intellij idea an type ALT+INSERT  key select copy right and below window will show;

copyright

2.Click OK .On open the window  select copyright Profiles. After selecting the the copy right Click Add Icon on the right side.























3.Name your client file and click ok.



4.Click copyright and add the newly created file  click apply  to finish the setting.








Thursday, 20 August 2015

Remove 'Choose one ' option from Wicket DropDownChoice?

Wicket Framework DropDownChoice component has default 'Choose one' value by default. To remove that add a override method following:

List<String>employeeNameList=new ArrayList<String>();
employeeNameList.add("Soora");
employeeNameList.add("padman");
employeeNameList.add("kiran");

 DropDownChoice employeeNameList = new DropDownChoice("employees",employeeNameList) {

  @Override
            protected CharSequence getDefaultChoice(String selectedValue) {
// put return type as empty so that default value will be removed
                return " ";
            }

}