cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivelin Ivanov" <ive...@apache.org>
Subject Re: textarea in XMLForm
Date Thu, 24 Oct 2002 02:34:11 GMT
http://localhost:8080/cocoon/documents/howto/xmlform-wizard/howto-xmlform-wi
zard.html

You can probably add another brief howto for loose models.

----- Original Message -----
From: "Robert Ellis Parrott" <parrott@fas.harvard.edu>
To: <cocoon-dev@xml.apache.org>
Sent: Wednesday, October 23, 2002 9:27 AM
Subject: Re: textarea in XMLForm


>
> I'll clean up my mods & submit it as an enhancement on bugzilla.
>
> DOM mods aren't really there yet for loose model.
>
>
> Can you point me to xdocs?
>
>
> rob
>
>
> On Wed, 23 Oct 2002, Ivelin Ivanov wrote:
>
> >
> > Thanks for the fix Robert.
> > I will apply the textarea fix immediately.
> >
> > Please submit it and the other patches via bugzilla, for record keeping.
> >
> > Did you have a chance to update the xdocs (howto?) to include an example
of
> > the new (loose) model types - map & dom ?
> >
> >
> > Ivelin
> >
> >
> > ----- Original Message -----
> > From: "Robert Ellis Parrott" <parrott@fas.harvard.edu>
> > To: <cocoon-users@xml.apache.org>
> > Cc: "Dmitri Plotnikov" <dmitri@apache.org>
> > Sent: Tuesday, October 22, 2002 10:44 PM
> > Subject: textarea in XMLForm
> >
> >
> > >
> > > I noticed that in the XMLForm example that one could not hit return
and
> > > have a multiline message in the additional notes textarea. Looking
into
> > > it, and working on related things in which I need a textarea, I see
that
> > > the xmlform2html.xsl converts <xf:textarea> to an input field, and not
a
> > > true textarea. I don't think that this is correct; without the "style"
> > > attribute it defaults to a textbox.
> > >
> > > The below mods to xmlform2html.xsl replace the textarea template with
one
> > > that actually creates a real textarea.
> > >
> > >  I think that this is the right thing to do here.
> > >
> > > rob
> > >
> > > PS: I've modified the Form class to now support basic Maps as well as
DOM
> > > and Beans; I think that having this modification would be very helpful
for
> > > quick & dirty solutions, and for in-development projects, because one
can
> > > get data from an XMLForm into the map without creating nodes or a
javabean
> > > ahead of time.
> > >
> > > Are you interested in patches?
> > >
> > >
> > >
> > > <!--
> > >    <xsl:template match="xf:textarea">
> > >       <input name="{@ref}" type="textarea" value="{xf:value/text()}">
> > >         <xsl:copy-of select="@*[not(name()='ref')]"/>
> > >         <xsl:apply-templates select="xf:hint"/>
> > >       </input>
> > >    </xsl:template>
> > > -->
> > >
> > >    <xsl:template match="xf:textarea">
> > >       <textarea name="{@ref}" >
> > >         <xsl:copy-of select="@*[not(name()='ref')]"/>
> > >         <xsl:value-of select="xf:value/text()"/>
> > >         <xsl:apply-templates select="xf:hint"/>
> > >       </textarea>
> > >    </xsl:template>
> > >
> > >
> > >
> > > ----------------------------
> > > Robert E. Parrott
> > > Department of Physics
> > > 351 Jefferson Laboratory
> > > Harvard University
> > > 17 Oxford St.
> > > Cambridge, Massachusetts 02138
> > > (617)-495-2867
> > > parrott@fas.harvard.edu
> > > Robert.E.Parrott.96@alum.dartmouth.org (permanent)
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message