Re: Browser-based XML document editing tool?

2004-12-13 Thread Bertrand Delacretaz
Le 14 déc. 04, à 03:07, David a écrit :
...don't want to have to 'manually' build a bunch of forms and form 
processing
and file i/o code to create these interfaces for the half dozen 
different
xml data structures I have
The forms processing and file i/o code is very simple if using CForms, 
and it doesn't depend on the form contents.
You'll find examples in the linotype (for i/o) block and in the forms 
and tour blocks (for CForms stuff).

This leaves you with the actual forms: for these you'll need to create 
CForms models, bindings and templates, which are usually created 
individually.

But, at least for simple cases, these are relatively easy to generate 
from a common definitions file, to avoid creating three definition 
files for each form: I'd start with a custom "form editing template" 
written in XML, which contains enough information to generate the 
CForms model, binding and template definitions.

Here's a rough example with an imaginary syntax:

This is the xyz form


You can then relatively easy transform this (via XSLT) to a CForms 
model, a binding and a template, or invent new attributes depending on 
the CForms features that you need.

There's no universal solution for this in Cocoon, as it is more limited 
than "full-blown" CForms and the limitations that you're willing to 
accept depend on your application. So the best way ATM is probably to 
create you own "form definition" model and build on it.

-Bertrand

smime.p7s
Description: S/MIME cryptographic signature


Re: Browser-based XML document editing tool?

