Re: Looking for SAX parsers benchmark

2006-07-05 Thread Antonio Gallardo
Here is another interesting link. http://blog.reverycodes.com/archives/40.html Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

SVG serializer renders PNGs to arbitrary width

2006-07-05 Thread Stephen Winnall
I am trying to generate PNG text icons from SVG in Cocoon. I just want a PNG with no extra space around the text. I use the following match in my sitemap and generate the appropriate text icon by calling 1) .../nav2.png?icon-text=abc 2) .../nav2.png?icon- text=Llanfairpwllgwyngyll

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Toby
Andrew Madu wrote: > You leave code for a while, and you forget everything...well I do!! We all do :-) That's what comments are for, to an extent. > > I'm also not sure that is what you want to do. > > Why? My mistake, that part is right. Toby -

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
On 05/07/06, Toby <[EMAIL PROTECTED]> wrote: Andrew Madu wrote:> Problem solved!!Isn't this what solved your problem, according to your sitemap?bookmark.id}" type="hidden" name="continuation-id"/> That plus the fact that I moved the continuation  command before the form creation. But yes, the above

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Toby
Andrew Madu wrote: > Problem solved!! Isn't this what solved your problem, according to your sitemap? Toby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
TobyI'm also not sure that is what you want to do. Why? regardsAndrew

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Toby
Andrew Madu wrote: > > > > > > > > I think the call should be I'm also not sure that is what you want to do. Toby -- Signed/encrypted mail welcome. GPG/PGP Key-Id: 0x15C5C2EA - To unsub

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
On 05/07/06, Ard Schrijvers <[EMAIL PROTECTED]> wrote: Why are you actually creating your own bkm? cocoon.sendPageAndWait already returns a continuationAs stated in the cocoon wiki, the reason is:'createWebContinuation Function [WebContinuation] createWebContinuation() Creates a new "book

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
Problem solved!!The idea is to place createWebContinuation before the form definition section!! var bkm = cocoon.createWebContinuation();var form = new Form("forms/CreditCardDetails.xml"); form.showForm("CreditCardDetails.xml", {"userGlobal":userGlobal}); var model = form.getModel();var bizData =

