[appfuse-user] Dynamically changing Logging levels.

2008-04-01 Thread Thomas Ramapuram
Hi, Yesterday I wrote an action to dynamically change logging levels. Usually in application servers this is done with JMX but since I do not use jmx I thought I'd write an action to change logging levels. I'm sure others users would have the same requirements. In a production system which

Re: [appfuse-user] Re: How to create parent objects?

2008-04-01 Thread Rob Hills
Hi Derek, I just went back over some code I'd done recently that is doing this (something I should have done before rather than replying from memory) and I found I had an extra tag in the Manager definition in my applicationContext.xml - try adding the following: Derek Broughton wrote: and

Re: [appfuse-user] Re: How to create parent objects?

2008-04-01 Thread Rob Hills
Derek Broughton wrote: Rob Hills wrote: Make sure your DAO attributes are references to the Interface rather than the Hibernate implementation. For example, if you've got a UtoDao interface and a UtoDaoHibernate class, your manager should include something like this: UtoDao utoDao; public

Re: [appfuse-user] IE auth

2008-04-01 Thread Nathan Anderson
It sounds like the reverse proxy is interfering with the Tomcat session. Do you know if it is handling the JSESSIONID cookie correctly? Another possibility is the proxy is rewriting the links which as the potential to cause the same types of problems. Nathan - "Leo Barrientos C" <[EMAIL

[appfuse-user] Re: How to create parent objects?

2008-04-01 Thread Derek Broughton
Rob Hills wrote: > Make sure your DAO attributes are references to the Interface rather > than the Hibernate implementation. For example, if you've got a UtoDao > interface and a UtoDaoHibernate class, your manager should include > something like this: > > UtoDao utoDao; > > public void setUtoD

Re: [appfuse-user] update user

2008-04-01 Thread Dustin Pearce
When you want to modify just a "part" of an object, you need to be sure that you load the model from the database *before* you apply the parameters posted from your web form. What is happening is that your form is creating a *new* user instance and populating the fields from your small for

Re: [appfuse-user] update user

2008-04-01 Thread Matt Raible
Have you tried implementing the Preparable interface? This allows you to fetch your object from the database and only the fields you pass in on the request will be updated. See UserAction for an example. Matt On Tue, Apr 1, 2008 at 9:11 AM, tibi <[EMAIL PROTECTED]> wrote: > 2.0M5 > struts2.0 spr

Re: [appfuse-user] update user

2008-04-01 Thread tibi
2.0M5 struts2.0 spring hibernate thanks, tibi Matt Raible wrote: > Which version of AppFuse and which web framework are you using? > > On Tue, Apr 1, 2008 at 4:12 AM, tibi <[EMAIL PROTECTED]> wrote: > >> hi list, >> >> im not sure how to update an user when i only want to update one or two >

Re: [appfuse-user] update user

2008-04-01 Thread Matt Raible
Which version of AppFuse and which web framework are you using? On Tue, Apr 1, 2008 at 4:12 AM, tibi <[EMAIL PROTECTED]> wrote: > hi list, > > im not sure how to update an user when i only want to update one or two > fields. > using struts spring hibernate > > lets say i only want to change th

[appfuse-user] Re: Re: Re: Appfuse .war in tomcat

2008-04-01 Thread Derek Broughton
Nathan Anderson wrote: > Hi Derek, > > I just remembered the other problem I had. Make sure that all the files > in the tomcat directory are owned by the tomcat user (I think it is > tomcat55 or something like that). There is a problem where if the > /var/lib/tomcat5.5/logs isn't owned by the t

[appfuse-user] Re: Re: Re: How to create parent objects?

2008-04-01 Thread Derek Broughton
Nathan Anderson wrote: > > - "Dustin Pearce" > <[EMAIL PROTECTED]> wrote: > >> ... >> Seems like we will need to clarify the DAO/Manager concept, so users >> don't feel constrained by a one to one pattern. >> >> -D > > Not a bad idea... I just copied a couple of sentences taken from the >

[appfuse-user] Re: Re: How to create parent objects?

2008-04-01 Thread Derek Broughton
Rob Hills wrote: > Hi Derek, > > Derek Broughton wrote: >> Rob Hills wrote: >> >>> I'd >>> be looking to empower a Manager class with the wherewithall to do the >>> job. I'd create a Manager class for your unnamed third object (UTO) and >>> give it access to the DAO(s) it needs to load/create

Re: [appfuse-user] Re: How to create parent objects?

2008-04-01 Thread Rob Hills
Hi Derek, Derek Broughton wrote: Rob Hills wrote: I'd be looking to empower a Manager class with the wherewithall to do the job. I'd create a Manager class for your unnamed third object (UTO) and give it access to the DAO(s) it needs to load/create/persist the UTOs and return them to your

[appfuse-user] Re: How to create parent objects?

2008-04-01 Thread Derek Broughton
Rob Hills wrote: > That said, I believe I've previously got into problems with this kind of > issue by focusing too much on the model level. I hear you. I'm not uncomfortable with object databases, but I suspect that this whole concept of Object-relational mapping is encouraging me to think to

[appfuse-user] IE auth

2008-04-01 Thread Leo Barrientos C
Hello, i'm using appfuse 20 Spring and hibernate. I've have a problem: A client is using the system from outside of our Lan (We setup a reverse proxy in order to give a public address (hello.mydomain.com) to the system 192.168.1.199:8080/hello). The client do the login but just clicking in oth

[appfuse-user] update user

2008-04-01 Thread tibi
hi list, im not sure how to update an user when i only want to update one or two fields. using struts spring hibernate lets say i only want to change the name. i make a form with hidden field with id and a normal field with name. when i enter my save method i have a user with only an id and name

[appfuse-user] IWebMvc Milestone 3 screencast

2008-04-01 Thread Jose Noheda
Hi all, I've created a little screencast of IWebMvc. For those that don't know it, IWebMvc is a web / enterprise platform for Java developers (like AppFuse I guess) based on dojo / DWR / Spring / Hibernate. You can watch it at http://code.google.com/p/internna/downloads/list. Comments, suggestion

Re: [appfuse-user] Re: Re: How to create parent objects?

2008-04-01 Thread Nathan Anderson
- "Dustin Pearce" <[EMAIL PROTECTED]> wrote: > ... > Seems like we will need to clarify the DAO/Manager concept, so users > don't feel constrained by a one to one pattern. > > -D Not a bad idea... I just copied a couple of sentences taken from the AppGen wiki page: http://raibledesigns.