/** * This method is responsible for loading the required values when required to handle countries. */ public void load() { currentCountry = null; if (selectedRowDataTable != null) { currentCountry = countriesFacade.find(Short.parseShort(selectedRowDataTable.getColumn1())); } if (currentCountry != null) { btnEditDisabled = false; btnRemoveDisabled = false; if (currentCountry.getName() != null) { name = currentCountry.getName(); } else { name = ""; } } }