Re: map:redirect-to...

2004-07-26 Thread John L. Webber
Hello Sonny, Are the resources showTestSucceededPage and showTestFailedPage in the secure directory? Then you probably need to use cocoon:/secure/showXXX. See http://cocoon.apache.org/2.1/userdocs/concepts/redirection.html Hope this helps, John Sonny Sukumar wrote: Hey guys, I'm having a strange

how to avoid 'generator already set' error in flowscript loop? RE POST

2004-07-26 Thread H . vanderLinden
Guys, anyone? Please help. Thanks. Bye, Helma -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 16 July 2004 11:06 To: [EMAIL PROTECTED] Subject: how to avoid 'generator already set' error? Hi, I have this bit of flow script: function

Singleton Cocoon Components

2004-07-26 Thread Arnab Sengupta
Hi everybody, I am facing a problem in cocoon and need some advice. In sitemap, there are 2 components which I want to be singleton ( just a single instance).. The reason behind this is to make multiple cocoon URI go through a single synchronized method for writting of error xml files... If I

Re: Singleton Cocoon Components

2004-07-26 Thread Jorg Heymans
Hi everybody, I am facing a problem in cocoon and need some advice. In sitemap, there are 2 components which I want to be singleton ( just a single instance).. Make your component implement the Threadsafe interface. Cocoon will reuse the same instance across all requests.

Cocoon ojb + cforms Almost working

2004-07-26 Thread Joose Vettenranta
Hi all! Like everyone has noticed I've been trying to make ojb + cforms to work and my work is almost done. I can get stuff from database, put it to forms and even edit the data in it and add new data! Now the problem is deleting data. Seems like deleting from forms does just

Re: how to avoid 'generator already set' error in flowscript loop? RE POST

2004-07-26 Thread Thomas Kjeldahl Nilsson
Yes, I know this. It was meant as suggestion for the problems Helma has in the original question. :) Olivier Billard wrote: Thomas, I think you're right. cocoon.sendPage() is not equivalent to return. You have to explicitly set a return after a cocoon.sendPage that is not at the end of a

Re: how to avoid 'generator already set' error in flowscript loop? RE POST

2004-07-26 Thread Olivier Billard
Thomas Kjeldahl Nilsson wrote: Yes, I know this. It was meant as suggestion for the problems Helma has in the original question. :) Ok sorry, I didn't read the end... :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Caching of session attribute selector?

2004-07-26 Thread Stephanie Zohner
Hi all, I have a problem when using the session attribute selector. It seems as if the result of the selector gets cached somehow. In Detail: In the below pipeline the session attribute selector determines which stylesheet is used to transform my xml data (either archive-run2html.xsl or

RE: how to avoid 'generator already set' error in flowscript loop ? RE POST

2004-07-26 Thread H . vanderLinden
Guys, thanks for thinking along, but what I'd really like to do is: myFunction() { success = false; errmsg = ; while (!success) { try { [something that also displays errmsg] [check and throw error if

Woody convertors: date formatting decimal formatting

2004-07-26 Thread Gunter D'Hondt
1) date formatting: In my form definition I've got the following: wd:output id=mydate wd:datatype base=date/ wd:label/ wd:convertor type=formatting wd:patterns wd:patterndd-MM-/wd:pattern /wd:patterns /wd:convertor /wd:output The input from the binding is 1900-01-01

Re: Woody convertors: date formatting decimal formatting

2004-07-26 Thread Bruno Dumon
On Mon, 2004-07-26 at 12:08, Gunter D'Hondt wrote: 1) date formatting: In my form definition I've got the following: wd:output id=mydate wd:datatype base=date/ wd:label/ wd:convertor type=formatting wd:patterns wd:patterndd-MM-/wd:pattern

Re: Woody convertors: date formatting decimal formatting

2004-07-26 Thread Derek Hohls
How to remove the , from the integer formatting: When I use: wd:datatype base=integer wd:convertor type=formatting variant=integer wd:patterns wd:pattern#0/wd:pattern /wd:patterns /wd:convertor /wd:datatype I get 1,677 instead of 1677 ?

jxtemplate: jx:if strange behaviour :)

2004-07-26 Thread Stephane Delort
Hi all, sorry to post with the same title as a previous thread but my problem is quite the same : I would like to compare 2 values in a jxtemplate but I can't get it to work. here is my code : jx:forEach items=#{language} varStatus=status jx:choose jx:when test=#{status.current =

Re: Pass a parameter to Portal

