You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2008/10/30 09:08:22 UTC
svn commit: r709110 - in /myfaces/tobago/trunk:
core/src/main/java/org/apache/myfaces/tobago/component/
theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/
Author: lofwyr
Date: Thu Oct 30 01:08:22 2008
New Revision: 709110
URL: http://svn.apache.org/viewvc?rev=709110&view=rev
Log:
TOBAGO-606: Layout
* less logging for testing
* prevent InstantiationException while state saving
Added:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/MockUIGridConstraints.java
Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIInputBase.java
myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java
Added: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/MockUIGridConstraints.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/MockUIGridConstraints.java?rev=709110&view=auto
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/MockUIGridConstraints.java (added)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/MockUIGridConstraints.java Thu Oct 30 01:08:22 2008
@@ -0,0 +1,25 @@
+package org.apache.myfaces.tobago.component;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * User: lofwyr
+ * Date: 29.10.2008 22:40:10
+ */
+public final class MockUIGridConstraints extends AbstractUIGridConstraints {
+}
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIInputBase.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIInputBase.java?rev=709110&r1=709109&r2=709110&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIInputBase.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIInputBase.java Thu Oct 30 01:08:22 2008
@@ -52,10 +52,11 @@
// fixme
if (constraints == null) {
- constraints = new AbstractUIGridConstraints(){};
+ constraints = new MockUIGridConstraints();
getFacets().put(Facets.CONSTRAINTS, constraints);
}
return constraints;
}
-// LAYOUT End
+
+ // LAYOUT End
}
Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java?rev=709110&r1=709109&r2=709110&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java (original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java Thu Oct 30 01:08:22 2008
@@ -115,8 +115,8 @@
try {
LayoutContext layoutContext = new LayoutContext(page);
layoutContext.layout();
- } catch (Exception e) {
- LOG.error("", e);
+ } catch (Throwable e) {
+ LOG.info("testing... " + e);
}
// LAYOUT End