I'm attempting to use a custom MessageSource in my context. If my custom MessageSource cannot resolve a message, I want it to delegate to a ResourceBundleMessageSource.
My context:
<bean...
Type: Posts; User: socotech; Keyword(s):
I'm attempting to use a custom MessageSource in my context. If my custom MessageSource cannot resolve a message, I want it to delegate to a ResourceBundleMessageSource.
My context:
<bean...
My pointcut expression was malformed. I left off the portion which matches the method name. The above should read:
<aop:pointcut id="daoOperation" expression="execution(*...
I've switched from annotated to aspect transaction management. Tests pass in my DAO module. However, when any of the DAO components are injected into Spring MVC controllers, transactions are not...
I have created a listener to audit entity objects as they are saved and updated:
@EntityListeners(value = {MyEntityListener.class})
...
public class MyEntityListener {
private...
No, just a SimpleFormController in this case. Thanks for the reply, however.
I'm attempting to bind a selection input with Integers as options to an model entity. The setAsText() is not being called on submit.
From my controller:
@Override
protected void...
Can someone confirm if the tutorial found at http://docs.codehaus.org/display/DROOLS/Drools+Spring+Tutorial is still valid? Specifically, can annotations be used to define rules, conditions, etc. or...
My form contains params whose names are "inquiry1, inquiry2, etc". The numbers correspond to unique IDs of domain object, Inquiry. Is it possible to write a custom property editor for binding to a...
I'm looking for examples of setting and getting user messages that are not associated with a form submission. For example, my use case:
1) user requests a page they are unauthorized to view ...
In that case, I would look up the "accountKey" by iterating "activation.associatedAccounts" (assuming they're available in application/session scope) based on the "id" selected by the user. In other...
If I understand you correctly, you can retrieve it like so:
protected void validatePage(Object o, Errors errors, int page) {
YourCommandForm mcf= (YourCommandForm) o;
String value =...
First, make it easier on yourself and use ClassPathXmlApplicationContext instead. Like so:
ApplicationContext ctx = new ClassPathXmlApplicationContext("hello.xml");
Next, put commons-logging...
Assuming your property editor will be registered during initBinder(), you could simply inject your DAO into your CommandController via spring-servlet.xml
Strike that....removed in AbstractFormController.getCommand(...)
I've extended AbstractWizardFormController and would like the user to skip the last step if updating/editing the business object.
I thought the following would accomplish my goal:
protected...
Can you tell us more about the problem?
Okay, so if you still want to use AWFC, you could override getTargetPage(...) to provide a custom target page: ...
Will your user make the choice of skipping the step? If so, you simply need to add a name="_targetX" to the skip button where 'X' is the step number to skip to.
How does application determine whether an email has been sent already?
I'm going to answer my own question here, but correct me if wrong: it appears that a "global" context can be defined in your web.xml with the following code:
<context-param>
...
I've packaged a service layer into a JAR along with it's bean definition file and made it a dependency of my webapp. Now I want to inject the service beans into MVC controllers from...
After further consideration, I realized that I'd need to re-factor the service factory to be Spring-aware. As your answer confirms, Spring must be an intermediary somewhere in order to apply AOP. ...
I'm attempting to test a legacy J2EE app that uses EJB. The app uses a traditional factory pattern to return references to EJBs. I'd like to intercept method calls to the factory during unit...
Yea, of course, sorry about the lack of information. Deploying on Tomcat 5.0.16 in stand-alone mode. However, I think I've diagnosed this: my app also uses Castor and I believe there's a conflict...
I've recently upgraded to 1.1.1, but am receiving error in subject line. I'm using xmlParserAPIs-2.2.1. Any ideas? Thanks in advance.