2004-07-26 Thread Dirk Gronert
Philippe Guillard wrote: Hi all, I need to pass a paramter from URI to the portal and somehow access it from my coplets. More clearly URI could be : samples/blocks/portal/portal?my_param=foo or : samples/blocks/portal/foo I tried this : map:match pattern=portal map:act

CForms - multiple submission buttons ?

2004-07-26 Thread Derek Hohls
I am trying to work out how to get different pages being displayed from a CForm submission, depending on different submission buttons... For one submission buttton, I have: ft:form-template action=#{$continuation/id}.continue method=POST ... input type=submit/ /ft:form-template In the

Re: jxtemplate: jx:if strange behaviour :)

2004-07-26 Thread Olivier Billard
Hi Stephane, Are you sure you set the correct namespace ? Are the jx tags really interpreted (in other, you may have jx:* tags after your generation) ? It happened to me when I forgot to declare the jx namespace. -- Olivier Billard Stephane Delort wrote: Hi all, sorry to post with the same title

Cocoon main site - PDF doc styles

2004-07-26 Thread Derek Hohls
2 small requests: Could the font for the headings be changed so that the N. headings are larger than the N.N headings? It would be neat if the ODD page numbers appeared on the RIGHT side of the page... this is the normal convention in most books and papers I have seen. Thanks Derek -- This

Re: Woody convertors: date formatting decimal formatting

2004-07-26 Thread Bruno Dumon
On Mon, 2004-07-26 at 13:54, Derek Hohls wrote: How to remove the , from the integer formatting: When I use: wd:datatype base=integer wd:convertor type=formatting variant=integer wd:patterns wd:pattern#0/wd:pattern /wd:patterns

Antwort: Re: jxtemplate: jx:if strange behaviour :)

2004-07-26 Thread Stephane Delort
re, Well after a check it appear that the namespace is included and I do not have any jx:* tags in the output. Still trying... Thanx, Stephane Hi Stephane, Are you sure you set the correct namespace ? Are the jx tags really interpreted (in other, you may have jx:* tags after your

Re: Woody convertors: date formatting decimal formatting

2004-07-26 Thread Derek Hohls
Bruno Unfortunately, that still does not seem to work; I still get the , separator... Derek [EMAIL PROTECTED] 2004/07/26 02:34:28 PM On Mon, 2004-07-26 at 13:54, Derek Hohls wrote: How to remove the , from the integer formatting: When I use: wd:datatype base=integer

Accessing an objects static variables from templates?

2004-07-26 Thread Thomas Kjeldahl Nilsson
Hello all, quick question: is there a problem (or some alternate way) with accessing a given objects static variables from jxtemplates? Let's say I have 'MyClass' instantiated as 'myObject', and 'myObject' is set as an attribute of the session. public class MyClass(){ public static final

Re: Woody convertors: date formatting decimal formatting

2004-07-26 Thread Bruno Dumon
On Mon, 2004-07-26 at 15:04, Derek Hohls wrote: Bruno Unfortunately, that still does not seem to work; I still get the , separator... quite impossible, that means the convertor isn't used. Make sure you're editing the correct file, and that the convertor element is located inside the

Re: Woody convertors: date formatting decimal formatting

2004-07-26 Thread Bruno Dumon
On Mon, 2004-07-26 at 15:52, Gunter D'Hondt wrote: Bruno, The date formatting is ok, but the decimal is still not working (has nothing to do with the formatting); error is: java.lang.RuntimeException: Incorrect value type for mydecimal (expected class java.math.BigDecimal, got class

Re: Antwort: Re: jxtemplate: jx:if strange behaviour :)

2004-07-26 Thread Olivier Billard
Stephane, Do you check the output just after the JXTemplate generator ? Stephane Delort wrote: re, Well after a check it appear that the namespace is included and I do not have any jx:* tags in the output. Still trying... Thanx, Stephane Hi Stephane, Are you sure you set the correct namespace ?

Re: Woody convertors: date formatting decimal formatting

2004-07-26 Thread Gunter D'Hondt
I'm just doing simple binding: wd:value id=mydecimal path=thefield/value / The input XML is: thefield value3.0/value /thefield Definition: wd:field id=mydecimal required=true wd:datatype base=decimal wd:convertor wd:patterns wd:pattern#0/wd:pattern

setting Document as instance variable in a transformer

2004-07-26 Thread Jorg Heymans
(having a deja-vu but can't find it back in the mailinglist) I have a transformer extending AbstractDOMTransformer. For convenience i assigned in transform(Document) the document to an instance variable (so i could manipulate it in different methods without having to pass it around the whole

RE: Antwort: Re: jxtemplate: jx:if strange behaviour :)

