field focus

2004-07-29 Thread magic
How can I control field's focus in Cform, when I use on-value-changed.Can someone help me? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Need help w/ noClassDefFoundError

2004-07-29 Thread John L. Webber
Hi Mark, I would guess that that's an internal Sun class not distributed with every JDK version. Googling for JPEGImageDecoderImpl shows a few hits, mostly on Linux JDKs. John Mark Lundquist wrote: Hi, When I try to use the ImageReader, I get java.lang.NoClassDefFoundError at

Re: map:redirect-to...

2004-07-29 Thread John L. Webber
Hi Sonny, The only other thing I can suggest trying is to reproduce the bug with an alternate matcher, using different redirect resources and a different action. If the bug doesn't happen then, try swapping in your actual resources one at a time, and then your action. Something like: map:match

Re: Need help w/ noClassDefFoundError

2004-07-29 Thread Upayavira
John L. Webber wrote: Hi Mark, I would guess that that's an internal Sun class not distributed with every JDK version. Googling for JPEGImageDecoderImpl shows a few hits, mostly on Linux JDKs. Are you running your JVM in headless mode? Otherwise AWT won't work. Start your JVM with

xml validation

2004-07-29 Thread George Singer
Is it possible to validate an XML document using a DTD / W3C Schema (for development work only) ? If so can anyone give a simple example regards GeorgeS

Re: Woody binding: save/load-form not triggered

2004-07-29 Thread Bruno Dumon
On Wed, 2004-07-28 at 10:38, Gunter D'Hondt wrote: I've got the following binding definition but the save-form and load-form is never triggered (or is doesn't have any effect anyway): bnd:value id=field1 path=field1/value bnd:on-update bnd:javascript id=field1

Problem using an External Javascript file: SOLVED !

2004-07-29 Thread George Singer
The xsl below never managed to get to the external script add.js The reason why .. a sitemap error. The pattern following the !--some more redirections -- comment was the problem, as it came BEFORE the css / js stuff. The wildcard forced cocoon to load index no matter what! So it was an

Re: NullPointerException running Cocoon 2.1.4 w/ Tomcat

2004-07-29 Thread Bruno Dumon
On Wed, 2004-07-28 at 15:38, Brent Johnson wrote: I'm running a production site using Tomcat 5.0.18 with Cocoon 2.1.4. In the past, after some period of time (around a month or more) the site would start returning a blank page. I then upped all the pool sizes in cocoon.xconf, upped the

Re: forms documentation

2004-07-29 Thread Bruno Dumon
On Thu, 2004-07-29 at 01:47, Phil Snowdon wrote: I'm putting together a large project that uses the cocoon forms with a significant amount of flowscript. Is there any documentation for the Java/Javasctipt API? I've gone through all the samples, and also gone through the source code, but

Re: How can I extract values from XML within an Action?

2004-07-29 Thread Olivier Billard
Hi Jeff, The source resolving mechanism is for you :). SourceResolver resolver = null; Source source = null; try { resolver = (SourceResolver) manager.lookup(SourceResolver.ROLE); processor = (XPathProcessor) manager.lookup(XPathProcessor.ROLE); source =

SOAP Server in Cocoon

2004-07-29 Thread Alexei Neizvestny
Hi, Is there a better way to implement a SOAP-based web service in Cocoon but using AxisRPCRouter? What does not suit me is the need to reissue HTTP requests from the web service implementation to Cocoon server located within the same web application. Is it possible to make such interaction

Re: Selection-list: Java: number of items

2004-07-29 Thread Bruno Dumon
On Thu, 2004-07-29 at 07:09, Scott Yeadon wrote: Hi, Is there a way of determining how many items are in a selection-list widget via Java? I have list that is sourced from a cocoon pipeline, the number of items then governs the initial size of a repeater so I need to be able to get the

Re: xml validation

2004-07-29 Thread Olivier Billard
Hi George, This is more a general XML parser question. You'll find what you want here : http://xml.apache.org/xerces2-j/ HTH, -- Olivier Billard George Singer wrote: Is it possible to validate an XML document using a DTD / W3C Schema (for development work only) ? If so can anyone give a simple

Re: Woody binding: save/load-form not triggered

2004-07-29 Thread Gunter D'Hondt
I've removed the value binding and just put a _javascript_-binding inside my repeater but still no action is triggered (only the other value bindings are logging). I've got other bindings where the _javascript_ inside the value binding does work; like this one: bnd:value id=name

binding twice

2004-07-29 Thread Gunter D'Hondt
Hi, I've got a strange problem with repeater binding. I'm doing the following: this.binding.loadFormFromModel(form, doc); // no changes are made to the form this.binding.saveFormToModel(form, doc); // no problem here (all values are correctly bind back) // save back doc to webservice // ... //

RE: xml validation

2004-07-29 Thread George Singer
Sorry, I meant is it possible to validate an XML document using a DTD / W3C Schema in COCOON * (for development work only) ? If so can anyone give a simple example regards georges winmail.dat- To unsubscribe,

Re: xml validation

2004-07-29 Thread Olivier Billard
George Singer wrote: Sorry, I meant is it possible to validate an XML document using a DTD / W3C Schema in COCOON * But Cocoon uses Java :) More precisely, if you want to validate a pipeline, [1] is for you. But in java code (Action, flowscript, and so on), the other link is valid [1]

