Re: very basic JXTemplate question

2004-05-13 Thread Derek Hohls
Bear in the mind the use you making of it: JXTemplate*Generator* (vs Transformer) - my basic conceptual understanding of this type of approach is: * generator - data structure only (XML) * (final transformer) - layout, say in HTML (with DIV's) with styling and presentation in CSS Obviously other

Cocoon FOM objects

2004-05-13 Thread Tony Edwards
Hi Cocooners, I'm a little confused. I'm trying to upload an xml file and process it through the sitemap using Flow. I've hacked the file upload example to suit my needs and I've got the file being uploaded to my 'upload-dir' which I've set in web.xml. I've got some code from an xsp I had lying a

Cocoon CLI Command Line Interface - Basic Question

2004-05-13 Thread David Swearingen
I'm trying to get Cocoon CLI to work.  I've scoured all the documents on this, but can't figure out how cli knows where to find my sitemap.  I have cocoon up and running just fine under Tomcat as a web application.   What I need is a very basic command line -- which commands are REQUIRED to simply

Re: Extending ESQL - how (if at all)

2004-05-13 Thread Jeff Jones
That was easy! Your simple "wrapper" approach works very well, and the cast to java.sql.Timestamp isn't necessary. I'll keep this approach in mind as I go forward. Many thanks for the help!

Re: Extending ESQL - how (if at all)

2004-05-13 Thread Christopher Painter-Wakefield
There are a couple of ways I think are easier to extend ESQL.  In particular, I think it is useful to have all of your extensions in a separate place, outside the jar file.  Otherwise, it is easy to lose track of the changes you have made.  So one option is to bring the esql.xsl outside the jar, a

Re: very basic JXTemplate question

2004-05-13 Thread defe
Joerg Heinicke wrote: On 13.05.2004 20:22, defe wrote: Hi, conceptualy, should i combine jxtemplates with further xsl transformations, or is it better to put the presentation code directly into jxtemplates? what's the common use? It depends :-) The more you might need to reuse a template the

Re: Query reg actions in form

2004-05-13 Thread Joerg Heinicke
On 13.05.2004 11:02, [EMAIL PROTECTED] wrote: Hi all, We have an action in repeater widget on a form. How should onclick event be handled for the action in the repeater. Don't understand the question ... Joerg - To unsubscribe,

Re: Bug in jx:macro?

2004-05-13 Thread Joerg Heinicke
On 13.05.2004 12:53, Jan Harms wrote: BTW, whats the "standard procedure" for reporting bugs? Shall I post that to the dev-list? Make an entry in bugzilla? If it is that obvious you can add it directly to bugzilla, otherwise posting first on users list and - if there is no reaction - later on the

Extending ESQL - how (if at all)

2004-05-13 Thread Jeff Jones
Hello all. I'd like to use XSP/ESQL to retrieve a date from a database (might be Oracle or MySQL) in "Unix epoch" format, i.e. milliseconds since 1/1/1970. Unfortunately, that's not a format available in java.text.SimpleDateFormat, so it doesn't seem possible to retrieve it using the tag. I know

Re: very basic JXTemplate question

2004-05-13 Thread Joerg Heinicke
On 13.05.2004 20:22, defe wrote: Hi, conceptualy, should i combine jxtemplates with further xsl transformations, or is it better to put the presentation code directly into jxtemplates? what's the common use? It depends :-) The more you might need to reuse a template the more abstract its code

Re: UnnamedSelector: ComponentSelector Attempted to retrieve component with null hint

2004-05-13 Thread Joerg Heinicke
section seems to be missing. This has been added in 2.1 (or better said moved from cocoon.xconf in 2.0 to sitemap.xmap in 2.1). http://cocoon.apache.org/2.1/installing/updating.html#Pipelines+configuration+in+the+sitemap Using 2.1.5 that will be released tomorrow you will get a better error mes

Re: cforms validation bug?

2004-05-13 Thread Joerg Heinicke
On 13.05.2004 14:33, Isidro Vila Verde wrote: Not exactly. It means without a it break the validation in the complete form. If I comment out the node it won't work also. Works for me. Tested it with cforms sample form1 and form1.flow. Joerg

Re: Forms Template Transformer

2004-05-13 Thread Markx . Johnson
I thought the showForm function calls cocoon.sendPageAndWait. Mark Joerg Heinicke <[EMAIL PROTECTED]> 05/13/2004 01:07 PM Please respond to users                 To:        [EMAIL PROTECTED]         cc:                 Subject:        Re: Forms Template Transformer On 13.05.2004 14:16,

very basic JXTemplate question

2004-05-13 Thread defe
Hi, conceptualy, should i combine jxtemplates with further xsl transformations, or is it better to put the presentation code directly into jxtemplates? what's the common use? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Forms Template Transformer

2004-05-13 Thread Joerg Heinicke
On 13.05.2004 14:16, [EMAIL PROTECTED] wrote: Hi, We are using FormsTemplateTransformer. The sitemap contains the following entries: - My flowscript contains the following code: - function test() { var form = new Form("forms/test-def.xml"); form.showForm("forms/Test"); } We get the followi

cocoon 2.1.5 cannot find classes located outside cocoon dir. struct.

2004-05-13 Thread Peter
Hi, I am running cocoon together with jboss 3.2.3, (servlet 2.3 web container). My Cocoon implementation must access jar (eXist xmldb) which are located outside the Cocoons directory structure. How can I force Cocoon to accept this other location for the jar (exist-optional.jar) ? I have tr

Re: source writer transformer

2004-05-13 Thread keith d. zimmerman
Joerg Heinicke wrote: It does not sound undoable. You want to rewrite the original document and replace the original image references with references to your stored images? And using Cocoon as proxy only (for xhtml *and* images) and letting the rest be done by caching does not help? The latter

Re: source writer transformer

2004-05-13 Thread Joerg Heinicke
On 13.05.2004 15:05, keith d. zimmerman wrote: Ok, as has been suggested, simple questions, single question per e-mail. Can I do this? Http Generator Transformer to basically aquire a particular tag within the doc. something or the other to go "get" the image source writing transformer to store

CForms radiobuttons

2004-05-13 Thread Jan Hoskens
Hi, I'm coping with the following situation: a mix of radiobuttons and fields, eg: * option 1 * option 2 [textbox] * [textbox] * option 3 [listbox] think of something like: your favourite drink : * milk * wine, especially [chardonay] (textbox) * coffee [with milk|with sugar| with milk and sugar

RE: Problem with losing session context 'authentication' - lookin g fo r workaround or bugfix

2004-05-13 Thread H . vanderLinden
Hi Antonio, I'll answer all questions here, and add the relevant code below (since it's an enormous lot of code). The "getObject()" function is something I get from my backend. It goes too far to explain it or to add the code (also a lot). I'll add the relevant part of the sitemap and the javascri

