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.