Re: svg2png question

2004-10-26 Thread Derek Hohls
Craig I had no problems with a call like: What happens you call the pipeline directly - eg. http://localhost:8080/cocoon/svg/wire.png I also had no problems with the pipeline per se; just check it comes *before* the static image handler. Derek >>> [EMAIL PROTECTED] 2004/10/27 01:32:16 AM

Re: Registering own Authentication Manager

2004-10-26 Thread Ralph Goers
Frangos, Nick (SAPOL) wrote: What happens if the XML in your authentication pipeline like this: As I said, the example I gave only works with a single role. This is my situation, how can the ParameterSelector be used in this case with the example code you provided?. It can't, although I could

RE: Registering own Authentication Manager

2004-10-26 Thread Frangos, Nick (SAPOL)
What happens if the XML in your authentication pipeline like this: Unique ID of the user in the system read-access write-access Any additional optional information can be supplied here. This will be stored in the session for later retrieval T

Re: Registering own Authentication Manager

2004-10-26 Thread Ralph Goers
You don't need a new selector. Return the user's role in the XML from your authentication pipeline like this: Unique ID of the user in the system rolename Any additional optional information can be supplied here. This will be stored in the session for later retrieval

Help with Modular Database definition

2004-10-26 Thread Gerry Kaplan
I am trying to create a sitemap that, after validating a form, will add the fields to a MySQL database. The database definitions are as follows: imweb

RE: Sharing sessions and authentication across sites

2004-10-26 Thread Frangos, Nick (SAPOL)
If you have "different sites" under the same webserver installation then sharing the authentication information between cocoon apps should be ok. If each cocoon app is under its own webserver installation then sharing information like user authentication become more problematic. Now you have to st

RE: Registering own Authentication Manager

2004-10-26 Thread Frangos, Nick (SAPOL)
An Authentication Manager which handles roles would be the better way to do this, as you would not have to write any flow script. All that would be required is to pass in the role to the Authentication Manager, to gain access in a specific area of the sitemap. Is there any plans by Carsten and co.

svg2png question

2004-10-26 Thread Craig Christophersen
Hello: I am trying to render an svg image as png in an html page. Sitemap fragment is below.   In my xsl simply using does not get the job done (as it does with a map:read reference to static images in the sitemap). How should I reference this pipeline in my xsl?     Craig Christopherse

Re: Jboss 3.2.6 - problem with flowscript global variables and session objects

2004-10-26 Thread beyaNet
Hi, further to my original message, does anyone know which block(s) handles persistence in cocoon? regards Andrew On 26 Oct 2004, at 23:49, beyaNet wrote: Hi, i have just transfered my cocoon site from tomcat to JBoss 3.2.6 running cocoon 2.1.5.1. I have discovered that global variables or even

Jboss 3.2.6 - problem with flowscript global variables and session objects

2004-10-26 Thread beyaNet
Hi, i have just transfered my cocoon site from tomcat to JBoss 3.2.6 running cocoon 2.1.5.1. I have discovered that global variables or even created sessions do not persist from page to page. i.e. 1. var my GlobalVar = 1 will not persist and neither will 2. //Create session variable cocoon.cre

Re: JspGenerator doesn't work from flow but does otherwise...

2004-10-26 Thread Garrick Dasbach
Joerg, I just ran into this same issue. Have you, or anyone else, found any solution/workaround to this problem, short of no includes in form pages? Garrick Joerg Heinicke wrote: On 02.07.2004 17:01, Terry Brick wrote: >>> Weird problem. I have a small test JSP that I'm accessing using >>> JspG

Re: Attachment: Graphical Overview On The Authentication Framework

2004-10-26 Thread Antonio Gallardo
Hi Dylan: Thanks for the help. Another posibilty is to add a bugzilla report and attach the file there. ;-) Best Regards, Antonio Gallardo Dylan Proulx dijo: > I tried to reply with an OpenOffice Impress attachment, but because it > is a ZIP file composed of XML files, it was rejected by the lis

Re: Attachment: Graphical Overview On The Authentication Framework

2004-10-26 Thread Joerg Heinicke
On 26.10.2004 22:21, Dylan Proulx wrote: I tried to reply with an OpenOffice Impress attachment, but because it is a ZIP file composed of XML files, it was rejected by the list. I opened it with Impress and it looked pretty good, but if you really do need a converted copy, I'll send it to you direc

Re: Attachment: Graphical Overview On The Authentication Framework

2004-10-26 Thread Dylan Proulx
I tried to reply with an OpenOffice Impress attachment, but because it is a ZIP file composed of XML files, it was rejected by the list. I opened it with Impress and it looked pretty good, but if you really do need a converted copy, I'll send it to you directly. Dylan On Tue, 2004-10-26 at 13:05,

Re: PDF without Images

2004-10-26 Thread J.Pietschmann
foxmask wrote: I forgot to say ; that even FOP+Jimi failed to make the PDF file. i'll try to install Jimi in Forrest first. Jimi isn't needed for processing JPEG images. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: PDF without Images

