1 | |
package org.apache.tapestry.binding; |
2 | |
|
3 | |
import org.apache.hivemind.Location; |
4 | |
import org.apache.tapestry.IBinding; |
5 | |
import org.apache.tapestry.IComponent; |
6 | |
|
7 | |
import java.util.List; |
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | 0 | public class ClientIdListBindingFactory extends AbstractBindingFactory { |
13 | |
|
14 | |
public IBinding createBinding(IComponent root, String bindingDescription, String expression, Location location) |
15 | |
{ |
16 | |
|
17 | 0 | List ids = (List) getValueConverter().coerceValue(expression, List.class); |
18 | 0 | String[] clientIds = (String[]) ids.toArray(new String[ids.size()]); |
19 | |
|
20 | 0 | return new ClientIdListBinding(bindingDescription, getValueConverter(), location, root, clientIds); |
21 | |
} |
22 | |
} |