Re: [CForms 2.1.8] ignores the first call to setValidationError()

2005-11-30 Thread Sylvain Wallez

Feliciano Borrego wrote:

Hi,
The following form model works correctly in cocoon 2.1.7:
 
 
   command="add-row" 
  repeater="ctrl_proys">

  XYZ
  

  var form = event.source.form;
  var repeater = form.getChild("ctrl_proys");

  var dFecha = new java.util.Date();
  var wFecha =
event.source.parent.lookupWidget("fecha_ctrl_insert");
  if ( wFecha.value != null ) {
 dFecha = wFecha.value;
  }
  ... ...
  var cProy =
event.source.parent.lookupWidget("proyecto").value;
  var stream = new java.io.ByteArrayOutputStream;
  cocoon.processPipelineTo( 'sql_horas_reales'
  , {proyecto: cProy }
  , stream );
  var cXml = stream.toString();
  ... ...

  var idxRowNueva = repeater.getSize() - 1;
  if ( ValorDuplicadoRepeater( repeater, "fecha_ctrl", dFecha ))
{

  
wFecha.setValidationError( 


   new
Packages.org.apache.cocoon.forms.validation.ValidationError
  ("Fecha Duplicada", false ));

wFecha.setValue( dFecha );
repeater.removeRow( idxRowNueva );

  } else {
var repeaterRowNueva = repeater.getRow( idxRowNueva );
repeaterRowNueva.getChild( "_origen" ).setValue( '+' );
wFecha.setValue( null );
  }

  

In Cocoon 2.1.8 the "!" of wFecha.setValidationError is only seen after
the first time.
  


Hmmm... this may be because of the validation status caching that has 
been added to speed up things.


I'll have a look at it.

Sylvain

--
Sylvain WallezAnyware Technologies
http://bluxte.net http://www.anyware-tech.com
Apache Software Foundation Member Research & Technology Director


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Sitemap include

2005-11-30 Thread Irv Salisbury
Thanks for all the responses!  We have a pluggable architecture
where the topmost sitemap simply forwards on all requests to lower
sitemaps (that it doesn't know about)  In a couple of cases, some
of these lower sitemaps have things in common, but the topmost one
can't really put all of these cases in there.  Looks like I am
stuck with entities for now.  It would be cool to have common
pipelines that could be "included"

IrvOn 11/30/05, Mark Lundquist <[EMAIL PROTECTED]> wrote:
On Nov 30, 2005, at 8:20 AM, Irv Salisbury wrote:> I have two sitemaps that have some similar map:match and subsequent> pipeline processing elements. Is there any "include" type element for
> a sitemap?>>  I cannot have a common parent sitemap and use a map:mount, so that> option is out.>>  My only idea at this point is to use the dtd entity replacement type> stuff that you can use on any xml file.
>>  What I'd really like is something like:>>  >   >   >  
>>  Any thoughts?I'd really like to have that too, but unfortunately there's no suchthing.  In 2.2. there's a special include just for ,but that won't do what we want.
I use XML entities, as you suggested.  The only real "gotcha" is thatif you change one of the included sitemap files, you have to "touch"the topmost sitemap file (i.e. the one named in cocoon.xconf
 or in aparent sitemap ).HTH,—ml—-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]


Re: Sitemap include

2005-11-30 Thread Mark Lundquist


On Nov 30, 2005, at 8:20 AM, Irv Salisbury wrote:

I have two sitemaps that have some similar map:match and subsequent 
pipeline processing elements.  Is there any "include" type element for 
a sitemap?


 I cannot have a common parent sitemap and use a map:mount, so that 
option is out.


 My only idea at this point is to use the dtd entity replacement type 
stuff that you can use on any xml file.


 What I'd really like is something like:

 
     
     
 

 Any thoughts?


I'd really like to have that too, but unfortunately there's no such 
thing.  In 2.2. there's a special include just for , 
but that won't do what we want.


I use XML entities, as you suggested.  The only real "gotcha" is that 
if you change one of the included sitemap files, you have to "touch" 
the topmost sitemap file (i.e. the one named in cocoon.xconf or in a 
parent sitemap ).