2004-10-26 Thread J.Pietschmann
foxmask wrote: when i access foo.pdf ; i see no images. ... any suggestion ? Check the Cocoon logs for mesages indicating that the PDF serializer can't find the image files. Ther should be some. J.Pietschmann - To unsubscribe, e-ma

Re: Cocoon and JDK 1.5

2004-10-26 Thread Ralph Goers
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109710228801931&w=2 and http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109691665429634&w=2 Bert Van Kets said: > This "rant" is about Cocoon 2.1.5 > > The biggest problem using JDK 1.5 is the use of "enum" in the source > code. This variable or

Re: Attachment: Graphical Overview On The Authentication Framework

2004-10-26 Thread Antonio Gallardo
Hi Merico: Can you provide an OpenOffice attachment? ;-) Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Sharing sessions and authentication across sites

2004-10-26 Thread Oscar Picasso
Thanks for the idea. Actually I don't use apache httpd, but something that should behave similarly I think. I have only one servlet webapp (actually the cocoon instance) which already serves the requests to the different sites. The problem is that, even if the different sites are served by the s

Cocoon and JDK 1.5

2004-10-26 Thread Bert Van Kets
This "rant" is about Cocoon 2.1.5 The biggest problem using JDK 1.5 is the use of "enum" in the source code. This variable or object name is not allowed any more as enum is a new type of variable in JDK 1.5. There are however still quite a lot of uses of "enum" in the Cocoon source. First I rebui

Re: Sharing sessions and authentication across sites

2004-10-26 Thread Bert Van Kets
Use Apache httpd in front of your servlet engine and have mod_proxy pipe the requests from httpd to 1 servlet webapp. The session can remain in Tomcat while Cocoon uses different stylings or sub sitemaps. Just a thought. Bert On Tue, 2004-10-26 at 19:27, Oscar Picasso wrote: > Hi, > > I have a

Sharing sessions and authentication across sites

2004-10-26 Thread Oscar Picasso
Hi, I have a cocoon application that serves different sites. For example: htpp://first.com htpp://second.com htpp://third.com A request to any of the site is handled by the same sitemap hierarchy. Each of the site specific snippet is handled either by using an XXHost matcher, or by testing the r

Re: Best Practice Connecting to n Databases

2004-10-26 Thread Markus Vaterlaus
Hi Nick, hi list, thank you for the examples. I use instead of the SQL transformer the ESQL-Taglib. However, this shouldn't be a problem. Before I start, does anybody know if the connections to the databases remain established even after the selection of another DB? If I'm right, the connection re

Re: Registering own Authentication Manager

2004-10-26 Thread JD Daniels
Uh oh.. why is that a "bad way"? The authentication manager has always confused the heck out of me, I modified HibernateAuthenticator.java from the sample on the wiki so that it doesn't write any role information, scrapped all the configurationmanager stuff, made a java user object with a Set

Re: PDF without Images

2004-10-26 Thread foxmask
I forgot to say ; that even FOP+Jimi failed to make the PDF file. i'll try to install Jimi in Forrest first. On Tue, 26 Oct 2004 17:21:23 +0200, foxmask <[EMAIL PROTECTED]> wrote: > My images are in JPEG. > > With FOP 2.0.25 ; at the end of the parse ; FOP failed to build the PDF file. > With F

Re: PDF without Images

2004-10-26 Thread foxmask
My images are in JPEG. With FOP 2.0.25 ; at the end of the parse ; FOP failed to build the PDF file. With Forrest , i have an error page when trying to access to the PDF file (when clicking on the PDF icon on the html page) With Cocoon ; i have the pdf without images. I'll see if the faq of forres

RE: PDF without Images

2004-10-26 Thread Bart Molenkamp
Is your image SVG? In that case, the resulting XSL:FO should look like: ... Otherwise, have a look at how Forrest includes images (also PNG and JPEG etc) in PDF's: http://forrest.apache.org/faq.html#pdf_images I think you could discover by looking at the XSL-FO stylesheet in the common sk

PDF without Images

2004-10-26 Thread foxmask
Hi, I have some docbook file which contain images. when i access foo.xhtml i can see my images in the xhtml page when i access foo.pdf ; i see no images. tips: i use xsl from Docbook 4.2 any suggestion

Re: Best Practice Connecting to n Databases

2004-10-26 Thread Nick Goupinets
Hi Markus, I don't think there should be any problems to perform what you suggest. I can only add that it's not necessary to "hardcode" the connection information. You can pass it dynamically in either database url or as params to SQL transformer. For example, all three queries are equivalent:

Attachment: Graphical Overview On The Authentication Framework

2004-10-26 Thread Merico Raffaele
here comes the attachment ... Raffaele Merico LESS Informatik AG Böhnirainstrasse 14 CH-8800 Thalwil devel-cocoon-auth-fw-overview.ppt Description: MS-Powerpoint presentation - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Graphical Overview On The Authentication Framework

2004-10-26 Thread Merico Raffaele
Dear community, dear Carsten Ziegler By reading your doc. on the "Authentication Framework" I have created a one-page-graphical-overview covering 60-80% of this theme (see MS Power Point Attachment). To Carsten and to the community: if you think that this overview is usable: - either correct it by

