Form for multiple entities

2011-04-15 Thread sockmonster
Hi,
I have a table to entities that I get from my database, the number of
entities can increase and decrease as these entities can be added or
deleted. I want to be able to edit the entities in the table. The first
column of every row has a check box to indicate whether that row should be
updated when the submit button below the form is pressed.

I understand how to create a form for a javabean or a form with a fixed
number of input elements but how do I handle variable numbers of beans/input
element.

Many thanks.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Form-for-multiple-entities-tp4305672p4305672.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: form for nested entity

2011-03-30 Thread sockmonster
Thanks Thiago, that worked a treat :)

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/form-for-nested-entity-tp4264623p4271479.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



form for nested entity

2011-03-25 Thread sockmonster
Hi, I have a question about forms. I want to create a form for an entity
class, however the entity class contains references to other entities. For
example:

class Item {
  long id;
  String name;
  String desc;
  Media media;
  ...
}

class Media {
  String filename;
  String type;
  ...
}

When I create a form for the Item entity it leaves out the Media reference
(I assume because it's not a supported type). How do I create a form that
includes media?

Many thanks.


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/form-for-nested-entity-tp4264623p4264623.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org