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 |
| protected static MessageFormatter _formatter = new MessageFormatter(BindingMessages.class, |
28 |
| "BindingStrings"); |
29 |
| |
30 |
1
| static String convertObjectError(IBinding binding, Throwable cause)
|
31 |
| { |
32 |
1
| return _formatter.format("convert-object-error", binding.getDescription(), cause);
|
33 |
| } |
34 |
| |
35 |
2
| static String readOnlyBinding(IBinding binding)
|
36 |
| { |
37 |
2
| return _formatter.format("read-only-binding", binding.getDescription(), binding);
|
38 |
| } |
39 |
| |
40 |
1
| static String missingAsset(IComponent component, String assetName)
|
41 |
| { |
42 |
1
| return _formatter.format("missing-asset", component.getExtendedId(), assetName);
|
43 |
| } |
44 |
| } |