Re: C2.2 jx:template generator changes time !!

2007-09-14 Thread Joerg Heinicke
On 14.09.2007 3:34 Uhr, Sébastien Geindre wrote: it seems that i can see a elephant on my noise !!! Just curious and going off-topic: Is this some kind of a figure or metaphor? It should be nose, shouldn't it? I've never seen this though I have an idea what it means. Joerg

Re: How to use stream generator to get multipart/form-data POST value

2007-09-14 Thread Joerg Heinicke
On 13.09.2007 6:19 Uhr, Flutina.Zhu wrote: Exception in StreamGenerator.generate(): java.lang.NullPointerException Can you please post the meaningful parts of the stacktrace? Joerg - To unsubscribe, e-mail: [EMAIL

Re: file upload and stream generator

2007-09-14 Thread Joerg Heinicke
On 11.09.2007 11:25 Uhr, thuertas wrote: I have a problem between uploading xml files and generating them with a stream generator in cocoon. So, when I try to test that, I have this exception: Unknown request object encountered named Filename : null Are uploads enabled in web.xml? Joerg

Re: C2.2 jx:template generator changes time !!

2007-09-13 Thread Joerg Heinicke
On 13.09.2007 11:54 Uhr, Sébastien Geindre wrote: fd:pattern-MM-dd'T'hh:mm:ss.000'Z'/fd:pattern jx:formatDate value=${data.endValidityTime} pattern=-MM-dd'T'HH:mm:ss.SSS'Z'/ It seems that 12 is weird time for jx generator... What I notice in your patterns is the difference

Re: Flowscript error on production server

2007-09-07 Thread Joerg Heinicke
On 07.09.2007 8:17 Uhr, Derek Hohls wrote: Running Cocoon 2.1.8 - I have an application that works fine on my local PC and on a test server. When I deploy to a production server, I get a surprising error when I try to access a javascript flow routine. The log file has this entry:

Re: Flowscript error on production server

2007-09-07 Thread Joerg Heinicke
On 07.09.2007 8:53 Uhr, Derek Hohls wrote: No, it IS the same version; that is why I was surprised. But obviously there ARE differences in your environment as other messages you posted today show. And the error message here clearly shows that it is a Cocoon one. This check was added as some

Re: Pass variable from transformer to another trnsformer

2007-09-07 Thread Joerg Heinicke
On 05.09.2007 4:28 Uhr, rachid harradi wrote: i think it is possible to Passing a Parameter or variable from flowscript to to generator and to transformer finaly to another transformer or serializer map:transform src=context:/resources/sources/saveFile.xsl

Re: How to limit number of instances of component?

2007-09-07 Thread Joerg Heinicke
On 29.08.2007 4:46 Uhr, [EMAIL PROTECTED] wrote: This happens because I generate a number of thumbnails on a page and the browser requests all images from the server at once. Are you sure? I thought browsers usually don't do more than two requests per host? I always see this limitation when

Re: Problems with browser selector

2007-09-04 Thread Joerg Heinicke
Christian Sengstock csengstock at gmail.com writes: Maybe someone hacked out !what! the browser selector does and can tell? It's too long ago that I used it to tell from mind how it works, but from the documentation [1] I'd assume that it is always A, B and C and only the order of the when

Re: remove dtd from xml?

2007-08-31 Thread Joerg Heinicke
On 31.08.2007 7:37 Uhr, Edward S wrote: but what if the declaration already exists and i hv to take it out? Just do an identity transformation. It's mentioned in the spec as well [1]. Maybe just a text-stream-processing using sed is possible as well and you don't need Cocoon. Joerg [1]

Re: Parsing HTML entities

2007-08-31 Thread Joerg Heinicke
Tobia Conforto tobia.conforto at linux.it writes: I have a data source from which I get SAX text nodes into my pipeline that contain escaped HTML entities and br tags. In Java syntax: Lorem ipsum mdash; dolor sit amet. br Consectetuer or, in XML syntax: Lorem ipsum amp;mdash; dolor

Re: CInclude POST (by Payload)

2007-08-30 Thread Joerg Heinicke
On 30.08.2007 11:08 Uhr, Sébastien Geindre wrote: It seems that dom serialization ommit namespace declaration... But only when they are unused or does it create non-well-formed XML? My wfs web service needs this several namespace... Even when they are unused? Joerg

Re: remove dtd from xml?

2007-08-30 Thread Joerg Heinicke
On 30.08.2007 14:23 Uhr, Edward S wrote: whats the easiest way to remove a doctype declaration from a XML file? When serializing the XML? You have to add it explicitely by specifying doctype-system and doctype-public. So by not specifying them you won't get the DTD added.

Re: Opening new window with same session

2007-08-30 Thread Joerg Heinicke
On 30.08.2007 11:06 Uhr, Julien Flotté wrote: I have a problem when I am in a session: I want to open a new window (popup) but I wish to remain in my session. It depends on whether you are using cookies or Url rewriting. With cookies it should just work. With Url rewriting you need to add

Re: [Portal] JSR-168 portlet problem with Tomcat 6 and 5.5

2007-08-27 Thread Joerg Heinicke
On 27.08.2007 8:46 Uhr, [EMAIL PROTECTED] wrote: In common/lib there are pluto-1.0.1.jar, portals-bridges-commen-1.0.jar und portlet-api-1.0.jar. These jars are not in cocoon/WEB-INF/lib. But it seems exactly to be such an issue though. In line 66 of PortletServlet [1] the instance of

Re: degree symbol from wordml

2007-08-22 Thread Joerg Heinicke
On 22.08.2007 3:11 Uhr, Lincoln Mitchell wrote: I am trying to output a degree symbol from wordML. It is entered in word as the symbol Alt+0176 ASCII (Decimal). Which in WordML translates to: w:t°/w:t Now, I was hoping to see: w:t#176/w:t Just that (but with a semi-colon at the end: #176;)

Re: degree symbol from wordml

2007-08-22 Thread Joerg Heinicke
--- But deg; doesn't end up in my HTML, it stays as °. However, it works with nbsp; ie: xsl:value-of select=translate(.,'°','nbsp;')/ So what's the difference between the 2 entities and how can I resolve it? Linc Quoting Joerg Heinicke [EMAIL PROTECTED]: On 22.08.2007 3:11 Uhr, Lincoln Mitchell

Re: output indent yes?

2007-08-15 Thread Joerg Heinicke
On 15.08.2007 20:01 Uhr, Lincoln Mitchell wrote: I can't get indents on the hello world xhtml example What am I missing? Something in the sitemap? Yes, indeed. The serializer is configured with the same settings as in xsl:output in the sitemap's component configuration: map:serializer

Re: output indent yes?

2007-08-15 Thread Joerg Heinicke
On 15.08.2007 22:37 Uhr, Lincoln Mitchell wrote: That's works for content from the hello.XML file but doesn't indent my html in the xsl file. Ie: Sorry, Lincoln. I don't exactly understand what works and what not. What do you mean with content from the hello.XML and html in the xsl file?

Re: access remote jpg

2007-08-03 Thread Joerg Heinicke
On 03.08.2007 5:41 Uhr, Lincoln Mitchell wrote: Is it still worth looking into doc type / content type header. Will that potentially allow me to use cocoon to show the images? As Tobia found out it's the referrer header they seem to check, so I don't see how you can mimic it. It is a pure

Re: cocoon against jdk 6

2007-08-02 Thread Joerg Heinicke
I might be wrong but this error really does not look like being caused by a broken JDK. It points to a misconfiguration of Cocoon instead - however it could happen. Valentin, can you decribes the steps you tried to build your Cocoon. From what I understand you use a recent checkout of the 2.1

Re: [Flowscript] everything converted to number type?

2007-07-31 Thread Joerg Heinicke
On 7/31/07 4:28 PM, Mark Lundquist wrote: (b) truncated to an integer value. To prove this you need a number out of the integer scope. e.g. '3' if I input '3.5' in the form. 3.5 is for sure already truncated by the Java type conversion to Long. This has nothing to do with flowscript.

Re: Namespace: behaviour differences

2007-07-20 Thread Joerg Heinicke
On 20.07.2007 04:43, Derek Hohls wrote: This stylesheet works fine with BOTH pages on the PC; but only works on the first page when running on the server i.e. it produces the trtdfound page/td/tr output, but does not display the rowset match. What are the next options available to solve

Re: Namespace: behaviour differences

2007-07-18 Thread Joerg Heinicke
On 18.07.2007 14:31, Grzegorz Kossakowski wrote: Even if you reference elements in stylesheet using prefix it's defined in that stylesheet _locally_. It means that you could use different prefixes (pointing to the same namespace, of course) in processed XML and XSL stylesheet and it should

Re: I18n translation i18n:expr

2007-07-16 Thread Joerg Heinicke
On 17.07.2006 05:00, Simone Gianni wrote: For 2.1.6 I had to patch the i18n transformer myself to have this kind of functionality, has it been added in a later version? Because it it hasn't I could find my patch and commit it for next release. One year after (cleaning up my unread mails at

Re: Problem with changes in mailing list

2007-07-16 Thread Joerg Heinicke
On 18.07.2006 04:46, Derek Hohls wrote: In the past, the Created By property would show up as users@cocoon.apache.org even though the From property would reflect the email of the person sending the message. Now both 'from' and 'Created By' are the same i.e. the email of the person sending

Re: JXTemplateGenerator caching

2007-07-16 Thread Joerg Heinicke
On 21.07.2006 11:55, Ard Schrijvers wrote: It does not work for me the way you are doing it: I don't even get the date. Think this depends on the cocoon version (there have been some changes regarding jx that changed some behavior) Does declaring the cache-key in the template make sense at

Re: XSL transrormers with use-request-parameters and caching [was: sitemap chaining]

2007-07-16 Thread Joerg Heinicke
On 04.08.2006 09:39, [EMAIL PROTECTED] wrote: So the problem here is, that all parameters in the request are used for caching. However, only those parameters used in the XSL stylesheet could possibly change the outcome of the transformation. As far as I know, these are exactly the parameters,

Re: Using xsl:message and Cocoon

2007-07-11 Thread Joerg Heinicke
On 05.07.2007 11:43, Mike Dawson wrote: I have a few XSL's I'm attempting to do some basic debugging on and would like to use just plain old xsl:message to get an idea about certain variables through the execution of the XSL. Unfortunately after grepping the logs directory there was no sign

Re: Calling map:handle-errors from flowscript

2007-07-10 Thread Joerg Heinicke
On 10.07.2007 12:49, Tobia Conforto wrote: It doesn't seem to work, or I can't get it to work. Throwing a new ResourceNotFoundException produces the following Java stacktrace: org.mozilla.javascript.JavaScriptException Caused by: org.mozilla.javascript.WrappedException

Re: [cocoon-2.2.x] - How to trace what is going on

2007-07-06 Thread Joerg Heinicke
On 06.07.2007 13:29, Grzegorz Kossakowski wrote: I also noticed some exceptions on running (but only visible in log) - btpool0-1 DEBUG xml.DefaultNamespaceHandlerResolver - Ignoring handler [org.springframework.ejb.config.JeeNamespaceHandler]: class not found java.lang.ClassNotFoundException:

Re: Removing xmlns: declarations from HTML

2007-07-04 Thread Joerg Heinicke
On 04.07.2007 11:33, Ron McNulty wrote: But we have some 25 products using Cocoon, so I was looking for a way to fix the problem without modifying each product's sitemap. (I don't mind doing this, but it would trigger a regression test cycle for each product) The answer I came up with was to

