myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r949580 - in /myfaces/tobago/branches/tobago-1.0.x: core/src/main/java/org/apache/myfaces/tobago/component/ core/src/main/java/org/apache/myfaces/tobago/renderkit/html/ example/test/src/main/java/org/apache/myfaces/tobago/example/test/ exam...
Date Sun, 30 May 2010 21:17:41 GMT
Author: bommel
Date: Sun May 30 21:17:40 2010
New Revision: 949580

URL: http://svn.apache.org/viewvc?rev=949580&view=rev
Log:
checkstyle

Modified:
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/UISelectItem.java
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java
    myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/java/org/apache/myfaces/tobago/example/test/SelectItemModel.java
    myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/sheet/sheet-large.xhtml
    myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/xslt/facelet2jsp.xsl

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java?rev=949580&r1=949579&r2=949580&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java
Sun May 30 21:17:40 2010
@@ -1411,7 +1411,7 @@ public class ComponentUtil {
       if (renderer != null) {
         if (component instanceof UISelectMany) {
           final Object converted = renderer.getConvertedValue(facesContext, component, new
String[]{stringValue});
-          return ((Object[])converted)[0];
+          return ((Object[]) converted)[0];
         } else {
           return renderer.getConvertedValue(facesContext, component, stringValue);
         }

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/UISelectItem.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/UISelectItem.java?rev=949580&r1=949579&r2=949580&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/UISelectItem.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/UISelectItem.java
Sun May 30 21:17:40 2010
@@ -55,7 +55,7 @@ public class UISelectItem extends javax.
     if (itemValueLiteral) {
       // this is to make it possible to use values directly in the page.
       itemValue = ComponentUtil.getConvertedValue(
-          FacesContext.getCurrentInstance(), (javax.faces.component.UIInput) getParent(),
(String)itemValue);
+          FacesContext.getCurrentInstance(), (javax.faces.component.UIInput) getParent(),
(String) itemValue);
     }
     return itemValue;
   }

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java?rev=949580&r1=949579&r2=949580&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java
Sun May 30 21:17:40 2010
@@ -621,7 +621,7 @@ public final class HtmlRendererUtil {
         Object itemValue = item.getValue();
         // when using selectItem tag with a literal value: use the converted value
         if (itemValue instanceof String && values != null && values.length
> 0 && !(values[0] instanceof String)) {
-          itemValue = ComponentUtil.getConvertedValue(facesContext, component, (String)itemValue);
+          itemValue = ComponentUtil.getConvertedValue(facesContext, component, (String) itemValue);
         }
         String formattedValue = RenderUtil.getFormattedValue(facesContext, component, itemValue);
         writer.writeAttribute(HtmlAttributes.VALUE, formattedValue, true);

Modified: myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/java/org/apache/myfaces/tobago/example/test/SelectItemModel.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/java/org/apache/myfaces/tobago/example/test/SelectItemModel.java?rev=949580&r1=949579&r2=949580&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/java/org/apache/myfaces/tobago/example/test/SelectItemModel.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/java/org/apache/myfaces/tobago/example/test/SelectItemModel.java
Sun May 30 21:17:40 2010
@@ -1,5 +1,22 @@
 package org.apache.myfaces.tobago.example.test;
 
+/*
+ * 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.
+ */
+
 import java.util.Currency;
 
 public class SelectItemModel {

Modified: myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/sheet/sheet-large.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/sheet/sheet-large.xhtml?rev=949580&r1=949579&r2=949580&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/sheet/sheet-large.xhtml
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/sheet/sheet-large.xhtml
Sun May 30 21:17:40 2010
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
 
 <f:view
     xmlns:jsp="http://java.sun.com/JSP/Page"

Modified: myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/xslt/facelet2jsp.xsl
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/xslt/facelet2jsp.xsl?rev=949580&r1=949579&r2=949580&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/xslt/facelet2jsp.xsl (original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/xslt/facelet2jsp.xsl Sun May
30 21:17:40 2010
@@ -1,7 +1,22 @@
 <?xml version="1.0" encoding="UTF-8"?>
-
 <!--
-  This code is experimenal and only for use in this example
+ * 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.
+-->
+<!--
+  This code is experimental and only for use in this example
 -->
 
 <xsl:stylesheet version="1.0"



Mime
View raw message