Skip to content

Commit

Permalink
updated to BootsFaces 0.9.0-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed May 9, 2016
1 parent fb2582d commit 975f6c1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 34 deletions.
19 changes: 1 addition & 18 deletions BootsFacesChess/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,7 @@
<dependency>
<groupId>net.bootsfaces</groupId>
<artifactId>bootsfaces</artifactId>
<version>0.8.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>5.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.primefaces.extensions</groupId>
<artifactId>primefaces-extensions</artifactId>
<version>3.2.0</version>
</dependency>
<dependency>
<groupId>org.omnifaces</groupId>
<artifactId>omnifaces</artifactId>
<version>1.10</version>
<scope>compile</scope>
<version>0.9.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>javax.el</groupId>
Expand Down
2 changes: 0 additions & 2 deletions BootsFacesChess/src/main/webapp/WEB-INF/faces-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd"
version="2.2">
<application>
<resource-handler>org.omnifaces.resourcehandler.CombinedResourceHandler
</resource-handler>
</application>

</faces-config>
4 changes: 4 additions & 0 deletions BootsFacesChess/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
<param-name>BootsFaces_USETHEME</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>BootsFaces_THEME</param-name>
<param-value>default</param-value>
</context-param>
<welcome-file-list>
<welcome-file>index.jsf</welcome-file>
</welcome-file-list>
Expand Down
20 changes: 6 additions & 14 deletions BootsFacesChess/src/main/webapp/index.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<b:row>
<b:column span="8">
<script>targets='#{board.legalTargets}';</script>
<b:panel title="#{board.title}" id="board" look="info"
<b:panel title="#{board.title}" id="board" look="primary"
contentStyle="height:580px">
<ui:repeat id="rows" var="row" value="#{board.rows}"
varStatus="rowStatus">
Expand All @@ -61,17 +61,9 @@
ondragstart="ajax:board.ondragstart(rowStatus.index,columnStatus.index)"
ondragover="if (targets.indexOf('(#{rowStatus.index},#{columnStatus.index})')>=0) event.preventDefault();"
ondrop="ajax:board.ondragdrop(rowStatus.index,columnStatus.index)"
update="@form :messages" />
update="@form :messages"
process="@form" />
</div>


<ui:remove>
<b:image value="#{image}"
style="width:68px;height:68px;display:inline-block;#{board.getOpacityAndBorder(rowStatus.index,columnStatus.index)}"
onclick="ajax:board.onclick(rowStatus.index,columnStatus.index)"
oncomplete="document.getElementById('form:opponent').click()"
update="@form :messages" />
</ui:remove>
</ui:repeat>
<ui:remove>
<b:image value="wikimediaimages/s_s_turm_frei.png"
Expand All @@ -83,7 +75,7 @@
</b:column>
<b:column span="4">
<b:panel title="History" contentStyle="height:220px"
look="info">
look="primary">
<b:panelGrid id="historyGrid" colSpans="5,7"
style="width:300px;height:200px;overflow-y: auto;overflow-x:hidden">
<c:forEach items="#{board.history}" var="move">
Expand All @@ -96,7 +88,7 @@
grid.scrollTop = grid.scrollHeight;
</script>
</b:panel>
<b:panel look="info"
<b:panel look="primary"
title="Settings #{settings.economyMode?' (restricted to save CPU time)':''}"
contentStyle="height:140px">
<b:panelGrid colSpans="6,6">
Expand All @@ -111,7 +103,7 @@
</b:panel>

<b:panel title="statistics" contentStyle="height:100px"
look="info">
look="success">
<b:panelGrid colSpans="6,6">
<h:outputText value="Elapsed time:" />
<h:outputText value="#{board.elapsedTime}" />
Expand Down

0 comments on commit 975f6c1

Please sign in to comment.