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
[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
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
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
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
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
(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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
22 matches
Mail list logo