When using ACLs in Spring Security, is there an existing way to grant/deny permissions on a domain class level, rather than only at the object instance level?
For example, look at...
Type: Posts; User: uaine; Keyword(s):
When using ACLs in Spring Security, is there an existing way to grant/deny permissions on a domain class level, rather than only at the object instance level?
For example, look at...
Thank you for the information, Marten. As always, it is greatly appreciated.
While I now can see it's possible to use declarative transaction management to use lazy-loaded objects in the view, I...
If I were to do this, the transaction would be read-only, so there wouldn't be any writes to roll back. Will Spring still try to roll back a read-only transaction?
This is not something that I...
I'm learning more about Spring's declarative transaction management, and trying to understand its capabilities and limits.
By utilizing declarative transaction management, is it possible to...
I've replaced my old wizard forms that inherited from AbstractWizardFormController with annotated controllers.
The multi-page functionality can be achieved using one method that returns different...
I could just use the Joda jsp tags to take care of the formatting, but I was hoping for a generalized output method that would work on any field.
Many Joda classes (and some classses from other...
Thanks for the info, Marten. I guessed that I was misunderstanding something.
Is there anything in Spring that does perform conversion for simple c: out display? Or, is there a different display...
You're probably in the wrong forum for this. You're now in the realm of Web MVC. As for what you're looking to do, it's really quite easy. Look no further than the docs:...
I want to set the format that is used to display and read Joda DateTime values. I would prefer for this to be global (I don't want to annotate the format of every DateTime field in my domain model)....
I just recently wrote a custom property editor for a class from the joda time library. It works great in the form that it is binded to, both for entering, and displaying the class data.
Is there...
Is there a reason you aren't using a validator? It seems like this would be the right tool to solve your problem. A validator would allow you to examine input after form submission, and reject if...
I figured out the problem. The error message was not very helpful. The PropertyEditor was successfully binding. The problem was in the Date casts, int the PropertyEditor.
For the benefit of...
You can determine what page is displayed next using the getTargetPage method. A very basic one follows:
protected int getTargetPage(HttpServletRequest request, Object command, Errors errors,...
Thanks for the help, Marten. I revised my initBinder() method according to your advice. I still get the same error, though now I am only getting it once instead of twice. I suppose that is because...
I recently converted my java.util.Date fields to Jodatime DateTimes. My PropertyEditor for Dates worked fine. I am registering the new PropertyEditor in the same way, but I am getting an error:
...
Can you say what kind of errors / problems you are having?
You can see a quick list here: http://www.springsource.com/customers
Those are customers of SpringSource, which you can probably guess are using the Spring Framework. SpringSource also has a...
Thanks for the link. I looked it over and arrived at what I think can work as a solution, which is similar to what you recommended earlier.
I added a method, getGpa(), which calculates and...
Thanks for the tips, Sami. I was familiar with some of your suggestions, but other parts are unfamiliar to me. I'll look into Spring Web Flow, and MultiActionController.
I considered this, but...
Would anyone care to discuss this? I tried the method I described in my first post, and it works. But, even though it works, I'm not sure it's "good" code.
Along the same lines of that question,...
Just a quick note, and you probably caught this, but that code I posted should have had an argument:
newsletterManager.getNewsletterById(int id)
Early morning mistakes :p
Are you getting those newsletters from a database? Whenever I work with a form in which the user selects from a list of variables from a DB (in this case, newsletters), I use only the primary key on...
Ah, alright. I didn't entirely understand what you were trying to do. You'd want something more like this then.
public class SubmissionBackingForm{
private List<DeliveryBean> deliveryList;
...
In your form backing object, all you really need is a constructor and getter for DeliveryBean. Something like:
public class SubmissionBackingForm{
private final DeliveryBean deliveryBean= new...
From the manual:
So, for your complex object, you need to specify the label and value, so that Spring knows how to turn in into html.
xcs is right, you'll need to use write a property editor,...