Re: very dynamic forms

2004-08-07 Thread Bryan Hunt
The copy I got back turned out ok. Perhaps your mail admin is using 
something like
the anomy sanitizer and it is stripping it out. I sent the message in 
plain text format
and when I examined the message source it was ok and all the tags were 
in it.

I don't think anyone was very interested in the idea anyway :-)
--b
Michael McGrady wrote:
Bryan your html did not appear on the emails.
At 12:09 PM 8/6/2004, you wrote:
Wouldn't it be so cool if you could take something like a graph of
hibernate objects and
have a form dynamically generated for u.
With dhtml or something so that you could populate the whole graph in
one user form ?
For example a House object that had a set of rooms, each room with
it's own description.
The dhtm generated by the form could expand out so that the user 
could add an
arbitrary number of rooms each with their own description.

The whole thing could get filled out in a single http request.
This would greatly reduce the use case for creating a house.
Has anyone ever developed anything like this ?
--b
On Fri, 06 Aug 2004 11:54:01 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
> How do map based forms farm the values from the request?
>
> At 09:13 AM 8/6/2004, you wrote:
> >For me it was very painless and although there aren't lots of big 
"killer"
> >features - there are IMO lots of little ones that make this a good 
upgrade.
> >
> >Niall
> >
> >- Original Message -
> >From: "Dean A. Hoover" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Friday, August 06, 2004 4:49 PM
> >Subject: Re: very dynamic forms
> >
> >
> > > Thanks. I am looking at Niall's Lazy stuff, but I like your idea.
> > > I will add it to my list of investigations and experiments. I've
> > > written quite a bit to struts 1.1. Is there a downside to 
upgrading?
> > >
> > > Thanks.
> > > Dean
> > >
> > > Kevin A. Palfreyman wrote:
> > >
> > > >Dean,
> > > >I do a similar thing with Struts 1.1, and I use an ordinary 
struts form
> > > >(a subclass of ValidatorActionForm) that has a DynaBean as one 
of its
> > > >fields.  To match this, my DTO also has the same field as a 
DynaBean,
> > > >and we just have to be a bit more clever when we copy 
properties between
> > > >the two.  The "schema" of the DynaBeans are configured entirely
> > > >separately from the rest of the Struts stuff, and should be 
fairly
> > > >easily done from a DB. In an upcoming version, the shape of the
> > > >DynaBeans will be determined from data from a remote corba 
service.
> > > >
> > > >Unfortunately, this is all product specific (closed source), 
so I can't
> > > >just pass it on (it wouldn't be useful to you anyway in its 
current
> > > >form).  But it should encourage you that it can be done.
> > > >
> > > >>From a quick read of his web page, Niall's Lazy stuff looks very
> > > >promising.  If I were starting again, I might have a look to 
see if that
> > > >would fit.
> > > >
> > > >Good luck,
> > > >
> > > > Kev
> > > >
> > > >
> > > >
> > > >>-Original Message-
> > > >>From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
> > > >>Sent: 06 August 2004 15:47
> > > >>To: Struts Users Mailing List
> > > >>Subject: Re: very dynamic forms
> > > >>
> > > >>What I need to do is construct a form that has a variety of
> > > >>text input forms on it that are determined at run-time. I
> > > >>know how to do this in jsp but I need to provide an
> > > >>ActionForm that conforms to that form.
> > > >>I got several useful replies last night and am investigating 
them.
> > > >>
> > > >>Dean
> > > >>
> > > >>Michael McGrady wrote:
> > > >>
> > > >>
> > > >>
> > > >>>That makes sense, but his other comments seem to negate 
that.  He
> > > >>>says, e.g., that "[w]hat would come out of the query would
> > > >>>
> > > >>>
> > > >>be label,
> > > >>
> > > >>
> > > >>>form position, variable name,etc, etc.".  These are things
> > > >>>
> > > >>>
> > > >>that are on
> > > >>
> > > >

Re: very dynamic forms

2004-08-06 Thread Michael McGrady
Bryan your html did not appear on the emails.
At 12:09 PM 8/6/2004, you wrote:
Wouldn't it be so cool if you could take something like a graph of
hibernate objects and
have a form dynamically generated for u.
With dhtml or something so that you could populate the whole graph in
one user form ?
For example a House object that had a set of rooms, each room with
it's own description.
The dhtm generated by the form could expand out so that the user could add an
arbitrary number of rooms each with their own description.
The whole thing could get filled out in a single http request.
This would greatly reduce the use case for creating a house.
Has anyone ever developed anything like this ?
--b
On Fri, 06 Aug 2004 11:54:01 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
> How do map based forms farm the values from the request?
>
> At 09:13 AM 8/6/2004, you wrote:
> >For me it was very painless and although there aren't lots of big "killer"
> >features - there are IMO lots of little ones that make this a good 
upgrade.
> >
> >Niall
> >
> >- Original Message -
> >From: "Dean A. Hoover" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Friday, August 06, 2004 4:49 PM
> >Subject: Re: very dynamic forms
> >
> >
> > > Thanks. I am looking at Niall's Lazy stuff, but I like your idea.
> > > I will add it to my list of investigations and experiments. I've
> > > written quite a bit to struts 1.1. Is there a downside to upgrading?
> > >
> > > Thanks.
> > > Dean
> > >
> > > Kevin A. Palfreyman wrote:
> > >
> > > >Dean,
> > > >I do a similar thing with Struts 1.1, and I use an ordinary struts 
form
> > > >(a subclass of ValidatorActionForm) that has a DynaBean as one of its
> > > >fields.  To match this, my DTO also has the same field as a DynaBean,
> > > >and we just have to be a bit more clever when we copy properties 
between
> > > >the two.  The "schema" of the DynaBeans are configured entirely
> > > >separately from the rest of the Struts stuff, and should be fairly
> > > >easily done from a DB. In an upcoming version, the shape of the
> > > >DynaBeans will be determined from data from a remote corba service.
> > > >
> > > >Unfortunately, this is all product specific (closed source), so I 
can't
> > > >just pass it on (it wouldn't be useful to you anyway in its current
> > > >form).  But it should encourage you that it can be done.
> > > >
> > > >>From a quick read of his web page, Niall's Lazy stuff looks very
> > > >promising.  If I were starting again, I might have a look to see 
if that
> > > >would fit.
> > > >
> > > >Good luck,
> > > >
> > > > Kev
> > > >
> > > >
> > > >
> > > >>-Original Message-
> > > >>From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
> > > >>Sent: 06 August 2004 15:47
> > > >>To: Struts Users Mailing List
> > > >>Subject: Re: very dynamic forms
> > > >>
> > > >>What I need to do is construct a form that has a variety of
> > > >>text input forms on it that are determined at run-time. I
> > > >>know how to do this in jsp but I need to provide an
> > > >>ActionForm that conforms to that form.
> > > >>I got several useful replies last night and am investigating them.
> > > >>
> > > >>Dean
> > > >>
> > > >>Michael McGrady wrote:
> > > >>
> > > >>
> > > >>
> > > >>>That makes sense, but his other comments seem to negate that.  He
> > > >>>says, e.g., that "[w]hat would come out of the query would
> > > >>>
> > > >>>
> > > >>be label,
> > > >>
> > > >>
> > > >>>form position, variable name,etc, etc.".  These are things
> > > >>>
> > > >>>
> > > >>that are on
> > > >>
> > > >>
> > > >>>the page form, not on some dynamic class handling the form.  He
> > > >>>specifically rejects dynamic class structures in fact when he says
> > > >>>that he has worked with DynaActionForm and ActionForm and that they
> > > >>>don't fit the bill.  I think he is 

RE: Very Dynamic Forms

2004-08-06 Thread Richard Mixon (qwest)
Michael,

I've enclosed excerpts form my ActionForm, Action and JSP - hope the
following helps. The excerpts are from my actual source (had to change
name in some cases), but I cannot send the entire source.

BTW, when I looked I used an array for the field/column names and a map
for the selection choices.

Given an ActionForm with the following properties:

  private String[] columnName; // Selected characteristics.
  private Map selections = new HashMap(); // Each entry corresponds to
an entry in columnName array.

  // Store the entire selections map
  public void setSelectionsMap(Map charSel) {
  this.selections = charSel;
  }
  // Retrieve the entire selections map
  public Map getSelectionsMap() {
  return this.selections;
  }

  // Retrieve an array of selections for a designated columnName from
the Map
  public Object getSelections(String columnName) {
  return this.selections.get(columnName);
  }
  // Store an array of selections for a deisgnated columnName
  public void setSelections(String columnName, Object obj) {
  this.selections.put(columnName, obj);
  }


In the Action place an array of choices (options) for the column under a
key of the columnName:

outForm.setSelections(inForm.getColumnName()[i],choicesArray);


In the JSP, I use JSTL to iterate across the column names and create a
selection list for each:

  

  


  

  

  


That said, I'm definitely going to look into the LazyDynaBean approach
next time. It looks nice also.

 - Richard

michael wrote:
> Your ideas in:
> I have a ver similar form. I just use three separate Maps:
> - one for the type of field it is;
> - one for the name/label;
> - one for the actual value;
> - one for a collection of valid values if its a selection list or set
> of
> redio buttons.
>
> This approach worked for me. I just create the Maps in may action
> (obviously they are all keyed by the field/column name). I use JSTL on
> the web page to iterate through the maps and create the appropriate
> Struts HTML tags.
> are clear to me vis-a-vis creating the form, but how does the
> ActionForm farm the values from the request?
>
> Thanks.
>
> Michael McGrady



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: very dynamic forms

