Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cf7a4105
authored
May 17, 2014
by
Antti Tönkyrä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial set for frontend functionality
1 parent
381bf84c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
6 deletions
code/MoyaWeb/WebContent/networkassociation/index.xhtml
code/MoyaWeb/src/fi/codecrew/moya/rest/NetworkAssociationView.java → code/MoyaWeb/src/fi/codecrew/moya/rest/NetworkAssociationRestView.java
code/MoyaWeb/src/fi/codecrew/moya/web/cdiview/networkassociation/NetworkAssociationView.java
code/MoyaWeb/WebContent/networkassociation/index.xhtml
0 → 100644
View file @
cf7a410
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:products=
"http://java.sun.com/jsf/composite/cditools/products"
xmlns:f=
"http://java.sun.com/jsf/core"
>
<h:body>
<ui:composition
template=
"#{sessionHandler.template}"
>
<f:metadata>
<f:event
type=
"preRenderView"
listener=
"#{networkAssociationView.initView}"
/>
</f:metadata>
<ui:define
name=
"content"
>
LRN
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
code/MoyaWeb/src/fi/codecrew/moya/rest/NetworkAssociationView.java
→
code/MoyaWeb/src/fi/codecrew/moya/rest/NetworkAssociation
Rest
View.java
View file @
cf7a410
...
@@ -20,7 +20,7 @@ import fi.codecrew.moya.rest.pojo.NetworkAssociationResponseRoot;
...
@@ -20,7 +20,7 @@ import fi.codecrew.moya.rest.pojo.NetworkAssociationResponseRoot;
@RequestScoped
@RequestScoped
@Path
(
"/networkassociation"
)
@Path
(
"/networkassociation"
)
public
class
NetworkAssociationView
{
public
class
NetworkAssociation
Rest
View
{
@EJB
@EJB
private
NetworkAssociationBeanLocal
networkAssociationBean
;
private
NetworkAssociationBeanLocal
networkAssociationBean
;
...
@@ -68,11 +68,6 @@ public class NetworkAssociationView {
...
@@ -68,11 +68,6 @@ public class NetworkAssociationView {
if
(
activate
==
null
)
if
(
activate
==
null
)
throw
new
Exception
(
"INVALID_PARAMETER_FOR_ACTIVATE"
);
throw
new
Exception
(
"INVALID_PARAMETER_FOR_ACTIVATE"
);
if
(
activate
)
System
.
out
.
println
(
"TRUE TRUE"
);
else
System
.
out
.
println
(
"SUPER FALSE"
);
List
<
NetworkAssociation
>
activeAssociations
=
networkAssociationBean
.
getActiveAssociations
(
activate
);
List
<
NetworkAssociation
>
activeAssociations
=
networkAssociationBean
.
getActiveAssociations
(
activate
);
for
(
NetworkAssociation
na
:
activeAssociations
)
{
for
(
NetworkAssociation
na
:
activeAssociations
)
{
...
...
code/MoyaWeb/src/fi/codecrew/moya/web/cdiview/networkassociation/NetworkAssociationView.java
0 → 100644
View file @
cf7a410
package
fi
.
codecrew
.
moya
.
web
.
cdiview
.
networkassociation
;
import
javax.inject.Named
;
@Named
public
class
NetworkAssociationView
{
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment