0 Replies Latest reply on Dec 4, 2008 11:48 AM by Mikael Andersson

    AtRequestParameter default value annotation attribute

    Mikael Andersson Master

      A common use case for me is to have optional request parameters for which I'd like to have a default/null value. Something like the iBATIS nullValue.


      @RequestParameter(default="#{true}")
      Boolean myOptionalReqParameter;
      



      Perhaps this might even allow me to use a normal boolean instead of a Boolean object.


      I know I could use a xyz.page.xml file, but for simple things such as this I'd rather not.


      Is this something which you think is a good idea?


      Cheers,
      Micke