Return-Path: X-Original-To: apmail-isis-users-archive@www.apache.org Delivered-To: apmail-isis-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 2B06A17F9D for ; Sat, 7 Mar 2015 11:02:42 +0000 (UTC) Received: (qmail 97827 invoked by uid 500); 7 Mar 2015 11:02:42 -0000 Delivered-To: apmail-isis-users-archive@isis.apache.org Received: (qmail 97790 invoked by uid 500); 7 Mar 2015 11:02:42 -0000 Mailing-List: contact users-help@isis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@isis.apache.org Delivered-To: mailing list users@isis.apache.org Received: (qmail 97775 invoked by uid 99); 7 Mar 2015 11:02:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Mar 2015 11:02:41 +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 sunandonline@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-wg0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Mar 2015 11:02:17 +0000 Received: by wghl2 with SMTP id l2so21192708wgh.8 for ; Sat, 07 Mar 2015 03:00:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=QN0kWIH2Fvd/FiRQ2rNLoVggOqxUtMUNwzYPUYjqjsg=; b=CrYpLLGCII7sdEdUlE2x72VYskHNYMEORHxLV40+kYmyMdpwSeEAaVnnU9TF5J6RK/ BAyoeWp8hw1dERFd0s6+I80tTVfp8+O59Xb96+sWTUpYIpqOin8H9sjco/Spr490C4rY qZW3fxhRxsXlRFIDUvP3WLqUeqFRx+SBRO5OH/vQRQqmFmBQs4PII20jVSHSsOYRpb5r N+/7VPUzhhwsyM6DYpe3cgVaXKUHiyEjYARkidYdqTCeF8Ap+gprBCquJPubcZVnf5Lr lr/keUjlxraOyBvLMdNtQAx+vsRUgyewGAZyZ7v/VfBZQzNgSPoqDpom2sdCLGvAwtaa GYnA== MIME-Version: 1.0 X-Received: by 10.180.8.165 with SMTP id s5mr41438192wia.16.1425726045761; Sat, 07 Mar 2015 03:00:45 -0800 (PST) Received: by 10.27.226.66 with HTTP; Sat, 7 Mar 2015 03:00:45 -0800 (PST) In-Reply-To: References: Date: Sat, 7 Mar 2015 16:30:45 +0530 Message-ID: Subject: Re: Displaying Chart in HomePage From: sunand p To: users Content-Type: multipart/alternative; boundary=f46d04218459813b4d0510b0b6b9 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04218459813b4d0510b0b6b9 Content-Type: text/plain; charset=UTF-8 Thanks Dan, for the quick response my question was with respect to the first one, will reply to this thread if I manage to render a chart in the Home Page. - Sunand On Sat, Mar 7, 2015 at 4:04 PM, Dan Haywood wrote: > Isis basically just invokes the action that is annotated with @HomePage. > This action could return anything... a scalar, a list of objects, a single > entity, a view model, and it'll be rendered as normal. > > Most likely you should create a view model for your dashboard, and have the > @HomePage action return that. The todoapp in isisaddons uses this > technique [1] > > ~~~ > There's then a separate but related question of how to have the view model > render the charts in the way that you want (eg using our Wicket > ComponentFactory API).... but I'm not sure if that's the question you're > asking? > > > Dan > > > > [1] > > https://github.com/isisaddons/isis-app-todoapp/blob/fb8d92cf3c68fc2456d5010fe788b4faf2152590/dom/src/main/java/todoapp/dom/app/dashboard/ToDoAppDashboardService.java#L38 > > > On 7 March 2015 at 10:27, sunand p wrote: > > > Hi All, > > > > Is there a way to render a chart in the Dashboard (Home Page) instead of > > having it as an action and then rendering a chart. I know that there is > > limitation in scalar charts when attached to an entity but how about in a > > Home Page? > > > > Any suggestions? > > > > - Sunand > > > --f46d04218459813b4d0510b0b6b9--