For example you may make your bean implement ApplicationContextAware.
This way you will get reference to the ApplicationContext that created your bean.
Type: Posts; User: leetgeezer; Keyword(s):
For example you may make your bean implement ApplicationContextAware.
This way you will get reference to the ApplicationContext that created your bean.
Sorry folks to ask the question here, normally I would search the forums first,
but the name 'CXF' is too short!
Does anybody here uses Apache CXF in production? I am considering different WS...
Did you try profiling the application?
The idea is nice, but tell me: why do I have to call a phone number to hear anything? That is just plain stupid, especially if you are outside US.
Good work Spring Team! I am impatiently awaiting the production-ready 2.5 release. Wish you best with your efforts.
He is. Hence the reference to the employee (employeeId).
Okay, maybe I should restate what I wanted to say.
The supervisor is not a separate entity in the sense, that it means nothing without employee. The employeeId points to the employee which has, ...
This is a little bit offtopic but please tell what you think if you have time to read this.
Assume we have an employee:
class Employee {
private int id;
private String email;
...
See the compatibility matrix on hibernate page. Then download the jars. It has to work, in my case it was I who made the mistake.
Enable debug logging in Spring and check if the transaction manager works as you intended. You should see transaction manager log entries. I haven't used
toplink but try to enable their logging...
Yes, it's a known problem and a royal pain in the ass. Exactly the same happened to me in JBoss. I think it is possible to solve it, google on endorsed library mechanism, cause I don't remember any...
Fine, but what error you get when trying to persist an object?
Please, provide more information: code, mappings, log file, exceptions etc.
Hi,
I am looking for the possibly painless way to design the web frontend
for the moderatly complex application which will be used internally by our company. Normally I would consider employing...
Hi folks,
I'm looking for a 'good practice' for reusing the same Controller / View for both adding and editing the domain object.
Let's say our object of interest is an employee. We need a way...
Thanks for pointing this out. I'll check the PropertyEditorRegistrar right away.
It's nice, however still you don't avoid the boilerplate, since you have to define it for each field inside each controller (correct me if I'm wrong)
Hi,
I've been thinking of a generic way to enable HTML escaping for the String fields of Command Objects. What I'm trying to achieve is to avoid all the boilerplate code stripping HTML tags after...
I need to display a summary of ALL the form binding errors (not all the errors for the particular field). How to do this using Freemarker? I've been struggling with this for a while. Thanks in advance
One additional question popped into my mind:
Since my PropertyEditor uses EntityManager it should be defined as Spring bean.
But isn't that the case that then this implementation will not be...
Thanks! That solves the problem.
Sorry for misunderstanding. Actually, the person who adds a new employee is responsible for putting the employee in the initial group which can be chosen from the list of existing groups. So I can't...
Employee is an Entity in JPA sense which has an associated groups he or she belongs to:
@ManyToMany
private List <Group> groups;
Now I want to be able to assign an initial group to the...
Suppose you have a service method: EmployeeService.add(Employee emp);
Now let's imagine you have just obtained an EmployeeCO command object from the web form via the controller and you are ready to...
Speaking about security, you might want to consider Seraph. It does not integrate with Spring as Acegi does, but AFAIK is more lightweight.