public String removePosition(long positionId) { for (Position position : positionBunchBean.getAllPositions()) { if (position.getPositionId() == positionId) positionBo.removePosition(position); } resetView(); return ""; }
public String addPosition() { Position position = new Position(); position.setName(name); positionBo.addNewPosion(position); resetView(); return ""; }