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...
Type: Posts; User: RobertMB; Keyword(s):
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...
Hi All,
Is there a way to inject session data in my Spring test application config?
Thanks for any advice,
Rob
:)
Fixed by updating to STS 2.3.2 from nightly builds.
http://jira.springframework.org/browse/IDE-1098
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"
...
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:
...
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;
...
Right click on project in Package Explorer | Add Spring Project Nature.
http://springide.org/project/wiki/SpringideGuide
Hi All,
I am using unitils and dbunit with Spring and have (working) tests such as:
@DataSet("/blah/blah/ModelTestUtils.xml")
@Transactional(TransactionMode.ROLLBACK)...
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...
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...
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"
...
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....
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...
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...
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...
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
...
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">
...
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...
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...
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...
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?
...
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"
...