You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2013/11/15 01:43:15 UTC
svn commit: r1542141 [4/20] - /myfaces/site/publish/tobago/
Modified: myfaces/site/publish/tobago/cpd.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/cpd.html?rev=1542141&r1=1542140&r2=1542141&view=diff
==============================================================================
--- myfaces/site/publish/tobago/cpd.html (original)
+++ myfaces/site/publish/tobago/cpd.html Fri Nov 15 00:43:13 2013
@@ -14,7 +14,7 @@
<div class="date">
- Last Published: 28 May 2013
+ Last Published: 14 Nov 2013
</div>
<ul>
<li>
@@ -206,11 +206,11 @@
<ul>
<li class="none">
- <a href="pmd.html">PMD Report</a>
+ <a href="cpd.html" class="selected">CPD Report</a>
</li>
<li class="none">
- <a href="cpd.html" class="selected">CPD Report</a>
+ <a href="pmd.html">PMD Report</a>
</li>
<li class="none">
@@ -222,6 +222,10 @@
</li>
<li class="none">
+ <a href="checkstyle-aggregate.html">Checkstyle</a>
+ </li>
+
+ <li class="none">
<a href="apidocs/index.html">JavaDocs</a>
</li>
@@ -250,7 +254,7 @@
</li>
<li class="none">
- <a href="rat-report.html">RAT Report</a>
+ <a href="rat-report.html">Rat Report</a>
</li>
<li class="none">
@@ -311,565 +315,10 @@
<div class="section"><h2>CPD Results<a name="CPD_Results"></a></h2>
<p>The following document contains the results of PMD's <a class="externalLink"
- href="http://pmd.sourceforge.net/cpd.html">CPD</a> 4.2.5.
+ href="http://pmd.sourceforge.net/cpd.html">CPD</a> 5.0.2.
</p></div>
<div class="section"><h2>Duplications<a name="Duplications"></a></h2>
<table border="0" class="bodyTable">
-<tr class="a">
- <th>File</th>
- <th>Project</th>
- <th>Line</th>
-</tr>
-<tr class="b">
- <td>org/apache/myfaces/tobago/internal/taglib/TagUtils.java</td>
- <td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/TagUtils.html#51">51</a></td>
-</tr>
-<tr class="a">
- <td>org/apache/myfaces/tobago/internal/taglib/TagUtils.java</td>
- <td>Tobago Deprecation</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/TagUtils.html#51">51</a></td>
-</tr>
-<tr class="b">
-<td colspan='3'>
-<div>
-<pre>@Deprecated
-public class TagUtils {
- private static final Logger LOG = LoggerFactory.getLogger(TagUtils.class);
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setIntegerProperty(UIComponent component, String name, String value) {
- if (value != null) {
- if (UIComponentTag.isValueReference(value)) {
- component.setValueBinding(name, createValueBinding(value));
- } else {
- if ((component instanceof AbstractUIPage
- || component instanceof javax.faces.component.UIGraphic
- || component instanceof AbstractUIPopup)
- && (Attributes.WIDTH.equals(name) || Attributes.HEIGHT.equals(name))) {
- if (value.endsWith("px")) {
- value = value.substring(0, value.length() - 2);
- }
- }
- component.getAttributes().put(name, new Integer(value));
- }
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setBooleanProperty(UIComponent component, String name, String value) {
- if (value != null) {
- if (UIComponentTag.isValueReference(value)) {
- component.setValueBinding(name, createValueBinding(value));
- } else {
- component.getAttributes().put(name, Boolean.valueOf(value));
- }
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setStringProperty(UIComponent component, String name, String value) {
- if (value != null) {
- if (UIComponentTag.isValueReference(value)) {
- component.setValueBinding(name, createValueBinding(value));
- } else {
- component.getAttributes().put(name, value);
- }
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setConverterProperty(UIComponent component, String name, String value) {
- if (value != null && component instanceof ValueHolder) {
- final FacesContext facesContext = FacesContext.getCurrentInstance();
- final Application application = facesContext.getApplication();
- if (UIComponentTag.isValueReference(value)) {
- ValueBinding valueBinding = application.createValueBinding(value);
- component.setValueBinding(name, valueBinding);
- } else {
- Converter converter = application.createConverter(value);
- ((ValueHolder) component).setConverter(converter);
- }
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setSeverityProperty(UIComponent component, String name, String value) {
- setStringProperty(component, name, value);
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setObjectProperty(UIComponent component, String name, String value) {
- setStringProperty(component, name, value);
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setCharacterProperty(UIComponent component, String name, String value) {
- setStringProperty(component, name, value);
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static ValueBinding createValueBinding(String value) {
- return FacesContext.getCurrentInstance().getApplication().createValueBinding(value);
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setStateChangeListenerMethodBinding(UIComponent component, String value, Class[] args) {
- if (value != null && UIComponentTag.isValueReference(value)) {
- MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
- ((SheetStateChangeSource) component).setStateChangeListener(methodBinding);
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setSortActionListenerMethodBinding(UIComponent component, String value, Class[] args) {
- if (value != null && UIComponentTag.isValueReference(value)) {
- MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
- ((SortActionSource) component).setSortActionListener(methodBinding);
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setSuggestMethodMethodBinding(UIComponent component, String value, Class[] args) {
- if (value != null && UIComponentTag.isValueReference(value)) {
- MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
- ((InputSuggest) component).setSuggestMethod(methodBinding);
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setValueChangeListenerMethodBinding(UIComponent component, String value, Class[] args) {
- if (value != null && UIComponentTag.isValueReference(value)) {
- MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
- ((EditableValueHolder) component).setValueChangeListener(methodBinding);
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setValidatorMethodBinding(UIComponent component, String value, Class[] args) {
- if (value != null && UIComponentTag.isValueReference(value)) {
- MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
- ((EditableValueHolder) component).setValidator(methodBinding);
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setActionListenerMethodBinding(UIComponent component, String value, Class[] args) {
- if (value != null && UIComponentTag.isValueReference(value)) {
- MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
- ((ActionSource) component).setActionListener(methodBinding);
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setActionMethodBinding(UIComponent component, String value, Class[] args) {
- if (value != null) {
- if (UIComponentTag.isValueReference(value)) {
- MethodBinding methodBinding =
- FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
- ((ActionSource) component).setAction(methodBinding);
- } else {
- ((ActionSource) component).setAction(new ConstantMethodBinding(value));
- }
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setTabChangeListenerMethodBinding(UIComponent component, String value, Class[] args) {
- if (value != null && UIComponentTag.isValueReference(value)) {
- MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(value, args);
- ((TabChangeSource) component).setTabChangeListener(methodBinding);
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setStringArrayProperty(UIComponent component, String name, String value) {
- if (value != null) {
- if (UIComponentTag.isValueReference(value)) {
- component.setValueBinding(name, createValueBinding(value));
- } else {
- String[] components = ComponentUtils.splitList(value);
- try {
- PropertyUtils.setProperty(component, name, components);
- } catch (IllegalAccessException e) {
- LOG.error("Ignoring Property", e);
- } catch (InvocationTargetException e) {
- LOG.error("Ignoring Property", e);
- } catch (NoSuchMethodException e) {
- LOG.error("Ignoring Property", e);
- }
- }
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setValueBindingProperty(UIComponent component, String name, String value) {
- if (value != null && UIComponentTag.isValueReference(value)) {
- ValueBinding valueBinding = createValueBinding(value);
- component.setValueBinding(name, valueBinding);
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static void setOrderByProperty(UIComponent component, String name, String value) {
- if (value != null) {
- if (UIComponentTag.isValueReference(value)) {
- component.setValueBinding(name, createValueBinding(value));
- } else {
- component.getAttributes().put(name, AbstractUIMessages.OrderBy.parse(value));
- }
- }
- }
-
- /**
- * @deprecated since 2.0.0
- */
- @Deprecated
- public static String getValueFromEl(String script) {
- if (UIComponentTag.isValueReference(script)) {
- ValueBinding valueBinding = createValueBinding(script);
- script = (String) valueBinding.getValue(FacesContext.getCurrentInstance());
- }
- return script;
- }
-}</pre>
-</div>
-</td>
-</tr>
-</table>
-<table border="0" class="bodyTable">
-<tr class="a">
- <th>File</th>
- <th>Project</th>
- <th>Line</th>
-</tr>
-<tr class="b">
- <td>org/apache/myfaces/tobago/renderkit/html/StyleClasses.java</td>
- <td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/renderkit/html/StyleClasses.html#45">45</a></td>
-</tr>
-<tr class="a">
- <td>org/apache/myfaces/tobago/renderkit/html/StyleClasses.java</td>
- <td>Tobago Deprecation</td>
- <td><a href="./xref/org/apache/myfaces/tobago/renderkit/html/StyleClasses.html#45">45</a></td>
-</tr>
-<tr class="b">
-<td colspan='3'>
-<div>
-<pre>@Deprecated
-public class StyleClasses implements Serializable {
-
- private static final long serialVersionUID = 3738052927067803517L;
-
- private static final Logger LOG = LoggerFactory.getLogger(StyleClasses.class);
-
- public static final char SEPARATOR = '-';
- public static final String PREFIX = "tobago" + SEPARATOR;
- public static final String MARKUP = SEPARATOR + "markup" + SEPARATOR;
-
- private ListOrderedSet classes;
-
- public StyleClasses() {
- classes = new ListOrderedSet();
- }
-
- /**
- * Creates a StyleClasses element and adds one entry for a sub-component with the name of the renderer.
- * E. g.: UITreeNode + "icon" -> tobago-treeNode-icon
- */
- public StyleClasses(UIComponent component, String sub) {
- this();
- addClass(StringUtils.uncapitalize(component.getRendererType()), sub);
- }
-
- private StyleClasses(StyleClasses base) {
- this();
- classes.addAll(base.classes);
- }
-
- public static StyleClasses ensureStyleClasses(UIComponent component) {
- Map attributes = component.getAttributes();
- StyleClasses classes = (StyleClasses) attributes.get(Attributes.STYLE_CLASS);
- if (classes == null) {
- classes = new StyleClasses();
- attributes.put(Attributes.STYLE_CLASS, classes);
- }
- return classes;
- }
-
- public static StyleClasses ensureStyleClassesCopy(UIComponent component) {
- return new StyleClasses(ensureStyleClasses(component));
- }
-
- /**
- * @deprecated since Tobago 1.5.0. Please use {@link org.apache.myfaces.tobago.renderkit.css.Classes}.
- */
- @Deprecated
- public void addFullQualifiedClass(String clazz) {
- classes.add(clazz);
- }
- /**
- * @deprecated since Tobago 1.5.0. Please use {@link org.apache.myfaces.tobago.renderkit.css.Classes}.
- */
- @Deprecated
- public void removeFullQualifiedClass(String clazz) {
- classes.remove(clazz);
- }
-
- public void addClass(String renderer, String sub) {
- classes.add(nameOfClass(renderer, sub));
- }
-
- public void removeClass(String renderer, String sub) {
- classes.remove(nameOfClass(renderer, sub));
- }
-
- public boolean isEmpty() {
- return classes.isEmpty();
- }
-
- private String nameOfClass(String renderer, String sub) {
- StringBuilder builder = new StringBuilder(PREFIX);
- builder.append(renderer);
- builder.append(SEPARATOR);
- builder.append(sub);
- return builder.toString();
- }
-
- public void addMarkupClass(String renderer, String markup) {
- addMarkupClass(renderer, null, markup);
- }
-
- public void removeMarkupClass(String renderer, String markup) {
- removeMarkupClass(renderer, null, markup);
- }
-
- public void addMarkupClass(String renderer, String sub, String markup) {
- classes.add(nameOfMarkupClass(renderer, sub, markup));
- }
-
- public void removeMarkupClass(String renderer, String sub, String markup) {
- classes.remove(nameOfMarkupClass(renderer, sub, markup));
- }
-
- private String nameOfMarkupClass(String renderer, String sub, String markup) {
- StringBuilder builder = new StringBuilder(PREFIX);
- builder.append(renderer);
- if (sub != null) {
- builder.append(SEPARATOR);
- builder.append(sub);
- }
- builder.append(MARKUP);
- builder.append(markup);
- return builder.toString();
- }
-
- public void addMarkupClass(UIComponent component, String rendererName) {
- if (component instanceof SupportsMarkup) {
- addMarkupClass((SupportsMarkup) component, rendererName, null);
- }
- }
-
- public void addMarkupClass(SupportsMarkup supportsMarkup, String rendererName, String sub) {
- Markup m = supportsMarkup.getCurrentMarkup();
- if (m != null) {
- for (String markup : m) {
- Theme theme = VariableResolverUtils.resolveClientProperties(FacesContext.getCurrentInstance()).getTheme();
- if (theme.getRenderersConfig().isMarkupSupported(rendererName, markup)) {
- addMarkupClass(rendererName, sub, markup);
- } else if ("none".equals(markup)) {
- Deprecation.LOG.warn("Markup 'none' is deprecated, please use a NULL pointer instead.");
- } else {
- LOG.warn("Unknown markup='" + markup + "'");
- }
- }
- }
- }
-
- public void addAspectClass(String renderer, Aspect aspect) {
- classes.add(nameOfAspectClass(renderer, aspect));
- }
-
- public void removeAspectClass(String renderer, Aspect aspect) {
- classes.remove(nameOfAspectClass(renderer, aspect));
- }
-
- private String nameOfAspectClass(String renderer, Aspect aspect) {
- StringBuilder builder = new StringBuilder(PREFIX);
- builder.append(renderer);
- builder.append(aspect);
- return builder.toString();
- }
-
- public void addAspectClass(String renderer, String sub, Aspect aspect) {
- classes.add(nameOfAspectClass(renderer, sub, aspect));
- }
-
- public void removeAspectClass(String renderer, String sub, Aspect aspect) {
- classes.remove(nameOfAspectClass(renderer, sub, aspect));
- }
-
- private String nameOfAspectClass(String renderer, String sub, Aspect aspect) {
- StringBuilder builder = new StringBuilder(PREFIX);
- builder.append(renderer);
- builder.append(SEPARATOR);
- builder.append(sub);
- builder.append(aspect);
- return builder.toString();
- }
-
- public void addClasses(StyleClasses styleClasses) {
- for (String clazz : (Iterable<String>) styleClasses.classes) {
- classes.add(clazz);
- }
- }
-
- public void removeClass(String clazz) {
- classes.remove(clazz);
- }
-
- public void removeTobagoClasses(String rendererName) {
- for (Iterator i = classes.iterator(); i.hasNext();) {
- String clazz = (String) i.next();
- if (clazz.startsWith(PREFIX + rendererName)) {
- i.remove();
- }
- }
- }
-
- public void updateClassAttributeAndMarkup(UIComponent component, String rendererName) {
- updateClassAttribute(component, rendererName);
- addMarkupClass(component, rendererName);
- }
-
- public void updateClassAttribute(UIComponent component, String rendererName) {
- // first remove old tobago-<rendererName>-<type> classes from class-attribute
- removeTobagoClasses(rendererName);
-
- addAspectClass(rendererName, Aspect.DEFAULT);
- if (ComponentUtils.getBooleanAttribute(component, Attributes.DISABLED)) {
- addAspectClass(rendererName, Aspect.DISABLED);
- }
- if (ComponentUtils.getBooleanAttribute(component, Attributes.READONLY)) {
- addAspectClass(rendererName, Aspect.READONLY);
- }
- if (ComponentUtils.getBooleanAttribute(component, Attributes.INLINE)) {
- addAspectClass(rendererName, Aspect.INLINE);
- }
- if (component instanceof UIInput) {
- UIInput input = (UIInput) component;
- if (ComponentUtils.isError(input)) {
- addAspectClass(rendererName, Aspect.ERROR);
- }
- if (input.isRequired()) {
- addAspectClass(rendererName, Aspect.REQUIRED);
- }
- }
- }
-
- @Override
- public String toString() {
- if (classes.isEmpty()) {
- return null;
- }
- StringBuilder buffer = new StringBuilder(16 * classes.size());
- for (Iterator i = classes.iterator(); i.hasNext();) {
- String clazz = (String) i.next();
- buffer.append(clazz);
- if (i.hasNext()) {
- buffer.append(' ');
- }
- }
- return buffer.toString();
- }
-
- /**
- * @deprecated since Tobago 1.5.0. Please use {@link org.apache.myfaces.tobago.context.Markup}.
- */
- @Deprecated
- public enum Aspect {
-
- DEFAULT,
- DISABLED,
- READONLY,
- INLINE,
- ERROR,
- REQUIRED;
-
- private String aspect;
-
- Aspect() {
- aspect = name().equals("DEFAULT") ? "" : '-' + name().toLowerCase(Locale.ENGLISH);
- }
-
- @Override
- public String toString() {
- return aspect;
- }
- }
-}</pre>
-</div>
-</td>
-</tr>
-</table>
-<table border="0" class="bodyTable">
<tr class="a">
<th>File</th>
<th>Project</th>
@@ -883,7 +332,7 @@ public class StyleClasses implements Ser
<tr class="a">
<td>org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java</td>
<td>Tobago Theme Standard</td>
- <td><a href="./xref/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.html#582">582</a></td>
+ <td><a href="./xref/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.html#586">586</a></td>
</tr>
<tr class="b">
<td colspan='3'>
@@ -977,7 +426,7 @@ public class StyleClasses implements Ser
@TagAttribute
@UIComponentTagAttribute(type = {},
expression = DynamicExpression.METHOD_EXPRESSION,
- methodSignature = {"javax.faces.context.FacesContext", "javax.faces.component.UIComponent", "java.lang.Object"})
+ methodSignature = { "javax.faces.context.FacesContext", "javax.faces.component.UIComponent", "java.lang.Object" })
public void setValidator(javax.el.MethodExpression validator) {
this.validator = validator;
}
@@ -1089,7 +538,7 @@ public class StyleClasses implements Ser
public void setRequiredMessage(javax.el.ValueExpression requiredMessage) {
this.requiredMessage = requiredMessage;
}
-
+
/**
* The component identifier for the input field component inside of the container.
* This value must be unique within the closest parent component that is a naming container.
@@ -1125,17 +574,19 @@ public class StyleClasses implements Ser
<tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/MenuCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/MenuCheckboxExtensionTag.html#178">178</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/MenuCheckboxExtensionTag.html#178">178</a>
</td>
</tr>
<tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/MenuRadioExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/MenuRadioExtensionTag.html#188">188</a></td>
+ <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/MenuRadioExtensionTag.html#188">188</a>
+ </td>
</tr>
<tr class="b">
<td colspan='3'>
- <div><pre> converter = null;
+ <div><pre> transition = null;
renderedPartially = null;
fieldId = null;
menuCommandTag = null;
@@ -1267,106 +718,10 @@ public class StyleClasses implements Ser
}
/**
- * An expression that specifies the Converter for this component.
- * If the value binding expression is a String,
- * the String is used as an ID to look up a Converter.
- * If the value binding expression is a Converter,
- * uses that instance as the converter.
- * The value can either be a static value (ID case only)
- * or an EL expression.
+ * Indicate the partially rendered Components in a case of a submit.
*/
- @TagAttribute
- @UIComponentTagAttribute(type = "javax.faces.convert.Converter",</pre>
- </div>
- </td>
- </tr>
-</table>
-<table border="0" class="bodyTable">
- <tr class="a">
- <th>File</th>
- <th>Project</th>
- <th>Line</th>
- </tr>
- <tr class="b">
- <td>org/apache/myfaces/tobago/internal/util/HtmlWriterUtils.java</td>
- <td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/util/HtmlWriterUtils.html#55">55</a></td>
- </tr>
- <tr class="a">
- <td>org/apache/myfaces/tobago/internal/util/JsonWriterUtils.java</td>
- <td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/util/JsonWriterUtils.html#57">57</a></td>
- </tr>
- <tr class="b">
- <td colspan='3'>
- <div><pre> public JsonWriterUtils(final Writer out, final String characterEncoding) {
- super(out, characterEncoding);
- }
-
- @Override
- protected void writeEncodedValue(final char[] text, final int start,
- final int length, final boolean isAttribute) throws IOException {
-
- int localIndex = -1;
-
- final int end = start + length;
- for (int i = start; i < end; i++) {
- char ch = text[i];
- if (ch >= CHARS_TO_ESCAPE.length || CHARS_TO_ESCAPE[ch] != null) {
- localIndex = i;
- break;
- }
- }
- final Writer out = getOut();
-
- if (localIndex == -1) {
- // no need to escape
- out.write(text, start, length);
- } else {
- // write until localIndex and then encode the remainder
- out.write(text, start, localIndex);
-
- final ResponseWriterBuffer buffer = getBuffer();
-
- for (int i = localIndex; i < end; i++) {
- final char ch = text[i];
-
- // Tilde or less...
- if (ch < CHARS_TO_ESCAPE.length) {
- if (isAttribute && ch == '&' && (i + 1 < end) && text[i + 1] == '{') {
- // HTML 4.0, section B.7.1: ampersands followed by
- // an open brace don't get escaped
- buffer.addToBuffer('&');
- } else if (CHARS_TO_ESCAPE[ch] != null) {
- buffer.addToBuffer(CHARS_TO_ESCAPE[ch]);
- } else {
- buffer.addToBuffer(ch);
- }
- } else if (isUtf8()) {
- buffer.addToBuffer(ch);
- } else if (ch <= 0xff) {
- // ISO-8859-1 entities: encode as needed
- buffer.flushBuffer();
-
- out.write('&');
- char[] chars = ISO8859_1_ENTITIES[ch - 0xA0];
- out.write(chars, 0, chars.length);
- out.write(';');
- } else {
- buffer.flushBuffer();
-
- // Double-byte characters to encode.
- // PENDING: when outputting to an encoding that
- // supports double-byte characters (UTF-8, for example),
- // we should not be encoding
- writeDecRef(ch);
- }
- }
-
- buffer.flushBuffer();
- }
- }
-}</pre>
+ @TagAttribute
+ @UIComponentTagAttribute(type = "java.lang.String[]")</pre>
</div>
</td>
</tr>
@@ -1380,8 +735,8 @@ public class StyleClasses implements Ser
<tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a
- href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#268">268</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#268">268</a>
</td>
</tr>
<tr class="a">
@@ -1407,6 +762,10 @@ public class StyleClasses implements Ser
this.label = label;
}
+ /*public void setHeight(String height) {
+ this.height = height;
+ } */
+
/**
* A method binding EL expression,
* accepting FacesContext, UIComponent,
@@ -1503,11 +862,11 @@ public class StyleClasses implements Ser
}
/**
- * An expression that specifies the validator message
+ * Range of items to render.
*/
@TagAttribute
@UIComponentTagAttribute()
- public void setValidatorMessage(javax.el.ValueExpression validatorMessage) {</pre>
+ public void setRenderRange(javax.el.ValueExpression renderRange) {</pre>
</div>
</td>
</tr>
@@ -1519,16 +878,112 @@ public class StyleClasses implements Ser
<th>Line</th>
</tr>
<tr class="b">
- <td>org/apache/myfaces/tobago/internal/taglib/extension/TextareaExtensionTag.java</td>
+ <td>org/apache/myfaces/tobago/internal/util/HtmlWriterUtils.java</td>
+ <td>Tobago Core</td>
+ <td><a href="./xref/org/apache/myfaces/tobago/internal/util/HtmlWriterUtils.html#55">55</a></td>
+ </tr>
+ <tr class="a">
+ <td>org/apache/myfaces/tobago/internal/util/JavascriptWriterUtils.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/TextareaExtensionTag.html#313">313</a></td>
+ <td><a href="./xref/org/apache/myfaces/tobago/internal/util/JavascriptWriterUtils.html#53">53</a></td>
+ </tr>
+ <tr class="b">
+ <td>org/apache/myfaces/tobago/internal/util/JsonWriterUtils.java</td>
+ <td>Tobago Core</td>
+ <td><a href="./xref/org/apache/myfaces/tobago/internal/util/JsonWriterUtils.html#57">57</a></td>
+ </tr>
+ <tr class="a">
+ <td colspan='3'>
+ <div><pre> public HtmlWriterUtils(final Writer out, final String characterEncoding) {
+ super(out, characterEncoding);
+ }
+
+ @Override
+ protected void writeEncodedValue(final char[] text, final int start,
+ final int length, final boolean isAttribute) throws IOException {
+
+ int localIndex = -1;
+
+ final int end = start + length;
+ for (int i = start; i < end; i++) {
+ char ch = text[i];
+ if (ch >= CHARS_TO_ESCAPE.length || CHARS_TO_ESCAPE[ch] != null) {
+ localIndex = i;
+ break;
+ }
+ }
+ final Writer out = getOut();
+
+ if (localIndex == -1) {
+ // no need to escape
+ out.write(text, start, length);
+ } else {
+ // write until localIndex and then encode the remainder
+ out.write(text, start, localIndex);
+
+ final ResponseWriterBuffer buffer = getBuffer();
+
+ for (int i = localIndex; i < end; i++) {
+ final char ch = text[i];
+
+ // Tilde or less...
+ if (ch < CHARS_TO_ESCAPE.length) {
+ if (isAttribute && ch == '&' && (i + 1 < end) && text[i + 1] == '{') {
+ // HTML 4.0, section B.7.1: ampersands followed by
+ // an open brace don't get escaped
+ buffer.addToBuffer('&');
+ } else if (CHARS_TO_ESCAPE[ch] != null) {
+ buffer.addToBuffer(CHARS_TO_ESCAPE[ch]);
+ } else {
+ buffer.addToBuffer(ch);
+ }
+ } else if (isUtf8()) {
+ buffer.addToBuffer(ch);
+ } else if (ch <= 0xff) {
+ // ISO-8859-1 entities: encode as needed
+ buffer.flushBuffer();
+
+ out.write('&');
+ char[] chars = ISO8859_1_ENTITIES[ch - 0xA0];
+ out.write(chars, 0, chars.length);
+ out.write(';');
+ } else {
+ buffer.flushBuffer();
+
+ // Double-byte characters to encode.
+ // PENDING: when outputting to an encoding that
+ // supports double-byte characters (UTF-8, for example),
+ // we should not be encoding
+ writeDecRef(ch);
+ }
+ }
+
+ buffer.flushBuffer();
+ }
+ }
+}</pre>
+ </div>
+ </td>
+ </tr>
+</table>
+<table border="0" class="bodyTable">
+ <tr class="b">
+ <th>File</th>
+ <th>Project</th>
+ <th>Line</th>
</tr>
<tr class="a">
+ <td>org/apache/myfaces/tobago/internal/taglib/extension/TextareaExtensionTag.java</td>
+ <td>Tobago Core</td>
+ <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/TextareaExtensionTag.html#313">313</a>
+ </td>
+ </tr>
+ <tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/TimeExtensionTag.java</td>
<td>Tobago Core</td>
<td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/TimeExtensionTag.html#327">327</a></td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
<div><pre> }
@@ -1570,7 +1025,7 @@ public class StyleClasses implements Ser
this.tip = tip;
}
- /**
+ /**
* The width for the label component. Default: 'auto'.
* This value is used in the gridLayouts columns attribute.
* See gridLayout tag for valid values.
@@ -1641,22 +1096,23 @@ public class StyleClasses implements Ser
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
+ <tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/TextareaExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/TextareaExtensionTag.html#199">199</a></td>
+ <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/TextareaExtensionTag.html#199">199</a>
+ </td>
</tr>
- <tr class="a">
+ <tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/TimeExtensionTag.java</td>
<td>Tobago Core</td>
<td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/TimeExtensionTag.html#212">212</a></td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
<div><pre> }
@@ -1765,39 +1221,43 @@ public class StyleClasses implements Ser
}
/**
- * Flag indicating this component should rendered as an inline element.
- * @deprecated This should be handled by e.g. a flow layout manager (since 1.5.0)
+ * Indicate markup of this component.
+ * Possible value is 'none'. But this can be overridden in the theme.
*/
@TagAttribute
- @UIComponentTagAttribute(type = "boolean", defaultValue = "false")</pre>
+ @UIComponentTagAttribute(defaultValue = "none", type = "java.lang.String[]")</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
+ <tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a
- href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#280">280</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#280">280</a>
</td>
</tr>
- <tr class="a">
+ <tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.java</td>
<td>Tobago Core</td>
<td><a
href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.html#287">287</a>
</td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
<div><pre> }
+ /*public void setHeight(String height) {
+ this.height = height;
+ } */
+
/**
* A method binding EL expression,
* accepting FacesContext, UIComponent,
@@ -1807,7 +1267,7 @@ public class StyleClasses implements Ser
@TagAttribute
@UIComponentTagAttribute(type = {},
expression = DynamicExpression.METHOD_EXPRESSION,
- methodSignature = {"javax.faces.context.FacesContext", "javax.faces.component.UIComponent", "java.lang.Object"})
+ methodSignature = { "javax.faces.context.FacesContext", "javax.faces.component.UIComponent", "java.lang.Object" })
public void setValidator(javax.el.MethodExpression validator) {
this.validator = validator;
}
@@ -1894,37 +1354,38 @@ public class StyleClasses implements Ser
}
/**
- * An expression that specifies the validator message
+ * Range of items to render.
*/
@TagAttribute
@UIComponentTagAttribute()
- public void setValidatorMessage(javax.el.ValueExpression validatorMessage) {</pre>
+ public void setRenderRange(javax.el.ValueExpression renderRange) {</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
+ <tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectOneChoiceExtensionTag.java</td>
<td>Tobago Core</td>
<td><a
href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneChoiceExtensionTag.html#187">187</a>
</td>
</tr>
- <tr class="a">
+ <tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectOneRadioExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneRadioExtensionTag.html#194">194</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneRadioExtensionTag.html#194">194</a>
</td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
- <div><pre> markup = null;
+ <div><pre> requiredMessage = null;
fieldId = null;
}
@@ -2021,8 +1482,10 @@ public class StyleClasses implements Ser
public void setConverter(javax.el.ValueExpression converter) {
this.converter = converter;
}
+
/**
* Flag indicating this component should rendered as an inline element.
+ * @deprecated This should be handled by e.g. a flow layout manager (since 1.5.0)
*/
@TagAttribute
@UIComponentTagAttribute(type = "boolean", defaultValue = "false")</pre>
@@ -2031,32 +1494,43 @@ public class StyleClasses implements Ser
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
+ <tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectBooleanCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectBooleanCheckboxExtensionTag.html#265">265</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectBooleanCheckboxExtensionTag.html#265">265</a>
</td>
</tr>
- <tr class="a">
- <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.java</td>
+ <tr class="b">
+ <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a
- href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.html#287">287</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#280">280</a>
+ </td>
+ </tr>
+ <tr class="a">
+ <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyListboxExtensionTag.java</td>
+ <td>Tobago Core</td>
+ <td><a
+ href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyListboxExtensionTag.html#274">274</a>
</td>
</tr>
<tr class="b">
+ <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.java</td>
+ <td>Tobago Core</td>
+ <td><a
+ href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.html#287">287</a>
+ </td>
+ </tr>
+ <tr class="a">
<td colspan='3'>
<div><pre> }
- /*public void setHeight(String height) {
- this.height = height;
- } */
-
/**
* A method binding EL expression,
* accepting FacesContext, UIComponent,
@@ -2153,103 +1627,113 @@ public class StyleClasses implements Ser
}
/**
- * Range of items to render.
+ * Flag indicating that a value is required.
+ * If the value is an empty string a
+ * ValidationError occurs and a Error Message is rendered.
*/
@TagAttribute
- @UIComponentTagAttribute()</pre>
+ @UIComponentTagAttribute(type = "boolean", defaultValue = "false")</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
- <td>org/apache/myfaces/tobago/application/LabelValueBindingFacesMessage.java</td>
+ <tr class="a">
+ <td>org/apache/myfaces/tobago/internal/component/AbstractUIPage.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/application/LabelValueBindingFacesMessage.html#42">42</a></td>
+ <td><a href="./xref/org/apache/myfaces/tobago/internal/component/AbstractUIPage.html#162">162</a></td>
</tr>
- <tr class="a">
- <td>org/apache/myfaces/tobago/application/LabelValueBindingFacesMessage.java</td>
+ <tr class="b">
+ <td>org/apache/myfaces/tobago/component/UIViewRoot.java</td>
<td>Tobago Deprecation</td>
- <td><a href="./xref/org/apache/myfaces/tobago/application/LabelValueBindingFacesMessage.html#43">43</a></td>
+ <td><a href="./xref/org/apache/myfaces/tobago/component/UIViewRoot.html#234">234</a></td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
- <div><pre> Severity severity, String summary, String detail,
- Locale locale, Object... args) {
- super(severity, summary, detail);
- this.locale = locale;
- this.args = args;
- }
-
- public LabelValueBindingFacesMessage(String summary, String detail) {
- super(summary, detail);
- }
-
- public LabelValueBindingFacesMessage(String summary) {
- super(summary);
+ <div><pre> processDecodes0(context);
+ }
}
- @Override
- public String getDetail() {
- String detail = super.getDetail();
- if (args != null && args.length > 0) {
- if (args.length == 1 && UIComponentTag.isValueReference(args[0].toString())) {
- FacesContext facesContext = FacesContext.getCurrentInstance();
- ValueBinding value = facesContext.getApplication().createValueBinding(detail);
- return MessageUtils.getFormatedMessage(detail, locale, value.getValue(facesContext));
+ private void decodeActionComponent(
+ FacesContext facesContext, AbstractUIPage page, Map<String,
+ UIComponent> ajaxComponents) {
+ String actionId = page.getActionId();
+ UIComponent actionComponent = null;
+ if (actionId != null) {
+ actionComponent = findComponent(actionId);
+ if (actionComponent == null && FacesVersion.supports20() && FacesVersion.isMyfaces()) {
+ String bugActionId = actionId.replaceAll(":\\d+:", ":");
+ try {
+ actionComponent = findComponent(bugActionId);
+ //LOG.info("command = \"" + actionComponent + "\"", new Exception());
+ } catch (Exception e) {
+ // ignore
+ }
+ }
+ }
+ if (actionComponent == null) {
+ return;
+ }
+ for (UIComponent ajaxComponent : ajaxComponents.values()) {
+ UIComponent component = actionComponent;
+ while (component != null) {
+ if (component == ajaxComponent) {
+ return;
+ }
+ component = component.getParent();
}
- return MessageUtils.getFormatedMessage(detail, locale, args);
}
- return detail;
+ invokeOnComponent(facesContext, actionId, APPLY_REQUEST_VALUES_CALLBACK);
}
+
@Override
- public String getSummary() {
- String summary = super.getSummary();
- if (args != null && args.length > 0) {
- if (args.length == 1 && UIComponentTag.isValueReference(args[0].toString())) {
- FacesContext facesContext = FacesContext.getCurrentInstance();
- ValueBinding value = facesContext.getApplication().createValueBinding(summary);
- return MessageUtils.getFormatedMessage(summary, locale, value.getValue(facesContext));
- }
- return MessageUtils.getFormatedMessage(summary, locale, args);
+ public void processValidators(FacesContext context) {
+ if (context == null) {
+ throw new NullPointerException("context");
}
- return summary;
- }
-}</pre>
+ Map<String, UIComponent> ajaxComponents = AjaxInternalUtils.getAjaxComponents(context);
+ if (ajaxComponents != null) {
+ for (Map.Entry<String, UIComponent> entry : ajaxComponents.entrySet()) {
+ FacesContextUtils.setAjaxComponentId(context, entry.getKey());
+ invokeOnComponent(context, entry.getKey(), PROCESS_VALIDATION_CALLBACK);
+ }
+ } else {
+ super.processValidators(context);
+ }</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
+ <tr class="a">
<td>org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectManyCheckboxRenderer.java</td>
<td>Tobago Theme Scarborough</td>
- <td><a
- href="./xref/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectManyCheckboxRenderer.html#84">84</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectManyCheckboxRenderer.html#83">83</a>
</td>
</tr>
- <tr class="a">
+ <tr class="b">
<td>org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.java</td>
<td>Tobago Theme Scarborough</td>
- <td><a
- href="./xref/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.html#84">84</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.html#83">83</a>
</td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
- <div><pre> boolean checked = item.getValue().equals(value);
+ <div><pre> boolean checked = RenderUtils.contains(values, item.getValue());
writer.writeAttribute(HtmlAttributes.CHECKED, checked);
writer.writeNameAttribute(id);
writer.writeIdAttribute(itemId);
@@ -2290,23 +1774,24 @@ public class StyleClasses implements Ser
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
+ <tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/MenuCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
<td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/MenuCheckboxExtensionTag.html#74">74</a>
</td>
</tr>
- <tr class="a">
+ <tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/MenuRadioExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/MenuRadioExtensionTag.html#80">80</a></td>
+ <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/MenuRadioExtensionTag.html#80">80</a>
+ </td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
<div><pre> private javax.el.ValueExpression renderedPartially;
private String fieldId;
@@ -2359,34 +1844,34 @@ public class StyleClasses implements Ser
facetTag = new FacetTag();
facetTag.setPageContext(pageContext);
facetTag.setParent(menuCommandTag);
- facetTag.setName(Facets.RADIO);</pre>
+ facetTag.setName(Facets.CHECKBOX);</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
+ <tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.java</td>
<td>Tobago Core</td>
<td><a
href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.html#193">193</a>
</td>
</tr>
- <tr class="a">
+ <tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectOneListboxExtensionTag.java</td>
<td>Tobago Core</td>
<td><a
href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneListboxExtensionTag.html#186">186</a>
</td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
- <div><pre> markup = null;
+ <div><pre> requiredMessage = null;
fieldId = null;
}
@@ -2420,9 +1905,9 @@ public class StyleClasses implements Ser
*/
@TagAttribute
@UIComponentTagAttribute(
- type = {},
- expression = DynamicExpression.METHOD_EXPRESSION_REQUIRED,
- methodSignature = "javax.faces.event.ValueChangeEvent")
+ type = {},
+ expression = DynamicExpression.METHOD_EXPRESSION_REQUIRED,
+ methodSignature = "javax.faces.event.ValueChangeEvent")
public void setValueChangeListener(javax.el.MethodExpression valueChangeListener) {
this.valueChangeListener = valueChangeListener;
}
@@ -2465,35 +1950,34 @@ public class StyleClasses implements Ser
}
/**
- * A method binding EL expression,
- * accepting FacesContext, UIComponent,
- * and Object parameters, and returning void, that validates
- * the component's local value.
+ * Text value to display as unselected label.
*/
@TagAttribute
- @UIComponentTagAttribute(type = {},</pre>
+ @UIComponentTagAttribute()</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
+ <tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/MenuCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/MenuCheckboxExtensionTag.html#131">131</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/MenuCheckboxExtensionTag.html#131">131</a>
</td>
</tr>
- <tr class="a">
+ <tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/MenuRadioExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/MenuRadioExtensionTag.html#140">140</a></td>
+ <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/MenuRadioExtensionTag.html#140">140</a>
+ </td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
<div><pre> if (value != null) {
inTag.setValue(value);
@@ -2548,16 +2032,23 @@ public class StyleClasses implements Ser
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
+ <tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#270">270</a>
+ </td>
+ </tr>
+ <tr class="b">
+ <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyListboxExtensionTag.java</td>
+ <td>Tobago Core</td>
<td><a
- href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#270">270</a>
+ href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyListboxExtensionTag.html#264">264</a>
</td>
</tr>
<tr class="a">
@@ -2581,6 +2072,10 @@ public class StyleClasses implements Ser
this.label = label;
}
+ /*public void setHeight(String height) {
+ this.height = height;
+ } */
+
/**
* A method binding EL expression,
* accepting FacesContext, UIComponent,
@@ -2651,8 +2146,12 @@ public class StyleClasses implements Ser
this.labelWidth = labelWidth;
}
+ /**
+ * Indicate markup of this component.
+ * Possible value is 'none'. But this can be overridden in the theme.
+ */
@TagAttribute
- @UIComponentTagAttribute(type = "java.lang.Integer")</pre>
+ @UIComponentTagAttribute(defaultValue = "none", type = "java.lang.String[]")</pre>
</div>
</td>
</tr>
@@ -2666,8 +2165,8 @@ public class StyleClasses implements Ser
<tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a
- href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#194">194</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#194">194</a>
</td>
</tr>
<tr class="a">
@@ -2679,7 +2178,7 @@ public class StyleClasses implements Ser
</tr>
<tr class="b">
<td colspan='3'>
- <div><pre> focus = null;
+ <div><pre> renderRange = null;
validatorMessage = null;
converterMessage = null;
requiredMessage = null;
@@ -2711,8 +2210,6 @@ public class StyleClasses implements Ser
* that will be notified when a new value has been set for this input component.
* The expression must evaluate to a public method that takes a ValueChangeEvent
* parameter, with a return type of void.
- *
- * @param valueChangeListener
*/
@TagAttribute
@UIComponentTagAttribute(
@@ -2752,7 +2249,6 @@ public class StyleClasses implements Ser
/**
* Flag indicating this component should rendered as an inline element.
- * @deprecated This should be handled by e.g. a flow layout manager (since 1.5.0)
*/
@TagAttribute
@UIComponentTagAttribute(type = "boolean", defaultValue = "false")</pre>
@@ -2776,7 +2272,8 @@ public class StyleClasses implements Ser
<tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectOneRadioExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneRadioExtensionTag.html#296">296</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneRadioExtensionTag.html#296">296</a>
</td>
</tr>
<tr class="b">
@@ -2851,10 +2348,11 @@ public class StyleClasses implements Ser
}
/**
- * Range of items to render.
+ * Indicate markup of this component.
+ * Possible value is 'none'. But this can be overridden in the theme.
*/
@TagAttribute
- @UIComponentTagAttribute()</pre>
+ @UIComponentTagAttribute(defaultValue = "none", type = "java.lang.String[]")</pre>
</div>
</td>
</tr>
@@ -2881,7 +2379,7 @@ public class StyleClasses implements Ser
</tr>
<tr class="b">
<td colspan='3'>
- <div><pre> selectManyShuttleTag = null;
+ <div><pre> selectManyListboxTag = null;
labelTag = null;
focus = null;
validatorMessage = null;
@@ -2920,9 +2418,9 @@ public class StyleClasses implements Ser
*/
@TagAttribute
@UIComponentTagAttribute(
- type = {},
- expression = DynamicExpression.METHOD_EXPRESSION_REQUIRED,
- methodSignature = "javax.faces.event.ValueChangeEvent")
+ type = {},
+ expression = DynamicExpression.METHOD_EXPRESSION_REQUIRED,
+ methodSignature = "javax.faces.event.ValueChangeEvent")
public void setValueChangeListener(javax.el.MethodExpression valueChangeListener) {
this.valueChangeListener = valueChangeListener;
}
@@ -2955,11 +2453,11 @@ public class StyleClasses implements Ser
}
/**
- * Text value to display as label.
- * If text contains an underscore the next character is used as accesskey.
+ * Flag indicating this component should rendered as an inline element.
+ * @deprecated This should be handled by e.g. a flow layout manager (since 1.5.0)
*/
@TagAttribute
- @UIComponentTagAttribute()</pre>
+ @UIComponentTagAttribute(type = "boolean", defaultValue = "false")</pre>
</div>
</td>
</tr>
@@ -2973,8 +2471,8 @@ public class StyleClasses implements Ser
<tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a
- href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#194">194</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#194">194</a>
</td>
</tr>
<tr class="a">
@@ -2986,7 +2484,7 @@ public class StyleClasses implements Ser
</tr>
<tr class="b">
<td colspan='3'>
- <div><pre> focus = null;
+ <div><pre> renderRange = null;
validatorMessage = null;
converterMessage = null;
requiredMessage = null;
@@ -3018,14 +2516,12 @@ public class StyleClasses implements Ser
* that will be notified when a new value has been set for this input component.
* The expression must evaluate to a public method that takes a ValueChangeEvent
* parameter, with a return type of void.
- *
- * @param valueChangeListener
*/
@TagAttribute
@UIComponentTagAttribute(
- type = {},
- expression = DynamicExpression.METHOD_EXPRESSION_REQUIRED,
- methodSignature = "javax.faces.event.ValueChangeEvent")
+ type = {},
+ expression = DynamicExpression.METHOD_EXPRESSION_REQUIRED,
+ methodSignature = "javax.faces.event.ValueChangeEvent")
public void setValueChangeListener(javax.el.MethodExpression valueChangeListener) {
this.valueChangeListener = valueChangeListener;
}
@@ -3058,11 +2554,10 @@ public class StyleClasses implements Ser
}
/**
- * Text value to display as label.
- * If text contains an underscore the next character is used as accesskey.
+ * Flag indicating this component should rendered as an inline element.
*/
@TagAttribute
- @UIComponentTagAttribute()</pre>
+ @UIComponentTagAttribute(type = "boolean", defaultValue = "false")</pre>
</div>
</td>
</tr>
@@ -3076,20 +2571,27 @@ public class StyleClasses implements Ser
<tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a
- href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#197">197</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#197">197</a>
</td>
</tr>
<tr class="a">
+ <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyListboxExtensionTag.java</td>
+ <td>Tobago Core</td>
+ <td><a
+ href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyListboxExtensionTag.html#187">187</a>
+ </td>
+ </tr>
+ <tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectOneListboxExtensionTag.java</td>
<td>Tobago Core</td>
<td><a
href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneListboxExtensionTag.html#186">186</a>
</td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
- <div><pre> markup = null;
+ <div><pre> requiredMessage = null;
fieldId = null;
}
@@ -3118,8 +2620,6 @@ public class StyleClasses implements Ser
* that will be notified when a new value has been set for this input component.
* The expression must evaluate to a public method that takes a ValueChangeEvent
* parameter, with a return type of void.
- *
- * @param valueChangeListener
*/
@TagAttribute
@UIComponentTagAttribute(
@@ -3158,25 +2658,96 @@ public class StyleClasses implements Ser
}
/**
- * Text value to display as label.
- * If text contains an underscore the next character is used as accesskey.
+ * Flag indicating this component should rendered as an inline element.
*/
@TagAttribute
- @UIComponentTagAttribute()</pre>
+ @UIComponentTagAttribute(type = "boolean", defaultValue = "false")</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
+ <tr class="a">
+ <td>org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java</td>
+ <td>Tobago Deprecation</td>
+ <td><a href="./xref/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.html#571">571</a></td>
+ </tr>
+ <tr class="b">
+ <td>org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java</td>
+ <td>Tobago Theme Standard</td>
+ <td><a href="./xref/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.html#454">454</a></td>
+ </tr>
+ <tr class="a">
+ <td colspan='3'>
+ <div><pre> int rowIndex = ((UIData) partiallyComponent).getRowIndex();
+ if (rowIndex >= 0 && clientId.endsWith(Integer.toString(rowIndex))) {
+ return clientId.substring(0, clientId.lastIndexOf(UINamingContainer.getSeparatorChar(context)));
+ }
+ }
+ return clientId;
+ }
+ LOG.error("No Component found for id " + componentId + " search base component " + component.getClientId(context));
+ return null;
+ }
+
+ /**
+ * @deprecated Please use HtmlRendererUtils
+ */
+ @Deprecated
+ public static String toStyleString(String key, Integer value) {
+ StringBuilder buf = new StringBuilder();
+ buf.append(key);
+ buf.append(":");
+ buf.append(value);
+ buf.append("px; ");
+ return buf.toString();
+ }
+
+ /**
+ * @deprecated Please use HtmlRendererUtils
+ */
+ @Deprecated
+ public static String toStyleString(String key, String value) {
+ StringBuilder buf = new StringBuilder();
+ buf.append(key);
+ buf.append(":");
+ buf.append(value);
+ buf.append("; ");
+ return buf.toString();
+ }
+
+ /**
+ * @deprecated Please use HtmlRendererUtils
+ */
+ @Deprecated
+ public static void renderTip(UIComponent component, TobagoResponseWriter writer) throws IOException {</pre>
+ </div>
+ </td>
+ </tr>
+</table>
+<table border="0" class="bodyTable">
<tr class="b">
+ <th>File</th>
+ <th>Project</th>
+ <th>Line</th>
+ </tr>
+ <tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectBooleanCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectBooleanCheckboxExtensionTag.html#265">265</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectBooleanCheckboxExtensionTag.html#265">265</a>
+ </td>
+ </tr>
+ <tr class="b">
+ <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.java</td>
+ <td>Tobago Core</td>
+ <td><a
+ href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.html#287">287</a>
</td>
</tr>
<tr class="a">
@@ -3260,8 +2831,12 @@ public class StyleClasses implements Ser
this.labelWidth = labelWidth;
}
+ /**
+ * Indicate markup of this component.
+ * Possible value is 'none'. But this can be overridden in the theme.
+ */
@TagAttribute
- @UIComponentTagAttribute(type = "java.lang.Integer")</pre>
+ @UIComponentTagAttribute(defaultValue = "none", type = "java.lang.String[]")</pre>
</div>
</td>
</tr>
@@ -3273,261 +2848,211 @@ public class StyleClasses implements Ser
<th>Line</th>
</tr>
<tr class="b">
- <td>org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java</td>
- <td>Tobago Deprecation</td>
- <td><a href="./xref/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.html#571">571</a></td>
+ <td>org/apache/myfaces/tobago/internal/taglib/extension/FileExtensionTag.java</td>
+ <td>Tobago Core</td>
+ <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/FileExtensionTag.html#298">298</a></td>
</tr>
<tr class="a">
- <td>org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java</td>
- <td>Tobago Theme Standard</td>
- <td><a href="./xref/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.html#450">450</a></td>
+ <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyListboxExtensionTag.java</td>
+ <td>Tobago Core</td>
+ <td><a
+ href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyListboxExtensionTag.html#354">354</a>
+ </td>
</tr>
<tr class="b">
- <td colspan='3'>
- <div><pre> int rowIndex = ((UISheet) partiallyComponent).getRowIndex();
- if (rowIndex >= 0 && clientId.endsWith(Integer.toString(rowIndex))) {
- return clientId.substring(0, clientId.lastIndexOf(NamingContainer.SEPARATOR_CHAR));
- }
- }
- return clientId;
- }
- LOG.error("No Component found for id " + componentId + " search base component " + component.getClientId(context));
- return null;
- }
-
- /**
- * @deprecated since Tobago 1.5.0.
- */
- @Deprecated
- public static String toStyleString(String key, Integer value) {
- StringBuilder buf = new StringBuilder();
- buf.append(key);
- buf.append(":");
- buf.append(value);
- buf.append("px; ");
- return buf.toString();
- }
-
- /**
- * @deprecated since Tobago 1.5.0.
- */
- @Deprecated
- public static String toStyleString(String key, String value) {
- StringBuilder buf = new StringBuilder();
- buf.append(key);
- buf.append(":");
- buf.append(value);
- buf.append("; ");
- return buf.toString();
- }
-
- /**
- * @deprecated since Tobago 1.5.0. Please use getTitleFromTipAndMessages and write it out.
- */
- @Deprecated
- public static void renderTip(UIComponent component, TobagoResponseWriter writer) throws IOException {</pre>
- </div>
- </td>
- </tr>
-</table>
-<table border="0" class="bodyTable">
- <tr class="a">
- <th>File</th>
- <th>Project</th>
- <th>Line</th>
- </tr>
- <tr class="b">
- <td>org/apache/myfaces/tobago/internal/taglib/extension/DateExtensionTag.java</td>
+ <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/DateExtensionTag.html#341">341</a></td>
+ <td><a
+ href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.html#367">367</a>
+ </td>
</tr>
<tr class="a">
- <td>org/apache/myfaces/tobago/internal/taglib/extension/TimeExtensionTag.java</td>
- <td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/TimeExtensionTag.html#316">316</a></td>
- </tr>
- <tr class="b">
<td colspan='3'>
<div><pre> }
- /**
- * Flag indicating this component should rendered as an inline element.
- * @deprecated This should be handled by e.g. a flow layout manager (since 1.5.0)
- */
@TagAttribute
- @UIComponentTagAttribute(type = "boolean", defaultValue = "false")
- @Deprecated
- public void setInline(javax.el.ValueExpression inline) {
- this.inline = inline;
+ @UIComponentTagAttribute(type = "java.lang.Integer")
+ public void setTabIndex(javax.el.ValueExpression tabIndex) {
+ this.tabIndex = tabIndex;
}
/**
- * Flag indicating that this component will prohibit changes by the user.
+ * Flag indicating this component should receive the focus.
*/
@TagAttribute
@UIComponentTagAttribute(type = "boolean", defaultValue = "false")
- public void setReadonly(javax.el.ValueExpression readonly) {
- this.readonly = readonly;
+ public void setFocus(javax.el.ValueExpression focus) {
+ this.focus = focus;
}
/**
- * Flag indicating that this element is disabled.
+ * An expression that specifies the validator message
*/
- @TagAttribute()
- @UIComponentTagAttribute(type = "boolean", defaultValue = "false")
- public void setDisabled(javax.el.ValueExpression disabled) {
- this.disabled = disabled;
+ @TagAttribute
+ @UIComponentTagAttribute()
+ public void setValidatorMessage(javax.el.ValueExpression validatorMessage) {
+ this.validatorMessage = validatorMessage;
}
/**
- * Flag indicating that a value is required.
- * If the value is an empty string a
- * ValidationError occurs and a Error Message is rendered.
+ * An expression that specifies the converter message
*/
@TagAttribute
- @UIComponentTagAttribute(type = "boolean", defaultValue = "false")
- public void setRequired(javax.el.ValueExpression required) {
- this.required = required;
+ @UIComponentTagAttribute()
+ public void setConverterMessage(javax.el.ValueExpression converterMessage) {
+ this.converterMessage = converterMessage;
}
/**
- * Text value to display as tooltip.
+ * An expression that specifies the required message
*/
@TagAttribute
@UIComponentTagAttribute()
- public void setTip(javax.el.ValueExpression tip) {
- this.tip = tip;
+ public void setRequiredMessage(javax.el.ValueExpression requiredMessage) {
+ this.requiredMessage = requiredMessage;
}
/**
- * The width for the label component. Default: 'auto'.
- * This value is used in the gridLayouts columns attribute.
- * See gridLayout tag for valid values.
+ * The component identifier for the input field component inside of the container.
+ * This value must be unique within the closest parent component that is a naming container.
*/
- @TagAttribute
- @UIComponentTagAttribute()
- public void setLabelWidth(javax.el.ValueExpression labelWidth) {
- this.labelWidth = labelWidth;
+ @TagAttribute(rtexprvalue = true)
+ @UIComponentTagAttribute
+ public void setFieldId(String fieldId) {
+ this.fieldId = fieldId;
}
- @TagAttribute
- @UIComponentTagAttribute(type = "java.lang.Integer")</pre>
+ /**
+ * The component identifier for this component.
+ * This value must be unique within the closest parent component that is a naming container.
+ * For tx components the id will be set to the container (e. g. the panel).
+ * To set the id of the input field, you have to use the attribute "fieldId".
+ */
+ @TagAttribute(rtexprvalue = true)
+ @UIComponentTagAttribute
+ public void setId(String id) {
+ super.setId(id);
+ }
+}</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
- <td>org/apache/myfaces/tobago/internal/taglib/extension/FileExtensionTag.java</td>
+ <tr class="a">
+ <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectBooleanCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/FileExtensionTag.html#298">298</a></td>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectBooleanCheckboxExtensionTag.html#198">198</a>
+ </td>
</tr>
- <tr class="a">
+ <tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.java</td>
<td>Tobago Core</td>
<td><a
- href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.html#367">367</a>
+ href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.html#212">212</a>
</td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
- <div><pre> }
+ <div><pre> @UIComponentTagAttribute(type = "java.lang.Boolean")
+ public void setValue(javax.el.ValueExpression value) {
+ this.value = value;
+ }
+ /**
+ * MethodBinding representing a value change listener method
+ * that will be notified when a new value has been set for this input component.
+ * The expression must evaluate to a public method that takes a ValueChangeEvent
+ * parameter, with a return type of void.
+ *
+ * @param valueChangeListener
+ */
@TagAttribute
- @UIComponentTagAttribute(type = "java.lang.Integer")
- public void setTabIndex(javax.el.ValueExpression tabIndex) {
- this.tabIndex = tabIndex;
+ @UIComponentTagAttribute(
+ type = {},
+ expression = DynamicExpression.METHOD_EXPRESSION_REQUIRED,
+ methodSignature = "javax.faces.event.ValueChangeEvent")
+ public void setValueChangeListener(javax.el.MethodExpression valueChangeListener) {
+ this.valueChangeListener = valueChangeListener;
}
/**
- * Flag indicating this component should receive the focus.
+ * Flag indicating that this element is disabled.
*/
- @TagAttribute
+ @TagAttribute()
@UIComponentTagAttribute(type = "boolean", defaultValue = "false")
- public void setFocus(javax.el.ValueExpression focus) {
- this.focus = focus;
+ public void setDisabled(javax.el.ValueExpression disabled) {
+ this.disabled = disabled;
}
/**
- * An expression that specifies the validator message
+ * Flag indicating that this component will prohibit changes by the user.
*/
@TagAttribute
- @UIComponentTagAttribute()
- public void setValidatorMessage(javax.el.ValueExpression validatorMessage) {
- this.validatorMessage = validatorMessage;
+ @UIComponentTagAttribute(type = "boolean", defaultValue = "false")
+ public void setReadonly(javax.el.ValueExpression readonly) {
+ this.readonly = readonly;
}
/**
- * An expression that specifies the converter message
+ * Clientside script function to add to this component's onchange handler.
*/
@TagAttribute
@UIComponentTagAttribute()
- public void setConverterMessage(javax.el.ValueExpression converterMessage) {
- this.converterMessage = converterMessage;
+ public void setOnchange(javax.el.ValueExpression onchange) {
+ this.onchange = onchange;
}
/**
- * An expression that specifies the required message
+ * Text value to display as label.
+ * If text contains an underscore the next character is used as accesskey.
*/
@TagAttribute
@UIComponentTagAttribute()
- public void setRequiredMessage(javax.el.ValueExpression requiredMessage) {
- this.requiredMessage = requiredMessage;
- }
-
- /**
- * The component identifier for the input field component inside of the container.
- * This value must be unique within the closest parent component that is a naming container.
- */
- @TagAttribute(rtexprvalue = true)
- @UIComponentTagAttribute
- public void setFieldId(String fieldId) {
- this.fieldId = fieldId;
+ public void setLabel(javax.el.ValueExpression label) {
+ this.label = label;
}
/**
- * The component identifier for this component.
- * This value must be unique within the closest parent component that is a naming container.
- * For tx components the id will be set to the container (e. g. the panel).
- * To set the id of the input field, you have to use the attribute "fieldId".
+ * Label to be displayed to the user for this option. This label will displayed beneath the component like
+ * the label of other check box components.
*/
- @TagAttribute(rtexprvalue = true)
- @UIComponentTagAttribute
- public void setId(String id) {
- super.setId(id);
- }
-}</pre>
+ @TagAttribute
+ @UIComponentTagAttribute()
+ public void setItemLabel(ValueExpression itemLabel) {</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
+ <tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectBooleanCheckboxExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectBooleanCheckboxExtensionTag.html#198">198</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectBooleanCheckboxExtensionTag.html#198">198</a>
</td>
</tr>
- <tr class="a">
- <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.java</td>
+ <tr class="b">
+ <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectOneListboxExtensionTag.java</td>
<td>Tobago Core</td>
<td><a
- href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.html#212">212</a>
+ href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneListboxExtensionTag.html#205">205</a>
</td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
- <div><pre> @UIComponentTagAttribute(type = "java.lang.Object")
+ <div><pre> @UIComponentTagAttribute(type = "java.lang.Boolean")
public void setValue(javax.el.ValueExpression value) {
this.value = value;
}
@@ -3542,9 +3067,9 @@ public class StyleClasses implements Ser
*/
@TagAttribute
@UIComponentTagAttribute(
- type = {},
- expression = DynamicExpression.METHOD_EXPRESSION_REQUIRED,
- methodSignature = "javax.faces.event.ValueChangeEvent")
+ type = {},
+ expression = DynamicExpression.METHOD_EXPRESSION_REQUIRED,
+ methodSignature = "javax.faces.event.ValueChangeEvent")
public void setValueChangeListener(javax.el.MethodExpression valueChangeListener) {
this.valueChangeListener = valueChangeListener;
}
@@ -3587,35 +3112,36 @@ public class StyleClasses implements Ser
}
/**
- * Text value to display as unselected label.
+ * Label to be displayed to the user for this option. This label will displayed beneath the component like
+ * the label of other check box components.
*/
@TagAttribute
- @UIComponentTagAttribute()
- public void setUnselectedLabel(javax.el.ValueExpression unselectedLabel) {</pre>
+ @UIComponentTagAttribute()</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
+ <tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectOneListboxExtensionTag.java</td>
<td>Tobago Core</td>
<td><a
href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneListboxExtensionTag.html#292">292</a>
</td>
</tr>
- <tr class="a">
+ <tr class="b">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectOneRadioExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneRadioExtensionTag.html#308">308</a>
+ <td>
+ <a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneRadioExtensionTag.html#308">308</a>
</td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
<div><pre> }
@@ -3675,124 +3201,36 @@ public class StyleClasses implements Ser
}
/**
- * Range of items to render.
+ * An expression that specifies the validator message
*/
@TagAttribute
@UIComponentTagAttribute()
- public void setRenderRange(javax.el.ValueExpression renderRange) {</pre>
+ public void setValidatorMessage(javax.el.ValueExpression validatorMessage) {</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
- <td>org/apache/myfaces/tobago/internal/taglib/extension/DateExtensionTag.java</td>
- <td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/DateExtensionTag.html#282">282</a></td>
- </tr>
<tr class="a">
- <td>org/apache/myfaces/tobago/internal/taglib/extension/TimeExtensionTag.java</td>
+ <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectOneChoiceExtensionTag.java</td>
<td>Tobago Core</td>
- <td><a href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/TimeExtensionTag.html#248">248</a></td>
+ <td><a
+ href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneChoiceExtensionTag.html#304">304</a>
+ </td>
</tr>
<tr class="b">
- <td colspan='3'>
- <div><pre> }
-
- /**
- * Flag indicating this component should receive the focus.
- */
- @TagAttribute
- @UIComponentTagAttribute(type = "boolean", defaultValue = "false")
- public void setFocus(javax.el.ValueExpression focus) {
- this.focus = focus;
- }
-
- /**
- * The value binding expression linking this
- * component to a property in a backing bean.
- */
- @TagAttribute
- @UIComponentTagAttribute(type = "javax.faces.component.UIComponent")
- public void setBinding(javax.el.ValueExpression binding) {
- this.binding = binding;
- }
-
- /**
- * Flag indicating whether or not this component should be rendered
- * (during Render Response Phase), or processed on any subsequent form submit.
- */
- @TagAttribute
- @UIComponentTagAttribute(type = "boolean", defaultValue = "true")
- public void setRendered(javax.el.ValueExpression rendered) {
- this.rendered = rendered;
- }
-
- /**
- * An expression that specifies the Converter for this component.
- * If the value binding expression is a String,
- * the String is used as an ID to look up a Converter.
- * If the value binding expression is a Converter,
- * uses that instance as the converter.
- * The value can either be a static value (ID case only)
- * or an EL expression.
- */
- @TagAttribute
- @UIComponentTagAttribute(type = "javax.faces.convert.Converter",
- expression = DynamicExpression.VALUE_EXPRESSION)
- public void setConverter(javax.el.ValueExpression converter) {
- this.converter = converter;
- }
-
- /**
- * A method binding EL expression,
- * accepting FacesContext, UIComponent,
- * and Object parameters, and returning void, that validates
- * the component's local value.
- */
- @TagAttribute
- @UIComponentTagAttribute(type = {},
- expression = DynamicExpression.METHOD_EXPRESSION,
- methodSignature = { "javax.faces.context.FacesContext", "javax.faces.component.UIComponent", "java.lang.Object" })
- public void setValidator(javax.el.MethodExpression validator) {
- this.validator = validator;
- }
-
- /**
- * Clientside script function to add to this component's onchange handler.
- */
- @TagAttribute
- @UIComponentTagAttribute()</pre>
- </div>
- </td>
- </tr>
-</table>
-<table border="0" class="bodyTable">
- <tr class="a">
- <th>File</th>
- <th>Project</th>
- <th>Line</th>
- </tr>
- <tr class="b">
- <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectOneChoiceExtensionTag.java</td>
- <td>Tobago Core</td>
- <td><a
- href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneChoiceExtensionTag.html#304">304</a>
- </td>
- </tr>
- <tr class="a">
<td>org/apache/myfaces/tobago/internal/taglib/extension/SelectOneListboxExtensionTag.java</td>
<td>Tobago Core</td>
<td><a
href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectOneListboxExtensionTag.html#292">292</a>
</td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
<div><pre> }
@@ -3852,84 +3290,85 @@ public class StyleClasses implements Ser
}
/**
- * An expression that specifies the validator message
+ * Indicate markup of this component.
+ * Possible value is 'none'. But this can be overridden in the theme.
*/
@TagAttribute
- @UIComponentTagAttribute()</pre>
+ @UIComponentTagAttribute(defaultValue = "none", type = "java.lang.String[]")</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
+ <tr class="a">
<td>org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java</td>
<td>Tobago Deprecation</td>
<td><a href="./xref/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.html#459">459</a></td>
</tr>
- <tr class="a">
+ <tr class="b">
<td>org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java</td>
<td>Tobago Theme Standard</td>
- <td><a href="./xref/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.html#278">278</a></td>
+ <td><a href="./xref/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.html#279">279</a></td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
- <div><pre> writer.write("new Tobago.ScriptLoader(");
+ <div><pre> writer.write("new Tobago.ScriptLoader(");
+ if (!ajax) {
+ writer.write("\n ");
+ }
+ writer.write(allScripts);
+
+ if (afterLoadCmds != null && afterLoadCmds.length > 0) {
+ writer.write(", ");
if (!ajax) {
- writer.write("\n ");
+ writer.write("\n");
}
- writer.write(allScripts);
-
- if (afterLoadCmds != null && afterLoadCmds.length > 0) {
- writer.write(", ");
- if (!ajax) {
- writer.write("\n");
- }
- boolean first = true;
- for (String afterLoadCmd : afterLoadCmds) {
- String[] splittedStrings = StringUtils.split(afterLoadCmd, '\n'); // split on <CR> to have nicer JS
- for (String splitted : splittedStrings) {
- writer.write(first ? " " : " + ");
- writer.write("\"");
- String cmd = StringUtils.replace(splitted, "\\", "\\\\");
- cmd = StringUtils.replace(cmd, "\"", "\\\"");
- writer.write(cmd);
- writer.write("\"");
- if (!ajax) {
- writer.write("\n");
- }
- first = false;
+ boolean first = true;
+ for (String afterLoadCmd : afterLoadCmds) {
+ String[] splittedStrings = StringUtils.split(afterLoadCmd, '\n'); // split on <CR> to have nicer JS
+ for (String splitted : splittedStrings) {
+ writer.write(first ? " " : " + ");
+ writer.write("\"");
+ String cmd = StringUtils.replace(splitted, "\\", "\\\\");
+ cmd = StringUtils.replace(cmd, "\"", "\\\"");
+ writer.write(cmd);
+ writer.write("\"");
+ if (!ajax) {
+ writer.write("\n");
}
+ first = false;
}
}
- writer.write(");");</pre>
+ }
+ writer.write(");");</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
- <tr class="b">
+ <tr class="a">
<td>org/apache/myfaces/tobago/renderkit/html/HtmlElements.java</td>
<td>Tobago Core</td>
<td><a href="./xref/org/apache/myfaces/tobago/renderkit/html/HtmlElements.html#22">22</a></td>
</tr>
- <tr class="a">
+ <tr class="b">
<td>org/apache/myfaces/tobago/renderkit/html/HtmlConstants.java</td>
<td>Tobago Deprecation</td>
<td><a href="./xref/org/apache/myfaces/tobago/renderkit/html/HtmlConstants.html#26">26</a></td>
</tr>
- <tr class="b">
+ <tr class="a">
<td colspan='3'>
- <div><pre>public final class HtmlConstants {
+ <div><pre>public final class HtmlElements {
public static final String A = "a";
public static final String AREA = "area";
@@ -3954,31 +3393,88 @@ public class StyleClasses implements Ser
public static final String LI = "li";
public static final String LINK = "link";
public static final String META = "meta";
- public static final String OL = "ol";</pre>
+ public static final String NOSCRIPT = "noscript";</pre>
</div>
</td>
</tr>
</table>
<table border="0" class="bodyTable">
- <tr class="a">
+ <tr class="b">
<th>File</th>
<th>Project</th>
<th>Line</th>
</tr>
+ <tr class="a">
+ <td>org/apache/myfaces/tobago/internal/context/ResourceManagerImpl.java</td>
+ <td>Tobago Core</td>
+ <td><a href="./xref/org/apache/myfaces/tobago/internal/context/ResourceManagerImpl.html#399">399</a></td>
+ </tr>
<tr class="b">
- <td>org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.java</td>
+ <td>org/apache/myfaces/tobago/internal/context/ResourceManagerImpl.java</td>
<td>Tobago Core</td>
- <td><a
- href="./xref/org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.html#364">364</a>
+ <td><a href="./xref/org/apache/myfaces/tobago/internal/context/ResourceManagerImpl.html#447">447</a></td>
+ </tr>
+ <tr class="a">
+ <td colspan='3'>
+ <div><pre> if (reverseOrder) {
+ matches.add(0, result);
+ } else {
+ matches.add(result);
+ }
+ if (LOG.isTraceEnabled()) {
+ LOG.trace("testing path: {} *", path); // match
+ }
+
+ return true;
[... 2006 lines stripped ...]