UnnamedSelector: ComponentSelector Attempted to retrieve component with null hint

2004-05-13 Thread Dave Xiao
Hi all, I'm new to cocoon. When I composed my first cocoon example, I met with a problem. Below is the details. I've successfully installed cocoon 2.1.4 on my machine (win2000 professional) with jdk 1.4.2_03. Note this version doesn't interact with tomcat as previous ones. Instead, it uses jett

JXTemplateGenerator: strange behaviour with jx:set

2004-05-13 Thread Jan Harms
Hi, I just found out that jx:set does not quite behave like I expected. Please consider the following JXTemplate snippets: 1 and 2 should be equivalent, shouldn't they? Everything is fine as long as the request attribute 'foo' is available. However, if this is not the case (i

RE: Problem with losing session context 'authentication' - looking fo r workaround or bugfix

2004-05-13 Thread Antonio Gallardo
Hi Helma: [EMAIL PROTECTED] dijo: >> > Setup: >> > - default Cocoon root sitemap with automounted subsitemap of my app. Hmm. Maybe here is the problem. Can you provide the sitemap.xmap of configured auth-fw? >> > - authentication-fw setup like the sample with the >> flowscripts (auth.js). >> >

Re: source writer transformer

2004-05-13 Thread keith d. zimmerman
Joerg Heinicke wrote: On 11.05.2004 22:31, keith d. zimmerman wrote: Ok, as has been suggested, simple questions, single question per e-mail. Can I do this? Http Generator Transformer to basically aquire a particular tag within the doc. something or the other to go "get" the image source writin

Re: retrieve user in logout action

2004-05-13 Thread Flavio Palumbo
Hi Nacho, thank you for the replay, I tried to follow your cues but I didn't solve it. I tried to modify the authentication block samples sitemap as follow :

RE: cforms validation bug?

