Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added layout files.

  • Loading branch information...
commit 63dee5d99566ad7d4a8861b1ec0cf992a4d1a7db 1 parent fea6d15
@rishabhsrao rishabhsrao authored
View
262 pom.xml
@@ -1,132 +1,132 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
- http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
- <groupId>oss.process</groupId>
- <artifactId>scrum</artifactId>
- <packaging>war</packaging>
- <name>oss-process-scrum</name>
- <url>http://maven.apache.org</url>
-
- <repositories>
- <repository>
- <id>prime-repo</id>
- <name>PrimeFaces Maven Repository</name>
- <url>http://repository.primefaces.org</url>
- <layout>default</layout>
- </repository>
- </repositories>
-
- <properties>
- <spring.version>3.1.2.RELEASE</spring.version>
- <netbeans.hint.deploy.server>gfv3ee6</netbeans.hint.deploy.server>
- </properties>
-
- <dependencies>
-
- <!-- Spring 3 dependencies -->
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-core</artifactId>
- <version>${spring.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-context</artifactId>
- <version>${spring.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-web</artifactId>
- <version>${spring.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-tx</artifactId>
- <version>${spring.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-orm</artifactId>
- <version>${spring.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-test</artifactId>
- <version>${spring.version}</version>
- </dependency>
-
- <!-- JSF library -->
- <dependency>
- <groupId>com.sun.faces</groupId>
- <artifactId>jsf-api</artifactId>
- <version>2.1.6</version>
- </dependency>
-
- <dependency>
- <groupId>com.sun.faces</groupId>
- <artifactId>jsf-impl</artifactId>
- <version>2.1.6</version>
- </dependency>
-
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>jstl</artifactId>
- <version>1.2</version>
- </dependency>
-
- <!-- Primefaces library -->
- <dependency>
- <groupId>org.primefaces</groupId>
- <artifactId>primefaces</artifactId>
- <version>3.1.1</version>
- </dependency>
-
- <!-- Hibernate library -->
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-core</artifactId>
- <version>4.1.0.Final</version>
- </dependency>
-
- <dependency>
- <groupId>javassist</groupId>
- <artifactId>javassist</artifactId>
- <version>3.12.1.GA</version>
- </dependency>
-
- <!-- MySQL Java Connector library -->
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.17</version>
- </dependency>
-
- <dependency>
- <groupId>c3p0</groupId>
- <artifactId>c3p0</artifactId>
- <version>0.9.1.2</version>
- </dependency>
-
- <!-- Log4j library -->
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.16</version>
- </dependency>
-
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- <version>6.4</version>
- </dependency>
-
- </dependencies>
- <version>0.1</version>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>oss.process</groupId>
+ <artifactId>scrum</artifactId>
+ <packaging>war</packaging>
+ <name>oss-process-scrum</name>
+ <url>http://maven.apache.org</url>
+
+ <repositories>
+ <repository>
+ <id>prime-repo</id>
+ <name>PrimeFaces Maven Repository</name>
+ <url>http://repository.primefaces.org</url>
+ <layout>default</layout>
+ </repository>
+ </repositories>
+
+ <properties>
+ <spring.version>3.1.2.RELEASE</spring.version>
+ <netbeans.hint.deploy.server>gfv3ee6</netbeans.hint.deploy.server>
+ </properties>
+
+ <dependencies>
+
+ <!-- Spring 3 dependencies -->
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-core</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-context</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-web</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-tx</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-orm</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-test</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+
+ <!-- JSF library -->
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>2.1.6</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>2.1.6</version>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.2</version>
+ </dependency>
+
+ <!-- Primefaces library -->
+ <dependency>
+ <groupId>org.primefaces</groupId>
+ <artifactId>primefaces</artifactId>
+ <version>3.4.1</version>
+ </dependency>
+
+ <!-- Hibernate library -->
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-core</artifactId>
+ <version>4.1.0.Final</version>
+ </dependency>
+
+ <dependency>
+ <groupId>javassist</groupId>
+ <artifactId>javassist</artifactId>
+ <version>3.12.1.GA</version>
+ </dependency>
+
+ <!-- MySQL Java Connector library -->
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ <version>5.1.17</version>
+ </dependency>
+
+ <dependency>
+ <groupId>c3p0</groupId>
+ <artifactId>c3p0</artifactId>
+ <version>0.9.1.2</version>
+ </dependency>
+
+ <!-- Log4j library -->
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.16</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <version>6.4</version>
+ </dependency>
+
+ </dependencies>
+ <version>0.1</version>
</project>
View
70 src/main/webapp/WEB-INF/faces-config.xml
@@ -1,36 +1,36 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<faces-config
- xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
- http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
- version="2.0">
-
- <!-- JSF and Spring are integrated -->
- <application>
- <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
- <locale-config>
- <default-locale>en</default-locale>
- <supported-locale>es</supported-locale>
- <supported-locale>fr</supported-locale>
- </locale-config>
- <resource-bundle>
- <base-name>properties.i18n.i18n</base-name>
- <var>i18n</var>
- </resource-bundle>
- </application>
-
- <!-- configuration of navigation rules -->
- <navigation-rule>
- <from-view-id>/pages/index.xhtml</from-view-id>
- <navigation-case>
- <from-outcome>success</from-outcome>
- <to-view-id>/pages/success.xhtml</to-view-id>
- </navigation-case>
- <navigation-case>
- <from-outcome>error</from-outcome>
- <to-view-id>/pages/error.xhtml</to-view-id>
- </navigation-case>
- </navigation-rule>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<faces-config
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+ http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
+ version="2.0">
+
+ <!-- JSF and Spring are integrated -->
+ <application>
+ <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
+ <locale-config>
+ <default-locale>en</default-locale>
+ <supported-locale>es</supported-locale>
+ <supported-locale>fr</supported-locale>
+ </locale-config>
+ <resource-bundle>
+ <base-name>properties.i18n.i18n</base-name>
+ <var>i18n</var>
+ </resource-bundle>
+ </application>
+
+ <!-- configuration of navigation rules -->
+ <navigation-rule>
+ <from-view-id>/pages/index.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>success</from-outcome>
+ <to-view-id>/pages/success.xhtml</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>error</from-outcome>
+ <to-view-id>/pages/error.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
</faces-config>
View
5 src/main/webapp/WEB-INF/ui/fragments/header.xhtml
@@ -57,7 +57,7 @@
<div class="span8">
<div class="control-group">
<div class="controls">
- <input type="submit" class="btn btn-block btn-primary">Sign in</input>
+ <input type="submit" class="btn btn-block btn-primary" value="Sign in"></input>
</div>
</div>
</div>
@@ -78,8 +78,7 @@
<ul class="nav">
<li><a href="#"><i class="icon-home"></i> Home</a></li>
<li><a href="#"><i class="icon-money"></i> Pricing</a></li>
- <li><a href="#"><i class="icon-shopping-cart"></i> Applications</a></li>
- <li><a href="#"><i class="icon-cogs"></i> Solutions</a></li>
+ <li><a href="#"><i class="icon-question-sign"></i> Help</a></li>
</ul>
</div>
</div>
View
18 src/main/webapp/WEB-INF/ui/layouts/layout-application.xhtml
@@ -0,0 +1,18 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!DOCTYPE composition>
+<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="layout-base.xhtml">
+
+ <ui:define name="layout-base">
+ <div class="row-fluid">
+ <div class="span3">
+ <ui:insert name="layout-application-sidebar"></ui:insert>
+ </div>
+
+ <div class="span9">
+ <ui:insert name="layout-application-main"></ui:insert>
+ </div>
+ </div>
+ </ui:define>
+
+</ui:composition>
View
20 src/main/webapp/WEB-INF/ui/layouts/layout-base.xhtml
@@ -1,10 +1,10 @@
-<?xml version='1.0' encoding='UTF-8' ?>
-<!DOCTYPE composition>
-<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
- template="./../templates/app.xhtml">
-
- <ui:define name="app">
- <ui:insert name="layout-base"></ui:insert>
- </ui:define>
-
-</ui:composition>
+<?xml version='1.0' encoding='UTF-8' ?>
+<!DOCTYPE composition>
+<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="./../templates/app.xhtml">
+
+ <ui:define name="app">
+ <ui:insert name="layout-base"></ui:insert>
+ </ui:define>
+
+</ui:composition>
View
14 src/main/webapp/WEB-INF/ui/layouts/layout-site.xhtml
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!DOCTYPE composition>
+<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="layout-base.xhtml">
+
+ <ui:define name="layout-base">
+ <div class="row-fluid">
+ <div class="span12">
+ <ui:insert name="layout-site"></ui:insert>
+ </div>
+ </div>
+ </ui:define>
+
+</ui:composition>
View
7 src/main/webapp/app/home.xhtml
@@ -1,13 +1,16 @@
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition>
-<ui:composition template="./../WEB-INF/ui/layouts/layout-app.xhtml"
+<ui:composition template="./../WEB-INF/ui/layouts/layout-application.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
- <ui:define name="layout-app">
+ <ui:define name="layout-application-sidebar">
+ </ui:define>
+
+ <ui:define name="layout-application-main">
<ui:include src="product/product.xhtml"></ui:include>
</ui:define>
View
8 src/main/webapp/app/product/product.xhtml
@@ -10,19 +10,19 @@
<p:tabView styleClass="row-fluid main-navigation" dynamic="true" cache="true">
<p:tab titleStyleClass="span3 nav-icon product-backlog" title="#{i18n['application.navigation.pills.product-backlog']}" >
- <ui:include src="/app/module/product-backlog.xhtml"></ui:include>
+ <ui:include src="module/product-backlog.xhtml"></ui:include>
</p:tab>
<p:tab titleStyleClass="span3 nav-icon resource-allocation" title="#{i18n['application.navigation.pills.resource-allocation']}">
- <ui:include src="/app/module/resource-allocation.xhtml"></ui:include>
+ <ui:include src="module/resource-allocation.xhtml"></ui:include>
</p:tab>
<p:tab titleStyleClass="span3 nav-icon burn-down" title="#{i18n['application.navigation.pills.burn-down']}">
- <ui:include src="/app/module/burn-down.xhtml"></ui:include>
+ <ui:include src="module/burn-down.xhtml"></ui:include>
</p:tab>
<p:tab titleStyleClass="span3 nav-icon reports" title="#{i18n['application.navigation.pills.reports']}">
- <ui:include src="/app/module/reports.xhtml"></ui:include>
+ <ui:include src="module/reports.xhtml"></ui:include>
</p:tab>
</p:tabView>
View
17 src/main/webapp/index.xhtml
@@ -1,26 +1,17 @@
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition>
-<ui:composition template="./WEB-INF/ui/layouts/layout-base.xhtml"
+<ui:composition template="./WEB-INF/ui/layouts/layout-site.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
- <ui:define name="layout-home">
-
+ <ui:define name="layout-site">
<div class="hero-unit">
- <div class="row-fluid">
- <div class="span3">
- </div>
- <div class="span9">
- <h2><i class="icon icon-camera"></i> <h:outputText value="#{i18n['global.title']}" /></h2>
- <p><h:outputText value="#{i18n['global.description']}"/></p>
- <p:colorPicker/>
- </div>
- </div>
+ <h2><i class="icon icon-cogs"></i><h:outputText value=" " /><h:outputText value="#{i18n['global.title']}" /></h2>
+ <p><h:outputText value="#{i18n['global.description']}"/></p>
</div>
-
</ui:define>
</ui:composition>
View
144 src/main/webapp/pages/index.xhtml
@@ -1,72 +1,72 @@
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:p="http://primefaces.org/ui">
- <h:head>
- <title>Welcome to OSS Scrum</title>
- </h:head>
- <h:body>
- <h:form>
- <table>
- <tr>
- <td><h:outputLabel for="id" value="Id : " /></td>
- <td><p:inputText id="id"
- value="#{organizationManagedBean.organization.id}">
- <f:validateLength minimum="5" />
- <p:ajax event="blur" update="idMsg" />
- </p:inputText> <p:message id="idMsg" for="id" display="icon" /></td>
- </tr>
- <tr>
- <td><h:outputLabel for="name" value="Name : " /></td>
- <td><p:inputText id="name"
- value="#{organizationManagedBean.organization.name}">
- <f:validateLength minimum="5" />
- <p:ajax event="blur" update="nameMsg" />
- </p:inputText> <p:message id="nameMsg" for="name" display="icon" /></td>
- </tr>
- <tr>
- <td><h:outputLabel for="status" value="Status : " /></td>
- <td><p:inputText id="status"
- value="#{organizationManagedBean.organization.status}">
- <f:validateLength minimum="2" />
- <p:ajax event="blur" update="statusMsg" />
- </p:inputText> <p:message id="statusMsg" for="status" display="icon" /></td>
- </tr>
- <tr>
- <td><p:commandButton id="addOrganization" value="Add"
- action="#{organizationManagedBean.createOrganization}"
- ajax="false"
- update=":list"/></td>
- <td><p:commandButton id="reset" value="Reset"
- action="#{organizationManagedBean.reset}" ajax="false" /></td>
- </tr>
- </table>
-
- <p:dataTable id="list" value="#{organizationManagedBean.organizations}" var="organization">
- <p:column headerText="id">
- <h:outputText value="#{organization.id}" />
- </p:column>
-
- <p:column headerText="name">
- <h:outputText value="#{organization.name}" />
- </p:column>
-
- <p:column headerText="code">
- <h:outputText value="#{organization.code}" />
- </p:column>
-
- <p:column headerText="description">
- <h:outputText value="#{organization.description}" />
- </p:column>
-
- <p:column headerText="action">
- <h:outputText value="#{organization.action}" />
- </p:column>
-
- <p:column headerText="status">
- <h:outputText value="#{organization.status}" />
- </p:column>
- </p:dataTable>
- </h:form>
- </h:body>
-</html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:p="http://primefaces.org/ui">
+ <h:head>
+ <title>Welcome to OSS Scrum</title>
+ </h:head>
+ <h:body>
+ <h:form>
+ <table>
+ <tr>
+ <td><h:outputLabel for="id" value="Id : " /></td>
+ <td><p:inputText id="id"
+ value="#{organizationManagedBean.organization.id}">
+ <f:validateLength minimum="5" />
+ <p:ajax event="blur" update="idMsg" />
+ </p:inputText> <p:message id="idMsg" for="id" display="icon" /></td>
+ </tr>
+ <tr>
+ <td><h:outputLabel for="name" value="Name : " /></td>
+ <td><p:inputText id="name"
+ value="#{organizationManagedBean.organization.name}">
+ <f:validateLength minimum="5" />
+ <p:ajax event="blur" update="nameMsg" />
+ </p:inputText> <p:message id="nameMsg" for="name" display="icon" /></td>
+ </tr>
+ <tr>
+ <td><h:outputLabel for="status" value="Status : " /></td>
+ <td><p:inputText id="status"
+ value="#{organizationManagedBean.organization.status}">
+ <f:validateLength minimum="2" />
+ <p:ajax event="blur" update="statusMsg" />
+ </p:inputText> <p:message id="statusMsg" for="status" display="icon" /></td>
+ </tr>
+ <tr>
+ <td><p:commandButton id="addOrganization" value="Add"
+ action="#{organizationManagedBean.createOrganization}"
+ ajax="false"
+ update=":list"/></td>
+ <td><p:commandButton id="reset" value="Reset"
+ action="#{organizationManagedBean.reset}" ajax="false" /></td>
+ </tr>
+ </table>
+
+ <p:dataTable id="list" value="#{organizationManagedBean.organizations}" var="organization">
+ <p:column headerText="id">
+ <h:outputText value="#{organization.id}" />
+ </p:column>
+
+ <p:column headerText="name">
+ <h:outputText value="#{organization.name}" />
+ </p:column>
+
+ <p:column headerText="code">
+ <h:outputText value="#{organization.code}" />
+ </p:column>
+
+ <p:column headerText="description">
+ <h:outputText value="#{organization.description}" />
+ </p:column>
+
+ <p:column headerText="action">
+ <h:outputText value="#{organization.action}" />
+ </p:column>
+
+ <p:column headerText="status">
+ <h:outputText value="#{organization.status}" />
+ </p:column>
+ </p:dataTable>
+ </h:form>
+ </h:body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.