Sure, this is how I use it in Tapestry 3 ...

You need a model somewhere, say in class SomeClass:

public class SomeClass
{
    public static final IPropertySelectionModel theModel =
        new StringPropertySelectionModel(new String[] {"a", "b", "c"});
}

You need an array for the selected list, say a property in your .page file:

    <property-specification name="theList" type="java.util.List" 
persistent="yes"/>

You need to define the component in your .page file:

    <component id="theSelection" type="contrib:MultiplePropertySelection">
        <binding name="model" expression="@[EMAIL PROTECTED]"/>
        <binding name="selectedList" expression="theList"/>
    </component>

And you need to use the component in your .html:

<span jwcid="theSelection"/>

Cheers,
Nick.


Dwi Ardi Irawan wrote:
> :-(
> 
> the problem is, i really don't know how tu use MultiplePropertySelection
> would u give me an example code....

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

Reply via email to