Re: Dynamic selection list

2006-07-05 Thread Derek Hohls
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. FWIW, the way I do this is to use an SQLTransformer and stylesheet combo: 1. The query (say, XYZ-lookup.xml): ?xml

RE: Dynamic selection list

2006-07-05 Thread Warrell
[mailto:[EMAIL PROTECTED] Sent: 04 July 2006 17:41 To: users@cocoon.apache.org Subject: Dynamic selection list I'm trying to implement a dynamic selection list for a form field. I need to extract the selection values and labels from a database. The only way of filling a selection list with dynamic

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

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 haven't

Dynamic selection list

2006-07-04 Thread Toby
I'm trying to implement a dynamic selection list for a form field. I need to extract the selection values and labels from a database. The only way of filling a selection list with dynamic values, that I could glean from the documentation, is by using flow-jxpath. Which poses the problem of how

Re: Dynamic selection list

2006-07-04 Thread Toby
Jason Johnston wrote: how to make a SQL query in javascript. It can be done, though the syntax isn't quite as nice. I'd like to give it a try, if the syntax isn't unbearable. Do you have any pointers? Although most of all I'd rather do it in ESQL in an XSP page and then somehow call it from

Re: Dynamic Selection List in a Repeater

2005-10-19 Thread Joerg Heinicke
(CCing Daniel as the original thread started 4 months ago.) On 22.06.2005 05:26, Daniel Curran wrote: I have a dynamic selection list that queries a database for its values. I now put the selection list into a repeater and I am having issues with load (imagine that). Is there a way to cache

Re: Dynamic Selection List in a Repeater

2005-10-19 Thread Antonio Gallardo
Joerg Heinicke wrote: (CCing Daniel as the original thread started 4 months ago.) On 22.06.2005 05:26, Daniel Curran wrote: I have a dynamic selection list that queries a database for its values. I now put the selection list into a repeater and I am having issues with load (imagine

[CForms] building dynamic selection list with javaflow

2005-09-16 Thread footh
I've read the doc about how to create dynamic selection list data in formscript a la this: var data = new Object(); data.cityList = new Array(2); data.cityList[0] = {value:AL, label:Alabama}; data.cityList[1] = {value:AK, label:Alaska}; form.showForm(flow/myform.form, data); ...and I'm

Re: [CForms] building dynamic selection list with javaflow

2005-09-16 Thread Jason Johnston
I've read the doc about how to create dynamic selection list data in formscript a la this: var data = new Object(); data.cityList = new Array(2); data.cityList[0] = {value:AL, label:Alabama}; data.cityList[1] = {value:AK, label:Alaska}; form.showForm(flow/myform.form, data); ...and I'm

Re: [CForms] building dynamic selection list with javaflow

2005-09-16 Thread footh
Thanks, that did the trick. --- Jason Johnston [EMAIL PROTECTED] wrote: I've read the doc about how to create dynamic selection list data in formscript a la this: var data = new Object(); data.cityList = new Array(2); data.cityList[0] = {value:AL, label:Alabama}; data.cityList[1

Dynamic Selection List in a Repeater

2005-06-21 Thread Daniel Curran
I have a dynamic selection list that queries a database for its values. I now put the selection list into a repeater and I am having issues with load (imagine that). Is there a way to cache the values of the selection list so that it is not being called for each row of the repeater? Thanks

flowscript + forms + dynamic selection list + passing information

2004-08-30 Thread Joose Vettenranta
Hi, normally when creating selection list for forms, is done like this: fd:selection-list src=cocoon:/list.xml dynamic=true / but now I have integer created in flowscipt and that needs to be passed to that selection-list. How? Can I use request-object to pass that integer or session or

Re: flowscript + forms + dynamic selection list + passing information

2004-08-30 Thread Derek Hohls
Joose Why not use a JXTemplateGenerator to build the selection list; variables created in flow can certainly be accessed from such pages, using the ${variable_name} notation. I have used this to build selection lists from forms, whose members vary according to selections from previous forms. In

Re: flowscript + forms + dynamic selection list + passing information

2004-08-30 Thread Joose Vettenranta
Hi Derek, thanks, I have to check that out, but how can I pass variables to forms to be read from jxtemplategenerator? I have not yet looked much into jxtemplate-stuff, but I'm using beans with XSP (not esql), so can jxtemplate be used with beans also? There is alos that jpath stuff for XSP so

Antwort: flowscript + forms + dynamic selection list + passing information

2004-08-30 Thread Stephane Delort
selection list + passing information Hi, normally when creating selection list for forms, is done like this: fd:selection-list src=cocoon:/list.xml dynamic=true / but now I have integer created in flowscipt and that needs to be passed to that selection-list. How? Can I use request-object to pass

Re: flowscript + forms + dynamic selection list + passing information

2004-08-30 Thread Derek Hohls
Joose JXTemplates are pretty simple to use - maybe too simple for your app?? They can access variables from the request, the session and the context, eg. ${cocoon.request.contentType} or ${cocoon.session.myVariable} - so any variables placed into the session from flow can be accessed.

[cforms] dynamic selection list

2004-07-05 Thread Stephane Delort
Hi, I have 2 multivalue fields. I would like to fill the second with the values of the select items in the first one. eg, : if my first field is like this : - cats - dogs - birds - other pets If I select cats the second field should be filled with - c1 - c2 - c3 And I I also choose dogs (I

[cforms] dynamic selection list

2004-07-05 Thread Stephane Delort
Hi, I checked the doc (1) , and it appears that on-value-changed event handling on multiplevaluefield is on the TODO list. Can anyone told me how far is the development around this ? also, is there a way to make a simple custom action to make my sample work ? Moreover, does anyone have an

Re: [Woody] Integers in dynamic selection list are localized (BUG?)

2004-06-17 Thread Marcin Okraszewski
Hi, Plain convertor worked as I wanted when it was in model. Previously I tried with formatting convertors and giving pattern like #0, but it didn't result as I expected. Thanks for help. Marcin Okraszewski I tried with wd:convertor in model, but it doesn't help, it would help to use a

Re: [Woody] Integers in dynamic selection list are localized (BUG?)

2004-06-16 Thread Bruno Dumon
On Tue, 2004-06-15 at 22:16, Marcin Okraszewski wrote: Hi, I have a multivalue field. Its values are integers, but some of them are 1000. The selection list is dynamically generated. After woody transformer, values are converted into human readable form, so that eg. 1000 is changed into

[Woody] Integers in dynamic selection list are localized (BUG?)

2004-06-15 Thread Marcin Okraszewski
Hi, I have a multivalue field. Its values are integers, but some of them are 1000. The selection list is dynamically generated. After woody transformer, values are converted into human readable form, so that eg. 1000 is changed into 1 000. I tried with wd:convertor in model, but it doesn't