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

Re: Repeater add row replaces old data

2007-06-18 Thread Barbara Slupik
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 replaces some of the old data in the collection. I am using Cocoon

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 === bean name=org.apache.cocoon.auth.SecurityHandler/simple

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; ilt;profiles.size; i++) { var row=profiles.getRow(i); var profile=row.lookupWidget(profile).value; } Barbara On

Re: Access tomcat session from cocoon

2008-06-24 Thread Barbara Slupik
In cocoon-2.2 I had to add this: filter filter-namespringRequestContextFilter/filter-name filter-classorg.springframework.web.filter.RequestContextFilter/ filter-class /filter filter-mapping

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: bean id=myDataSource class=org.apache.commons.dbcp.BasicDataSource destroy-method=close property name=driverClassName value${myDatabase.driverClassName}/value /property property

Re: Form base authentication in tomcat

2008-06-25 Thread Barbara Slupik
I had the same problem. I fixed it by adding: filter filter-namespringRequestContextFilter/filter-name filter-classorg.springframework.web.filter.RequestContextFilter/ filter-class /filter filter-mapping

Re: Odd Behavior with HSSFSerializer

2008-06-25 Thread Barbara Slupik
I had the same problem. I fixed it like this: !-- Style regions are built for each column for max 999 rows. Larger regions do not seem to work. That's why styles template is called more then once if number of rows to print exceedes 999. -- xsl:template name=styles xsl:param

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: html head titletest/title link

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: set name=reservations inverse=true cascade=all,delete-orphan order-by=reservationID /set I had to do this although reservationID is the primary key on my

Re: xsl match pattern

2008-06-27 Thread Barbara Slupik
Do you have something like this in your stylesheet: xsl:stylesheet ... xmlns:dir=your-url ... Barbara On 27 Jun, 2008, at 8:43 am, Johannes Hoechstaedter wrote: Hello, can anybody tell me how to match this node in xsl? dir:directory name=configuration

Re: xpath-function substring-before

2008-06-27 Thread Barbara Slupik
I do xsl:value-of select=substring-before('astt','tt')/ 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

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 xsl:value-of select=substring-before('astt','tt')/ and this works fine. Barbara On 27 Jun, 2008, at 10:48 am, Johannes Hoechstaedter wrote

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: bean id=xxx.yyy.myBlock.service class=org.apache.cocoon.sitemap.SitemapServlet servlet:context mount-path=/myBlock context-

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/

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: 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: map:serialize type=svg2png / 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

Re: Cocoon installation howto?

2008-07-08 Thread Barbara Slupik
, Ken Starks wrote: Barbara Slupik 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 everything works in maven/jetty development environment I build application war

Re: Cocoon installation howto?

2008-07-08 Thread Barbara Slupik
: org.apache.cocoon.serialization.SVGSerializer And this is 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

Re: Problems with ContextListener

2008-07-09 Thread Barbara Slupik
I had similar problem. I fixed it by adding: filter filter-namespringRequestContextFilter/filter-name filter-classorg.springframework.web.filter.RequestContextFilter/ filter-class /filter filter-mapping

Re: Problems with ContextListener

2008-07-10 Thread Barbara Slupik
, 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 Direct: +47

Re: Cocoon installation howto?

2008-07-12 Thread Barbara Slupik
Perhaps you need to add this into your pom file: dependency groupIdorg.apache.cocoon/groupId artifactIdcocoon-ajax-impl/artifactId version1.0.0/version /dependency Barbara On 12 Jul, 2008, at 9:11 am, jantje wrote: Thanks, So now I have downloaded

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

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 -

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

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: plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId version.../version configuration ...

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: 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

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 + 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: dependency groupIdmysql/groupId

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

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 pm,

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: fd:repeater-action id=addSomething command=add-row repeater=myRepeater fd:on-action fd:javascript var form=event.source.form; var

Re: Selection list from multivaluefield

2008-08-04 Thread Barbara Slupik
You can do something like this: * definition fd:multivaluefield id=myField fd:datatype base=string/ fd:selection-list src=cocoon:/my-selection-list cache=true/ /fd:multivaluefield * template ft:widget id=myFieldfi:styling list-type=checkbox//ft:widget * binding fb:value

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: cocoon 2.2 war app logging + Tomcat 6

2009-06-12 Thread Barbara Slupik
Hello I have this: bean name=org.apache.cocoon.spring.configurator.log4j class=org.apache.cocoon.spring.configurator.log4j.Log4JConfigurator scope=singleton property name=settings ref=org.apache.cocoon.configuration.Settings/ property name=resource

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

Re: Resource outside jar

2009-07-01 Thread Barbara Slupik
Production environment runs on my client's server. Development environment runs on my computer. My client has multiple users. He wants to change and add new printers but he does not want to rebuild the application every time printer details change. What I am trying to do is to apply the

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: plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId version6.1.7/version configuration ...

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: 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: fd:validation fd:javascript var success=true; if (some-test) {widget.setValidationError(new Packages.org.apache.cocoon.forms.validation.ValidationError(my- error,true)); success=false;} return

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: ft:form-template action=#{$cocoon/continuation/id}.continue method=POST enctype=multipart/form-data See http://cocoon.apache.org/2.2/blocks/forms/1.0/483_1_1.html Barbara On

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

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-

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: 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-usersm=121545072805686w=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,

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 init-param param-namecontainer-encoding/param-name param-valueUTF-8/param-value /init-param init-param param-nameform-encoding/param-name

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: filter filter-namespringRequestContextFilter/filter-name filter-classorg.springframework.web.filter.RequestContextFilter/ filter-class /filter filter-mapping

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 dependencyManagement 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

Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6

2010-10-28 Thread Barbara Slupik
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 dependencyManagement section but get error when starting my block in jetty. What else do I need to change? Error

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);

Re: CForms validation in Cocoon-2.1.12

2013-12-05 Thread Barbara Slupik
be generating unnecessary ?xml ... version=... header within your XML data (in Ajax request?) Greetings, Greg 2013/12/4 Barbara Slupik barbara_slu...@wro.vectranet.pl 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

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 ft:form-template action=xxx method=POST. Also perhaps you don't need any processing in flow.js after form.showForm(main-display- pipeline, data).