Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spring jpa jsf integration

 
nisu pathak
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends hope all you are fine.

i am confuse that for web application is it necessary to use maven ? if i am adding all jars that required to develop web application .that scenerio is not good? i didnt get why to use Maven? please help me and also help me for spring jsf jpa integration

i want to integrate spring jsf and jpa.

index.xhtml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">

<h:head>
<title> Spring jsf jpa integration </title>
</h:head>

<h:body>

<hutputText id="id" value="ID : "/>
<h:message for="txtid"/>
<h:inputText id="txtID" value="#{UserBeanManager.id}"/>

<hutputText id="txtNAME" value="Name:"/>
<h:inputText id="txtName" value="#{UserBeanManager.name}"/>
<hutputText id="txtPASSWORD" value="password:"/>
<h:inputText id="txtName" value="#{UserBeanManage.password}"/>

<h:commandButton value="#{UserBeanManager.adduser}"></h:commandButton>
</h:body>



</html>



Model class :


Dao Layer




Dao implementation




//Service Layer


//Service Layer implementation
package org.integration.service;






Please help me

thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic