You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2008/02/06 01:46:02 UTC
svn commit: r618842 [1/3] - in /myfaces/tomahawk/branches/1_2_0/core: ./
src/main/java-templates/org/apache/myfaces/component/html/ext/
src/main/java-templates/org/apache/myfaces/custom/buffer/
src/main/java-templates/org/apache/myfaces/custom/checkbox...
Author: lu4242
Date: Tue Feb 5 16:45:49 2008
New Revision: 618842
URL: http://svn.apache.org/viewvc?rev=618842&view=rev
Log:
Component generation using abstract base classes instead templates
Added:
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandButton.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandLink.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlGraphicImage.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputHidden.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputSecret.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputText.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputTextarea.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessage.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessages.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputLabel.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputText.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGrid.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGroup.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectBooleanCheckbox.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyCheckbox.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyListbox.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyMenu.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneListbox.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneMenu.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneRadio.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/buffer/AbstractBuffer.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/checkbox/AbstractHtmlCheckbox.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/collapsiblepanel/AbstractHtmlCollapsiblePanel.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/column/AbstractHtmlSimpleColumn.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/datalist/AbstractHtmlDataList.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/div/AbstractDiv.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/fileupload/AbstractHtmlInputFileUpload.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/htmlTag/AbstractHtmlTag.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/layout/AbstractHtmlPanelLayout.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/navigation/AbstractHtmlCommandNavigation.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/navigation/AbstractHtmlPanelNavigation.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/navmenu/AbstractUINavigationMenuItem.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/navmenu/htmlnavmenu/AbstractHtmlCommandNavigationItem.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/navmenu/htmlnavmenu/AbstractHtmlPanelNavigationMenu.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/navmenu/jscookmenu/AbstractHtmlCommandJSCookMenu.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/navmenu/jscookmenu/_MethodBindingToMethodExpression.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/navmenu/jscookmenu/_MethodExpressionToMethodBinding.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/newspaper/AbstractHtmlNewspaperTable.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/popup/AbstractHtmlPopup.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/radio/AbstractHtmlRadio.java (with props)
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/savestate/UISaveState.java (with props)
Removed:
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlCommandButtonTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlCommandLinkTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlDataTableTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlGraphicImageTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlInputHiddenTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlInputSecretTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlInputTextTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlInputTextareaTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlMessageTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlMessagesTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlOutputLabelTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlOutputTextTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlPanelGridTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlPanelGroupTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlSelectBooleanCheckboxTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlSelectManyCheckboxTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlSelectManyListboxTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlSelectManyMenuTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlSelectOneListboxTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlSelectOneMenuTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/component/html/ext/HtmlSelectOneRadioTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/buffer/BufferTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/checkbox/HtmlCheckboxTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/collapsiblepanel/HtmlCollapsiblePanelTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/column/HtmlSimpleColumnTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/datalist/HtmlDataListTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/datascroller/HtmlDataScrollerTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/date/HtmlInputDateTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/div/DivTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/document/AbstractDocumentTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/fileupload/HtmlInputFileUploadTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/htmlTag/HtmlTagTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/inputTextHelp/HtmlInputTextHelpTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/layout/HtmlPanelLayoutTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/navigation/HtmlCommandNavigationTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/navigation/HtmlPanelNavigationTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/navmenu/UINavigationMenuItemTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/navmenu/htmlnavmenu/HtmlCommandNavigationItemTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/navmenu/htmlnavmenu/HtmlPanelNavigationMenuTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/navmenu/jscookmenu/HtmlCommandJSCookMenuTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/panelstack/HtmlPanelStackTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/popup/HtmlPopupTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/radio/HtmlRadioTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/savestate/UISaveStateTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/schedule/HtmlScheduleTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/schedule/UIScheduleBaseTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/selectOneCountry/SelectOneCountryTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/selectitems/UISelectItemsTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/sortheader/HtmlCommandSortHeaderTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/stylesheet/StylesheetTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/tabbedpane/HtmlPanelTabTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/tabbedpane/HtmlPanelTabbedPaneTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/tree2/HtmlTreeTemplate.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java-templates/org/apache/myfaces/custom/tree2/UITreeDataTemplate.java
Modified:
myfaces/tomahawk/branches/1_2_0/core/pom.xml
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/date/HtmlDateRenderer.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/navmenu/jscookmenu/HtmlJSCookMenuRenderer.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/custom/schedule/UISchedule.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlRadioRenderer.java
myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRenderer.java
myfaces/tomahawk/branches/1_2_0/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlDataTableTest.java
myfaces/tomahawk/branches/1_2_0/core/src/test/java/org/apache/myfaces/custom/date/HtmlDateRenderCactus.java
myfaces/tomahawk/branches/1_2_0/core/src/test/java/org/apache/myfaces/custom/date/HtmlDateRendererTest.java
myfaces/tomahawk/branches/1_2_0/core/src/test/java/org/apache/myfaces/custom/date/UserDataTest.java
myfaces/tomahawk/branches/1_2_0/core/src/test/java/org/apache/myfaces/renderkit/html/util/AddResourceTest.java
myfaces/tomahawk/branches/1_2_0/core/src/test/java/org/apache/myfaces/test/MyFacesTagLibTestCase.java
myfaces/tomahawk/branches/1_2_0/core/src/test/java/org/apache/myfaces/test/TomahawkClassElementTestCase.java
Modified: myfaces/tomahawk/branches/1_2_0/core/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/pom.xml?rev=618842&r1=618841&r2=618842&view=diff
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/pom.xml (original)
+++ myfaces/tomahawk/branches/1_2_0/core/pom.xml Tue Feb 5 16:45:49 2008
@@ -181,7 +181,7 @@
<dependency>
<groupId>org.apache.shale</groupId>
<artifactId>shale-test</artifactId>
- <version>1.0.3</version>
+ <version>1.0.4</version>
<scope>test</scope>
<exclusions>
<exclusion>
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandButton.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandButton.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandButton.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandButton.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,55 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlCommandButton
+ extends javax.faces.component.html.HtmlCommandButton
+ implements UserRoleAware
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Button";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandButton.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandButton.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandLink.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandLink.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandLink.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandLink.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,55 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlCommandLink
+ extends javax.faces.component.html.HtmlCommandLink
+ implements UserRoleAware
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Link";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandLink.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlCommandLink.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlGraphicImage.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlGraphicImage.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlGraphicImage.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlGraphicImage.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,55 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlGraphicImage
+ extends javax.faces.component.html.HtmlGraphicImage
+ implements UserRoleAware
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Image";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlGraphicImage.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlGraphicImage.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputHidden.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputHidden.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputHidden.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputHidden.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,48 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlInputHidden
+ extends javax.faces.component.html.HtmlInputHidden
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "javax.faces.Hidden";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputHidden.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputHidden.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputSecret.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputSecret.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputSecret.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputSecret.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,71 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+import org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlInputSecret
+ extends javax.faces.component.html.HtmlInputSecret
+ implements UserRoleAware, DisplayValueOnlyCapable
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Secret";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+ public abstract Boolean getDisplayValueOnly();
+
+ public boolean isSetDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? true : false;
+ }
+
+ public boolean isDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? getDisplayValueOnly() : false;
+ }
+
+ public abstract void setDisplayValueOnly(Boolean b);
+ public void setDisplayValueOnly(boolean displayValueOnly){
+ this.setDisplayValueOnly((Boolean) Boolean.valueOf(displayValueOnly));
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputSecret.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputSecret.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputText.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputText.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputText.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputText.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,71 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+import org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlInputText
+ extends javax.faces.component.html.HtmlInputText
+ implements UserRoleAware, DisplayValueOnlyCapable
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Text";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+ public abstract Boolean getDisplayValueOnly();
+
+ public boolean isSetDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? true : false;
+ }
+
+ public boolean isDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? getDisplayValueOnly() : false;
+ }
+
+ public abstract void setDisplayValueOnly(Boolean b);
+ public void setDisplayValueOnly(boolean displayValueOnly){
+ this.setDisplayValueOnly((Boolean) Boolean.valueOf(displayValueOnly));
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputText.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputText.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputTextarea.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputTextarea.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputTextarea.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputTextarea.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,71 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+import org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlInputTextarea
+ extends javax.faces.component.html.HtmlInputTextarea
+ implements UserRoleAware, DisplayValueOnlyCapable
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Textarea";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+ public abstract Boolean getDisplayValueOnly();
+
+ public boolean isSetDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? true : false;
+ }
+
+ public boolean isDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? getDisplayValueOnly() : false;
+ }
+
+ public abstract void setDisplayValueOnly(Boolean b);
+ public void setDisplayValueOnly(boolean displayValueOnly){
+ this.setDisplayValueOnly((Boolean) Boolean.valueOf(displayValueOnly));
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputTextarea.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlInputTextarea.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessage.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessage.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessage.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessage.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,61 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlMessage
+ extends javax.faces.component.html.HtmlMessage
+ implements UserRoleAware
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Message";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+ public boolean getForceSpan(){
+ return isForceSpan();
+ }
+
+ public abstract boolean isForceSpan();
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessage.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessage.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessages.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessages.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessages.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessages.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,61 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlMessages
+ extends javax.faces.component.html.HtmlMessages
+ implements UserRoleAware
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Messages";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+ public boolean getForceSpan(){
+ return isForceSpan();
+ }
+
+ public abstract boolean isForceSpan();
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessages.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlMessages.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputLabel.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputLabel.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputLabel.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputLabel.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,55 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlOutputLabel
+ extends javax.faces.component.html.HtmlOutputLabel
+ implements UserRoleAware
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "javax.faces.Label";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputLabel.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputLabel.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputText.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputText.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputText.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputText.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,55 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlOutputText
+ extends javax.faces.component.html.HtmlOutputText
+ implements UserRoleAware
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Text";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputText.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlOutputText.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGrid.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGrid.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGrid.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGrid.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,71 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+import org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlPanelGrid
+ extends javax.faces.component.html.HtmlPanelGrid
+ implements UserRoleAware, DisplayValueOnlyCapable
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Grid";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+ public abstract Boolean getDisplayValueOnly();
+
+ public boolean isSetDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? true : false;
+ }
+
+ public boolean isDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? getDisplayValueOnly() : false;
+ }
+
+ public abstract void setDisplayValueOnly(Boolean b);
+ public void setDisplayValueOnly(boolean displayValueOnly){
+ this.setDisplayValueOnly((Boolean) Boolean.valueOf(displayValueOnly));
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGrid.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGrid.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGroup.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGroup.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGroup.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGroup.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,73 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+import org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlPanelGroup
+ extends javax.faces.component.html.HtmlPanelGroup
+ implements UserRoleAware, DisplayValueOnlyCapable
+{
+
+ public static final int DEFAULT_COLSPAN = Integer.MIN_VALUE;
+ public static final String BLOCK_LAYOUT = "block";
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Group";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+ public abstract Boolean getDisplayValueOnly();
+
+ public boolean isSetDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? true : false;
+ }
+
+ public boolean isDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? getDisplayValueOnly() : false;
+ }
+
+ public abstract void setDisplayValueOnly(Boolean b);
+ public void setDisplayValueOnly(boolean displayValueOnly){
+ this.setDisplayValueOnly((Boolean) Boolean.valueOf(displayValueOnly));
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGroup.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlPanelGroup.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectBooleanCheckbox.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectBooleanCheckbox.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectBooleanCheckbox.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectBooleanCheckbox.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+import org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable;
+import org.apache.myfaces.shared_tomahawk.component.EscapeCapable;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlSelectBooleanCheckbox
+ extends javax.faces.component.html.HtmlSelectBooleanCheckbox
+ implements UserRoleAware, DisplayValueOnlyCapable, EscapeCapable
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Checkbox";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+ public abstract Boolean getDisplayValueOnly();
+
+ public boolean isSetDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? true : false;
+ }
+
+ public boolean isDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? getDisplayValueOnly() : false;
+ }
+
+ public abstract void setDisplayValueOnly(Boolean b);
+ public void setDisplayValueOnly(boolean displayValueOnly){
+ this.setDisplayValueOnly((Boolean) Boolean.valueOf(displayValueOnly));
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectBooleanCheckbox.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectBooleanCheckbox.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyCheckbox.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyCheckbox.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyCheckbox.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyCheckbox.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,87 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+import org.apache.myfaces.custom.ExtendedComponentBase;
+import org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable;
+import org.apache.myfaces.shared_tomahawk.component.EscapeCapable;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlSelectManyCheckbox
+ extends javax.faces.component.html.HtmlSelectManyCheckbox
+ implements UserRoleAware, DisplayValueOnlyCapable, ExtendedComponentBase, EscapeCapable
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Checkbox";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+ private static boolean booleanFromObject(Object obj, boolean defaultValue)
+ {
+ if(obj instanceof Boolean)
+ {
+ return ((Boolean) obj).booleanValue();
+ }
+ else if(obj instanceof String)
+ {
+ return Boolean.valueOf(((String) obj)).booleanValue();
+ }
+
+ return defaultValue;
+ }
+
+ public abstract Boolean getDisplayValueOnly();
+
+ public boolean isSetDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? true : false;
+ }
+
+ public boolean isDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? getDisplayValueOnly() : false;
+ }
+
+ public abstract void setDisplayValueOnly(Boolean b);
+ public void setDisplayValueOnly(boolean displayValueOnly){
+ this.setDisplayValueOnly((Boolean) Boolean.valueOf(displayValueOnly));
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyCheckbox.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyCheckbox.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyListbox.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyListbox.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyListbox.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyListbox.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,74 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+import org.apache.myfaces.custom.ExtendedComponentBase;
+import org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable;
+import org.apache.myfaces.shared_tomahawk.component.EscapeCapable;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlSelectManyListbox
+ extends javax.faces.component.html.HtmlSelectManyListbox
+ implements UserRoleAware, DisplayValueOnlyCapable, EscapeCapable
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Listbox";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+
+ public abstract Boolean getDisplayValueOnly();
+
+ public boolean isSetDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? true : false;
+ }
+
+ public boolean isDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? getDisplayValueOnly() : false;
+ }
+
+ public abstract void setDisplayValueOnly(Boolean b);
+ public void setDisplayValueOnly(boolean displayValueOnly){
+ this.setDisplayValueOnly((Boolean) Boolean.valueOf(displayValueOnly));
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyListbox.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyListbox.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyMenu.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyMenu.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyMenu.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyMenu.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,73 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+import org.apache.myfaces.custom.ExtendedComponentBase;
+import org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable;
+import org.apache.myfaces.shared_tomahawk.component.EscapeCapable;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlSelectManyMenu
+ extends javax.faces.component.html.HtmlSelectManyMenu
+ implements UserRoleAware, DisplayValueOnlyCapable, EscapeCapable
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Menu";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+ public abstract Boolean getDisplayValueOnly();
+
+ public boolean isSetDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? true : false;
+ }
+
+ public boolean isDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? getDisplayValueOnly() : false;
+ }
+
+ public abstract void setDisplayValueOnly(Boolean b);
+ public void setDisplayValueOnly(boolean displayValueOnly){
+ this.setDisplayValueOnly((Boolean) Boolean.valueOf(displayValueOnly));
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyMenu.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyMenu.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneListbox.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneListbox.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneListbox.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneListbox.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,73 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+import org.apache.myfaces.custom.ExtendedComponentBase;
+import org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable;
+import org.apache.myfaces.shared_tomahawk.component.EscapeCapable;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlSelectOneListbox
+ extends javax.faces.component.html.HtmlSelectOneListbox
+ implements UserRoleAware, DisplayValueOnlyCapable, EscapeCapable
+{
+
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Listbox";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+ public abstract Boolean getDisplayValueOnly();
+
+ public boolean isSetDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? true : false;
+ }
+
+ public boolean isDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? getDisplayValueOnly() : false;
+ }
+
+ public abstract void setDisplayValueOnly(Boolean b);
+ public void setDisplayValueOnly(boolean displayValueOnly){
+ this.setDisplayValueOnly((Boolean) Boolean.valueOf(displayValueOnly));
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneListbox.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneListbox.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneMenu.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneMenu.java?rev=618842&view=auto
==============================================================================
--- myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneMenu.java (added)
+++ myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneMenu.java Tue Feb 5 16:45:49 2008
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+import org.apache.myfaces.custom.ExtendedComponentBase;
+import org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable;
+import org.apache.myfaces.shared_tomahawk.component.EscapeCapable;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlSelectOneMenu
+ extends javax.faces.component.html.HtmlSelectOneMenu
+ implements UserRoleAware, DisplayValueOnlyCapable, EscapeCapable
+{
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Menu";
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
+ if (clientId == null)
+ {
+ clientId = super.getClientId(context);
+ }
+
+ return clientId;
+ }
+
+ public boolean isRendered()
+ {
+ if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
+ return super.isRendered();
+ }
+
+ public abstract Boolean getDisplayValueOnly();
+
+ public boolean isSetDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? true : false;
+ }
+
+ public boolean isDisplayValueOnly(){
+ return getDisplayValueOnly() != null ? getDisplayValueOnly() : false;
+ }
+
+ public abstract void setDisplayValueOnly(Boolean b);
+ public void setDisplayValueOnly(boolean displayValueOnly){
+ this.setDisplayValueOnly((Boolean) Boolean.valueOf(displayValueOnly));
+ }
+
+}
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneMenu.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/branches/1_2_0/core/src/main/java/org/apache/myfaces/component/html/ext/AbstractHtmlSelectOneMenu.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL