コード例 #1
0
 public void persistFieldChange(String fieldName, Object newValue) {
   try {
     page.persistFieldChange(this, fieldName, newValue);
   } catch (Exception ex) {
     throw new TapestryException(
         StructureMessages.fieldPersistFailure(getCompleteId(), fieldName, ex), getLocation(), ex);
   }
 }
コード例 #2
0
  public Object getRenderVariable(String name) {
    Map<String, Object> variablesMap = getRenderVariables(false);

    Object result = InternalUtils.get(variablesMap, name);

    if (result == null) {
      throw new IllegalArgumentException(
          StructureMessages.missingRenderVariable(
              getCompleteId(), name, variablesMap == null ? null : variablesMap.keySet()));
    }

    return result;
  }