Thread revival, but have you found an answer? I'm facing the same issue and it's really annoying. I assume Spring does some kind of masking, but I really have no idea how to access a variable in...
Type: Posts; User: Bjorn121; Keyword(s):
Thread revival, but have you found an answer? I'm facing the same issue and it's really annoying. I assume Spring does some kind of masking, but I really have no idea how to access a variable in...
A few years ago, someone added Spring Rich Client to our project. Up till now, everything's been working fine. However, we're trying to migrate our project to Spring 3.0, but SRP doesn't like that...
Were you able to solve it? I'm having the same problem in my application.
I don't know whether these two are interfering with eachother, but it's the best I can come up with.
In our application, Acegi is configured through an XML. We're using Acegi since it's a rather...
Does anyone know if there's an up-to-date version of this document? This one was written in 2004 and maybe there are other ways of using Ehcache in conjunction with Spring.
I need to learn how to rephrase my issues :-). What I want to do is map several requests to 1 method, instead of 1 method per request.
For instance /secure/user.html and /user.html should both...
I should've changed the title of this thread to "Map several URL's to 1 controller", because that's what I want to do. Using a multi action controller is an option, but then I would have 2 methods...
We're using annotations in our project and I was wondering if it's possible to map different paths to 1 controller.
For instance, I have a Controller which handles a form. In that Controller we...
Did you add this piece of code to a Controller?
ServletRequestDataBinder binder = createBinder( request, provider);
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");...
Give us parts of your code so we can have a look at it. Either your property editor isn't registered correctly or it doesn't work correctly.
Try debugging your property editor and see if it...
What do you mean by "date validation"?
I have a somewhat related issue.
How do you register your property editors?
It's also possible (and maybe easier) to create a SimpleDateFormat instance and set lenient to false. If you enter a wrong date (like in your example), an exception will be thrown.
No one? It seems rather weird to me that no one (even the staff) knows a solution to this problem.
I'm going to revive this thread again. For the moment, our application uses the old skool method <s:bind ...><input value="<fmt ... />" /></s:bind> to show dates in our form.
I want to remove the...
We fixed this by adding a field which is empty. Every time a user deletes a row, we search for that field and add "true" to it.
In our onBind method (in the form controller), we loop through the...
I have an input field, in which a user can enter a Double. The problem is, users have to enter a Double with a comma (14,75). So far so good, when you enter a double 14,75, validation doesn't fail....
I apologize for the thread hijack, but I have another problem with a custom editor.
In our form, we have a field in which you can enter a Double. The problem is, when you enter text in that field...
I think I know what the problem is.
This is my property editor:
public class CustomDateEditor extends PropertyEditorSupport
{
/** Dateformat for the given date */
private...
The magical concept of debugging ;-). I've added a breakpoint at the start of those two methods (getAsText and setAsText), and when I press submit, I enter the setAsText method twice, but the...
Yes they are.
In our application we have a class, which extends another class.
Simple:
public class ObjA
{
private Date d;
Because we don't use Webflow since our application is not complicated enough to use it. It's too late to change that decision, so I have to find a solution for Spring MVC.
Found a better solution.
However, there is still a problem:
Our flow is like this:
page contains link => Regular Controller adds user object to ModelAndView, show page containing the...
I think this is something that has happened before, so I hope that someone has a solution for this problem.
In our application it's possible to open a list of users. From those users it's...