2004-12-13 Thread Derek Hohls
The only "tool" I have been able to find is, indeed, CForms...
with the htmlArea for "embedded" formatting/styling (problem
is that, as shipped, the htmlArea "tags" are not stored as XML
but that's another issue...)

I doubt there is an "instant" fix, but it would be interesting to
hear what other apps are out there.  From a search through the
mailing list (did you try this?), there is the Jaxe option: see
http://wiki.apache.org/cocoon/JaxeCocoon 

Alternatively, both Bitflux and Xopus have been raised as 
possibilities.

Of course, it might be that you are the person that writes the
"schema-analysing-form-building" app that we are waiting for!!


>>> [EMAIL PROTECTED] 2004/12/14 04:07:44 AM >>>
I've built a Cocoon site and all the content is in xml files.  I
created
content using an Eclipse XML plugin, which is fine for me as a
technical
person, but now I need to allow a couple dozen non-technical people to
be
able to create/edit/delete these xml files themselves, using a browser.
 I
don't want to have to 'manually' build a bunch of forms and form
processing
and file i/o code to create these interfaces for the half dozen
different
xml data structures I have.  This type of code has been written too
many
times before by so many people, I'm certain, it's crazy to build it
all
again.

Seems to me that someone by now has built some kind of tool -- either
server-side or a client side app -- that can basically analyze a DTD or
xml
file or Cforms kinda document, then generate a web-based form for
content
create/edit/delete, and then write the files to disk.  

Can Cforms or some other tool do this?   Thanks for advice.  



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


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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


RE: Browser-based XML document editing tool?

2004-12-13 Thread Lincoln Mitchell
Maybe this 2.1.6 block will help. It's a CFORM HTML editor widget:
http://localhost:/samples/blocks/forms/htmlarea

Have no used it myself though.

Linc

-Original Message-
From: David [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 14 December 2004 10:08 AM
To: [EMAIL PROTECTED]
Subject: Browser-based XML document editing tool?

I've built a Cocoon site and all the content is in xml files.  I created
content using an Eclipse XML plugin, which is fine for me as a technical
person, but now I need to allow a couple dozen non-technical people to be
able to create/edit/delete these xml files themselves, using a browser.  I
don't want to have to 'manually' build a bunch of forms and form processing
and file i/o code to create these interfaces for the half dozen different
xml data structures I have.  This type of code has been written too many
times before by so many people, I'm certain, it's crazy to build it all
again.

Seems to me that someone by now has built some kind of tool -- either
server-side or a client side app -- that can basically analyze a DTD or xml
file or Cforms kinda document, then generate a web-based form for content
create/edit/delete, and then write the files to disk.  

Can Cforms or some other tool do this?   Thanks for advice.  



-
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: BXE editor

2004-12-13 Thread Krunal Shimpi
You can try Daisy CMS which is built on top of COcoon. I am going to
evaluate same for my proj.

-Original Message-
From: Christian Stocker [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 10:50 PM
To: [EMAIL PROTECTED]
Subject: Re: BXE editor




On 13.12.2004 17:53 Uhr, [EMAIL PROTECTED] wrote:
> I am trying to integrate BXE like XML editor in my pages and I choiced BXE
> because I prefer Mozilla...   however BXE does not save with the last
version
> of Mozilla (1.7.3) but also with Firefox 1.0 (while the documentation
indicates
> the same problem only with Firefox 0.8 and 0.9).

It works with FF 1.0. If it doesn't for you, you did something wrong ;)

> In this case I would decide if I should continue with trying to integrate
> BXE (that is a good tool in my opinion) or with another XML editor.

Try one of the BXE mailinglists. Far better place for your BXE problems
than Cocoon.

(the saving part on the other hand is no BXE issue. As long is it sends
the XML through the wire. The actual saving is a task for your back end
then.)

> In
> this last case someone can suggest to me a XML editor compatible with
Mozilla?

Not me ;)

chregu

>  I do not need to have a CMS because I am using portal engine and Lenya
> (at moment the only CMS compatible with Cocoon that I know) does not
appear
> compatible with portal engine.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch  |  [EMAIL PROTECTED]  |  gnupg-keyid 0x5CE1DECB

-
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]


Browser-based XML document editing tool?

2004-12-13 Thread David
I've built a Cocoon site and all the content is in xml files.  I created
content using an Eclipse XML plugin, which is fine for me as a technical
person, but now I need to allow a couple dozen non-technical people to be
able to create/edit/delete these xml files themselves, using a browser.  I
don't want to have to 'manually' build a bunch of forms and form processing
and file i/o code to create these interfaces for the half dozen different
xml data structures I have.  This type of code has been written too many
times before by so many people, I'm certain, it's crazy to build it all
again.

Seems to me that someone by now has built some kind of tool -- either
server-side or a client side app -- that can basically analyze a DTD or xml
file or Cforms kinda document, then generate a web-based form for content
create/edit/delete, and then write the files to disk.  

Can Cforms or some other tool do this?   Thanks for advice.  



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


[HELP] COCOON-EHCACH-1CACHE - Professional help needed

2004-12-13 Thread Daniela Innerwinkler
Hi!

I`ve got the following problem with cocoon 2.1.6 (build with jdk 1.4.2_03) on 
tomcat 5.0.28

I deploy cocoon and the first one or two times stop and start are working well.

Then i get the following error when starting tomcat:

trying to register database
IOException reading index. Creating new index
cocoon-ehcache-1cache: could not create disk store
java.io.IOException: Index file 
C:\..\work\Catalina\localhost\cocoon\cocoon-files\cache-dir\cocoon-ehcache-1.index
 could not created

when i`m stopping tomcat i get the following:
vm shutting down with the disk store for cocoon-ehcache-1 still active. The 
disk store is persistent. Calling dispose

Tomcat should be authorized to create and delete the files.

When i want to run cocoon it says:
org.quart/z.Sche/dulerException: Sched/uler w/ith name 'Cocoon' 
already exists

I can delete the file cocoon-ehcache-1.index manually but the 
schedulerexception remains and the IOException appears again the next time. 

Is cocoon that instable? I already tried cocoon on tomcat 5.5.4 too and it 
never works well (NotSerializableException, could not create quartz sheduler, 
and the error described above). Especially when i deploy pluto (which works 
well) on tomcat too, Cocoon starts to make problems. ;((

help is very appreciated!

yours
dani


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



Re: BXE editor

2004-12-13 Thread Brent Johnson
I just got done integrating Kupu into my Cocoon CMS application.  It
seems to work very well (at least for Firefox).  The only problem I'm
having with it right now is that you cant work with custom tags.  I
use some of my own shortcut tags which get converted to valid HTML
with a stylesheet before being output to the browser.

So if you're just interested in editing XHTML Kupu is decent.  It also
works with both IE and Firefox.

http://kupu.oscom.org/

- Brent

On Mon, 13 Dec 2004 17:53:05 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I am trying to integrate BXE like XML editor in my pages and I choiced BXE
> because I prefer Mozilla...   however BXE does not save with the last version
> of Mozilla (1.7.3) but also with Firefox 1.0 (while the documentation 
> indicates
> the same problem only with Firefox 0.8 and 0.9).
> 
> In this case I would decide if I should continue with trying to integrate
> BXE (that is a good tool in my opinion) or with another XML editor.  In
> this last case someone can suggest to me a XML editor compatible with Mozilla?
>  I do not need to have a CMS because I am using portal engine and Lenya
> (at moment the only CMS compatible with Cocoon that I know) does not appear
> compatible with portal engine.
> 
> -
> 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]


multiple forms (was: Usage of "form.createBinding" compared with "form.load")

2004-12-13 Thread Joerg Heinicke
On 13.12.2004 14:29, Philipp Rech wrote:
hello,
thanks you Joerg that helped me a lot. And you are rigth about the default
way, but i wasn't aware of the function Form.js in this case. Good
to know where this file is, thanks!
my question remaning is how to bind several forms. do i have to call the
handleForm function seperatly for each form or can i pass several bindingURI's
and from-definitions in one sitemap match area.
The default handles only one form on a page, not many forms. CForms is 
not even really multiple-forms-aware, but taking care about some things 
should make it possible.

1. handleForm() instantiates the form. If you need multiple forms, you 
also need multiple instances, what you have already done (in the private 
mail):

var form1 = new Form("cform-definitions/widgets_table_event.xml");
var form2 = new Form("cform-definitions/widgets_table_goods.xml");
var form3 = new Form("cform-definitions/widgets_table_person.xml");
var form4 = new 
Form("cform-definitions/widgets_table_means_of_transport.xml");

To complete the form instances you also need to create a binding for each:
form1.createBinding("binding1.xml");
form2.createBinding("binding2.xml");
...
If you need to load some values you also need to load them for all form 
instances:

form1.load(bean1);
form2.load(bean2); //or bean1 again
...
The same is true for the save later.
So the binding framework has absolutely no problems with multiple form 
instances. Displaying the form and handling a form submit is much more 
interesting. I don't know exactly how you can make it work, probably by 
passing the form instances to the FOM context:

cocoon.sendPageAndWait("confrim_event", {"form1": form1, "form2": form2, 
...});

Maybe someone has already tested it.
Joerg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cocoon Foms help needed!!!

2004-12-13 Thread Bertrand Delacretaz
Le 14 déc. 04, à 10:06, Lincoln Mitchell a écrit :
...There are s many files related to this sample which confuses 
the hell
out of me and I long for a barebones version that is not tied into all 
the
other cform examples...
The tour block samples might help, these are more "barebones".
The bean editor sample contains only eight active files including the 
sitemap, and their content is described in the interactive tutorial 
(found under "blocks with samples" when you start Cocoon).

-Bertrand


smime.p7s
Description: S/MIME cryptographic signature


printing jclass

2004-12-13 Thread Craig Christophersen



Has anyone any experience integrating 
jclass(from quest) with cocoon to utilize the jclass printing 
capabilities?
 
Craig Christophersen(406)496-6421[EMAIL PROTECTED]


Re: Cocoon Foms help needed!!!

2004-12-13 Thread Johannes Textor
Hi Lincoln,
Any how my current problem is that moving the files (and I think I got them
all) causes the form to disappear - I just get an blank white page - however
the source is there.
 

Getting a blank white page is quite strange. There are two explanations 
I can think of:

- Is one of the default forms stylesheets missing in where you moved the 
example to ?
(I mean the XSLs cocoon uses to actually display the form)

- Do you get some kind of "internal cocoon problem" error on 
WEB-INF/logs/error_log ?

If not, some additional information of what files you actually copied to 
where, what
your actual flowscript and sitemap look like would certainly be helpful.

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


Re: Cocoon portal tabs

2004-12-13 Thread Anna Bikkina

In portal.xml in copletdata I have the following 


  Security Quote History:
  URICoplet
  
uri
http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp
  
 

Is  the id mentioned here the id we can use for pageLabel in redirect-to
uri?


Thanks,
Anna.

On Mon, 2004-12-13 at 13:13, Philippe Guillard wrote:
> The most important thing (just a suggestion because you didn't show it 
> here), is that you have "quotehistory" as a tab name in your layout, not 
> the name of the coplet :
>
>
> 
> quotehistory-1
>   
>   
> Phil
> 
> 
> Anna Bikkina wrote:
> 
> >I am using pageLabels. 
> >
> >Here is my sitemap . I tried id and pageLabel=quotehistory in the
> >redirect-to uri none of them worked.
> >
> >
> >
> >   
> >  
> >
> >
> >
> >
> >
> >   >value="portalhandler"/>
> >   >value="{session-attr:traderid}"/>
> >   >value="{session-attr:sessionid}"/>
> >   >value="{session-attr:project}"/>
> >
> >   >uri="portal?pageLabel=quotehistory"/>
> >   
> >  
> >
> >
> >
> >
> >
> >
> >
> >
> >Here is part of portal.xml in profiles/copletdata directory. 
> >
> >
> >  Security Quote History:
> >  URICoplet
> >  
> > uri
> >  >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp
> >  
> > 
> >
> >In portal.xml in copletinstancedata here is the part of quotehistory
> >
> >   
> >  quotehistory
> >   
> >
> >Am  I doing something wrong here.
> >
> >Thank you for replying
> >
> >Anna.
> >
> >
> >On Fri, 2004-12-10 at 22:40, Ralph Goers wrote:
> >  
> >
> >>Anna,
> >>
> >>I can't tell if you are using page labels or bookmarks.  If you are not 
> >>using either one then this just won't work. If you are using bookmarks 
> >>then I guess we'd also need to see the configuraiton for that.  If you 
> >>are using page labels I'd expect the url to be 
> >>portal?pageLabel=quotehistory unless you changed the request parameter 
> >>name in the configuration.
> >>
> >>Ralph
> >>
> >>Anna Bikkina wrote:
> >>
> >>
> >>
> >>>Here is my sitemap. I am using redirect-to uri portal?id=quotehistory
> >>>quotehistory is the name of  second tab in the portal page. I want that
> >>>to be selected when user opens the portal page.
> >>>
> >>>   
> >>>   
> >>>  
> >>> 
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>> 
> >>>  >>>value="{session-attr:traderid}"/>
> >>>  >>>value="{session-attr:sessionid}"/>
> >>>  >>>value="{session-attr:project}"/>
> >>>
> >>> 
> >>> 
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>
> >>>
> >>>
> >>>In portal.xml in profiles/copletdata directory I have the this
> >>>information along with the other tabs
> >>>
> >>>  
> >>> Security Quote History:
> >>> URICoplet
> >>> 
> >>>   uri
> >>>>>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp
> >>> 
> >>>   
> >>>
> >>>
> >>>Not sure where it is going wrong but it doesnt go to tab2. I goes to
> >>>tab1 as it does by default.
> >>>
> >>>On Thu, 2004-12-09 at 16:14, Ralph Goers wrote:
> >>> 
> >>>
> >>>  
> >>>
> Please post the relevant portions of your sitemap.
> 
> Ralph
> 
> 
> Anna Bikkina said:
>    
> 
> 
> 
> >I was doing exactly the same. It didnt work. Is there any other way I
> >can try.
> >
> >Thank you for answering.
> >
> >Anna.
> > 
> >
> >  
> >
> >>> 
> >>>
> >>>  
> >>>
> >>-
> >>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]
> >
> >
> >
> >  
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


--

Re: Cocoon Foms help needed!!!

2004-12-13 Thread Roberto
Hi hope that this can help you, but I don't have idea why the form
disappear. I send you 4 files (sorry but the label are in italian) one is
the definition form, one is the template form one is the binding with the
xmldata and one is the xmldata.

Cheers
ROb

- Original Message - 
From: "Lincoln Mitchell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 14, 2004 10:06 AM
Subject: Cocoon Foms help needed!!!


> I have been struggling with Cforms for over a week now. I have had some
> success in modifying the xml binding sample to append data to an xml
> document however:
>
> When to implement the form into my website I need to move all the related
> files and that's when it breaks.
>
> The examples of CFORMS like
> http://cocoon.apache.org/2.1/userdocs/forms/sample.html and in the blocks
> provided a start but don't explain thoroughly what all the related files
are
> doing.
>
> There are s many files related to this sample which confuses the hell
> out of me and I long for a barebones version that is not tied into all the
> other cform examples.
>
> Any how my current problem is that moving the files (and I think I got
them
> all) causes the form to disappear - I just get an blank white page -
however
> the source is there.
>
> I will struggle on but if anyone has a barebones example of xml binding (1
> field will do) or an explanation as to why the form vanishes or even a
more
> detail explanation of what all the files do.
>
> This will be VERY much appreciated.
>
>
>
>
> TIA
>
> Linc
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

http://apache.org/cocoon/forms/1.0#definition";>
	
		
			
		
		
		
		
			ID:
			
		
		
		
			Prefisso:
			
			
		
		
		
			Ragione Sociale:
			
		
		
		
			Indirizzo:
			
		
		
		
			CAP:
			
			
		
		
		
			Nazione:
			
			
		
		
		
			Lingua:
			
			
		
		
		
			Telefono:
			
		
		
		
			Telefax:
			
		
		
		
			e-mail:
			
		
		
		
			webpage:
			
		
		
		
			Fornitore:
		
		
		
			Creditore:
		
		
		
			Cliente:
		
		
		
			Debitore:
		
		
		
			Agente:
		
		
		
		
			

	



	Prefisso
	
	



	Nome
	



	Funzione
	
	



	Telefono
	



	e-mail
	


	Seleziona

			
		
		
			Aggiungi
		
		
			Cancella
		
		
		
		
		
			Valuta:
			
			
		
		
		
			Nr IVA:
			
		
		
		
			Pag. Mezzo:
			
			
		
		
		
			Condizioni Pagamento:
			
			
		
		
		
			IVA Acquisti:
			
			
		
		
		
			IVA Vendite:
			
			
		
		
		
			Conto Acquisti:
			
			
		
		
		
			Conto Vendite:
			
			
		
		
		
	


http://apache.org/cocoon/forms/1.0#template"; xmlns:fi="http://apache.org/cocoon/forms/1.0#instance";>
	
	
		Anagrafica
		
			


	


	
		
		Generale
		
		
			


	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	

			
			


	
		
	
	
		
	
	
		
	
	
		
	

			
			


	
	
	
	
	

			
		
	
	
	
		
		Contatti
		
		
			
			
			

	
		
			
		
	
	
		
			
		
	
	
		
			
		
	
	
		
			
		
	
	
		
			
		
	
	
		
			
		
	


	
		
			

			
		
		
			

			
		
		
			

			
		
		
			

			
		
		
			

			
		
		
			
		
	


	
		
			


			
		
	

			
		
	
	
	
		
		Amministrazione
		
		
			


	
		
	
	
		
	
	
		
	
	
		
	

			
			


	
		
	
	
		
	
	
		
	
	
		
	

			
		
	
	

			
			
			
		
	


http://apache.org/cocoon/forms/1.0#binding"; xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"; path="data/wrapper/context">
	
		
	
	
	
	
	
	
	
	
	
	
	
	
		
	
	
		
	
	
		
	
	
		
	

Re: Cocoon portal tabs

2004-12-13 Thread Ralph Goers
1. With  the url you should be going to is
"portal?pageLabel=QuoteHistory".
2. You do not have PageLabels configured. Please look at
http://wiki.apache.org/cocoon/PortalPageLabels.  The link should not
contain cocoon-portal-action unless you specifically do not want the back
button to work. It also does not show the pageLabel request parameter.

Ralph

Anna Bikkina said:
>
> In layout/portal.xml I have quotehistory defined like this
>
>   
> 
>   
>   
> 
>   
>   
>
> quotehistory-1
>   
> 
>   
>   
> 
>
>
>
> After login cocoon takes me to first tab in portal page. Here is the
> link location that is found in address bar for quotehistory tab
>
> http://localhost:8890/ent1/portal?cocoon-portal-action=0&cocoon-portal-event=3
>
>
> The portal event and action variables are changing everytime a tab is
> selected.
>
> Thank you for replying.
>
> Anna.
>
> On Mon, 2004-12-13 at 13:14, Ralph Goers wrote:
>> What do you have in layout/portal.xml?  When you your portal is
>> displayed
>> and you manually select the tab that that you want login to go to, what
>> url shows in the address bar?
>>
>> Ralph
>>
>>
>>
>> Anna Bikkina said:
>> > I am using pageLabels.
>> >
>> > Here is my sitemap . I tried id and pageLabel=quotehistory in the
>> > redirect-to uri none of them worked.
>> >
>> > 
>> > 
>> >   
>> >   
>> > 
>> > 
>> > 
>> > 
>> > 
>> >   > > value="portalhandler"/>
>> >   > > value="{session-attr:traderid}"/>
>> >   > > value="{session-attr:sessionid}"/>
>> >   > > value="{session-attr:project}"/>
>> >
>> >   > > uri="portal?pageLabel=quotehistory"/>
>> >
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> >
>> >
>> > Here is part of portal.xml in profiles/copletdata directory.
>> >
>> > 
>> >   Security Quote History:
>> >   URICoplet
>> >   
>> >uri
>> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp
>> >   
>> >
>> >
>> > In portal.xml in copletinstancedata here is the part of quotehistory
>> >
>> >
>> >   quotehistory
>> >
>> >
>> > Am  I doing something wrong here.
>> >
>> > Thank you for replying
>> >
>> > Anna.
>> >
>> >
>> > On Fri, 2004-12-10 at 22:40, Ralph Goers wrote:
>> >> Anna,
>> >>
>> >> I can't tell if you are using page labels or bookmarks.  If you are
>> not
>> >> using either one then this just won't work. If you are using
>> bookmarks
>> >> then I guess we'd also need to see the configuraiton for that.  If
>> you
>> >> are using page labels I'd expect the url to be
>> >> portal?pageLabel=quotehistory unless you changed the request
>> parameter
>> >> name in the configuration.
>> >>
>> >> Ralph
>> >>
>> >> Anna Bikkina wrote:
>> >>
>> >> >Here is my sitemap. I am using redirect-to uri
>> portal?id=quotehistory
>> >> >quotehistory is the name of  second tab in the portal page. I want
>> that
>> >> >to be selected when user opens the portal page.
>> >> >
>> >> >
>> >> >
>> >> >  
>> >> >  
>> >> >
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> >   
>> >> >   > >> >value="{session-attr:traderid}"/>
>> >> >   > >> >value="{session-attr:sessionid}"/>
>> >> >   > >> >value="{session-attr:project}"/>
>> >> >
>> >> >   
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >In portal.xml in profiles/copletdata directory I have the this
>> >> >information along with the other tabs
>> >> >
>> >> >   
>> >> >  Security Quote History:
>> >> >  URICoplet
>> >> >  
>> >> > uri
>> >> > > >> >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp
>> >> >  
>> >> >   
>> >> >
>> >> >
>> >> >Not sure where it is going wrong but it doesnt go to tab2. I goes to
>> >> >tab1 as it does by default.
>> >> >
>> >> >On Thu, 2004-12-09 at 16:14, Ralph Goers wrote:
>> >> >
>> >> >
>> >> >>Please post the relevant portions of your sitemap.
>> >> >>
>> >> >>Ralph
>> >> >>
>> >> >>
>> >> >>Anna Bikkina said:
>> >> >>
>> >> >>
>> >> >>>I was doing exactly the same. It didnt work. Is there any other
>> way I
>> >> >>>can try.
>> >> >>>
>> >> >>>Thank you for answering.
>> >> >>>
>> >> >>>Anna.
>> >> >>>
>> >> >>>
>> >> >
>> >> >
>> >> >
>> 

Re: Cocoon portal tabs

2004-12-13 Thread Anna Bikkina

In layout/portal.xml I have quotehistory defined like this









   
quotehistory-1




  
  


After login cocoon takes me to first tab in portal page. Here is the
link location that is found in address bar for quotehistory tab

http://localhost:8890/ent1/portal?cocoon-portal-action=0&cocoon-portal-event=3


The portal event and action variables are changing everytime a tab is
selected.

Thank you for replying.

Anna.

On Mon, 2004-12-13 at 13:14, Ralph Goers wrote:
> What do you have in layout/portal.xml?  When you your portal is displayed
> and you manually select the tab that that you want login to go to, what
> url shows in the address bar?
> 
> Ralph
> 
> 
> 
> Anna Bikkina said:
> > I am using pageLabels.
> >
> > Here is my sitemap . I tried id and pageLabel=quotehistory in the
> > redirect-to uri none of them worked.
> >
> > 
> > 
> >   
> >   
> > 
> > 
> > 
> > 
> > 
> >> value="portalhandler"/>
> >> value="{session-attr:traderid}"/>
> >> value="{session-attr:sessionid}"/>
> >> value="{session-attr:project}"/>
> >
> >> uri="portal?pageLabel=quotehistory"/>
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >
> > Here is part of portal.xml in profiles/copletdata directory.
> >
> > 
> >   Security Quote History:
> >   URICoplet
> >   
> > uri
> >  > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp
> >   
> >
> >
> > In portal.xml in copletinstancedata here is the part of quotehistory
> >
> >
> >   quotehistory
> >
> >
> > Am  I doing something wrong here.
> >
> > Thank you for replying
> >
> > Anna.
> >
> >
> > On Fri, 2004-12-10 at 22:40, Ralph Goers wrote:
> >> Anna,
> >>
> >> I can't tell if you are using page labels or bookmarks.  If you are not
> >> using either one then this just won't work. If you are using bookmarks
> >> then I guess we'd also need to see the configuraiton for that.  If you
> >> are using page labels I'd expect the url to be
> >> portal?pageLabel=quotehistory unless you changed the request parameter
> >> name in the configuration.
> >>
> >> Ralph
> >>
> >> Anna Bikkina wrote:
> >>
> >> >Here is my sitemap. I am using redirect-to uri portal?id=quotehistory
> >> >quotehistory is the name of  second tab in the portal page. I want that
> >> >to be selected when user opens the portal page.
> >> >
> >> >
> >> >
> >> >  
> >> >  
> >> >
> >> >  
> >> >  
> >> >  
> >> >  
> >> >
> >> > >> >value="{session-attr:traderid}"/>
> >> > >> >value="{session-attr:sessionid}"/>
> >> > >> >value="{session-attr:project}"/>
> >> >
> >> >
> >> >  
> >> >  
> >> >  
> >> >  
> >> >  
> >> >  
> >> >
> >> >
> >> >
> >> >
> >> >In portal.xml in profiles/copletdata directory I have the this
> >> >information along with the other tabs
> >> >
> >> >   
> >> >  Security Quote History:
> >> >  URICoplet
> >> >  
> >> >  uri
> >> >   >> >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp
> >> >  
> >> >   
> >> >
> >> >
> >> >Not sure where it is going wrong but it doesnt go to tab2. I goes to
> >> >tab1 as it does by default.
> >> >
> >> >On Thu, 2004-12-09 at 16:14, Ralph Goers wrote:
> >> >
> >> >
> >> >>Please post the relevant portions of your sitemap.
> >> >>
> >> >>Ralph
> >> >>
> >> >>
> >> >>Anna Bikkina said:
> >> >>
> >> >>
> >> >>>I was doing exactly the same. It didnt work. Is there any other way I
> >> >>>can try.
> >> >>>
> >> >>>Thank you for answering.
> >> >>>
> >> >>>Anna.
> >> >>>
> >> >>>
> >> >
> >> >
> >> >
> >>
> >>
> >> -
> >> 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]
> >
> >
> 