2004-07-26 Thread H . vanderLinden
FWIW try this: jx:forEach items=#{language} varStatus=status jx:choose jx:when test=#{status.current = $pagelang.pagelang} jx:when test=${status.current == pagelang.pagelang} ${status.current.label} /jx:when jx:otherwise ${status.current.value}

Re: Woody convertors: date formatting decimal formatting

2004-07-26 Thread Bruno Dumon
On Mon, 2004-07-26 at 16:27, Gunter D'Hondt wrote: I'm just doing simple binding: wd:value id=mydecimal path=thefield/value / The input XML is: thefield value3.0/value /thefield Definition: wd:field id=mydecimal required=true wd:datatype

Calling base class implementations (was Re: setting Document as instance variable in a transformer)

2004-07-26 Thread Jorg Heymans
Forget below red herring :) I was overriding recycle() and not calling super.recycle(). When overriding methods, it is sometimes necessary to call the base implementation and sometimes not - confusing ! Is there a rule to follow here? Regards Jorg Jorg Heymans wrote: (having a deja-vu but can't

Antwort: RE: Antwort: Re: jxtemplate: jx:if strange behaviour :)

2004-07-26 Thread Stephane Delort
FWIW try this: jx:forEach items=#{language} varStatus=status jx:choose jx:when test=#{status.current = $pagelang.pagelang} jx:when test=${status.current == pagelang.pagelang} This test is still a problem, cause it return false ${status.current.label} /jx:when

Re: Woody convertors: date formatting decimal formatting

2004-07-26 Thread Gunter D'Hondt
I've changed the binding into: bnd:value id=mydecimal path=mydecimal/value bnd:convertor datatype=decimal type=formatting bnd:patterns bnd:pattern#0/bnd:pattern /bnd:patterns /bnd:convertor /bnd:value But still the same output; still I don't understand how

Re: Dynamic CForms cases [was: cforms : show and hide widgets]

2004-07-26 Thread Robin Wyles
Joerg, On 23 Jul 2004, at 08:50, Joerg Heinicke wrote: On 19.07.2004 10:30, Robin Wyles wrote: There is a union widget available in CForms. I already thought about implementing the car selector sample via union widgets, but that's a bit difficult as the cases are dynamic though not impossible:

Calling Java - is not a function?

2004-07-26 Thread Brent Johnson
OK this is driving me crazy. All I'm trying to do is call a method in a custom java class. What's driving me crazy about that? I'm doing it in one flowscript and its working fine (with a different class). I try in another flowscript in a different sitemap and I get:

Re: map:redirect-to...

2004-07-26 Thread Sonny Sukumar
That's a good insight and a good question John, though actually the redirected URIs are *not* in the secure/ directory. I did also read through the Cocoon docs on redirects but couldn't find the reason for the strange behavior. To quickly summarize again, the behavior is that the *second*

Re: Calling Java - is not a function?

2004-07-26 Thread Brent Johnson
OK - someone slap me again for not hitting save in Eclipse prior to running the build script? I ran a build in Eclipse but apparently that doesnt auto-save changes of the file. Turns out it was a simple problem (I knew it would be). The jar file in WEB-INF/lib had a stale version of

Re: Woody convertors: date formatting decimal formatting

2004-07-26 Thread Bruno Dumon
On Mon, 2004-07-26 at 17:20, Gunter D'Hondt wrote: I've changed the binding into: bnd:value id=mydecimal path=mydecimal/value bnd:convertor datatype=decimal type=formatting bnd:patterns bnd:pattern#0/bnd:pattern /bnd:patterns

Re: CForms - multiple submission buttons ?

2004-07-26 Thread Marc Portier
define your submit-button as part of the form: fd:submit id=btn1 action-command=btn1 fd:labelMy First Button/fd:label /fd:submit (it shows up in the template as any other ft:widget then) then check in your js if (form.submitId == 'btn1') you can also get a hold of the

Re: Cocoon 2.1.5 and Servlet 2.2 Spec

2004-07-26 Thread Brent Johnson
Ahh really? I tried that and Jetty complained about some element not being recognized. I'll definitely play around with trying to switch the DTD to 2.3. I assume you changed it to: http://java.sun.com/dtd/web-app_2_3.dtd Thanks, - Brent On Tue, 27 Jul 2004 00:12:44 +0200, Ugo Cei [EMAIL