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/05/08 04:41:28 UTC
svn commit: r654397 [1/2] - in
/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom:
crosstable/ datalist/ datascroller/ date/ div/ document/ dojo/
emailvalidator/ equalvalidator/ file...
Author: lu4242
Date: Wed May 7 19:41:27 2008
New Revision: 654397
URL: http://svn.apache.org/viewvc?rev=654397&view=rev
Log:
component generation part 1
Added:
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/crosstable/AbstractHtmlColumns.java (with props)
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/AbstractHtmlDataList.java (with props)
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java (with props)
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java (with props)
Removed:
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/crosstable/HtmlColumns.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/crosstable/HtmlColumnsTag.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlDataList.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlDataListTag.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/HtmlDataScroller.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/HtmlDataScrollerTag.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDateTag.java
Modified:
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlListRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/HtmlDateRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/div/Div.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/Document.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBody.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBodyRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentHead.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentHeadRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/dojo/DojoInitializer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/dojo/DojoInitializerRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/emailvalidator/EmailValidator.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/equalvalidator/EqualValidator.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/fileupload/HtmlFileUploadRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/fileupload/HtmlInputFileUpload.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/HtmlTag.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/HtmlTagRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtml.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtmlRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlInputTextHelp.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jslistener/JsValueChangeListener.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jslistener/JsValueChangeListenerRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jsvalueset/HtmlJsValueSet.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jsvalueset/HtmlJsValueSetRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/layout/HtmlLayoutRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/layout/HtmlPanelLayout.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/navigation/HtmlCommandNavigation.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/navigation/HtmlNavigationRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/navigation/HtmlPanelNavigation.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/navmenu/UINavigationMenuItem.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/navmenu/htmlnavmenu/HtmlCommandNavigationItem.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/navmenu/htmlnavmenu/HtmlNavigationMenuRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/navmenu/htmlnavmenu/HtmlPanelNavigationMenu.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/navmenu/jscookmenu/HtmlCommandJSCookMenu.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/navmenu/jscookmenu/HtmlJSCookMenuRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTable.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/panelstack/HtmlPanelStack.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/panelstack/HtmlPanelStackRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/popup/HtmlPopup.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/popup/HtmlPopupRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/radio/HtmlRadio.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/regexprvalidator/RegExprValidator.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/savestate/UISaveState.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/schedule/HtmlSchedule.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/schedule/ScheduleDelegatingRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/selectOneCountry/SelectOneCountry.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/selectOneCountry/SelectOneCountryRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguage.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/selectitems/UISelectItems.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/sortheader/HtmlCommandSortHeader.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/sortheader/HtmlSortHeaderRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/stylesheet/Stylesheet.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/stylesheet/StylesheetRenderer.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/swapimage/HtmlSwapImage.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/swapimage/HtmlSwapImageRenderer.java
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/crosstable/AbstractHtmlColumns.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/crosstable/AbstractHtmlColumns.java?rev=654397&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/crosstable/AbstractHtmlColumns.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/crosstable/AbstractHtmlColumns.java Wed May 7 19:41:27 2008
@@ -0,0 +1,84 @@
+/*
+ * 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.custom.crosstable;
+
+import org.apache.myfaces.custom.column.HtmlColumn;
+
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+
+/**
+ * @JSFComponent
+ * name = "t:columns"
+ * class = "org.apache.myfaces.custom.crosstable.HtmlColumns"
+ * parent = "javax.faces.component.UIData"
+ * superClass = "org.apache.myfaces.custom.crosstable.AbstractHtmlColumns"
+ * tagClass = "org.apache.myfaces.custom.crosstable.HtmlColumnsTag"
+ *
+ * @author Mathias Broekelmann (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+public abstract class AbstractHtmlColumns extends UIColumns implements HtmlColumn {
+
+ public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlColumns";
+
+ /**
+ * @JSFProperty
+ * defaultValue = "false"
+ */
+ public abstract boolean isGroupBy();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract Object getGroupByValue();
+
+ /**
+ * @JSFProperty
+ * defaultValue = "false"
+ */
+ public abstract boolean isDefaultSorted();
+
+ /**
+ * @JSFProperty
+ * defaultValue = "false"
+ */
+ public abstract boolean isSortable();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getSortPropertyName();
+
+ // the following are not implemented, but are in the HtmlColumn interface
+ public String getColspan() {return null;}
+ public void setColspan(String colspan) {}
+ public String getHeadercolspan() {return null;}
+ public void setHeadercolspan(String headercolspan) {}
+ public String getFootercolspan() {return null;}
+ public void setFootercolspan(String footercolspan) {}
+
+ public String getColumnId() {
+ return null;
+ }
+
+ public void setColumnId(String columnId) {
+ }
+
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/crosstable/AbstractHtmlColumns.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/AbstractHtmlDataList.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/AbstractHtmlDataList.java?rev=654397&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/AbstractHtmlDataList.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/AbstractHtmlDataList.java Wed May 7 19:41:27 2008
@@ -0,0 +1,238 @@
+/*
+ * 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.custom.datalist;
+
+import java.util.Iterator;
+import java.util.Map;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+import org.apache.myfaces.shared_tomahawk.util._ComponentUtils;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+
+/**
+ * @JSFComponent
+ * name = "t:dataList"
+ * class = "org.apache.myfaces.custom.datalist.HtmlDataList"
+ * superClass = "org.apache.myfaces.custom.datalist.AbstractHtmlDataList"
+ * tagClass = "org.apache.myfaces.custom.datalist.HtmlDataListTag"
+ *
+ * @author Manfred Geiler (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlDataList
+ extends org.apache.myfaces.component.html.ext.HtmlDataTableHack
+ implements UserRoleAware
+{
+ public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlDataList";
+ private static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.List";
+
+ private static Log log = LogFactory.getLog(AbstractHtmlDataList.class);
+ private static final int PROCESS_DECODES = 1;
+ private static final int PROCESS_VALIDATORS = 2; // not currently in use
+ private static final int PROCESS_UPDATES = 3; // not currently in use
+
+ /**
+ * Throws NullPointerException if context is null. Sets row index to -1,
+ * calls processChildren, sets row index to -1.
+ */
+
+ public void processDecodes(FacesContext context)
+ {
+
+ if (context == null)
+ throw new NullPointerException("context");
+ if (!isRendered())
+ return;
+
+ setRowIndex(-1);
+ processChildren(context, PROCESS_DECODES);
+ setRowIndex(-1);
+ }
+
+ public void processUpdates(FacesContext context)
+ {
+ if (context == null)
+ throw new NullPointerException("context");
+ if (!isRendered())
+ return;
+
+ setRowIndex(-1);
+ processChildren(context, PROCESS_UPDATES);
+ setRowIndex(-1);
+ }
+
+ public void processValidators(FacesContext context)
+ {
+ if (context == null)
+ throw new NullPointerException("context");
+ if (!isRendered())
+ return;
+
+ setRowIndex(-1);
+ processChildren(context, PROCESS_VALIDATORS);
+ setRowIndex(-1); }
+
+ /**
+ * Iterates over all children, processes each according to the specified
+ * process action if the child is rendered.
+ */
+
+ public void processChildren(FacesContext context, int processAction)
+ {
+ // use this method for processing other than decode ?
+ int first = getFirst();
+ int rows = getRows();
+ int last = rows == 0 ? getRowCount() : first + rows;
+
+ if (log.isTraceEnabled())
+ {
+ log.trace("processing " + getChildCount()
+ + " children: starting at " + first
+ + ", ending at " + last);
+ }
+
+ for (int rowIndex = first; last == -1 || rowIndex < last; rowIndex++)
+ {
+
+ setRowIndex(rowIndex);
+
+ if (!isRowAvailable())
+ {
+ if (log.isTraceEnabled())
+ {
+ log.trace("scrolled past the last row, aborting");
+ }
+ break;
+ }
+
+ for (Iterator it = getChildren().iterator(); it.hasNext();)
+ {
+ UIComponent child = (UIComponent) it.next();
+ if (child.isRendered())
+ process(context, child, processAction);
+ }
+ }
+ }
+
+ /**
+ * Copy and pasted from UIData in order to maintain binary compatibility.
+ */
+
+ private void process(FacesContext context, UIComponent component,
+ int processAction)
+ {
+ switch (processAction)
+ {
+ case PROCESS_DECODES:
+ component.processDecodes(context);
+ break;
+ case PROCESS_VALIDATORS:
+ component.processValidators(context);
+ break;
+ case PROCESS_UPDATES:
+ component.processUpdates(context);
+ break;
+ }
+ }
+
+ public String getClientId(FacesContext context)
+ {
+ String clientId = HtmlComponentUtils.getClientId(
+ this,getRenderer(context),context);
+
+ if(clientId==null)
+ {
+ return super.getClientId(context);
+ }
+ else
+ {
+ int rowIndex = getRowIndex();
+ if (rowIndex == -1)
+ {
+ return clientId;
+ }
+ else
+ {
+ return clientId + "_" + rowIndex;
+ }
+ }
+ }
+
+ public void setRowIndex(int rowIndex)
+ {
+ super.setRowIndex(rowIndex);
+ String rowIndexVar = getRowIndexVar();
+ String rowCountVar = getRowCountVar();
+ if (rowIndexVar != null || rowCountVar != null)
+ {
+ Map requestMap = FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
+ if (rowIndex >= 0)
+ {
+ //regular row index, update request scope variables
+ if (rowIndexVar != null)
+ {
+ requestMap.put(getRowIndexVar(), new Integer(rowIndex));
+ }
+ if (rowCountVar != null)
+ {
+ requestMap.put(getRowCountVar(), new Integer(getRowCount()));
+ }
+ }
+ else
+ {
+ //rowIndex == -1 means end of loop --> remove request scope variables
+ if (rowIndexVar != null)
+ {
+ requestMap.remove(getRowIndexVar());
+ }
+ if (rowCountVar != null)
+ {
+ requestMap.remove(getRowCountVar());
+ }
+ }
+ }
+ }
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getRowCountVar();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getRowIndexVar();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getLayout();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getItemStyleClass();
+
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/AbstractHtmlDataList.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/AbstractHtmlDataList.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlListRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlListRenderer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlListRenderer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlListRenderer.java Wed May 7 19:41:27 2008
@@ -32,6 +32,11 @@
import java.io.IOException;
/**
+ * @JSFRenderer
+ * renderKitId = "HTML_BASIC"
+ * family = "javax.faces.Data"
+ * type = "org.apache.myfaces.List"
+ *
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java?rev=654397&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java Wed May 7 19:41:27 2008
@@ -0,0 +1,731 @@
+/*
+ * 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.custom.datascroller;
+
+import javax.faces.FacesException;
+import javax.faces.component.ActionSource;
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIData;
+import javax.faces.context.FacesContext;
+import javax.faces.el.EvaluationException;
+import javax.faces.el.MethodBinding;
+import javax.faces.el.ValueBinding;
+import javax.faces.event.AbortProcessingException;
+import javax.faces.event.ActionEvent;
+import javax.faces.event.ActionListener;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.PhaseId;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.myfaces.component.html.ext.HtmlPanelGroup;
+import org.apache.myfaces.shared_tomahawk.util._ComponentUtils;
+
+/**
+ * A component which works together with a UIData component to allow a
+ * user to view a large list of data one "page" at a time, and navigate
+ * between pages.
+ *
+ * @JSFComponent
+ * name = "t:dataScroller"
+ * class = "org.apache.myfaces.custom.datascroller.HtmlDataScroller"
+ * superClass = "org.apache.myfaces.custom.datascroller.AbstractHtmlDataScroller"
+ * tagClass = "org.apache.myfaces.custom.datascroller.HtmlDataScrollerTag"
+ *
+ * @author Thomas Spiegl (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlDataScroller extends HtmlPanelGroup
+ implements ActionSource
+{
+
+ public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlDataScroller";
+ public static final String COMPONENT_FAMILY = "javax.faces.Panel";
+ private static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.DataScroller";
+ private static final boolean DEFAULT_IMMEDIATE = false;
+
+ private static final Log log = LogFactory.getLog(AbstractHtmlDataScroller.class);
+
+ private static final String FIRST_FACET_NAME = "first";
+ private static final String LAST_FACET_NAME = "last";
+ private static final String NEXT_FACET_NAME = "next";
+ private static final String PREVIOUS_FACET_NAME = "previous";
+ private static final String FAST_FORWARD_FACET_NAME = "fastforward";
+ private static final String FAST_REWIND_FACET_NAME = "fastrewind";
+
+ public static final String FACET_FIRST = "first".intern();
+ public static final String FACET_PREVIOUS = "previous".intern();
+ public static final String FACET_NEXT = "next".intern();
+ public static final String FACET_LAST = "last".intern();
+ public static final String FACET_FAST_FORWARD = "fastf".intern();
+ public static final String FACET_FAST_REWIND = "fastr".intern();
+
+ private static final String TABLE_LAYOUT = "table";
+ private static final String LIST_LAYOUT = "list";
+ private static final String SINGLE_LIST_LAYOUT = "singleList";
+ private static final String SINGLE_TABLE_LAYOUT = "singleTable";
+
+ // just for caching the associated uidata
+ private transient UIData _UIData;
+
+ private transient Boolean _listLayout;
+
+ private transient Boolean _singleElementLayout;
+
+ private MethodBinding _actionListener;
+
+ public boolean isListLayout()
+ {
+ if(_listLayout == null)
+ {
+ String layout=getLayout();
+ if(layout == null || layout.equals(TABLE_LAYOUT) || layout.equals(SINGLE_TABLE_LAYOUT))
+ _listLayout = Boolean.FALSE;
+ else if(layout.equals(LIST_LAYOUT) || layout.equals(SINGLE_LIST_LAYOUT))
+ {
+ _listLayout = Boolean.TRUE;
+ }
+ else
+ {
+ log.error("Invalid layout-parameter : "+layout +" provided. Defaulting to table-layout.");
+ _listLayout = Boolean.FALSE;
+ }
+ }
+
+ return _listLayout.booleanValue();
+ }
+
+ public boolean isSingleElementLayout()
+ {
+ if(_singleElementLayout == null)
+ {
+ String layout=getLayout();
+ if(layout == null || layout.equals(SINGLE_LIST_LAYOUT) || layout.equals(SINGLE_TABLE_LAYOUT))
+ _singleElementLayout = Boolean.TRUE;
+ else
+ _singleElementLayout = Boolean.FALSE;
+ }
+
+ return _singleElementLayout.booleanValue();
+ }
+
+ /**
+ * Catch any attempts to queue events for this component, and ensure
+ * the event's phase is set appropriately. Events are expected to be
+ * queued by this component's renderer.
+ * <p>
+ * When this component is marked "immediate", any ActionEvent will
+ * be marked to fire in the "apply request values" phase. When this
+ * component is not immediate the event will fire during the
+ * "invoke application" phase instead.
+ */
+ public void queueEvent(FacesEvent event)
+ {
+ if (event != null && event instanceof ActionEvent)
+ {
+ if (isImmediate())
+ {
+ event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+ }
+ else
+ {
+ event.setPhaseId(PhaseId.INVOKE_APPLICATION);
+ }
+ }
+ super.queueEvent(event);
+ }
+
+ /**
+ * Invoke any action listeners attached to this class.
+ * <p>
+ * After listener invocation, the associated UIData's properties get
+ * updated:
+ * <ul>
+ * <li>if the user selected an absolute page# then setFirst is called with
+ * uiData.getRows() * pageNumber.
+ * <li>if the user selected the "first page" option then setFirst(0) is called.
+ * <li>if the user selected the "previous page" option then setFirst is decremented
+ * by uiData.getRows().
+ * <li>if the user selected the "fast rewind" option then setFirst is decremented
+ * by uiData.getRows() * fastStep.
+ * <li>next, fast-forward and last options have the obvious effect.
+ * </ul>
+ */
+ public void broadcast(FacesEvent event) throws AbortProcessingException
+ {
+ super.broadcast(event);
+
+ if (event instanceof ScrollerActionEvent)
+ {
+ ScrollerActionEvent scrollerEvent = (ScrollerActionEvent) event;
+
+ broadcastToActionListener(scrollerEvent);
+
+ // huh? getUIData never returns null.
+ UIData uiData = getUIData();
+ if (uiData == null)
+ {
+ return;
+ }
+
+ int pageindex = scrollerEvent.getPageIndex();
+ if (pageindex == -1)
+ {
+ String facet = scrollerEvent.getScrollerfacet();
+ if (FACET_FIRST.equals(facet))
+ {
+ setFirst(uiData, 0);
+ }
+ else if (FACET_PREVIOUS.equals(facet))
+ {
+ int previous = uiData.getFirst() - uiData.getRows();
+ if (previous >= 0)
+ setFirst(uiData, previous);
+ }
+ else if (FACET_NEXT.equals(facet))
+ {
+ int next = uiData.getFirst() + uiData.getRows();
+ if (next < uiData.getRowCount())
+ setFirst(uiData, next);
+ }
+ else if (FACET_FAST_FORWARD.equals(facet))
+ {
+ int fastStep = getFastStep();
+ if (fastStep <= 0)
+ fastStep = 1;
+ int next = uiData.getFirst() + uiData.getRows() * fastStep;
+ int rowcount = uiData.getRowCount();
+ if (next >= rowcount)
+ next = (rowcount - 1) - ((rowcount - 1) % uiData.getRows());
+ setFirst(uiData, next);
+ }
+ else if (FACET_FAST_REWIND.equals(facet))
+ {
+ int fastStep = getFastStep();
+ if (fastStep <= 0)
+ fastStep = 1;
+ int previous = uiData.getFirst() - uiData.getRows() * fastStep;
+ if (previous < 0)
+ previous = 0;
+ setFirst(uiData, previous);
+ }
+ else if (FACET_LAST.equals(facet))
+ {
+ int rowcount = uiData.getRowCount();
+ int rows = uiData.getRows();
+ int delta = rowcount % rows;
+ int first = delta > 0 && delta < rows ? rowcount - delta : rowcount - rows;
+ if (first >= 0)
+ {
+ setFirst(uiData, first);
+ }
+ else
+ {
+ setFirst(uiData, 0);
+ }
+ }
+ }
+ else
+ {
+ int pageCount = getPageCount();
+ if (pageindex > pageCount)
+ {
+ pageindex = pageCount;
+ }
+ if (pageindex <= 0)
+ {
+ pageindex = 1;
+ }
+ setFirst(uiData, uiData.getRows() * (pageindex - 1));
+ }
+ }
+ }
+
+ protected void setFirst(UIData uiData, int value) {
+ //there might be special cases where the first-property of the data-table
+ //is bound to a backing bean. If this happens, the user probably wants
+ //the data-scroller to update this backing-bean value - if not, you can always
+ //override this method in a subclass.
+ if(uiData.getValueBinding("first")!=null)
+ {
+ ValueBinding vb = uiData.getValueBinding("first");
+ vb.setValue(getFacesContext(),new Integer(value));
+ }
+ else
+ {
+ uiData.setFirst(value);
+ }
+ }
+
+ /**
+ * @param event
+ */
+ protected void broadcastToActionListener(ScrollerActionEvent event)
+ {
+ FacesContext context = getFacesContext();
+
+ MethodBinding actionListenerBinding = getActionListener();
+ if (actionListenerBinding != null)
+ {
+ try
+ {
+ actionListenerBinding.invoke(context, new Object[] {event});
+ }
+ catch (EvaluationException e)
+ {
+ Throwable cause = e.getCause();
+ if (cause != null && cause instanceof AbortProcessingException)
+ {
+ throw (AbortProcessingException)cause;
+ }
+ throw e;
+ }
+ }
+
+ ActionListener defaultActionListener
+ = context.getApplication().getActionListener();
+ if (defaultActionListener != null)
+ {
+ defaultActionListener.processAction((ActionEvent)event);
+ }
+ }
+
+ /**
+ * @return int
+ */
+ public UIData getUIData()
+ {
+ if (_UIData == null)
+ {
+ _UIData = findUIData();
+ }
+ return _UIData;
+ }
+
+ /**
+ * @return the page index of the uidata
+ */
+ public int getPageIndex()
+ {
+ UIData uiData = getUIData();
+ int rows = uiData.getRows();
+ if (0 == rows)
+ {
+ throw new FacesException("You need to set a value to the 'rows' attribute of component '" + uiData.getClientId(getFacesContext()) + "'" );
+ }
+
+ int pageIndex;
+ if (rows > 0)
+ {
+ pageIndex = uiData.getFirst() / rows + 1;
+ }
+ else
+ {
+ log.warn("DataTable " + uiData.getClientId(FacesContext.getCurrentInstance())
+ + " has invalid rows attribute.");
+ pageIndex = 0;
+ }
+ if (uiData.getFirst() % rows > 0)
+ {
+ pageIndex++;
+ }
+ return pageIndex;
+ }
+
+ /**
+ * @return the page count of the uidata
+ */
+ public int getPageCount()
+ {
+ UIData uiData = getUIData();
+ int rows = uiData.getRows();
+ int pageCount;
+ if (rows > 0)
+ {
+ pageCount = rows <= 0 ? 1 : uiData.getRowCount() / rows;
+ if (uiData.getRowCount() % rows > 0)
+ {
+ pageCount++;
+ }
+ }
+ else
+ {
+ rows = 1;
+ pageCount = 1;
+ }
+ return pageCount;
+ }
+
+ /**
+ * @return int
+ */
+ public int getRowCount()
+ {
+ return getUIData().getRowCount();
+ }
+
+ /**
+ * @return int
+ */
+ public int getRows()
+ {
+ return getUIData().getRows();
+ }
+
+ /**
+ * @return int
+ */
+ public int getFirstRow()
+ {
+ return getUIData().getFirst();
+ }
+
+ /**
+ * Find the UIData component associated with this scroller.
+ * <p>
+ * If the "for" attribute is not null then that value is used to find the
+ * specified component by id. Both "relative" and "absolute" ids are allowed;
+ * see method UIComponent.findComponent for details.
+ * <p>
+ * If the "for" attribute is not defined, then this component is expected to
+ * be a child of a UIData component.
+ *
+ * @throws IllegalArgumentException if an associated UIData component
+ * cannot be found.
+ */
+ protected UIData findUIData()
+ {
+ String forStr = getFor();
+ UIComponent forComp;
+ if (forStr == null)
+ {
+ // DataScroller may be a child of uiData
+ forComp = getParent();
+ }
+ else
+ {
+ forComp = findComponent(forStr);
+ }
+ if (forComp == null)
+ {
+ throw new IllegalArgumentException(
+ "could not find UIData referenced by attribute dataScroller@for = '"
+ + forStr + "'");
+ }
+ else if (!(forComp instanceof UIData))
+ {
+ throw new IllegalArgumentException(
+ "uiComponent referenced by attribute dataScroller@for = '"
+ + forStr + "' must be of type " + UIData.class.getName()
+ + ", not type " + forComp.getClass().getName());
+ }
+ return (UIData) forComp;
+ }
+
+ public void setFirst(UIComponent first)
+ {
+ getFacets().put(FIRST_FACET_NAME, first);
+ }
+
+ /**
+ * @JSFFacet
+ */
+ public UIComponent getFirst()
+ {
+ return (UIComponent) getFacets().get(FIRST_FACET_NAME);
+ }
+
+ public void setLast(UIComponent last)
+ {
+ getFacets().put(LAST_FACET_NAME, last);
+ }
+
+ /**
+ * @JSFFacet
+ */
+ public UIComponent getLast()
+ {
+ return (UIComponent) getFacets().get(LAST_FACET_NAME);
+ }
+
+ public void setNext(UIComponent next)
+ {
+ getFacets().put(NEXT_FACET_NAME, next);
+ }
+
+ /**
+ * @JSFFacet
+ */
+ public UIComponent getNext()
+ {
+ return (UIComponent) getFacets().get(NEXT_FACET_NAME);
+ }
+
+ public void setFastForward(UIComponent previous)
+ {
+ getFacets().put(FAST_FORWARD_FACET_NAME, previous);
+ }
+
+ /**
+ * @JSFFacet
+ */
+ public UIComponent getFastForward()
+ {
+ return (UIComponent) getFacets().get(FAST_FORWARD_FACET_NAME);
+ }
+
+ public void setFastRewind(UIComponent previous)
+ {
+ getFacets().put(FAST_REWIND_FACET_NAME, previous);
+ }
+
+ /**
+ * @JSFFacet
+ */
+ public UIComponent getFastRewind()
+ {
+ return (UIComponent) getFacets().get(FAST_REWIND_FACET_NAME);
+ }
+
+ public void setPrevious(UIComponent previous)
+ {
+ getFacets().put(PREVIOUS_FACET_NAME, previous);
+ }
+
+ /**
+ * @JSFFacet
+ */
+ public UIComponent getPrevious()
+ {
+ return (UIComponent) getFacets().get(PREVIOUS_FACET_NAME);
+ }
+
+ public boolean getRendersChildren()
+ {
+ return true;
+ }
+
+ /**
+ * @see javax.faces.component.ActionSource#getAction()
+ */
+ public MethodBinding getAction()
+ {
+ // not used
+ return null;
+ }
+
+ /**
+ * @see javax.faces.component.ActionSource#setAction(javax.faces.el.MethodBinding)
+ */
+ public void setAction(MethodBinding action)
+ {
+ throw new UnsupportedOperationException(
+ "defining an action is not supported. use an actionlistener");
+ }
+
+ /**
+ * @see javax.faces.component.ActionSource#setActionListener(javax.faces.el.MethodBinding)
+ */
+ public void setActionListener(MethodBinding actionListener)
+ {
+ _actionListener = actionListener;
+ }
+
+ /**
+ * @JSFProperty
+ * returnSignature="void"
+ * methodSignature="javax.faces.event.ActionEvent"
+ * @see javax.faces.component.ActionSource#getActionListener()
+ */
+ public MethodBinding getActionListener()
+ {
+ return _actionListener;
+ }
+
+ /**
+ * @see javax.faces.component.ActionSource#addActionListener(javax.faces.event.ActionListener)
+ */
+ public void addActionListener(ActionListener listener)
+ {
+ addFacesListener(listener);
+ }
+
+ /**
+ * @see javax.faces.component.ActionSource#getActionListeners()
+ */
+ public ActionListener[] getActionListeners()
+ {
+ return (ActionListener[]) getFacesListeners(ActionListener.class);
+ }
+
+ /**
+ * @see javax.faces.component.ActionSource#removeActionListener(javax.faces.event.ActionListener)
+ */
+ public void removeActionListener(ActionListener listener)
+ {
+ removeFacesListener(listener);
+ }
+
+ public Object saveState(FacesContext context)
+ {
+ Object values[] = new Object[2];
+ values[0] = super.saveState(context);
+ values[1] = saveAttachedState(context, _actionListener);
+ return values;
+ }
+
+ public void restoreState(FacesContext context, Object state)
+ {
+ Object values[] = (Object[]) state;
+ super.restoreState(context, values[0]);
+ _actionListener = (MethodBinding)restoreAttachedState(context, values[1]);
+ }
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getFor();
+
+ /**
+ * @JSFProperty
+ * defaultValue="Integer.MIN_VALUE"
+ */
+ public abstract int getFastStep();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getPageIndexVar();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getPageCountVar();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getRowsCountVar();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getDisplayedRowsCountVar();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getFirstRowIndexVar();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getLastRowIndexVar();
+
+ /**
+ * @JSFProperty
+ * defaultValue = "false"
+ */
+ public abstract boolean isPaginator();
+
+ /**
+ * @JSFProperty
+ * defaultValue = "Integer.MIN_VALUE"
+ */
+ public abstract int getPaginatorMaxPages();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getPaginatorTableClass();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getPaginatorTableStyle();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getPaginatorColumnClass();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getPaginatorColumnStyle();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getPaginatorActiveColumnClass();
+
+ /**
+ * @JSFProperty
+ * defaultValue = "true"
+ */
+ public abstract boolean isPaginatorRenderLinkForActive();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getFirstStyleClass();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getLastStyleClass();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getPreviousStyleClass();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getNextStyleClass();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getFastfStyleClass();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getFastrStyleClass();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getPaginatorActiveColumnStyle();
+
+ /**
+ * @JSFProperty
+ * defaultValue="true"
+ */
+ public abstract boolean isRenderFacetsIfSinglePage();
+
+ /**
+ * @JSFProperty
+ * defaultValue="false"
+ */
+ public abstract boolean isImmediate();
+
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java Wed May 7 19:41:27 2008
@@ -38,6 +38,11 @@
/**
* Renderer for the HtmlDataScroller component.
*
+ * @JSFRenderer
+ * renderKitId = "HTML_BASIC"
+ * family = "javax.faces.Panel"
+ * type = "org.apache.myfaces.DataScroller"
+ *
* @author Thomas Spiegl (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java?rev=654397&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java Wed May 7 19:41:27 2008
@@ -0,0 +1,319 @@
+/*
+ * 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.custom.date;
+
+import java.io.Serializable;
+import java.text.ParseException;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.Locale;
+import java.util.TimeZone;
+
+import javax.faces.component.html.HtmlInputText;
+import javax.faces.context.FacesContext;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.myfaces.component.AlignProperty;
+import org.apache.myfaces.component.ForceIdAware;
+import org.apache.myfaces.component.UserRoleAware;
+import org.apache.myfaces.component.UserRoleUtils;
+import org.apache.myfaces.component.html.util.HtmlComponentUtils;
+
+/**
+ * @JSFComponent
+ * name = "t:inputDate"
+ * class = "org.apache.myfaces.custom.date.HtmlInputDate"
+ * superClass = "org.apache.myfaces.custom.date.AbstractHtmlInputDate"
+ * tagClass = "org.apache.myfaces.custom.date.HtmlInputDateTag"
+ *
+ * @author Sylvain Vieujot (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+public abstract class AbstractHtmlInputDate extends HtmlInputText
+ implements UserRoleAware, ForceIdAware, AlignProperty {
+ public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlInputDate";
+ public static final String COMPONENT_FAMILY = "javax.faces.Input";
+ private static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Date";
+
+ /**
+ * Overriden to support the force id, since the parent is not an extended component
+ */
+ 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 UserData getUserData(Locale currentLocale){
+ return new UserData((Date) getValue(), currentLocale, getTimeZone(), isAmpm(), getType());
+ }
+
+ public static class UserData implements Serializable {
+ private static final long serialVersionUID = -6507279524833267707L;
+ private String day;
+ private String month;
+ private String year;
+ private String hours;
+ private String minutes;
+ private String seconds;
+ private TimeZone timeZone = null;
+ private String ampm;
+ private boolean uses_ampm;
+ private String type;
+
+ public UserData(Date date, Locale currentLocale, String _timeZone, boolean uses_ampm, String type){
+ this.uses_ampm = uses_ampm;
+ this.type = type;
+
+ Calendar calendar = Calendar.getInstance(currentLocale);
+ if (_timeZone != null) {
+ timeZone = TimeZone.getTimeZone(_timeZone);
+ calendar.setTimeZone(timeZone);
+ }
+
+ if(date == null)
+ return;
+
+ calendar.setTime( date );
+ day = Integer.toString(calendar.get(Calendar.DAY_OF_MONTH));
+ month = Integer.toString(calendar.get(Calendar.MONTH)+1);
+ year = Integer.toString(calendar.get(Calendar.YEAR));
+ if (uses_ampm) {
+ int int_hours = calendar.get(Calendar.HOUR);
+ // ampm hours must be in range 0-11 to be handled right; we have to handle "12" specially
+ if (int_hours == 0) {
+ int_hours = 12;
+ }
+ hours = Integer.toString(int_hours);
+ ampm = Integer.toString(calendar.get(Calendar.AM_PM));
+ } else {
+ hours = Integer.toString(calendar.get(Calendar.HOUR_OF_DAY));
+ }
+ minutes = Integer.toString(calendar.get(Calendar.MINUTE));
+ seconds = Integer.toString(calendar.get(Calendar.SECOND));
+ }
+
+ public Date parse() throws ParseException{
+ Date retDate = null;
+ Calendar tempCalendar=Calendar.getInstance();
+ tempCalendar.setLenient(Boolean.FALSE.booleanValue());
+ if (timeZone != null)
+ tempCalendar.setTimeZone(timeZone);
+ try{
+ if(!isSubmitValid(uses_ampm, type)) {
+ return null;
+ }
+
+ if(! (type.equals( "time" ) || type.equals( "short_time" )) ) {
+ tempCalendar.set(Calendar.DAY_OF_MONTH,Integer.parseInt(day));
+ tempCalendar.set(Calendar.MONTH,Integer.parseInt(month)-1);
+ tempCalendar.set(Calendar.YEAR,Integer.parseInt(year));
+ }
+
+ if(! type.equals( "date" )) {
+
+ if (uses_ampm) {
+ int int_hours = Integer.parseInt(hours);
+ // ampm hours must be in range 0-11 to be handled right; we have to handle "12" specially
+ if (int_hours == 12) {
+ int_hours = 0;
+ }
+ tempCalendar.set(Calendar.HOUR,int_hours);
+ tempCalendar.set(Calendar.AM_PM,Integer.parseInt(ampm));
+ } else {
+ tempCalendar.set(Calendar.HOUR_OF_DAY,Integer.parseInt(hours));
+ }
+ tempCalendar.set(Calendar.MINUTE,Integer.parseInt(minutes));
+
+ if (seconds != null & (type.equals("full") || type.equals("time") || type.equals("short_time"))) {
+ tempCalendar.set(Calendar.SECOND,Integer.parseInt(seconds));
+ }
+ }
+ tempCalendar.set(Calendar.MILLISECOND, 0);
+ retDate = tempCalendar.getTime();
+ } catch (NumberFormatException e) {
+ throw new ParseException(e.getMessage(),0);
+ } catch (IllegalArgumentException e) {
+ throw new ParseException(e.getMessage(),0);
+ }
+ return retDate;
+ }
+
+ private String formatedInt(String toFormat){
+ if( toFormat == null )
+ return null;
+
+ int i = -1;
+ try{
+ i = Integer.parseInt( toFormat );
+ }catch(NumberFormatException nfe){
+ return toFormat;
+ }
+ if( i >= 0 && i < 10 )
+ return "0"+i;
+ return Integer.toString(i);
+ }
+
+ private boolean isDateSubmitted(boolean usesAmpm, String type) {
+ boolean isDateSubmitted = ! (StringUtils.isEmpty(getDay()) && ((getMonth() == null) || getMonth().equals("-1")) && StringUtils.isEmpty(getYear()));
+ if(usesAmpm)
+ isDateSubmitted = isDateSubmitted || isAmpmSubmitted();
+ return isDateSubmitted;
+ }
+
+ private boolean isTimeSubmitted(boolean usesAmpm, String type) {
+ boolean isTimeSubmitted = ! (StringUtils.isEmpty(getHours()) && StringUtils.isEmpty(getMinutes()));
+ if(type.equals("time") || type.equals("full"))
+ isTimeSubmitted = isTimeSubmitted || ! StringUtils.isEmpty(getSeconds());
+ if(usesAmpm)
+ isTimeSubmitted = isTimeSubmitted || isAmpmSubmitted();
+ return isTimeSubmitted;
+ }
+
+ private boolean isSubmitValid(boolean usesAmpm, String type) {
+ if(type.equals("date"))
+ return isDateSubmitted(usesAmpm, type);
+ else if(type.equals("time") || (type.equals("short_time")))
+ return isTimeSubmitted(usesAmpm, type);
+ else if(type.equals("full") || type.equals("both"))
+ return isDateSubmitted(usesAmpm, type) || isTimeSubmitted(usesAmpm, type);
+ else
+ return false;
+ }
+
+ private boolean isAmpmSubmitted() {
+ if(getAmpm() == null)
+ return false;
+ else
+ return ! getAmpm().equals("-1");
+ }
+
+ public String getDay() {
+ return formatedInt( day );
+ }
+ public void setDay(String day) {
+ this.day = day;
+ }
+
+ public String getMonth() {
+ return month;
+ }
+ public void setMonth(String month) {
+ this.month = month;
+ }
+
+ public String getYear() {
+ return year;
+ }
+ public void setYear(String year) {
+ this.year = year;
+ }
+
+ public String getHours() {
+ return formatedInt( hours );
+ }
+ public void setHours(String hours) {
+ this.hours = hours;
+ }
+ public String getMinutes() {
+ return formatedInt( minutes );
+ }
+ public void setMinutes(String minutes) {
+ this.minutes = minutes;
+ }
+
+ public String getSeconds() {
+ return formatedInt( seconds );
+ }
+ public void setSeconds(String seconds) {
+ this.seconds = seconds;
+ }
+
+ public String getAmpm() {
+ return ampm;
+ }
+ public void setAmpm(String ampm) {
+ this.ampm = ampm;
+ }
+
+ public String getType() {
+ return type;
+ }
+ public void setType(String type) {
+ this.type = type;
+ }
+ }
+
+ /**
+ * @JSFProperty
+ */
+ public abstract String getTimeZone();
+
+ /**
+ * @JSFProperty
+ * defaultValue = "date"
+ */
+ public abstract String getType();
+
+ /**
+ * @JSFProperty
+ * defaultValue = "false"
+ */
+ public abstract boolean isAmpm();
+
+ /**
+ * @JSFProperty
+ * defaultValue = "false"
+ */
+ public abstract boolean isPopupCalendar();
+
+ /**
+ * @JSFProperty
+ * defaultValue = "\"\""
+ */
+ public abstract String getEmptyMonthSelection();
+
+ /**
+ * @JSFProperty
+ * defaultValue = "\"\""
+ */
+ public abstract String getEmptyAmpmSelection();
+
+ /**
+ * @JSFProperty
+ */
+ public abstract boolean isReadonly();
+
+ /**
+ * @JSFProperty
+ * defaultValue = "false"
+ */
+ public abstract boolean isDisabled();
+
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/HtmlDateRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/HtmlDateRenderer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/HtmlDateRenderer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/date/HtmlDateRenderer.java Wed May 7 19:41:27 2008
@@ -45,6 +45,11 @@
import org.apache.myfaces.shared_tomahawk.util.MessageUtils;
/**
+ * @JSFRenderer
+ * renderKitId = "HTML_BASIC"
+ * family = "javax.faces.Input"
+ * type = "org.apache.myfaces.Date"
+ *
* @author Sylvain Vieujot (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/div/Div.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/div/Div.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/div/Div.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/div/Div.java Wed May 7 19:41:27 2008
@@ -21,6 +21,10 @@
import org.apache.myfaces.custom.htmlTag.HtmlTag;
/**
+ * @JSFComponent
+ * name = "t:div"
+ * tagClass = "org.apache.myfaces.custom.div.DivTag"
+ *
* @author bdudney (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/Document.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/Document.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/Document.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/Document.java Wed May 7 19:41:27 2008
@@ -20,9 +20,14 @@
/**
+ *
* Document to enclose the whole document. If not otherwise possible you can use
* state="start|end" to demarkate the document boundaries
*
+ * @JSFComponent
+ * name = "t:document"
+ * tagClass = "org.apache.myfaces.custom.document.DocumentTag"
+ *
* @author Mario Ivankovits (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBody.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBody.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBody.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBody.java Wed May 7 19:41:27 2008
@@ -24,6 +24,10 @@
* Document to enclose the document body. If not otherwise possible you can use
* state="start|end" to demarkate the document boundaries
*
+ * @JSFComponent
+ * name = "t:documentBody"
+ * tagClass = "org.apache.myfaces.custom.document.DocumentBodyTag"
+ *
* @author Mario Ivankovits (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBodyRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBodyRenderer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBodyRenderer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBodyRenderer.java Wed May 7 19:41:27 2008
@@ -29,6 +29,11 @@
* Document to enclose the whole document. If not otherwise possible you can use
* state="start|end" to demarkate the document boundaries
*
+ * @JSFRenderer
+ * renderKitId = "HTML_BASIC"
+ * family = "javax.faces.Data"
+ * type = "org.apache.myfaces.DocumentBody"
+ *
* @author Mario Ivankovits (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentHead.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentHead.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentHead.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentHead.java Wed May 7 19:41:27 2008
@@ -23,6 +23,10 @@
* Document to enclose the document head. If not otherwise possible you can use
* state="start|end" to demarkate the document boundaries
*
+ * @JSFComponent
+ * name = "t:documentHead"
+ * tagClass = "org.apache.myfaces.custom.document.DocumentHeadTag"
+ *
* @author Mario Ivankovits (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentHeadRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentHeadRenderer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentHeadRenderer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentHeadRenderer.java Wed May 7 19:41:27 2008
@@ -30,6 +30,11 @@
* Document to enclose the document head. If not otherwise possible you can use
* state="start|end" to demarkate the document boundaries
*
+ * @JSFRenderer
+ * renderKitId = "HTML_BASIC"
+ * family = "javax.faces.Data"
+ * type = "org.apache.myfaces.DocumentHead"
+ *
* @author Mario Ivankovits (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentRenderer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentRenderer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentRenderer.java Wed May 7 19:41:27 2008
@@ -22,6 +22,11 @@
* Document to enclose the whole document. If not otherwise possible you can use
* state="start|end" to demarkate the document boundaries
*
+ * @JSFRenderer
+ * renderKitId = "HTML_BASIC"
+ * family = "javax.faces.Data"
+ * type = "org.apache.myfaces.Document"
+ *
* @author Mario Ivankovits (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/dojo/DojoInitializer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/dojo/DojoInitializer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/dojo/DojoInitializer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/dojo/DojoInitializer.java Wed May 7 19:41:27 2008
@@ -26,6 +26,10 @@
/**
* Default component for the dojo intializer
*
+ * @JSFComponent
+ * name = "t:dojoInitializer"
+ * tagClass = "org.apache.myfaces.custom.dojo.DojoInitializerTag"
+ *
* @author Werner Punz (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/dojo/DojoInitializerRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/dojo/DojoInitializerRenderer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/dojo/DojoInitializerRenderer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/dojo/DojoInitializerRenderer.java Wed May 7 19:41:27 2008
@@ -30,6 +30,11 @@
/**
* Dojointializerrenderer
+ *
+ * @JSFRenderer
+ * renderKitId = "HTML_BASIC"
+ * family = "javax.faces.Output"
+ * type = "org.apache.myfaces.DojoInitializerRenderer"
*
* @author Werner Punz (latest modification by $Author$)
* @version $Revision$ $Date$
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/emailvalidator/EmailValidator.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/emailvalidator/EmailValidator.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/emailvalidator/EmailValidator.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/emailvalidator/EmailValidator.java Wed May 7 19:41:27 2008
@@ -28,6 +28,10 @@
/**
+ * @JSFValidator
+ * name = "t:validateEmail"
+ * tagClass = "org.apache.myfaces.custom.ValidateEmailTag"
+ *
* @author mwessendorf (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/equalvalidator/EqualValidator.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/equalvalidator/EqualValidator.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/equalvalidator/EqualValidator.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/equalvalidator/EqualValidator.java Wed May 7 19:41:27 2008
@@ -29,6 +29,10 @@
/**
+ * @JSFValidator
+ * name = "t:validateEqual"
+ * tagClass = "org.apache.myfaces.custom.equalvalidator.ValidateEqualTag"
+ *
* @author mwessendorf (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/fileupload/HtmlFileUploadRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/fileupload/HtmlFileUploadRenderer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/fileupload/HtmlFileUploadRenderer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/fileupload/HtmlFileUploadRenderer.java Wed May 7 19:41:27 2008
@@ -41,6 +41,11 @@
import java.util.Map;
/**
+ * @JSFRenderer
+ * renderKitId = "HTML_BASIC"
+ * family = "javax.faces.Input"
+ * type = "org.apache.myfaces.FileUpload"
+ *
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/fileupload/HtmlInputFileUpload.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/fileupload/HtmlInputFileUpload.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/fileupload/HtmlInputFileUpload.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/fileupload/HtmlInputFileUpload.java Wed May 7 19:41:27 2008
@@ -29,6 +29,10 @@
import javax.faces.el.ValueBinding;
/**
+ * @JSFComponent
+ * name = "t:inputFileUpload"
+ * tagClass = "org.apache.myfaces.custom.fileupload.HtmlInputFileUploadTag"
+ *
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/HtmlTag.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/HtmlTag.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/HtmlTag.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/HtmlTag.java Wed May 7 19:41:27 2008
@@ -28,6 +28,10 @@
import javax.faces.el.ValueBinding;
/**
+ * @JSFComponent
+ * name = "t:htmlTag"
+ * tagClass = "org.apache.myfaces.custom.htmlTag.HtmlTagTag"
+ *
* @author bdudney (latest modification by $Author$)
* @version $Revision$ $Date: 2005-05-11 11:47:12 -0400 (Wed, 11 May 2005) $
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/HtmlTagRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/HtmlTagRenderer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/HtmlTagRenderer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/HtmlTagRenderer.java Wed May 7 19:41:27 2008
@@ -29,6 +29,11 @@
import org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRendererUtils;
/**
+ * @JSFRenderer
+ * renderKitId = "HTML_BASIC"
+ * family = "javax.faces.Output"
+ * type = "org.apache.myfaces.HtmlTagRenderer"
+ *
* @author bdudney (latest modification by $Author$)
* @version $Revision$ $Date: 2005-05-11 11:47:12 -0400 (Wed, 11 May 2005) $
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtml.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtml.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtml.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtml.java Wed May 7 19:41:27 2008
@@ -31,6 +31,10 @@
* HTML Editor using the kupu library.
* http://kupu.oscom.org/
*
+ * @JSFComponent
+ * name = "t:inputHtml"
+ * tagClass = "org.apache.myfaces.custom.inputHtml.InputHtmlTag"
+ *
* @author Sylvain Vieujot (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtmlRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtmlRenderer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtmlRenderer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtmlRenderer.java Wed May 7 19:41:27 2008
@@ -47,6 +47,11 @@
import org.apache.myfaces.shared_tomahawk.renderkit.html.util.FormInfo;
/**
+ * @JSFRenderer
+ * renderKitId = "HTML_BASIC"
+ * family = "javax.faces.Input"
+ * type = "org.apache.myfaces.InputHtml"
+ *
* @author Sylvain Vieujot (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlInputTextHelp.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlInputTextHelp.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlInputTextHelp.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlInputTextHelp.java Wed May 7 19:41:27 2008
@@ -26,6 +26,10 @@
import javax.faces.el.ValueBinding;
/**
+ * @JSFComponent
+ * name = "t:inputTextHelp"
+ * tagClass = "org.apache.myfaces.custom.inputTextHelp.HtmlInputTextHelpTag"
+ *
* @author Thomas Obereder
* @version $Date: 2005-07-02 15:32:34 +01:00 (Thu, 09 Jun 2005)
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java Wed May 7 19:41:27 2008
@@ -35,6 +35,11 @@
import org.apache.myfaces.renderkit.html.ext.HtmlTextRenderer;
/**
+ * @JSFRenderer
+ * renderKitId = "HTML_BASIC"
+ * family = "javax.faces.Input"
+ * type = "org.apache.myfaces.TextHelp"
+ *
* @author Thomas Obereder
* @version Date: 09.06.2005, 22:50:48
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jslistener/JsValueChangeListener.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jslistener/JsValueChangeListener.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jslistener/JsValueChangeListener.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jslistener/JsValueChangeListener.java Wed May 7 19:41:27 2008
@@ -25,6 +25,10 @@
import javax.faces.el.ValueBinding;
/**
+ * @JSFComponent
+ * name = "t:jsValueChangeListener"
+ * tagClass = "org.apache.myfaces.custom.jslistener.JsValueChangeListenerTag"
+ *
* @author Martin Marinschek (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jslistener/JsValueChangeListenerRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jslistener/JsValueChangeListenerRenderer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jslistener/JsValueChangeListenerRenderer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jslistener/JsValueChangeListenerRenderer.java Wed May 7 19:41:27 2008
@@ -32,6 +32,11 @@
import java.io.IOException;
/**
+ * @JSFRenderer
+ * renderKitId = "HTML_BASIC"
+ * family = "javax.faces.Output"
+ * type = "org.apache.myfaces.JsValueChangeListener"
+ *
* @author Martin Marinschek (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jsvalueset/HtmlJsValueSet.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jsvalueset/HtmlJsValueSet.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jsvalueset/HtmlJsValueSet.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jsvalueset/HtmlJsValueSet.java Wed May 7 19:41:27 2008
@@ -26,6 +26,10 @@
import javax.faces.el.ValueBinding;
/**
+ * @JSFComponent
+ * name = "t:jsValueSet"
+ * tagClass = "org.apache.myfaces.custom.jsvalueset.HtmlJsValueSetTag"
+ *
* @author Martin Marinschek (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jsvalueset/HtmlJsValueSetRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jsvalueset/HtmlJsValueSetRenderer.java?rev=654397&r1=654396&r2=654397&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jsvalueset/HtmlJsValueSetRenderer.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/jsvalueset/HtmlJsValueSetRenderer.java Wed May 7 19:41:27 2008
@@ -33,6 +33,11 @@
import java.util.Map;
/**
+ * @JSFRenderer
+ * renderKitId = "HTML_BASIC"
+ * family = "javax.faces.Output"
+ * type = "org.apache.myfaces.JsValueSet"
+ *
* @author Martin Marinschek (latest modification by $Author$)
* @version $Revision$ $Date$
*/