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
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
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
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
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
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
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
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-
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
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
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
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 {
>>
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
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
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
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
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
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
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
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
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
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
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
Finally , I got it works with the following lines:
*
"
>
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:
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
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?
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
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
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!
>
>
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]
31 matches
Mail list logo