It depends on how are you reading the spring context file.
If you in a web application, the resource can be specified as a relative URL
/WEB-INF/myfile.proeprties
Or you can put the the...
Type: Posts; User: sureshpw; Keyword(s):
It depends on how are you reading the spring context file.
If you in a web application, the resource can be specified as a relative URL
/WEB-INF/myfile.proeprties
Or you can put the the...
That is correct. The rules specified in a valang validator is applied to the bean at once.
The AWFC do not call the validate method on the validator. It will just call the template method ...
If you are using Spring MVC form controllers, you could simply set the validators property of the BaseCommandController.
<bean id="myFormController" class=".....">
<property...
this might help.
Spring provides supports for injecting dependencies. You can:
1. Declare a setter method for the validators property.
2. Inject the validators using the spring context file.
public class...
Try with file:${catalina.home}/conf/myProject.properties.
How about overriding the formBackingObject method to return the default criteria?
Cant you check the database to see if the results are committed?
For Requirement 1
The solution of adding one more LogoutHandler into the LogoutFilter is one way to handle it.
What I had done if to configure a...
See the PropertyPlaceHolderConfigurer in the Spring Documentation.
You could configure a bean implementing ServletContextAware in your spring context. Then the ServletContext will be injected into the bean.
-- suresh --
In order to move the page from _target0 (starting page) to _target1, you should do a POST.
The controller checks if the request is a form submission or not. This is controlled by the method...
This might help.
If these are simple property values, isnt it possible to use PropertyPlaceHolderConfigurer or PropertyOverrideConfigurer?
For example:
<bean id="propertyConfig"
...
Just wondering what would be the right approach to handle session timeouts during AJAX when the web application is protected by Acegi?
The web application is configured to use a typical setup, if...
If you just wants to get the servlet context, cant you use ServletContextAware class?
Great.
As with any Ajax component, make sure to handle session expiry when the user clicks on the component.
-- suresh --
That is right. The spring.vm is to use within a web application.
Does it?
Of course, the velocity engine will be able to find the spring macro template (spring.vm), if specified using the velocimacro.library property.
But when looked closely, the spring...
Havent tried, but will this work?
<bean id="velocityEngine"
class="org.springframework.ui.velocity.VelocityEngineFactoryBean">
<property name="velocityProperties">
...
If you could get all the entries in master and slave drop down lists to the UI, it may be possible to use dynamic javascript to filter the two list boxes.
Then you can setup the dynamic option...
Try setting your filter-class to org.acegisecurity.util.FilterToBeanProxy in the web.xml.
-- suresh --
To add valang validations to your existing spring application, as far as I know, you only need the jar file mentioned above.
What you will need is spring-modules-validation.jar to use validations.
First of all, configure your controller with validators like:
<bean id="personController" class="....">
<property...
No problem.
As you already know, Spring doesnt require to create a new object to support a form.
Ideally, you would want to have your form beans separate from your persistent entities. The form...