Announcement Announcement Module
Collapse
No announcement yet.
Returning null value from PropertyPathFactoryBean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Returning null value from PropertyPathFactoryBean

    With Spring 2.0 I'm attempting to replace JSF's managed-bean facility with the new Spring scope beans. One of the things I could do with JSF's managed bean/expression facilities is inject a potentially null value. I used such a technique to inject request parameters that may or may not of been submitted with the page. When I attempt to use syntax similar to this:

    <utilroperty-path path="facesContext.externalContext.requestParamete rMap['selectedWidgetId']"/>

    When selectedWidgetId was not submitted with the page as a parameter an exception is thrown because I am not allowed to inject a null value. Is there any other way to do something similar to above? Does being able to create null beans introduce any particular core architectural problem? Such functionality would be very nice in helping to mimic current JSF expression managed bean functionality.

    PropertyPathFactory:186

    Mike

  • #2
    You can raise an improvement on JIRA for this feature.

    Comment

    Working...
    X