Re: webapp tutorial using cforms/flow

2005-12-06 Thread Victoria Vitaver

[EMAIL PROTECTED] wrote:

Thats right -  I would like to aggregate menu content with CForm content and style them into 
a single page. 


Franco
 


Ok, I have an example of that in my work. Code can be seen bellow.

My third match triggers the flow script, from which the CForm is 
initialised. In the flowscript I  do 'call-display-pipeline' to display 
my form.   As you can see, that gets caught by the second match which 
aggregates my page together (header footer & everything in between), the 
second  match aggregates the 'CFORM' produced by the call to the first 
match "display-pipeline" (by doing)


1. 
   
   
   value="/cms/{page-envelope:publication-id}/live"/>

   
   
   

2. 
   
 
 
 src="cocoon://navigation/{page-envelope:publication-id}/live/tabs/index.xml"/>

 
   
   
 
 src="content/{page-envelope:area}/footer/index_en.xml"/>

 
   
   
   
   

3.
  
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RTF Generator ?

2005-12-06 Thread Bertrand Delacretaz

Le 7 déc. 05, à 05:31, Markus Kaupp a écrit :


Is anyone aware of a cocoon RTF generator ?  (… and where to find it).


The jfor block allows Cocoon to produce RTF.

If you're looking for an RTF-to-XML converter, no, we don't have it 
currently.


-Bertrand


smime.p7s
Description: S/MIME cryptographic signature


Re: webapp tutorial using cforms/flow

2005-12-06 Thread Bertrand Delacretaz

Le 6 déc. 05, à 23:00, <[EMAIL PROTECTED]> a écrit :

Is there an example/sample similar to the webapp tutorial but using 
cforms/flow instead of xsp? -ie aggregating menu+content(cforms)


There's the bricks-cms example app, which uses cforms and flow, see 
wiki.apache.org/cocoon/BricksCms


It's more than a simple sample, but might help you get an overview.

-Bertrand


smime.p7s
Description: S/MIME cryptographic signature


RTF Generator ?

2005-12-06 Thread Markus Kaupp








Is anyone aware of a cocoon RTF generator ?  (…
and where to find it).

So far I couldn’t find hints in FAQ or user
mail list. 

 

Thanky you,

Markus








JSP Compiler Classpath

2005-12-06 Thread Dustin N. Jenkins

Hello all,

I'm using Cocoon 2.1.7 with JDK 1.5_06 on Debian Linux.  I'm using JSPs 
to allow users to plug in they're own custom pages with the JSP 
Generator.  I can't seem to access my application's classes by importing 
them though.  The classpath used by the JSP isn't the one that Cocoon is 
using, is there a reason for this?  I've been searching for a while now 
and someone must have run into this before.  To make it work, I need to 
add the classes to my container's classpath, but there must be a way to 
use the same path as Cocoon in my JSPs isn't there?


Many thanks,
Dustin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: server startup

2005-12-06 Thread Upayavira
David wrote:
> I have been trying to find some information on how to speed up the start
> up of cocoon. I found how to speed up applications in it but not the
> start up.
> 
> The only thing I have found that helps is the obvious -- turning off
> blocks that are not needed.
> 
> Any one have some tips?
> 
> The reason I am trying to speed it up is because when I'm developing I
> constantly have to reload cocoon. The slow start up slows down development.

The art is to not restart Cocoon. There are various ways of achieving this.

The question though is: what are you doing that requires restarts? Java
coding?

Upayavira

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: webapp tutorial using cforms/flow

2005-12-06 Thread Franco.Pace
Thats right -  I would like to aggregate menu content with CForm content and 
style them into 
a single page. 

Franco