HTH,
—ml—


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Sitemap include

2005-11-30 Thread Ralph Goers
You should take a look at the 2.2 version of Cocoon (i.e. - trunk).  The 
samples show including the component section. However, I don't know if 
pipelines can be included.


Irv Salisbury wrote:

I have two sitemaps that have some similar map:match and subsequent 
pipeline processing elements.  Is there any "include" type element for 
a sitemap?


I cannot have a common parent sitemap and use a map:mount, so that 
option is out.


My only idea at this point is to use the dtd entity replacement type 
stuff that you can use on any xml file.


What I'd really like is something like:






Any thoughts?

Thanks,

Irv




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Sitemap include

2005-11-30 Thread Scott Phillips


Irv,
 I have not found anything like this is the Cocoon project, but if you 
find something then please let me know :)


 To solve this problem we generate internal requests for the common 
material. So it would be something like:



   
  
   
   
 
 
   


Not sure if this is the best approach, and am interested to see how 
others solved the problem?


Scott--


Irv Salisbury wrote:
I have two sitemaps that have some similar map:match and subsequent 
pipeline processing elements.  Is there any "include" type element for a 
sitemap?


I cannot have a common parent sitemap and use a map:mount, so that 
option is out.


My only idea at this point is to use the dtd entity replacement type 
stuff that you can use on any xml file.


What I'd really like is something like:






Any thoughts?

Thanks,

Irv



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Sitemap include

2005-11-30 Thread Irv Salisbury
I have two sitemaps that have some similar map:match and subsequent
pipeline processing elements.  Is there any "include" type element
for a sitemap?

I cannot have a common parent sitemap and use a map:mount, so that option is out.

My only idea at this point is to use the dtd entity replacement type stuff that you can use on any xml file.

What I'd really like is something like:


    
    


Any thoughts?

Thanks,

Irv


Using CInclude POST

2005-11-30 Thread Stewart, Gary
Hi there,

I upgraded to Cocoon 2.1.8 to use the CInclude POST feature (there was 
previously a bug in it http://issues.apache.org/jira/browse/COCOON-1365 but I 
checked the source and it looks like the patch has been put in). I've been 
having some difficulty trying to use it or even check to see if the component 
is definitely working as expected. At first I tried sending a document like 
this:


http://apache.org/cocoon/include/1.0";>
 http://10.8.21.63:80/lsa_sql_templates
 
  
   method
   POST
  
 
 
  
   text
   
XML Document Goodness
   
  
 


