FOP block depedends on Batik blocks

2003-08-21 Thread Antonio Gallardo
Hi: I found that FOP block depends on batik-block. FOP will not render nothig if yu does not include the Batik block. Even if you does not have any SVG graphics in your generated PDF. I thinking about that and maybe we can improve the current block building by creating a common repository for

Re: can you reach sitemap params from JXTemplate?

2003-08-21 Thread Giacomo Pati
On Wed, 20 Aug 2003, Jeremy Quinn wrote: I cannot get this to work, I get: org.apache.commons.jxpath.JXPathException: Invalid XPath: '$parameters.getParameter(\publishedJobServer\)'. Syntax error after: '$p' If I try : ${$parameters.getParameter('publishedJobServer')} Use:

RE: Using cocoon: source in xsl:imports

2003-08-21 Thread Carsten Ziegeler
Sylvain Wallez wrote: I think this is something the internal processing should handle, which means, if the reader sets such a header it should simply be ignored instead of being passed on. Now, I guess this is very easy as we could create a response wrapper for internal requests (we already

cvs commit: cocoon-2.1/src/blocks/portal/conf portal.xconf

2003-08-21 Thread cziegeler
cziegeler2003/08/20 23:41:19 Modified:src/blocks/portal/java/org/apache/cocoon/portal/impl PortalServiceImpl.java src/blocks/portal/java/org/apache/cocoon/portal/profile/impl MapProfileLS.java

cvs commit: cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/components/persistence - New directory

2003-08-21 Thread cziegeler
cziegeler2003/08/20 23:41:13 cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/components/persistence - New directory

Re: Checkboxes in JXForms - javascript OK, java NOT

2003-08-21 Thread Giacomo Pati
On Wed, 20 Aug 2003, Chris Clark wrote: Based on the samples, I've been looking at checkboxes in JXForms and have a few questions... Given the following snippet from an xform definition: xf:select ref=validchecks appearance=full xf:labelCheck if field is Present amp;

Re: Using cocoon: source in xsl:imports

2003-08-21 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: I think this is something the internal processing should handle, which means, if the reader sets such a header it should simply be ignored instead of being passed on. Now, I guess this is very easy as we could create a response wrapper for internal

Re: Woody flow example do not work

2003-08-21 Thread Sylvain Wallez
Steven Noels wrote: Leszek Gawron wrote: I do not think it's a thing to be put into bugzilla so it goes here: while the standard woody form example is fully functional the flow version does not allow you to add or remove a contact. We've debugged this offline already (Marc and myself during

Any interest in a JobManager?

2003-08-21 Thread Jeremy Quinn
Hi All, For my current client, I have implemented a JobManager and I am wondering if it is general enough to be of interest to anyone else (ie. commit it to Cocoon as a Block). It is not a proper avalon component yet, so I would have to do this first. The problem I needed to solve was this:

Re: can you reach sitemap params from JXTemplate?

2003-08-21 Thread Jeremy Quinn
On Thursday, August 21, 2003, at 02:10 AM, Christopher Oliver wrote: This is how you do it: #{$parameters.getParameter(publishedJobServer)} results in : org.apache.commons.jxpath.JXPathException: Invalid XPath: '$parameters.getParameter(\publishedJobServer\)'. Syntax error after: '$p'

cvs commit: cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/flow/javascript woody.js

2003-08-21 Thread sylvain
sylvain 2003/08/21 03:06:41 Modified:src/blocks/woody/java/org/apache/cocoon/woody/flow/javascript woody.js Log: Fix the use of validator functions for event handling. It's now called either if there's an actionCommand or if the validation succeeded.

Re: can you reach sitemap params from JXTemplate?

2003-08-21 Thread Jeremy Quinn
On Thursday, August 21, 2003, at 10:27 AM, Unico Hommes wrote: What build are you using. This wasn't working a few weeks ago but has been fixed. 2.1.1-dev, a couple of days old. regards Jeremy

Re: Woody, maps, and repeaters

2003-08-21 Thread Marc Portier
Hugo Burm wrote: I am trying to use the Woody sample that uses a Java bean for its binding (form2bean.flow). I want to store the contacts in this example in a map instead of in a list, hm, the biggest problem I see with this 'storing in Map' is: using which key? Maybe you should elaborate on

Re: Woody, maps, and repeaters

2003-08-21 Thread Marc Portier
oops! considering: myBean address hugostreet/city//hugo marcstreet/city//marc brunostreet/city//bruno /address /myBean this: and I'm not sure but probably $myBean/* -- would give you the iteration of the 3 address nodes should have been $myBean/address/* I guess (warning:

Re: [RT] Improving Sitemap and Flowscript

2003-08-21 Thread Vadim Gritsenko
Carsten Ziegeler wrote: Sylvain Wallez wrote: One thing missing is passing information from the pipeline to the components. For example if you write this pipeline: map:generate type=filteredFile src=afile.xml map:parameter name=a parameter value=a value/ ... I assume that the src info and the

Re: Using cocoon: source in xsl:imports

2003-08-21 Thread Vadim Gritsenko
Sylvain Wallez wrote: Carsten Ziegeler wrote: Vadim Gritsenko wrote: Phil Shafer wrote: Vadim Gritsenko writes: Try the suggestion above. Will do. Thanks for the help. Is there a PR open for this? Should I open one? I think there is no bug open for this. Also, I'd ping Carsten to

RE: [RT] Improving Sitemap and Flowscript

2003-08-21 Thread Carsten Ziegeler
Vadim Gritsenko wrote: It could be convinient if it would work. But it does not. map:generator name=filteredFile map:aggregate map:part src=a/ map:part src=b/ map:part src=c/ /map:aggregate map:transform type=xslt src=a.xsl/ map:transform type=xslt

Re: Woody flow example do not work

2003-08-21 Thread Marc Portier
Sylvain Wallez wrote: Steven Noels wrote: Leszek Gawron wrote: I do not think it's a thing to be put into bugzilla so it goes here: while the standard woody form example is fully functional the flow version does not allow you to add or remove a contact. We've debugged this offline already

Re: Using cocoon: source in xsl:imports

2003-08-21 Thread Sylvain Wallez
Vadim Gritsenko wrote: Sylvain Wallez wrote: Carsten Ziegeler wrote: Vadim Gritsenko wrote: Phil Shafer wrote: Vadim Gritsenko writes: Try the suggestion above. Will do. Thanks for the help. Is there a PR open for this? Should I open one? I think there is no bug open for this.

cvs commit: cocoon-2.1/src/scratchpad/src/org/apache/cocoon/components/scheduler TestTarget.java DefaultTimeScheduler.java Scheduler.java readme.txt DefaultScheduler.java DefaultThreadManager.java SchedulerAction.java ConfigurableTarget.java

2003-08-21 Thread cziegeler
cziegeler2003/08/21 05:44:18 Added: src/scratchpad/lib cornerstone-scheduler-api-20030821.jar cornerstone-threads-impl-20030821.jar excalibur-thread-1.1.1.jar cornerstone-scheduler-impl-20030821.jar

RE: Checkboxes in JXForms - javascript OK, java NOT

2003-08-21 Thread Chris Clark
I think there may be a bug then... When I try to use a String array in my Java class, I get the following error: Exception trying to set value with xpath validchecks; Cannot modify property: elrsproto.FormBean.validchecks; Cannot convert value of class java.lang.String to type class

Re: legacy.js and sendmail action (smallish rant)

2003-08-21 Thread Christian Haul
On 21.Aug.2003 -- 02:50 PM, Steven Noels wrote: Hi peeps, Other than hacking too much infrastructural stuff into my little flowapp, I wanted to reuse the SendMail Action from my script. It seems however that this would require legacy.js to be finished. So I went to check whether the

Re: Need help fixing a Woody flow sample

2003-08-21 Thread Marc Portier
Timothy Larson wrote: In woody.js [1] there was a change in version 1.6 that stopped calling: cocoon.request.setAttribute(this.attrName, this.form); and did this instead: var bizData = { woody-form: this.form }; indeed, this lines up more with how flow is expected to be working This will

Re: Need help fixing a Woody flow sample

2003-08-21 Thread Steven Noels
Marc Portier wrote: in terms of best practice I would probably be advocating the use of jxtemplate in combinaion with flow rather then xsp +1 JXTemplate is massive but works nice and dandy. /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source,

Re: Using cocoon: source in xsl:imports

2003-08-21 Thread Vadim Gritsenko
Sylvain Wallez wrote: Vadim Gritsenko wrote: Sylvain Wallez wrote: Carsten Ziegeler wrote: snip/ Now, I guess this is very easy as we could create a response wrapper for internal requests (we already have a request wrapper) and filter the headers. This reminds me some random thoughts I had

Woody - required vs validation

2003-08-21 Thread Timothy Larson
I noticed in the Woody form1 sample that the drinks are not marked required=true, but they act like they are required because of their validation rule: wd:validation wd:value-count exact=2/ /wd:validation It seems that if the field is not required and no drinks are selected, then this

RE: Woody, maps, and repeaters

2003-08-21 Thread Hugo Burm
Hello Marc, Ok. Let me explain. Maps are sometimes much more convenient than Lists (let's skip a discussion on that one). So I have two classes: public class HContact { private String id; private String firstName; private String lastName; private String phone; private String

Re: can you reach sitemap params from JXTemplate?

2003-08-21 Thread Christopher Oliver
Sorry, my bad, the JXPath version should be this: #{getParameter($parameters, 'publishedJobServer')} and the Jexl version: ${parameters.getParameter('publishedJobServer')} These do work (at least for me). The fact that you got no output from the Jexl version would seem to indicate that the

Re: Need help fixing a Woody flow sample

2003-08-21 Thread Christopher Oliver
IMO the change to use woody-form is very poor choice because its not a valid Jexl identifier. This means that if you want to access it in JXTemplate you have to use this syntax: ${flowContext['woody-form'].someWidget} If you change it to say 'woodyForm' you can access it directly:

Re: Database.js

2003-08-21 Thread Christopher Oliver
Steven Noels wrote: ... so basically I have two possible outcomes of my try{} block, each calling another pipeline. I'm worried that the flowscript only executes upto that sendPage, never reaching the conn.close() in the finally{} block. Or does it? /Steven No, you're fine because

Re: Checkboxes in JXForms - javascript OK, java NOT

2003-08-21 Thread Christopher Oliver
Why not use xf:itemset in this case instead of jx:forEach? Giacomo Pati wrote: On Thu, 21 Aug 2003, Chris Clark wrote: I think there may be a bug then... When I try to use a String array in my Java class, I get the following error: Exception trying to set value with xpath validchecks;

Re: [RT] Prebuilding your cache with the CLI

2003-08-21 Thread Vadim Gritsenko
Upayavira wrote: Vadim has just fixed a bug with the persistent cache not shutting down properly. This means that the CLI has access to the Cocoon cache. For a largely static site, should now be possible to have the CLI crawl a site, purely with the intention of building up the cache, which

Re: [RT] Improving Sitemap and Flowscript

2003-08-21 Thread Vadim Gritsenko
Carsten Ziegeler wrote: Vadim Gritsenko wrote: It could be convinient if it would work. But it does not. map:generator name=filteredFile map:aggregate map:part src=a/ map:part src=b/ map:part src=c/ /map:aggregate map:transform type=xslt src=a.xsl/ map:transform

RE: Checkboxes in JXForms - javascript OK, java NOT

2003-08-21 Thread Chris Clark
I'm using xf:itemset at the moment. Never seen the jx:ForEach before which gets back to one of my original questions: Are there any docs for jxForms yet? If so, where? Regardless of whether I use the itemset or not, I can get my checkboxes to display correctly on the screen. The problem comes

JXForms and Actionframework

2003-08-21 Thread Björn Voigt
Hi all, How long will it takes to provide JXForms with a ActionFramework? I red some posts about it. Will it be realized in next time? Björn

Re: Need help fixing a Woody flow sample

2003-08-21 Thread Timothy Larson
Thanks for the help. So far, this is the only way I have gotten this to work. In the flow change: cocoon.sendPage(success-pipeline); to: cocoon.sendPage(success-pipeline, {woody:form.getModel()}); and in a JXTemplate file use this syntax to get the value of the name widget: h3Name:

Re: can you reach sitemap params from JXTemplate?

2003-08-21 Thread Steven Noels
Jeremy Quinn wrote: On Thursday, August 21, 2003, at 10:27 AM, Unico Hommes wrote: What build are you using. This wasn't working a few weeks ago but has been fixed. 2.1.1-dev, a couple of days old. ... and I'm running into the same problem, with HEAD from this afternoon. sitemap:

Re: [RT] Improving Sitemap and Flowscript

2003-08-21 Thread Sylvain Wallez
Christian Haul wrote: On 21.Aug.2003 -- 01:40 PM, Carsten Ziegeler wrote: But, if you write map:generate type=filteredFile src=something then you can access it automatically as {src} rather than writing map:generate type=filteredFile map:parameter name=src value=something/ We *will*

RE: Need help fixing a Woody flow sample

2003-08-21 Thread Christopher Oliver
Oh, you're talking about cocoon.sendPage(). Well, yeah you have to pass the object then. The way you did it is correct. Of course, you could have simply passed the form widget itself: cocoon.sendPage(success-pipeline, form.getModel()); h3${name}/h3 Most of this _is_ documented:

Re: cvs commit: cocoon-2.1/src/blocks/fop/samples/misc samples.xml

2003-08-21 Thread Antonio Gallardo
Hi: Add a note about dependency on Batik +note +FOP block requires Batik block to be present for generating PDF with embedded images. +/note Sorry, but this is not correct: FOP block requieres ALWAYS the batik block regardless of generating images inside PDF

Re: Woody - required vs validation

2003-08-21 Thread Antonio Gallardo
Timothy Larson dijo: I noticed in the Woody form1 sample that the drinks are not marked required=true, but they act like they are required because of their validation rule: wd:validation wd:value-count exact=2/ /wd:validation It seems that if the field is not required and no drinks

Re: cvs commit: cocoon-2.1/src/blocks/fop/lib fop-0.20.5.jar

2003-08-21 Thread Antonio Gallardo
Joerg Heinicke dijo: Vadim Gritsenko wrote: [EMAIL PROTECTED] wrote: joerg 2003/08/12 00:52:20 Modified:src/blocks/fop/lib fop-0.20.5.jar Log: rebuilt the jar with Cocoon's versions of Batik, XML apis, Avalon framework Revision ChangesPath 1.2 +4332

Re: Using cocoon: source in xsl:imports

2003-08-21 Thread Sylvain Wallez
Vadim Gritsenko wrote: Sylvain Wallez wrote: Vadim Gritsenko wrote: snip/ Actually it depends not on header type alone but on usage of the resource. If it is aggregated to be part of the output - then I agree with some of your thoughts below. But if it is, say, called from the flow - none