Return-Path: X-Original-To: apmail-cocoon-dev-archive@www.apache.org Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ACF95C6D2 for ; Thu, 25 Jul 2013 14:29:40 +0000 (UTC) Received: (qmail 20419 invoked by uid 500); 25 Jul 2013 14:29:40 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 19997 invoked by uid 500); 25 Jul 2013 14:29:34 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 19877 invoked by uid 99); 25 Jul 2013 14:29:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jul 2013 14:29:32 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [77.238.189.68] (HELO nm15.bullet.mail.ird.yahoo.com) (77.238.189.68) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 25 Jul 2013 14:29:27 +0000 Received: from [77.238.189.238] by nm15.bullet.mail.ird.yahoo.com with NNFMP; 25 Jul 2013 14:28:44 -0000 Received: from [46.228.39.109] by tm19.bullet.mail.ird.yahoo.com with NNFMP; 25 Jul 2013 14:28:44 -0000 Received: from [127.0.0.1] by smtp146.mail.ir2.yahoo.com with NNFMP; 25 Jul 2013 14:28:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1374762524; bh=08KbN+tPkHi2fREV5H/f7R5CNOxvmNaPE2mUdr81EZ8=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type; b=0vrmqh7+OEs5JYNShy+dfy67JgK1s/MG2pEuin6Lh13AbNZ6jRe3E4+FBELauGpHFbH5baaNEwIUns3OPx/1DedlLHmUyySigMAuIjLY2b19D/vRDwyhiGA05zT+O+WeV99pcByGG5qITc8rIHuoi6NgpuZOUksuVWBFlkxKqvw= X-Yahoo-Newman-Id: 561340.71527.bm@smtp146.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: BoaF9TAVM1knwExqvhoZ8okRHSZQy3gQz83ELNvspDDt0_f sOlX.tQlewUbGBb0MmTJx1GVW8S5K.0lgh8zJ_T6EJMbpknAmH2JgjzlfvGf 2mUnHLoR1JH7_O2Mp4bwnlsAFS0LPuV3YJO4OiKhj.2FXJHXQ4HZES8pgGJY 7ivmOn7tK.S_.ujthXrY2UWv8q233KbLf_SW1elJvI0j0kqAvStjSsz1nRKW OxQS7xjic8OCmuMHigKHL3yezKjyejO3t9QwCVEWoUgDW29RNKfywrmRV_28 iKAJT7STjXLPDH5B4H3BSH.tSZVUF14QVSUodqxTYYmpGpoaPkLzJ.qCSw2B jh1UKKztmHUQ2MjQllJkc95IrhcSWfWv9KF3il_qL0Qv9lZiFmYRXeA6SUz8 DE11Up3YDqfM_k2AOO2jJBxp0UDoZkj_nZf8fWEMj.yeOdF8rS96qB65yH88 UYZdqLVqV4iQAvL_MlSo5.XFfKedT171z42jaVpPomb36NtH6l8SsZNDiH6H lgWAeNZ_ciJNF6X5jR6pNE4jfJrx5pZUk76F32Bvd6ucxKy5xP.h6.TK4sr3 RlUE- X-Yahoo-SMTP: yxbNXPWswBAlrg8tAOg0RpIwMcOTVqlEn8R052g3 X-Rocket-Received: from [192.168.178.25] (hansheinrichbraun@77.187.122.132 with ) by smtp146.mail.ir2.yahoo.com with SMTP; 25 Jul 2013 14:28:44 +0000 UTC Message-ID: <51F1361B.3040100@yahoo.de> Date: Thu, 25 Jul 2013 16:28:43 +0200 From: Piratenvisier User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130701 Icedove/17.0.7 MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [jira] [Closed] (COCOON3-129) Create an example to send a mail via cocoon References: <51ECCE84.40603@yahoo.de> <51ECE7D3.3060104@gmail.com> <51ED06D0.8010206@yahoo.de> <51ED3D50.5000008@gmail.com> <51EE61F2.9090807@yahoo.de> <51EE7777.6020908@gmail.com> <51EF63C9.9000306@yahoo.de> <51EFF30C.6030205@yahoo.de> <51F03668.7050703@gmail.com> In-Reply-To: <51F03668.7050703@gmail.com> Content-Type: multipart/alternative; boundary="------------080804010801060208000109" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------080804010801060208000109 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Am 24.07.2013 22:17, schrieb Thorsten Scherler: > On 07/24/2013 05:30 PM, Piratenvisier wrote: > ... >>> Because I am not able to install the whole application because of >>> this error. >>>>> But I see a strong tendenca to a programmed pipeline and I found >>>>> myself even without cocoon on this way. >>>> see the pipeline example you can use cocoon-pipeline in you normal >>>> spring webapp (without cocoon servlet). >>>> >> I got a programmed fop-pipeline running. Under wicket you have to >> grant access to the stylesheets >> und let wicket give you the full href. > Actually you can call a java cocoon pipeline from wicket to do the job > for you. ;) > > ...but seriously there are many fish in the sea and I myself ATM are > experiencing node.js which is really rapid in terms of development > especially if your gui is using json. Our company has create a framework > called rapidMobile where I am ATM testing to serve the static html5 part > with creating a node.js server around it, instead of using c3 as we did > before. While playing around I found it pretty easy to create basic > REST services for node and do some REST services that prior had been in > cocoon (maybe re-factored to go into node). > > What I am trying to say is that cocoon is the best in what it is > designed for: being a lib capable of use x input formats and serialize > to n output formats. The whole idea for myself is best expressed in > Apache Forrest and they concept of input, internal and output modules. > Where everything is drilled down to an internal language so it easy to > create various input and output formats. Thank you for your information. I will have a closer look at the products json and node.js. I found even a mail if node.js makes wicket even superfluous. Even for PDFCreation there is a Javascript product: PDFKit >>>>>> However that seems pretty much as the sample block. >>>>>> Try just to start cocoon-rest-optional and do mvn clean install >>>>>> jetty:run >>>>>> >>>>>> I just added a small sample (I consider it quite clean) to use a >>>>>> pipeline in your java code. >>>>> How should i call the Restcontroller from the browser and what >>>>> result should I see ? >>>> cd ../cocoon-rest-optional #assuming you were in samples before >>>> mvn clean install jetty:run >>>> http://localhost:8888/ >>>> >>>> There are three different showcases, the last two ones are mail >>>> samples. Where "Here comes the response from server..." stands we >>>> will wait the response. I implement the whole thing with html5 and a >>>> bit of javascript to post to the server and update the response div >>>> with the server response. In case you have success it will read: >>>> "Result: true" while the request is processed you see "Processing >>>> request...". In case of result: false check the logs in >>>> ./target/work/cocoon.log >>>> >>>> salu2 >> I got your example running, thank you >> I aknowledge that cocoon is again getting interesting. > yeah :) > > salu2 > --------------080804010801060208000109 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Am 24.07.2013 22:17, schrieb Thorsten Scherler:
On 07/24/2013 05:30 PM, Piratenvisier wrote:
...
Because I am not able to install the whole application because of
this error.

            
But I see a strong tendenca to a programmed pipeline and I found
myself even without cocoon on this way.
see the pipeline example you can use cocoon-pipeline in you normal
spring webapp (without cocoon servlet).