as per the Wiki StreamGenerator docs 
(http://wiki.apache.org/cocoon/StreamGenerator?highlight=%28Cinclude%29). I got 
a "org.xml.sax.SAXParseException: The markup in the document following the root 
element must be well-formed.
context:/http://10.8.21.63:80/lsa_sql_templates - 1:37" though the document 
before the CInclude looks fine. It might be something to do with the resultant 
output but I couldn't seem to get that from the pipe. I also quickly tried 
creating a sanity check by creating the pipeline:


 
 


and calling it (not using the cocoon protocol) though I'm not sure if this 
would work or not (I got a 500 error for that; so probably not). 

I also noticed that the CInclude document for 2.1 
(http://cocoon.apache.org/2.1/userdocs/cinclude-transformer.html) shows that 
the POST request is wrapped in a root node. I tried that for both of my tests 
but that didn't help either. 

Any ideas on this would be appreciated; even just the confirmation that POST is 
working correctly for anyone would be a good start.

Thanks,

Gary

*
The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only, If you 
have received this message in error or there are any problems, 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.
*


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with sendmail action

2005-11-30 Thread Philippe Gassmann




Goetzmann Bertrand wrote:

  
  
  Problem with sendmail action

  Hello,
  
  I use the sendmail action in my
sitemap.xmap to, of course, send emails from a form. It works well if
all the parameters needed are correct, but otherwise I can't read the
"status" parameter that the action set.
  I think it is perhaps a bug because in
the concerned source code, Sendmail.java from org.apache.cocoon.acting
package, if the operation fails (an exception is raized), the act
method returns null, and then you can't read the "status" (with the
value server-error or user-error) parameter nor the "message"
parameter, in the sitemap.
  Is someone cab confirm this ? Thank.
  
  
  Bertrand Goetzmann.
  

After having a look to the source code, yes you're right !
When an exception occurs, the sendmail action returns null to the
sitemap. But, I can see this in the source code :    
finally{    
ObjectModelHelper.getRequest(objectModel).setAttribute(Sendmail.REQUEST_ATTRIBUTE,status);
}
I guess it is possible to get the status not using what's returned by
the action but using what the action sets in the request with the input
module request: 
{request:attributes/org.apache.cocoon.acting.Sendmail/status} for the
status

and {request:attributes/org.apache.cocoon.acting.Sendmail/status} for
the message.

This is really a strange behaviour !

-- 
Philippe GASSMANN






Re: Resource comparison between Cocoon and Struts/JSP??

2005-11-30 Thread Peter Hunsberger
On 11/30/05, Matthew Langham <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We have a customer looking to build an architecture around Open Source
> frameworks. He has asked us about the differences in needed resources (CPU,
> Memory) when writing an application using Cocoon as compared to a Struts/JSP
> solution. While I realize the answer is probably "that depends", there are
> certain customers who just aren't interested in that type of answer :-(. And
> this customer actually has to pay internal charges depending on the amount
> of memory and CPU needed.
>
> So maybe someone out there has actually done this type of comparison or can
> point me to something?
>

Can't help directly, but be sure to point out that they should also
factor in development and maintenance costs to get the total picture.

Note that if you end up doing the testing yourself Cocoon will could
loose unless you exploit caching.

--
Peter Hunsberger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Antennahouse XSL Formatter Serializer

2005-11-30 Thread Bertrand Delacretaz


Le 30 nov. 05, à 15:37, Ralph Goers a écrit :


What are the licenses for any third party packages?


I don't think Michael is planning to contribute any third-party stuff.

IIUC his serializer calls an external program via a shell script, and 
feeds the program's output to the Cocoon client via the serializer.


-Bertrand


smime.p7s
Description: S/MIME cryptographic signature


Re: Antennahouse XSL Formatter Serializer

2005-11-30 Thread Ralph Goers

What are the licenses for any third party packages?

Michael Wirz wrote:


Thank you for your interest, I'd really like to contribute.

In fact, it is just one source file -- i embedded a more generic
helper class (doing some asynchronuous input/output stream stuff)
as an inner class to keep things simple.

Could you point me to the wiki or the "scratchpad of cocoon"?
I have been using cocoon for quite a while now but I do not yet
know the development setup of the cocoon project -- although
I am really interested...

Thank you,
Michael

 

   


Yes, I am interested. Maybe you can put it on the scratchpad of
Cocoon? (don't ask me how!)
 


Or, if it's one source file as I imagine, you could start by posting
it to the wiki, on a new page.

This would allow people to use it with existing versions of Cocoon,
and if there's enough interest we might move it to the main codebase.

-Bertrand
   





 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Antennahouse XSL Formatter Serializer

2005-11-30 Thread Bertrand Delacretaz

Le 30 nov. 05, à 13:24, Michael Wirz a écrit :


...Could you point me to the wiki or the "scratchpad of cocoon"?...


I think for such a contribution, a wiki page like 
http://wiki.apache.org/cocoon/MultiFragmentTraxTransformer is 
appropriate, and you can attach your source code, as is done in that 
page.


This is a lightweight way of introducing new things, doesn't mean we 
won't add them to the main codebase later, but it makes it very easy 
for people to try out your code.


-Bertrand


smime.p7s
Description: S/MIME cryptographic signature


Re: Antennahouse XSL Formatter Serializer

2005-11-30 Thread Geert Josten



Michael Wirz wrote:


Have you compared the performance with FOP and/or XEP engine? What is
the (estimated) gain?



Concerning performance -- we had tested fop 0.20.4 against antennahouse
xslformatter v3 when we
decided to switch to xsl formatter. I do not remember the effective
performance gain but it has been
obvious enough to make us switch (average pdf is about ten pages holding
tables and pictures in
our services).  We will have a close look on this topic right now again...


I asked because the system-call requires an additional XML serialization and parsing stage. FOP is 
receiving the SAX events directly giving it a little step ahead.


Ever looked into XEP? It is very fast as well and has excellent XSL-FO support. Not for free though. 
One benefit though is that it is written in Java and thus integrates with Cocoon very naturally. I 
believe RenderX supplies a Cocoon Serializer to its customers for 'free'.


Regards,
Geert

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Antennahouse XSL Formatter Serializer

2005-11-30 Thread Michael Wirz

> Have you compared the performance with FOP and/or XEP engine? What is
> the (estimated) gain?

Concerning performance -- we had tested fop 0.20.4 against antennahouse
xslformatter v3 when we
decided to switch to xsl formatter. I do not remember the effective
performance gain but it has been
obvious enough to make us switch (average pdf is about ten pages holding
tables and pictures in
our services).  We will have a close look on this topic right now again...

Michael

>
> Regards,
> Geert
>
> Michael Wirz wrote:
>
>> Dear cocoon Users,
>>
>> since I am working on a project using cocoon 2.1.5 and we have been
>> using the Antennahouse XML, XSL/FO to PDF Formatter for
>> performance reasons, I developed a small serializer for this formatter.
>> It calls XSLFormatter via an external Shellskript, the command to
>> be executed can be configured in the serializer declaration of the
>> sitemap.
>> It expects the XML/FO input from stdin and pipes the pdf to stdout --
>> just as a serializer should work.
>>
>> If there is any interest in my solution I'd like to hear from you.
>>
>> Best regards,
>> Michael Wirz
>>
>>
>


-- 
abs IT Service GmbH
abs gruppe
Michael Wirz
Entwicklung

Landsberger Straße 57
82266 Stegen am Ammersee
Telefon: +49 (0)8143 999 43
Telefax: +49 (0)8143 999 49

[EMAIL PROTECTED]
www.eFonds24.de


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Antennahouse XSL Formatter Serializer

2005-11-30 Thread Michael Wirz
Thank you for your interest, I'd really like to contribute.

In fact, it is just one source file -- i embedded a more generic
helper class (doing some asynchronuous input/output stream stuff)
as an inner class to keep things simple.

Could you point me to the wiki or the "scratchpad of cocoon"?
I have been using cocoon for quite a while now but I do not yet
know the development setup of the cocoon project -- although
I am really interested...

Thank you,
Michael

>
>
>> Yes, I am interested. Maybe you can put it on the scratchpad of
>> Cocoon? (don't ask me how!)
>
>
> Or, if it's one source file as I imagine, you could start by posting
> it to the wiki, on a new page.
>
> This would allow people to use it with existing versions of Cocoon,
> and if there's enough interest we might move it to the main codebase.
>
> -Bertrand



-- 
abs IT Service GmbH
abs gruppe
Michael Wirz
Entwicklung

Landsberger Straße 57
82266 Stegen am Ammersee
Telefon: +49 (0)8143 999 43
Telefax: +49 (0)8143 999 49

[EMAIL PROTECTED]
www.eFonds24.de


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Portal] Coplet instances pool ?

2005-11-30 Thread Jean-Christophe Kermagoret

Hello,
Is there in the portal a way to create coplet instances in advance, to 
reduce the first connection overhead ? A kind of coplet instance pool 
that could be configured by profile ?


By the way, I saw in 2.1.8 the following configuration snippet in 
cocoon.xconf, with coplet-factory, 'auto-create' and store attributes 
that sound like keywords for me :-)


What is it for ?

















  

Jean-Christophe
--

BlueXML
Jean-Christophe Kermagoret
Directeur associé
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



XPathTraversableGenerator and default namespace

2005-11-30 Thread Michael Wechner

Hi

I have problems using the XPathTraversableGenerator with default namespaces.

The following works:

 
   
   http://www.apache.org/1.0"/>
 

wheres the the developer XML would be something like

http://www.apache.org/1.0";>
 .


but the following doesn't seem to work


   
   http://www.apache.org/1.0"/>



whereas the developer XML would be something like

http://www.apache.org/1.0";>
 



Am I missing something, or is it a bug?

Thanks for your help

Michi

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Antennahouse XSL Formatter Serializer

2005-11-30 Thread Bertrand Delacretaz


Le 30 nov. 05, à 09:19, Geert Josten a écrit :

Yes, I am interested. Maybe you can put it on the scratchpad of 
Cocoon? (don't ask me how!)


Or, if it's one source file as I imagine, you could start by posting it 
to the wiki, on a new page.


This would allow people to use it with existing versions of Cocoon, and 
if there's enough interest we might move it to the main codebase.


-Bertrand


smime.p7s
Description: S/MIME cryptographic signature


Re: Antennahouse XSL Formatter Serializer

2005-11-30 Thread Michael Wechner

Geert Josten wrote:


Yes, I am interested.



me too. I think it's always good to be able to use/compare different 
implementations.



Maybe you can put it on the scratchpad of Cocoon? (don't ask me how!)



you might want to create a block similar to the FOP block src/blocks/fop 
and make it optional


Michi



Have you compared the performance with FOP and/or XEP engine? What is 
the (estimated) gain?


Regards,
Geert

Michael Wirz wrote:


Dear cocoon Users,

since I am working on a project using cocoon 2.1.5 and we have been
using the Antennahouse XML, XSL/FO to PDF Formatter for
performance reasons, I developed a small serializer for this formatter.
It calls XSLFormatter via an external Shellskript, the command to
be executed can be configured in the serializer declaration of the 
sitemap.

It expects the XML/FO input from stdin and pipes the pdf to stdout --
just as a serializer should work.

If there is any interest in my solution I'd like to hear from you.

Best regards,
Michael Wirz







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Antennahouse XSL Formatter Serializer

2005-11-30 Thread Geert Josten

Yes, I am interested. Maybe you can put it on the scratchpad of Cocoon? (don't 
ask me how!)

Have you compared the performance with FOP and/or XEP engine? What is the 
(estimated) gain?

Regards,
Geert

Michael Wirz wrote:


Dear cocoon Users,

since I am working on a project using cocoon 2.1.5 and we have been
using the Antennahouse XML, XSL/FO to PDF Formatter for
performance reasons, I developed a small serializer for this formatter.
It calls XSLFormatter via an external Shellskript, the command to
be executed can be configured in the serializer declaration of the sitemap.
It expects the XML/FO input from stdin and pipes the pdf to stdout --
just as a serializer should work.

If there is any interest in my solution I'd like to hear from you.

Best regards,
Michael Wirz




--
Drs. G.P.H. Josten
Consultant



Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
www.daidalos.nl


De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is 
uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken 
wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PDF output format

2005-11-30 Thread Geert Josten
Take a closer look at the sitemap. This error indicates that the pipeline match is not matching with 
the request. Are you looking at the samples that are supplied with Cocoon? If so which version?


Kind regards,
Geert

dcausevi wrote:

I have set include.block.fop=true (include.block.batik=true is set too) in the 
local.build.properties, then I rebuilt cocoon but I am still getting an error 
message "No pipeline matched request:samples/blocks/fop/pdf" for the PDF 
output format... What else do I have to do in order to enable PDF output 
format?


Dzenan Causevic
Software Developer
NaviSite, Inc
Syracuse, NY


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Resource comparison between Cocoon and Struts/JSP??

2005-11-30 Thread Antonio Fiol Bonnín
> We have a customer looking to build an architecture around Open Source
> frameworks. He has asked us about the differences in needed resources (CPU,
> Memory) when writing an application using Cocoon as compared to a Struts/JSP
> solution. While I realize the answer is probably "that depends", there are
> certain customers who just aren't interested in that type of answer :-(. And
> this customer actually has to pay internal charges depending on the amount
> of memory and CPU needed.
>
> So maybe someone out there has actually done this type of comparison or can
> point me to something?

We have NOT done this type of comparison, but I would expect the following:

A Full-Cocoon "Hello World" would have a much larger memory footprint
than a Struts one, because Cocoon has lots of blocks that you would
not use for that.

However, once you have developed the app code and reduced the cocoon
build to your strict needs, you would probably see them converge.

About CPU consumption, that usually depends heavily on your
application and your optimizations (on both sides).

HTH,

--
Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]