Re: Attributes in i18n

2007-07-02 Thread Joerg Heinicke
On 02.07.2007 14:32, Robin Rigby wrote: How do I do this, please? None of these work: catalogue message key=message1Click the a href={0}link/a/message /catalogue That's indeed not supported (yet): https://issues.apache.org/jira/browse/COCOON-2057. The i18n:attr feature

Re: Calling map:handle-errors from flowscript

2007-06-29 Thread Joerg Heinicke
On 27.06.2007 15:13, Tobia wrote: cocoon.sendStatus(404) cocoon.response.setStatus(404) cocoon.response.sendError(404) throw new Packages.java.io.FileNotFoundException() throw new Packages.org.apache.cocoon.ResourceNotFoundException() The problem with

Re: What replaces the Authenticator-API?

2007-06-25 Thread Joerg Heinicke
On 21.06.2007 12:36, Hanne Moa wrote: the Authenticator-API is deprecated. What is to be used instead? The autentication framework block has been replaced by the auth block. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Cocoon database access strategy

2007-06-25 Thread Joerg Heinicke
Ard Schrijvers a.schrijvers at hippo.nl writes: 'Hey, I am a hippopotamus, and there is nothing I can do about it.' And as soon as he accepts this, he live life happy. Happy as a hippo. You understand? I wonder what this says about the company you're working for ;) Joerg

