Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 44971 invoked from network); 17 Mar 2010 06:40:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 06:40:11 -0000 Received: (qmail 47249 invoked by uid 500); 17 Mar 2010 06:40:11 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 47088 invoked by uid 500); 17 Mar 2010 06:40:11 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 47079 invoked by uid 99); 17 Mar 2010 06:40:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 06:40:10 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fmeschbe@gmail.com designates 209.85.220.218 as permitted sender) Received: from [209.85.220.218] (HELO mail-fx0-f218.google.com) (209.85.220.218) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 06:40:01 +0000 Received: by fxm10 with SMTP id 10so707905fxm.30 for ; Tue, 16 Mar 2010 23:39:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=9lcUdW2AHHVyZzSwFwMUa8jjmraRp8ill9QzoAupO6g=; b=Vn3kolwVkFK5UVUH6emSE6weG1soBovbQsPkq/nC1Ta9QVae6vLB2CVbxs+zJzYzso MjxcllpVVcpHVqNdO4bpsZ6oCiefIrTNKFVE8DmTxRnhnw0efjrHfoNLXGyYbblnrNni d8nR3W0iyTub4fXU/bE+dlZXX2PrHNx8IGxik= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=DoktlEjNmMgJGER50+H+DSnbba6O4+5CETHA9JWawS3IK/D9xqYN0IPupSXg3n6b1Z PAkooQAXM080ArBQRF1hPayirWNFJ1vjI65NQWXaRncBZSfXb17OzGlJdUkXG9YRGNkK VOkmDq8pq0xyJG9jJabZW+zBweh4Em2uFw2Hk= Received: by 10.223.75.147 with SMTP id y19mr771935faj.77.1268807980966; Tue, 16 Mar 2010 23:39:40 -0700 (PDT) Received: from [192.168.1.21] (cable-static-138-82.eblcom.ch [87.102.138.82]) by mx.google.com with ESMTPS id 13sm4556731fxm.2.2010.03.16.23.39.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 16 Mar 2010 23:39:39 -0700 (PDT) Message-ID: <4BA0792A.30203@gmail.com> Date: Wed, 17 Mar 2010 07:39:38 +0100 From: Felix Meschberger User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8pre) Gecko/20100120 Shredder/3.0.2pre MIME-Version: 1.0 To: dev@felix.apache.org Subject: Re: [jira] Updated: (FELIX-2185) easy plugin prototyping - tools for developers References: <2046015000.174641268217087363.JavaMail.jira@brutus.apache.org> In-Reply-To: <2046015000.174641268217087363.JavaMail.jira@brutus.apache.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, This sounds like we could just create a page on the site below the Web Console extension page which contains some recipie for prototyping and attaching the build.xml file. WDYT ? Regards Felix On 10.03.2010 11:31, Valentin Valchev (JIRA) wrote: > > [ https://issues.apache.org/jira/browse/FELIX-2185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] > > Valentin Valchev updated FELIX-2185: > ------------------------------------ > > Attachment: build.xml > >> easy plugin prototyping - tools for developers >> ---------------------------------------------- >> >> Key: FELIX-2185 >> URL: https://issues.apache.org/jira/browse/FELIX-2185 >> Project: Felix >> Issue Type: New Feature >> Components: Web Console >> Reporter: Valentin Valchev >> Attachments: build.xml >> >> >> With the current web console, after being updated to JQuery + JQuery UI the plugin structure becomes quite clear and simple: >> 1. There is a Servlet (AbstractWebConsolePlugin), which main role is to generate the required data for the plugin, typically a JSON and execute actions. >> 2. Although the actual rendering is in the Servlet, it use a template file, that contains the HTML markup >> 3. The main logic, that makes the interface interactive is JavaScript code, that uses the JSON from the Servlet and modifies the HTML markup. >> This separation makes it quite easy to develop applications in a static way replacing the upper components with: >> 1. a sample JSON data, statically generated >> 2. a HTML file that is equals to : header + template + footer >> 3. almost the same JavaScript code, that instead of using AJAX request to obtain the data, uses the sample data in 1. >> I must say, that personally have developer several plugins exactly using static HTML file. >> Although easy it consumes time to create that empty HTML file and start developing the plugin. It would be much easier, if we have an option to automatically generate a zip file - containing the HTML updated with the latest header footer, the JavaScript libraries, included by default (e.g. res/lib/) folder, common images and webconsole.css file. >> This task can be easily achieved with modern build tools. Because my minimal knowledge of the Maven build system, I've implemented that task in a simple ANT build file, which must be placed in the webconsole root folder. When ant is invoked with that file, it will generate a file named 'static-test.zip' that contains a template, which is ready for modification and includes up-to-date sources. >