Re: Running Ant from Cocoon Action

2006-03-17 Thread Antonio Gallardo
Hi Pasha, Maybe this helps [1]. Best Regards, Antonio Gallardo [1] http://ant.apache.org/manual/antexternal.html Pasha Minallah wrote: Hi, I'm trying to run Ant 1.6.2 from a Cocoon 2.1.7 Action. I've added ant.jar and ant-launcher.jar to WEB-INF/lib. Using org.apache.tools.ant.launch.L

Re: CForms: + strangeness

2006-03-17 Thread Antonio Gallardo
Hi Hari, ... It appears that JXMacrosHelper expects the value for a union widget to be String-only. There is a cast to String on line 360: String value = (String)unionWidget.getValue(); Would it have the same effect if the line was changed to: String value = unionWidget.getValue() != null ? u

Re: CForms: HTMLArea Documentation

2006-03-17 Thread Antonio Gallardo
Jeroen Reijn wrote: I'll see if I can find some time this weekend to create a patch and add it to JIRA. I've never used the HTMLArea widget, but I will be glad to commit the patch if you provide it. :-) Best Regards, Antonio Gallardo. -

Re: Error when adding in Javascript for form validation

2006-03-17 Thread Antonio Gallardo
Hi Derek, Sorry for my delay. I've tested the same validator in cocoon 2.1.8 and it works. Something like: return true; ... Best Regards, Antonio Gallardo. Derek Hohls wrote: Antonio In my cocoon.xconf I have: ... Is this what you meant? My validation is for a rep

Re: XSP errors

2006-03-17 Thread Antonio Gallardo
Kamal Bhatt wrote: Hi What is the best practice for handling exceptions in an xsp? Is there a way of passing errors to the log? For exception handling you can use the tipical try {} catch (...) {} blocks. If you need a logger access inside the XSP see [1]. Best Regards, Antonio Gallardo

Re: Problems with encodeURL transformer

2006-03-17 Thread Antonio Gallardo
Hi Mark, See comments between lines. Mark Schrijver wrote: Ok, I've been trying some things and I found that my setup does work, just not with my page. It seems that the encodeUrl transformer only works when I put the directly in the body tag, while I have them in a I included my code

Re: Exception in tomcat catalina.out

2006-03-17 Thread Antonio Gallardo
Hi Anna, The NPE was fixed on May 13th 2005 [1]. Seems like cocoon 2.1.8 includes this fix. Best Regards, Antonio Gallardo. [1] http://svn.apache.org/viewcvs.cgi/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/environment/http/HttpRequest.java?rev=170320&r1=169970&r2=170320&diff_forma

Re: Locale problem in cocoon 2.1.7

2006-03-17 Thread Antonio Gallardo
Did the error have output in the logs? If yes, Can you post the logged error? Best Regards, Antonio Gallardo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to set global array/Enum in sitemap?

2006-03-17 Thread Bhawna
Hey I am a cocoon new bie,can anybody tell me how can is set an array or enum or List as global var and access it in the XSP -- View this message in context: http://www.nabble.com/How-to-set-global-array-Enum-in-sitemap--t1301525.html#a3467663 Sent from the Cocoon - Users forum at Nabble.com. -

Re: Accessing form data from a JX template

2006-03-17 Thread Nicolás Lichtmaier
you should pass everything you need inside the JX as a bizdata, since you are already placing the name as a biz data you can use it from JX with the bizdata name you used in flow, for example : // Placing the value of the field "name" as bizdata "username" var viewData = { "username" : fo

Re: Accessing form data from a JX template

2006-03-17 Thread Simone Gianni
Hi Nicolás, you should pass everything you need inside the JX as a bizdata, since you are already placing the name as a biz data you can use it from JX with the bizdata name you used in flow, for example : // Placing the value of the field "name" as bizdata "username" var viewData = { "use

Accessing form data from a JX template

