cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Simmons" <>
Subject Re: XMLForms Versus Traditional HTML forms.
Date Wed, 29 Jan 2003 05:32:07 GMT
If there is any overlap, I'm not aware of it. Cocoon is XML centric and not
Java centric. What I'm thinking of is a way to drive XML with Java. So if you
had a bean like ...

public class ChangeAge extends Command {
  private int age;
  private String name;

 // getter and setters.

Than a java class would spit out the following:

<xf:form id="ChangeAge" view="" action="ChangeAge.html">


	      <xf:violations class="error"/>

	    <xf:textbox ref="/name">
	        <xf:violations class="error"/>

	    <xf:textbox ref="/age">
	        <xf:help>New age</xf:help>
	        <xf:violations class="error"/>

     <xf:submit id="submit" class="button">
	      <xf:caption>Change Age</xf:caption>


And then the user could use XSLT to dynamically transform the form into what
they wanted.  The problem is that the sitemap could no longer be effectively
used to configure individual actions because they would largely depend upon
what actions exist in the object model of the beans. But I do have a few
ideas. ;)

-- Robert

----- Original Message -----
From: "Geoff Howard" <>
To: <>
Sent: Wednesday, January 29, 2003 6:29 AM
Subject: RE: XMLForms Versus Traditional HTML forms.

> > As for forms being in draft, that bothers me.
> Don't rely on my word here - that is my memory of what I learned (and
> someone just said that tonight, too right?) looking into xmlform again
> 2-3 months ago, so things may have moved on.
> > I do, however, have
> > allot of actions I need to write and some common method of outputting the
> > forms automatically based on the command being run would be interesting
> > me. I might take a hybrid approach here.
> I have recently been converted to the "modular database actions" which may
> provide some inspiration and groundwork for actions hitting session beans
> (assuming that's what you meant).  One xml config file with db table
> structure and a few other tidbits handles my insert, update and deletes
> simple cases) with no coding.  I think they're in 2.0.4 but not positive.
> Modular in this case refers to the use of "input modules".  Christian Haul
> on the list appears to be the author/resident guru on both.
> As a side note, I recently worked with Chris to make some trivial
> modifications that allow multipart form file uploads to populate db blobs
> automatically.
> >
> > What Id like to have happen is that a user decides to execute a
> > command which
> > hits a generator with the name of the command and any initialization
> > parameters. Then the generator spits out a document containing
> > the structure
> > of needed information from the form. Then the style sheets take over and
> > render the forms and then the user can submit them. To do this I
> > might just
> > borrow the XML form namespace and have the generator spit out
> > valid XML form
> > documents.
> This sounds great - is there no overlap with the current stuff?
> Geoff
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <>
> To unsubscribe, e-mail:     <>
> For additional commands, e-mail:   <>

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message