Re: Sitemap Performance Optimization

2005-07-08 Thread Vilya Harvey
The best advice is to try it and see for yourself. That said, I'd expect the single matcher to perform significantly better as it doesn't have the overhead of serializing and re-parsing the intermediate transformation results. Vil. Antonio Fiol BonnĂ­n wrote: Hello, I would like to improve

Re: Sitemap Performance Optimization

2005-07-08 Thread Vilya Harvey
Ugo Cei wrote: Il giorno 08/lug/05, alle 15:17, Vilya Harvey ha scritto: The best advice is to try it and see for yourself. That said, I'd expect the single matcher to perform significantly better as it doesn't have the overhead of serializing and re-parsing the intermediate transformation

Re: Forms builder

2005-03-01 Thread Vilya Harvey
Arsen A. Gutsal wrote: Hello List. Does anyone know some good Forms Builder which could generates def, template and binding? I don't think such a thing exists yet, but it would be great to hear about if it does. For the record, what I've done is defined my own simplified XML format for forms

Re: separation of roles

2005-02-16 Thread Vilya Harvey
Bowe, Bastian wrote: Well, Tapestry offers you to directly create html. You just have to put some jwcid attributes to some of the tags and Tapestry dynamically replaces tags with a jwcid with generated content. See the Tapestry docs for some more infos if interested. You can do exactly that

Re: JXPath

