3 Replies Latest reply on Jul 9, 2007 5:26 PM by jazir1979

    @In(required = false, value =

    jazir1979

      Hi all,

      We have some code that uses the following:

       @In(required = false, value = "#{uiComponent['XXX']}")
      


      Some methods in our bean are called when component XXX does not exist in the ViewRoot, which is why we use required = false.

      However, this fails now in Seam 2, because the Sun RI throws an IllegalArgumentException from UIComponentBase:588. I imagine it worked with MyFaces because it returned null for invalid components rather than throwing exceptions.

      I think Seam should catch this exception if doing uiComponent injection and required is set to false.

      thanks,
      Daniel.