static String unableToCreateTempFile() { return MESSAGES.get("unable-to-create-temp-file"); }
static String unexpectedServiceProxyProvider() { return MESSAGES.get("unexpected-service-proxy-provider"); }
static String encloseUploadInForm() { return MESSAGES.get("enclose-upload-in-form"); }
static String overlappingServiceProxyProviders() { return MESSAGES.get("overlapping-service-proxy-providers"); }
static String encloseUploadInForm() { return MESSAGES.get("enclose-upload-in-form"); }
static String overlappingServiceProxyProviders() { return MESSAGES.get("overlapping-service-proxy-providers"); }
static String persistChangeBeforeLoadComplete() { return MESSAGES.get("persist-change-before-load-complete"); }
static String unableToCreateTempFile() { return MESSAGES.get("unable-to-create-temp-file"); }
public String getStatusMessage() { return messages.get("app-catalog-status"); }
public String getInjectedMessage() { return messages.get("via-inject"); }
protected final void train_get(Messages messages, String key, String message) { expect(messages.get(key)).andReturn(message).atLeastOnce(); }
protected final void train_get(Messages messages, String key, String message) { expect(messages.get(key)).andReturn(message).atLeastOnce(); }
public Binding newBinding(String description, ComponentResources container, ComponentResources component, String expression, Location location) { String messageValue = container.getMessages().get(expression); return new LiteralBinding(location, description, messageValue); } }
void beginRender(MarkupWriter writer) { writer.element("span", "id", getClientId()); if (value != null && value.length() > 0) writer.write(value); else writer.writeRaw(messages.get("empty")); }
StreamResponse onAction(EventContext eventContext) throws UnsupportedEncodingException { String valueText = request.getParameter("value"); contextArray = Arrays.copyOf(eventContext.toStrings(), eventContext.getCount() + 1); contextArray[contextArray.length - 1] = valueText; resources.triggerEvent(SAVE_EVENT, contextArray, null); if (valueText == null || valueText.length() == 0) valueText = messages.get("empty"); return new TextStreamResponse("text/html", valueText); }
Object defaultBlankLabel() { Messages containerMessages = resources.getContainerMessages(); String key = resources.getId() + "-blanklabel"; if (containerMessages.contains(key)) return containerMessages.get(key); return null; }
void setupRender() { FormSupport existing = environment.peek(FormSupport.class); if (existing != null) { throw new TapestryException(messages.get("core-form-nesting-not-allowed"), existing, null); } if (clientValidation == ClientValidation.BLUR) { deprecationWarning.componentParameterValue(resources, "clientValidation", clientValidation, "BLUR is no longer supported, starting in 5.4. Validation will occur as with SUBMIT."); } }
/** * Looks for a label within the messages based on the id. If found, it is used, otherwise the name is converted to a * user presentable form. */ public static String defaultLabel(String id, Messages messages, String propertyExpression) { String key = id + "-label"; if (messages.contains(key)) return messages.get(key); return toUserPresentable(extractIdFromPropertyExpression(InternalCommonsUtils.lastTerm(propertyExpression))); }
@Override protected void processSubmission(String controlName) { String userValue = request.getParameter(controlName); validationTracker.recordInput(this, userValue); if (TapestryInternalUtils.isEqual(image.getCaptchaText(), userValue)) return; validationTracker.recordError(this, messages.get("tapestry-incorrect-captcha")); }
public String defaultLabel(ComponentResources resources) { assert resources != null; String componentId = resources.getId(); String key = componentId + "-label"; Messages containerMessages = resources.getContainerResources().getMessages(); if (containerMessages.contains(key)) return containerMessages.get(key); return TapestryInternalUtils.toUserPresentable(componentId); }