Well, I've tried the following:

<component id="inputPersons" type="contrib:Palette">
        <binding name="selected" value="persons"/>
        <binding name="model" value="modelSource.getPersonModel(null, 'true')"/>
        <binding name="selectedTitleBlock" value="selectedTitleBlock"/>
        <binding name="availableTitleBlock" value="availableTitleBlock"/>
        <binding name="selectImage" value="selectImage"/>
        <binding name="deselectImage" value="deselectImage"/>
        <binding name="validators" value="validators:required"/>
</component>

and in the page class:

@Component(type = "Insert", bindings = { "value=message:selected" })
public abstract Insert getSelectedTitleBlock();
        
@Component(type = "Insert", bindings = { "value=message:available" })
public abstract Insert getAvailableTitleBlock();
        
@Asset("/images/select.gif")
public abstract IAsset getSelectImage();

@Asset("/images/deselect.gif")
public abstract IAsset getDeselectImage();

But this doesn't work... :(
Any ideas?

On 26. Mai 2006 - 12:17:26, Andreas Bulling wrote:
| Hi folks,
| 
| after some time of silence I have a new problem/question:
| I want to use contrib:Palette and replace "selectedTitleBlock",
| "availableTitleBlock" and the image assets. Do I really
| have to provide for example a getSelectedTitleBlock() method
| in my page class which returns a custom Block component?
| Doesn't look clean to me if that's the case...
| 
| Thanks in advance,
|   Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to