2005-02-02 Thread Vilya Harvey
Roberto wrote: Hi cocoon developers, Im trying to use JXPath to read the value of xml file in a flow, like that: var context = org.apache.commons.jxpath.JXPathContext.newContext(cocoon:/xmldata/users.xml); var value = toString(context.getValue(autentication/users/[EMAIL

Re: decimal formatting

2005-01-28 Thread Vilya Harvey
Gunter D'Hondt wrote: and what with the woody field convertors? for example i've got the following widget declaration: wd:output id=price wd:label/ wd:datatype base=decimal wd:convertor variant=number wd:patterns wd:pattern#0.00/wd:pattern /wd:patterns

Re: CForms number validation behaviour

2005-01-24 Thread Vilya Harvey
Reinhard Poetz wrote: Murray Cassie wrote: Problem: when we enter something like 3abc this is treated like a correct entry. All characters after the first that is no number are cut off and only the first numbers are evaluated. This might be wanted behaviour, but not according to our spec. Any

Re: XPath in flowscript ?

2005-01-21 Thread Vilya Harvey
Ugo Cei wrote: Il giorno 21/gen/05, alle 08:41, Marc Salvetti ha scritto: i was just wondering if there is some technique to use xpath from flowscript to retrieve a part of a dom ? something like doc = someObject.xpath(path/to/somewhere, mainDoc); it would be quite handy instead of using the dom

Re: Cocoon Forms - how to add a confirmation dialog on submit

2005-01-19 Thread Vilya Harvey
Hank Heidt wrote: Can any of you recommend a good way or point me to an example of how to add a confirmation dialog, i.e., Are you sure that you want to save the changes? to the standard Cocoon Forms submit widget? I looked around and didn't see anything obvious - my hope is that there is an

Re: TypeError: getStock is not a function.

2005-01-14 Thread Vilya Harvey
beyaRecords wrote: fd:javascript for (var orderitem in neworder.getOrderItems()){ -- This line is fine. if (orderitem.getStock().getItemTitle() == abcd) { - This line is causing the error. ...do something. } } /fd:javascript The code in the jx page works, but the javascript in

Re: different flavours of the same form with cforms

2005-01-10 Thread Vilya Harvey
Stefan Burkard wrote: i'd like to create different flavours of a contact-form with cocoon forms. all flavours have some fields in common (name, e-mail, ...) but most of the flavours have also specialised fields. for example the form to submit new links has a field to type a link. so, is it

[CForms] Setting a default number format for numeric fields in CForms

2005-01-05 Thread Vilya Harvey
Hi all, I'm trying to specify a default number format for fields in CForms. I want something that applies to all fields, except for those which explicitly provide their own number format. Is such a thing possible? I'm using Cocoon 2.1.5.1, BTW. Thanks in advance, Vil.

Re: CForms, Binding, Flowscript (Cocoon 2.1.5)

2004-07-19 Thread Vilya Harvey
Ben Pope wrote: I've been following the blocks/forms/XML Binding example without complete success. It will bind quite happily to the CForms, it will map changes back to the XML, but only when the row number already exists. I've only had a quick look through your example, but I think you need to

Re: handling XML Node deletion in CForms

2004-07-07 Thread Vilya Harvey
Jeremy Quinn wrote: Is there some way to have a FlowScript function called from the binding when node deletion takes place in a CForms repeater ? You could try using a fb:javascript element inside the fb:on-delete-row element of your repeater binding. I haven't tried it myself, so I'm not sure

Re: New wiki - impressions?

2004-07-05 Thread Vilya Harvey
[EMAIL PROTECTED] wrote: i think that is more difficult to find your way in this wiki navigation is more clean in cocoondev's wiki My thoughts exactly. With the old wiki it was fairly easy to find stuff. With this new one, I really have to look hard to get to the bits that I need. Vil. --

Re: Show/Hide Widgets

2004-07-05 Thread Vilya Harvey
Joerg Heinicke wrote: The good news: It is not an error in the implementation, but in your form definition. But it's still a not so intuitive implementation then. Thanks so much for this! With your alterations it works like a charm. The solution (hoping that Tim also reads it): The implicite cases

Re: Show/Hide Widgets

2004-07-01 Thread Vilya Harvey
Joerg Heinicke wrote: On 30.06.2004 12:05, Vilya Harvey wrote: Sorry, I wasn't being clear. What I was trying to say is that action widgets which occur inside a union seem to behave as if they were submit widgets, whereas action widgets outside of a union behave as expected. Hopefully

Re: Show/Hide Widgets

2004-06-30 Thread Vilya Harvey
Joerg Heinicke wrote: This is possible using the union widget. I did it myself on Friday. The resources I used were http://wiki.cocoondev.org/Wiki.jsp?page=TimLarson and the form model GUI sample, but the latter one is really complex. Ask further questions if you need - maybe I will port to car

Re: CForm - Disabling buttons from flow scripts

2004-06-30 Thread Vilya Harvey
Derek Hohls wrote: Joerg The status of this page and what it describes is unclear - it refers to 'Woody' and wd:, wt: prefixes... Has this functionality been included in the production version of Cocoon (2.1.5), or do we need to access it some other way? It's definitely in the 2.1.5 release - I've

Re: CForm - Disabling buttons from flow scripts

2004-06-30 Thread Vilya Harvey
Derek Hohls wrote: Vil Thanks for the heads-up... But if its going be superceded by Widge N (and they do seem to be multiplying!) will that mean having to rewrite a chunk of code? It would depend on whether or not the union widget is kept in Cocoon for backwards compatibility, I guess. I don't

Re: Show/Hide Widgets

2004-06-30 Thread Vilya Harvey
Joerg Heinicke wrote: On 30.06.2004 11:00, Vilya Harvey wrote: Have you (or anyone else) noticed a bug with action widgets inside a union? The behaviour I'm seeing is that they always cause the form to be submitted, rather than just updated. It's annoying because I'm trying to create a popup

Re: CForms

2004-06-28 Thread Vilya Harvey
Colin Paul Adams wrote: Tim In the sitemap for the sample forms: Tim C:\tdl\live\repo\cocoon\cocoon-2.1\src\blocks\forms\samples\sitemap.xmap Tim you will see transformer lines like this: map:transform Tim src=resources/forms-samples-styling.xsl/ that refer to the Tim

Validate an XML document in a flowscript

2004-06-16 Thread Vilya Harvey
Hi all, I'm using CForms and the binding framework to edit an XML document. That's working great. What I'd like to do is validate the document against an XML Schema after it's been updated with the values from the form. How can I achieve this? The flowscript which controls the form at the

Re: Validate an XML document in a flowscript

2004-06-16 Thread Vilya Harvey
Hi, Simon Hutchinson wrote: Vilya Harvey wrote: What I'd like to be able to do is insert some code after the form.save(...) line which validates the form, and loops back to the form.load(...) line if validation fails. Any suggestions? Sounds like a simple while loop might do the trick. I'm

Re: Validate an XML document in a flowscript

2004-06-16 Thread Vilya Harvey
Vilya Harvey wrote: I'm sorry I didn't make it clear, but it's actually the code to perform the validation that I'm looking for. I have no problem writing loops in JavaScript! Thanks for the reply anyway, Should have mentioned, but this is what I've tried so far: == function

[cforms] How to paginate widgets inside a repeater?

2004-06-09 Thread Vilya Harvey
Hi everyone, I'm fairly new to Cocoon and already very impressed with it, but have run across an issue I'm not sure how to solve. I've looked in the FAQ and HowTo sections as well as the resource links, but haven't been able to find anything. Any suggestions would be appreciated. I have a

Re: [cforms] How to paginate widgets inside a repeater?

2004-06-09 Thread Vilya Harvey
Thanks for the quick reply! Upayavira wrote: Vilya Harvey wrote: I have a form, using CForms, with a repeater. I'd like to paginate it's contents, but I can't figure out how. As far as I can tell, the PaginationTransformer can't handle this use case (although I'd love to be wrong about