Changed methods for getting the categories in a JSF page. Resolves #77 and resolves #78.