2006-03-17 Thread Nicolás Lichtmaier
Quick question from a Cocoon newbie: How can I access a form object from a jx template (cforms). I have this flowscript: function altaDeCliente() { var nombre = "altaDeCliente"; var formulario = new Form("cocoon:/" + nombre + "FD.xml"); formulario.showForm("alta-de-cliente-pipeline");

Logicsheet Cache Bug

2006-03-17 Thread Jacob Arnold
I'm applying a rather long custom logicsheet (declared in xconf) to my XSP. I'm experiencing an annoying bug where if I hit the same page twice in quick succession (the second time while the page is initially compiling) then compilation stops part-way through. This only happens when "use-store" is

Link Livesites: Cocoon 2.0

2006-03-17 Thread Asroma
Hi,   my site use Cocoon 2.0.2.   I would like write you that I have had a lot of problem to upgrade with 2.0.4   My site is www.pianetacellulare.it, a cool e-magazine with information about mobile phone. The cocoon is grats things ;-)   Thanks and Good work   fabrizio Email.it, th

Re: CForms.process(formContext)

2006-03-17 Thread Simone Gianni
Hi Gunter, the process can return false for mainly two reasons : - The form does not validate correctly - Somebody called the endProcessing(false) method. This second situation is triggered in many cases : - The submit widget is a field (with a listener, or submit-on-change=true ..) - The submit

CForms.process(formContext)

2006-03-17 Thread Gunter D'Hondt
Hi, How can I check which validation error or widget that is triggering a "false" after the process()-method. This becourse I've got a form which returns an invalid process() but I cannot figure out which widget that is causing this (all required fields are filled in, all datatypes are correct

Re: Complex XPATH expression

2006-03-17 Thread Nick Nagels
You could try this... Sincerely, Nick Nagels IT Specialist @ KULeuven for EuroGenTest Tel. +0032 16 33 01 43 Herestraat 49 bus 602 B-3000 Leuven MSN Messenger: [EMAIL PROTECTED] Oleg Konovalov wrote: Hi, I am trying to do an enhancement to Cocoon 2.0/XSLT1.0 application: add a date valida

Locale problem in cocoon 2.1.7

2006-03-17 Thread baskar.ganesh
Hi All,   We are trying to migrate our application from cocoon2.1.5.1 to cocoon 2.1.7. We are facing a problem with the locale.   We have defined an entry for locale as    true false false false    And we are trying to de

RE: Cannot override general.field-required

