Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2016-09-29 14:39:57 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d6b1af5e36817f33f82953a02c7a0f814c37af0c
d6b1af5e
1 parent
6b8abed1
Changement aiguillage initial
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
1 deletions
src/main/webapp/WEB-INF/faces-config.xml
src/main/webapp/index.jsp
src/main/webapp/index.xhtml
src/main/webapp/WEB-INF/faces-config.xml
View file @
d6b1af5
...
...
@@ -6,6 +6,18 @@
version=
"2.0"
>
<navigation-rule>
<from-view-id>
/index.xhtml
</from-view-id>
<navigation-case>
<from-outcome>
addBook
</from-outcome>
<to-view-id>
/book.xhtml
</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>
listBooks
</from-outcome>
<to-view-id>
/result.xhtml
</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>
/book.xhtml
</from-view-id>
<navigation-case>
<from-outcome>
success
</from-outcome>
...
...
src/main/webapp/index.jsp
View file @
d6b1af5
<%@ page session="false" %>
<%
response.sendRedirect("
book
.jsf");
response.sendRedirect("
index
.jsf");
%>
\ No newline at end of file
...
...
src/main/webapp/index.xhtml
0 → 100644
View file @
d6b1af5
<?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:ui=
"http://xmlns.jcp.org/jsf/facelets"
xmlns:f=
"http://xmlns.jcp.org/jsf/core"
>
<body>
<h:form>
<ul>
<li>
<h:commandLink
action=
"addBook"
>
<h:outputText
value=
"Add book"
/>
</h:commandLink>
</li>
<li>
<h:commandLink
action=
"listBooks"
>
<h:outputText
value=
"List books"
/>
</h:commandLink>
</li>
</ul>
</h:form>
</body>
</html>
Please
register
or
login
to post a comment