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

pageBlockTable param value being passed as blank.

Hi ,

I am trying to pass a column value entered in a particular row of a pageBlockTable to the VF page controller . But it is being passed to the controller as blank .
One more interesting thing I had observed is if I pass a string say "testing123" it is passed correctly whereas I am facing issues passing column value like {!} as in the below code.
Can someone help me with this please.

<apex:pageBlockTable title="Product Details" value="{!ProductsDetails}" var="product" id="addProducts">
    <apex:column headerValue="Name">
                <apex:inputField value="{!product.Name}" id="nId"/>
    <apex:column headerValue="State" >
                <apex:selectList id="state"  value="{!product.state__c}" size="1" >
                <apex:selectOptions value="{!states}"></apex:selectOptions>
                <apex:actionSupport event="onblur" action="{!resetProductsList}" rerender="subBrand">
                    <apex:param name="prodName" assignTo="{!selectedName}" value="{!product.Name}"/>
    <apex:column headerValue="Sub Brands" >
                <apex:selectList id="subBrand" size="1" value="{!product.subBrand__c}">
                <apex:selectOptions value="{!subBrands}"></apex:selectOptions>



Could be an issue with security. Does the running user have edit access to products?


If that is not the issue, looking at the controller might help us debug it.