views:

42

answers:

1

I can't figure out why this isn't working:

<apex:repeat value="{!MyContacts}" var="c" >
    <c:ContactRowComponent contactLastName="{!c.LastName}"/>  
</apex:repeat>

(where on the main controller MyContacts returns an array of Contact objects, and on the component contactLastName is defined as a String attribute)

This gives me error:

Literal value is required for attribute contactLastName in <c:ContactRowComponent> at line 25 column 27

It seems to be saying that a literal value is required and not a formula? Is what I am trying to do impossible, or am I doing it wrong?

A: 

Can you post the code for your component and controller?

ehartye