• harvey
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Is two-way binding supported with a <apex:component >?  The code below shows my unsuccessful attempt to two-way bind my custom component back to my controller on the page.  Please advise,
 
-Tom
 
 
 
Code:
 
numScroll:
<apex:component >
<apex:attribute name="value" description="binding value for the component." type="String" required="true"/>
<apex:inputText value="{!value}" size="4"/>
</apex:component>


<apex:page controller="RequestWizard_Controller" action="{!init}">
...
    <apex:pageBlockTable value="{!SearchResults}" var="sr" width="100%" rendered="{!NOT(ISNULL(SearchResults))}">
        <apex:column ><c:numScroll value="{!sr.quantity}" ></apex:column> 
        <apex:column headerValue="UOM" value="{!sr.catalogItem.Unit_of_Measure__c}"/>
        <apex:column headerValue="Code" value="{!sr.catalogItem.Name}"/>
        <apex:column headerValue="Name" value="{!sr.catalogItem.Catalog_Item_Name__c}"/>
        <apex:column headerValue="Supplier" value="{!sr.catalogItem.Catalog__r.Fulfillment_Supplier__c}"/>
        <apex:column headerValue="Catalog" value="{!sr.catalogItem.Catalog__r.Name}"/>
        <apex:column headerValue="Limit" value="{!sr.catalogItem.Quantity_Limit_Max__c}"/>
    </apex:pageBlockTable> 
...

</apex:page>

 
  • August 27, 2008
  • Like
  • 0