0 Replies Latest reply on Dec 4, 2008 11:48 AM by mail.micke

    AtRequestParameter default value annotation attribute

    mail.micke

      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