I am using Xindice as a simple content management system and wish to bind my forms to
this database, which I have done
successfully. However, using the binding framework this only works for UPDATEs (i.e.
the form data already exists).
I cannot get it to work for INSERT's (i.e. add a new entry b
How can I generate an XML version of the bean data held in a form? Do I use the JX
generator, and if so, is there a
generic template to 'echo' the contents of a bean?
Many thanks,
Paul
-
To unsubscribe, e-mail: [EMAIL PROTECTE
> Paul Bowler wrote:
> > I've got form binding working nicely for existing form documents in my XML
> > database (thanks for all your help).
> > However, this only works with data that alrady exists within the database. If I
> > try to use it for a new form
ins
27;model' for a new form.
Many thanks,
Paul.
--
Paul Bowler
Aventix Associates Ltd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
form.createBinding(bindingURI);
form.load(doc);
form.showForm(formURI);
form.save(doc);
saveDocument(doc, dataURI);
}
I think I need to replace the loadDocument() call but don't know what with.
> Er. I don't quite understand your problem. The xmldb source is writable,
> which means that you can bind to a source that is in your XMLDB.
>
> Then if you have your bound object as a DOM, you can say
> cocoon.sendPage("your-url", {myDom: dom}); and then in JXT say #{myDom}
> should show the
found (the XML binding exmaple in the forms
block) uses some convaluted java
script to store the XML to the filesystem, bypassing any sitemap pipeline.
Any ideas?
Paul.
--
Paul Bowler
Aventix Associates Ltd
-
To unsubscribe
rom a remote URL for a specified period of time.
Has anyone any idea how I can
do this?
Paul.
--
Paul Bowler
Aventix Associates Ltd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Does anyone have a newsgroup module written in cocoon that they are willing to share?
I need this for an internal
project where it doesn't have to be all-singing-all-dancing, but simply functional.
Many thanks,
Paul.
--
Paul Bowler
Aventix Associate
ere are no instructions (as far as I can see) on
the process of getting changes
approved and commited.
Can anyone shed some light on this?
Paul
--
Paul Bowler
Aventix Associates Ltd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
read up on the servlet specification to clarify the servlet lifecycle
methods and think about the
problem in a different way.
Regards,
Paul.
--
Paul Bowler
Aventix Associates Ltd
-- Original Message ---
From: Jorg Heymans <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Thu
rry I can't help with the xmldb transformer, but I feel the xmldb protocol is
much more powerful, and I hope
this simple example helps you.
Paul.
--
Paul Bowler
Aventix Associates Ltd
-
To unsubscribe, e-mail: [EMAIL PROTEC
.
Regards,
Paull.
--
Paul Bowler
Aventix Associates Ltd
-- Original Message ---
From: "Katharina Weimer" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Thu, 30 Oct 2003 11:31:23 +0100 (MET)
Subject: Re: Connecting Cocoon 2.1 with eXist 0.9.2 ???
> You
.
Regards,
Paul.
--
Paul Bowler
Aventix Associates Ltd
-- Original Message ---
From: "Katharina Weimer" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Sent: Thu, 30 Oct 2003 10:19:46 +0100 (MET)
Subject: Connecting Coco
Has anyone written a newsgroup-type forum module for Cocoon that they are willing to
share?
I need something like this for a project I am working on and would not wish to waste
time writing this from scratch if
it is already out there.
Many thanks,
Paul.
--
Paul Bowler
Aventix Associates
Comment out (or delete) the deli component references in WEB-INF/cocoon.xconf (and
possibly WEB-INF/web.xml).
Regards,
Paul.
--
Paul Bowler
Aventix Associates Ltd
-- Original Message ---
From: "iyy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tue
ll
passes back another
implementation of ContextManager? Your code will fall over. Mine won't.
You are ignoring one of the fundamental rules of OO. Do so at your own peril.
Paul.
--
Paul Bowler
Aventix Associates Ltd
-- Original Message ---
From: "iyy" <[E
return null;
}
DocumentFragment df = context.getXML("/authentication");
// User has logged on
NodeList nl = df.getChildNodes();
... You code goes here
}
}
--
...forgot to mention...
To get your NodeList object you can do:
DocumentFragment frag = sc.getXML("/authentication");
NodeList nl = frag.getChildNodes();
I vaguely remember the getNodeList() method was removed from or deprecated in
SessionContext.
Paul.
--
Paul Bowler
Aventix Asso
I'me trying to store a value from a url parameter in the users' session using the
session output module but I cannot
find an example of a sitemap that does this.
Can anyone put me out of my misery?
Paul.
--
Paul Bowler
Aventix Asso
I remember having problems with this.
A snippet of how I now do this is here:
ContextManager cm = (ContextManager) this.manager.lookup(ContextManager.ROLE);
SessionContext sc = cm.getContext("authentication");
I hope this helps.
Paul.
--
Paul Bowler
Aventix Associates Ltd
-
rds,
Paul.
--
Paul Bowler
Aventix Associates Ltd
-- Original Message ---
From: Geoff Howard <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Tue, 21 Oct 2003 10:40:51 -0400
Subject: Re: File uploads not working on Linux
> Paul Bowler wrote:
> > After a little mor
files I am trying to upload.
Can anyone shed some light on why this is failing, and why the rather bazaar 'Cannot
find server' error message is
displayed.
I am at my wits end!
Thanks,
Paul.
--
Paul Bowler
Aventix Associates Ltd
-- Original Message ---
From: Geoff How
Geoff,
The sample file upload works fine. There is nothing different between the XP and Linux
configurations and the enctype
is correct.
I'll up the debug level as you suggest.
Thanks.
--
Paul Bowler
Aventix Associates Ltd
-- Original Message ---
From: Geoff Howard &l
Yep. The configurations are identical as they come from the same build process.
Paul.
P.S. I am using cocoon 2.1.
--
Paul Bowler
Aventix Associates Ltd
-- Original Message ---
From: Geoff Howard <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Tue, 21 Oct 2003 08:13:53
= ObjectModelHelper.getRequest(objectModel);
Part part = (Part) request.get("filename");
On XP the 'Part' object is gathered correctly. On Linux it is null.
Any ideas?
Thanks.
--
Paul Bowler
Aventix Associates Ltd
-
To
Stephen,
Thanks for this. There was indeed an exception in the constructor.
Regards,
Paul.
--
Paul Bowler
Aventix Associates Ltd
-- Original Message ---
From: Stephan Michels <[EMAIL PROTECTED]>
To: cocoon-users <[EMAIL PROTECTED]>
Sent: Fri, 10 Oct 2003 12:37:20
f generator for role 'eid' failed.:
org.apache.avalon.framework.component.ComponentException: generators:
ComponentSelector could not find the component
for hint [eid] (key [eid])
All my other generators work fine and they are written no differently to this. I'm
perplexed!
Any i
I do now, and it's working fine.
Many thanks for you kind help.
Paul.
On Wed, 3 Sep 2003 14:37:09 +0200, Carsten Ziegeler wrote
> The name is correct. Do you have the auth-protect action in your pipeline?
>
> Carsten
>
> > -Original Message-
> > Fro
OK, now I have:
ContextManager cm = (ContextManager) this.manager.lookup(ContextManager.ROLE);
SessionContext sc = cm.getContext("authentication");
My session context (after logging on) is always null. What should the context name be?
I have tried many different
things and they are all null. A
sc = cm.getContext(CONTEXT_NAME);
>
> // use the context here
>
> } finally {
> manager.release((Component)cm);
> }
>
> This is really all I can provide you, you have to figure out the rest.
>
> Carsten
>
> Paul Bowler wrote:
> >
> > I
changed version is in Cocoon, in the SessionPreTransformer.java.
>
> Carsten
>
> > -Original Message-
> > From: Paul Bowler [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 03, 2003 11:03 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: No "
his component from the component manager,
> get the context from the context manager and can then stream
> the contents.
>
> Carsten
>
> > -Original Message-
> > From: Paul Bowler [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 03, 2003 10:50 AM
&
Without further information, I can only say that it should work that way.
>
> You can have a look at the sample of the authentication block, the protected
> pipeline there uses the session transformer to display the whole
> authentication
> contex
I'm trying to get the xml block back from a successful user
authenticated session object using the
SessionAttributeGenerator.
What is the name of the session attribute that this block is stoed under. There is
nothing in the documentation and
the obvious names of 'root', 'authentication' and '
In my sitemap I have (for user authentication):
The generator is the standard RequestParameter generator which is then transformed
using my own component (to
authenticate via our proprietary database).
The generator works fine on its own, and the transformer works
36 matches
Mail list logo