-Original Message-
From: Victoria Vitaver [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 7 December 2005 9:50
To: users@cocoon.apache.org
Subject: Re: webapp tutorial using cforms/flow


[EMAIL PROTECTED] wrote:

>I thought i had - In particular i looked at the petstore example. It has
>menus and content, but whenever it goes
>to the CForms screens the menus disappear. I have not found one CFORMS
>sample that includes menus. If anyone knows of
>one such sample I would be most grateful 
>
>  
>
Are you talking about 'aggregating' a cforms screen and a menu bar ? Or 
do you wish to make dynamic menus using cforms?

Vica

>Thanks,
>Franco
>  
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: webapp tutorial using cforms/flow

2005-12-06 Thread Victoria Vitaver

[EMAIL PROTECTED] wrote:


I thought i had - In particular i looked at the petstore example. It has
menus and content, but whenever it goes
to the CForms screens the menus disappear. I have not found one CFORMS
sample that includes menus. If anyone knows of
one such sample I would be most grateful 

 

Are you talking about 'aggregating' a cforms screen and a menu bar ? Or 
do you wish to make dynamic menus using cforms?


Vica


Thanks,
Franco
 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: webapp tutorial using cforms/flow

2005-12-06 Thread Franco.Pace
I thought i had - In particular i looked at the petstore example. It has
menus and content, but whenever it goes
to the CForms screens the menus disappear. I have not found one CFORMS
sample that includes menus. If anyone knows of
one such sample I would be most grateful 

Thanks,
Franco

-Original Message-
From: Torsten Curdt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 7 December 2005 9:36
To: users@cocoon.apache.org
Subject: Re: webapp tutorial using cforms/flow


> Is there an example/sample similar to the webapp tutorial but using  
> cforms/flow instead of xsp? -ie aggregating menu+content(cforms)

Have you had a look into the provided examples yet?

cheers
--
Torsten



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: webapp tutorial using cforms/flow

2005-12-06 Thread Torsten Curdt
Is there an example/sample similar to the webapp tutorial but using  
cforms/flow instead of xsp? -ie aggregating menu+content(cforms)


Have you had a look into the provided examples yet?

cheers
--
Torsten




PGP.sig
Description: This is a digitally signed message part


server startup

2005-12-06 Thread David
I have been trying to find some information on how to speed up the start 
up of cocoon. I found how to speed up applications in it but not the 
start up.


The only thing I have found that helps is the obvious -- turning off 
blocks that are not needed.


Any one have some tips?

The reason I am trying to speed it up is because when I'm developing I 
constantly have to reload cocoon. The slow start up slows down development.


Thanks,
David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



webapp tutorial using cforms/flow

2005-12-06 Thread Franco.Pace
Is there an example/sample similar to the webapp tutorial but using cforms/flow 
instead of xsp? -ie aggregating menu+content(cforms)

regards,
Franco

[EMAIL PROTECTED] . 
Franco Pace 
Senior Software Engineer 
Lawpoint 
Thomson Legal & Regulatory Limited (ABN 64 058 914 668) 
PH: 61 2 92394963 FAX: none 
EMAIL: [EMAIL PROTECTED] 
WEB: www.lawpoint.com.au www.thomson.com.au 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I create a context from a background task in cocoon?

2005-12-06 Thread Sylvain Wallez

Ard Schrijvers wrote:

Does anybody have experience with calling a pipeline from a background task 
resulting from an eventHandler?

So, on an event, a java class is executed which implements Contextualizable.

I am trying something like 


import org.apache.avalon.framework.context.Contextualizable;
import org.apache.avalon.framework.context.Context;
import org.apache.avalon.framework.context.ContextException;

implements Contextualizable, ...

private Context context;

public void contextualize(Context context) throws ContextException {
this.context = context;

}
PipelineUtil pipeUtil = new PipelineUtil();
try {
pipeUtil.contextualize(context);
pipeUtil.service(serviceManager);
pipeUtil.processToSAX(uri, null, somehandler);
} catch (Exception e) {
throw new CascadingRuntimeException("Cannot process pipeline from '" + uri + 
"'", e);
} finally {
pipeUtil.dispose();
}

Now, this does not work, because it does not have a context, since the class is 
not called from a sitemap but from an external event.

So, I tried instead of with the context, the SourceResolver, like

SourceResolver resolver = (SourceResolver) manager.lookup(SourceResolver.ROLE);

and then something like 
Source inputSource = resolver.resolveURI("cocoon://dasl/references/content/test/Passage.xml");


But, nothing happens, I suppose because the cocoon:// is only available when 
the call is initiated from a sitemap (or flow of course)

So, does anybody know how to solve this/solved this before?
  


Yes. Running a Cocoon pipeline in a background task requires to setup a 
"fake" environment so that the SourceResolver can do its job. You can 
achieve that either by using the scheduler (cron block) to fire a job 
immediately, or directly use the BackgroundEnvironment class that it 
uses under the hoods.


Sylvain

--
Sylvain WallezAnyware Technologies
http://bluxte.net http://www.anyware-tech.com
Apache Software Foundation Member Research & Technology Director


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CInclude POST (again)

2005-12-06 Thread Boisvert, Éric
find attached the source code, keep in mind that's I'm not a expert Java
programmer (I'm more on C# and Delphi).  The component has been designed to
send POST query to WFS (Web Feature Service) servers, which are typically
small XML Query versus potentially very large XML Responses.  This is an
issue in the code because the incoming XML is converted to a DOM and then to
a string (to fix a bug in DOM serializer that 'forgets' to serialize
namespaces), I must manually reinsert the namespaces declaration in the
incoming XML.  

I've added a bit more comments in the source code, for your either
documentation or comic relief.

I assume you are familliar with compiling+installing Cocoon components.
Also, this component is provided as is, and I cannot garantee it will
function properly under stress conditions.. So if your business it the
control Airplane traffic or controling a nuclear reactor, I suggest you have
this checked by a REAL java programmer. :P

Cheers

-Message d'origine-
De : Stewart, Gary [mailto:[EMAIL PROTECTED]
Envoyé : 6 décembre, 2005 11:42
À : users@cocoon.apache.org
Objet : RE: CInclude POST (again)




> -Original Message-
> From: Boisvert, Éric [mailto:[EMAIL PROTECTED]
> Sent: 06 December 2005 15:39
> To: users@cocoon.apache.org
> Subject: RE: CInclude POST (again)
> 
> 
> Gary.. I gave up with this cinclude/POST business  - lost an 
> incredible
> amount of time trying to make it work to no avail. I created my own
> component (as a transformer).  it throws whaterver xml it 
> gets to a remote
> server and send the response down the pipeline.
> 
> are you (or anyone) interested ?
> 
> Eric
>

I was just talking to someone about doing the same thing :). I'd be very
interested in a transformer that did a POST. I've replied to the thread
rather than you just to note interests on the mailing list (if there was
enough interests for it to be added to the build).

Thanks,

Gary 

*
The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only, If you 
have received this message in error or there are any problems, 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.
*


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



PostClient.java
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: CInclude POST (again)

2005-12-06 Thread Stewart, Gary


> -Original Message-
> From: Boisvert, Éric [mailto:[EMAIL PROTECTED]
> Sent: 06 December 2005 15:39
> To: users@cocoon.apache.org
> Subject: RE: CInclude POST (again)
> 
> 
> Gary.. I gave up with this cinclude/POST business  - lost an 
> incredible
> amount of time trying to make it work to no avail. I created my own
> component (as a transformer).  it throws whaterver xml it 
> gets to a remote
> server and send the response down the pipeline.
> 
> are you (or anyone) interested ?
> 
> Eric
>

I was just talking to someone about doing the same thing :). I'd be very 
interested in a transformer that did a POST. I've replied to the thread rather 
than you just to note interests on the mailing list (if there was enough 
interests for it to be added to the build).

Thanks,

Gary 

*
The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only, If you 
have received this message in error or there are any problems, 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.
*


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CInclude POST (again)

2005-12-06 Thread Boisvert, Éric
Gary.. I gave up with this cinclude/POST business  - lost an incredible
amount of time trying to make it work to no avail. I created my own
component (as a transformer).  it throws whaterver xml it gets to a remote
server and send the response down the pipeline.

are you (or anyone) interested ?

Eric

-Message d'origine-
De : Stewart, Gary [mailto:[EMAIL PROTECTED]
Envoyé : 6 décembre, 2005 08:31
À : users@cocoon.apache.org
Objet : CInclude POST (again)


Hi there, 

I'm still having problems getting CInclude POST in 2.1.8 to work. I've been
investigating a little further though and thought the extra information
might help. I've checked the server and the response works ok to another
system doing the post so it isn't at that end. My cinclude post looks
something like:


http://apache.org/cocoon/include/1.0";>
 
  http://10.231.27.63/sql_templates/
  
   
method
POST
   
  
  
   
text

 
   (/lsa:Address)
 

   
  



If I set ignoreError to true I get an empty root node () if it is
false I get:

org.xml.sax.SAXParseException: The markup in the document following the root
element must be well-formed.
context:/http://10.231.27.63/sql_templates/ - 1:37

which I'm not sure why it is appearing as a root node if it is. 

I've tried it on a fresh build and my slightly modified build (I thought
that might be what was causing issues but it doesn't seem to be the case). 

If anyone has seen 2.1.8 CInclude POST work that would be useful and any
suggestions on this problem would be greatly appreciated.

Thanks,

Gary

*
The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only, If you 
have received this message in error or there are any problems, 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.
*


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JMS block is installed but

2005-12-06 Thread Nicole Hochleiter
> JMS block is installed but jms client library not
> found. ***
> - For the jms block to work you must install and start
> a JMS server and place the client jar in WEB-INF/lib.
> - The default server, OpenJMS is configured in
> cocoon.xconf but is not bundled with Cocoon.

Hi,
this is normal. If you need to use JMS you need to follow the directions given
by the logfile.

Nicole


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How do I create a context from a background task in cocoon?

2005-12-06 Thread Ard Schrijvers
Does anybody have experience with calling a pipeline from a background task 
resulting from an eventHandler?

So, on an event, a java class is executed which implements Contextualizable.

I am trying something like 

import org.apache.avalon.framework.context.Contextualizable;
import org.apache.avalon.framework.context.Context;
import org.apache.avalon.framework.context.ContextException;

implements Contextualizable, ...

private Context context;

public void contextualize(Context context) throws ContextException {
this.context = context;

}
PipelineUtil pipeUtil = new PipelineUtil();
try {
pipeUtil.contextualize(context);
pipeUtil.service(serviceManager);
pipeUtil.processToSAX(uri, null, somehandler);
} catch (Exception e) {
throw new CascadingRuntimeException("Cannot process pipeline from '" + uri 
+ "'", e);
} finally {
pipeUtil.dispose();
}

Now, this does not work, because it does not have a context, since the class is 
not called from a sitemap but from an external event.

So, I tried instead of with the context, the SourceResolver, like

SourceResolver resolver = (SourceResolver) manager.lookup(SourceResolver.ROLE);

and then something like 
Source inputSource = 
resolver.resolveURI("cocoon://dasl/references/content/test/Passage.xml");

But, nothing happens, I suppose because the cocoon:// is only available when 
the call is initiated from a sitemap (or flow of course)

So, does anybody know how to solve this/solved this before? 

Thanks,

AS

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



CInclude POST (again)

2005-12-06 Thread Stewart, Gary
Hi there, 

I'm still having problems getting CInclude POST in 2.1.8 to work. I've been 
investigating a little further though and thought the extra information might 
help. I've checked the server and the response works ok to another system doing 
the post so it isn't at that end. My cinclude post looks something like:


http://apache.org/cocoon/include/1.0";>
 
  http://10.231.27.63/sql_templates/
  
   
method
POST
   
  
  
   
text

 
   (/lsa:Address)
 

   
  



If I set ignoreError to true I get an empty root node () if it is false 
I get:

org.xml.sax.SAXParseException: The markup in the document following the root 
element must be well-formed.
context:/http://10.231.27.63/sql_templates/ - 1:37

which I'm not sure why it is appearing as a root node if it is. 

I've tried it on a fresh build and my slightly modified build (I thought that 
might be what was causing issues but it doesn't seem to be the case). 

If anyone has seen 2.1.8 CInclude POST work that would be useful and any 
suggestions on this problem would be greatly appreciated.

Thanks,

Gary

*
The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only, If you 
have received this message in error or there are any problems, 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.
*


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to load form using request parameter

2005-12-06 Thread Peter Sparkes

Not the answer that you are looking for, but it may help.

I had the same problem and solved it by putting my users in a database 
and adapting the "Easy SQL database access" 
 sample in Cocoon 2.1.8 
samples/blocks/forms/


Peter Sparkes


Dear community,

I'm have a problem with making a form for editing an XML file using cform.
We have an XML file called users.xml which looks like this:

 
   ...
 
 
   ...
 
 ..


I succeeded in making an editable tabel, using de repeater widgets etc. But
what I want is making a form for editing one single user at the time / in
one screen..
Therefore I changed de model, template and binding XML file (removing
repeater items).
The probleem now is that always the user with id=1 is being loaded
(updating this one works fine by the way).
How can we load a user tag voor a specific user id, which value is in a
request Parameter ( ../user.flow?userid=2 )?

Wim Mosman



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CocoonQuartzJobScheduler

2005-12-06 Thread Borut Žagar [Email.si]
Thanks, it did the trick:

JobScheduler sched = (JobScheduler)
CocoonComponentManager.getSitemapComponentManager().lookup(JobScheduler.clas
s.getName());

StartProcessJob sq = new StartProcessJob();
Map jobData = new HashMap();
jobData.put("pcid", "3505");
jobData.put("initiatorId", "2488");
sched.addJob("job", sq, "*/30 * * * * ? *", false, null, jobData); 


Regards, B

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Giacomo Pati
Sent: Tuesday, December 06, 2005 8:57 AM
To: users@cocoon.apache.org
Subject: Re: CocoonQuartzJobScheduler

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Have a look at the o.a.c.components.cron.JobScheduler interface. You need to
get the implementation of that interface by use of the
ServiceManager/ComponentManager.

   JobScheduler js = serviceManager.lookup(JobScheduler.class.getName());

On Sat, 3 Dec 2005, B Z wrote:

> Date: Sat,  3 Dec 2005 10:38:42 +0100
> From: B Z <[EMAIL PROTECTED]>
> Reply-To: users@cocoon.apache.org
> To: users@cocoon.apache.org
> Subject: CocoonQuartzJobScheduler
> 
> Hi.
>
> I have enabled 
> org.apache.cocoon.components.cron.CocoonQuartzJobScheduler
> component in cocoon.xconf and it seems to be working fine. But I do 
> not know how to schedule tasks programatically with this scheduler as 
> I could do it with Quartz Scheduler.
>
> For example, how would I create a scheduled task like the one below 
> which I made with Quartz:
>
>   SchedulerFactory sf = new StdSchedulerFactory();
>   Scheduler sched = sf.getScheduler();
>   sched.start();
>   JobDetail jd = new JobDetail("Income report", "Report generation", 
> Quartz.class);
>   jd.getJobDataMap().put("type", "FULL");
>   CronTrigger trigger = new CronTrigger("Income report", "Report 
> generation");
>   trigger.setCronExpression("*/10 * * * * ? *");
>   sched.scheduleJob(jd, trigger);
>
> Since Cocoon Scheduler is based on Quartz scheduler I would expect it 
> to be easy but I havent been able to do it and I did not found any
examples.
>
> Examples would be appreciated.
>
> Thanks!
> Borut
>
>
> 
> http://www.email.si/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

- --
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com Orixo, the XML business
alliance - http://www.orixo.com -BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDlUQ2LNdJvZjjVZARAieuAJ9MBEYTf+KnfF/mb/LaqNTlJbFdiQCcD2eV
s3vkMSqVdEGJMuzc61JkKX4=
=SHId
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to load form using request parameter

2005-12-06 Thread Wim . Mosman




Dear community,

I'm have a problem with making a form for editing an XML file using cform.
We have an XML file called users.xml which looks like this:

  
...
  
  
...
  
  ..


I succeeded in making an editable tabel, using de repeater widgets etc. But
what I want is making a form for editing one single user at the time / in
one screen..
Therefore I changed de model, template and binding XML file (removing
repeater items).
The probleem now is that always the user with id=1 is being loaded
(updating this one works fine by the way).
How can we load a user tag voor a specific user id, which value is in a
request Parameter ( ../user.flow?userid=2 )?

Wim Mosman



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: binding for multivaluefields

2005-12-06 Thread cocoon.erard
Hello Niels, 

I'v found another solution for my problem. In the Class SelectionListQuestion 
which extends the Question Class described in my first mail, I had to implement 
two "proxy methods" that take as parameter Collection Objects:

public Collection getCollection() {
   if (this.getResponse instanceof Collection) { 
 return (Collection)this.getResponse();
   }
return new ArrayList();
}

public void setCollection(Collection col) {
this.setResponse(col);
}

In the Binding I have to point to this methods for multivalue fields and it 
works. I don't no why, but it works.

Thanks,

Mike


-- Original Message --
From: Niels van Kampenhout <[EMAIL PROTECTED]>
Reply-To: users@cocoon.apache.org
Date:  Mon, 05 Dec 2005 17:17:03 +0100
 
>cocoon.erard wrote:
>> Hello,
>> 
>> I'm trying to bind a multivaluefield with an object, but this doesn't work.
>> 
>> I've a bean:
>> 
>> public class MyBean {
>> 
>>private HashMap questions = new HashMap();
>> 
>>public HashMap getQuestions() ...
>>public void setQuestions(HashMap questions) ...
>> 
>> }
>> 
>> the quesitons map contains Question Objects:
>> 
>> public class Question {
>>private Object response = null;
>> 
>>public Object getResponse()...
>>public void setResponse(Object response)...
>> 
>> }
>> 
>> somewhere i make:
>> 
>> myBean.getQuestions().put("name", new Question());
>> myBean.getQuestions().put("languages", new Question());
>> 
>> the binding:
>> 
>> http://apache.org/cocoon/forms/1.0#binding"; 
>> xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";>
>> 
>> 
>> 
>> 
>> 
>> 
>> This works fine for the widget 'name'. If response is null, an Object of the 
>> correct type is created for field widgets. If response is != null the 
>> content is displayed in the form.
>> But for 'languages' (which is a selection list) I receive allways the 
>> exeption at the end of the mail. 
>> I've already tried out other combinations with row-path and parent-path but 
>> didn't find the solution, can someone help me?
>> 
>> Regars
>> 
>> Mike
>
>Mike,
>
>It may be that you have to write some custom binding code in an 
> element. That was the only way I could get 
>multivaluefield binding to work properly. For an example, check this 
>thread: 
>http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=109653712005198&w=2.
>
>Niels
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
 



QuickLine WebMail - http://www.QuickLine.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reset value of request parameters

2005-12-06 Thread Merico Raffaele
Dear community

I use a CForm to get the input for an external service invoked as
WebServiceProxy-Pipeline after the form validation. The simple flow script
looks like follows:

> var form = new Form(cocoon.request.get("fdPath"));
> form.showForm("showForm");
> cocoon.sendPage(cocoon.request.get("action"));

Since the WebServiceProxy reuses the request parameters submitted by the
form, the invoked WebService receives the data as entered respectively
locale formatted. But the WebService aspects another format.

Is there any possibility to reset the value of a request parameter in the
cocoon.request object? Or do you see any other solutions?

Many thanks in advance ... Raffaele

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]