-
To unsubscribe, e-mail: [

Re: Cocoon portal tabs

2004-12-13 Thread Ralph Goers
What do you have in layout/portal.xml?  When you your portal is displayed
and you manually select the tab that that you want login to go to, what
url shows in the address bar?

Ralph


Anna Bikkina said:
> I am using pageLabels.
>
> Here is my sitemap . I tried id and pageLabel=quotehistory in the
> redirect-to uri none of them worked.
>
> 
> 
>   
>   
> 
> 
> 
> 
> 
>value="portalhandler"/>
>value="{session-attr:traderid}"/>
>value="{session-attr:sessionid}"/>
>value="{session-attr:project}"/>
>
>uri="portal?pageLabel=quotehistory"/>
>
> 
> 
> 
> 
> 
> 
> 
>
>
> Here is part of portal.xml in profiles/copletdata directory.
>
> 
>   Security Quote History:
>   URICoplet
>   
>   uri
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp
>   
>
>
> In portal.xml in copletinstancedata here is the part of quotehistory
>
>
>   quotehistory
>
>
> Am  I doing something wrong here.
>
> Thank you for replying
>
> Anna.
>
>
> On Fri, 2004-12-10 at 22:40, Ralph Goers wrote:
>> Anna,
>>
>> I can't tell if you are using page labels or bookmarks.  If you are not
>> using either one then this just won't work. If you are using bookmarks
>> then I guess we'd also need to see the configuraiton for that.  If you
>> are using page labels I'd expect the url to be
>> portal?pageLabel=quotehistory unless you changed the request parameter
>> name in the configuration.
>>
>> Ralph
>>
>> Anna Bikkina wrote:
>>
>> >Here is my sitemap. I am using redirect-to uri portal?id=quotehistory
>> >quotehistory is the name of  second tab in the portal page. I want that
>> >to be selected when user opens the portal page.
>> >
>> >
>> >
>> >  
>> >  
>> >
>> >
>> >
>> >
>> >
>> >  
>> >  > >value="{session-attr:traderid}"/>
>> >  > >value="{session-attr:sessionid}"/>
>> >  > >value="{session-attr:project}"/>
>> >
>> >  
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >In portal.xml in profiles/copletdata directory I have the this
>> >information along with the other tabs
>> >
>> >   
>> >  Security Quote History:
>> >  URICoplet
>> >  
>> >uri
>> >> >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp
>> >  
>> >   
>> >
>> >
>> >Not sure where it is going wrong but it doesnt go to tab2. I goes to
>> >tab1 as it does by default.
>> >
>> >On Thu, 2004-12-09 at 16:14, Ralph Goers wrote:
>> >
>> >
>> >>Please post the relevant portions of your sitemap.
>> >>
>> >>Ralph
>> >>
>> >>
>> >>Anna Bikkina said:
>> >>
>> >>
>> >>>I was doing exactly the same. It didnt work. Is there any other way I
>> >>>can try.
>> >>>
>> >>>Thank you for answering.
>> >>>
>> >>>Anna.
>> >>>
>> >>>
>> >
>> >
>> >
>>
>>
>> -
>> 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]
>
>


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



