Re: CForms: date selection widget

2009-08-29 Thread Benjamin Boksa
Hi Tomek, see http://cocoon.apache.org/2.2/blocks/forms/1.0/487_1_1.html - that should help. Best Regards Benjamin Am 29.08.2009 um 20:30 schrieb Tomek Piechowicz: Hi. Is there any date selection widget in CForms (C2.2) that would let user to choose date instead of manually putting

Re: Debian Tomcat issue

2009-07-15 Thread Benjamin Boksa
Hi Peter, I am trying to deploy a cocoon 2.2 application on Tomcat on a Debian installation (tomcat 5.5.20-2etch3). However, when trying to deploy on the debian standard tomcat, I get listenerError during deployment, which doesn't say much, and it's strange that my app works fine on a

CForms JavaScript loading + execution error

2009-07-09 Thread Benjamin Boksa
Hi List, I need help with a strange problem regarding some CForm stuff (might be a more general problem though): When I repeatedly reload a page containing different resources used by CForms I once in a while (like 1 out of 30 times) get the following error: WARNING: _editor_url is not

CForms JavaScript loading + execution error

2009-07-09 Thread Benjamin Boksa
Hi List, I need help with a strange problem regarding some CForm stuff (might be a more general problem though): When I repeatedly reload a page containing different resources used by CForms I once in a while (like 1 out of 30 times) get the following error: WARNING: _editor_url is not

Re: Resource outside jar

2009-07-06 Thread Benjamin Boksa
Hi Barbara, The new cocoon-2.2.0 application is sending jms requests - this works ok. Now I need to add printers. Of course I could put the printers into the database but I prefer to stay with xml file. take a look at the Spring Configurator, you could easily use it to provide the

Re: problem with this line?

2009-02-23 Thread Benjamin Boksa
Any ideas anyone? Have you tried importClass(Packages.rg.apache.cocoon.ojb.samples.bean.PasswordEncoder); [...] var encoder = new PasswordEncoder(); ? Just an any idea ;-). I have not tried it - but I use the construct above in some places. Let me know if that helps Benjamin

[2.2] Cocoon Template Block 1.2.0

2009-02-05 Thread Benjamin Boksa
Hi, what is the recommended way to install the Cocoon Template Block 1.2.0? (As I would like to use jx:element which is not available in 1.1.0…) Thanks in advance for your anwers Benjamin - To unsubscribe, e-mail:

Re: [2.2] Cocoon Template Block 1.2.0

2009-02-05 Thread Benjamin Boksa
Answering myself: 1.2.0 is only available as snapshot, so using: dependency groupIdorg.apache.cocoon/groupId artifactIdcocoon-template-impl/artifactId version1.2.0-SNAPSHOT/version /dependency will do it. Am 05.02.2009 um 18:04 schrieb Benjamin Boksa: Hi, what

Re: Getting started with C2.2 -- where's the exception information?

2009-01-30 Thread Benjamin Boksa
Hi Klortho, What happened to the really nice exception pages? Is there any way I can get them back? Have you looked at http://cocoon.apache.org/2.2/core-modules/core/2.2/1379_1_1.html ? - To unsubscribe, e-mail:

[workaround] validation-message on tabs when using ajax

2009-01-23 Thread Benjamin Boksa
Hi All, I use the snippet below to enable the validation-icon on tab effect when using tab-styled groups in my ajax-enabled form template. As there were some discussions about this some months ago I thought some of you might be interested. Please be aware that this is only a (ugly?)

Re: AW: AW: AW: [C2.2] Display Upload Progress

2009-01-19 Thread Benjamin Boksa
Hi Matthias, I found this [1] blog post some time ago and the process described there still works fine for me. HTH Benjamin [1] http://mrhaki.blogspot.com/2008/09/running-cocoon-22-samples.html Am 19.01.2009 um 12:15 schrieb Matthias Müller: hi david, i already built the cocoon trunk as

Re: [C2.2] Display Upload Progress

2009-01-19 Thread Benjamin Boksa
Hi David, [1] http://mrhaki.blogspot.com/2008/09/running-cocoon-22-samples.html I'm pretty sure that when I tried, it failed to build if you skip the tests as mentioned in that blog. The reason is one of the artifacts generated for the tests is actually required by the rest of Cocoon.

Re: C2.2 - Where is bu.js? (AJAX related)

2009-01-15 Thread Benjamin Boksa
Hi David, So, now I've moved on to being able to display the form correctly with no exceptions but no Ajax based updates are occurring either. When I run the Cocoon suggestion list demo in Firefox using Firebug I can see the following requests everytime I press another key in the

Re: C2.2 - Where is bu.js? (AJAX related)

2009-01-14 Thread Benjamin Boksa
Hi David, afaik there is no bu.js - however these errors might have a different cause: You most probably forgot to use the browser-update transformer in you display pipeline which causes bu:* element to go through the browser. When dojo parses the page bu is interpreted as a dojo

