[REPOST] Setting multi-value widget values for dynamically createdforms

2008-06-03 Thread Derek Hohls
I am reposting in the hope that someone can find a few moments to look at this - I'm sure I am missing something simple, but cannot see what it is... On 2008/05/21 at 12:55, in message [EMAIL PROTECTED], Derek Hohls [EMAIL PROTECTED] wrote: I have a dynamically created form which I then

Re: Cocoon 2.2 resources outside of a Block

2008-06-03 Thread Reinhard Haller
Hi Grzegorz, Grzegorz Kossakowski schrieb: After seeing all these e-mails complaining about some non-existing problems of C2.2 I think it's right time to prepare Top 10 misconceptions on Cocoon 2.2. Something to worth consideration... is it a misconception to understand separation of

Sitemap point to extern directory

2008-06-03 Thread jantje
Hi there, map:pipeline map:match pattern=myFirstPipeline map:generate src=myXmlFile.xml type=file/ map:serialize type=xml/ /map:match The file above, myXmlFile.xml is in a different directory. F.i: /mnt/sdLacie/source/xml/myXmlFile.xml while the sitemap is in

RE: Sitemap point to extern directory

2008-06-03 Thread Jasha Joachimsthal
-Original Message- From: jantje [mailto:[EMAIL PROTECTED] Sent: dinsdag 3 juni 2008 13:50 To: users@cocoon.apache.org Subject: Sitemap point to extern directory Hi there, map:pipeline map:match pattern=myFirstPipeline map:generate src=myXmlFile.xml

Re: Sitemap point to extern directory

2008-06-03 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi You can use : map:pipelines map:component-configurations !-- global-variables is used like a configuration file -- global-variables distantDirectory/home/foo/distantDirectory /global-variables

Re: [REPOST] Setting multi-value widget values for dynamically createdforms

2008-06-03 Thread Robin Wyles
Hi Derek, As far as I can remember you just need to set the multi-value widget value to a simple array, and I don't think you should initialise the array with 10 values if you are only setting 1. Something like this maybe: var values = [option1, option2]; // these are the values to pre-

Re: C.2.2 Properties in the sitemap

2008-06-03 Thread Robin Wyles
Thanks Luca... really must learn my way around the maze of a new website :) ... I was looking here: http://cocoon.apache.org/subprojects/configuration/1.0/spring- configurator/1.0/1304_1_1.html Robin On 2 Jun 2008, at 22:07, Luca Morandini wrote: Robin Wyles wrote: It's that simple!

Type 'serverpages' does not exist for 'map:generate'

2008-06-03 Thread jantje
Hi there, For cocoon 2.2, with maven, i have this pipeline in my experimental sitemap-file: map:sitemap xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://apache.org/cocoon/sitemap/1.0 http://cocoon.apache.org/schema/sitemap/cocoon-sitemap-1.0.xsd;

Re: [REPOST] Setting multi-value widget values for dynamically createdforms