Re: catalog and xslt document() function

2007-06-25 Thread Joerg Heinicke
Ard Schrijvers a.schrijvers at hippo.nl writes: I18n is actually mapping from key to value, so you could easily use i18n for what you want. I think you talk on cross purposes here. An XML catalogue is for mapping ids to different resources; most commonly used for mapping public identifier like

Re: About Client side Javascript in Cform

2007-06-19 Thread Joerg Heinicke
On 19.06.2007 10:12, Tobia wrote: In fact I've noticed that the number of client-side javascript files (not their complexity or size, so much as their number) referenced to by Cocoon forms has a considerable impact on page load time. But if set up correctly with the appropriate response

Re: Show Formatted message

2007-06-14 Thread Joerg Heinicke
On 14.06.2007 17:57, njko wrote: I'm newbie in cocoon Welcome :) I have an Action that return a message. I want show this message a the end of execution in a web page. If I want show this message = aaa... \n bbb... \n ccc... like this aaa... bbb... ccc... what I have to do ? If

Re: Redirect at the end of a form

2007-06-13 Thread Joerg Heinicke
On 04.06.2007 15:26, Tobia wrote: When the user hits refresh on the confirmation page, the database operations will be skipped and the confirmation displayed again. Interesting, I had not thought of putting the flag variable in the main flowscript function. Although one advantage of the