RE: xml validation

2004-07-29 Thread David Crossley
George Singer wrote: Sorry, I meant is it possible to validate an XML document using a DTD / W3C Schema in COCOON * (for development work only) ? If so can anyone give a simple example Cocoon is not an xml validation system. You should use external validation tools. In

Re: Any convenient way to embed external pages?

2004-07-29 Thread taabpr
Jan Hoskens wrote: To solve the first problem use the Web Service proxy generator in the Proxy block: map:generate type=wsproxy src= map:parameter name=wsproxy-method value=POST/ /map:generate Isn't it only for xml content? Tom

Re: Woody binding: save/load-form not triggered

2004-07-29 Thread Bruno Dumon
On Thu, 2004-07-29 at 10:37, Gunter D'Hondt wrote: I've removed the value binding and just put a javascript-binding inside my repeater but still no action is triggered (only the other value bindings are logging). I've got other bindings where the javascript inside the value binding does work;

Re: Woody binding: save/load-form not triggered

2004-07-29 Thread Gunter D'Hondt
Consider this issue solved; apparently if value binding and _javascript_ binding is performed on the same formfield (or binding field) then a subnode is made; so the result is: customername customername.../customername /customername Regards, Gunter Gunter D'Hondt [EMAIL PROTECTED]

Re: binding twice

2004-07-29 Thread Marc Portier
Gunter D'Hondt wrote: Hi, I've got a strange problem with repeater binding. I'm doing the following: why do you find this to be an error? // the following error occurs: InsertNodeJXPathBinding: done registered factory for inserting node -- InsertNodeJXPathBinding [for nested template]

Re: binding twice

2004-07-29 Thread Gunter D'Hondt
Sorry forgot to copy the exception: org.apache.commons.jxpath.JXPathException: Exception trying to create xpath node[1]; Factory could not create a child node for path: /data/Set[1]/node[1] The other was indeed the binding logging; but just don't get why the binding wants to insert a new node

out of memory on build

2004-07-29 Thread Robin Wyles
I am receiving out of memory errors when I try and build the release version of Cocoon 2.1.5, details are as follows: OS: Redhat 7.3 RAM: 512mb (approx 400mb free) JDK: 1.4.0_01 I have tried altering the -Xms and -Xmx (lowering -Xmx to be within my free memory) in build.sh, but it makes no

Re: Cforms, Binding Cross-Referenced data

2004-07-29 Thread Timur Izhbulatov
Ben Pope (): Hi, I don't seem to be able to get my head around binding cross-referenced data I purpose you to try this approach. Use xinclude (or cinclude) transformer: rooms room id=0 nameLounge/name xi:include href=#xpointer(/project/people/person[2])/

multiplevalue field : get not selected values

2004-07-29 Thread Stephane Delort
Hi, I have 2 selection lists. one is static and the other dynamic. Actually, the users make his choices in the first one and then, after clicking on a action-button the secon list is updated. But it's also possible that the user changes his choices on the first one and submit the form. this way

Cocoon 2.0.4 with Tomcat 5.0.27

2004-07-29 Thread Laoise Murphy
Title: Cocoon 2.0.4 with Tomcat 5.0.27 Hi, I couldn't find any instructions for installing cocoon 2.0.4 with Tomcat version 5.x so I followed the same instructions as Tomcat 4.0.3. My war unpacks ok and the sitemap .java and .class files are generated OK. However, when I try to open a

[BUG?] cinclude:cached-include doesn't work?

2004-07-29 Thread taabpr
Hi all, I try to use cinclude:cached-include without a luck - content is not cached. Cocoon-2.1.5 in sitemap: map:match pattern=test.xml map:generate type=file src=testxml/ map:transform type=cinclude map:parameter name=expires value=60/

Re: Any convenient way to embed external pages?

2004-07-29 Thread Jan Hoskens
You're right, you can use it on any url but it does need valid xml as response. Kind Regards, Jan taabpr wrote: Jan Hoskens wrote: To solve the first problem use the Web Service proxy generator in the Proxy block: map:generate type=wsproxy src= map:parameter name=wsproxy-method

Re: cocoon-gt;pgsql : no suitable driver exception

