Search:

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

Search: Search took 0.05 seconds.

  1. Replies
    2
    Views
    612

    Actually a FacesContext issue

    Turns out the issue isn't session data, so much as FacesContext issue.

    I have a problem with a (Spring) @Component that has a @PostConstruct method which access session data via...
  2. Replies
    2
    Views
    612

    inject session data?

    Hi All,

    Is there a way to inject session data in my Spring test application config?

    Thanks for any advice,

    Rob
    :)
  3. Fixed by updating to STS 2.3.2 from nightly...

    Fixed by updating to STS 2.3.2 from nightly builds.
    http://jira.springframework.org/browse/IDE-1098
  4. parsing XML ClassCastException: ScopedProxyMode cannot be cast to ScopedProxyMode

    Hi All,

    I have the following web-application-config.xml:


    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    ...
  5. Replies
    0
    Views
    522

    @PersistenceContext in Spring Explorer

    Hi All,

    I am trying to wrap my head around what is and isn't a Spring Bean and when I should or shouldn't see it in a Spring Explorer Dependency Graph.

    I have a DAO concrete class:

    ...
  6. Found an alternative that works: import...

    Found an alternative that works:


    import org.junit.runner.RunWith;
    import org.junit.runners.Suite;
    import org.junit.runners.Suite.SuiteClasses;

    import blah.blah.SomeDaoTest;
    ...
  7. Right click on project in Package Explorer | Add...

    Right click on project in Package Explorer | Add Spring Project Nature.
    http://springide.org/project/wiki/SpringideGuide
  8. TestSuite not obeying @SpringApplicationContext

    Hi All,

    I am using unitils and dbunit with Spring and have (working) tests such as:


    @DataSet("/blah/blah/ModelTestUtils.xml")
    @Transactional(TransactionMode.ROLLBACK)...
  9. Spring project uses annotations.. seeing nothing in Spring Explorer

    Hi All,

    I am working on a project that is using Spring annotations in SpringSource Tool Suite IDE, but I see nothing in the "Spring Explorer" view. Do I have to enable to a specific project facet...
  10. NonUniqueObjectException with PROPAGATION_REQUIRES_NEW

    The short story..

    Here is what I think is happening in my application.


    Controller gets Object X back from the form. Object X isn't yet linked to a Hibernate session, even though it is saved...
  11. Hi Ela, I seem to be using it in the same way...

    Hi Ela,

    I seem to be using it in the same way you describe, and it works ok for me. Perhaps you need to set ignoreUnresolvablePlaceholders to true?



    <bean id="placeholderConfig"
    ...
  12. Reference data in Spring Context v Java Code

    Hi All,

    I have a system whereby users in different roles can perform different actions. The roles and actions are represented by reference data, injected into the system via Spring context files....
  13. Hi Noon, OK, smoke cleared from my eyes. :) ...

    Hi Noon,

    OK, smoke cleared from my eyes. :)

    Register a custom editor that will allow null/empty values through and deal with the null/empty value in our own validation code. Cool.

    Something...
  14. Hi Noon, Thanks for the reply - it is really...

    Hi Noon,

    Thanks for the reply - it is really appreciated!

    1) I can see sending true to the constructor of CustomNumberEditor will take care of this issue.

    2) Am I correct in thinking that...
  15. Validation of integer - mandatoriness v value not supplied

    Hi All,

    I have a form field that is bound to an Integer in the command bean.

    The default validation works ok. If the value supplied is blank, null or not a number the default validator kicks in...
  16. I thought this was a bug and raised a JIRA issue...

    I thought this was a bug and raised a JIRA issue about it. Thank you to Juergen Hoeller who explained that I had indeed misunderstood the issue.

    http://jira.springframework.org/browse/SPR-4477
    ...
  17. PropertyPlaceholderConfigurer - nested placeholders

    Hi All,

    The javadocs for PropertyPlaceholderConfigurer indicate that you can nest property place holders. This is what I have tried:



    <beans>
    <bean name="testBean" class="my.Test">
    ...
  18. Replies
    4
    Views
    835

    Hi Gehel, Frankly, you are probably right....

    Hi Gehel,



    Frankly, you are probably right. I am just trying to maintain the system and don't have the scope to change how it is set up.

    In this part of the system, it is using Spring to...
  19. Replies
    4
    Views
    835

    Hi longwa, I was thinking this too, so I put...

    Hi longwa,

    I was thinking this too, so I put some debug statements in the constructors and equals methods. I am finding that the default constructor of UserId is being called - and I see no output...
  20. Replies
    3
    Views
    879

    Hi toverlier, I want the ability to specify a...

    Hi toverlier,

    I want the ability to specify a date such as "tomorrow" or "today plus/minus x years/months/days".

    There is validation on a particular bean that checks if a date is within some...
  21. Replies
    3
    Views
    879

    Dynamic dates in Spring Config

    Hi All,

    I can use a CustomDateEditor to write dates in a specified format within my Spring configuration, but can I write dynamic date values? I.e. current time +/- x days, y months, z years?
    ...
  22. Replies
    4
    Views
    835

    Prototypes in a set

    Hi All,

    I am dealing with a Spring config that uses a prototype bean to output objects with a unique id - the config is below.



    <bean id="userIdPrototype" singleton="false"
    ...
Results 1 to 22 of 22