Re: Stateless form.processForm

2014-11-13 Thread Barbara Slupik
Hello Do you have main_template.xml in your main-display-pipeline? Perhaps is is enough to define your form template without continuation, like . Also perhaps you don't need any processing in flow.js after form.showForm("main-display- pipeline", data). Barbara On 12 Nov 2014, at 17:22,

Re: CForms validation in Cocoon-2.1.12

2013-12-05 Thread Barbara Slupik
unnecessary header within your XML data (in Ajax request?) Greetings, Greg 2013/12/4 Barbara Slupik Hello I am trying to upgrade from Cocoon-2.1.11 to Cocoon 2.1.12. I have a problem with CForms validation - the ! error icon validation-message.gif is not displayed. Dojo debug message

CForms validation in Cocoon-2.1.12

2013-12-04 Thread Barbara Slupik
Hello I am trying to upgrade from Cocoon-2.1.11 to Cocoon 2.1.12. I have a problem with CForms validation - the ! error icon validation- message.gif is not displayed. Dojo debug message is: DEBUG: dojo.widget.Parse: error: [Exception... "Node cannot be inserted at the specified point in the

HSSF serializer stand-alone

2010-11-09 Thread Barbara Slupik
Hello I am using HSSF serializer as stand-alone in java. It works with cocoon-2.0.4.jar: void serializeHSSF(Document doc, OutputStream out) throws Exception { PipedOutputStream outStream=new PipedOutputStream(); PipedInputStream inStream=new PipedInputStream(outStream); HSSFSe

Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6

2010-10-28 Thread Barbara Slupik
org.springframework spring-jdbc 2.5.6 instead of changing cocoon poms. It works fine. Barbara On 19 Oct, 2010, at 11:09 am, Barbara Slupik wrote: Hello I am trying to do it but no success so far. I changed spring dependencies in cocoon-6.pom section but get error when

Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6

2010-10-19 Thread Barbara Slupik
Hello I am trying to do it but no success so far. I changed spring dependencies in cocoon-6.pom section but get error when starting my block in jetty. What else do I need to change? Error: 2010-10-19 09:39:10.268:/:INFO: Initializing Spring root WebApplicationContext 2010-10-19 09:39:1

Re: Deploying a Cocoon 2.2 webapp in Tomcat 6.0.20

2010-10-04 Thread Barbara Slupik
I had similar problem. I fixed it by adding: springRequestContextFilter org.springframework.web.filter.RequestContextFilterfilter-class> springRequestContextFilter /* FORWARD REQUEST

Re: form encoding issues

2010-09-29 Thread Barbara Slupik
Hello I followed the instruction here http://cocoon.apache.org/2.2/1366_1_1.html . For cocoon-2.1.11 I set container-encoding UTF-8 form-encoding UTF-8 in my web.xml instead of org.apache.cocoon.containerencoding=utf-8 and org.apache.cocoon.forme

Re: Configuration process of cocoon-2.2.0

2010-09-12 Thread Barbara Slupik
You might find some information in Cocoon installation howto thread in http://marc.info/?l=xml-cocoon-users&m=121545072805686&w=2 . You don't need to configure cocoon to run in tomcat as far as I know. The same cocoon application can run in tomcat and jetty for example. Barbara On 7 Sep, 20

CForms suggestion-list: setting value

2010-07-14 Thread Barbara Slupik
Hello How to set a value on a suggestion-list? I am using cocoon-2.1.11 with Firefox 3.6.6. The cocoon sample listed below does not seem to work. I think that it should display the suggestion list set to "Bruno Dumon" but it displays the list with no initial value. You have to start typing

Re: embedding fonts

2009-10-09 Thread Barbara Slupik
Hello Do you have metrics files with hungarian characters? If I remember well you have to get ttf fonts with hungarian characters and build xml metric files with commands similar to these: java -classpath classes:lib\fop.jar;lib\avalon-framework- cvs-20020806.jar;lib\xml-apis.jar;lib\xerce

Re: REPOST: Queries in Cocoon 2.1.11 not working with"AS"protocol?

2009-09-14 Thread Barbara Slupik
Hello I had a similar problem with sql meta operations. In one environment the same query would return "foo" and in another one "bar". The reason was that these environments were using different versions of database connector: 5.0 returns alias and 5.1 returns column name. See http://dev.my

Re: Starting out with Cocoon 2.2

2009-09-12 Thread Barbara Slupik
Hello I wrote two applications using CForms, Spring and Hibernate in Cocoon 2.1. It found it relatively easy to upgrade them to Cocoon 2.2. I think that CForms, Spring and Hibernate work very well together. But the same client also has a couple of old applications which still run in Cocoo

Re: Error uploading files.

2009-08-25 Thread Barbara Slupik
Hello Do you have enctype="multipart/form-data" in your ft:form-template element? It should look similar to this: method="POST" enctype="multipart/form-data"> See http://cocoon.apache.org/2.2/blocks/forms/1.0/483_1_1.html Barbara On 18 Aug, 2009, at 10:27 am, Tomek Piechowicz wrote: Hi.

Re: CForms 2.1 javascript validation not working

2009-07-12 Thread Barbara Slupik
Hello I use cocoon-2.2.0 and do my validation like this: var success=true; if (some-test) {widget.setValidationError(new Packages.org.apache.cocoon.forms.validation.ValidationError("my- error",true)); success=false;} return success; and

Re: Resource outside jar

2009-07-09 Thread Barbara Slupik
Benjamin, thanks for your help. I use Spring Configurator for database settings. It works very well. I decided to put my Printers.xml file in context, that is in my block/ application webapp. My client can add his custom Printers.xml to the application webapp after installation. Printers.xml

Re: Cocoon 2.2 : Maven vs. customized web.xml

2009-07-01 Thread Barbara Slupik
I use jetty for development. I have my web.xml in my block directory, where pom.xml file is. In my pom.xml file I define: org.mortbay.jetty maven-jetty-plugin 6.1.7 ... web.xml Jetty uses my web.xml file and does not o

Re: Resource outside jar

2009-07-01 Thread Barbara Slupik
e printers into the database but I prefer to stay with xml file. Barbara On 1 Jul, 2009, at 9:26 am, Bart Remmerie wrote: Where is the server running ? Are there multiple clients running on one server ? Or is the server running @ the client ? Bart On Wed, Jul 1, 2009 at 9:21 AM, Barbara Sl

Resource outside jar

2009-07-01 Thread Barbara Slupik
Hello I am using cocoon-2.2.0. I want to define an xml file with printers configuration. This file should be outside application jar because my client will configure his own printers there. Printers defined in the xml file will be displayed on one of the application screens so that user c

Re: cocoon 2.2 war app logging + Tomcat 6

2009-06-12 Thread Barbara Slupik
Hello I have this: class="org.apache.cocoon.spring.configurator.log4j.Log4JConfigurator" scope="singleton"> ref="org.apache.cocoon.configuration.Settings"/> in my application context. My log4j.xml is in my cocoon-webapp/src/main/webapp/WEB-INF and it contain

Re: Binding on different xml paths

2008-08-04 Thread Barbara Slupik
Can you please explain it once again? I don't really understand your problem. Barbara On 28 Jul, 2008, at 6:00 pm, Héléna Tanguy wrote: Hello, I'm working on a cocoon form with binding on xml document. Now everything works correctly. But I must make an evolution to this form, the binding

Re: Selection list from multivaluefield

2008-08-04 Thread Barbara Slupik
You can do something like this: * definition * template * binding * object private String[] myField; Set values in myField array and they will be automatically selected on the screen. Barbara On 4 Aug, 2008, at 1:44 pm, Gary Larsen wrote: Hi All, Is it pos

Re: using formMap.put()

2008-07-31 Thread Barbara Slupik
I don't know what are you trying to do. I was using parameters in repeater action like this: repeater="myRepeater"> var form=event.source.form; var repeater=form.getChild("myRepeater"); var row=repeater.getRow(repeater.getSize() - 1); row

Re: how to use formMap.put() ?

2008-07-31 Thread Barbara Slupik
I pass parameters to my forms and form widgets like this: var form=new Form(myFormDefinition); form.setAttribute("myAttribute",myAttribute); form.lookupWidget("myWidget").setAttribute("myAttribute",myAttribute); Barbara On 31 Jul, 2008, at 5:11 p

Re: Finding a new name for Corona (a Cocoon rewrite)

2008-07-30 Thread Barbara Slupik
Unfortunately this does not sound good in Polish. It means bottom, on which you sit. Barbara On 30 Jul, 2008, at 8:36 pm, [EMAIL PROTECTED] wrote: Pupa Corona is the core of Cocoon without the shell. What is inside a cocoon is called a pupa. PUPA (always all capitals as an acronym) was th

Re: cocoon + db4odjects.jar

2008-07-29 Thread Barbara Slupik
I use cocoon with MySQL, Hibernate and cForms and I don't know db4objects, so the suggestions below might be wrong 1. Adding jar file You should place your database in pom file. I have mysql defined like this: mysql mysql-connector-java 5.0.5 Try to find your dat

Re: Migrating Cocoon 2.1 project to Cocoon 2.2

2008-07-27 Thread Barbara Slupik
In cocoon-2.2 everything runs as blocks. So you have to put your old application into one or more blocks and create cocoon-2.2 application to run them. There are some changes which are described Migration guide, for example for cforms go to cocoon page, Blocks 2.2/Forms/ Migration guide and

Re: Cocoon 2.2.1 - Context path at root doesn't work

2008-07-27 Thread Barbara Slupik
Before cocoon-2.2 I was using tomcat in my development, test and production environments. Now I use maven/jetty for development and tomcat for test/production. In maven/jetty I change my block cforms, sitemap and flow and I can see the changes after refreshing the screen. When development i

Re: Questions about migration from cocoon 2.1 to cocoon 2.2

2008-07-24 Thread Barbara Slupik
I am using cocoon with maven and jetty in my development environment. I develop and test individual blocks. Then I build my block jar files and my cocoon application. Once everything works in maven/jetty development environment I build application war file and put it in my test environment

Re: [C2.2] set web.xml params

2008-07-24 Thread Barbara Slupik
I use maven/jetty in my development environment. I put my web.xml file in myBlock folder and in my pom file I define: org.mortbay.jetty maven-jetty-plugin ... ... web.xml This tells jetty to use my web.xml fi

Re: Apache commons-fileupload returns an empty list

2008-07-15 Thread Barbara Slupik
I use CForms upload widget to upload files and it works fine. Barbara On 15 Jul, 2008, at 12:08 pm, Magnus Haraldsen Amundsen wrote: Hi, I want to use commons-fileupload to handle fileupload in my webapp. I’ve followed the tutorial at http://commons.apache.org/fileupload/ using.html but li

Re: Problem building Cocoon (the requested operation cannot be performed on a file with a user-mapped section open)

2008-07-14 Thread Barbara Slupik
I use maven/jetty in my development environment and tomcat for test/ production. I build cocoon-2.2 application like this: 1. Create block myBlock cd /.../cocoon-2.2.0 mvn archetype:create -DarchetypeGroupId=org.apache.cocoon - DarchetypeArtifactId=cocoon-22-archetype-block - DarchetypeVersio

Re: C2.2 - Web archetype whodunnit!

2008-07-13 Thread Barbara Slupik
I test my blocks in maven/jetty. After everything works I do the following: 1. Build myBlock jar file and update maven repository. I assume that version number is 1.0, version number is defined in myBlock pom file cd /.../cocoon-2.2.0/myBlock mvn package mvn install:install-file -DgroupId=

Re: Cocoon installation howto?

2008-07-12 Thread Barbara Slupik
Perhaps you need to add this into your pom file: org.apache.cocoon cocoon-ajax-impl 1.0.0 Barbara On 12 Jul, 2008, at 9:11 am, jantje wrote: Thanks, So now I have downloaded dojo-0.4.3-ajax.zip But how can My block get access to Ajax? You say I could make a bloc

Re: Problems with ContextListener

2008-07-10 Thread Barbara Slupik
05 am, Kjetil Kjernsmo wrote: On Wednesday 09 July 2008 17:15:13 Barbara Slupik wrote: I had similar problem. I fixed it by adding: Wow, that worked! Thanks a lot! But I don't understand what it does, could anyone explain...? Kind regards Kjetil Kjernsmo -- Senior Knowledge Engineer D

Re: Problems with ContextListener

2008-07-09 Thread Barbara Slupik
I had similar problem. I fixed it by adding: springRequestContextFilter org.springframework.web.filter.RequestContextFilterfilter-class> springRequestContextFilter /* FORWARD REQUEST

Re: Cocoon installation howto?

2008-07-08 Thread Barbara Slupik
s my sitemap (I have adde the definition for the serializer, on your advise.. Normally I don't do this..): http://users.skynet.be/sb015553/sitemap.xmap Thanks, this is not easy :-) Barbara Slupik-3 wrote: I create my blocks with: mvn archetype:create -DarchetypeGroup

Re: Cocoon installation howto?

2008-07-08 Thread Barbara Slupik
, I might have forgotten something. Actually I created build.sh command file in every block and in cocoon- webapp and put all necessary mvn packaging repository update commands there. Barbara On 8 Jul, 2008, at 8:55 am, Ken Starks wrote: Barbara Slupik wrote: I am using cocoon with maven

Re: Cocoon installation howto?

2008-07-07 Thread Barbara Slupik
-INF/ And then? How do I know what I should write in pom? f.i. when I use: Thanks.. Barbara Slupik-3 wrote: I am using cocoon with maven and jetty in my development environment. I develop and test individual blocks. Then I build my block jar files and my cocoon application. Once

Re: Cocoon installation howto?

2008-07-07 Thread Barbara Slupik
I am using cocoon with maven and jetty in my development environment. I develop and test individual blocks. Then I build my block jar files and my cocoon application. Once everything works in maven/jetty development environment I build application war file and put it in my test environment

Re: How to access configuration files and properties after packaging

2008-07-03 Thread Barbara Slupik
I use properties to define my database connection. I my development environment I add my properties into block rcl.properties and I can test blocks individually with jetty. rcl.properties file is not included in block jar file. In my application I created cocoon/ properties/application.prope

Re: Creating webapp

2008-06-27 Thread Barbara Slupik
I defined all my blocks as dependencies in my web application pom file. In each block I have block-servlet-service.xml which looks like this: class="org.apache.cocoon.sitemap.SitemapServlet"> path="blockcontext:/myBlock/"> ref=

Re: xpath-function substring-before

2008-06-27 Thread Barbara Slupik
No, xerces. Barbara On 27 Jun, 2008, at 11:54 am, Johannes Hoechstaedter wrote: Do you use saxon? I doesn't work for me. Barbara Slupik schrieb: I do and this works fine. Barbara On 27 Jun, 2008, at 10:48 am, Johannes Hoechstaedter wrote: Hi everybody, I found out, that fn:subs

Re: xpath-function substring-before

2008-06-27 Thread Barbara Slupik
I do and this works fine. Barbara On 27 Jun, 2008, at 10:48 am, Johannes Hoechstaedter wrote: Hi everybody, I found out, that fn:substring('astt', 2) is working but fn:substring-before('astt', 't') not (NoSuchMethodException) I am using saxon and xmlns:fn="http://www.w3.org/2005/xpath-

Re: xsl match pattern

2008-06-27 Thread Barbara Slupik
Do you have something like this in your stylesheet: Barbara On 27 Jun, 2008, at 8:43 am, Johannes Hoechstaedter wrote: Hello, can anybody tell me how to match this node in xsl? date="25.06.08 16:44" size="0" sort="name" reverse="false" requested="true"/> doesn't work. cheers Johannes

Re: Cocoon 2.1.11, repeater binding and JavaScript

2008-06-26 Thread Barbara Slupik
I had similar problem. I solved it by sorting the id used by repeater. I use Hibernate, so I added order-by in my hbm file: order-by="reservationID"> I had to do this although reservationID is the primary key on my database table. My binding looks like this:

Re: Form base authentication in tomcat

2008-06-26 Thread Barbara Slupik
I had the same problem. In the end I put my styles inside login form, because the link to css did not work. I hope someone knows better solution. Barbara On 26 Jun, 2008, at 9:34 am, Johannes Hoechstaedter wrote: same behaviour with: test type="text/css" rel="stylesheet" /> Johannes

Re: Odd Behavior with HSSFSerializer

2008-06-25 Thread Barbara Slupik
I had the same problem. I fixed it like this: select="$startRow + 998"/> xsl:attribute> xsl:attribute> ...

Re: Form base authentication in tomcat

2008-06-25 Thread Barbara Slupik
I had the same problem. I fixed it by adding: springRequestContextFilter org.springframework.web.filter.RequestContextFilterfilter-class> springRequestContextFilter /* FORWARD REQUEST

Re: some words about property configuration

2008-06-25 Thread Barbara Slupik
I use properties to configure my database connection. In my block application context I have: class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> ${myDatabase.driverClassName} ${myDatabase.url} ${myDatabase.username}

Re: Access tomcat session from cocoon

2008-06-24 Thread Barbara Slupik
In cocoon-2.2 I had to add this: springRequestContextFilter org.springframework.web.filter.RequestContextFilterfilter-class> springRequestContextFilter /* FORWARD REQUEST to my

Re: [2.2] Cforms, selection-list on Repeater

2008-06-20 Thread Barbara Slupik
I think you need to get to the repeater row to access your widget. Perhaps something like this will work: var profiles=form.lookupWidget("profiles"); for (var i=0; i

Authentication block

2008-06-11 Thread Barbara Slupik
Hello I am trying to move my cocoon applications from cocoon-2.1.10 to cocoon-2.2.0. I cannot make the tomcat security (realm) work with cocoon-2.2.0 so I tried to use authentication block instead. === My application context === manager=ma

Re: Repeater add row replaces old data

2007-06-18 Thread Barbara Slupik
essID"> I use the database id nameAddressID to identify the repeater rows, no extra ids are necessary. Barbara On 8 Jun, 2007, at 10:46 pm, Barbara Slupik wrote: Hello I am trying to add a row in a CForms repeater but the new row replace

Repeater add row replaces old data

2007-06-08 Thread Barbara Slupik
Hello I am trying to add a row in a CForms repeater but the new row replaces some of the old data in the collection. I am using Cocoon-2.1.10 with Hibernate-3.2, Spring-2.0.4 and MySQL-5.0.37. The repeater rows are loaded from the database and displayed correctly on the screen. When I try