Re: File Update with flowscript

2007-06-13 Thread Joerg Heinicke
On 13.06.2007 19:23, Schmitz, Jeffrey A wrote: Nevermind, it was the max size variable in web.xml. Docs say default is 10Mb, http://wiki.apache.org/cocoon/FileUploadsWithCocoon2.1 but then in the default web.xml file installed with cocoon, it is actually set to 100k. That's kind of

Re: Flowscript Continuation ID parameter

2007-06-13 Thread Joerg Heinicke
On 12.06.2007 16:11, Askild Aaberg Olsen wrote: Is there anything wrong with this approach (it seems to work)? Is there a better way? I guess passing the continuation.id in the URI prevents caching in your pipeline. Actually you don't want to have that cached anyways since you need the

Re: R: Convert to java flow?

2007-06-13 Thread Joerg Heinicke
On 05.06.2007 08:47, [EMAIL PROTECTED] wrote: version used has been rhino 1.5.4 branch, otherwise rhino 1.6.1 should work the same Rhino 1.5.4 is the version Cocoon developers changed to add continuation support. Rhino 1.6 has the continuation support now included and we don't need to

Re: Styling an fd:multivaluefield item?

2007-06-09 Thread Joerg Heinicke
On 08.06.2007 10:17, Derek Hohls wrote: PS : re the database call issue you usually keep all possible values in one table and the n:m association between objects and these values in another one. This is true; but a RIGHT JOIN (or LEFT JOIN) will return possible AND linked values in a

Re: Stackoverflow when using regexp matcher (Cocoon 2.1.10)

2007-06-09 Thread Joerg Heinicke
On 08.06.2007 14:01, Christian Schlichtherle wrote: The EncodeURLTransformer was modified to use java.util.regexp instead of Apache regexp. Tests showed it is significantly faster and I was experiencing extremely deep stacks on calls to matchNodes (although I never actually got a

Re: Styling an fd:multivaluefield item?

2007-06-08 Thread Joerg Heinicke
On 07.06.2007 14:27, Derek Hohls wrote: The thread: http://marc.info/?l=xml-cocoon-usersm=117879407932600w=2 refers... The basic question, which was not clearly answered there is how to add *standard* form attributes to an fd:item for an fd:multivaluefield? What ALSO needs to appear on

Re: Stackoverflow when using regexp matcher (Cocoon 2.1.10)

2007-06-07 Thread Joerg Heinicke
On 07.06.2007 16:58, Christian Schlichtherle wrote: I am trying to use the regexp matcher in a sitemap to match an optional file name extension like this: But all I get is a stack overflow: Hi Christian, unfortunately both stacktraces don't help to track down the error. The first one is

Re: Setting request headers when accessing HTTP URLs from sitemap

2007-06-05 Thread Joerg Heinicke
On 05.06.2007 17:32, johnson wrote: http://cocoon.apache.org/2.1/userdocs/concepts/modules.html using modules or using xsp internal to do this. I don't see how they can help here. Joerg Christian Schlichtherile nI need to set rgequest headers when accessing an http: URL in a sitemap

Re: Setting request headers when accessing HTTP URLs from sitemap

2007-06-05 Thread Joerg Heinicke
On 05.06.2007 14:26, Christian Schlichtherle wrote: I need to set request headers when accessing an http: URL in a sitemap pipeline. I've digged into the source and came up with a solution to inherit from the class org.apache.excalibur.source.impl.HTTPClientSourceFactory and override the

Re: Looking for cocoon 2.1.4-dev package

2007-06-05 Thread Joerg Heinicke
On 05.06.2007 19:18, Kevin wrote: | Note that you'll need at least Cocoon 2.1.4-dev for this to work because | of a fixed bug in the xpatch task. Where can I find this download? Unfortunately, 2.1.4-dev is very unspecific. It just means somewhere between 2.1.4 and 2.1.5. So you

Re: Setting request headers when accessing HTTP URLs from sitemap

2007-06-05 Thread Joerg Heinicke
On 05.06.2007 23:13, Christian Schlichtherle wrote: which allows to set arbitrary request headers via parameters in the query string with the prefix request:. Any parameter with this prefix in its name is removed from the resulting URI and the remaining name and value are set as request headers

Re: hostname lookup

2007-06-04 Thread Joerg Heinicke
On 05.06.2007 02:41, Leonid Geller wrote: hostname of the http requestor/client. we have the lookup disabled in apache (2.2.4), so requests handled by the web server or our j2ee container/default web app do not experience this problem. we can tell that because 1) they result in access log

