Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-08 Thread Msarda
Thanks Mike for your reply. My application in running now. But still i have one problem regarding validation. I have priorityDate field in my model object.When i am putting validation for that field in validation.xml,my test caes are getting failed(testRemove() method) I tried changing date pat

Re: [appfuse-user] Update User from another Manager

2007-07-08 Thread Dale Newfield
cdtm wrote: Thanks for your help. It runs now as expected! I'm glad to help. But as Matt pointed out, if this solution caused you to need to replicate code, that would be bad, and if you'd rather call one Manager from another, you can do that instead. Change that injection from a dao to

Re: [appfuse-user] Update User from another Manager

2007-07-08 Thread Dale Newfield
Matt Raible wrote: > The transaction boundaries are PROPOGATION_REQUIRED, which means > "participate in a transaction if one exists, otherwise, start a new > one". Where is this set? I've tried to update my AppFuse1.9.4 based app to use spring2, and I'm now thinking that I may have done that i

Re: [appfuse-user] Generate serialVersionUID

2007-07-08 Thread fadhli
Or a shortcut key ctrl + 1 at the name of the class On 7/7/07, Fan <[EMAIL PROTECTED]> wrote: Ohh, got it. Thanks Aled Aled Rhys Jones wrote: > > Hi Fan > > If the class is serializable then if you haven't defined a > serialVersionUID you'll get a warning icon on the left next to the > publi

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-07-08 Thread fadhli
Hello there, A couple of questions. Is the Club class is the owning side of the association? Does deleting the club will also delete the user? From what you're trying to do, I understand that you're trying to make a bidirectional one-to-many/many-to-one association. So IMHO, it will make much

Re: [appfuse-user] Puzzles on DAO & Service layer?

2007-07-08 Thread jiangshachina
Hi, > Additionally, BaseManager has a protected field "dao", > I think that means we can use the dao in BaseManager's subclasses, > but actually, the variable "dao" is hidden by subclasses's field "dao". > That means we cannot use super-dao in sub-managers. I still be curious on the problem. Whe

Re: [appfuse-user]

2007-07-08 Thread Fan
Yup, it works perfectly. Sorry, what do you mean by "controller code" and "property editor code" ? I am using struts and hibernate Aled Rhys Jones wrote: > > Hi Fan > > Does the below save ok, i.e. when you change club does it save the > selected club? The below works for me showing the d

Re: [appfuse-user] TOmahawk error, TOmcat, jsf, hibernate

2007-07-08 Thread chichi
Yes it does -- View this message in context: http://www.nabble.com/TOmahawk-error%2C-TOmcat%2C-jsf%2C-hibernate-tf4010610s2369.html#a11494516 Sent from the AppFuse - User mailing list archive at Nabble.com. - To unsubscribe, e-

Re: [appfuse-user] Drop down list population