2004-08-06 Thread Dean A. Hoover
Michael, that's not me.
Dean
Michael McGrady wrote:
YOur html is not showing up, Dean
At 12:33 PM 8/6/2004, you wrote:
Just to clarify
Struts can map form to dyanmic object .
It would be cool if it could map to a graph of such objects.
I know the functionality doesn't exist but I think it's a cool idea.
You could have a tag like this on the page.
then an xml file like so and then you had a method that you could 
call ArbitraryForm arbitraryForm = (ArbitraryForm) form; House house 
= arbitraryForm.deserialise(); // or whatever 
houseDAO.storeNewHouse(house); I guess I just am in *love* with 
hibenate at the moment --b On Fri, 6 Aug 2004 21:09:14 +0200, bryan 
wrote: > Wouldn't it be so cool if you could take something like a 
graph of > hibernate objects and > have a form dynamically generated 
for u. > > With dhtml or something so that you could populate the 
whole graph in > one user form ? > > For example a House object that 
had a set of rooms, each room with > it's own description. > > The 
dhtm generated by the form could expand out so that the user could 
add an > arbitrary number of rooms each with their own description. > 
> The whole thing could get filled out in a single http request. > > 
This would greatly reduce the use case for creating a house. > > Has 
anyone ever developed anything like this ? > > --b > > > > > On Fri, 
06 Aug 2004 11:54:01 -0700, Michael McGrady > wrote: > > How do map 
based forms farm the values from the request? > > > > At 09:13 AM 
8/6/2004, you wrote: > > >For me it was very painless and although 
there aren't lots of big "killer" > > >features - there are IMO lots 
of little ones that make this a good upgrade. > > > > > >Niall > > > 
> > >- Original Message - > > >From: "Dean A. Hoover" > > 
>To: "Struts Users Mailing List" > > >Sent: Friday, August 06, 2004 
4:49 PM > > >Subject: Re: very dynamic forms > > > > > > > > > > 
Thanks. I am looking at Niall's Lazy stuff, but I like your idea. > > 
> > I will add it to my list o f investigations and experiments. I've 
> > > > written quite a bit to struts 1.1. Is there a downside to 
upgrading? > > > > > > > > Thanks. > > > > Dean > > > > > > > > Kevin 
A. Palfreyman wrote: > > > > > > > > >Dean, > > > > >I do a similar 
thing with Struts 1.1, and I use an ordinary struts form > > > > >(a 
subclass of ValidatorActionForm) that has a DynaBean as one of its > 
> > > >fields. To match this, my DTO also has the same field as a 
DynaBean, > > > > >and we just have to be a bit more clever when we 
copy properties between > > > > >the two. The "schema" of the 
DynaBeans are configured entirely > > > > >separately from the rest 
of the Struts stuff, and should be fairly > > > > >easily done from a 
DB. In an upcoming version, the shape of the > > > > >DynaBeans will 
be determined from data from a remote corba service. > > > > > > > > 
> >Unfortunately, this is all product specific (closed source), so I 
can't > > > > >just pass it on (it wouldn't be useful to you anyway 
in its current > > > > >form). But it should encourage you that it 
can be done. > > > > > > > > > >>From a quick read of his web page, 
Niall's Lazy stuff looks very > > > > >promising. If I were starting 
again, I might have a look to see if that > > > > >would fit. > > > > 
> > > > > >Good luck, > > > > > > > > > > Kev > > > > > > > > > > > > 
> > > > > > > >>-Original Message- > > > > >>From: Dean A. 
Hoover [mailto:[EMAIL PROTECTED] > > > > >>Sent: 06 August 
2004 15:47 > > > > >>To: Struts Users Mailing List > > > > >>Subject: 
Re: very dynamic forms > > > > >> > > > > >>What I need to do is 
construct a form that has a variety of > > > > >>text input forms on 
it that are determined at run-time. I > > > > >>know how to do this 
in jsp but I need to provide an > > > > >>ActionForm that conforms to 
that form. > > > > >>I got several useful replies last night and am 
investigating them. > > > > >> > > > > >>Dean > > > > >> > > &

Re: very dynamic forms

2004-08-06 Thread Michael McGrady
YOur html is not showing up, Dean
At 12:33 PM 8/6/2004, you wrote:
Just to clarify
Struts can map form to dyanmic object .
It would be cool if it could map to a graph of such objects.
I know the functionality doesn't exist but I think it's a cool idea.
You could have a tag like this on the page.
then an xml file like so and then you had a method that you could call 
ArbitraryForm arbitraryForm = (ArbitraryForm) form; House house = 
arbitraryForm.deserialise(); // or whatever houseDAO.storeNewHouse(house); 
I guess I just am in *love* with hibenate at the moment --b On Fri, 6 Aug 
2004 21:09:14 +0200, bryan wrote: > Wouldn't it be so cool if you could 
take something like a graph of > hibernate objects and > have a form 
dynamically generated for u. > > With dhtml or something so that you could 
populate the whole graph in > one user form ? > > For example a House 
object that had a set of rooms, each room with > it's own description. > > 
The dhtm generated by the form could expand out so that the user could add 
an > arbitrary number of rooms each with their own description. > > The 
whole thing could get filled out in a single http request. > > This would 
greatly reduce the use case for creating a house. > > Has anyone ever 
developed anything like this ? > > --b > > > > > On Fri, 06 Aug 2004 
11:54:01 -0700, Michael McGrady > wrote: > > How do map based forms farm 
the values from the request? > > > > At 09:13 AM 8/6/2004, you 
wrote: > > >For me it was very painless and although there aren't lots of 
big "killer" > > >features - there are IMO lots of little ones that make 
this a good upgrade. > > > > > >Niall > > > > > >- Original Message 
- > > >From: "Dean A. Hoover" > > >To: "Struts Users Mailing 
List" > > >Sent: Friday, August 06, 2004 4:49 PM > > >Subject: Re: very 
dynamic forms > > > > > > > > > > Thanks. I am looking at Niall's Lazy 
stuff, but I like your idea. > > > > I will add it to my list o f 
investigations and experiments. I've > > > > written quite a bit to struts 
1.1. Is there a downside to upgrading? > > > > > > > > Thanks. > > > > 
Dean > > > > > > > > Kevin A. Palfreyman 
wrote: > > > > > > > > >Dean, > > > > >I do a similar thing with Struts 
1.1, and I use an ordinary struts form > > > > >(a subclass of 
ValidatorActionForm) that has a DynaBean as one of its > > > > >fields. To 
match this, my DTO also has the same field as a DynaBean, > > > > >and we 
just have to be a bit more clever when we copy properties 
between > > > > >the two. The "schema" of the DynaBeans are configured 
entirely > > > > >separately from the rest of the Struts stuff, and should 
be fairly > > > > >easily done from a DB. In an upcoming version, the 
shape of the > > > > >DynaBeans will be determined from data from a remote 
corba service. > > > > > > > > > >Unfortunately, this is all product 
specific (closed source), so I can't > > > > >just pass it on (it wouldn't 
be useful to you anyway in its current > > > > >form). But it should 
encourage you that it can be done. > > > > > > > > > >>From a quick read 
of his web page, Niall's Lazy stuff looks very > > > > >promising. If I 
were starting again, I might have a look to see if that > > > > >would 
fit. > > > > > > > > > >Good luck, > > > > > > > > > > 
Kev > > > > > > > > > > > > > > > > > > > >>-Original 
Message- > > > > >>From: Dean A. Hoover 
[mailto:[EMAIL PROTECTED] > > > > >>Sent: 06 August 2004 
15:47 > > > > >>To: Struts Users Mailing List > > > > >>Subject: Re: very 
dynamic forms > > > > >> > > > > >>What I need to do is construct a form 
that has a variety of > > > > >>text input forms on it that are determined 
at run-time. I > > > > >>know how to do this in jsp but I need to provide 
an > > > > >>ActionForm that conforms to that form. > > > > >>I got 
several useful replies last night and am investigating 
them. > > > > >> > > > > >>Dean > > > > >> > > > > >>Michael McGrady 
wrote: > >

Re: very dynamic forms

2004-08-06 Thread bryan
Just to clarify 

Struts can map form to dyanmic object . 

It would be cool if it could map to a graph of such objects. 

I know the functionality doesn't exist but I think it's a cool idea.

You could have a tag like this on the page. 



then an xml file like so 

  


  






and then you had a method that you could call 

ArbitraryForm arbitraryForm  = (ArbitraryForm) form;
House house  = arbitraryForm.deserialise(); // or whatever 
houseDAO.storeNewHouse(house);

I guess I just am in *love* with hibenate at the moment



--b


On Fri, 6 Aug 2004 21:09:14 +0200, bryan <[EMAIL PROTECTED]> wrote:
> Wouldn't it be so cool if you could take something like a graph of
> hibernate objects and
> have a form dynamically generated for u.
> 
> With dhtml or something so that you could populate the whole graph in
> one user form ?
> 
> For example a House object that had a set of rooms, each room with
> it's own description.
> 
> The dhtm generated by the form could expand out so that the user could add an
> arbitrary number of rooms each with their own description.
> 
> The whole thing could get filled out in a single http request.
> 
> This would greatly reduce the use case for creating a house.
> 
> Has anyone ever developed anything like this ?
> 
> --b
> 
> 
> 
> 
> On Fri, 06 Aug 2004 11:54:01 -0700, Michael McGrady
> <[EMAIL PROTECTED]> wrote:
> > How do map based forms farm the values from the request?
> >
> > At 09:13 AM 8/6/2004, you wrote:
> > >For me it was very painless and although there aren't lots of big "killer"
> > >features - there are IMO lots of little ones that make this a good upgrade.
> > >
> > >Niall
> > >
> > >----- Original Message -
> > >From: "Dean A. Hoover" <[EMAIL PROTECTED]>
> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >Sent: Friday, August 06, 2004 4:49 PM
> > >Subject: Re: very dynamic forms
> > >
> > >
> > > > Thanks. I am looking   at Niall's Lazy stuff, but I like your idea.
> > > > I will add it to my list o   f investigations and experiments. I've
> > > > written quite a bit to struts 1.1. Is there a downside to upgrading?
> > > >
> > > > Thanks.
> > > > Dean
> > > >
> > > > Kevin A. Palfreyman wrote:
> > > >
> > > > >Dean,
> > > > >I do a similar thing with Struts 1.1, and I use an ordinary struts form
> > > > >(a subclass of ValidatorActionForm) that has a DynaBean as one of its
> > > > >fields.  To match this, my DTO also has the same field as a DynaBean,
> > > > >and we just have to be a bit more clever when we copy properties between
> > > > >the two.  The "schema" of the DynaBeans are configured entirely
> > > > >separately from the rest of the Struts stuff, and should be fairly
> > > > >easily done from a DB. In an upcoming version, the shape of the
> > > > >DynaBeans will be determined from data from a remote corba service.
> > > > >
> > > > >Unfortunately, this is all product specific (closed source), so I can't
> > > > >just pass it on (it wouldn't be useful to you anyway in its current
> > > > >form).  But it should encourage you that it can be done.
> > > > >
> > > > >>From a quick read of his web page, Niall's Lazy stuff looks very
> > > > >promising.  If I were starting again, I might have a look to see if that
> > > > >would fit.
> > > > >
> > > > >Good luck,
> > > > >
> > > > > Kev
> > > > >
> > > > >
> > > > >
> > > > >>-Original Message-
> > > > >>From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
> > > > >>Sent: 06 August 2004 15:47
> > > > >>To: Struts Users Mailing List
> > > > >>Subject: Re: very dynamic forms
> > > > >>
> > > > >>What I need to do is construct a form that has a variety of
> > > > >>text input forms on it that are determined at run-time. I
> > > > >>know how to do this in jsp but I need to provide an
> > > > >>ActionForm that conforms to that form.
> > > > >>I got several useful replies last night and am investigating them.
> > > > >>
> > > > >>Dean
> > > > >>
> > > > >

Re: very dynamic forms

2004-08-06 Thread bryan
Wouldn't it be so cool if you could take something like a graph of
hibernate objects and
have a form dynamically generated for u.

With dhtml or something so that you could populate the whole graph in
one user form ?

For example a House object that had a set of rooms, each room with
it's own description.

The dhtm generated by the form could expand out so that the user could add an 
arbitrary number of rooms each with their own description. 

The whole thing could get filled out in a single http request. 

This would greatly reduce the use case for creating a house. 

Has anyone ever developed anything like this ?

--b


On Fri, 06 Aug 2004 11:54:01 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
> How do map based forms farm the values from the request?
> 
> At 09:13 AM 8/6/2004, you wrote:
> >For me it was very painless and although there aren't lots of big "killer"
> >features - there are IMO lots of little ones that make this a good upgrade.
> >
> >Niall
> >
> >- Original Message -
> >From: "Dean A. Hoover" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Friday, August 06, 2004 4:49 PM
> >Subject: Re: very dynamic forms
> >
> >
> > > Thanks. I am looking at Niall's Lazy stuff, but I like your idea.
> > > I will add it to my list of investigations and experiments. I've
> > > written quite a bit to struts 1.1. Is there a downside to upgrading?
> > >
> > > Thanks.
> > > Dean
> > >
> > > Kevin A. Palfreyman wrote:
> > >
> > > >Dean,
> > > >I do a similar thing with Struts 1.1, and I use an ordinary struts form
> > > >(a subclass of ValidatorActionForm) that has a DynaBean as one of its
> > > >fields.  To match this, my DTO also has the same field as a DynaBean,
> > > >and we just have to be a bit more clever when we copy properties between
> > > >the two.  The "schema" of the DynaBeans are configured entirely
> > > >separately from the rest of the Struts stuff, and should be fairly
> > > >easily done from a DB. In an upcoming version, the shape of the
> > > >DynaBeans will be determined from data from a remote corba service.
> > > >
> > > >Unfortunately, this is all product specific (closed source), so I can't
> > > >just pass it on (it wouldn't be useful to you anyway in its current
> > > >form).  But it should encourage you that it can be done.
> > > >
> > > >>From a quick read of his web page, Niall's Lazy stuff looks very
> > > >promising.  If I were starting again, I might have a look to see if that
> > > >would fit.
> > > >
> > > >Good luck,
> > > >
> > > > Kev
> > > >
> > > >
> > > >
> > > >>-Original Message-
> > > >>From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
> > > >>Sent: 06 August 2004 15:47
> > > >>To: Struts Users Mailing List
> > > >>Subject: Re: very dynamic forms
> > > >>
> > > >>What I need to do is construct a form that has a variety of
> > > >>text input forms on it that are determined at run-time. I
> > > >>know how to do this in jsp but I need to provide an
> > > >>ActionForm that conforms to that form.
> > > >>I got several useful replies last night and am investigating them.
> > > >>
> > > >>Dean
> > > >>
> > > >>Michael McGrady wrote:
> > > >>
> > > >>
> > > >>
> > > >>>That makes sense, but his other comments seem to negate that.  He
> > > >>>says, e.g., that "[w]hat would come out of the query would
> > > >>>
> > > >>>
> > > >>be label,
> > > >>
> > > >>
> > > >>>form position, variable name,etc, etc.".  These are things
> > > >>>
> > > >>>
> > > >>that are on
> > > >>
> > > >>
> > > >>>the page form, not on some dynamic class handling the form.  He
> > > >>>specifically rejects dynamic class structures in fact when he says
> > > >>>that he has worked with DynaActionForm and ActionForm and that they
> > > >>>don't fit the bill.  I think he is focusing on the idea of having
> > > >&

Re: very dynamic forms

2004-08-06 Thread Michael McGrady
At 07:46 AM 8/6/2004, you wrote:
What I need to do is construct a form that has a
variety of text input forms on it that are determined
at run-time. I know how to do this in jsp but I need
to provide an ActionForm that conforms to that form.
I got several useful replies last night and am
investigating them.
Dean

Another option you might look at, Dean, is 
http://wiki.apache.org/struts/StrutsCatalogInstrumentableForms in 
conjunction with the sort of information Ted Husted and friends cover in 
Struts in Action on pp. 16 et seq.

Michael McGrady


Re: very dynamic forms

2004-08-06 Thread Michael McGrady
At 11:54 AM 8/6/2004, you wrote:
How do map based forms farm the values from the request?

I know, by the bye, about  etc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: very dynamic forms

2004-08-06 Thread Michael McGrady
How do map based forms farm the values from the request?
At 09:13 AM 8/6/2004, you wrote:
For me it was very painless and although there aren't lots of big "killer"
features - there are IMO lots of little ones that make this a good upgrade.
Niall
- Original Message -
From: "Dean A. Hoover" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 06, 2004 4:49 PM
Subject: Re: very dynamic forms
> Thanks. I am looking at Niall's Lazy stuff, but I like your idea.
> I will add it to my list of investigations and experiments. I've
> written quite a bit to struts 1.1. Is there a downside to upgrading?
>
> Thanks.
> Dean
>
> Kevin A. Palfreyman wrote:
>
> >Dean,
> >I do a similar thing with Struts 1.1, and I use an ordinary struts form
> >(a subclass of ValidatorActionForm) that has a DynaBean as one of its
> >fields.  To match this, my DTO also has the same field as a DynaBean,
> >and we just have to be a bit more clever when we copy properties between
> >the two.  The "schema" of the DynaBeans are configured entirely
> >separately from the rest of the Struts stuff, and should be fairly
> >easily done from a DB. In an upcoming version, the shape of the
> >DynaBeans will be determined from data from a remote corba service.
> >
> >Unfortunately, this is all product specific (closed source), so I can't
> >just pass it on (it wouldn't be useful to you anyway in its current
> >form).  But it should encourage you that it can be done.
> >
> >>From a quick read of his web page, Niall's Lazy stuff looks very
> >promising.  If I were starting again, I might have a look to see if that
> >would fit.
> >
> >Good luck,
> >
> > Kev
> >
> >
> >
> >>-Original Message-
> >>From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
> >>Sent: 06 August 2004 15:47
> >>To: Struts Users Mailing List
> >>Subject: Re: very dynamic forms
> >>
> >>What I need to do is construct a form that has a variety of
> >>text input forms on it that are determined at run-time. I
> >>know how to do this in jsp but I need to provide an
> >>ActionForm that conforms to that form.
> >>I got several useful replies last night and am investigating them.
> >>
> >>Dean
> >>
> >>Michael McGrady wrote:
> >>
> >>
> >>
> >>>That makes sense, but his other comments seem to negate that.  He
> >>>says, e.g., that "[w]hat would come out of the query would
> >>>
> >>>
> >>be label,
> >>
> >>
> >>>form position, variable name,etc, etc.".  These are things
> >>>
> >>>
> >>that are on
> >>
> >>
> >>>the page form, not on some dynamic class handling the form.  He
> >>>specifically rejects dynamic class structures in fact when he says
> >>>that he has worked with DynaActionForm and ActionForm and that they
> >>>don't fit the bill.  I think he is focusing on the idea of having
> >>>changing variables on the page form and how to handle this on the
> >>>backend.  Is that right, Dean?
> >>>
> >>>Michael
> >>>
> >>>At 01:40 AM 8/6/2004, you wrote:
> >>>
> >>>
> >>>
> >>>>I thought that
> >>>>
> >>>>" I want to build one on-the-fly according to
> >>>>
> >>>>
> >>"configuration" stuff
> >>
> >>
> >>>>stored in a database, that can change. "
> >>>>
> >>>>was pretty clear, especially after he pointed out the
> >>>>
> >>>>
> >>DynaActionForms
> >>
> >>
> >>>>weren't what he was looking for because they came from
> >>>>
> >>>>
> >>struts config.
> >>
> >>
> >>>>But maybe it's just me - I'm used to wondering about what (weird
> >>>>stuff) I can do in Struts.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>>>>>At 05:00 PM 8/5/2004, you wrote:
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>>Suppose I want to construct a form based on a query to a
> >>>>>>>>>>data

Re: very dynamic forms

2004-08-06 Thread Michael McGrady
At 07:46 AM 8/6/2004, you wrote:
What I need to do is construct a form that has a
variety of text input forms on it that are determined
at run-time. I know how to do this in jsp but I need
to provide an ActionForm that conforms to that form.
I got several useful replies last night and am
investigating them.
Dean

Maybe something like:

public class DynamicActionFormFactory {
  /** This method is used to configure and create a new empty dynamic
* action form based on the parameters provided.
*
* @param name the registered name of the form
* @param type the name of the Java class of the form
* @param fields a list of the field names to be used in the form
* @return the modified String */
  public static ActionForm createBlankForm(String name, String type, 
String[] fields) {
ActionForm form = null;
FormBeanConfig config = null;
FormPropertyConfig prop = null;

config = new FormBeanConfig();
config.setName(name);
config.setType(type);
if (fields != null) {
  for (int i=0; i
config.freeze();
try {
  form = (ActionForm) 
DynaActionFormClass.createDynaActionFormClass(config).newInstance();
} catch (Exception e) {
  StdOut.log("log.error",new ChainedException(e,"Exception creating 
blank form: " + e.getMessage()));
}

return form;
  }
}

Michael McGrady

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: very dynamic forms

2004-08-06 Thread Niall Pemberton
Object bean = TagUtils.getInstance().lookup(pageContext, name, null);

Niall

- Original Message - 
From: "Dean A. Hoover" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 06, 2004 5:34 PM
Subject: Re: very dynamic forms


> Most changes I've been making so far have had to do with
> ActionErrors. I have several custom tags I've developed and
> am a bit uncertain as to how to fix:
>
> Object bean = RequestUtils.lookup(pageContext, name, null);
>
> The documentation says "[m]any utility methods previously found
> in org.apache.struts.utils.RequestUtils have been moved to
> org.apache.struts.taglibs.TagUtils or
org.apache.struts.utils.ModuleUtils".
>
> So, I first tried:
>
>  Object bean = TagUtils.lookup(pageContext, name, null);
>
> and got:
>
> CategoriesTag.java:31: non-static method
> lookup(javax.servlet.jsp.PageContext,java.lang.String,java.lang.String)
> cannot be referenced from a static context
>
> So, I figured I needed to create a TagUtils instance and did:
>
> TagUtils tagUtils = new TagUtils();
> Object bean = tagUtils.lookup(pageContext, name, null);
>
> and I got:
>
> CategoriesTag.java:31: TagUtils() has protected access in
> org.apache.struts.taglib.TagUtils
>
> Do you know how to fix this?
>
> Thanks very much.
> Dean
>
>
> Niall Pemberton wrote:
>
> >For me it was very painless and although there aren't lots of big
"killer"
> >features - there are IMO lots of little ones that make this a good
upgrade.
> >
> >Niall
> >
> >- Original Message - 
> >From: "Dean A. Hoover" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Friday, August 06, 2004 4:49 PM
> >Subject: Re: very dynamic forms
> >
> >
> >
> >
> >>Thanks. I am looking at Niall's Lazy stuff, but I like your idea.
> >>I will add it to my list of investigations and experiments. I've
> >>written quite a bit to struts 1.1. Is there a downside to upgrading?
> >>
> >>Thanks.
> >>Dean
> >>
> >>Kevin A. Palfreyman wrote:
> >>
> >>
> >>
> >>>Dean,
> >>>I do a similar thing with Struts 1.1, and I use an ordinary struts form
> >>>(a subclass of ValidatorActionForm) that has a DynaBean as one of its
> >>>fields.  To match this, my DTO also has the same field as a DynaBean,
> >>>and we just have to be a bit more clever when we copy properties
between
> >>>the two.  The "schema" of the DynaBeans are configured entirely
> >>>separately from the rest of the Struts stuff, and should be fairly
> >>>easily done from a DB. In an upcoming version, the shape of the
> >>>DynaBeans will be determined from data from a remote corba service.
> >>>
> >>>Unfortunately, this is all product specific (closed source), so I can't
> >>>just pass it on (it wouldn't be useful to you anyway in its current
> >>>form).  But it should encourage you that it can be done.
> >>>
> >>>>From a quick read of his web page, Niall's Lazy stuff looks very
> >>>promising.  If I were starting again, I might have a look to see if
that
> >>>would fit.
> >>>
> >>>Good luck,
> >>>
> >>>Kev
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>-Original Message-
> >>>>From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
> >>>>Sent: 06 August 2004 15:47
> >>>>To: Struts Users Mailing List
> >>>>Subject: Re: very dynamic forms
> >>>>
> >>>>What I need to do is construct a form that has a variety of
> >>>>text input forms on it that are determined at run-time. I
> >>>>know how to do this in jsp but I need to provide an
> >>>>ActionForm that conforms to that form.
> >>>>I got several useful replies last night and am investigating them.
> >>>>
> >>>>Dean
> >>>>
> >>>>Michael McGrady wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>That makes sense, but his other comments seem to negate that.  He
> >>>>>says, e.g., that "[w]hat would come out of the query would
> >>>>>
> >>>>>
> &g

RE: very dynamic forms

2004-08-06 Thread Richard Mixon (qwest)
Map backed forms can do this easily. It took me a half day of figuring
out how to make them work with my code, but then it was simple.

I have a ver similar form. I just use three separate Maps:
- one for the type of field it is;
- one for the name/label;
- one for the actual value;
- one for a collection of valid values if its a selection list or set of
redio buttons.

This approach worked for me. I just create the Maps in may action
(obviously they are all keyed by the field/column name). I use JSTL on
the web page to iterate through the maps and create the appropriate
Struts HTML tags.

You could reduce the number of Maps by using a more complex bean (one
that contained properties for the tpe of field, name/label and value,
etc.).

HTH - Richard


> -Original Message-
> From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 06, 2004 7:47 AM
> To: Struts Users Mailing List
> Subject: Re: very dynamic forms
>
>
> What I need to do is construct a form that has a
> variety of text input forms on it that are determined
> at run-time. I know how to do this in jsp but I need
> to provide an ActionForm that conforms to that form.
> I got several useful replies last night and am
> investigating them.
>
> Dean
>
> Michael McGrady wrote:
>
> > That makes sense, but his other comments seem to negate that.  He
> > says, e.g., that "[w]hat would come out of the query would
> be label,
> > form position, variable name,etc, etc.".  These are things
> that are on
> > the page form, not on some dynamic class handling the form.  He
> > specifically rejects dynamic class structures in fact when he says
> > that he has worked with DynaActionForm and ActionForm and that they
> > don't fit the bill.  I think he is focusing on the idea of having
> > changing variables on the page form and how to handle this on the
> > backend.  Is that right, Dean?
> >
> > Michael
> >
> > At 01:40 AM 8/6/2004, you wrote:
> >
> >> I thought that
> >>
> >> " I want to build one on-the-fly according to "configuration" stuff
> >> stored in a database, that can change. "
> >>
> >> was pretty clear, especially after he pointed out the
> DynaActionForms
> >> weren't what he was looking for because they came from
> struts config.
> >> But maybe it's just me - I'm used to wondering about what
> (weird stuff)
> >> I can do in Struts.
> >>
> >>
> >> > > > >>
> >> > > > >>At 05:00 PM 8/5/2004, you wrote:
> >> > > > >>
> >> > > > >>>Suppose I want to construct a form based
> >> > > > >>>on a query to a database. What would come
> >> > > > >>>out of the query would be label, form position,
> >> > > > >>>variable name, etc, etc. What would be the
> >> > > > >>>recommended way of building this under
> >> > > > >>>struts/tiles? I've been working with struts/tiles
> >> > > > >>>for a while now and this is the first time this
> >> > > > >>>sort of requirement has come up. I've used
> DynaActionForm and
> >> > > > >>>ActionForm, but do not see how this sort of thing
> fits either
> >> > > > >>>model.
> >> > > > >>>
> >> > > > >>>Any ideas?
> >> > > > >>>
> >> > > > >>>Dean Hoover
> >> > > > >>>
> >> > > > >>>
> >> > > >
> >>>---
> >> > > > --
> >> > > > >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > > > >>>For additional commands, e-mail:
> [EMAIL PROTECTED]
> >> > > > >>>
> >> > > > >>
> >> > > > >>
> >> > > > >>
> >> > > >
> >>
> >> > > > -
> >> > > > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > > > >>For additional commands, e-mail:
> [EMAIL PROTECTED]
> >> > > > >>
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > >
> >> >
> >

Re: very dynamic forms

2004-08-06 Thread Dean A. Hoover
Most changes I've been making so far have had to do with
ActionErrors. I have several custom tags I've developed and
am a bit uncertain as to how to fix:
   Object bean = RequestUtils.lookup(pageContext, name, null);
The documentation says "[m]any utility methods previously found
in org.apache.struts.utils.RequestUtils have been moved to
org.apache.struts.taglibs.TagUtils or org.apache.struts.utils.ModuleUtils".
So, I first tried:
Object bean = TagUtils.lookup(pageContext, name, null);
and got:
CategoriesTag.java:31: non-static method 
lookup(javax.servlet.jsp.PageContext,java.lang.String,java.lang.String) 
cannot be referenced from a static context

So, I figured I needed to create a TagUtils instance and did:
   TagUtils tagUtils = new TagUtils();
   Object bean = tagUtils.lookup(pageContext, name, null);
and I got:
CategoriesTag.java:31: TagUtils() has protected access in 
org.apache.struts.taglib.TagUtils

Do you know how to fix this?
Thanks very much.
Dean
Niall Pemberton wrote:
For me it was very painless and although there aren't lots of big "killer"
features - there are IMO lots of little ones that make this a good upgrade.
Niall
- Original Message - 
From: "Dean A. Hoover" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 06, 2004 4:49 PM
Subject: Re: very dynamic forms

 

Thanks. I am looking at Niall's Lazy stuff, but I like your idea.
I will add it to my list of investigations and experiments. I've
written quite a bit to struts 1.1. Is there a downside to upgrading?
Thanks.
Dean
Kevin A. Palfreyman wrote:
   

Dean,
I do a similar thing with Struts 1.1, and I use an ordinary struts form
(a subclass of ValidatorActionForm) that has a DynaBean as one of its
fields.  To match this, my DTO also has the same field as a DynaBean,
and we just have to be a bit more clever when we copy properties between
the two.  The "schema" of the DynaBeans are configured entirely
separately from the rest of the Struts stuff, and should be fairly
easily done from a DB. In an upcoming version, the shape of the
DynaBeans will be determined from data from a remote corba service.
Unfortunately, this is all product specific (closed source), so I can't
just pass it on (it wouldn't be useful to you anyway in its current
form).  But it should encourage you that it can be done.
From a quick read of his web page, Niall's Lazy stuff looks very
promising.  If I were starting again, I might have a look to see if that
would fit.
Good luck,
Kev

 

-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: 06 August 2004 15:47
To: Struts Users Mailing List
Subject: Re: very dynamic forms
What I need to do is construct a form that has a variety of
text input forms on it that are determined at run-time. I
know how to do this in jsp but I need to provide an
ActionForm that conforms to that form.
I got several useful replies last night and am investigating them.
Dean
Michael McGrady wrote:

   

That makes sense, but his other comments seem to negate that.  He
says, e.g., that "[w]hat would come out of the query would
 

be label,
   

form position, variable name,etc, etc.".  These are things
 

that are on
   

the page form, not on some dynamic class handling the form.  He
specifically rejects dynamic class structures in fact when he says
that he has worked with DynaActionForm and ActionForm and that they
don't fit the bill.  I think he is focusing on the idea of having
changing variables on the page form and how to handle this on the
backend.  Is that right, Dean?
Michael
At 01:40 AM 8/6/2004, you wrote:

 

I thought that
" I want to build one on-the-fly according to
   

"configuration" stuff
   

stored in a database, that can change. "
was pretty clear, especially after he pointed out the
   

DynaActionForms
   

weren't what he was looking for because they came from
   

struts config.
   

But maybe it's just me - I'm used to wondering about what (weird
stuff) I can do in Struts.

   

At 05:00 PM 8/5/2004, you wrote:

 

Suppose I want to construct a form based on a query to a
database. What would come out of the query would
   

be label,
   

form position, variable name, etc, etc. What would be the
recommended way of building this under struts/tiles? I've
been working with struts/tiles for a while now
   

and this is
   

the first time this sort of requirement has come up. I've
used DynaActionForm and ActionForm, but do not
   

see how this
   

sort of thing fits either model.
Any ideas?
Dean Hoover
   

Re: very dynamic forms

2004-08-06 Thread Niall Pemberton
For me it was very painless and although there aren't lots of big "killer"
features - there are IMO lots of little ones that make this a good upgrade.

Niall

- Original Message - 
From: "Dean A. Hoover" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 06, 2004 4:49 PM
Subject: Re: very dynamic forms


> Thanks. I am looking at Niall's Lazy stuff, but I like your idea.
> I will add it to my list of investigations and experiments. I've
> written quite a bit to struts 1.1. Is there a downside to upgrading?
>
> Thanks.
> Dean
>
> Kevin A. Palfreyman wrote:
>
> >Dean,
> >I do a similar thing with Struts 1.1, and I use an ordinary struts form
> >(a subclass of ValidatorActionForm) that has a DynaBean as one of its
> >fields.  To match this, my DTO also has the same field as a DynaBean,
> >and we just have to be a bit more clever when we copy properties between
> >the two.  The "schema" of the DynaBeans are configured entirely
> >separately from the rest of the Struts stuff, and should be fairly
> >easily done from a DB. In an upcoming version, the shape of the
> >DynaBeans will be determined from data from a remote corba service.
> >
> >Unfortunately, this is all product specific (closed source), so I can't
> >just pass it on (it wouldn't be useful to you anyway in its current
> >form).  But it should encourage you that it can be done.
> >
> >>From a quick read of his web page, Niall's Lazy stuff looks very
> >promising.  If I were starting again, I might have a look to see if that
> >would fit.
> >
> >Good luck,
> >
> > Kev
> >
> >
> >
> >>-Original Message-
> >>From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
> >>Sent: 06 August 2004 15:47
> >>To: Struts Users Mailing List
> >>Subject: Re: very dynamic forms
> >>
> >>What I need to do is construct a form that has a variety of
> >>text input forms on it that are determined at run-time. I
> >>know how to do this in jsp but I need to provide an
> >>ActionForm that conforms to that form.
> >>I got several useful replies last night and am investigating them.
> >>
> >>Dean
> >>
> >>Michael McGrady wrote:
> >>
> >>
> >>
> >>>That makes sense, but his other comments seem to negate that.  He
> >>>says, e.g., that "[w]hat would come out of the query would
> >>>
> >>>
> >>be label,
> >>
> >>
> >>>form position, variable name,etc, etc.".  These are things
> >>>
> >>>
> >>that are on
> >>
> >>
> >>>the page form, not on some dynamic class handling the form.  He
> >>>specifically rejects dynamic class structures in fact when he says
> >>>that he has worked with DynaActionForm and ActionForm and that they
> >>>don't fit the bill.  I think he is focusing on the idea of having
> >>>changing variables on the page form and how to handle this on the
> >>>backend.  Is that right, Dean?
> >>>
> >>>Michael
> >>>
> >>>At 01:40 AM 8/6/2004, you wrote:
> >>>
> >>>
> >>>
> >>>>I thought that
> >>>>
> >>>>" I want to build one on-the-fly according to
> >>>>
> >>>>
> >>"configuration" stuff
> >>
> >>
> >>>>stored in a database, that can change. "
> >>>>
> >>>>was pretty clear, especially after he pointed out the
> >>>>
> >>>>
> >>DynaActionForms
> >>
> >>
> >>>>weren't what he was looking for because they came from
> >>>>
> >>>>
> >>struts config.
> >>
> >>
> >>>>But maybe it's just me - I'm used to wondering about what (weird
> >>>>stuff) I can do in Struts.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>>>>>At 05:00 PM 8/5/2004, you wrote:
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>>Suppose I want to construct a form based on a query to a
> >>>>>>>>>>database. What would come out of the query would
> >>>>>>>>>>
> >>>>>>>>>>
> >>be label,
> >>
> >>
> >>>>>>>>>>form position, variable name, etc, etc. What would be the
> >>>>>>>>>>recommended way of building this under struts/tiles? I've
> >>>>>>>>>>been working with struts/tiles for a while now
> >>>>>>>>>>
> >>>>>>>>>>
> >>and this is
> >>
> >>
> >>>>>>>>>>the first time this sort of requirement has come up. I've
> >>>>>>>>>>used DynaActionForm and ActionForm, but do not
> >>>>>>>>>>
> >>>>>>>>>>
> >>see how this
> >>
> >>
> >>>>>>>>>>sort of thing fits either model.
> >>>>>>>>>>
> >>>>>>>>>>Any ideas?
> >>>>>>>>>>
> >>>>>>>>>>Dean Hoover
> >>>>>>>>>>
> >>>>>>>>>>
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: very dynamic forms

2004-08-06 Thread Dean A. Hoover
Thanks. I am looking at Niall's Lazy stuff, but I like your idea.
I will add it to my list of investigations and experiments. I've
written quite a bit to struts 1.1. Is there a downside to upgrading?
Thanks.
Dean
Kevin A. Palfreyman wrote:
Dean,
I do a similar thing with Struts 1.1, and I use an ordinary struts form
(a subclass of ValidatorActionForm) that has a DynaBean as one of its
fields.  To match this, my DTO also has the same field as a DynaBean,
and we just have to be a bit more clever when we copy properties between
the two.  The "schema" of the DynaBeans are configured entirely
separately from the rest of the Struts stuff, and should be fairly
easily done from a DB. In an upcoming version, the shape of the
DynaBeans will be determined from data from a remote corba service.
Unfortunately, this is all product specific (closed source), so I can't
just pass it on (it wouldn't be useful to you anyway in its current
form).  But it should encourage you that it can be done.
From a quick read of his web page, Niall's Lazy stuff looks very
promising.  If I were starting again, I might have a look to see if that
would fit.
Good luck,
	Kev 

 

-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED] 
Sent: 06 August 2004 15:47
To: Struts Users Mailing List
Subject: Re: very dynamic forms

What I need to do is construct a form that has a variety of 
text input forms on it that are determined at run-time. I 
know how to do this in jsp but I need to provide an 
ActionForm that conforms to that form.
I got several useful replies last night and am investigating them.

Dean
Michael McGrady wrote:
   

That makes sense, but his other comments seem to negate that.  He 
says, e.g., that "[w]hat would come out of the query would 
 

be label, 
   

form position, variable name,etc, etc.".  These are things 
 

that are on 
   

the page form, not on some dynamic class handling the form.  He 
specifically rejects dynamic class structures in fact when he says 
that he has worked with DynaActionForm and ActionForm and that they 
don't fit the bill.  I think he is focusing on the idea of having 
changing variables on the page form and how to handle this on the 
backend.  Is that right, Dean?

Michael
At 01:40 AM 8/6/2004, you wrote:
 

I thought that
" I want to build one on-the-fly according to 
   

"configuration" stuff 
   

stored in a database, that can change. "
was pretty clear, especially after he pointed out the 
   

DynaActionForms 
   

weren't what he was looking for because they came from 
   

struts config.
   

But maybe it's just me - I'm used to wondering about what (weird 
stuff) I can do in Struts.

   

At 05:00 PM 8/5/2004, you wrote:
 

Suppose I want to construct a form based on a query to a 
database. What would come out of the query would 
   

be label, 
   

form position, variable name, etc, etc. What would be the 
recommended way of building this under struts/tiles? I've 
been working with struts/tiles for a while now 
   

and this is 
   

the first time this sort of requirement has come up. I've 
used DynaActionForm and ActionForm, but do not 
   

see how this 
   

sort of thing fits either model.
Any ideas?
Dean Hoover
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: very dynamic forms

2004-08-06 Thread Kevin A. Palfreyman
Dean,
I do a similar thing with Struts 1.1, and I use an ordinary struts form
(a subclass of ValidatorActionForm) that has a DynaBean as one of its
fields.  To match this, my DTO also has the same field as a DynaBean,
and we just have to be a bit more clever when we copy properties between
the two.  The "schema" of the DynaBeans are configured entirely
separately from the rest of the Struts stuff, and should be fairly
easily done from a DB. In an upcoming version, the shape of the
DynaBeans will be determined from data from a remote corba service.

Unfortunately, this is all product specific (closed source), so I can't
just pass it on (it wouldn't be useful to you anyway in its current
form).  But it should encourage you that it can be done.

>From a quick read of his web page, Niall's Lazy stuff looks very
promising.  If I were starting again, I might have a look to see if that
would fit.

Good luck,

Kev 

> -Original Message-
> From: Dean A. Hoover [mailto:[EMAIL PROTECTED] 
> Sent: 06 August 2004 15:47
> To: Struts Users Mailing List
> Subject: Re: very dynamic forms
> 
> What I need to do is construct a form that has a variety of 
> text input forms on it that are determined at run-time. I 
> know how to do this in jsp but I need to provide an 
> ActionForm that conforms to that form.
> I got several useful replies last night and am investigating them.
> 
> Dean
> 
> Michael McGrady wrote:
> 
> > That makes sense, but his other comments seem to negate that.  He 
> > says, e.g., that "[w]hat would come out of the query would 
> be label, 
> > form position, variable name,etc, etc.".  These are things 
> that are on 
> > the page form, not on some dynamic class handling the form.  He 
> > specifically rejects dynamic class structures in fact when he says 
> > that he has worked with DynaActionForm and ActionForm and that they 
> > don't fit the bill.  I think he is focusing on the idea of having 
> > changing variables on the page form and how to handle this on the 
> > backend.  Is that right, Dean?
> >
> > Michael
> >
> > At 01:40 AM 8/6/2004, you wrote:
> >
> >> I thought that
> >>
> >> " I want to build one on-the-fly according to 
> "configuration" stuff 
> >> stored in a database, that can change. "
> >>
> >> was pretty clear, especially after he pointed out the 
> DynaActionForms 
> >> weren't what he was looking for because they came from 
> struts config.
> >> But maybe it's just me - I'm used to wondering about what (weird 
> >> stuff) I can do in Struts.
> >>
> >>
> >> > > > >>
> >> > > > >>At 05:00 PM 8/5/2004, you wrote:
> >> > > > >>
> >> > > > >>>Suppose I want to construct a form based on a query to a 
> >> > > > >>>database. What would come out of the query would 
> be label, 
> >> > > > >>>form position, variable name, etc, etc. What would be the 
> >> > > > >>>recommended way of building this under struts/tiles? I've 
> >> > > > >>>been working with struts/tiles for a while now 
> and this is 
> >> > > > >>>the first time this sort of requirement has come up. I've 
> >> > > > >>>used DynaActionForm and ActionForm, but do not 
> see how this 
> >> > > > >>>sort of thing fits either model.
> >> > > > >>>
> >> > > > >>>Any ideas?
> >> > > > >>>
> >> > > > >>>Dean Hoover


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: very dynamic forms

2004-08-06 Thread Dean A. Hoover
What I need to do is construct a form that has a
variety of text input forms on it that are determined
at run-time. I know how to do this in jsp but I need
to provide an ActionForm that conforms to that form.
I got several useful replies last night and am
investigating them.
Dean
Michael McGrady wrote:
That makes sense, but his other comments seem to negate that.  He 
says, e.g., that "[w]hat would come out of the query would be label, 
form position, variable name,etc, etc.".  These are things that are on 
the page form, not on some dynamic class handling the form.  He 
specifically rejects dynamic class structures in fact when he says 
that he has worked with DynaActionForm and ActionForm and that they 
don't fit the bill.  I think he is focusing on the idea of having 
changing variables on the page form and how to handle this on the 
backend.  Is that right, Dean?

Michael
At 01:40 AM 8/6/2004, you wrote:
I thought that
" I want to build one on-the-fly according to "configuration" stuff
stored in a database, that can change. "
was pretty clear, especially after he pointed out the DynaActionForms
weren't what he was looking for because they came from struts config.
But maybe it's just me - I'm used to wondering about what (weird stuff)
I can do in Struts.
> > > >>
> > > >>At 05:00 PM 8/5/2004, you wrote:
> > > >>
> > > >>>Suppose I want to construct a form based
> > > >>>on a query to a database. What would come
> > > >>>out of the query would be label, form position,
> > > >>>variable name, etc, etc. What would be the
> > > >>>recommended way of building this under
> > > >>>struts/tiles? I've been working with struts/tiles
> > > >>>for a while now and this is the first time this
> > > >>>sort of requirement has come up. I've used DynaActionForm and
> > > >>>ActionForm, but do not see how this sort of thing fits either
> > > >>>model.
> > > >>>
> > > >>>Any ideas?
> > > >>>
> > > >>>Dean Hoover
> > > >>>
> > > >>>
> > > >>>---
> > > --
> > > >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >>>For additional commands, e-mail: [EMAIL PROTECTED]
> > > >>>
> > > >>
> > > >>
> > > >>
> > > >>
> > > -
> > > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >>For additional commands, e-mail: [EMAIL PROTECTED]
> > > >>
> > > >
> > > >
> > > >
> > >
> >---
> > > >--
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >
> > >
> 
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: very dynamic forms

2004-08-06 Thread Michael McGrady
That makes sense, but his other comments seem to negate that.  He says, 
e.g., that "[w]hat would come out of the query would be label, form 
position, variable name,etc, etc.".  These are things that are on the page 
form, not on some dynamic class handling the form.  He specifically rejects 
dynamic class structures in fact when he says that he has worked with 
DynaActionForm and ActionForm and that they don't fit the bill.  I think he 
is focusing on the idea of having changing variables on the page form and 
how to handle this on the backend.  Is that right, Dean?

Michael
At 01:40 AM 8/6/2004, you wrote:
I thought that
" I want to build one on-the-fly according to "configuration" stuff
stored in a database, that can change. "
was pretty clear, especially after he pointed out the DynaActionForms
weren't what he was looking for because they came from struts config.
But maybe it's just me - I'm used to wondering about what (weird stuff)
I can do in Struts.
> > > >>
> > > >>At 05:00 PM 8/5/2004, you wrote:
> > > >>
> > > >>>Suppose I want to construct a form based
> > > >>>on a query to a database. What would come
> > > >>>out of the query would be label, form position,
> > > >>>variable name, etc, etc. What would be the
> > > >>>recommended way of building this under
> > > >>>struts/tiles? I've been working with struts/tiles
> > > >>>for a while now and this is the first time this
> > > >>>sort of requirement has come up. I've used DynaActionForm and
> > > >>>ActionForm, but do not see how this sort of thing fits either
> > > >>>model.
> > > >>>
> > > >>>Any ideas?
> > > >>>
> > > >>>Dean Hoover
> > > >>>
> > > >>>
> > > >>>---
> > > --
> > > >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >>>For additional commands, e-mail: [EMAIL PROTECTED]
> > > >>>
> > > >>
> > > >>
> > > >>
> > > >>
> > > -
> > > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >>For additional commands, e-mail: [EMAIL PROTECTED]
> > > >>
> > > >
> > > >
> > > >
> > >
> >---
> > > >--
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >
> > >
> 
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: very dynamic forms

2004-08-06 Thread Matthew Van Horn
I thought that 

" I want to build one on-the-fly according to "configuration" stuff
stored in a database, that can change. "

was pretty clear, especially after he pointed out the DynaActionForms
weren't what he was looking for because they came from struts config.
But maybe it's just me - I'm used to wondering about what (weird stuff)
I can do in Struts.



> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 06, 2004 5:12 PM
> To: Struts Users Mailing List
> Subject: RE: very dynamic forms
> 
> 
> Well, given that he started with "struts/tiles" how you know 
> this is a 
> mystery to me.  Isn't this just a guess?
> 
> At 10:17 PM 8/5/2004, you wrote:
> >His question is:
> >
> >How can one build an ActionForm without specifying any properties in 
> >either a java class or the struts configuration file?
> >
> >
> >
> > > -Original Message-
> > > From: Michael McGrady [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, August 06, 2004 1:29 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: very dynamic forms
> > >
> > >
> > > What is your question?
> > >
> > > At 05:17 PM 8/5/2004, you wrote:
> > > >Sorry, I thought I stated it plainly. Forget about 
> tiles. I think 
> > > >what I need is Map Backed Action Forms, but am not sure where to 
> > > >look for an example. DynaActionForms look like classes that are 
> > > >just built dynamically according to struts config. I 
> want to build 
> > > >one on-the-fly according to "configuration" stuff stored in a 
> > > >database, that can change. Is that more understandable?
> > > >
> > > >Dean
> > > >
> > > >Michael McGrady wrote:
> > > >
> > > >>I cannot quite tell what your "problem" or "question" is,
> > > Dean Hoover.
> > > >>I
> > > >>don't see, further, what "struts/tiles" has to do with
> > > building a dynamic
> > > >>form.  You have a form in a file and that form may be 
> constructed 
> > > >>dynamically.  This is irrelevant to the tiles aspect of
> > > struts.  What are
> > > >>you really asking?
> > > >>
> > > >>Michael
> > > >>
> > > >>At 05:00 PM 8/5/2004, you wrote:
> > > >>
> > > >>>Suppose I want to construct a form based
> > > >>>on a query to a database. What would come
> > > >>>out of the query would be label, form position,
> > > >>>variable name, etc, etc. What would be the
> > > >>>recommended way of building this under
> > > >>>struts/tiles? I've been working with struts/tiles
> > > >>>for a while now and this is the first time this
> > > >>>sort of requirement has come up. I've used DynaActionForm and 
> > > >>>ActionForm, but do not see how this sort of thing fits either 
> > > >>>model.
> > > >>>
> > > >>>Any ideas?
> > > >>>
> > > >>>Dean Hoover
> > > >>>
> > > >>>
> > > >>>---
> > > --
> > > >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >>>For additional commands, e-mail: [EMAIL PROTECTED]
> > > >>>
> > > >>
> > > >>
> > > >>
> > > >>
> > > -
> > > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >>For additional commands, e-mail: [EMAIL PROTECTED]
> > > >>
> > > >
> > > >
> > > >
> > > 
> >---
> > > >--
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >
> > > 
> 
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: very dynamic forms

2004-08-06 Thread Michael McGrady
Well, given that he started with "struts/tiles" how you know this is a 
mystery to me.  Isn't this just a guess?

At 10:17 PM 8/5/2004, you wrote:
His question is:
How can one build an ActionForm without specifying any properties in
either a java class or the struts configuration file?

> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 06, 2004 1:29 PM
> To: Struts Users Mailing List
> Subject: Re: very dynamic forms
>
>
> What is your question?
>
> At 05:17 PM 8/5/2004, you wrote:
> >Sorry, I thought I stated it plainly. Forget about tiles.
> >I think what I need is Map Backed Action Forms, but am
> >not sure where to look for an example. DynaActionForms
> >look like classes that are just built dynamically according
> >to struts config. I want to build one on-the-fly according to
> >"configuration" stuff stored in a database, that can change. Is that
> >more understandable?
> >
> >Dean
> >
> >Michael McGrady wrote:
> >
> >>I cannot quite tell what your "problem" or "question" is,
> Dean Hoover.
> >>I
> >>don't see, further, what "struts/tiles" has to do with
> building a dynamic
> >>form.  You have a form in a file and that form may be constructed
> >>dynamically.  This is irrelevant to the tiles aspect of
> struts.  What are
> >>you really asking?
> >>
> >>Michael
> >>
> >>At 05:00 PM 8/5/2004, you wrote:
> >>
> >>>Suppose I want to construct a form based
> >>>on a query to a database. What would come
> >>>out of the query would be label, form position,
> >>>variable name, etc, etc. What would be the
> >>>recommended way of building this under
> >>>struts/tiles? I've been working with struts/tiles
> >>>for a while now and this is the first time this
> >>>sort of requirement has come up. I've used
> >>>DynaActionForm and ActionForm, but do
> >>>not see how this sort of thing fits either model.
> >>>
> >>>Any ideas?
> >>>
> >>>Dean Hoover
> >>>
> >>>
> >>>---
> --
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>
> >>
> >>
> >>
> -
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: very dynamic forms

2004-08-05 Thread Navjot Singh
then why do you need from?
Anyway, if you still wish to live within struts scope, map based forms 
will help you.

regards
Navjot Singh
Dew on red rose
 girl dancing
 sweat droplets on her face (Unknown)

Peng Tuck Kwok wrote:
I think I'm uncertain about the question you asked as well, do you
wish to have no ActionForm and only create one when a request comes in
, based on some configuration in a db ? It sounds like what you
actually want to do is change the configuration location from a file
to the db . Is that correct ?
On Fri, 6 Aug 2004 14:17:42 +0900, Matthew Van Horn
<[EMAIL PROTECTED]> wrote:
 

His question is:
How can one build an ActionForm without specifying any properties in
either a java class or the struts configuration file?
   

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Friday, August 06, 2004 1:29 PM
To: Struts Users Mailing List
Subject: Re: very dynamic forms
What is your question?
At 05:17 PM 8/5/2004, you wrote:
 

Sorry, I thought I stated it plainly. Forget about tiles.
I think what I need is Map Backed Action Forms, but am
not sure where to look for an example. DynaActionForms
look like classes that are just built dynamically according
to struts config. I want to build one on-the-fly according to
"configuration" stuff stored in a database, that can change. Is that
more understandable?
Dean
Michael McGrady wrote:
   

I cannot quite tell what your "problem" or "question" is,
 

Dean Hoover.
 

I
don't see, further, what "struts/tiles" has to do with
 

building a dynamic
 

form.  You have a form in a file and that form may be constructed
dynamically.  This is irrelevant to the tiles aspect of
 

struts.  What are
 

you really asking?
Michael
At 05:00 PM 8/5/2004, you wrote:
 

Suppose I want to construct a form based
on a query to a database. What would come
out of the query would be label, form position,
variable name, etc, etc. What would be the
recommended way of building this under
struts/tiles? I've been working with struts/tiles
for a while now and this is the first time this
sort of requirement has come up. I've used
DynaActionForm and ActionForm, but do
not see how this sort of thing fits either model.
Any ideas?
Dean Hoover
---
   

--
 

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


 

-
 

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: very dynamic forms

2004-08-05 Thread Peng Tuck Kwok
I think I'm uncertain about the question you asked as well, do you
wish to have no ActionForm and only create one when a request comes in
, based on some configuration in a db ? It sounds like what you
actually want to do is change the configuration location from a file
to the db . Is that correct ?

On Fri, 6 Aug 2004 14:17:42 +0900, Matthew Van Horn
<[EMAIL PROTECTED]> wrote:
> His question is:
> 
> How can one build an ActionForm without specifying any properties in
> either a java class or the struts configuration file?
> 
> > -Original Message-
> > From: Michael McGrady [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 06, 2004 1:29 PM
> > To: Struts Users Mailing List
> > Subject: Re: very dynamic forms
> >
> >
> > What is your question?
> >
> > At 05:17 PM 8/5/2004, you wrote:
> > >Sorry, I thought I stated it plainly. Forget about tiles.
> > >I think what I need is Map Backed Action Forms, but am
> > >not sure where to look for an example. DynaActionForms
> > >look like classes that are just built dynamically according
> > >to struts config. I want to build one on-the-fly according to
> > >"configuration" stuff stored in a database, that can change. Is that
> > >more understandable?
> > >
> > >Dean
> > >
> > >Michael McGrady wrote:
> > >
> > >>I cannot quite tell what your "problem" or "question" is,
> > Dean Hoover.
> > >>I
> > >>don't see, further, what "struts/tiles" has to do with
> > building a dynamic
> > >>form.  You have a form in a file and that form may be constructed
> > >>dynamically.  This is irrelevant to the tiles aspect of
> > struts.  What are
> > >>you really asking?
> > >>
> > >>Michael
> > >>
> > >>At 05:00 PM 8/5/2004, you wrote:
> > >>
> > >>>Suppose I want to construct a form based
> > >>>on a query to a database. What would come
> > >>>out of the query would be label, form position,
> > >>>variable name, etc, etc. What would be the
> > >>>recommended way of building this under
> > >>>struts/tiles? I've been working with struts/tiles
> > >>>for a while now and this is the first time this
> > >>>sort of requirement has come up. I've used
> > >>>DynaActionForm and ActionForm, but do
> > >>>not see how this sort of thing fits either model.
> > >>>
> > >>>Any ideas?
> > >>>
> > >>>Dean Hoover
> > >>>
> > >>>
> > >>>---
> > --
> > >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>>For additional commands, e-mail: [EMAIL PROTECTED]
> > >>>
> > >>
> > >>
> > >>
> > >>
> > -
> > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>For additional commands, e-mail: [EMAIL PROTECTED]
> > >>
> > >
> > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: very dynamic forms

2004-08-05 Thread Matthew Van Horn
His question is:

How can one build an ActionForm without specifying any properties in
either a java class or the struts configuration file?



> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 06, 2004 1:29 PM
> To: Struts Users Mailing List
> Subject: Re: very dynamic forms
> 
> 
> What is your question?
> 
> At 05:17 PM 8/5/2004, you wrote:
> >Sorry, I thought I stated it plainly. Forget about tiles.
> >I think what I need is Map Backed Action Forms, but am
> >not sure where to look for an example. DynaActionForms
> >look like classes that are just built dynamically according
> >to struts config. I want to build one on-the-fly according to 
> >"configuration" stuff stored in a database, that can change. Is that 
> >more understandable?
> >
> >Dean
> >
> >Michael McGrady wrote:
> >
> >>I cannot quite tell what your "problem" or "question" is, 
> Dean Hoover.  
> >>I
> >>don't see, further, what "struts/tiles" has to do with 
> building a dynamic 
> >>form.  You have a form in a file and that form may be constructed 
> >>dynamically.  This is irrelevant to the tiles aspect of 
> struts.  What are 
> >>you really asking?
> >>
> >>Michael
> >>
> >>At 05:00 PM 8/5/2004, you wrote:
> >>
> >>>Suppose I want to construct a form based
> >>>on a query to a database. What would come
> >>>out of the query would be label, form position,
> >>>variable name, etc, etc. What would be the
> >>>recommended way of building this under
> >>>struts/tiles? I've been working with struts/tiles
> >>>for a while now and this is the first time this
> >>>sort of requirement has come up. I've used
> >>>DynaActionForm and ActionForm, but do
> >>>not see how this sort of thing fits either model.
> >>>
> >>>Any ideas?
> >>>
> >>>Dean Hoover
> >>>
> >>>
> >>>---
> --
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>
> >>
> >>
> >>
> -
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: very dynamic forms

2004-08-05 Thread Michael McGrady
What is your question?
At 05:17 PM 8/5/2004, you wrote:
Sorry, I thought I stated it plainly. Forget about tiles.
I think what I need is Map Backed Action Forms, but am
not sure where to look for an example. DynaActionForms
look like classes that are just built dynamically according
to struts config. I want to build one on-the-fly according to
"configuration" stuff stored in a database, that can change.
Is that more understandable?
Dean
Michael McGrady wrote:
I cannot quite tell what your "problem" or "question" is, Dean Hoover.  I 
don't see, further, what "struts/tiles" has to do with building a dynamic 
form.  You have a form in a file and that form may be constructed 
dynamically.  This is irrelevant to the tiles aspect of struts.  What are 
you really asking?

Michael
At 05:00 PM 8/5/2004, you wrote:
Suppose I want to construct a form based
on a query to a database. What would come
out of the query would be label, form position,
variable name, etc, etc. What would be the
recommended way of building this under
struts/tiles? I've been working with struts/tiles
for a while now and this is the first time this
sort of requirement has come up. I've used
DynaActionForm and ActionForm, but do
not see how this sort of thing fits either model.
Any ideas?
Dean Hoover
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: very dynamic forms

2004-08-05 Thread Dean A. Hoover
oops, you wrote it! my bad
Niall Pemberton wrote:
How about Lazy DynaBeans:
  http://www.niallp.pwp.blueyonder.co.uk/#lazydynabean
Niall
- Original Message - 
From: "Dean A. Hoover" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 06, 2004 1:17 AM
Subject: Re: very dynamic forms

 

Sorry, I thought I stated it plainly. Forget about tiles.
I think what I need is Map Backed Action Forms, but am
not sure where to look for an example. DynaActionForms
look like classes that are just built dynamically according
to struts config. I want to build one on-the-fly according to
"configuration" stuff stored in a database, that can change.
Is that more understandable?
Dean
Michael McGrady wrote:
   

I cannot quite tell what your "problem" or "question" is, Dean 
Hoover.  I don't see, further, what "struts/tiles" has to do with 
building a dynamic form.  You have a form in a file and that form may 
be constructed dynamically.  This is irrelevant to the tiles aspect of 
struts.  What are you really asking?

Michael
At 05:00 PM 8/5/2004, you wrote:
 

Suppose I want to construct a form based
on a query to a database. What would come
out of the query would be label, form position,
variable name, etc, etc. What would be the
recommended way of building this under
struts/tiles? I've been working with struts/tiles
for a while now and this is the first time this
sort of requirement has come up. I've used
DynaActionForm and ActionForm, but do
not see how this sort of thing fits either model.
Any ideas?
Dean Hoover
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: very dynamic forms

2004-08-05 Thread Dean A. Hoover
Thanks, that looks very cool. Have you used it before?
Niall Pemberton wrote:
How about Lazy DynaBeans:
  http://www.niallp.pwp.blueyonder.co.uk/#lazydynabean
Niall
- Original Message - 
From: "Dean A. Hoover" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 06, 2004 1:17 AM
Subject: Re: very dynamic forms

 

Sorry, I thought I stated it plainly. Forget about tiles.
I think what I need is Map Backed Action Forms, but am
not sure where to look for an example. DynaActionForms
look like classes that are just built dynamically according
to struts config. I want to build one on-the-fly according to
"configuration" stuff stored in a database, that can change.
Is that more understandable?
Dean
Michael McGrady wrote:
   

I cannot quite tell what your "problem" or "question" is, Dean 
Hoover.  I don't see, further, what "struts/tiles" has to do with 
building a dynamic form.  You have a form in a file and that form may 
be constructed dynamically.  This is irrelevant to the tiles aspect of 
struts.  What are you really asking?

Michael
At 05:00 PM 8/5/2004, you wrote:
 

Suppose I want to construct a form based
on a query to a database. What would come
out of the query would be label, form position,
variable name, etc, etc. What would be the
recommended way of building this under
struts/tiles? I've been working with struts/tiles
for a while now and this is the first time this
sort of requirement has come up. I've used
DynaActionForm and ActionForm, but do
not see how this sort of thing fits either model.
Any ideas?
Dean Hoover
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: very dynamic forms

2004-08-05 Thread Niall Pemberton
How about Lazy DynaBeans:

   http://www.niallp.pwp.blueyonder.co.uk/#lazydynabean

Niall

- Original Message - 
From: "Dean A. Hoover" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 06, 2004 1:17 AM
Subject: Re: very dynamic forms


> Sorry, I thought I stated it plainly. Forget about tiles.
> I think what I need is Map Backed Action Forms, but am
> not sure where to look for an example. DynaActionForms
> look like classes that are just built dynamically according
> to struts config. I want to build one on-the-fly according to
> "configuration" stuff stored in a database, that can change.
> Is that more understandable?
> 
> Dean
> 
> Michael McGrady wrote:
> 
> > I cannot quite tell what your "problem" or "question" is, Dean 
> > Hoover.  I don't see, further, what "struts/tiles" has to do with 
> > building a dynamic form.  You have a form in a file and that form may 
> > be constructed dynamically.  This is irrelevant to the tiles aspect of 
> > struts.  What are you really asking?
> >
> > Michael
> >
> > At 05:00 PM 8/5/2004, you wrote:
> >
> >> Suppose I want to construct a form based
> >> on a query to a database. What would come
> >> out of the query would be label, form position,
> >> variable name, etc, etc. What would be the
> >> recommended way of building this under
> >> struts/tiles? I've been working with struts/tiles
> >> for a while now and this is the first time this
> >> sort of requirement has come up. I've used
> >> DynaActionForm and ActionForm, but do
> >> not see how this sort of thing fits either model.
> >>
> >> Any ideas?
> >>
> >> Dean Hoover
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: very dynamic forms

2004-08-05 Thread Kishore Senji
See section 4.3.2 in
http://struts.apache.org/userGuide/building_controller.html

Thanks,

Kishore Senji.


On Thu, 05 Aug 2004 20:17:17 -0400, Dean A. Hoover
<[EMAIL PROTECTED]> wrote:
> Sorry, I thought I stated it plainly. Forget about tiles.
> I think what I need is Map Backed Action Forms, but am
> not sure where to look for an example. DynaActionForms
> look like classes that are just built dynamically according
> to struts config. I want to build one on-the-fly according to
> "configuration" stuff stored in a database, that can change.
> Is that more understandable?
> 
> Dean
> 
> 
> 
> Michael McGrady wrote:
> 
> > I cannot quite tell what your "problem" or "question" is, Dean
> > Hoover.  I don't see, further, what "struts/tiles" has to do with
> > building a dynamic form.  You have a form in a file and that form may
> > be constructed dynamically.  This is irrelevant to the tiles aspect of
> > struts.  What are you really asking?
> >
> > Michael
> >
> > At 05:00 PM 8/5/2004, you wrote:
> >
> >> Suppose I want to construct a form based
> >> on a query to a database. What would come
> >> out of the query would be label, form position,
> >> variable name, etc, etc. What would be the
> >> recommended way of building this under
> >> struts/tiles? I've been working with struts/tiles
> >> for a while now and this is the first time this
> >> sort of requirement has come up. I've used
> >> DynaActionForm and ActionForm, but do
> >> not see how this sort of thing fits either model.
> >>
> >> Any ideas?
> >>
> >> Dean Hoover
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: very dynamic forms

2004-08-05 Thread Dean A. Hoover
Sorry, I thought I stated it plainly. Forget about tiles.
I think what I need is Map Backed Action Forms, but am
not sure where to look for an example. DynaActionForms
look like classes that are just built dynamically according
to struts config. I want to build one on-the-fly according to
"configuration" stuff stored in a database, that can change.
Is that more understandable?
Dean
Michael McGrady wrote:
I cannot quite tell what your "problem" or "question" is, Dean 
Hoover.  I don't see, further, what "struts/tiles" has to do with 
building a dynamic form.  You have a form in a file and that form may 
be constructed dynamically.  This is irrelevant to the tiles aspect of 
struts.  What are you really asking?

Michael
At 05:00 PM 8/5/2004, you wrote:
Suppose I want to construct a form based
on a query to a database. What would come
out of the query would be label, form position,
variable name, etc, etc. What would be the
recommended way of building this under
struts/tiles? I've been working with struts/tiles
for a while now and this is the first time this
sort of requirement has come up. I've used
DynaActionForm and ActionForm, but do
not see how this sort of thing fits either model.
Any ideas?
Dean Hoover
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: very dynamic forms

2004-08-05 Thread Michael McGrady
I cannot quite tell what your "problem" or "question" is, Dean Hoover.  I 
don't see, further, what "struts/tiles" has to do with building a dynamic 
form.  You have a form in a file and that form may be constructed 
dynamically.  This is irrelevant to the tiles aspect of struts.  What are 
you really asking?

Michael
At 05:00 PM 8/5/2004, you wrote:
Suppose I want to construct a form based
on a query to a database. What would come
out of the query would be label, form position,
variable name, etc, etc. What would be the
recommended way of building this under
struts/tiles? I've been working with struts/tiles
for a while now and this is the first time this
sort of requirement has come up. I've used
DynaActionForm and ActionForm, but do
not see how this sort of thing fits either model.
Any ideas?
Dean Hoover
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]