Re: xml parsing

2007-05-28 Thread Joerg Heinicke
On 25.05.2007 08:49, Varga Zsombor wrote: Ther is an URL wich provide me an xml. Some data from this xml i have to load into a database. Can i somehow do this with cocoon or i have to write a Java program, which will parse the xml and load the data into the database? Hi Varga, there is a

Re: Formatting decimal values in a form

2007-05-25 Thread Joerg Heinicke
On 25.05.2007 08:17, Derek Hohls wrote: after all the Cocoon docs *do* refer one to this page; which implies it *should* work (and does, partially, because the , separator works.) The convertor only delegates everything to DecimalFormat. If it works there it will also work in the convertor.

Re: unpack/unizp a complete zip file?

2007-05-25 Thread Joerg Heinicke
On 25.05.2007 13:52, HGENTO wrote: how can I unzip a zip file with an sitemap instruction. I have access to a special file with zip:/file.zip!/file.xml but I would like to have an instruction to unzip the complete file.zip. Is there a easy way to do so in Cocoon 2.1.? I did't found a answer

Re: unpack/unizp a complete zip file?

2007-05-25 Thread Joerg Heinicke
On 25.05.2007 21:39, HGENTO wrote: this sound good and I think I'll go for this solution. Correct me if I'm wrong but it could be realized by using a new map:action in the sitemap? Yes, should be possible easily. You also have access to the request in the action if it is an uploaded file.

Re: Presumed bug in Dojo/Cocoon integration

2007-05-24 Thread Joerg Heinicke
Dev at weitling dev1 at weitling.net writes: apart from Cocoon productivity threads: Did anyone of you have time to prove the problem described in the former mail? Hi Florian, you might repost your mail on the dev list. Jeremy did the latest Dojo integration (not that long ago, think it was

Re: Cocoon cache not shared between Host aliases

2007-05-23 Thread Joerg Heinicke
On 23.05.2007 15:34, Jerome Benezech wrote: Agrred it's more a session problem I have no idea if Tomcat guarantees the same session between aliases though I know some here reading this list have experience with hosting or such setups, but I guess there are more appropriate lists for such

Re: Cocoon Productivity

2007-05-22 Thread Joerg Heinicke
On 22.05.2007 13:55, Reinhard Poetz wrote: Compared with JSF and Struts Cocoon is very different. This means that you have to learn to think in Cocoon (btw, the same is true for frameworks like Tapestry or Wicket). Without good documentation it is very difficult to learn this way of thinking

Re: Pass the content of a pipeline to a flow

2007-05-21 Thread Joerg Heinicke
ypomonh ypomonh at freemail.gr writes: As far as I understand since processPipelineTo() can only output to a java.io.OutputStream, I can only use it to serialize something on the disk. Is it possible to handle this stream inside my flowscript? I am not fluent in java but I think that

Re: problem after running cocoon on tomcat

2007-05-21 Thread Joerg Heinicke
On 21.05.2007 14:09, Vaduvoiu Tiberiu wrote: Ok, so far I worked on my application using only cocoon, my trunk folder with all my files were/still are in C:/mysite/trunk in cocoon in the mount table I had a mount uri-prefix=mysite/ src=file://C:/mysite/trunk//, everything worked ok. Now I am

Re: [HELP]Failed to execute pipeline.

2007-05-21 Thread Joerg Heinicke
On 21.05.2007 06:25, Kimberly Wells wrote: Description:org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException Hmm, sorry, but nobody can help you with this description of the problem. It's just impossible to guess ... Joerg

Re: problem installing cocoon

2007-05-21 Thread Joerg Heinicke
Can it be that your main problems are solved? When I view that site there is no longer an initialization problem, but only the samples sitemap can't be found. Joerg On 18.05.2007 10:46, Varga Zsombor wrote: Hi All! I have a problem with installing cocoon. First I've installed cocoon to my

Re: Cocoon cache not shared between Host aliases

2007-05-21 Thread Joerg Heinicke
On 18.05.2007 13:14, Jerome Benezech wrote: The tomcat virtual host is configured with an alias: host name=www.mydomain.com ... Aliasmydomain.com/Alias /host My problem is that cocoon seems wo maintain 2 cache: 1 with URL www.mydomain.com and 1 with URL mydomain.com. I noticed that when

Re: sql Transformer missing sql namespace

2007-05-21 Thread Joerg Heinicke
On 21.05.2007 21:56, Christoph Klocker wrote: I am using the sql transformer. I have the problem that the resulting xml is missing the xmlns:sql declaration. Sorry, but this makes me laughing :) I only know the effect that the namespace declaration is coming out twice. Can you try it

