Search:

Type: Posts; User: socotech; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    0
    Views
    866

    How to inject a parent message source

    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...
  2. Solved

    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(*...
  3. AOP configured transactions not working in webapp

    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...
  4. Replies
    5
    Views
    8,390

    Injecting EntityManager into EntityListener

    I have created a listener to audit entity objects as they are saved and updated:



    @EntityListeners(value = {MyEntityListener.class})

    ...

    public class MyEntityListener {
    private...
  5. No, just a SimpleFormController in this case. ...

    No, just a SimpleFormController in this case. Thanks for the reply, however.
  6. setAsText() not being invoked on custom property editor

    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...
  7. Replies
    1
    Views
    1,728

    Annotations for Drools: Dead or Alive?

    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...
  8. Replies
    1
    Views
    788

    Binding request params with a prefix

    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...
  9. user messages not associated with binding exceptions

    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 ...
  10. Replies
    5
    Views
    1,075

    In that case, I would look up the "accountKey" by...

    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...
  11. Replies
    5
    Views
    1,075

    If I understand you correctly, you can retrieve...

    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 =...
  12. Replies
    4
    Views
    3,120

    First, make it easier on yourself and use...

    First, make it easier on yourself and use ClassPathXmlApplicationContext instead. Like so:


    ApplicationContext ctx = new ClassPathXmlApplicationContext("hello.xml");

    Next, put commons-logging...
  13. Assuming your property editor will be registered...

    Assuming your property editor will be registered during initBinder(), you could simply inject your DAO into your CommandController via spring-servlet.xml
  14. Replies
    1
    Views
    787

    Strike that....removed in...

    Strike that....removed in AbstractFormController.getCommand(...)
  15. Replies
    1
    Views
    787

    Command object not found in session

    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...
  16. Replies
    9
    Views
    1,470

    Can you tell us more about the problem?

    Can you tell us more about the problem?
  17. Okay, so if you still want to use AWFC, you could...

    Okay, so if you still want to use AWFC, you could override getTargetPage(...) to provide a custom target page: ...
  18. Will your user make the choice of skipping the...

    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.
  19. Replies
    2
    Views
    1,108

    How does application determine whether an email...

    How does application determine whether an email has been sent already?
  20. I'm going to answer my own question here, but...

    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>
    ...
  21. Accessing JAR's context from webapp context

    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...
  22. After further consideration, I realized that I'd...

    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. ...
  23. Intercepting methods outside Spring Context

    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...
  24. Replies
    2
    Views
    1,677

    diagnosed, but not solved

    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...
  25. Replies
    2
    Views
    1,677

    linking error with org.w3c.dom.Node

    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.
Results 1 to 25 of 26
Page 1 of 2 1 2