+ Start a Discussion
hkp716hkp716 

Whats this error all about?

Im trying to create a VF Component and it keeps throwing me this error.

 

Error: Unknown property 'MultiSelectComponentController.options'

 

Thanks for the help, 

hkp716

 

Heres my component:

 

<apex:component controller="MultiSelectComponentController">
<apex:attribute name="AvailableList" type="selectOption[]" description="Available List from the Page" assignTo="{!options}" required="true"/>
<apex:attribute name="ChosenList" type="selectOption[]" description="Chosen List from the Page" assignTo="{!selectedOptions}" required="True"/>
<!-- <apex:attribute name="AvailableTitle" type="String" description="Title for Available List" assignTo="{!selectedTitle}"/> -->
<!-- <apex:attribute name="ChosenTitle" type="String" description="Title for Chosen List" assignTo="{!deSelectedTitle}"/> -->

<apex:outputPanel id="panel">
<apex:pageBlockSection columns="4" >
<apex:selectList multiselect="true" size="5" value="{!selected}" >
<apex:selectOptions value="{!options}" />
<apex:actionSupport event="ondblclick" action="{!selecting}" rerender="panel" status="waitingStatus" />
</apex:selectList>
<apex:pageBlockSection columns="1">
<!-- <apex:outputText value="{!selectedTitle}" /> -->
<apex:commandButton reRender="panel" id="select" action="{!selecting}" value=">" status="waitingStatus"/>
<!-- <apex:outputText value="{!delectedTitle}" /> -->
<apex:commandButton reRender="panel" id="deselect" action="{!deselecting}" value="<" status="waitingStatus"/>
</apex:pageBlockSection>
<!-- An action status to show that the operation of moving between the lists is in progress--->
<apex:actionStatus id="waitingStatus" startText="Please wait..." stopText=""/>
<apex:selectList multiselect="true" size="5" value="{!deselected}">
<apex:selectOptions value="{!selectedOptions}"/>
<apex:actionSupport event="ondblclick" action="{!deselecting}" rerender="panel" status="waitingStatus"/>
</apex:selectList>
</apex:pageBlockSection>
</apex:outputPanel>
</apex:component>

 

 

Best Answer chosen by Admin (Salesforce Developers) 
SFFSFF

It's saying you don't have a public property "options" in your controller code. You may or may not have a variable named options, but if you do, it's not public.

All Answers

SFFSFF

It's saying you don't have a public property "options" in your controller code. You may or may not have a variable named options, but if you do, it's not public.

This was selected as the best answer
hkp716hkp716

Yea I figured.

 

Thanks John