|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| package org.apache.tapestry.binding; |
|
16 |
| |
|
17 |
| import org.apache.hivemind.impl.MessageFormatter; |
|
18 |
| import org.apache.tapestry.IBinding; |
|
19 |
| import org.apache.tapestry.IComponent; |
|
20 |
| |
|
21 |
| |
|
22 |
| |
|
23 |
| |
|
24 |
| |
|
25 |
| class BindingMessages |
|
26 |
| { |
|
27 |
| private final static MessageFormatter _formatter = new MessageFormatter(BindingMessages.class); |
|
28 |
| |
|
29 |
3
| static String convertObjectError(IBinding binding, Throwable cause)
|
|
30 |
| { |
|
31 |
3
| return _formatter.format("convert-object-error", binding.getDescription(), cause);
|
|
32 |
| } |
|
33 |
| |
|
34 |
6
| static String readOnlyBinding(IBinding binding)
|
|
35 |
| { |
|
36 |
6
| return _formatter.format("read-only-binding", binding.getDescription(), binding);
|
|
37 |
| } |
|
38 |
| |
|
39 |
3
| static String missingAsset(IComponent component, String assetName)
|
|
40 |
| { |
|
41 |
3
| return _formatter.format("missing-asset", component.getExtendedId(), assetName);
|
|
42 |
| } |
|
43 |
| |
|
44 |
3
| static String listenerMethodFailure(IComponent component, String methodName, Throwable cause)
|
|
45 |
| { |
|
46 |
3
| return _formatter.format(
|
|
47 |
| "listener-method-failure", |
|
48 |
| methodName, |
|
49 |
| component.getExtendedId(), |
|
50 |
| cause); |
|
51 |
| } |
|
52 |
| } |