Hi Joey, Ahhh... I only had one sentence!
Remember that appfuse is not meant to be everything - it is not like .NET's IDE where you really can generate everything and manipulate everything automagically. Appfuse is a quick start to get you going but then you need to go make changes. Typically I change every single JSP at some point. What I would suggest is create the model object, run the "gen" and then go in and modify the DAO, Manager, Action, struts.xml and remove the redundant JSPs and associated stuff (properties etc). I don't think you will find a cleaner way... It is really only 5 minutes work (once you work out what to do of course) Cheers Tim On Mon, Aug 25, 2008 at 10:27 PM, Joey122 <[EMAIL PROTECTED]> wrote: > > I m not convinced this would work would it? > > What would you do after you implemented / extended that class ? Rerun > appfuse:gen? > > How would you get rid of the add / delete buttons? > > I did think of removing the add / save buttons from the generated JSP pages > but the data grid will still allow you to click into it which is a shame. > > > > TimRobertson100 wrote: >> >> In one sentence, I'd suggest that you don't extend GenericDAO and >> GenericManager, but rather look at their retrieval methods and copy >> them into your own read-only implementation, or perhaps just override >> them with a log.warn("Not implemented in READ-ONLY mode") and return >> null. >> >> >> On Mon, Aug 25, 2008 at 10:07 PM, Joey122 <[EMAIL PROTECTED]> wrote: >>> >>> Hi All, >>> >>> Is this possible - I ve declared a model entity and get the idea of what >>> is >>> happening - >>> >>> However I only want to allow the data to be viewed and NOT loaded. >>> >>> Is there an annotation that needs adding to do this? >>> >>> Can someone explain in one sentence what needs to be done / give me a >>> pointer >>> >>> Cheers >>> -- >>> View this message in context: >>> http://www.nabble.com/Only-listing-Entity---Prevent-Edit-Save-Delete-Capability-tp19150749s2369p19150749.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] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/Only-listing-Entity---Prevent-Edit-Save-Delete-Capability-tp19150749s2369p19151087.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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]