Return-Path: X-Original-To: apmail-ofbiz-user-archive@www.apache.org Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B6E017F52 for ; Thu, 16 Apr 2015 11:26:00 +0000 (UTC) Received: (qmail 81092 invoked by uid 500); 16 Apr 2015 11:25:59 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 81065 invoked by uid 500); 16 Apr 2015 11:25:59 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 81053 invoked by uid 99); 16 Apr 2015 11:25:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2015 11:25:59 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [108.163.243.188] (HELO delivery.mailspamprotection.com) (108.163.243.188) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2015 11:25:32 +0000 Received: from ns1.siteground172.com ([184.154.160.14] helo=serv01.siteground172.com) by se7.mailspamprotection.com with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85) (envelope-from ) id 1YihuA-0000PS-2p for user@ofbiz.apache.org; Thu, 16 Apr 2015 06:24:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sandglass-software.com; s=dkim; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=EKi9kSsq/p9ioMfBJahxqtF4eJDK/Mp3YxOlKSEUoWs=; b=fSsU+UsWtr+hm+10BvJtphtJjWHAxI5K4OBKhLLtJgjJCwldAe5TESKZlkS/xBoEgyUH5aU9WciDrePvLzSeHzpYD9eZYQEWWIOo5BiuU5SqR+TaxugsBwY3TvMz3btUHtDIZhNg+z7E+g/RMaAF8rcOKkumRXZ3xVydInVQq5k=; Received: from [24.227.170.202] (port=60197 helo=[192.168.128.235]) by serv01.siteground172.com with esmtpsa (UNKNOWN:RC4-SHA:128) (Exim 4.80.1) (envelope-from ) id 1Yihu4-0005Z4-Uq for user@ofbiz.apache.org; Thu, 16 Apr 2015 06:24:17 -0500 Message-ID: <552F9BE5.9080407@sandglass-software.com> Date: Thu, 16 Apr 2015 12:24:21 +0100 From: Adrian Crum Organization: Sandglass Software User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: user@ofbiz.apache.org Subject: Re: ApacheCon 2015 References: <552F91E9.8050207@sandglass-software.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - serv01.siteground172.com X-AntiAbuse: Original Domain - ofbiz.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sandglass-software.com X-Get-Message-Sender-Via: serv01.siteground172.com: none X-Filter-ID: s0sct1PQhAABKnZB5plbIexRb6Wn7ZUV5yeFAstNJZpAY1BaLfwb0I4SZzVEHfhbMrfAO5/ofUxN 7S1UUc8AMXb+QSL7PYJcWsZaAL+M2XYKJw9os7pOAJy3PJptvNli2pi0KksNJ91llWXJBRQg/sJz 8WfReHqUOdh1n/PPcFz7HXIgHaIPnpaIV853DH8goeXqsRJ8hdkiMmToss0oOlz1pRXWhjh9fdbl 44I0Df2zi1AhrTmQha+OkAJTNOdMYSX5fABPXG+9QPyWE3Q5FhZRudLhU3wdXTvzjfr4MPrRA+kJ Q5wMpUj3D781oGvPPBfyCUQPGRfAuQJyQcUhQ4/Ia6YN5m0MsQWfYUYaa1IvMq0KDVXLb6VBQkBP sSqcRWJZ4cxmTr0TVcIFDdHywnY+akJNhL5qAttvzUBLxkQRf7vfz3yJTxlDBSwdAW3sfzhI8nvT TuZeG0BzzaacLjHYLyvT6f3Q+BmtUtn7AttH1WsaGAOyYG3fZmqGXyhMKJyXruX+Y6ivUqs4BJMP 66anMfHPEwyrd1R+9gs+vCBFYlnhzGZOvRNVwgUN0fLCdfis1O0p6F7CmaTsN5I7sqct8AX3vpbY uW6GeJrFHHYXKu1VbgppFJRGoXLED7mHy9XUM2wxpPwCncXmP1ltNDBFI4q5cQ5RqubdBEVbZHzM sVlUl9sLCepkFtNcnK6rcsxIsVE4xAikMfMLqAUrqukSxJsJlsb+Z1Fz5U4XSCw= X-Report-Abuse-To: spam@quarantine.mailspamprotection.com X-Filter-Fingerprint: IFrWXGses7OKB5S5G8/dJb0kolOUiviGeQyDsBgQ6PBA3cTUQ1R++keuE7RDJ8Kg3RbMLUalw1oC mj99/u+Poh38tEMU4IgC4sNz49qn3HHnhRv/ZJ3kEy8bfiAr+Fb/UpndEJ0YoaLytXXo8BMTaX2p Mk7LBarWD9Fj4R3eIu5amSKkALoA6KDzkQ8jq89Qglr+eUaqsXi6ilYykBRNmy1w3rhXI7ypWHcC zReLskSoC1jzfYuYzO5TaopJL1l0EkXKTCB9mgAH2nNvM1GFDcH5C2MO7hTENZJE35bUvwA= X-Originating-IP: 184.154.160.14 X-SpamExperts-Domain: siteground172.com X-SpamExperts-Username: 184.154.160.14 Authentication-Results: mailspamprotection.com; auth=pass smtp.auth=184.154.160.14@siteground172.com X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.00) X-Recommended-Action: accept X-Virus-Checked: Checked by ClamAV on apache.org True, there are widget elements that allow you to use HTML-specific artifacts, but those were created as a workaround. I don't agree that "no one is practicing this." There have been efforts in the past where FreeMarker templates were replaced with widgets. Also, there are many instances in the project where widgets are used to produce PDF and CSV files - so someone practiced "generic layout only" to create those files. Throughout my presentation, I used examples from the current trunk to demonstrate how NOT to do things. So, I don't believe that the current trunk is a good representation of best practices. Adrian Crum Sandglass Software www.sandglass-software.com On 4/16/2015 12:13 PM, Taher Alkhateeb wrote: > Hi Adrian, > > I have a comment on your presentation. You have stated below slide 10 the > following: > > "A common mistake new developers make is assuming these XML screen > definitions will only output HTML – so they embed markup and JavaScript in > the XML. That should never be done! These XML files describe a generic > layout only." > > However, the tag location="..."> exists in thousands of locations > all over the framework, core applications and specialpurpose. So it seems > like the intention you mentioned above is not really applicable in OFBiz. > > I am wondering if this statement is realistic or applicable given that it > seems no one is really practicing this and using OFBiz as an HTML platform > more than anything else. I would appreciate hearing your thoughts on that. > > Cheers, > > Taher Alkhateeb > > On Thu, Apr 16, 2015 at 1:41 PM, Adrian Crum < > adrian.crum@sandglass-software.com> wrote: > >> Here is the slideshow from my presentation at ApacheCon: >> >> http://www.sandglass-software.com/products/sandglass/ >> documents/2015_ApacheCon_Reduced.pdf >> >> -- >> Adrian Crum >> Sandglass Software >> www.sandglass-software.com >> >