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