Entries Published On June, 2017
JSF 2.0 + Ajax hello world example in Netbeans IDE JSF Tutorial Part 2
In this tutorial we are going to check a helloworld Java Server Faces Project with Ajax Support. In this page we are creating a button in a form. But once the button is clicked it will submit an ajax request instead of complete form, Project Structure in NetBeans You have to add core tag library …
JSF Error Failed to parse the expression [#{navController.go_to_index()}]
JSF Page load Error javax.faces.view.facelets.TagAttributeException: /tab.xhtml @12,84 action=”#{navController.go_to_index()}” Failed to parse the expression [#{navController.go_to_index()}] An error comes on running code as shown below. <html xmlns=”http://www.w3.org/1999/xhtml” xmlns:h=”http://xmlns.jcp.org/jsf/html”> <h:head> <title>Facelet Title</title> </h:head> <h:body> <h:form> <h:commandButton value=”Index” action=”#{navController.go_to_index()}”></h:commandButton> <h:commandButton value=”About Us” action=”#{navController.go_to_about()}”></h:commandButton> <h:commandButton value=”Contact Us” action=”#{navController.go_to_contact()}”></h:commandButton> </h:form> </h:body> </html> Solution. Remove the Braces () of the call function. …