I got a programmed fop-pipeline running. Under wicket you have to
grant access to the stylesheets
und let wicket give you the full href.
Actually you can call a java cocoon pipeline from wicket to do the job
for you. ;)

...but seriously there are many fish in the sea and I myself ATM are
experiencing node.js which is really rapid in terms of development
especially if your gui is using json. Our company has create a framework
called rapidMobile where I am ATM testing to serve the static html5 part
with creating a node.js server around it, instead of using c3 as we did
before.  While playing around I found it pretty easy to create basic
REST services for node and do some REST services that prior had been in
cocoon (maybe re-factored to go into node).

What I am trying to say is that cocoon is the best in what it is
designed for: being a lib capable of use x input formats and serialize
to n output formats. The whole idea for myself is best expressed in
Apache Forrest and they concept of input, internal and output modules.
Where everything is drilled down to an internal language so it easy to
create various input and output formats.
Thank you for your information.
I will have a closer look at the products json and node.js.
I found even a mail if node.js makes wicket even superfluous.
Even for PDFCreation there is  a Javascript product:  PDFKit


      
However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install
jetty:run

I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.
How should i call the Restcontroller from the browser and what
result should I see ?
cd ../cocoon-rest-optional #assuming you were in samples before
mvn clean install jetty:run
http://localhost:8888/

There are three different showcases, the last two ones are mail
samples. Where "Here comes the response from server..." stands we
will wait the response. I implement the whole thing with html5 and a
bit of javascript to post to the server and update the response div
with the server response. In case you have success it will read:
"Result: true" while the request is processed you see "Processing
request...". In case of result: false check the logs in
./target/work/cocoon.log

salu2
I got your example running, thank you
I aknowledge that cocoon is again getting interesting.
yeah :)

salu2


--------------080804010801060208000109--