Re: cocoon 2.2 tutorial won't work with tomcat5.5

2009-01-03 Thread Benjamin Boksa
Hi Mathias Can anybody tell me how to make the example work and/or how to get tomcat more verbose about the listenerStart error? I remember some colleague of mine once had some problems deploying a cocoon application on Tomcat 5.5, I am not sure about the exact error and solution but he

Auth Block 1.0 - redirecting to the original document

2008-12-29 Thread Benjamin Boksa
Hi List, after having spent a few hours digging into the internals of the new authentication framework I am missing one feature of the old framework: In the old framework one had to define a redirect-to uri in the authentication handler. When this uri was called a request-param called

Re: Authentication-block: how to access user credentials from flowscript ?

2008-09-15 Thread Benjamin Boksa
I use the following code to access the currently authenticated User in flowscript: var appUtil = cocoon.createObject('org.apache.cocoon.auth.ApplicationUtil'); var user = appUtil.getUser(); The last call returns an instance of my User object which implements the

Re: Authentication-block: how to access user credentials from flowscript ?

2008-09-13 Thread Benjamin Boksa
How to proceed ? And then after i got this initial setup running, how would i have to call for the userId ? Is there something like appMan.getUserId() or similar ? Is there some documentation about the authentication-api available? and how the data is accessible from a flowscript ? Hi

overwrite block's properties with an external .properties-file

2008-09-08 Thread Benjamin Boksa
Hi, I have created a simple ConfigReader which implements PropertyProvider and the properties are read fine - however they are overwritten by the block's properties :-( How do I configure Cocoon to use default properties from whithin a block which can be overwritten by a file on the file

[2.2] Accessing static methods in JX Templates

2008-08-15 Thread Benjamin Boksa
Hi List, at the moment I am working on a simple template to output a list of some arbitrary beans including their properties. To do this I would like to use PropertyUtil.describe(java.lang.Object bean) [1]. However there seems to be some problem when I try to access PropertyUtils within

Re: Multipage form using an AJAX modal box

2008-07-07 Thread Benjamin Boksa
NP/DIODé/PANDOC: Hi, Even though you're working with Cocoon 2.2, i think you could take a look at [1]. This doc might help you. Cheers. André Davignon [1] http://cocoon.apache.org/2.1/userdocs/ajax.html Le 04/07/2008 18:38, Benjamin Boksa (par Internet, dépôt [EMAIL PROTECTED] ) a écrit

Multipage form using an AJAX modal box

2008-07-04 Thread Benjamin Boksa
Dear List, at the moment I am trying to implement a multipage form using a modal box [1] in Cocoon 2.2. To be more precise I want to implement something like the following: (1) Read a form which is sent out by an existing flowscript using form.showForm(foo1); using modalbox (2) Submit

Creating a parent POM

2008-06-28 Thread Benjamin Boksa
Hi List, when trying to follow the part Creating a parent pom in the Deploying a Cocoon application tutorial [1] I get the following error: [INFO] [ERROR] BUILD ERROR [INFO]

[javaflow] AssertionViolatedException when deriving classes

2007-09-16 Thread Benjamin Boksa
Hi List, during some work with javaflow (actually I am triying to adopt the [1] CocoonAndHibernateTutorial) I came across the following problem. To create an abstract class providing a hibernate session I wrote the following class: abstract class AbstractHibernateContinuable extends

Re: including multiple xml files into transformation

2007-01-07 Thread Benjamin Boksa
Hi Daniel, Hope I could explain the problem somewhat understandable ;). If I understood your question you might want to take a look at: http://cocoon.apache.org/2.1/userdocs/xinclude-transformer.html http://cocoon.apache.org/2.1/userdocs/cinclude-transformer.html HTH, Benjamin

Make SQLTransformer stop on error

2005-09-30 Thread Benjamin Boksa
Hi, is it possible to stop the SQLTransformer when an error occurs while processing more than one query in a single transformation? I have the following case: [...] queryINSERT INTO foo (key) VALUES (1)/query [...] queryINSERT INTO bar (key) VALUES (1)/query [...] (foo and bar have a 1:n

Combining SQLTransformer and Paginator?

2005-09-08 Thread Benjamin Boksa
Hi, I am building a small pipeline to show the result of a database query. It should display n rows at a time, even if the result of the query has more than n rows. As the result can be very large (10 or more rows) it makes sense to use SQL's LIMIT m, n in my opinon. This always

Fwd: HTMLGenerator for parameter-data

2005-07-28 Thread Benjamin Boksa
Hi g[R]eK, If it cames from textarea you would be interested in using ModuleSource[1], but if it cames from file input you should take a look at PartSource[2], both used with HTMLGenerator. Using module source would be like this: map:generate type=html