1 Reply Latest reply on May 4, 2009 2:30 AM by ztiringer

    Optional @RequestParameter possible

    ralf

      Hey,


      i try to find a way to get a @RequestParameter optional.


      A short example:



      • i have a page, which evaluates a requested parameter

      • this page can be accessed through a parameterized link (which fills the form fields via an action bean)

      • OR

      • this page can be accessed without parameters in the link (so the form fields will not be have a value)



      How I can master this situation within one Action-Bean? Is this possible? What is the right way?
      Start a nested-conversation with a RequestParameter?


      I have the following problem: my Action Bean contains the annotation @RequestParameter ... if this parameter is not present during the call, Seam throws an Exception.


      Any good suggestions/ideas?


      Thanks in advance,


      Ralf