Building JSF application with Exadel IDE

«»

Up and running!

One requirement that we must fulfill is to include an index.jsp page that redirects our non-Faces request to our login.jsp page as a Faces request, in this way we make sure that all the JSF objects are correctly initialized. To achieve this we can use the New > JSP File wizard in a similar manner as we already did for the other jsp’s files, but this time using the JSPRedirect template (Figure 10).

Figure 10.

Then we got to complete the page attribute of the jsp:forward element in the index.jsp with the value of 'login.jsf'. Those, the code should look like this:

1
2
3
4
5
	<code></code>
 
To see the results of what we were being doing in this article, we have to configure web.xml file so that the index
.jsp file belongs to the welcome-file-list.
<a href="http://www.javabeat.net/wp-content/uploads/2007/04/10.jpg"><img class="aligncenter size-medium wp-image-844" title="10" src="http://www.javabeat.net/wp-content/uploads/2007/04/10-300x230.jpg" alt="" width="300" height="230" /></a>

Figure 11.

This can be done manually, as you probably had done many times, or using the Web XML Editor that Exadel provides, as shown in Figure 11.

Figure 12.

After that we can right click in the project and select Run on Server and the application would be executed within the Exadel virtual machine. Figure 12 illustrates the login’s form (on the left) and how the application should look like when the user successfully completes the login process (the right image).

Conclusion

This article shows how easy is to implement a JSF application using Exadel IDE. The release of this development tool as open source represents excellent news for the Java community. It is very important because JSF is not just another way of implementing the MVC pattern in our projects; rather it is a Java standard that influences the way IDEs evolves. Exadel’s implementation of JSF currently supports Ajax development as a clear example of the adoption of the emerging technologies. Building our applications based on standards guarantees that we keep our solutions on the leading wave of technology.

 

email

«»

Comments

comments