title: Unable to bind Component attribute with controller
body: <p>I am trying to develop a visualforce custom component which takes an attribute from a visual force page. I need to access that attribute in controller's Constructor so that i can brings some records from database and i need to display those records in the Component. But problem is that i am not getting Attribute value in Controller.</p>
  
  <p>See the below code to understand the problem clearly..</p>
  
  <p>Controller :</p>
  
  <pre><code>public with sharing class AdditionalQuestionController {
      public String CRFType {get;set;}
      public AdditionalQuestionController () {
          system.debug('CRFType : '+CRFType);
          List&lt;AdditoinalQuestion__c&gt; lstAddQues = [Select AddQues__c from AdditoinalQuestion__c wehre CRFType = :CRFType];
          system.debug('lstAddQue : '+lstAddQue);
      }
  }
  </code></pre>
  
  <p>Component :</p>
  
  <pre><code>&lt;apex:component controller="AdditionalQuestionController" allowDML="true"&gt;
      &lt;apex:attribute name="CRFType" description="This is CRF Type."  type="String" required="true" assignTo="{!CRFType}" /&gt;
          &lt;apex:repeat value="{!lstAddQue}" var="que"&gt;
              {!que}&lt;br /&gt;
          &lt;/apex:repeat&gt;
  &lt;/apex:component&gt;
  </code></pre>
  
  <p>VisualForce page :</p>
  
  <pre><code> &lt;apex:page &gt;
      &lt;c:AdditionalQuestionComponent CRFType="STE" /&gt;
  &lt;/apex:page&gt;
  </code></pre>
  
  <p>Thanks,
      Vivek</p>