Results 1 to 2 of 2

Thread: Returning null value from PropertyPathFactoryBean

  1. #1

    Default 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. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    You can raise an improvement on JIRA for this feature.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •