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
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
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
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
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
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
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
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
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
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
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
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
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
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-
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/
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
-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
, 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
:
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
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
, 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
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
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
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 -
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
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
...
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
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
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
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
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
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,
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
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
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
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
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
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
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
...
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
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
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
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
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-
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
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,
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
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
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
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
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);
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
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).
53 matches
Mail list logo