You need to sign in to do that
Don't have an account?
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 {!product.name} 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>
<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:actionSupport>
</apex:selectList>
</apex:column>
<apex:column headerValue="Sub Brands" >
<apex:selectList id="subBrand" size="1" value="{!product.subBrand__c}">
<apex:selectOptions value="{!subBrands}"></apex:selectOptions>
</apex:selectList>
</apex:column>
</apex:pageBlockTable>
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.