Re: ServiceSelector: it's possible to get an Enumeration?

2007-05-21 Thread Joerg Heinicke
On 17.05.2007 17:47, [EMAIL PROTECTED] wrote: selector is really an instance of WrapperServiceSelector. Inside the object there is an ExtendedComponentSelector where a HashTable has an entry for each datasource deined in cocoon.xconf. But I do not find any way to get the keys out. Neither

Re: (newbie) Query a given datasource from a javascript flow?

2007-05-16 Thread Joerg Heinicke
On 16.05.2007 18:43, ypomonh wrote: Sylvain Wallez wrote: Joerg Heinicke wrote: Sorry for the late answer. Thanks Joerg, I appreciate the help :) Honour to whom honour is due. It was Sylvain :) Joerg - To unsubscribe

Re: (newbie) Query a given datasource from a javascript flow?

2007-05-16 Thread Joerg Heinicke
On 16.05.2007 14:16, Sylvain Wallez wrote: But I guess there are more standard ways to do it. Hadn't we a simple JDBC scripting framework in Cocoon? IIRC Sylvain and Bertrand should best. I hope they can help. You actually don't need ScriptableConnection at all. To get a connection from the

Re: newbie question: benefits vs disadvantages of flowscript?

2007-05-16 Thread Joerg Heinicke
On 16.05.2007 10:51, Merdes, Matthias wrote: of course it is a good practice to have an explict controller layer (control as in MVC), BUT: why does it have to be in a scripting language? i would much prefer to do everything in java itself. so my questions are: -am i missing anything? -is

Re: How to replace SQL/ESQL datasource through an XMLdatasource

2007-05-12 Thread Joerg Heinicke
On 11.05.2007 18:01, Derek Hohls wrote: It seems that, in your case, you will need to write an XSL file (or series of files) to process the data from the data XML file. I'd indeed go with this approach. The advantage is, you can do this step before switching your datasource and test it. If

Re: (newbie) Query a given datasource from a javascript flow?

2007-05-11 Thread Joerg Heinicke
On 11.05.2007 15:15, ypomonh wrote: I'm searching an easy way to query a given datasource (defined in) from within a flow (javascript). Not using an ORM framework but even plain JDBC. Have tried to use org.apache.cocoon.components.flow.javascript.ScriptableConnection:

Re: (newbie) Access parameter passed to an XSL transformation from stylesheet

2007-05-11 Thread Joerg Heinicke
On 11.05.2007 16:54, ypomonh wrote: I have a simple pipelineQ map:pipeline map:match pattern=patternA map:generate src=cocoon:/patternB/ map:transform src=style.xsl map:parameter name=someParam value=cocoon:/patternC/

Re: calling a template from an a anchor

2007-05-11 Thread Joerg Heinicke
On 09.05.2007 15:40, Vaduvoiu Tiberiu wrote: Hi all. Can anyone tell me if it's possible to re-call a template from an anchor? something like: xsl:template name=test xsl:param name=howmany select=5 xsl:value-of select=parent/child[position()$howmany]/ axsl:attribute

Re: How can I insert images with POI in xml files?

2007-05-11 Thread Joerg Heinicke
On 09.05.2007 22:10, Iris Soto wrote: I want to insert the image in transformxls.xls , I think that the tag defined for this is: Objects. In a file created with Gnumeric, the output is: gnm:Objects gnm:SheetObjectImage ObjectBound=A1:D5 ObjectOffset=0.938 0.588 0.359 0.588

Re: (newbiew) Determine program flow

2007-05-10 Thread Joerg Heinicke
On 10.05.2007 23:41, ypomonh wrote: A googd rule for database actions i sto use them either, or when the result of the database operations somehow will influence the pipeline. I understand that this book was written before flows took of but is this approach still advisable? I

