Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
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 2ae1f001
authored
Oct 06, 2012
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix jsf errors
1 parent
63fbadf0
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
64 additions
and
22 deletions
code/LanBortalWeb/WebContent/resources/cditools/bills/list.xhtml
code/LanBortalWeb/WebContent/resources/cditools/food/shop.xhtml
code/LanBortalWeb/WebContent/resources/cditools/products/food.xhtml
code/LanBortalWeb/WebContent/resources/cditools/products/shop.xhtml
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/map/MapManageView.java
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/BillListView.java
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/FoodShopView.java
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/ProductShopView.java
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/user/AuthView.java
code/LanBortalWeb/WebContent/resources/cditools/bills/list.xhtml
View file @
2ae1f00
...
...
@@ -12,14 +12,14 @@
<h:outputText
rendered=
"#{billListView.bills.rowCount le 0}"
value=
"#{i18n['bills.noBills']}"
/>
<h:form
rendered=
"#{billListView.bills.rowCount gt 0}"
>
<h:dataTable
styleClass=
"bordertable"
id=
"billList"
value=
"#{billListView.bills}"
var=
"bill"
>
<h:column
rendered=
"#{billListView.canWriteBill
()
}"
>
<h:column
rendered=
"#{billListView.canWriteBill}"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['bill.payer']}"
/>
</f:facet>
<h:link
rendered=
"#{billListView.canWriteBill
()
}"
outcome=
"/useradmin/edit"
value=
"#{bill.addr1}"
>
<h:link
rendered=
"#{billListView.canWriteBill}"
outcome=
"/useradmin/edit"
value=
"#{bill.addr1}"
>
<f:param
name=
"userid"
value=
"#{bill.user.user.id}"
/>
</h:link>
<h:outputText
rendered=
"#{
!billListView.canWriteBill()
}"
value=
"#{bill.addr1}"
/>
<h:outputText
rendered=
"#{
not billListView.canWriteBill
}"
value=
"#{bill.addr1}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
...
...
@@ -59,12 +59,12 @@
<f:param
name=
"billid"
value=
"#{bill.id}"
/>
</h:link>
</h:column>
<h:column
rendered=
"#{billListView.canWriteBill
()
}"
>
<h:column
rendered=
"#{billListView.canWriteBill}"
>
<h:link
outcome=
"/bill/edit"
value=
"#{i18n['bill.edit']}"
>
<f:param
name=
"billid"
value=
"#{bill.id}"
/>
</h:link>
</h:column>
<h:column
rendered=
"#{billListView.canWriteBill
()
}"
>
<h:column
rendered=
"#{billListView.canWriteBill}"
>
<h:commandButton
rendered=
"#{bill.paidDate == null}"
action=
"#{billListView.markPaid()}"
value=
"#{i18n['bill.markPaid']}"
>
<f:ajax
render=
"@form"
/>
</h:commandButton>
...
...
code/LanBortalWeb/WebContent/resources/cditools/food/shop.xhtml
View file @
2ae1f00
...
...
@@ -45,19 +45,19 @@
<f:facet
name=
"header"
>
<h:outputText
id=
"count"
value=
"${i18n['product.cart.count']}"
/>
</f:facet>
<h:commandButton
action=
"#{foodShopView.add
(-10)
}"
value=
"#{i18n['productshop.minusTen']}"
>
<h:commandButton
action=
"#{foodShopView.add
MinusTen
}"
value=
"#{i18n['productshop.minusTen']}"
>
<f:ajax
render=
"@form"
/>
</h:commandButton>
<h:commandButton
action=
"#{foodShopView.add
(-1)
}"
value=
"#{i18n['productshop.minusOne']}"
>
<h:commandButton
action=
"#{foodShopView.add
MinusOne
}"
value=
"#{i18n['productshop.minusOne']}"
>
<f:ajax
render=
"@form"
/>
</h:commandButton>
<h:inputText
size=
"4"
id=
"cartcount"
value=
"#{cart.count}"
>
<f:ajax
render=
"@form"
event=
"valueChange"
/>
</h:inputText>
<h:commandButton
action=
"#{foodShopView.add
(1)
}"
value=
"#{i18n['productshop.plusOne']}"
>
<h:commandButton
action=
"#{foodShopView.add
One
}"
value=
"#{i18n['productshop.plusOne']}"
>
<f:ajax
render=
"@form"
/>
</h:commandButton>
<h:commandButton
action=
"#{foodShopView.add
(10)
}"
value=
"#{i18n['productshop.plusTen']}"
>
<h:commandButton
action=
"#{foodShopView.add
Ten
}"
value=
"#{i18n['productshop.plusTen']}"
>
<f:ajax
render=
"@form"
/>
</h:commandButton>
</h:column>
...
...
code/LanBortalWeb/WebContent/resources/cditools/products/food.xhtml
View file @
2ae1f00
...
...
@@ -45,19 +45,19 @@
<f:facet
name=
"header"
>
<h:outputText
id=
"count"
value=
"${i18n['product.cart.count']}"
/>
</f:facet>
<h:commandButton
action=
"#{foodShopView.add
(-10)
}"
value=
"#{i18n['productshop.minusTen']}"
>
<h:commandButton
action=
"#{foodShopView.add
MinusTen
}"
value=
"#{i18n['productshop.minusTen']}"
>
<f:ajax
render=
"@form"
/>
</h:commandButton>
<h:commandButton
action=
"#{foodShopView.add
(-1)
}"
value=
"#{i18n['productshop.minusOne']}"
>
<h:commandButton
action=
"#{foodShopView.add
MinusOne
}"
value=
"#{i18n['productshop.minusOne']}"
>
<f:ajax
render=
"@form"
/>
</h:commandButton>
<h:inputText
size=
"4"
id=
"cartcount"
value=
"#{cart.count}"
>
<f:ajax
render=
"@form"
event=
"valueChange"
/>
</h:inputText>
<h:commandButton
action=
"#{foodShopView.add
(1)
}"
value=
"#{i18n['productshop.plusOne']}"
>
<h:commandButton
action=
"#{foodShopView.add
One
}"
value=
"#{i18n['productshop.plusOne']}"
>
<f:ajax
render=
"@form"
/>
</h:commandButton>
<h:commandButton
action=
"#{foodShopView.add
(10)
}"
value=
"#{i18n['productshop.plusTen']}"
>
<h:commandButton
action=
"#{foodShopView.add
Ten
}"
value=
"#{i18n['productshop.plusTen']}"
>
<f:ajax
render=
"@form"
/>
</h:commandButton>
</h:column>
...
...
code/LanBortalWeb/WebContent/resources/cditools/products/shop.xhtml
View file @
2ae1f00
...
...
@@ -45,19 +45,19 @@
<f:facet
name=
"header"
>
<h:outputText
id=
"count"
value=
"${i18n['product.cart.count']}"
/>
</f:facet>
<h:commandButton
action=
"#{productShopView.add
(-10)
}"
value=
"#{i18n['productshop.minusTen']}"
>
<h:commandButton
action=
"#{productShopView.add
MinusTen
}"
value=
"#{i18n['productshop.minusTen']}"
>
<f:ajax
render=
"@form"
/>
</h:commandButton>
<h:commandButton
action=
"#{productShopView.add
(-1)
}"
value=
"#{i18n['productshop.minusOne']}"
>
<h:commandButton
action=
"#{productShopView.add
MinusOne
}"
value=
"#{i18n['productshop.minusOne']}"
>
<f:ajax
render=
"@form"
/>
</h:commandButton>
<h:inputText
size=
"4"
id=
"cartcount"
value=
"#{cart.count}"
>
<f:ajax
render=
"@form"
event=
"valueChange"
/>
</h:inputText>
<h:commandButton
action=
"#{productShopView.add
(1)
}"
value=
"#{i18n['productshop.plusOne']}"
>
<h:commandButton
action=
"#{productShopView.add
One
}"
value=
"#{i18n['productshop.plusOne']}"
>
<f:ajax
render=
"@form"
/>
</h:commandButton>
<h:commandButton
action=
"#{productShopView.add
(10)
}"
value=
"#{i18n['productshop.plusTen']}"
>
<h:commandButton
action=
"#{productShopView.add
Ten
}"
value=
"#{i18n['productshop.plusTen']}"
>
<f:ajax
render=
"@form"
/>
</h:commandButton>
</h:column>
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/map/MapManageView.java
View file @
2ae1f00
...
...
@@ -147,7 +147,7 @@ public class MapManageView extends GenericCDIView {
return
null
;
}
public
void
generatePlaces
()
{
public
String
generatePlaces
()
{
String
[]
tablenames
=
getNamebase
().
split
(
";"
);
List
<
Place
>
mapplaces
=
map
.
getPlaces
();
...
...
@@ -186,6 +186,7 @@ public class MapManageView extends GenericCDIView {
map
=
eventmapBean
.
saveMap
(
map
);
logger
.
debug
(
"places in map merge {}"
,
map
.
getPlaces
().
size
());
return
null
;
}
public
void
setMapname
(
String
mapname
)
{
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/BillListView.java
View file @
2ae1f00
...
...
@@ -84,7 +84,7 @@ public class BillListView extends GenericCDIView {
return
bills
;
}
public
boolean
c
anWriteBill
()
{
public
boolean
isC
anWriteBill
()
{
return
writeBill
;
}
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/FoodShopView.java
View file @
2ae1f00
...
...
@@ -83,7 +83,27 @@ public class FoodShopView extends GenericCDIView {
item
.
setCount
(
item
.
getCount
().
add
(
BigDecimal
.
valueOf
(
count
)));
return
null
;
}
public
String
addOne
()
{
return
add
(
1
);
}
public
String
addMinusOne
()
{
return
add
(-
1
);
}
public
String
addTen
()
{
return
add
(
10
);
}
public
String
addMinusTen
()
{
return
add
(-
10
);
}
public
BigDecimal
getAccountBalance
()
{
BigDecimal
ret
=
user
.
getAccountBalance
();
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/ProductShopView.java
View file @
2ae1f00
...
...
@@ -82,6 +82,26 @@ public class ProductShopView extends GenericCDIView {
item
.
setCount
(
item
.
getCount
().
add
(
BigDecimal
.
valueOf
(
count
)));
return
null
;
}
public
String
addOne
()
{
return
add
(
1
);
}
public
String
addMinusOne
()
{
return
add
(-
1
);
}
public
String
addTen
()
{
return
add
(
10
);
}
public
String
addMinusTen
()
{
return
add
(-
10
);
}
public
BigDecimal
getAccountBalance
()
{
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/user/AuthView.java
View file @
2ae1f00
...
...
@@ -59,12 +59,12 @@ public class AuthView extends GenericCDIView {
}
public
void
executeLogin
()
{
public
String
executeLogin
()
{
bootStrapBean
.
saneDefaults
();
if
(
login
==
null
||
password
==
null
||
login
.
isEmpty
()
||
password
.
isEmpty
())
{
return
;
return
null
;
}
HttpServletRequest
request
=
getRequest
();
...
...
@@ -99,7 +99,8 @@ public class AuthView extends GenericCDIView {
}
}
return
null
;
}
public
String
getLogin
()
{
...
...
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