function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DuTomDuTom 

apex:Component support two-way binding?

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>

 
nhermentnherment

Bumping up this 2.5 year old thread.

 

That's an interesting question to which I'm trying to find an answer :)