diff options
author | Henri Herscher <henri@oreka.org> | 2005-10-20 13:40:58 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2005-10-20 13:40:58 +0000 |
commit | 7e1d63dd9fd149e4934bf77095c8610fac786b04 (patch) | |
tree | 5fe486a1b0300c3b84fb559107a868e5cc2c95da /orkweb/context/WEB-INF | |
parent | 467768fc956fc3e5a253373f26c71c681b31b6b8 (diff) |
First checkin
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@2 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkweb/context/WEB-INF')
-rw-r--r-- | orkweb/context/WEB-INF/Home.html | 43 | ||||
-rw-r--r-- | orkweb/context/WEB-INF/Home.page | 11 | ||||
-rw-r--r-- | orkweb/context/WEB-INF/RecSegments.html | 154 | ||||
-rw-r--r-- | orkweb/context/WEB-INF/RecSegments.page | 44 | ||||
-rw-r--r-- | orkweb/context/WEB-INF/RecSegments.properties | 18 | ||||
-rw-r--r-- | orkweb/context/WEB-INF/TestComponent.html | 10 | ||||
-rw-r--r-- | orkweb/context/WEB-INF/orkweb.application | 19 | ||||
-rw-r--r-- | orkweb/context/WEB-INF/web.xml | 42 |
8 files changed, 341 insertions, 0 deletions
diff --git a/orkweb/context/WEB-INF/Home.html b/orkweb/context/WEB-INF/Home.html new file mode 100644 index 0000000..e2ff6d5 --- /dev/null +++ b/orkweb/context/WEB-INF/Home.html @@ -0,0 +1,43 @@ +<html jwcid="@Shell" stylesheet="ognl:assets.mystyle" title="Welcome to OrkWeb" > +<link jwcid="@If" condition="false" href="orekastyle.css" rel="stylesheet" type="text/css"/> + +<body> + +<table id="container"> + <tr> + <td colspan="2"><span jwcid="@my:MainMenu" pageName="Home">Here goes the main menu</span></td> + </tr> + <tr> + <td class="criteria"> + <form jwcid="@Form"> + <table class="inputform"> + <tr> + <td> + <big>Please login<big> + </td> + </tr> + <tr> + <td> + <font color="red"> + <span jwcid="@Insert" value="ognl:errorMessage">Error Message</span> + </font> + </td> + </tr> + <tr> + <td>Username</td> + <td><input jwcid="@TextField" value="ognl:username" translator="translator:string"/></td> + </tr> + <tr> + <td>Password</td> + <td><input jwcid="@TextField" value="ognl:password" translator="translator:string" hidden="true"/></td> + </tr> + <tr> + <td><input type="submit" jwcid="@Submit" action="ognl:listeners.formSubmit" value="Login"/></td> + </tr> + </table> + </form> + </td> + </tr> +</table> +</body> +</html>
\ No newline at end of file diff --git a/orkweb/context/WEB-INF/Home.page b/orkweb/context/WEB-INF/Home.page new file mode 100644 index 0000000..93a41cd --- /dev/null +++ b/orkweb/context/WEB-INF/Home.page @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE page-specification + PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN" + "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd"> +<!-- generated by Spindle, http://spindle.sourceforge.net --> + +<page-specification class="net.sf.oreka.pages.Home"> + <description><![CDATA[ add a description ]]></description> + + <external-asset name="mystyle" URL="./css/orekastyle.css" /> +</page-specification> diff --git a/orkweb/context/WEB-INF/RecSegments.html b/orkweb/context/WEB-INF/RecSegments.html new file mode 100644 index 0000000..cf4cf42 --- /dev/null +++ b/orkweb/context/WEB-INF/RecSegments.html @@ -0,0 +1,154 @@ +<html jwcid="@Shell" stylesheet="ognl:assets.mystyle" title="Browse segments" > +<link jwcid="@If" condition="false" href="orekastyle.css" rel="stylesheet" type="text/css"/> +<body jwcid="@Body"> +<table id="container"> + <tr> + <td colspan="2"><span jwcid="@my:MainMenu" pageName="RecSegments">Here goes the main menu</span></td> + </tr> + <tr> + <td class="criteria"> + <form jwcid="@Form" listener="ognl:listeners.formSubmit"> + <table cellpadding="4" class="inputform"> + <span jwcid="@If" condition="ognl:recSegmentFilter.minDurationError != null"> + <tr> + <td class="error"><span jwcid="@Insert" value="ognl:recSegmentFilter.minDurationError">error in this field</span></td> + </tr> + </span> + <tr> + <td>Min Duration</td> + <td><input jwcid="@TextField" value="ognl:recSegmentFilter.minDuration" translator="translator:string" size="12" class="ognl:recSegmentFilter.minDurationError==null ? recSegmentFilter.okStyle : recSegmentFilter.errorStyle"/></td> + </tr> + <span jwcid="@If" condition="ognl:recSegmentFilter.maxDurationError != null"> + <tr> + <td class="error"><span jwcid="@Insert" value="ognl:recSegmentFilter.maxDurationError">error in this field</span></td> + </tr> + </span> + <tr> + <td>Max Duration</td> + <td><input jwcid="@TextField" value="ognl:recSegmentFilter.maxDuration" translator="translator:string" size="12" class="ognl:recSegmentFilter.maxDurationError==null ? recSegmentFilter.okStyle : recSegmentFilter.errorStyle"/></td> + </tr> + <tr jwcid="@If" condition="ognl:recSegmentFilter.localPartyError != null"> + <td class="error"><span jwcid="@Insert" value="ognl:recSegmentFilter.localPartyError">error in this field</span></td> + </tr> + <tr> + <td><span key="LocalParty">Local Party</span></td> + <td><input jwcid="@TextField" value="ognl:recSegmentFilter.localParty" translator="translator:string" size="12" class="ognl:recSegmentFilter.localPartyError==null ? recSegmentFilter.okStyle : recSegmentFilter.errorStyle"/></td> + </tr> + <tr jwcid="@If" condition="ognl:recSegmentFilter.remotePartyError != null"> + <td class="error"><span jwcid="@Insert" value="ognl:recSegmentFilter.remotePartyError">error in this field</span></td> + </tr> + <tr> + <td><span key="RemoteParty">Remote Party</span></td> + <td><input jwcid="@TextField" value="ognl:recSegmentFilter.remoteParty" translator="translator:string" size="12" class="ognl:recSegmentFilter.remotePartyError==null ? recSegmentFilter.okStyle : recSegmentFilter.errorStyle"/></td> + </tr> + <tr> + <td>Start Date</td> + <td><span jwcid="@DatePicker" value="ognl:recSegmentFilter.startDate" translator="translator:date,pattern=yyyy-MM-dd HH:mm:ss" disabled="false" icon="asset:cal"/></td> + </tr> + <tr> + <td>End Date</td> + <td><span jwcid="@DatePicker" value="ognl:recSegmentFilter.endDate" translator="translator:date,pattern=yyyy-MM-dd HH:mm:ss" icon="asset:cal"/></td> + </tr> + <tr> + <td colspan="2"> + <span jwcid="direction@RadioGroup" selected="ognl:recSegmentFilter.direction" displayName="Direction" validators="validators:required"> + <!--<input type="radio" jwcid="@Radio" value="ognl:@net.sf.oreka.Direction@UNKN"> Unkn </input>--> + Outgoing <input type="radio" jwcid="@Radio" value="ognl:@net.sf.oreka.Direction@OUT"> Out </input> + Incoming<input type="radio" jwcid="@Radio" value="ognl:@net.sf.oreka.Direction@IN"> In </input> + Both <input type="radio" jwcid="@Radio" value="ognl:@net.sf.oreka.Direction@ALL"> Both </input> + </span> + </td> + </tr> + <tr align="Left"> + <td colspan="2"><input type="submit" value="Search"/></td> + </tr> + <tr> + <td colspan="2"> + + <script language="JavaScript"> + function play (audioFilename) + { + document.all.player.autoStart = true; + document.all.player.fileName = audioFilename; + } + </script> + + <OBJECT ID="player" + CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" + CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf. + cab#Version=5,1,52,701" + STANDBY="Loading Microsoft Windows Media Player components..." + TYPE="application/x-oleobject" + WIDTH=200 HEIGHT=50 > + <PARAM NAME="fileName" VALUE=""> + <PARAM NAME="animationatStart" VALUE="false"> + <PARAM NAME="transparentatStart" VALUE="true"> + <PARAM NAME="showControls" VALUE="true"> + <PARAM NAME="ShowStatusBar" VALUE="true"> + <PARAM NAME="ShowDisplay" VALUE="false"> + <PARAM NAME="CurrentPosition" VALUE="0"> + <PARAM NAME="autoStart" VALUE="true"> + </OBJECT> + </td> + </tr> + </table> + </form> + </td> + <!-- *** Results table *** --> + <span jwcid="@If" condition="ognl:!items.isEmpty"> + <td class="results"> + <table> + <tr> + <td><span jwcid="mytablepaging">Paging goes here</span></td> + </tr> + <tr> + <td> + <table> + <tr> + <td> + <table> + <span jwcid="mytableheader"></span> + <tr jwcid="segments" class="even"> + <td><span jwcid="@Insert" value="ognl:item.recSegment.timestamp">timestamp</span></td> + <td><span jwcid="@Insert" value="ognl:item.recSegment.duration">duration</span></td> + <td><span jwcid="@Insert" value="ognl:item.recSegment.localParty">local party</span></td> + <td> + <!--<span jwcid="@Insert" value="ognl:item.recSegment.direction">direction</span>--> + <span jwcid="@If" condition="ognl:item.recSegment.direction == @net.sf.oreka.Direction@IN">In</span> + <span jwcid="@If" condition="ognl:item.recSegment.direction == @net.sf.oreka.Direction@OUT">Out</span> + </td> + <td><span jwcid="@Insert" value="ognl:item.recSegment.remoteParty">remote party</span></td> + <td> + <span jwcid="@If" condition="ognl:item.recSegment.recTape != null"> + <span jwcid="@Insert" value="ognl:item.recSegment.recTape.id">tape id</span> + </span> + </td> + <td> + <span jwcid="@If" condition="ognl:item.recSegment.recTape != null"> + <a jwcid="@Any" href="ognl:item.recSegment.recTape.playUrl"><img jwcid="@Image" image="asset:play" alt="Play"/></a> + </span> + </td> + </tr> + </table> + </td> + </tr> + </table> + </td> + </tr> + <tr> + <td><span jwcid="mytablepaging2">Paging goes here</span></td> + </tr> + </table> + </td> + </span> + <span jwcid="@If" condition="ognl:items.isEmpty"> + <td valign="top"> + <span key="NoResults">No results</span> + </td> + </span> + </tr> +</table> +<!--<img jwcid="@Image" image="ognl:assets.myimage" />--> + +</body> +</html>
\ No newline at end of file diff --git a/orkweb/context/WEB-INF/RecSegments.page b/orkweb/context/WEB-INF/RecSegments.page new file mode 100644 index 0000000..5894409 --- /dev/null +++ b/orkweb/context/WEB-INF/RecSegments.page @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE page-specification + PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN" + "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd"> +<!-- generated by Spindle, http://spindle.sourceforge.net --> + +<page-specification class="net.sf.oreka.pages.RecSegmentsPage"> + <description><![CDATA[ add a description ]]></description> + + <property-specification name="item" type="net.sf.oreka.services.RecSegmentResult"/> + <property-specification name="items" type="java.util.List"> + new java.util.ArrayList() + </property-specification> + <property-specification name="recSegmentFilter" type="net.sf.oreka.services.RecSegmentFilter" persistent="yes"> + new net.sf.oreka.services.RecSegmentFilter() + </property-specification> + <property-specification name="tableState" type="net.sf.oreka.tapestry.TableState" persistent="yes"> + new net.sf.oreka.tapestry.TableState() + </property-specification> + + <!--<context-asset name="myimage" path="/images/Czech.gif"/>--> + <external-asset name="mystyle" URL="./css/orekastyle.css" /> + <context-asset name="play" path="/images/icon_play.gif"/> + <context-asset name="cal" path="/images/icon_calendar.gif"/> + + <bean name="rowStyle" class="org.apache.tapestry.bean.EvenOdd"/> + + <component id="segments" type="Foreach"> + <binding name="source" expression="items"/> + <binding name="value" expression="item"/> + <static-binding name="element" value="tr"/> + <binding name="class" expression="beans.rowStyle.next"/> + </component> + + <component id="mytableheader" type="my:TableHeader"> + <static-binding name="columnsCSV" value="seg.timestamp, seg.duration, seg.localParty, seg.direction, seg.remoteParty, !tape.id"/> + <binding name="tableState" expression="tableState"/> + </component> + + <component id="mytablepaging" type="my:TablePaging"> + <binding name="tableState" expression="tableState"/> + </component> + <component id="mytablepaging2" copy-of="mytablepaging"/> +</page-specification>
\ No newline at end of file diff --git a/orkweb/context/WEB-INF/RecSegments.properties b/orkweb/context/WEB-INF/RecSegments.properties new file mode 100644 index 0000000..a8606db --- /dev/null +++ b/orkweb/context/WEB-INF/RecSegments.properties @@ -0,0 +1,18 @@ + +Duration=Duration +LocalParty=Local Party +RemoteParty=Remote Party + +seg.timestamp=Time +seg.direction=Direction +seg.duration=Duration +seg.localParty=Local Party +seg.remoteParty=Remote Party +tape.id=Tape Id + +firstPage=<< +lastPage=>> +previousPage=< +nextPage=> + +NoResults=There was no results
\ No newline at end of file diff --git a/orkweb/context/WEB-INF/TestComponent.html b/orkweb/context/WEB-INF/TestComponent.html new file mode 100644 index 0000000..e295913 --- /dev/null +++ b/orkweb/context/WEB-INF/TestComponent.html @@ -0,0 +1,10 @@ +<table> + <tr> + <td> + <span jwcid="@Conditional" condition="ognl:highlight">*</span> + <a jwcid="@DirectLink" listener="ognl:listeners.myAction"> + goHome + </a> + </td> + </tr> +</table>
\ No newline at end of file diff --git a/orkweb/context/WEB-INF/orkweb.application b/orkweb/context/WEB-INF/orkweb.application new file mode 100644 index 0000000..3a3b934 --- /dev/null +++ b/orkweb/context/WEB-INF/orkweb.application @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE application + PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//EN" + "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"> + +<application name="orkweb" engine-class="org.apache.tapestry.engine.BaseEngine" > + + <description><![CDATA[ add a description ]]></description> + + <!--<page name="Home" specification-path="Home.page"/>--> + + <!--<meta key="org.apache.tapestry.page-class-packages" value="net.sf.oreka.pages"/> --> + <meta key="org.apache.tapestry.component-class-packages" value="net.sf.oreka.tcomponents"/> + + <library id="contrib" specification-path="/org/apache/tapestry/contrib/Contrib.library"/> + <library id="my" specification-path="/net/sf/oreka/tapestry/my.library"/> + + <!--<extension name="Startup" class="net.sf.oreka.services.Startup" immediate="yes" />--> +</application> diff --git a/orkweb/context/WEB-INF/web.xml b/orkweb/context/WEB-INF/web.xml new file mode 100644 index 0000000..7fd4fa3 --- /dev/null +++ b/orkweb/context/WEB-INF/web.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE web-app + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" + "http://java.sun.com/dtd/web-app_2_3.dtd"> +<!-- generated by Spindle, http://spindle.sourceforge.net --> + + +<web-app> + <display-name>orkweb</display-name> + <context-param> + <param-name>Log4jConfigFile</param-name> + <param-value>c:/oreka/orkweb/log4j.properties</param-value> + </context-param> + <context-param> + <param-name>HibernateConfigFile</param-name> + <param-value>c:/oreka/orkweb/mysql.hbm.xml</param-value> + </context-param> + <context-param> + <param-name>Debug</param-name> + <param-value>true</param-value> + </context-param> + <filter> + <filter-name>redirect</filter-name> + <filter-class>org.apache.tapestry.RedirectFilter</filter-class> + </filter> + <filter-mapping> + <filter-name>redirect</filter-name> + <url-pattern>/</url-pattern> + </filter-mapping> + <listener> + <listener-class>net.sf.oreka.orkweb.ContextListener</listener-class> + </listener> + <servlet> + <servlet-name>orkweb</servlet-name> + <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + <servlet-mapping> + <servlet-name>orkweb</servlet-name> + <url-pattern>/app</url-pattern> + </servlet-mapping> +</web-app> |