Re: Cocoon portal tabs

2004-12-13 Thread Philippe Guillard
The most important thing (just a suggestion because you didn't show it 
here), is that you have "quotehistory" as a tab name in your layout, not 
the name of the coplet :
  
  
   
quotehistory-1
 
 
Phil

Anna Bikkina wrote:
I am using pageLabels. 

Here is my sitemap . I tried id and pageLabel=quotehistory in the
redirect-to uri none of them worked.

   
  
 
   
   
   
   
   
 
value="portalhandler"/>
 
value="{session-attr:traderid}"/>
 
value="{session-attr:sessionid}"/>
 
value="{session-attr:project}"/>

 
uri="portal?pageLabel=quotehistory"/>
  
  
   
   
   
   
   
   

Here is part of portal.xml in profiles/copletdata directory. 


 Security Quote History:
 URICoplet
 
 	uri
 	
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp
 


In portal.xml in copletinstancedata here is the part of quotehistory
  
 quotehistory
  
Am  I doing something wrong here.
Thank you for replying
Anna.
On Fri, 2004-12-10 at 22:40, Ralph Goers wrote:
 

Anna,
I can't tell if you are using page labels or bookmarks.  If you are not 
using either one then this just won't work. If you are using bookmarks 
then I guess we'd also need to see the configuraiton for that.  If you 
are using page labels I'd expect the url to be 
portal?pageLabel=quotehistory unless you changed the request parameter 
name in the configuration.

Ralph
Anna Bikkina wrote:
   

Here is my sitemap. I am using redirect-to uri portal?id=quotehistory
quotehistory is the name of  second tab in the portal page. I want that
to be selected when user opens the portal page.
  
  
 

  
		
  		
  		
		
		  
		  
value="{session-attr:traderid}"/>
		  
value="{session-attr:sessionid}"/>
		  
value="{session-attr:project}"/>

  
  
  





  

In portal.xml in profiles/copletdata directory I have the this
information along with the other tabs
 
Security Quote History:
URICoplet

	uri
	
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp

  

Not sure where it is going wrong but it doesnt go to tab2. I goes to
tab1 as it does by default.
On Thu, 2004-12-09 at 16:14, Ralph Goers wrote:
 

Please post the relevant portions of your sitemap.
Ralph
Anna Bikkina said:
  

   

I was doing exactly the same. It didnt work. Is there any other way I
can try.
Thank you for answering.
Anna.


 


 

-
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]

 


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


Re: Cocoon portal tabs

2004-12-13 Thread Anna Bikkina
I am using pageLabels. 

Here is my sitemap . I tried id and pageLabel=quotehistory in the
redirect-to uri none of them worked.



   
  





  
  
  
  

  
   
  








Here is part of portal.xml in profiles/copletdata directory. 


  Security Quote History:
  URICoplet
  
uri
http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp
  
 

In portal.xml in copletinstancedata here is the part of quotehistory

   
  quotehistory
   

Am  I doing something wrong here.

Thank you for replying

Anna.