2004-07-29 Thread Piotr Jabczyski
hi, and thanks for intentions to help me Those chars (3D) what you asked for don't exists in my sitemap, they arrived during copy/paste opperation from my text editor, I don't know why. I'm enclosing stacktrace, as you asked. Best regards Piotr Jabczyski hi Poitr: Can you post the full

How get dom object and transform it by xslt in xsp?

2004-07-29 Thread Vlad Aliullov
Hi All! i have XML markup String in XSP page. I need to transform it by xslt and get string type result in same or other xsp action. How i can do it more simple? Thanks for your help - To unsubscribe, e-mail: [EMAIL

Woody Netscape 4.7x

2004-07-29 Thread Gunter D'Hondt
Has anybody used Woody submitwidgets yet and got it working under Netscape 4.7x? Only thing that I do is submit my form (post) thru a wd:action widget and process it and I'm getting this issue out of it: java.lang.IllegalStateException: SubmitWidget can only be set once. at

Re:[solved] out of memory on build

2004-07-29 Thread Robin Wyles
I upgraded to the latest Java SDK and it solved this, but it would be interesting to know why it was happening... On 29 Jul 2004, at 13:16, Robin Wyles wrote: I am receiving out of memory errors when I try and build the release version of Cocoon 2.1.5, details are as follows: OS: Redhat 7.3

Troubles with XPathDirectoryGenerator

2004-07-29 Thread Gerald Aichholzer
Hi all, I'm trying to use XPathDirectoryGenerator but as soon as I insert a xslt-transformer into the pipeline I get a runtime error. I have already consulted the mailing list archive and other cocoon related sites - but without success. I'm using cocoon 2.1.5 under Windows XP and I start it via

enctype=multipart/form-data = no req-prarameters

2004-07-29 Thread Armaz Mellati
Hi I have a big problem concerning submitting form-data when using POST and enctype=multipart/form-data. I have a simple form with method=post and enctype=multipart/form-data. But when I submit the form data, Cocoon receives no request parameters. I can se that clearly by looking at the log-files

Pb with eXist version (stylesheet XMLDB and xUpdate)

2004-07-29 Thread BASLE Florent
Hi all I was previsouly running under Cocoon 2.1.2 and eXist 0.9.2 and all worked fine. I have recently change the 2 versions with cocoon2.1.5 stable andeXist1.0b1. In my application, I usetwo methods to update my eXist database. xUpdate for some functions, and xmldb in XSP for the others. With

Re: [CForm] how to setValue for a field of selection list?

2004-07-29 Thread Christina
Scott, I used the widget.setValue(selectedValue), but what's shown in the form is still the default value. this setValue works for other fields, but obviously it doesn't work for fields with a selection list Thanks Christina - Original Message - From: Scott Yeadon [EMAIL PROTECTED]

Re: enctype=multipart/form-data = no req-prarameters

2004-07-29 Thread Bruno Dumon
On Thu, 2004-07-29 at 16:22, Armaz Mellati wrote: Hi I have a big problem concerning submitting form-data when using POST and enctype=multipart/form-data. I have a simple form with method=post and enctype=multipart/form-data. But when I submit the form data, Cocoon receives no request

Re: Listeners: passing and obtaining parameters

2004-07-29 Thread Bruno Dumon
On Thu, 2004-07-29 at 01:18, Scott Yeadon wrote: Hi, I have written a Listener in java, but I want to make it more generic and pass parameters to it. Am I able to pass parameters to the Listener class from the java element - the examples indicate java is an empty element with a single

JXPathMetaModule, how to?

2004-07-29 Thread Tuomo L
Hi, I need to obtain a part of a value of a request parameter (a string before a '#'-character), and use it in a sitemap. JXPathMetaModule should do the job, I think. But I cannot find any examples of configuration or sitemap usage for this. Anyone? Thanks, Tuomo

RE: Downloading large files is not consistent

2004-07-29 Thread Schultz, Gary - COMM
I followed the information contained in the wiki page and it now works. Thanks for the assistance. Gary T. Schultz Web Technical Administrator / GIS Coordinator Wisconsin Department of Commerce 6th Floor P.O. Box 7970 Madison, WI 1-608-266-1283 -Original Message- From: Litrik De Roy

Re: Cocoon 2.0.4 with Tomcat 5.0.27

2004-07-29 Thread Jorg Heymans
I have 2.0.5dev running with tomcat 5.x. Did you take care of the endorsed lib problem (search wiki) Laoise Murphy wrote: Hi, I couldn't find any instructions for installing cocoon 2.0.4 with Tomcat version 5.x so I followed the same instructions as Tomcat 4.0.3. My war unpacks ok and the

[esql] xsp:logic doesn't work inside esql:query?

2004-07-29 Thread Christina
I tried to use if () inside esql:query like this: esql:query xsp:logic if (true) { esql:parameter.../esql:parameter } /xsp:logic /esql:query but every time there is error message on this "if", it is ok if I delete everything before and after the nested xsp:logic tag. So

Authentication and matchers

2004-07-29 Thread Ulf Sahlin
Hi! I'm having some trouble with authentication and pattern matchers. Is there some reason as to why this works: map:match pattern=customer/* map:act type=auth-protect map:parameter name=handler value=customerhandler/ map:match pattern=customer/overview.* map:call

Re: [esql] xsp:logic doesn't work inside esql:query?

2004-07-29 Thread Jeff Jones
Christina, I can't explain why that doesn't work, but I've never tried it. You could do it this way, though: esql:query SELECT foo FROM bar WHERE baz = esql:parameterxsp:expr( (test) ? quux : blort.someMethod() )/xsp:expr/esql:parameter /esql:query In other words, replace the if (test)

Re: NullPointerException running Cocoon 2.1.4 w/ Tomcat

2004-07-29 Thread Brent Johnson
Isn't standard out redirected in Tomcat to TOMCAT_HOME/logs/catalina.out? I may be wrong about this. I did check that file just in case and I'm not seeing much of anything. One thing I see there are some repeated BindingExceptions which is odd. But since this is stdout there are no timestamps

Re: [esql] xsp:logic doesn't work inside esql:query?

2004-07-29 Thread Brent Johnson
I'm not sure if its allowed or not. But I generally do my Java logic prior to the esql tags. For example.. instead of what you posted I usually do something like: page xsp:logic String newvar = null; if (myvar) { newvar = thisval; } else {

Re: map:redirect-to...

2004-07-29 Thread Sonny Sukumar
Hey John, Thanks for the advice. I didn't get it to work, but I *did* spend a few hours on it and discovered something interesting. Here's the steps I followed: 1.) I first introduced new internal redirects, commenting out the old ones: map:match pattern=secure/doTest map:act

