The best way is to have a setter for "shipping calculator" in your "order" object, then set that from your application context definition file.
Type: Posts; User: wiggles; Keyword(s):
The best way is to have a setter for "shipping calculator" in your "order" object, then set that from your application context definition file.
Yea, none of those combinations seem to do it either. :(
And use a tag library. If you don't you'll wish you did after you do it about a million times by hand. The Jakarta one is okay, but a bit dated. It's pretty easy to write your own. I just wrote one...
Here's my messages.properties in WEB-INF/classes:
typeMismatch=Invalid date.
monkeyMessage=You are a giant monkey!
Here's my app context:
Oh, okay. I saw your article on TheServerSide and thought it was already done. :)
However, I'm using a build from this morning and I can't get anything to work. I didn't get too deep into the...
I noticed that you've done some work with this. Is it complete, because I'm having some trouble getting it to work.
I think you are confusing the HttpServletRequest with the WebFlow RequestContext. WebFlow binds parameters from the HttpServletRequest, not attributes fromt the RequestContext.
I like that syntax a lot. Does <input name="" value="" as=""/> make sense? If you have a value, why do you need a name?
I didn't know that requests could overlap flows. Very good to know.
Ahh, okay, I was looking at an older compile before that was available. It's fixed now.
Are you talking about that subflow-state syntax in addition to specifying parameters in the subflow itself? Because you need to specify the local key, as well as the foreign key to map it to for each...
Put setBindOnNewForm(true) in your constructor. Then all your request parameters will be bound to your command object, but only after it gets it from FormBackingObject, so you'll have to fill in the...
SimpleFormController is a singleton, so it wouldn't make any sense to use it that way unless did pooling or something.
Do you have a resolver in the application context?
I moved everything into a listener. I like this a lot better, thanks for the suggestion.
Done and done.
I was wondering if there was talk of using xml for sub-flow attribute mapping rather then full-blown classes? Maybe something like:
<webflow id="mySubflow" start-state="setupForm">
<in-param...
What would be the benefit of throwing an EnterStateVetoException? It would make the code a lot simpler, but wouldn't it also mean that the user would have to map that excpetion to either an access...
EDIT: There's been a redesign; I'm now using a listener.
I came up with a way to integrate Acegi role-based permissions into WebFlow. Here's an example:
<bean id="flowListener"...
Thank you. Worked like a charm.
I'm trying to upgrade to Acegi 0.8.2, but I keep getting this classloader exception:
java.lang.SecurityException: class "net.sf.acegisecurity.UserDetails$$FastClassByCGLIB$$79f8a924"'s signer...
I like that a lot. Not defining a bindAndValidate state for every view is going to be nice. When is it expected to "ship"?
Are you suggesting that I create a seperate UserDetails class for Acegi, then use that to fetch my User class? That seems overly complicated, and is essentially what I'm doing now anyway, except with...
This has been giving me problems for months now, and I'm thinking that there has to be a recommended way to do this. The problem is that, because my UserDetails is managed by Hibernate, it needs to...
Great! Thanks again.
Sorry about all the recent threads, I think after this speed bump I should be good to go.
Anyway, the last thing I need to do to make flows totally functional is to secure them. My first thought...