Hello,
I've tried a variety of ways to get this to work and it always fails. This:
<if test="domain.vendor==@db.Domain@VendorEnum.JBOSS423_15" ..
causes this:
Caused by:...
Type: Posts; User: jmbaker; Keyword(s):
Hello,
I've tried a variety of ways to get this to work and it always fails. This:
<if test="domain.vendor==@db.Domain@VendorEnum.JBOSS423_15" ..
causes this:
Caused by:...
Hi,
I'd prefer to address enums directly; I wonder if InverseFalcon found any issue with the version of OGNL I was using?
John
Hello,
Well the jars are pulled down via maven:
<dependency>
<groupId>org.springframework.webflow</groupId>
<artifactId>org.springframework.webflow</artifactId>
...
Hello,
Thanks for the feedback. Yes, it is a different code fragment and it was missing an =. It should work but still doesn't:
Caused by: java.lang.IllegalArgumentException: invalid...
Hi,
Thanks for your feedback. I tried this:
<decision-state id="stage3">
<if test="domain.vendor=='JBOSS423_15' or domain.vendor='JBOSS423_16'" then="stage3-jboss"...
Hi,
It appears enums may be more broken. If I try to call getCode on the Enum (a method I added, and it works fine through normal JSTL), then I get this exception:
...
Hi,
That doesn't work - we're now comparing an enum with a String.
Any other ideas?
John
Hello,
Could someone help me with a problem concerning parameters? I would like Webflow to convert some parameters into ints before they are used in an evaluate, and I only want this to occur in...
Hello,
If I have:
public class Domain
{
public VendorEnum getVendor() { .. }
}
where VendorEnum has the values VendorEnum.SUN and VendorEnum.ORACLE, and an instance of Domain exists...
Hello,
Consider the following:
<on-render>
<set name="flashScope.sdClientBean" value="changeService.sdClientBean"/>
</on-render>
Does this leave the value on the request with...
Got it!
Nothing wrong with replacing ControllerClassNameHandlerMapping for DefaultAnnotationHandlerMapping, however my code was confusing Spring.
I had:
@Controller
public class...
Take the above, enable the DefaultAnnotationHandlerMapping, and exclude scanning of controllers;
<context:component-scan base-package="com.blah">
<context:exclude-filter type="annotation"...
Ok, I can't take anymore :-) I'd be very grateful if you could tell me how to modify the following to use the DefaultAnnotationHandlerMapping so I can implement interceptors. You'll note I've added...
Hi,
Well i wasn't using a DefaultAnnotationHandlerMapping - I defined ControllerClassNameHandlerMapping. I've replaced Controller.. for Default... and now I'm seeing this exception:
Cannot map...
Sorry, I thought it best to move a totally non-Webflow related question to this forum...
Hello,
I'd like to use an interceptor with an annotated method:
@RequestMapping(method = RequestMethod.GET, value="/home/home.do")
public String home(HttpServletRequest request,...
While completely non-Webflow, there appears to be a problem with AnnotationMethodHandlerAdapter. It does not implement HandlerInterceptor, so annotated methods can not have an interceptor...
Take out the <script> and <style> tags that load dojo, something like this:
<script type="text/javascript" src="<c:url value="/resources/dojo/dojo.js" />" djConfig="parseOnLoad: true">...
Hi,
Thanks for the feedback. I've written an interceptor, but how do I get it executed after the page has been rendered, as opposed to after the controller method has completed. I'm using the...
Hello,
Thanks for the feedback. I completely agree that JDBC stuff should be handled by the Spring code, and perhaps I should have mentioned that this is a bespoke API where by the client has to...
Hello,
<on-render> allows us to evaluate actions as a view is rendered. How is something executed when the view has been rendered? Such as, returning a database connection to a pool?
John
Hello,
I don't think we should be too worried about SWF obtaining elements of a programming language, because that's essentially what it's replacing. The ability to set a variable with a string,...
However, in reality, you are programming in XML. You are taking the flow from code, simplifying it writing XML - the kind of thing someone with limited programming experience can do with some...
How can I do this:
<set name="myObject.attribute" value="Some value" />
And further to the post above, I guess evaluate does have a use if one just wants to execute a method, such as writing...
I've not managed to cancel a transition but I'm using result, and I'd not realised this was how evaluate is supposed to work. If I'm in a transition, I expect that transition to complete or return...