2008-06-03 Thread Derek Hohls
Robin How would you create the array programmtically ie. values array needs to be populated via data values sourced elsewhere ( and typically available in a string variable) rather than from a static list. Thanks Derek On 2008/06/03 at 03:32, in message [EMAIL PROTECTED], Robin Wyles [EMAIL

Re: [REPOST] Setting multi-value widget values for dynamically createdforms

2008-06-03 Thread Robin Wyles
I'm not sure if it's the best way, but off the top of my head... var values = new Packages.com.java.util.ArrayList(); values.add(option 1); values.add(option 2); values.add(someMethodToGetAString()); values.add(someOtherMethodToGetAString()); fwidget.setValue(values.toArray()); Basically,

Re: [REPOST] Setting multi-value widget values for dynamically createdforms

2008-06-03 Thread Robin Wyles
Or you could even do: var values = []; values[0] = option 1 values[1] = someMethodToGetAString(); fwidget.setValue(values); I think your problems were down to the fact that you were initialising the size of the array... Cheers, Robin On 3 Jun 2008, at 14:48, Derek Hohls wrote: Robin

RE: Database to Excel Spreadsheet

2008-06-03 Thread Matthew Monkan
I'm trying to select the text Puffball, but I keep getting this error message: javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token. Unable to get transformer handler for file:///C:/cocoon/build/webapp/eta/style/main.xsl I don't understand the

multithreaded Content Aggregator migration from 2.1 to 2.2

2008-06-03 Thread Imran Pariyani
Hello all, we have multithreaded Content Aggregator which is based on the CIncludeTransformer and it also implements CacheableProcessingComponent for caching .. it used to work fine for cocoon 2.1.x but with cocoon 2.2 it gives strange error .. it is actually a generator and it gives error

Re: Database to Excel Spreadsheet

2008-06-03 Thread Robin Wyles
I think there is an error in your xsl here: xsl:value-of select=/Workbook/Sheets/Sheet/Cells/Cell/rowset/row/ test_data/[1] / Should be... xsl:value-of select=/Workbook/Sheets/Sheet/Cells/Cell/rowset/row/ test_data[1] / You don't use a slash before declaring a predicate. Cheers, Robin

Re: Database to Excel Spreadsheet

2008-06-03 Thread Matthew Monkan
Thanks Robin, I did indeed use the predicate wrong. Alright, I'm really close to getting this application to work but am stumped over one thing. Here is my initial XML file: ?xml version=1.0? execute-query xmlns=http://apache.org/cocoon/SQL/2.0; querySELECT test_data from test_table;/query

Getting the request object in a class implementing Listener interface cocoon 2.2

2008-06-03 Thread Imran Pariyani
Hi all, for the old cocoon i.e 2.1.x we use to access the request object inside the ActionListener implementation class with the following code .. final Request request = ObjectModelHelper.getRequest(CocoonComponentManager.getCurrentEnvironment() .getObjectModel()); for

Re: Type 'serverpages' does not exist for 'map:generate'

2008-06-03 Thread jantje
I can't use XSP in cocoon2.2 There is almost no documentation available. Where can I find information? Thanks jantje wrote: Hi there, For cocoon 2.2, with maven, i have this pipeline in my experimental sitemap-file: map:sitemap xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

SendMail Transformer (Cocoon 2.1.11, Windows XP)

2008-06-03 Thread Matthew Monkan
Okay, I'm having more trouble than I probably should with mail in Cocoon. I made the smallest possible application, which was fine. I'm okay with the XML and sitemap. I just need clarification on what exactly needs to be done with the mail.jar and activation.jar files. I have the Cocoon folder

Re: SendMail Transformer (Cocoon 2.1.11, Windows XP)

2008-06-03 Thread Torsten Curdt
I've tried a million things, but I always get: Could not connect to SMTP host: localhost, port: 2525 (java.net.ConnectException: Connection refused: connect) Well, that sounds like there is no SMTP server listening on localhost port 2525 What happens when you do a 'telnet localhost 2525' ?

Jboss 5.0.0.CR1 / Cocoon.war deployment issue - java.lang.IllegalAccessError: class javax.xml.parsers.SecuritySupport12

2008-06-03 Thread Andrew Madu
Hi, I am in the process of migrating my application from 4.0.3SP1 to 5.0.0.CR1, on Win XP SP1, and am receiving the following error message in the server logs when placing my WAR (Cocoon 2.1.8) into the deploy directory. It would seem that there is an issue concerning the

Re: Jboss 5.0.0.CR1 / Cocoon.war deployment issue - java.lang.IllegalAccessError: class javax.xml.parsers.SecuritySupport12

2008-06-03 Thread Joerg Heinicke
On 03.06.2008 20:55, Andrew Madu wrote: I am in the process of migrating my application from 4.0.3SP1 to 5.0.0.CR1, on Win XP SP1, and am receiving the following error message in the server logs when placing my WAR (Cocoon 2.1.8) into the deploy directory. It would seem that there is an issue