public void setLocale(Locale value) { if (_locale != null) throw new ApplicationRuntimeException(Tapestry .getMessage("AbstractPage.attempt-to-change-locale")); _locale = value; }
/** * Returns a string identifying the namespace, for use in error messages. * I.e., "Application namespace" or "namespace 'foo'". */ public String getNamespaceId() { if (_frameworkNamespace) return Tapestry.getMessage("Namespace.framework-namespace"); if (_applicationNamespace) return Tapestry.getMessage("Namespace.application-namespace"); return Tapestry.format("Namespace.nested-namespace", getExtendedId()); }
public void setId(String value) { if (_id != null) throw new ApplicationRuntimeException(Tapestry.getMessage("AbstractComponent.attempt-to-change-component-id")); _id = value; }
public void setPage(IPage value) { if (_page != null) throw new ApplicationRuntimeException(Tapestry.getMessage("AbstractComponent.attempt-to-change-page")); _page = value; }
public void setLocale(Locale value) { if (_locale != null) throw new ApplicationRuntimeException(Tapestry .getMessage("AbstractPage.attempt-to-change-locale")); _locale = value; }
/** @since 3.0 * */ public void setPageName(String pageName) { if (_pageName != null) throw new ApplicationRuntimeException(Tapestry .getMessage("AbstractPage.attempt-to-change-name")); _pageName = pageName; }
/** * Creates an exception indicating the binding value is null. * * @since 3.0 */ public static BindingException createNullBindingException(IBinding binding) { return new BindingException(getMessage("null-value-for-binding"), binding); }
/** @since 3.0 * */ public void setPageName(String pageName) { if (_pageName != null) throw new ApplicationRuntimeException(Tapestry .getMessage("AbstractPage.attempt-to-change-name")); _pageName = pageName; }
/** * Creates an exception indicating the binding value is null. * * @since 3.0 */ public static BindingException createNullBindingException(IBinding binding) { return new BindingException(getMessage("null-value-for-binding"), binding); }
/** * Returns a string identifying the namespace, for use in error messages. * I.e., "Application namespace" or "namespace 'foo'". */ public String getNamespaceId() { if (_frameworkNamespace) return Tapestry.getMessage("Namespace.framework-namespace"); if (_applicationNamespace) return Tapestry.getMessage("Namespace.application-namespace"); return Tapestry.format("Namespace.nested-namespace", getExtendedId()); }
/** * {@inheritDoc} */ public void setTemplateTagName(String tag) { if (_templateTagName != null) throw new ApplicationRuntimeException(Tapestry.getMessage("AbstractComponent.attempt-to-change-template-tag")); _templateTagName = tag; }
public void setId(String value) { if (_id != null) throw new ApplicationRuntimeException(Tapestry.getMessage("AbstractComponent.attempt-to-change-component-id")); _id = value; }
/** * {@inheritDoc} */ public void setTemplateTagName(String tag) { if (_templateTagName != null) throw new ApplicationRuntimeException(Tapestry.getMessage("AbstractComponent.attempt-to-change-template-tag")); _templateTagName = tag; }
public void setPage(IPage value) { if (_page != null) throw new ApplicationRuntimeException(Tapestry.getMessage("AbstractComponent.attempt-to-change-page")); _page = value; }
public Object unsqueeze(DataSqueezer squeezer, String string) { int separator = string.indexOf(SEPARATOR); if (separator < 0) throw new ApplicationRuntimeException(Tapestry .getMessage("ComponentAddressAdaptor.no-separator")); String pageName = string.substring(1, separator); String idPath = string.substring(separator + 1); if (idPath.equals("")) idPath = null; return new ComponentAddress(pageName, idPath); }
public Object unsqueeze(DataSqueezer squeezer, String string) { int separator = string.indexOf(SEPARATOR); if (separator < 0) throw new ApplicationRuntimeException(Tapestry .getMessage("ComponentAddressAdaptor.no-separator")); String pageName = string.substring(1, separator); String idPath = string.substring(separator + 1); if (idPath.equals("")) idPath = null; return new ComponentAddress(pageName, idPath); }
public void setContainer(IComponent value) { checkActiveLock(); if (_container != null) throw new ApplicationRuntimeException(Tapestry .getMessage("AbstractComponent.attempt-to-change-container")); _container = value; }
public void setContainer(IComponent value) { checkActiveLock(); if (_container != null) throw new ApplicationRuntimeException(Tapestry .getMessage("AbstractComponent.attempt-to-change-container")); _container = value; }
/** * @see org.apache.tapestry.AbstractComponent#prepareForRender(org.apache.tapestry.IRequestCycle) */ protected void prepareForRender(IRequestCycle cycle) { super.prepareForRender(cycle); if (cycle.getAttribute(ATTRIBUTE_NAME) != null) throw new ApplicationRuntimeException(Tapestry.getMessage("Select.may-not-nest"), this, null, null); cycle.setAttribute(ATTRIBUTE_NAME, this); _rendering = true; _nextOptionId = 0; }
/** * @see org.apache.tapestry.AbstractComponent#prepareForRender(org.apache.tapestry.IRequestCycle) */ protected void prepareForRender(IRequestCycle cycle) { super.prepareForRender(cycle); if (cycle.getAttribute(ATTRIBUTE_NAME) != null) throw new ApplicationRuntimeException(Tapestry.getMessage("Select.may-not-nest"), this, null, null); cycle.setAttribute(ATTRIBUTE_NAME, this); _rendering = true; _nextOptionId = 0; }