IMHO, supporting many-to-one would be a good first step and be quite useful. But even that in the general case is not quite so simple. Here are some of this issues I can think of:
1. The JSP control probably needs to vary based on the number of rows in the table being referred to: - If only a few rows (e.g. a status table or something similar) then using a set of radio buttons. - If a few more rows, then a simple list box works. - If you've got hundreds of rows, then you need popup window or something similar that uses the display:table tag to let you scroll through (or search) and select the reference. For the JSP, assuming some kind of collection was in the request/session it would not be too hard to decide between radio buttons, list box and display:table (session only) and render appropriately. But if the collection was really large and required scrolling/searching through the database you would need to tell direct it to do so somehow - some convention that a given method exists I imagine. The tag could also take an attribute directed it as to what type of control to generate. In most cases you would not want a hundred radio buttons sprayed across your form - but in some unusual situations it might be useful. I'm not sure I'm familiar enough to markup the controller changes needed yet, but should be in a few days. Hope I'm not too far off the mark as to what the original poster was looking for. mraible wrote: > > It doesn't implement this currently. If someone takes the time to > figure out what the UI might look like (JSPs, Controllers, etc.), I'd > be happy to add this functionality. > > Matt > > On 3/11/08, khalid el hayani <[EMAIL PROTECTED]> wrote: >> hi list, >> did appfuse:gen generate a UI for manytoone or manytomany relationships? >> if no, what can i do to implimente this in AMP? i need your idea. >> tanks in advance >> >> ------------------------- >> el hayani khalid >> ------------------------- >> >> --------------------------------------------------------------------- >> 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] > > > -- View this message in context: http://www.nabble.com/-appfuse%3Agen--and-UI-for-manytoone-or-manytomany-relationships-tp15985314s2369p15986802.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
