You need to sign in to do that
Don't have an account?

Apex component unknown property error
I have the most basic of components and want to use an attribute in a formula. But if i do i get a "Error: Unknown property 'IF(state=='Y', true, false)'"
<apex:component> <apex:attribute name="state" description="The object" type="string" required="true" /> <apex:inputCheckbox value="{!IF(state=='Y', true, false)}" /> </apex:component>
I can use the variable "state" in the visualforce page in a formula (same exact vf cut and pasted into a component) and it works fine
You haven't defined a component controller as of yet, so there's no properties for the component to pull from. The VF page is a different controller context.
<apex:component>
<apex:attribute name="state" description="The object" type="string" required="true" />
{$state}
</apex:component>
It's only when I put it into a formula that I get the error.