2006-03-17 Thread Fernando.Matomira
I replaced the relative dir path with an absolute one and it's the same. Anyway, why isn't it even getting the default translation provided by the packaged CForms resources? The text presented is just the key. -Original Message- From: Ard Schrijvers [mailto:[EMAIL PROTECTED] Sent: Friday

Complex XPATH expression

2006-03-17 Thread Oleg Konovalov
Hi, I am trying to do an enhancement to Cocoon 2.0/XSLT1.0 application: add a date validation of Excel cells (named Start_Date) in SQLTransformer, so if a Type of that cell is not a DATE, insert that row into Error table (otherwise to the Main table). I tried: and: but neither worked (see

RE: Cannot override general.field-required

2006-03-17 Thread Ard Schrijvers
it is telling you where it is looking : location=resources/translation Probably it just cannot find this location? Try for the moment to hardcode the exact location on your machine. See if that works -- Hippo Oosteinde 11 1017WT Amsterdam The Netherlands Tel +31 (0)20 5224466

Re: Cannot override general.field-required

2006-03-17 Thread Fernando D. Mato Mira
I renamed it in both places because I was afraid it was calling the standard transformer. Anyway, I got confused looking at the patched web.xml file. It was using log4j. But the log file does not tell me much: 2006-03-17 13:46:12.383 DEBUG sitemap.transformer.i18n (guam:1/p

RE: Cannot override general.field-required

2006-03-17 Thread Jasha Joachimsthal
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: vrijdag 17 maart 2006 13:43 > To: users@cocoon.apache.org > Subject: RE: Cannot override general.field-required > > > I messed up with the copy paste, it's complaining about lots of > categories, > includin

RE: Cannot override general.field-required

2006-03-17 Thread Fernando.Matomira
I messed up with the copy paste, it's complaining about lots of categories, including sitemap.transformer.i18n -Original Message- From: Ard Schrijvers [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 1:34 PM To: users@cocoon.apache.org Subject: RE: Cannot override general.field-requ

RE: Cannot override general.field-required

2006-03-17 Thread Ard Schrijvers
>There's no log file produced. In the console I see: >PoolThread-4/LoggerSwitch.SwitchingLogger: Logger for category >sitemap.serializer.html not defined in configuration. New Logger created >and returned Well, it is comlaining about another logger that is not defined (sitemap.serializer.html)

Re: Cannot override general.field-required

2006-03-17 Thread Fernando D. Mato Mira
sitemap: src="org.apache.cocoon.generation.JXTemplateGenerator" label="content" logger="sitemap.generator.jx"/> logger="sitemap.transformer.i18n" src="org.apache.cocoon.transformation.I18nTransformer"> resource

Re: Cannot override general.field-required

2006-03-17 Thread Simone Gianni
Hi Fernando, I18n transformer supports different bundles. That means that you can have different "root files" (each one then having it's localized versions) containing keys, and eventually even the same keys, and then specify in the i18n:text which boundle (again, not language, root bundle) to

Implementing a portlet using Cocoon

2006-03-17 Thread Goetzmann Bertrand
Hello, I search some documentation for the implementation of a portlet (JSR-168) using Cocoon. It seems the Cocoon's CocoonPortlet class exists fot that, and I would happy to find information and example in order to deploy a CocoonPortlet in an compliant portlet container like Stringbeans for exam

RE: Cannot override general.field-required

2006-03-17 Thread Ard Schrijvers
can you mail your logkit.xconf and the sitemap part where you declare your i18n transformer? > > There's no log file produced. In the console I see: > > PoolThread-4/LoggerSwitch.SwitchingLogger: Logger for category > sitemap.serializer.html not defined in configuration. New > Logger crea

Re: Cannot override general.field-required

2006-03-17 Thread Fernando D. Mato Mira
There's no log file produced. In the console I see: PoolThread-4/LoggerSwitch.SwitchingLogger: Logger for category sitemap.serializer.html not defined in configuration. New Logger created and returned Thanks Ard Schrijvers wrote: I don't think guessing is the way to go when something does n

RE: Cannot override general.field-required

2006-03-17 Thread Jasha Joachimsthal
> -Original Message- > From: Jasha Joachimsthal > Sent: vrijdag 17 maart 2006 10:05 > To: users@cocoon.apache.org > Subject: RE: Cannot override general.field-required > > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] > > Sent: vrijdag 17 maa

RE: Cannot override general.field-required

2006-03-17 Thread Ard Schrijvers
> Restart cocoon, do the request again, and look in the WEB-INF > under logs folder in i18n.log: I know I had your problem > before, and I don't know how I fixed it, but just make sure > you know how to debug your cocoon app and you will find the > solution (which you will probably will forge

RE: Cannot override general.field-required

2006-03-17 Thread Ard Schrijvers
I don't think guessing is the way to go when something does not work: Make sure you find out what is going wrong through logs: So, add to your i18n:transformer a logger, for example like: Go to your logkit.xconf Add in targets ${context-root}/WEB-INF/logs/i18n.log %23.

Re: Running Ant from Cocoon Action

2006-03-17 Thread Upayavira
Pasha Minallah wrote: > Hi, > > I'm trying to run Ant 1.6.2 from a Cocoon 2.1.7 Action. I've added ant.jar > and ant-launcher.jar to WEB-INF/lib. > > Using org.apache.tools.ant.launch.Launcher in a standalone test case outside > of cocoon works fine. It gives me a ClassCastException when I tr

RE: Cannot override general.field-required

2006-03-17 Thread Jasha Joachimsthal
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: vrijdag 17 maart 2006 9:36 > To: users@cocoon.apache.org > Subject: RE: Cannot override general.field-required > > > With a different name it still doesn't work. > > -Original Message- > From: Jas

RE: Cannot override general.field-required

2006-03-17 Thread Fernando.Matomira
With a different name it still doesn't work. -Original Message- From: Jasha Joachimsthal [mailto:[EMAIL PROTECTED] Sent: Thursday, March 16, 2006 5:10 PM To: users@cocoon.apache.org Subject: RE: Cannot override general.field-required It may sound weird but I get the same error when I put

Running Ant from Cocoon Action

2006-03-17 Thread Pasha Minallah
Hi, I'm trying to run Ant 1.6.2 from a Cocoon 2.1.7 Action. I've added ant.jar and ant-launcher.jar to WEB-INF/lib. Using org.apache.tools.ant.launch.Launcher in a standalone test case outside of cocoon works fine. It gives me a ClassCastException when I try to use the same code inside a coc