On Fri, 2004-12-10 at 22:40, Ralph Goers wrote:
> Anna,
> 
> I can't tell if you are using page labels or bookmarks.  If you are not 
> using either one then this just won't work. If you are using bookmarks 
> then I guess we'd also need to see the configuraiton for that.  If you 
> are using page labels I'd expect the url to be 
> portal?pageLabel=quotehistory unless you changed the request parameter 
> name in the configuration.
> 
> Ralph
> 
> Anna Bikkina wrote:
> 
> >Here is my sitemap. I am using redirect-to uri portal?id=quotehistory
> >quotehistory is the name of  second tab in the portal page. I want that
> >to be selected when user opens the portal page.
> >
> >
> >
> >   
> >  
> >
> > 
> > 
> > 
> > 
> >   
> >>value="{session-attr:traderid}"/>
> >>value="{session-attr:sessionid}"/>
> >>value="{session-attr:project}"/>
> >
> >   
> >   
> > 
> > 
> > 
> > 
> > 
> >
> >
> >
> >
> >In portal.xml in profiles/copletdata directory I have the this
> >information along with the other tabs
> >
> >   
> >  Security Quote History:
> >  URICoplet
> >  
> > uri
> >  >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp
> >  
> >
> >
> >
> >Not sure where it is going wrong but it doesnt go to tab2. I goes to
> >tab1 as it does by default.
> >
> >On Thu, 2004-12-09 at 16:14, Ralph Goers wrote:
> >  
> >
> >>Please post the relevant portions of your sitemap.
> >>
> >>Ralph
> >>
> >>
> >>Anna Bikkina said:
> >>
> >>
> >>>I was doing exactly the same. It didnt work. Is there any other way I
> >>>can try.
> >>>
> >>>Thank you for answering.
> >>>
> >>>Anna.
> >>>  
> >>>
> >
> >  
> >
> 
> 
> -
> 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]


BXE editor

2004-12-13 Thread javascript
I am trying to integrate BXE like XML editor in my pages and I choiced BXE
because I prefer Mozilla...   however BXE does not save with the last version
of Mozilla (1.7.3) but also with Firefox 1.0 (while the documentation indicates
the same problem only with Firefox 0.8 and 0.9).

In this case I would decide if I should continue with trying to integrate
BXE (that is a good tool in my opinion) or with another XML editor.  In
this last case someone can suggest to me a XML editor compatible with Mozilla?
 I do not need to have a CMS because I am using portal engine and Lenya
(at moment the only CMS compatible with Cocoon that I know) does not appear
compatible with portal engine.


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



Re: BXE editor

2004-12-13 Thread Christian Stocker

On 13.12.2004 17:53 Uhr, [EMAIL PROTECTED] wrote:
I am trying to integrate BXE like XML editor in my pages and I choiced BXE
because I prefer Mozilla...   however BXE does not save with the last version
of Mozilla (1.7.3) but also with Firefox 1.0 (while the documentation indicates
the same problem only with Firefox 0.8 and 0.9). 
It works with FF 1.0. If it doesn't for you, you did something wrong ;)
In this case I would decide if I should continue with trying to integrate
BXE (that is a good tool in my opinion) or with another XML editor.  
Try one of the BXE mailinglists. Far better place for your BXE problems 
than Cocoon.

(the saving part on the other hand is no BXE issue. As long is it sends 
the XML through the wire. The actual saving is a task for your back end 
then.)

In
this last case someone can suggest to me a XML editor compatible with Mozilla?
Not me ;)
chregu
 I do not need to have a CMS because I am using portal engine and Lenya
(at moment the only CMS compatible with Cocoon that I know) does not appear
compatible with portal engine.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch  |  [EMAIL PROTECTED]  |  gnupg-keyid 0x5CE1DECB
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Portal stylesheets and sitemap parameters

2004-12-13 Thread Philippe Guillard
I'll check, thanks.
Ralph Goers wrote:
portal-page.xsl is invoked in the portal pipeline, so passing sitemap
parameters is easy.  The "tab" stylesheets are configured in cocoon.xconf
and are invoked via the XSLTAspect during portal processing. The sitemap
is not involved in that.  However, you can pass parameters to these
stylesheets. They can be configured into the XSLTAspect definition or in
the portal layout as layout parameters. Both can contain references to
input modules.
HTH
Ralph
Philippe Guillard said:
 

Hi all,
I can get a sitemap parameter in portal-page.xsl, but can't find a way
to get it in other stylesheets like linktab.xsl. Any idea?
In the main portal sitemap i have :
   

   
   
   
   

   
In portal-page.xsl:

i get my parameter sucessfully
But in linktab.xsl:

then   gives nothing. I don't
understand how stylesheets are imbricated?
Phil
-
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]

 


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


RE: Basic Session and encode-url example

2004-12-13 Thread Julien, Heryk
No problem
I don't think it will be much use to you but here is part of my sitemap
where urlEncode is used (snippet of the component and pipeline sections of
my sitemap):








  
   
   
   
  

  
   
false
false
   
   
  
  .*/@href|.*/@action|frame/@src
  img/@src|(a/@href|iframe/@src)=.*adserver








false
 
  


  
  

true

true

true

false

  
   





  
   
  

  
   
 ISO-8859-1
   
   
   
  

  
   
  

  
 
  

 









   


 
 
 


 
 
 




   

   


 
 
 


 
 




   





The above pipeline was inspired from the cocoon docs sitemap. However
instead of combining 2 pipelines (book and xdocs), I'm combining a session
context, a web configuration file (controls my common look and feel), a book
pipeline (left menu) and my web main web content (xdocs).

You should read about the url encoder parameters in the component section of
the sitemap to make sure it's doing what you want.

Good luck!
Héryk




-Message d'origine-
De : Christoph Hermann [mailto:[EMAIL PROTECTED]
Envoyé : lundi 13 décembre 2004 09:57
À : [EMAIL PROTECTED]
Objet : Re: Basic Session and encode-url example


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Julien, Heryk schrieb:

Hello,

> I've been using urlEncode without authentication with success.
> However, I'm currently implementing authentication and I hope I won't
> be getting the bugs you are having.
> I guess someone else will be able to help you.

Could you give me some of the pages where you used encodeURL if this is 
possible?
Maybe i can try that out here and i will find what i'm doing wrong.

A+ :-)
Christoph
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBva3ZH8qhdtR4sUIRAg+FAJ47W5bi4JdqzRhGVk7zTGAGW5D/VQCfc0Tr
MQ1LJnFf4+/QL0OaeGJLFpk=
=drOC
-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]


Re: Portal stylesheets and sitemap parameters

2004-12-13 Thread Ralph Goers
portal-page.xsl is invoked in the portal pipeline, so passing sitemap
parameters is easy.  The "tab" stylesheets are configured in cocoon.xconf
and are invoked via the XSLTAspect during portal processing. The sitemap
is not involved in that.  However, you can pass parameters to these
stylesheets. They can be configured into the XSLTAspect definition or in
the portal layout as layout parameters. Both can contain references to
input modules.

HTH
Ralph


Philippe Guillard said:
> Hi all,
>
> I can get a sitemap parameter in portal-page.xsl, but can't find a way
> to get it in other stylesheets like linktab.xsl. Any idea?
>
> In the main portal sitemap i have :
>
> 
> 
>  src="{global:skin}styles/portal-page.xsl">
>  value="{session-attr:myAttribute}"/>
> 
> 
> 
> 
>
> In portal-page.xsl:
> 
> i get my parameter sucessfully
>
> But in linktab.xsl:
> 
> then   gives nothing. I don't
> understand how stylesheets are imbricated?
>
> Phil
>
> -
> 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: Portal stylesheets and sitemap parameters

2004-12-13 Thread Philippe Guillard
I get my response there so in case somebody need this too :
http://archives.real-time.com/pipermail/cocoon-devel/2004-October/037227.html
Philippe Guillard wrote:
Hi all,
I can get a sitemap parameter in portal-page.xsl, but can't find a way 
to get it in other stylesheets like linktab.xsl. Any idea?

In the main portal sitemap i have :
   

   
   
   
   

  
In portal-page.xsl:

i get my parameter sucessfully

But in linktab.xsl:

then   gives nothing. I don't 
understand how stylesheets are imbricated?

Phil
-
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: Usage of "form.createBinding" compared with "form.load"

2004-12-13 Thread Joerg Heinicke
On 13.12.2004 13:26, Philipp Rech wrote:
You need both. createBinding with the binding file name tells the forms 
framework how to bind, load and save tells what to bind to.

but it is still not clear since i don't use form.createBinding in my example
which is working. I just call load and save and the Sitemap tells the CForms
where the binding file is rigth?
No, somewhere it must be called. In the sitemap you only pass a 
parameter to the flow script. Somewhere this parameter must be read. If 
you use the default way (what I guess from your function call to 
handleForm()) it is done in the file Form.js, which is in 
src/blocks/forms/java/org/apache/cocoon/forms/flow/javascript (or after 
build in the webapp's lib dir in cocoon-forms-block.jar).

 
This call to handleForm is the secret, it does the rest for you.
Joerg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Cocoon session context load URIs -- Need help!

2004-12-13 Thread Julien, Heryk
It worked!

Thanks ;-)
Héryk Julien

