Error
common.apex.runtime.impl.ExecutionException: Invalid conversion from runtime type Boolean to
List<BusinessCardRequestControllerExtension.BCRWrapper>
By removing the value from each checkbox would make the table disappear, so what is a substitute for the checkbox value that I have currently?
Visualforce Page
<apex:pageBlockSection title="Step 2: Choose your preferred style and order quantity." collapsible="false" columns="1" id="styleAndQuantitySection">
<script>
colorPageBlock(document.getElementById("{!$Component.styleAndQuantitySection}"), "#4d6f85");
</script>
<apex:outputText value="Please make your selection of style and quantity.
(You may only make ONE selection per request)" style="font-variant:small-caps"></apex:outputText>
<apex:pageBlockTable value="{!wrpObj}" var="c" id="priceTable" rendered="{!Info_In_Wrp.Size!=0}" onRowDblClick="updateRowColor(this)">
<apex:column headerValue="Order Quantity" value="{!c.bcrObj.Order_Quantity__c}" id="orderquantity">
</apex:column>
<apex:column headerValue="Thermal">
<apex:inputCheckbox value="{!wrpObj}" id="thermal" onchange="enableDisable(this);"/>
<apex:outputLabel for="thermal" value="{!c.bcrObj.Thermal__c}">
</apex:outputLabel>
</apex:column>
<apex:column headerValue="Engraved">
<apex:inputCheckbox value="{!wrpObj}" id="engraved" onchange="enableDisable(this);"/>
<apex:outputLabel for="engraved" value="{!c.bcrObj.Engraved__c}">
</apex:outputLabel>
</apex:column>
<apex:column headerValue="Engraved Reorder (no changes)">
<apex:inputCheckbox value="{!wrpObj}" id="engravedreorder" onchange="enableDisable(this);"/>
<apex:outputLabel for="engravedreorder" value="{!c.bcrObj.Engraved_Reorder__c}">
</apex:outputLabel>
</apex:column>
<apex:column headerValue="Braille">
<apex:inputCheckbox value="{!wrpObj}" id="braille" onchange="enableDisable(this);"/>
<apex:outputLabel for="braille" value="{!c.bcrObj.Braille__c}">
</apex:outputLabel>
</apex:column>
<apex:column headerValue="Braille Reorder (no changes)">
<apex:inputCheckbox value="{!wrpObj}" id="braillereorder" onchange="enableDisable(this);"/>
<apex:outputLabel for="braillereorder" value="{!c.bcrObj.Braille_Reorder__c}">
</apex:outputLabel>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlockSection>
Where am I converting a Boolean
to a List
and how can I fix it?
<apex:inputCheckbox value="{!wrpObj}" ...>
. And please stop insisting you have proper syntax. The compiler is not wrong.<inputCheckbox>
tags would have anything to do with rendering. Perhaps you should ask a separate question in that regard.