Update
This commit is contained in:
parent
8ecc08a547
commit
793435fc23
@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<actions>
|
||||
<action>
|
||||
<actionName>run</actionName>
|
||||
<packagings>
|
||||
<packaging>war</packaging>
|
||||
<packaging>ear</packaging>
|
||||
<packaging>ejb</packaging>
|
||||
</packagings>
|
||||
<goals>
|
||||
<goal>package</goal>
|
||||
</goals>
|
||||
<properties>
|
||||
<netbeans.deploy>true</netbeans.deploy>
|
||||
<netbeans.deploy.clientUrlPart></netbeans.deploy.clientUrlPart>
|
||||
</properties>
|
||||
</action>
|
||||
<action>
|
||||
<actionName>debug</actionName>
|
||||
<packagings>
|
||||
<packaging>war</packaging>
|
||||
<packaging>ear</packaging>
|
||||
<packaging>ejb</packaging>
|
||||
</packagings>
|
||||
<goals>
|
||||
<goal>package</goal>
|
||||
</goals>
|
||||
<properties>
|
||||
<netbeans.deploy.debugmode>true</netbeans.deploy.debugmode>
|
||||
<netbeans.deploy>true</netbeans.deploy>
|
||||
<netbeans.deploy.clientUrlPart></netbeans.deploy.clientUrlPart>
|
||||
</properties>
|
||||
</action>
|
||||
<action>
|
||||
<actionName>profile</actionName>
|
||||
<packagings>
|
||||
<packaging>ejb</packaging>
|
||||
<packaging>ear</packaging>
|
||||
<packaging>war</packaging>
|
||||
</packagings>
|
||||
<goals>
|
||||
<goal>package</goal>
|
||||
</goals>
|
||||
<properties>
|
||||
<netbeans.deploy>true</netbeans.deploy>
|
||||
<netbeans.deploy.profilemode>true</netbeans.deploy.profilemode>
|
||||
<netbeans.deploy.clientUrlPart></netbeans.deploy.clientUrlPart>
|
||||
</properties>
|
||||
</action>
|
||||
</actions>
|
@ -23,9 +23,9 @@ public class PartBean implements Serializable
|
||||
|
||||
public List<Part> getParts()
|
||||
{
|
||||
System.out.println("getDms()");
|
||||
sout
|
||||
return dms.listAll();
|
||||
List<Part> data = dms.listAll();
|
||||
System.out.println(data);
|
||||
return data;
|
||||
}
|
||||
|
||||
public PartBean()
|
||||
|
@ -23,8 +23,10 @@ public class SupplierBean implements Serializable
|
||||
|
||||
public List<Supplier> getSuppliers()
|
||||
{
|
||||
List<Supplier> data = dms.listAll();
|
||||
System.out.println(data);
|
||||
System.out.println("getDms()");
|
||||
return dms.listAll();
|
||||
return data;
|
||||
}
|
||||
|
||||
public SupplierBean()
|
||||
|
@ -23,7 +23,7 @@ public class DatabaseManipulationParts implements DBase<Part>
|
||||
List<Part> tablePart = new ArrayList<>();
|
||||
String databaseName = "suppliers_parts_23";
|
||||
String userName = "admin";
|
||||
String password = "RangerDog01!";
|
||||
String password = "password";
|
||||
String URL2 = "com.mysql.jdbc.Driver";
|
||||
|
||||
Connection con = new UtilitiesDatabase().connection(
|
||||
|
@ -23,7 +23,7 @@ public class DatabaseManipulationSupplier implements DBase<Supplier>
|
||||
List<Supplier> tableSuppliers = new ArrayList<Supplier>();
|
||||
String databaseName = "suppliers_parts_23";
|
||||
String userName = "admin";
|
||||
String password = "RangerDog01!";
|
||||
String password = "password";
|
||||
String URL2 = "com.mysql.jdbc.Driver";
|
||||
|
||||
Connection con = new UtilitiesDatabase().connection(
|
||||
|
@ -46,9 +46,6 @@ public class Supplier
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public String getBirthday()
|
||||
{
|
||||
return birthday;
|
||||
|
@ -19,6 +19,6 @@
|
||||
</session-timeout>
|
||||
</session-config>
|
||||
<welcome-file-list>
|
||||
<welcome-file>faces/supplier.xhtml</welcome-file>
|
||||
<welcome-file>faces/index.xhtml</welcome-file>
|
||||
</welcome-file-list>
|
||||
</web-app>
|
||||
|
@ -0,0 +1,13 @@
|
||||
<?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:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core">
|
||||
<h:head>
|
||||
<title>Facelet Title</title>
|
||||
</h:head>
|
||||
<h:body>
|
||||
<h:link value="View parts" outcome="parts" /> <br/>
|
||||
<h:link value="View supplier" outcome="supplier" />
|
||||
</h:body>
|
||||
</html>
|
@ -8,7 +8,7 @@
|
||||
</h:head>
|
||||
<h:body>
|
||||
<h:form>
|
||||
<h:dataTable var="part" value="#{PartBean.getParts()}" >
|
||||
<h:dataTable var="part" value="#{partBean.getParts()}" >
|
||||
<h:column>
|
||||
<f:facet name="header"> <h:outputText value="pnumber" /></f:facet>
|
||||
|
||||
|
BIN
Semester 2/ZIPs/SuppliersPartsDatabase_CalebFontenot.zip
Normal file
BIN
Semester 2/ZIPs/SuppliersPartsDatabase_CalebFontenot.zip
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user