2004-05-13 Thread Isidro Vila Verde
-> -Mensagem original- -> De: Joerg Heinicke [mailto:[EMAIL PROTECTED] -> Enviada: quinta-feira, 13 de Maio de 2004 00:42 -> Para: [EMAIL PROTECTED] -> Assunto: Re: cforms validation bug? -> -> On 12.05.2004 00:53, Isidro Vila Verde wrote: -> -> > -> > Indicate which 2 of t

Forms Template Transformer

2004-05-13 Thread anand.vasudevan
Hi,   We are using FormsTemplateTransformer.   The sitemap contains the following entries: -                                   My flowscript contains the following code: -   function test() {        var form = new Form("forms/test-def.xml")

RE: Problem with losing session context 'authentication' - lookin g fo r workaround or bugfix

2004-05-13 Thread H . vanderLinden
Hi Joerg, Yes, I have done some remote debugging, and I'm not sure if I've come across the actual problem (my knowledge of the inner workings are too limited for that). I did notice however that the o.a.c.components.flow.javascript.fom.FOM_JavaScriptInterpreter$ThreadScope has a variable "useSessi

Bug in jx:macro?

2004-05-13 Thread Jan Harms
Hi, I noticed a strange behaviour in the JXTemplateGenerator (cocoon 2.1.4). If you put a whitespace and a comment after after a jx:parameter, you'll get an exception: do something do something The exception stacktrace starts with: org.xml.sax.SAXParseException: not al

internal cocoon NPE'S (was Re: Errors in XSLT transformation)

2004-05-13 Thread Geert Van Damme
Did anyone experience this problem in Cocoon2.1 ? No that this is an option at the moment (not my decision) but I might install it and run the same tests... anyone ? >>> [EMAIL PROTECTED] 05/13/04 11:29am >>> Eureka !!! Geert Van Damme wrote: > Hi all, > > I can't seem to find a lot of infor

internal cocoon NPE'S (was Re: Errors in XSLT transformation)

2004-05-13 Thread Jorg Heymans
Eureka !!! Geert Van Damme wrote: Hi all, I can't seem to find a lot of information about this, so I hope someone can help me out. my posts on http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=108365906801452&w=2 and http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=108375094018136&w=2 I'm using

RE: Getting started with flowscript

2004-05-13 Thread Antonio Gallardo
David Leangen dijo: > > Holy service!! > > Thanks Antonio and Christian for the ultra-quick 911!! :-) For more info, you can see: http://wiki.cocoondev.org/Wiki.jsp?page=GettingStartedWithFlow Best Regards, Antonio Gallardo -

Re: AW: Errors in XSLT transformation

2004-05-13 Thread Geert Van Damme
Hi Mike, thanks for the answer, but the syntax seems to be correct as in about 99% of the requests, the PDF is generated correctly. I checked the XSL file in XMLSpy and it seems to be correct. I use GVim for writing xslt's, also notepad style but more extended :-). I'll remove the FO2PDF seriz

RE: Getting started with flowscript

2004-05-13 Thread David Leangen
Holy service!! Thanks Antonio and Christian for the ultra-quick 911!! > -Original Message- > From: Christian Rosenberger [mailto:[EMAIL PROTECTED] > Sent: May 13, 2004 17:57 > To: [EMAIL PROTECTED] > Subject: Re: Getting started with flowscript > > > David Leangen wrote: > > >

AW: Errors in XSLT transformation

2004-05-13 Thread Mike Bach
Geert, for me I found out that when I get this error while tranforming some XML via XSL-T I misspelled any of the XSL-T markup, for example: instead of or instead of In this case I receive the NullPointerException without any hint where to find the error in the stylesheet. May be it woul

Query reg actions in form

2004-05-13 Thread anand.vasudevan
Hi all, We have an action in repeater widget on a form. How should onclick event be handled for the action in the repeater. Thanks in advance   Regards Anand   Confidentiality Notice The information contained in this electronic message and any attachments to this mess

Re: Getting started with flowscript

2004-05-13 Thread Christian Rosenberger
David Leangen wrote: -Original Message- From: David Leangen [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 10:37 AM To: [EMAIL PROTECTED] Subject: Getting started with flowscript I again turn to you for salvation. I'm finally ready to jump into flowscript... but I need a push i

Re: Getting started with flowscript

2004-05-13 Thread Antonio Gallardo
David Leangen dijo: > > I again turn to you for salvation. > > I'm finally ready to jump into flowscript... but I need a push in the > right > direction. > > Based on previous threads, it appears that a good approach (just to avoid > saying "best practice" ;-) is to invoke the business logic from >

Errors in XSLT transformation

2004-05-13 Thread Geert Van Damme
Hi all, I can't seem to find a lot of information about this, so I hope someone can help me out. I'm using Cocoon 2.0.4. Every now and then, I get following exception when creating a PDF using fo2pdf (actually i think the exception occurs in the xslt generating the FO xsl document) : org.apach

Getting started with flowscript

2004-05-13 Thread David Leangen
I again turn to you for salvation. I'm finally ready to jump into flowscript... but I need a push in the right direction. Based on previous threads, it appears that a good approach (just to avoid saying "best practice" ;-) is to invoke the business logic from flowscript, set any values necessary