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 2009/10/28 10:33:13 UTC
svn commit: r830480 - in
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago:
component/ taglib/component/
Author: lofwyr
Date: Wed Oct 28 09:33:12 2009
New Revision: 830480
URL: http://svn.apache.org/viewvc?rev=830480&view=rev
Log:
naming convensions
Added:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneChoice.java
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneListbox.java
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneRadio.java
- copied, changed from r829789, myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOne.java
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UISelectOneBase.java (contents, props changed)
- copied, changed from r829789, myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOne.java
Removed:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOne.java
Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTagDeclaration.java
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneListboxTagDeclaration.java
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneRadioTagDeclaration.java
Added: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneChoice.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneChoice.java?rev=830480&view=auto
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneChoice.java (added)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneChoice.java Wed Oct 28 09:33:12 2009
@@ -0,0 +1,21 @@
+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.
+ */
+
+public abstract class AbstractUISelectOneChoice extends UISelectOneBase {
+}
Added: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneListbox.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneListbox.java?rev=830480&view=auto
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneListbox.java (added)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneListbox.java Wed Oct 28 09:33:12 2009
@@ -0,0 +1,21 @@
+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.
+ */
+
+public abstract class AbstractUISelectOneListbox extends UISelectOneBase {
+}
\ No newline at end of file
Copied: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneRadio.java (from r829789, myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOne.java)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneRadio.java?p2=myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneRadio.java&p1=myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOne.java&r1=829789&r2=830480&rev=830480&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOne.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOneRadio.java Wed Oct 28 09:33:12 2009
@@ -17,29 +17,5 @@
* limitations under the License.
*/
-import org.apache.myfaces.tobago.layout.LayoutComponent;
-import org.apache.myfaces.tobago.util.MessageFactory;
-
-import javax.faces.application.FacesMessage;
-import javax.faces.context.FacesContext;
-
-public abstract class AbstractUISelectOne extends javax.faces.component.UISelectOne
- implements SupportsMarkup, LayoutComponent {
-
- public static final String MESSAGE_VALUE_REQUIRED = "tobago.SelectOne.MESSAGE_VALUE_REQUIRED";
-
- public void validate(FacesContext facesContext) {
- if (isRequired() && !isReadonly()) {
- Object submittedValue = getSubmittedValue();
- if (submittedValue == null || "".equals(submittedValue)) {
- FacesMessage facesMessage = MessageFactory.createFacesMessage(
- facesContext, MESSAGE_VALUE_REQUIRED, FacesMessage.SEVERITY_ERROR);
- facesContext.addMessage(getClientId(facesContext), facesMessage);
- setValid(false);
- }
- }
- super.validate(facesContext);
- }
-
- public abstract boolean isReadonly();
+public abstract class AbstractUISelectOneRadio extends UISelectOneBase {
}
Copied: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UISelectOneBase.java (from r829789, myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOne.java)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UISelectOneBase.java?p2=myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UISelectOneBase.java&p1=myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOne.java&r1=829789&r2=830480&rev=830480&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUISelectOne.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UISelectOneBase.java Wed Oct 28 09:33:12 2009
@@ -23,7 +23,7 @@
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
-public abstract class AbstractUISelectOne extends javax.faces.component.UISelectOne
+public abstract class UISelectOneBase extends javax.faces.component.UISelectOne
implements SupportsMarkup, LayoutComponent {
public static final String MESSAGE_VALUE_REQUIRED = "tobago.SelectOne.MESSAGE_VALUE_REQUIRED";
Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UISelectOneBase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UISelectOneBase.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTagDeclaration.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTagDeclaration.java?rev=830480&r1=830479&r2=830480&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTagDeclaration.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTagDeclaration.java Wed Oct 28 09:33:12 2009
@@ -48,7 +48,7 @@
@BodyContentDescription(anyTagOf = "(<f:selectItems>|<f:selectItem>|<tc:selectItem>)+ <f:facet>* ")
@UIComponentTag(
uiComponent = "org.apache.myfaces.tobago.component.UISelectOneChoice",
- uiComponentBaseClass = "org.apache.myfaces.tobago.component.AbstractUISelectOne",
+ uiComponentBaseClass = "org.apache.myfaces.tobago.component.AbstractUISelectOneChoice",
rendererType = RendererTypes.SELECT_ONE_CHOICE,
allowedChildComponenents = {
"javax.faces.SelectItem",
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneListboxTagDeclaration.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneListboxTagDeclaration.java?rev=830480&r1=830479&r2=830480&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneListboxTagDeclaration.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneListboxTagDeclaration.java Wed Oct 28 09:33:12 2009
@@ -41,7 +41,7 @@
@BodyContentDescription(anyTagOf = "(<f:selectItems>|<f:selectItem>|<tc:selectItem>)+ <f:facet>* ")
@UIComponentTag(
uiComponent = "org.apache.myfaces.tobago.component.UISelectOneListbox",
- uiComponentBaseClass = "org.apache.myfaces.tobago.component.AbstractUISelectOne",
+ uiComponentBaseClass = "org.apache.myfaces.tobago.component.AbstractUISelectOneListbox",
rendererType = RendererTypes.SELECT_ONE_LISTBOX,
allowedChildComponenents = {
"javax.faces.SelectItem",
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneRadioTagDeclaration.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneRadioTagDeclaration.java?rev=830480&r1=830479&r2=830480&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneRadioTagDeclaration.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneRadioTagDeclaration.java Wed Oct 28 09:33:12 2009
@@ -46,7 +46,7 @@
@BodyContentDescription(anyTagOf = "(<f:selectItems>|<f:selectItem>|<tc:selectItem>)+ <f:facet>* ")
@UIComponentTag(
uiComponent = "org.apache.myfaces.tobago.component.UISelectOneRadio",
- uiComponentBaseClass = "org.apache.myfaces.tobago.component.AbstractUISelectOne",
+ uiComponentBaseClass = "org.apache.myfaces.tobago.component.AbstractUISelectOneRadio",
rendererType = RendererTypes.SELECT_ONE_RADIO,
allowedChildComponenents = {
"javax.faces.SelectItem",