On 9/23/05, Letícia Álvares Barbalho <[EMAIL PROTECTED]> wrote: > Hello everyone. > > I'm looking for an interface opinion here. I'm working on a master detail > issue here, and I don't know how I should organize it on the web page. > > I have Order and Items. Order has many items. So, when the user's adding an > Order, I want him to enter all order data and then, in the same page, enter > the items number. > > Something like this: > > > > - Order Id: > - Order Name: > - Order Obs: > > Add items here: > - Item number [submit item button] > > > > and then, when the user clicked the submit item button... the item number > would clear and maybe be shown in a grid. But I have no idea on how to do > it. > > As you see, I'm not trying to display stored data: I'm working on the form > the user will fill to store the data. > > How do you guys do it? It doesn't have to be in a grid, any ideas to solve > this will be just fine for me. A little example would be nice. I'm using > struts + hibernate. Do you suggest any grid, component, struts-stuff or > what? I'm kinda newbie as you see > > Sorry if my question might be misplaced > > Thank you all very much
Component-based approach is the best here, and Struts does not help much. I would recommend my own library for that ;), but frankly, it takes some ridiculous steps to make it work on Tomcat (much cleaner and simpler on Resin). So the easiest way is to create a page with several sections, each would check the appropriate state and will either be shown or hidden. It is cleaner to define several forms on the page, after you submit, you redisplay the same page, it should show updated data. Michael. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]