I changed adv_search.html file to adv_search.xhtml file and I removed the action attribute in the form tag and I added the action to the <h:commandButton action=#{contentController.showContenteDetails