Re: [CForm] how to setValue for a field of selection list?

2004-07-29 Thread Scott Yeadon
Christina, I suspect the problem could be that you need to force a redisplay of the page for the value to be shown - in all the instances I set selection list values, the form always gets re-displayed. Depending on your application you could do this via an action or specifying

RE: [solved] out of memory on build - Monitory Garbage Collection

2004-07-29 Thread Gordon Anderson
Hi Robin I have upgraded to JDK1.4.2_05 (on Linux) and at first glance I am noticing improved performance. The problem is most likely in the garbage collection, to monitor this add the following parameters to CATALINA_OPTS -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps

RE: Cforms, Binding Cross-Referenced data

2004-07-29 Thread Ben Pope
Hi, I still don't seem to be able to get the binding to work, or understand how it is supposed to work. My data now looks like this: ?xml version=1.0 encoding=UTF-8? project xmlns:xi=http://www.w3.org/2001/XInclude; people person id=0 nameMe/name /person

Re: [esql] xsp:logic doesn't work inside esql:query?

2004-07-29 Thread Christina
Hi, Jeff, that is a good idea. But what if I have another for loop inside of the if? What I really want to do is take a list from the request attribute and query every entry in that list. also i don't know the length of the list beforehand. so I need an if for the first entry (encase

Re: [CForm] how to setValue for a field of selection list?

2004-07-29 Thread Christina
Hi, Scott, var form new Form(FormDefinitionURI); var widget = form.lookupWidget(mySelectionListFieldWidget); widget.setValue(InitialSelectedValue); form.showForm(my-display-pipeline); does this work for you? I did exactly the samething, but it doesn't work. Thanks! - Original Message

Re: [CForm] how to setValue for a field of selection list?

2004-07-29 Thread Scott Yeadon
Yes, works fine. The entire flowscript file is as follows: cocoon.load(resource://org/apache/cocoon/forms/flow/javascript/Form.js); function batchUpload() { var formDefinitionURI = cocoon.parameters[form-definition]; var form = new Form(formDefinitionURI); var loadTypeWidget =

Re: [esql] xsp:logic doesn't work inside esql:query?

2004-07-29 Thread Brent Johnson
Yes - try running your loop outside the esql tags (as I suggested before). Build your SQL statement as a String then just do: esql:queryxsp:exprmySqlStatement/xsp:expr/esql:query Just a suggestion. - Brent On Thu, 29 Jul 2004 21:03:04 -0700, Christina [EMAIL PROTECTED] wrote: Hi, Jeff,

Re: [esql] xsp:logic doesn't work inside esql:query?

2004-07-29 Thread Christina
Brent, what if there is some special character inside the string, for example some or ', if I just wrap them up as a string, error might happens during the query, you know mysql might throw an error if your query is select user_id from users where user_name=; - Original Message - From: