Return-Path: X-Original-To: apmail-incubator-isis-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-isis-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87D049757 for ; Thu, 16 Feb 2012 23:56:47 +0000 (UTC) Received: (qmail 7502 invoked by uid 500); 16 Feb 2012 23:56:47 -0000 Delivered-To: apmail-incubator-isis-commits-archive@incubator.apache.org Received: (qmail 7486 invoked by uid 500); 16 Feb 2012 23:56:47 -0000 Mailing-List: contact isis-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: isis-dev@incubator.apache.org Delivered-To: mailing list isis-commits@incubator.apache.org Received: (qmail 7479 invoked by uid 99); 16 Feb 2012 23:56:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 23:56:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 23:56:43 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D88FC238899C; Thu, 16 Feb 2012 23:56:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1245258 - in /incubator/isis/trunk/examples/onlinedemo/webapp/src/main: java/org/apache/isis/examples/onlinedemo/filters/ webapp/WEB-INF/ webapp/doc/ webapp/mobile/ Date: Thu, 16 Feb 2012 23:56:22 -0000 To: isis-commits@incubator.apache.org From: danhaywood@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120216235622.D88FC238899C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: danhaywood Date: Thu Feb 16 23:56:21 2012 New Revision: 1245258 URL: http://svn.apache.org/viewvc?rev=1245258&view=rev Log: ISIS-188: misc changes for onlinedemo, to use servlet-name rather than url paths for filter routing in web.xml Removed: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/java/org/apache/isis/examples/onlinedemo/filters/ Modified: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/web.xml incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/doc/index.html incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/generic.js incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/index.html incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/namespace.js Modified: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/web.xml?rev=1245258&r1=1245257&r2=1245258&view=diff ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/web.xml (original) +++ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/web.xml Thu Feb 16 23:56:21 2012 @@ -121,7 +121,7 @@ RedirectToDocsFilter - org.apache.isis.examples.onlinedemo.filters.RedirectToDocsFilter + org.apache.isis.core.webapp.routing.RedirectToDocsFilter redirectTo /doc/index.html @@ -189,11 +189,13 @@ IsisSessionFilterForHtml - *.htmlviewer + HtmlLogon + HtmlRegister + HtmlController - Logon + HtmlLogon org.apache.isis.viewer.html.servlet.LogonServlet authenticationSessionStrategy @@ -205,25 +207,25 @@ - Logon + HtmlLogon /logon.htmlviewer - Register + HtmlRegister org.apache.isis.viewer.html.servlet.RegisterServlet - Register + HtmlRegister /register.htmlviewer - Controller + HtmlController org.apache.isis.viewer.html.servlet.ControllerServlet - Controller + HtmlController *.htmlviewer @@ -263,27 +265,25 @@ whenNoSession basicAuthChallenge - - - ignoreExtensions - htmlviewer - IsisSessionFilterForJson - * + JsonDispatcher - - RestEasy + JsonDispatcher org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher - RestEasy + JsonDispatcher / - + + + + + Modified: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/doc/index.html URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/doc/index.html?rev=1245258&r1=1245257&r2=1245258&view=diff ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/doc/index.html (original) +++ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/doc/index.html Thu Feb 16 23:56:21 2012 @@ -153,18 +153,18 @@ href="#webapp">HTML viewer, and setup some demo fixture data. Then, shrink down your browser window to the dimensions of a smart phone.

You start the demo mobile app by browsing to its home page :

Home Page

This button is + href="../mobile/index.html">home page :

Home Page

This button is hard-coded to call the "ToDoItems#todaysTasks()" service for the current user; from here on though the application is entirely generic.

Click on the button; the page should transition to a list of the current task - items:

Home Page

Click on one of the todo - items:

Home Page

From here you can transition to other, + items:

Home Page

Click on one of the todo + items:

Home Page

From here you can transition to other, related objects. For example, clicking on the "similarItems" collection - shows a list of other task items:

Home Page

Home Page

Next Steps

If you wish, you can download the WAR file here. Modified: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/generic.js URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/generic.js?rev=1245258&r1=1245257&r2=1245258&view=diff ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/generic.js (original) +++ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/generic.js Thu Feb 16 23:56:21 2012 @@ -49,9 +49,9 @@ generic.dataTypeFor = function(memberIte generic.pageAndOptions = function(page, view, dataUrl, transition) { var pageAndOptions = { "page": page, - "allowSamePageTransition": true, "options": { "dataUrl": "#" + view + "?dataUrl=" + util.urlencode(dataUrl), + "allowSamePageTransition": true, "transition": transition } } Modified: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/index.html URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/index.html?rev=1245258&r1=1245257&r2=1245258&view=diff ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/index.html (original) +++ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/index.html Thu Feb 16 23:56:21 2012 @@ -187,33 +187,5 @@ -

- \ No newline at end of file Modified: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/namespace.js URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/namespace.js?rev=1245258&r1=1245257&r2=1245258&view=diff ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/namespace.js (original) +++ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/mobile/namespace.js Thu Feb 16 23:56:21 2012 @@ -1,5 +1,3 @@ - - namespace = function(namespaceString) { var parts = namespaceString.split('.'), parent = window,