Re: Build against Java 6

2007-05-09 Thread Joerg Heinicke
On 09.05.2007 20:28, Schmitz, Jeffrey A wrote: I downloaded Cocoon 2.1.10 and tried to build against jdk1.6.0_01 but get the error below. Does cocoon not yet work with java 6? Changes have been made [1] but after 2.1.10. Joerg [1] http://svn.apache.org/viewvc?view=revrevision=495743

Re: How can I insert images with POI in xml files?

2007-05-09 Thread Joerg Heinicke
On 09.05.2007 20:02, Iris Soto wrote: I am using poi-3.0-alpha3 and cocoon 2.1.10. I am using Cocoon/Poi HSSF Serializer. Brave :) Does Cocoon's HSSFSerializer really work with Poi 3.0? I have many files xml written which are serialized with HSSFSerializer using a stylesheet, so I need to

Re: Build against Java 6

2007-05-09 Thread Joerg Heinicke
, But I'm unsure of how to use the linked files and where exactly to put them in my build. I'm guessing one (the second link) goes under: {cocoon root}/src/blocks/databases/java/org/apache/databases/ibatis But where does the other one go (if anywhere)? -Original Message- From: Joerg

Re: How to have a Question mark in a URL

2007-05-08 Thread Joerg Heinicke
On 08.05.2007 08:21, Lincoln Mitchell wrote: I can generating an image with text in it. The problem is the text is dynamic and may include a ?. I realize ? are significant in URL's but is there a way to get round this. The only way I see is to double-URL-encode the generated part of the

Re: order of execution in the pipeline

2007-05-04 Thread Joerg Heinicke
On 04.05.2007 17:58, Stefan Shoeman wrote: Hello Marc, thanks for your hints. No, I can't use the standard pdf serializer, because I have to create them with a external application. I tried to get my custom order with a flowscript. But that doesn't work, too. I can't call another process

Re: I18N and left brace

