cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivelin Ivanov" <ive...@apache.org>
Subject Re: dynamic data in XMLForm
Date Thu, 08 Aug 2002 13:33:25 GMT


----- Original Message -----
From: "apurva zaveri" <azaveri@yahoo.com>
To: <cocoon-users@xml.apache.org>
Sent: Wednesday, August 07, 2002 2:50 PM
Subject: Re: dynamic data in XMLForm


> Sheraz I guess you are not using the xmlform-wizard
> for your forms. Or are you??
>
> I want to use the xmlform-wizard from :
>
http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html
>
> This xmlform-wizard form once developed can also be
> used for generating VoiceXML form or WMLForm (not only
> html form). I think so, am I right anybody??

That is correct.

As I mentioned, XInclude is the way to go.
Andrew Oliver was on his way to merge it with CInclude. Not sure of the
progress.

>
> It uses a jbean or a dom object to store values.
>
> Also I tried to access
> http://80.1.148.3:8080/cocoon/valorious/
> but does not work. Seems like the webserver is down?
>
> Ivelin, I checked the latest XMLForm it does not have
> a selection who's values are dynamic.
>
> Lets say in the how-to there is a field in the first
> page of the form "Professional roles" having values
> like "geek,hacker,student...." coming from page
> userIdentity.xml. How can one make these values
> "geek,hacker,student...." come from a database instead
> of hard codeing it in userIdentity.xml.
>
> -Apurva
>
>
>
>
> --- Sheraz Khan <Sheraz.Khan@Valorious.com> wrote:
> > heres some code for a dynamic drop down menu.
> > this page get data from a database and places it
> > into a drop menu.
> > wala...
> >
> > for more basic help, go to my site
> > http://cocoon.sherazkhan.com
> >
> >
> > <?xml version="1.0"?>
> >
> > <xsp:page language="java"
> >   xmlns:xsp="http://apache.org/xsp"
> >
> >
> xmlns:xsp-formval="http://apache.org/xsp/form-validator/2.0"
> >
> >
> xmlns:xsp-request="http://apache.org/xsp/request/2.0"
> >
> >
> xmlns:xsp-response="http://apache.org/xsp/response/2.0"
> >
> > xmlns:esql="http://apache.org/cocoon/SQL/v2"
> >   xmlns:log="http://apache.org/xsp/log/2.0">
> > <document>
> >    <header>
> >      <title>Admin - Sub Category</title>
> >    </header>
> >    <body>
> >      <s1 title="Create a subcat">
> >        <form handler="create-a-subcat.html">
> >            You can create a sub category by typing
> > in the
> >            name and pressing the "Create" button.
> >
> >          <p>
> >            Name: <text name="Name" size="30"
> > required="true"/><br />
> >   <xsp-formval:on-toosmall name="Name">
> >     Name must be at least 5 characters.
> >   </xsp-formval:on-toosmall>
> >   <xsp-formval:on-toolarge name="Name">
> >     Name must be less than 64 characters.
> >   </xsp-formval:on-toolarge>
> >          </p>
> >
> > Category:
> > <select name="ID_Category">
> > <esql:connection>
> > <esql:pool>valconn</esql:pool>
> > <esql:execute-query>
> > <esql:query>SELECT ID_Category, Name FROM
> > Tbl_Categorys ORDER BY
> > Name</esql:query>
> > <esql:results>
> > <esql:row-results><option>
> > <xsp:attribute name="value"><esql:get-string
> > column="ID_Category"/></xsp:attribute>
> > <esql:get-string column="Name"/></option>
> > </esql:row-results>
> > </esql:results>
> > </esql:execute-query>
> > </esql:connection>
> > </select>
> > <p></p>
> >
> >          <submit name="Create"/>
> >          <note>
> >            * These fields are required.
> >          </note>
> >        </form>
> >      </s1>
> >    </body>
> > </document>
> > </xsp:page>
> >
> > hope it helps
> >
> > Sheraz
> >
> > On Wednesday, August 7, 2002, at 06:34 AM, Ivelin
> > Ivanov wrote:
> >
> > >
> > > Please explain what do you mean by dynamic drop
> > down?
> > >
> > > Have you seen the most recent demo?
> > >
> > >
> > > ----- Original Message -----
> > > From: "apurva zaveri" <azaveri@yahoo.com>
> > > To: <cocoon-users@xml.apache.org>
> > > Sent: Monday, August 05, 2002 9:22 PM
> > > Subject: dynamic data in XMLForm
> > >
> > >
> > >> I was going through the emails for the dynamic
> > data in
> > >> XMLForm. Did we come to a solution for how to
> > create a
> > >> dynamic selection dropdown in xmlforms??
> > >> If so can some on please provide a code snippet
> > or
> > >> some insight. It is somehow not very apprent
> > reading
> > >> the email about it.
> > >>
> > >> Please help.
> > >>
> > >>
> > __________________________________________________
> > >> Do You Yahoo!?
> > >> Yahoo! Health - Feel better, live better
> > >> http://health.yahoo.com
> > >>
> > >>
> >
> ---------------------------------------------------------------------
> > >> Please check that your question  has not already
> > been answered in the
> > >> FAQ before posting.
> > <http://xml.apache.org/cocoon/faq/index.html>
> > >>
> > >> To unsubscribe, e-mail:
> > <cocoon-users-unsubscribe@xml.apache.org>
> > >> For additional commands, e-mail:
> > <cocoon-users-help@xml.apache.org>
> > >>
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > Please check that your question  has not already
> > been answered in the
> > > FAQ before posting.
> > <http://xml.apache.org/cocoon/faq/index.html>
> > >
> > > To unsubscribe, e-mail:
> > <cocoon-users-unsubscribe@xml.apache.org>
> > > For additional commands, e-mail:
> > <cocoon-users-help@xml.apache.org>
> > >
> > >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message