RE: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Ard Schrijvers
Why are you actually creating your own bkm? cocoon.sendPageAndWait already returns a continuation. Can you try removing the bkm var and just do a    cocoon.sendPageAndWait("orderFail.xml");   Try the following:   var finished = false;do {    var k = cocoon.sendPageAndWait("orderFail.x

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
Hi,I may be wrong here but that sure looks like overkill to me. I am generating a continuation using: var form = new Form("forms/CreditCardDetails.xml"); form.showForm("CreditCardDetails.xml", {"userGlobal":userGlobal}); var model = form.getModel();var bizData = {"fname" : model.fname, "lname" : mo

RE: cache

2006-07-05 Thread Ard Schrijvers
> > Consider a counter-example: > > > > > > > > I believe that what happens, and what the documentation text is > describing, is that when this pipeline is first executed it > caches as much > of the pipeline as it can: in this case the output from the first two > components, since those

RE: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Ard Schrijvers
I mean that the following piece of code has the behavior you want I think:   var comingBack = false; var bookmark = cocoon.createWebContinuation(ttl); // Attach the form to the continuation so that we can access by just knowing the continuation id bookmark.setAttribute("form", this.form); i

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
Ard,sorry, I still don't get it!! In the context of:var bkm = cocoon.createWebContinuation();..cocoon.sendPageAndWait("orderFail.xml", {bookmark:bkm, "OrderDetails":neworder, "transaction_message": response.getCVV2Code()});how do I implement :Form.prototype.sendFormAndWait = function(){}?regard

RE: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Ard Schrijvers
Hello Andrew,   take a look at Form.prototype.sendFormAndWait in  Form.js in the cocoon code. Think you will get the idea if you look at that one,   Regards Ard Hi,I am having some problems implementing a continuation bookmark. Basically a user enters some form details and submits the

Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
Hi,I am having some problems implementing a continuation bookmark. Basically a user enters some form details and submits the details:function confirmStage() {        //2. Get card details.    var form = new Form("forms/CreditCardDetails.xml");     form.showForm("CreditCardDetails.xml", {"userGlobal

upload widget

2006-07-05 Thread Roland Bair
Hello there :) I am new to this mailing list - so plz be patient ! I am working with cocoon 2.1.8 and i have problems with ajax and the upload widgets... I read in the archive that 2.1.9 may solve this problem, true/false? is there any possibility to patch 2.1.8 to accept upload widgets wit

RE: cache

2006-07-05 Thread Jason Johnston
> >> Ard Schrijvers wrote: >> >> See: http://cocoon.apache.org/2.1/userdocs/concepts/caching.html >> > >> > About that page, and then particularly >> > >> > "The Default Caching Algorithm >> > >> > The default algorithm uses a very easy but effective approach to cache a request: The pipeline proces

RE: HTML tag in I18n ?

2006-07-05 Thread Ard Schrijvers
plz be more specific and mail a code snippet to explain what you want Ard > > Hi, > > Can i use html tag in I18n declaration file ?? > > Lionel > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e

RE: Tests on Cocoon

2006-07-05 Thread Ard Schrijvers
I am not familiar with jmeter, but just from client site you can get quite some information on performance by using solex (an eclipse plugin). Only, solex cannot cope with sessions, so when sessions are important, I use charles. I don't know if they meet your wishes. Furthermore, I don't know

HTML tag in I18n ?

2006-07-05 Thread Lionel Crine
Hi, Can i use html tag in I18n declaration file ?? Lionel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Tests on Cocoon

2006-07-05 Thread Lionel Crine
Hi all, I'm doing some "load" tests (using jmeter) on my cocoon application (in tomcat) and I encountering a trouble. For information, I'm using "esql" taglib to request an oracle database. What is not working are particular URL launching from JMETER;. The sql request is created and executing

RE: cache

2006-07-05 Thread Ard Schrijvers
> Ard Schrijvers wrote: > >> See: http://cocoon.apache.org/2.1/userdocs/concepts/caching.html > > > > About that page, and then particularly > > > > "The Default Caching Algorithm > > > > The default algorithm uses a very easy but effective approach to > > cache a request: The pipeline process

Re: cache

2006-07-05 Thread Jason Johnston
Ard Schrijvers wrote: See: http://cocoon.apache.org/2.1/userdocs/concepts/caching.html About that page, and then particularly "The Default Caching Algorithm The default algorithm uses a very easy but effective approach to cache a request: The pipeline process is cached up to the most possible

Re: Widget javascript validation problem

2006-07-05 Thread Andrew Madu
Gary,if(!/^[0-9]{16}$/.test(account_no.value)) { //This is invalid } will match an account number with no spaces.many thanks for that heads up. All is working a treat now.regardsAndrew

RE: Widget javascript validation problem

2006-07-05 Thread Stewart, Gary
-Original Message- From: Andrew Madu [mailto:[EMAIL PROTECTED] Sent: 05 July 2006 13:13 To: users@cocoon.apache.org Subject: Re: Widget javascript validation problem > The other problem I am having is with the widget datatype definition for > account_no: > > fd:datatype base="integer"

Re: Widget javascript validation problem

2006-07-05 Thread Andrew Madu
Gary,At a glance it looks like *account_no.setValidationError* is wrong as you declared the variable as *accountNumberLength*. This is why I like strict type checking. that now works fine now. I remember having done the same mistake a while ago, and was trying to chek against the actual widget id I

RE: Widget javascript validation problem

2006-07-05 Thread Stewart, Gary
-Original Message- From: Andrew Madu [mailto:[EMAIL PROTECTED] Sent: 05 July 2006 12:31 To: users@cocoon.apache.org Subject: Widget javascript validation problem > > >var success = true; >var creditCardType = widget.lookupWidget("credit"); >var accountNumberL

Widget javascript validation problem

2006-07-05 Thread Andrew Madu
Hi,I am having an issue with a widget form validation under cocoon 2.1.8. Basically what I have is a selection box with various credit card types, (visa, matercard...) etc, and based on the card selected a check is done on the credit card number field to make sure that the number of digits entered

RE: Alternatives to XSP? (was: Dynamic selection list)

2006-07-05 Thread Ard Schrijvers
> > Derek Hohls wrote: > > Are people still writing apps in XSP? I thought that usage > of XSP was > > deprecated and that it had long been supplanted by other, > more robust, > > technologies and techniques. > > Such as? JX, flowscript, cforms (javaflow though not yet used)Personally, I

Alternatives to XSP? (was: Dynamic selection list)

2006-07-05 Thread Toby
Derek Hohls wrote: > Are people still writing apps in XSP? I thought that usage of XSP was > deprecated and that it had long been supplanted by other, more robust, > technologies and techniques. Such as? I have lots of SQL queries to make, all of which depend on values gathered from the previous

Ajax and Cocoon - a wish?!

2006-07-05 Thread Derek Hohls
Can't but help wish that this book: http://www.cristiandarie.ro/ajax-php/ was entitled: AJAX and Cocoon: Building Responsive Web Applications Many of the chapters would not change at all (and issues such as SVG fit perfectly into the Cocoon paradigm -there is even an Appendix on "XSLT and XPath

RE: Dynamic selection list

2006-07-05 Thread Warrell
Wh.. Why make life difficult? See http://cocoon.apache.org/2.1/userdocs/widgetconcepts/selectionlists.html and use a Cocoon pipeline which has a matcher that uses the SQLTransformer to get the results out of the database. Hope this helps. -Original Message- From: Toby [mailt

Re: Looking for SAX parsers benchmark

2006-07-05 Thread Cocoon Man
Thanks for the link.   It seems VTD-XML is very fast. Have you tried to integrate it to Cocoon 2.1 ?   Does it support namespace ?   Regards,  2006/7/5, Jimmy Zhang <[EMAIL PROTECTED]>: http://vtd-xml.sf.net/benchmark.html - Original Message - From: Cocoon Man To: users@cocoon.apach

RE: cache

2006-07-05 Thread Ard Schrijvers
> See: http://cocoon.apache.org/2.1/userdocs/concepts/caching.html About that page, and then particularly "The Default Caching Algorithm The default algorithm uses a very easy but effective approach to cache a request: The pipeline process is cached up to the most possible point. Therefore e

Re: Looking for SAX parsers benchmark

2006-07-05 Thread Jimmy Zhang
http://vtd-xml.sf.net/benchmark.html - Original Message - From: Cocoon Man To: users@cocoon.apache.org Sent: Tuesday, July 04, 2006 1:20 AM Subject: Looking for SAX parsers benchmark Hello,   I looked a little on the net for some SAX parsers benchmark but