2007-05-02 Thread Joerg Heinicke
What about {{? What Cocoon version do you use? Joerg On 02.05.2007 21:41, Gary Larsen wrote: Thanks Ard, Well \{ results in \\{{ and x{ rsults in xx{{ Would appreciate any other suggestions out here. Thanks, gary _ From: Ard Schrijvers [mailto:[EMAIL PROTECTED] Sent:

Re: I18N and left brace

2007-05-02 Thread Joerg Heinicke
On 02.05.2007 22:06, Gary Larsen wrote: What about {{? Believe it or not it translates to: {{?{{? I meant without the question mark :-) , but this probably does not change anything. I haven't looked at the transformer code yet. Maybe I'll find something. If there is

Re: Component with 'org.apache.cocoon.components.flow.Interpreter/javascript' is not defined

2007-05-01 Thread Joerg Heinicke
Hi Lally, On 01.05.2007 20:25, Lally Singh wrote: Hey all, sorry for posting so many questions to the list (I'm having so man problems getting anything to work, ugh!). That's what the lists are for. Feel free to ask any questions. Especially since you are working on the cutting edge ...

Re: How do I use FileGenerator to get source from a URL that requires authentication (username/ password challenge)/

2007-04-29 Thread Joerg Heinicke
On 27.04.2007 04:49, Joseph White wrote: I would expect the the basic authentication scheme to be used within the FileGenerator .. but I don't know where to pass in the username:password for my case using the username:[EMAIL PROTECTED]:port directly in a browser to the site I am interested in

Re: null-text on text fields?

2007-04-29 Thread Joerg Heinicke
On 27.04.2007 18:11, Rob Oxspring wrote: I need to present a form where a text box displays something rather than nothing when the associated value is empty, for example see the behaviour of the search input at http://java.sun.com/. This seems to be much like the selection-list's null-text

Re: request parameter from sax stream/xml file to sitemap

2007-04-29 Thread Joerg Heinicke
On 23.04.2007 17:27, SETIssl wrote: I tried to implement a DatabaseSelectAction like its described in the docs and the api, but couldn't find any details or any kind of example on how the request/the sitemap pipeline action part actually should look like. From rereading the thread I get

Re: AW: AW: AW: Failed to load sitemap

2007-04-27 Thread Joerg Heinicke
On 26.04.2007 16:21, [EMAIL PROTECTED] wrote: a colleague has build cocoon. I don't know if he had included the block. Please have a look into your WEB-INF/lib dir if it contains cocoon-html-block.jar. Joerg - To

Re: JCA mit Cocoon

2007-04-27 Thread Joerg Heinicke
On 26.04.2007 18:02, [EMAIL PROTECTED] wrote: I am looking desperately for a way to use a JCA-conform ressourceadapter from within my cocoon application. Is there any known way to connect via such a ressource adapter for example deployed on a BEA Welogic Server to a datasource. Anything not

Re: How do I use FileGenerator to get source from a URL that requires authentication (username/ password challenge)/

2007-04-26 Thread Joerg Heinicke
On 25.04.2007 04:58, Joseph White wrote: The FileGenerator lets me access a website and get XML that I want to present. How do I include the necessary authentication (or allow the authentication to pop-up) so I can receive the XML output? It depends on the authentication scheme. It sounds

Re: Some quick questions about FOP 0.93, Saxon, and MS SQL Server integration with cocoon 2.1.10 on Windows XP environment

2007-04-26 Thread Joerg Heinicke
On 25.04.2007 04:39, Joseph White wrote: Here are my questions: - [fop] How do I replace the fop 0.20 integrationwiht fop 0.03integration in cocoon 2.1.10? - [MS SQL Server] Is it sufficient to include the appropriate Class 4 jdbc driver (of my choice) for MS SQL Server in the area

Re: Cocoon Pipline Debuger Plugin for Eclipse

2007-04-26 Thread Joerg Heinicke
Hi Chris, this sounds really interesting. Maybe you can send this mail to the developer's mailing list as well. And the end you probably have to issue an entry in Jira. Thanks, Joerg On 24.04.2007 14:06, Christofer Dutz wrote: I just finished my first version of a very very simple Eclipse

Re: Cocoon SVN problem

2007-04-24 Thread Joerg Heinicke
Oh shit! It seems Subversion/Subclipse did not like that renaming at all. While on my system everything looked ok (no local modification were shown with Subclipse, svn up on the command line just said everything ok), there are indeed now 2 files of each license.txt and notice.txt. in different

Re: Cocoon SVN problem

2007-04-23 Thread Joerg Heinicke
Hello Markus, the issue itself (change file name to lower case for license.txt and notice.txt) has been fixed in SVN. Unfortunately, this leads to the behaviour you observed, there is no way to influence the order of SVN actions (first delete old version, later check out new version). There

Re: AW: Embedding JPEGs in CForms

2007-04-20 Thread Joerg Heinicke
Pius Graber pius.graber at ceweb.ch writes: What I want to do is to display an image whose name is depending on a database record field value. So I was looking for something like an image-widget: ... ft:widget id=img/ !-- this should diplay my image -- This does not make much sense except

Re: Embedding JPEGs in CForms

2007-04-18 Thread Joerg Heinicke
On 18.04.2007 15:49, Pius Graber wrote: Ihave an application using CForms. The user can upload a JPEG via the Upload Widget. Is there a way how I could display the uploaded JPEG later (like imagemap widget but depending on a bound value for the filename)? I don't know exactly what you want to

Re: AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Joerg Heinicke
Franziska Witzani franziska.witzani at e-tecture.com writes: I do. But for example dataModel.getChildren() is not defined (throws an error). So you might still be on the JavaScript wrapper hiding the Java API, not the actual Java object. In Form.js, it says function Form(formDefinition) {

Re: AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Joerg Heinicke
Joerg Heinicke joerg.heinicke at gmx.de writes: I really wondered about this one as well. What's Widget actually? There is no import in this file, only thing I found was the reference to/ defineClass of ScriptableWidget. So, where is the class definition of the object that is returned

Re: AW: AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Joerg Heinicke
On 17.04.2007 16:28, Franziska Witzani wrote: Invocation of getClassName returns an error. org.mozilla.javascript.EcmaError: TypeError: Cannot find function getClassName. (file:/D:/apache-tomcat-6.0.10/webapps/dibatest/exKo/flows/exKo.js#73) Either the loop is not executed if written like

Re: AW: AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Joerg Heinicke
On 18.04.2007 00:21, Jason Johnston wrote: If the goal is to be able to traverse the actual Java objects, you can use form.getWidget() rather than form.getModel(). That returns the actual org.apache.cocoon.forms.formmodel.Form object rather than a ScriptableWidget wrapper. Why do you let me

Re: AW: AW: Continuations: Snapshot or Pointers?

2007-04-16 Thread Joerg Heinicke
On 16.04.2007 10:29, Franziska Witzani wrote: As I explained before, I need to serialize the contents of the data model into the pageLocal-object. dataModel = myCFormsFormObject.getModel(); So, what I need is more information about the data model object. You can read the values from it, if

<    1   2   3   4   5   6   7   8   9   10   >