• Rupsa
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

Has any body worked on dynamc apex custom components.  Below is my code, but its not seem to be working.

 

in VF -- 

<apex:dynamicComponent componentValue="{!headerComponent}"/>

 

In controller -- 

public transient ApexPages.Component headerComponent { get; set; }

      public ObjectLayoutDragDrop_Controller() {
      Type t = Type.forName('Component.c.ContactComponent');
      if(t != null) {
             this.headerComponent = (ApexPages.Component)t.newInstance();
      }
}

  • January 17, 2013
  • Like
  • 0