| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
package org.apache.tapestry5.corelib.internal; |
| 16 | |
|
| 17 | |
import org.apache.tapestry5.ioc.Messages; |
| 18 | |
import org.apache.tapestry5.ioc.internal.util.MessagesImpl; |
| 19 | |
import org.apache.tapestry5.ioc.services.ClassFabUtils; |
| 20 | |
|
| 21 | 0 | public final class InternalMessages |
| 22 | |
{ |
| 23 | 2 | private static final Messages MESSAGES = MessagesImpl.forClass(InternalMessages.class); |
| 24 | |
|
| 25 | |
public static String componentActionNotSerializable(String componentId, Throwable cause) |
| 26 | |
{ |
| 27 | 0 | return MESSAGES.format("component-action-not-serializable", componentId, cause); |
| 28 | |
} |
| 29 | |
|
| 30 | |
public static String encloseErrorsInForm() |
| 31 | |
{ |
| 32 | 0 | return MESSAGES.get("enclose-errors-in-form"); |
| 33 | |
} |
| 34 | |
|
| 35 | |
public static String failureInstantiatingObject(Class objectType, String componentId, Throwable cause) |
| 36 | |
{ |
| 37 | 2 | return MESSAGES.format("failure-instantitating-object", ClassFabUtils |
| 38 | |
.toJavaClassName(objectType), componentId, cause); |
| 39 | |
} |
| 40 | |
|
| 41 | |
public static String conflictingEncodingType(String existing, String conflicting) |
| 42 | |
{ |
| 43 | 2 | return MESSAGES.format("conflicting-encoding-type", existing, conflicting); |
| 44 | |
} |
| 45 | |
|
| 46 | |
public static String toClientShouldReturnString() |
| 47 | |
{ |
| 48 | 0 | return MESSAGES.format("to-client-should-return-string"); |
| 49 | |
} |
| 50 | |
|
| 51 | |
public static String formFieldOutsideForm(String fieldName) |
| 52 | |
{ |
| 53 | 2 | return MESSAGES.format("form-field-outside-form", fieldName); |
| 54 | |
} |
| 55 | |
} |