-Message d'origine-
De : Adam Ratcliffe [mailto:[EMAIL PROTECTED]
Envoyé : dimanche 12 décembre 2004 18:36
À : [EMAIL PROTECTED]
Objet : RE: Cocoon session context load URIs -- Need help!


Hi Julien !

In your stylesheet you overlooked a step, it should look like:

  

  
  
  dop!

  

For a fuller explanation take a look at the session docs at the URL you
provided.

Cheers
Adam

-Original Message-
From: Julien, Heryk [mailto:[EMAIL PROTECTED]
Sent: Friday, 10 December 2004 7:13 a.m.
To: [EMAIL PROTECTED]
Subject: Cocoon session context load URIs -- Need help!


Hi all,
I would like to have a web application where I can initially load data from
a cocoon pipeline into my session context. I have successfully written a
style sheet were in two steps I create a session context (createcontext) and
then manually load data in it using the setxml tag.

Example 1.  Here is a simple pipeline and xslt example that is applied to an
empty xml file (dummy.xml) and outputs: "It
works".

The style sheet:

http://www.w3.org/1999/XSL/Transform";
xmlns:session="http://apache.org/cocoon/session/1.0"; >



It works
dop!




and the pipeline:



 

 
  




However I would like to fill my session context with a cocoon pipeline that
retrieves data from a database. I tried using the load attribute in the
createcontext tag without any success (  ).

Example 2. Here is a simple example that I can't get to work but should
output: "It works". I'm presently getting the
following output: "dop!". The same pipeline as
example 1 is used here also:


http://www.w3.org/1999/XSL/Transform";
xmlns:session="http://apache.org/cocoon/session/1.0";>



dop!




Here is the cocoon:/profileAnonyme pipeline output:


It works


Are there examples or more documentation available other then what is found
in the cocoon user docs
(http://cocoon.apache.org/2.1/developing/webapps/contexts.html)? Has anybody
successfully used the createcontext "load" and "save" attributes?

Cheers

Héryk Julien
Laboratoire de cartographie numérique et de photogrammétrie (LCNP)
Commission géologique du Canada, CGC-Québec
Ressources naturelles du Canada


-
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: Basic Session and encode-url example

2004-12-13 Thread Julien, Heryk
Hi,
I've been using urlEncode without authentication with success.
However, I'm currently implementing authentication and I hope I won't be
getting the bugs you are having. 
I guess someone else will be able to help you.

Cheers
Héryk


-Message d'origine-
De : Christoph Hermann [mailto:[EMAIL PROTECTED]
Envoyé : lundi 13 décembre 2004 09:23
À : [EMAIL PROTECTED]
Objet : Re: Basic Session and encode-url example


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Julien, Heryk schrieb:

Hello,

>> i'm trying to get a very simple session example working with cocoon,
>> but when i turn cookies off my session is lost even when i use
>>  in my sitemap.

>> Can you give me any hints why this (encodeurl) is not working? The
>> Coocoon examples (portal-fw) or my self-made authentication example
>> work with encodeURL (when i'm logged in).

>> Any Hint on what i'm doing wrong would really be appreciated.

> You could try this:
> 1. Did you add the transformer declaration in the sitemap?
>
>  src="org.apache.cocoon.transformation.EncodeURLTransformer">
>   
>   .*/@href|.*/@action|frame/@src
>  
> img/@src|(a/@href|iframe/@src)=.*adserver
> 

Even when i put this in the sitemap nothing changes.
My pages are in a subdir of the cocoon "samples" directory and the 
portal-fw example i.e. is working fine. Also if i add some sort of 
authentication it works _after_ i'm logged in.

> 2. Restart your browser once you turned your cookies off?

That did not help either :/

What i don't understand is that the encodeURL is working when i use 
authentication, but it is not working without.

Thanks for your help anyway
Christoph
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBvaW9H8qhdtR4sUIRAuwqAJ48axGw1HYMwAFRQ9cft8IfoJtBPgCfZaV9
cyUdpMdyh0gEJWUG/jn8Wfo=
=5g6I
-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]



Re: Basic Session and encode-url example

2004-12-13 Thread Christoph Hermann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Julien, Heryk schrieb:

Hello,

> I've been using urlEncode without authentication with success.
> However, I'm currently implementing authentication and I hope I won't
> be getting the bugs you are having.
> I guess someone else will be able to help you.

Could you give me some of the pages where you used encodeURL if this is 
possible?
Maybe i can try that out here and i will find what i'm doing wrong.

A+ :-)
Christoph
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBva3ZH8qhdtR4sUIRAg+FAJ47W5bi4JdqzRhGVk7zTGAGW5D/VQCfc0Tr
MQ1LJnFf4+/QL0OaeGJLFpk=
=drOC
-END PGP SIGNATURE-

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



Re: Usage of "form.createBinding" compared with "form.load"

2004-12-13 Thread Philipp Rech
hello,



thanks you Joerg that helped me a lot. And you are rigth about the default

way, but i wasn't aware of the function Form.js in this case. Good

to know where this file is, thanks!



my question remaning is how to bind several forms. do i have to call the
handleForm function seperatly for each form or can i pass several bindingURI's

and from-definitions in one sitemap match area.



thanks again...

regards from the Bodensee!

phil




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



Re: Basic Session and encode-url example

2004-12-13 Thread Christoph Hermann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Julien, Heryk schrieb:

Hello,

>> i'm trying to get a very simple session example working with cocoon,
>> but when i turn cookies off my session is lost even when i use
>>  in my sitemap.

>> Can you give me any hints why this (encodeurl) is not working? The
>> Coocoon examples (portal-fw) or my self-made authentication example
>> work with encodeURL (when i'm logged in).

>> Any Hint on what i'm doing wrong would really be appreciated.

> You could try this:
> 1. Did you add the transformer declaration in the sitemap?
>
>  src="org.apache.cocoon.transformation.EncodeURLTransformer">
>   
>   .*/@href|.*/@action|frame/@src
>  
> img/@src|(a/@href|iframe/@src)=.*adserver
> 

Even when i put this in the sitemap nothing changes.
My pages are in a subdir of the cocoon "samples" directory and the 
portal-fw example i.e. is working fine. Also if i add some sort of 
authentication it works _after_ i'm logged in.

> 2. Restart your browser once you turned your cookies off?

That did not help either :/

What i don't understand is that the encodeURL is working when i use 
authentication, but it is not working without.

Thanks for your help anyway
Christoph
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBvaW9H8qhdtR4sUIRAuwqAJ48axGw1HYMwAFRQ9cft8IfoJtBPgCfZaV9
cyUdpMdyh0gEJWUG/jn8Wfo=
=5g6I
-END PGP SIGNATURE-

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



RE: Basic Session and encode-url example

2004-12-13 Thread Julien, Heryk
H!
You could try this:
1. Did you add the transformer declaration in the sitemap?


  
  .*/@href|.*/@action|frame/@src
  img/@src|(a/@href|iframe/@src)=.*adserver



2. Restart your browser once you turned your cookies off?

Hopes this help.
Héryk

-Message d'origine-
De : Christoph Hermann [mailto:[EMAIL PROTECTED]
Envoyé : lundi 13 décembre 2004 08:30
À : [EMAIL PROTECTED]
Objet : Basic Session and encode-url example


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello List,

i'm trying to get a very simple session example working with cocoon, but 
when i turn cookies off my session is lost even when i use 
 in my sitemap.

Can you give me any hints why this (encodeurl) is not working? The 
Coocoon examples (portal-fw) or my self-made authentication example 
work with encodeURL (when i'm logged in).

In my sitemap i have the followind 2 pages:

- ---snip---
 
  
  
  
  
  
  

  
  
  
  
  
  
  
- ---snap---

The pages look like this:

- ---snip---
http://apache.org/cocoon/session/1.0";>
 Request test
 
   
   
 Page 1 -
 Page 2
   
   
  
  
  
  
  
Page: Page1
  
   
 

- ---snap---

Any Hint on what i'm doing wrong would really be appreciated.

Thanks in Advance
Christoph
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBvZlCH8qhdtR4sUIRAs4eAKCfrpqYTSuc+URLnmyfwn/kDd8SXwCgxHDi
JQGGcUCK/BrZw/X20jK+gb4=
=X7tR
-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]


Basic Session and encode-url example

2004-12-13 Thread Christoph Hermann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello List,

i'm trying to get a very simple session example working with cocoon, but 
when i turn cookies off my session is lost even when i use 
 in my sitemap.

Can you give me any hints why this (encodeurl) is not working? The 
Coocoon examples (portal-fw) or my self-made authentication example 
work with encodeURL (when i'm logged in).

In my sitemap i have the followind 2 pages:

- ---snip---
 
  
  
  
  
  
  

  
  
  
  
  
  
  
- ---snap---

The pages look like this:

- ---snip---
http://apache.org/cocoon/session/1.0";>
 Request test
 
   
   
 Page 1 -
 Page 2
   
   
  
  
  
  
  
Page: Page1
  
   
 

- ---snap---

Any Hint on what i'm doing wrong would really be appreciated.

Thanks in Advance
Christoph
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBvZlCH8qhdtR4sUIRAs4eAKCfrpqYTSuc+URLnmyfwn/kDd8SXwCgxHDi
JQGGcUCK/BrZw/X20jK+gb4=
=X7tR
-END PGP SIGNATURE-

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


Re: Usage of "form.createBinding" compared with "form.load"

2004-12-13 Thread Philipp Rech
> You need both. createBinding with the binding file name tells the forms 

> framework how to bind, load and save tells what to bind to.

> 

> Joerg





Thank you Jeorg, 

but it is still not clear since i don't use form.createBinding in my example
which is working. I just call load and save and the Sitemap tells the CForms
where the binding file is rigth? So why should I use
form.createBinding(binding.xml) ? My guess was that i dont have to declare this
in the Sitemap:

 

 

  

  

  

   



Otherwse "Binding.xml" woudld be declared twice? how would you handle the
binding for more than 1 form? Do i need several handeFrom sitemap entries as
above or could i put more bindingURI's and form-definitions as   and do my case switch within the mybinding function?



Thanks again,

phil







  

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



Re: Usage of "form.createBinding" compared with "form.load"

2004-12-13 Thread Joerg Heinicke
On 13.12.2004 12:34, Philipp Rech wrote:
function myBinding(form) {
   var bean = new Packages.foo.bar.cocoonBean();
   form.load(bean);
   form.showForm("registration-display-pipeline");
   form.save(bean);
   cocoon.sendPage("registration-success-pipeline", {"model": bean});
}

how does " form.createBinding("my_binding.xml"); " 
(which i found in the flowscript of the samples folder) work? Is it 
diffrent/better than my version? If i use form.createBinding
do i still have to use the same sitemap as above?
You need both. createBinding with the binding file name tells the forms 
framework how to bind, load and save tells what to bind to.

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


calling xReporter from flowscript

2004-12-13 Thread Paul Joseph
Hi,

I have been trying to call the xReporter reports from
Flowscript, (so that later on, once I get it
going, I can inject a variable into the
pipeline.)

I added the following to my sitemap, to make the call
to the flowscript:


  


  
  
  
  
  

The function Report in Report.js is as follows:

function Report() {
var userBean =
cocoon.session.getAttribute('userBean');
if (userBean != null) {
 cocoon.sendPage("en-US/datasources");
return true; 
}
else {
   errorPage("Too bad!", "try again!");
   return false;
}
}

I get this error:
org.apache.avalon.framework.CascadingRuntimeException:
"file:/C:/Tomcat
5.0/webapps/array/webtask/xreporter/Report.js", line
8: uncaught JavaScript exception: at Report
(file:/C:/Tomcat
5.0/webapps/array/webtask/xreporter/Report.js, Line
8): java.lang.IllegalStateException: Pipeline has
already been processed for this request

Any ideas? How should I be calling the xReporter
datasource from Flow?

thanks!
Paul




=
This communication, including attachments, is for the exclusive use of 
the addressee and may contain proprietary, confidential, or privileged
information.  If you are not the intended recipient, any use, copying,
disclosure, dissemination, or distribution is strictly prohibited.  If 
you are not the intended recipient, please notify the sender by return mail and 
delete this communication and destroy all copies.

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



Usage of "form.createBinding" compared with "form.load"

2004-12-13 Thread Philipp Rech
Hello Cocooners,



[Cocoon Version 2.1.6]



i have a question about the binding-framework. right know i use it like this:



-Sitemap---



   

  

  

  

   



---







-Flowscript 

function myBinding(form) {

   var bean = new Packages.foo.bar.cocoonBean();

   form.load(bean);

   form.showForm("registration-display-pipeline");

   form.save(bean);

   cocoon.sendPage("registration-success-pipeline", {"model": bean});

}



---



that works fine so far!

*My question:*



how does " form.createBinding("my_binding.xml"); " 

(which i found in the flowscript of the samples folder) work? Is it 

diffrent/better than my version? If i use form.createBinding

do i still have to use the same sitemap as above?



I am asking all this because I have a longer Flowscript that

switches (switch/case block) over serval forms and I wonder how 

to implement a flowscript and binding with ore than one form.



Thank you very much for your help!

phil


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



Re: Invalid Continuation ID

2004-12-13 Thread Jan Hoskens

Upayavira wrote:
Jan Hoskens wrote:
I've let him log out of the system (even restart the browser) but he 
still got the same error on that one form, but not on the other 
forms. I cannot reproduce this error, but I guided the person through 
some basic tests by phone conversation. This way I could let him edit 
other forms and restart the whole process, but still with the same 
result. (I got to add that by phone, you're never really sure the 
person is doing what you think you've said ;-)) So I'm trying to 
think of some extra things to check or test and to contact the person 
again.

One immediate question is "what is the continuation ID that is shown 
to be in error?" If he sees the same continuation ID each time, you 
know his browser is playing up, because Cocoon couldn't be serving the 
same continuation ID.
Shame on me not to think of that (looked in detail at one error only)! 
You're right, the same ID is popping up on the errors (logged over 
several days). So it's definitely the browser requesting an old flow ID 
(it's IE , as you could have guessed).

So now I'll need to configure their IE correctly, update it or even 
better : convince them to use firefox ;-).

Thanks a lot Upayavira!
Regards,
Jan
Has he/could he try the same thing with a different browser? Firefox, 
for example? Or on a different PC?

Regards, Upayavira
Upayavira wrote:
Probably simple.
The continuation is a short lived object, maybe 30 minutes, or so.
He has a form, that contains the continuation ID. When he submits 
it, he gets that error. You try to fix something, he then tries to 
resubmit it, and gets the same error. Now, of course he would, he's 
still got the same continuation ID embedded within the form he's 
looking at.

What happens if he logs out of the site, goes back in and finds his 
way to the faulty form. Does it still not work?

Regards, Upayavira
Jan Hoskens wrote:
Hi all,
I have a site working with cocoon 2.1.5 and cforms. everything 
appears to be fine, but today someone tried to access a particular 
form and got the following exception:

ERROR   (2004-12-10) 11:21.46:174   [sitemap.handled-errors] 
(/voorbereidingen/2010/Vb1_1_1_0_13_01_2005/continue.html) 
Ajp13Processor[8013][9]/PipelineNode: The continuation ID 
705b073d862e2d657e5b352b113451130f534f24 is invalid.
org.apache.cocoon.components.flow.InvalidContinuationException: The 
continuation ID 705b073d862e2d657e5b352b113451130f534f24 is invalid.

I tried the same from my end, but I did not get the exception 
(never had this problem). Stranger still is that the person can 
edit/view other forms,  but that one form always results in the 
same error when he tries to submit it. As far as I can see all the 
forms work in a similar way, and thus I'm a bit confused. How can 
one continuation work fine, while another one doesn't? And taking 
into account that it does work with all other pc/browser 
combinations??

Every hint is welcome here!
Kind regards,
Jan


-
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: Invalid Continuation ID

2004-12-13 Thread Upayavira
Jan Hoskens wrote:
I've let him log out of the system (even restart the browser) but he 
still got the same error on that one form, but not on the other forms. 
I cannot reproduce this error, but I guided the person through some 
basic tests by phone conversation. This way I could let him edit other 
forms and restart the whole process, but still with the same result. 
(I got to add that by phone, you're never really sure the person is 
doing what you think you've said ;-)) So I'm trying to think of some 
extra things to check or test and to contact the person again.
One immediate question is "what is the continuation ID that is shown to 
be in error?" If he sees the same continuation ID each time, you know 
his browser is playing up, because Cocoon couldn't be serving the same 
continuation ID.

Has he/could he try the same thing with a different browser? Firefox, 
for example? Or on a different PC?

Regards, Upayavira
Upayavira wrote:
Probably simple.
The continuation is a short lived object, maybe 30 minutes, or so.
He has a form, that contains the continuation ID. When he submits it, 
he gets that error. You try to fix something, he then tries to 
resubmit it, and gets the same error. Now, of course he would, he's 
still got the same continuation ID embedded within the form he's 
looking at.

What happens if he logs out of the site, goes back in and finds his 
way to the faulty form. Does it still not work?

Regards, Upayavira
Jan Hoskens wrote:
Hi all,
I have a site working with cocoon 2.1.5 and cforms. everything 
appears to be fine, but today someone tried to access a particular 
form and got the following exception:

ERROR   (2004-12-10) 11:21.46:174   [sitemap.handled-errors] 
(/voorbereidingen/2010/Vb1_1_1_0_13_01_2005/continue.html) 
Ajp13Processor[8013][9]/PipelineNode: The continuation ID 
705b073d862e2d657e5b352b113451130f534f24 is invalid.
org.apache.cocoon.components.flow.InvalidContinuationException: The 
continuation ID 705b073d862e2d657e5b352b113451130f534f24 is invalid.

I tried the same from my end, but I did not get the exception (never 
had this problem). Stranger still is that the person can edit/view 
other forms,  but that one form always results in the same error 
when he tries to submit it. As far as I can see all the forms work 
in a similar way, and thus I'm a bit confused. How can one 
continuation work fine, while another one doesn't? And taking into 
account that it does work with all other pc/browser combinations??

Every hint is welcome here!
Kind regards,
Jan


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


Portal stylesheets and sitemap parameters

2004-12-13 Thread Philippe Guillard
Hi all,
I can get a sitemap parameter in portal-page.xsl, but can't find a way 
to get it in other stylesheets like linktab.xsl. Any idea?

In the main portal sitemap i have :
   

   
   
   
   

   

In portal-page.xsl:

i get my parameter sucessfully
But in linktab.xsl:

then   gives nothing. I don't 
understand how stylesheets are imbricated?

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


RE: Cocoon hosting in Australia

2004-12-13 Thread Thomas . Zirnsack

Return Receipt
   
Your  RE: Cocoon hosting in Australia  
document   
:  
   
was   Thomas Zirnsack/DS/GFK/DE
received   
by:
   
at:   13/12/2004 12:36:08  
   





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



Re: Rép. : Forms in Cocoon

2004-12-13 Thread Derek Hohls
My 2c re disadvantage of use of Cforms in DB projects:

* "Ease of implementation" - this is relative; the disadvantage
of learning someone's approach is quickly balanced by the extra
support you get for it; large-scale "handmade" applications are
notoriously quirky and difficult to debug.  An established OS 
project like Cocoon brings a lot of help with it.

* "Development of forms is longer" - this can easily be sped 
up through eg. use of custom code for generation of diff. steps
(BTW, those steps are there for a very good reason - "sep. of
concerns"! - removing them may well speed up the process
initially but at the cost of extra maintenance later...

* The extra steps do *not*  (in my experience, anyway) add
noticeably long extra rendering time (esp. once caching kicks in).  
I would  argue that if you are going to follow an XML-XSL-HTML 
path anyway, then the extra "overhead" of CForms is minimal.

The main disadvantage of use of CForms would be that it might
get dropped or radically reengineered in a future Cocoon (but
that's the risk of living at the leading edge!!)

>>> [EMAIL PROTECTED] 2004/12/13 12:44:32 PM >>>
Hi,
Forms were a long discussion on our project. Questions were should we use the 
Cocoon framework (Cforms, Flowscript, JXTemplate) or should we use a simplest 
process like: define forms in XML and use XSL*€*s to transform and display the 
form.
In our project we need to:
-   Read and write data*€*s to database;
-   We don*€*t have a lot of validations on client side;
-   The workflow is made by the user;

The advantages of Cocoon framework are:
-   It*€*s documented;
-   It cover a wide range of problems;
-   It will probably continue to evolve;
-   XSL*€*s are provided we just  need some adaptations  

The disadvantage of Cocoon framework (from our point of view)
-   It*€*s not so easy to implement (vs to solution XML->XSL->HTML)
-   The provided XSL doesn*€*t work with XSLTC (performance)
-   The development of  form is longer (more steps)
-   The transformation process to get the final HTML form is longer 
(performance)

Conclusion in our case we choose to create our own XSL*€*s and works with the 
following process:
-   Forms are defined in XML (with our own tags);
-   We create XSL*€* to transform into HTML;

I hope this help.

Willy



>>> [EMAIL PROTECTED] 12/12/04 19:35 >>>
I'm working on a page with form that update a database (Xindice).

The job is simple, but i'm working a lot because the forms, the 
database, and the flow are various. I'm trying a lot this database and 
that other, this esql solution and the native database, tha cform and 
soon and soon...

Can anything send me any suggestions?  What is the better way? What is 
the better solution in form's management?

Thanks

-
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] 



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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


Rép. : Forms in Cocoon

2004-12-13 Thread Willy Reinhardt
Hi,
Forms were a long discussion on our project. Questions were should we use the 
Cocoon framework (Cforms, Flowscript, JXTemplate) or should we use a simplest 
process like: define forms in XML and use XSL*€™s to transform and display the 
form.
In our project we need to:
-   Read and write data*€™s to database;
-   We don*€™t have a lot of validations on client side;
-   The workflow is made by the user;

The advantages of Cocoon framework are:
-   It*€™s documented;
-   It cover a wide range of problems;
-   It will probably continue to evolve;
-   XSL*€™s are provided we just  need some adaptations  

The disadvantage of Cocoon framework (from our point of view)
-   It*€™s not so easy to implement (vs to solution XML->XSL->HTML)
-   The provided XSL doesn*€™t work with XSLTC (performance)
-   The development of  form is longer (more steps)
-   The transformation process to get the final HTML form is longer 
(performance)

Conclusion in our case we choose to create our own XSL*€™s and works with the 
following process:
-   Forms are defined in XML (with our own tags);
-   We create XSL*€™ to transform into HTML;

I hope this help.

Willy



>>> [EMAIL PROTECTED] 12/12/04 19:35 >>>
I'm working on a page with form that update a database (Xindice).

The job is simple, but i'm working a lot because the forms, the 
database, and the flow are various. I'm trying a lot this database and 
that other, this esql solution and the native database, tha cform and 
soon and soon...

Can anything send me any suggestions?  What is the better way? What is 
the better solution in form's management?

Thanks

-
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: FlowScript: cocoon.createSession() is not a function

2004-12-13 Thread Bertrand Delacretaz
Le 13 déc. 04, à 09:46, <[EMAIL PROTECTED]> a écrit :
...    cocoon.createSession();
 
and the the following error:
org.apache.avalon.framework.CascadingRuntimeException: createSession 
is not a function
cause: TypeError: createSession is not a function
 
Why i cant use the createSession function?
Is it written in another way, or do I have to change any configuration?
You don't need it anymore in 2.1.5.1, a session is created 
automatically when a global javascript variable is created.

-Bertrand


smime.p7s
Description: S/MIME cryptographic signature


Re: FlowScript: cocoon.createSession() is not a function

2004-12-13 Thread george georgovassilis
I can't see the createSession method in the documentation 
(http://localhost:/docs/userdocs/flow/api.html#session) so I guess 
it's not there. I think you don't need to call it anyway, just setting 
an attribute (cocoon.session.setAttribute) should automatically create 
it, if it has not already been done so.

Hope that helps
G.
I am using Cocoon 2.1.5.1 and got the following problem:
 
FlowScript: search
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js");
 
function search() {
var form = new Form("forms/search_definition.xml");
form.showForm("search-display");
var collection = "Crawler";
var pagesize = "5";
var pagestart = "1";
var model = form.getModel();
cocoon.createSession();
 
and the the following error:
org.apache.avalon.framework.CascadingRuntimeException: createSession 
is not a function
cause: TypeError: createSession is not a function
 
Why i cant use the createSession function?
Is it written in another way, or do I have to change any configuration?
 
Thanks for any help

Reto Peter

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


FlowScript: cocoon.createSession() is not a function

2004-12-13 Thread reto.peter



I am using Cocoon 
2.1.5.1 and got the following problem:
 
FlowScript: 
search
cocoon.load("resource://org/apache/cocoon/forms/flow/_javascript_/Form.js");
 
function search() 
{    var form = new 
Form("forms/search_definition.xml");
    
form.showForm("search-display");
    
var collection = "Crawler";    var pagesize = 
"5";    var pagestart = "1";
    
var model = form.getModel();    
cocoon.createSession();
 
and the the 
following error:
org.apache.avalon.framework.CascadingRuntimeException: createSession is 
not a function
cause: TypeError: createSession is not a 
function
 
Why i cant use the 
createSession function?
Is it written in 
another way, or do I have to change any configuration?
 
Thanks for any 
help
Reto Peter