Re: [sorry but not all done yet] RE: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Johannes Textor
hi philipp, var mail = ""; //here is the boolean field mail "mail" is a booleanfield, so you have to set either var mail = true; or var mail = false; as you can see from the error message: java.lang.RuntimeException: Cannot set value of boolean field "test" to a non-Boolean value

RE: [sorry but not all done yet] RE: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Bart Molenkamp
Philipp, If you want to use one big form, or multiple forms depends on what your target users (the ones you are developing for) want (I think). If you want to use two or more forms, no problem. Remember that a form instance doesn't lose it's values. E.g. form1 = new Form("test.xml"); while (true)

RE: [sorry but not all done yet] RE: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Philipp Rech
hello again! thanks Bart i will try that too. The general problem was posted by me before ( but nobody answered that mail yet): re post okay the scenario is a CForm form that goes over several pages. Wizard or Registration like. Here I was wo

Re: [sorry but not all done yet] RE: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Philipp Rech
okay my from definition and template look almost like this http://cocoon.apache.org/2.1/userdocs/forms/sample.html the only thing different is that they are split up in two pages thus two from definitions and templates. the reason for all that is to be able to go back to the first page change some

RE: [sorry but not all done yet] RE: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Bart Molenkamp
I don't know if I get your question right, but this may help: I'm using a similair approach in my project: first show form 1, then check for some condition and see if it must show form 2, then show a page with results with the option to edit the forms again. I've done it something like: form1 = ne

Re: [sorry but not all done yet] RE: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Johannes Textor
hi philipp, the error message seems quite clear, you have to supply a boolean value (true or false) to a booleanfield. if you did that it's maybe a javascript-java-interaction problem. can you post the actual code that generated the error message ? from below i can only see you try to set the field

[sorry but not all done yet] RE: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Philipp Rech
sorry i was too fast... the solution var test; form = new Form("my-form.xml"); wid = form.lookupWidget("test"); wid.setValue(test); form.showForm("registration-display-pipeline"); var test = cocoon.request.test; only works fine with input field widgets but not with booleanfield widgets. The

Best Practice Connecting to n Databases

2004-10-26 Thread Markus Vaterlaus
Hi all, I'm keen to now your experiences and best practices for the following situation: I need to be able to select one out of n databases and query it. N is actually a number around 50. The queries are the same on each database. All information relevant to the access to such a database (user na

[done] RE: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Philipp Rech
thank you Bart it works now! what i like most about Cocoon is the community of users and developers! thanks guys! regards, phil > No, the code belongs to your flowscript. > > var name = "Cocoon"; > > form = new Form("my-form.xml"); > wid = form.lookupWidget("name"); > wid.setValue(name);

RE: Registering own Authentication Manager

2004-10-26 Thread Hugo Burm
I needed something like this, so I used the standard flow example to do authentication with the default Authentication manager and then implemented some "after-burner" in flow script that checked whether the role of the user (which was already authenticated at that point) had sufficient rights for

RE: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Bart Molenkamp
No, the code belongs to your flowscript. var name = "Cocoon"; form = new Form("my-form.xml"); wid = form.lookupWidget("name"); wid.setValue(name); ... form.showForm("form-pipe"); ... > > Thank you Bart, Gunter and Nacho! > > still i am not shure how to use this: > > nameWidget = form.looku

RE: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Philipp Rech
Thank you Bart, Gunter and Nacho! still i am not shure how to use this: nameWidget = form.lookupWidget("name"); nameWidget.setValue(name); can i put this in my Flowscript? Again i want to pass a variable from a flowscript and set it as default value for the widget. I guess the code above belongs

RE: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Bart Molenkamp
I believe that getWidget() is deprecated. You should use lookupWidget() instead. E.g. nameWidget = form.lookupWidget("name"); nameWidget.setValue(name); and with v2 of the javascript API, you could write: var form = new Form("form1.xml"); var wid = form.getWidget(); wid.name.value = name; HTH,

Re: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Gunter D'Hondt
Widget nameWidget = form.getWidget("name"); nameWidget.setValu(name); Gunter "Philipp Rech" <[EMAIL PROTECTED]> 26-10-2004 11:29 Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject pass a variable from flowscript into cfrom text input field Hello, how c

Re: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Nacho Jimenez
Philipp Rech wrote: Hello, how can i pass a variable from my flowscript into cfrom text input field (as a default value)? In the Flow it would be like var name = "stefano"; and the CForm would be Name: So when the user opens the page, "stefano" is written in the field. The

pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Philipp Rech
Hello, how can i pass a variable from my flowscript into cfrom text input field (as a default value)? In the Flow it would be like var name = "stefano"; and the CForm would be Name: So when the user opens the page, "stefano" is written in the field. The value has to

Re: Howto drive response payload directly

2004-10-26 Thread Ugo Cei
Il giorno 26/ott/04, alle 08:54, Leszek Gawron ha scritto: Mark Lundquist wrote: Hi, I have a Java object persisted using Hibernate... it contains an image (java.sql.Blob) that I need to serve. I can get the object in flowscript, now I just need to stream out this data (e.g. "image.getBinaryStre