2007-07-08 Thread Matt Raible
Are you sure your property editor is getting called correctly? If so, then you might try debugging it to see if you can recognize the problem in your code. Matt On 7/8/07, Aled Rhys Jones <[EMAIL PROTECTED]> wrote: Further to this (still can't save drop down list changes :-( ), I have an examp

Re: [appfuse-user] Drop down list population

2007-07-08 Thread Aled Rhys Jones
Further to this (still can't save drop down list changes :-( ), I have an example where an object x contains an object y that can be selected using a drop down list, but y is currently null as I haven't added it to x yet (would be done using the drop down list). Is the trick here to create y in

[appfuse-user] Can I specify role in menu item level instead of menu level?

2007-07-08 Thread kkus
Normally I have to specify roles in Menu level as below, Now I want to specify roles in sepcific menu item as below but I don't know if that is corrct, Can I do like the above? Thanks! -- View this message

Re: [appfuse-user] Update User from another Manager

2007-07-08 Thread cdtm
Thanks for your help. It runs now as expected! DNewfield wrote: > > cdtm wrote: >> SimplePresenceManager the manager which updates the users. >> In SimplePresenceManager I changed the constructor to >> >> public SimplePresenceManagerImpl(UserDao dao) throws EventingException { >>

Re: [appfuse-user] Update User from another Manager

2007-07-08 Thread Matt Raible
On 7/8/07, Dale Newfield <[EMAIL PROTECTED]> wrote: Matt Raible wrote: > It should be OK to call one manager from another And would you get the handle to the other Manager in the same way we do for daos, using spring injection? Yes. > The transaction boundaries are PROPOGATION_REQUIRED, whi

Re: [appfuse-user] Update User from another Manager

2007-07-08 Thread Dale Newfield
Matt Raible wrote: It should be OK to call one manager from another And would you get the handle to the other Manager in the same way we do for daos, using spring injection? The transaction boundaries are PROPOGATION_REQUIRED, which means "participate in a transaction if one exists, otherwi

Re: [appfuse-user] Update User from another Manager

2007-07-08 Thread Matt Raible
On 7/8/07, Dale Newfield <[EMAIL PROTECTED]> wrote: cdtm wrote: > I have a manager that gets some data from another source (via notification). > Upon reception of an event this manager has to update user information. So tell spring to inject the userDao into your other manager, and make calls to

Re: [appfuse-user] Update User from another Manager

2007-07-08 Thread Dale Newfield
cdtm wrote: SimplePresenceManager the manager which updates the users. In SimplePresenceManager I changed the constructor to public SimplePresenceManagerImpl(UserDao dao) throws EventingException { super(); this.userDao= dao; } Is this the correct

Re: [appfuse-user] Update User from another Manager

2007-07-08 Thread cdtm
Dale, thank for your quick response. For injecting the userDao I added the following into applicationContext.xml: SimplePresenceManager the manager which updates the users. In SimplePresenceManager I changed the constructor to public SimplePresenceManagerImpl(UserDao dao) t

Re: [appfuse-user] Update User from another Manager

2007-07-08 Thread Dale Newfield
cdtm wrote: I have a manager that gets some data from another source (via notification). Upon reception of an event this manager has to update user information. So tell spring to inject the userDao into your other manager, and make calls to it. Since the manager method boundary is the transa

[appfuse-user] Update User from another Manager

2007-07-08 Thread cdtm
Hi, I have a manager that gets some data from another source (via notification). Upon reception of an event this manager has to update user information. Therefore I tried to instantiate the UserManagerImpl by using its constructor, query for a user object (by getUserByUsername()) and save it afte

Re: [appfuse-user] Triggering a page refresh from the server side

2007-07-08 Thread Matt Raible
Which web framework are you using? Which version of AppFuse are you using? Matt On 7/8/07, cdtm <[EMAIL PROTECTED]> wrote: Hi! We are having a hard time figuring out how to trigger a page refresh from the server side every few seconds when a server-side event is created. We would prefer a ra

Re: [appfuse-user] LookupDaoHibernate

2007-07-08 Thread Dale Newfield
Fan wrote: "from club order by clubName" Embedded error: club is not mapped [from club order by clubName]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: club is not mapped [from club order by clubName] It's saying it doesn't know what class "club" should be. I think you w

Re: [appfuse-user] Model Classes (Many to many relationships)

2007-07-08 Thread Dale Newfield
Bandula wrote: @ManyToMany( targetEntity = Employee.*class*) *public* List getAssignedEmployeeList() @ManyToMany(targetEntity = Task.*class*) *public* List getAsignedTaskList() This is insufficient to make these two many-to-many relationships share the same data. It is impo

Re: [appfuse-user]

2007-07-08 Thread Aled Rhys Jones
Hi Fan Does the below save ok, i.e. when you change club does it save the selected club? The below works for me showing the drop down list but not saving. Can I ask you to show some of your controller code and property editor code if you're using one? Thanks Aled Fan wrote: Finally , I g

Re: [appfuse-user]

2007-07-08 Thread Fan
Finally , I got it works with the following lines: * " >

Re: [appfuse-user]

2007-07-08 Thread Aled Rhys Jones
What about: SELECTED> Lemme know if it works, been having trouble getting drop-down lists working myself. My issue is that the drop down list appears, and the correct value selected, but saving doesn't work. Cheers Aled Fan wrote: I have a dropdown with a list of club POJO:

[appfuse-user]

2007-07-08 Thread Fan
I have a dropdown with a list of club POJO: " //if club.clubID equals user.club.clubID then selected > My problem is , what's the syntaxfor checking if club.clubID equals u

[appfuse-user] Triggering a page refresh from the server side

2007-07-08 Thread cdtm
Hi! We are having a hard time figuring out how to trigger a page refresh from the server side every few seconds when a server-side event is created. We would prefer a rather simple and straightforward solution. Maybe you have some ideas on how to use DWR library (or any other) for this purpose?

[appfuse-user] Model Classes (Many to many relationships)

2007-07-08 Thread Bandula
Hi Guys, I am new to web application development with appfuse. This is my problem. I have 2 model classes (Employee and Task) which has many to many relationship. My code segments as follows Task model class private List assignedEmployeeList; @ManyToMany( targetEnt

[appfuse-user] FW: Appfuse - Model Classes (Many to many relationships)

2007-07-08 Thread Bandula
Hi Guys, I am new to web application development with appfuse. This is my problem. I have 2 model classes (Employee and Task) which has many to many relationship. My code segments as follows Task model class private List assignedEmployeeList; @ManyToMany( targetEnt

Re: [appfuse-user] Puzzles on DAO & Service layer?

2007-07-08 Thread Sha Jiang
Thanks for the info. a cup of Java, cheers! Sha Jiang 2007/7/8, Matt Raible <[EMAIL PROTECTED]>: http://issues.appfuse.org/browse/APF-186 On 7/2/07, jiangshachina <[EMAIL PROTECTED]> wrote: > > Hello, > I just be curious with the matter, > anybody can give me some explanation? > > Thanks! > >

[appfuse-user] LookupDaoHibernate

2007-07-08 Thread Fan
I have modified the LookupDaoHibernate with the following method: public List getClubs(){ log.debug("retrieving all clubs..."); return getHibernateTemplate().find("from club order by clubName"); } When I run "mvn jetty:run-war", I encounter the following error: [INFO]