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]
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
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
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
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
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
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
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
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
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 =
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
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
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
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
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
// ...
//
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,
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]
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
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
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;
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]
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]
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
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
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])/
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
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
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/
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
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
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
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
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
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
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
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
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]
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
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
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
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
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
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
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
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)
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
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 {
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
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
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
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
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
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
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 =
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,
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:
56 matches
Mail list logo