5 Replies Latest reply on Mar 29, 2010 2:51 AM by Chun Shin

    How to programmatically set a required attribute?

    Chun Shin Newbie


      I have an injected property which has a required attribute false.

      private MyDto dto;

      I would like to convert above to like this:

      private MyDto dto = (MyDto)Component.getInstance(MyDto.class);

      How can I set a required attribute programatically?

      Thank you for your help!