Return-Path: X-Original-To: apmail-deltaspike-users-archive@www.apache.org Delivered-To: apmail-deltaspike-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6CA37119AE for ; Sun, 13 Apr 2014 14:20:25 +0000 (UTC) Received: (qmail 83252 invoked by uid 500); 13 Apr 2014 14:20:24 -0000 Delivered-To: apmail-deltaspike-users-archive@deltaspike.apache.org Received: (qmail 83108 invoked by uid 500); 13 Apr 2014 14:20:23 -0000 Mailing-List: contact users-help@deltaspike.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@deltaspike.apache.org Delivered-To: mailing list users@deltaspike.apache.org Received: (qmail 83097 invoked by uid 99); 13 Apr 2014 14:20:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Apr 2014 14:20:22 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gerhard.petracek@gmail.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qa0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Apr 2014 14:20:16 +0000 Received: by mail-qa0-f44.google.com with SMTP id hw13so7213857qab.31 for ; Sun, 13 Apr 2014 07:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=8BMPS7gYhUK8YbOUtDPTtrBgUW77C8lHBFkfEUHhKpo=; b=o6nNN2lodGTZthYzH4V+/PrJkso5oqKq038+I/o3ujh/mZwBa0Z6CgiwudiN1P3C6T tUp9XtLLazD+u0MOcFXs0svSPU4gVBc91WEkfdq/Yo0c43U8LJ/5+2qjcKkKBkBR8XXO 49FIZeul3Qe5yxhACGFHjODIlpFK8kaYjv333lGAFVzoL0aKQ+d+Zw2BVwU+Lc8aDOMe vJdl59KHiJv+DD7LTHwrP5lxzMtOK17GKkjLgnBLEfe/8NUqXcy9jI8TwlwujHW2nGoI uGDVp6Oa3sZR7q+RhZzijtlkbNKbE4DHxe1Ta61N9LV3klKxc0PEjP9JgQVQ4yKiizua AO6w== X-Received: by 10.224.125.194 with SMTP id z2mr1548676qar.99.1397398793995; Sun, 13 Apr 2014 07:19:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.89.1 with HTTP; Sun, 13 Apr 2014 07:19:33 -0700 (PDT) In-Reply-To: References: From: Gerhard Petracek Date: Sun, 13 Apr 2014 16:19:33 +0200 Message-ID: Subject: Re: Type safe Navigation: Intercept all navigation? To: users@deltaspike.apache.org Content-Type: multipart/alternative; boundary=001a11c20688b9c7d504f6ed42ae X-Virus-Checked: Checked by ClamAV on apache.org --001a11c20688b9c7d504f6ed42ae Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hi karl, #1 i guess you don't mean the back-button in the browser #2 for some projects we created a wizard-controller based on view-configs. page-beans just called #next (or #back) on it. (you just need a simple window-scoped controller which knows all steps and the current position. the rest is in place already.) #3 tracing can be done with an observer for PreViewConfigNavigateEvent regards, gerhard 2014-04-13 13:46 GMT+02:00 Karl Kild=E9n : > well I am kind of brainstorming :-) > > History is the thing. Would be useful with a Stack of visited views. Both > for the users flow control (go back to page x) and for the logical flows = so > it can keep track of ie. resumable flows. > > Flows can take a long time to finish for a user and they might pause and = do > something else because they need to search for information etc. > > Another thing are small subflows that are like detours in your normal flo= w. > This system fetches a lot of data automatically but for various reasons i= t > sometimes only finds say 70% of the data and a subflow is required to fil= l > in the gaps. These subflows are reused and the exit point should be the > next page in the *previous *flow. > > *Flow1:Page A -> Flow1:Page B -> Incomplete data detected -> switch flow = to > fix -> Flow2:Page A -> Finished, resume previous flow -> Flow1:Page C -> > Finished.* > > I guess you could say that wee need to keep tabs on our users so we can > help them pause and resume flows. Some of these pauses are persisted but > not all. Some flows are only resumeable if you came "far enough" > > Tracing is another smaller issue that would be prettier if you had the > visited pages as the class objects. > > Something like below for end usage: > > public interface FlowResolver { > > public Deque> getPausedFlows(); > > public Deque> getFlowHistory(); > > public Class getPrevious(); > > public Deque> getFailedFlows(); > > public Deque> getFlowsByPriority(); > > } > > > > > > On 13 April 2014 09:53, Gerhard Petracek > wrote: > > > hi karl, > > > > please provide details about the use-case you have in mind. > > > > regards, > > gerhard > > > > > > > > 2014-04-13 3:50 GMT+02:00 Karl Kild=E9n : > > > > > Hi, > > > > > > I would like to decide what to return in the navigation case with the > > help > > > of InvocationContext. I am interested in getting the method for > > example... > > > > > > Any way to always get a callback kind of like how @Secured works? > > > > > > --001a11c20688b9c7d504f6ed42ae--