Author: ayanul
Date: 2008-07-01 03:14:44 -0400 (Tue, 01 Jul 2008)
New Revision: 9311
Added:
trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentAttribute.java
trunk/test-applications/jsp/src/main/java/util/componentInfo/Info.java
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ComponentInfo.xml
trunk/test-applications/jsp/src/main/webapp/pages/Info/
trunk/test-applications/jsp/src/main/webapp/pages/Info/Info.jsp
Removed:
trunk/test-applications/jsp/src/main/webapp/pages/Info/EventInfo.jsp
Modified:
trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java
Log:
Added:
trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentAttribute.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentAttribute.java
(rev 0)
+++
trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentAttribute.java 2008-07-01
07:14:44 UTC (rev 9311)
@@ -0,0 +1,60 @@
+/**
+ *
+ */
+package util.componentInfo;
+
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @author user
+ *
+ */
+public class ComponentAttribute {
+ private Map<String, String> attribute = new HashMap<String, String>();
+ private Map<String, String> event = new HashMap<String, String>();
+ private Map<String, String> style = new HashMap<String, String>();
+
+ public String putAttribute(String attribute, String value) {
+ return this.attribute.put(attribute, value);
+ }
+
+ public String putEvent(String event, String value){
+ return this.event.put(event, value);
+ }
+
+ public String putStyle(String style, String value) {
+ return this.style.put(style, value);
+ }
+
+ public String removeAttribute(String attribute) {
+ return this.attribute.remove(attribute);
+ }
+
+ public String removeEvent(String event) {
+ return this.attribute.remove(event);
+ }
+
+ public String removeStyle(String style) {
+ return this.attribute.remove(style);
+ }
+
+ public void cleanAll() {
+ this.attribute.clear();
+ this.event.clear();
+ this.style.clear();
+ }
+
+ public Set<Map.Entry<String, String>> getAttributeEntry() {
+ return attribute.entrySet();
+ }
+
+ public Set<Map.Entry<String, String>> getEventEntry(){
+ return event.entrySet();
+ }
+
+ public Set<Map.Entry<String, String>> getStyleEntry(){
+ return style.entrySet();
+ }
+}
Modified: trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java
===================================================================
---
trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java 2008-06-30
18:36:08 UTC (rev 9310)
+++
trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java 2008-07-01
07:14:44 UTC (rev 9311)
@@ -2,94 +2,111 @@
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Field;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.Map.Entry;
+import javax.faces.component.UIComponent;
+
public class ComponentInfo {
- private final String beanName;
- private String description;
- private String attribute;
- private String property;
- private boolean print;
+ private static volatile ComponentInfo INSTANCE;
+ private ComponentAttribute componentAttribute = new ComponentAttribute();
+ private Object component = null;
- public ComponentInfo(String beanName) {
- this.beanName = beanName;
- this.attribute = "";
- this.property = "";
- print = true;
+ protected ComponentInfo() {
}
- public void setComponentInfo(String attribute, String property) {
- this.attribute = attribute;
- this.property = property;
- this.description = "";
- if(print) printInfo();
- }
-
- public void setComponentInfo(String attribute, String property, String description) {
- this.attribute = attribute;
- this.property = property;
- this.description = description;
- if(print) printInfo();
- }
-
- public static String toString(Object obj) {
- Class cl = obj.getClass();
- String r = cl.getName() + "[";
- Class sc = cl.getSuperclass();
- if (!sc.equals(Object.class))
- r += sc + ",";
- Field[] fields = cl.getDeclaredFields();
- try {
- AccessibleObject.setAccessible(fields, true);
- } catch (SecurityException e) {
- }
- for (int i = 0; i < fields.length; i++) {
- Field f = fields[i];
- r += f.getName() + "=";
- try {
- Object val = f.get(obj);
- r += val.toString();
- } catch (IllegalAccessException e) {
- r += "???";
+ public static ComponentInfo getInstance() {
+ if (INSTANCE == null)
+ synchronized (ComponentInfo.class) {
+ if (INSTANCE == null)
+ INSTANCE = new ComponentInfo();
}
- if (i < fields.length - 1)
- r += ",";
- else
- r += "]";
- }
- return r;
+ return INSTANCE;
}
- public boolean isPrint() {
- return print;
+ public String getName() {
+ if (component == null)
+ return null;
+ return component.getClass().getName();
}
- public void setPrint(boolean print) {
- this.print = print;
- }
+ public void addField(Object component) {
+ if (component == null)
+ return;
+ this.component = component;
+ componentAttribute.cleanAll();
+ String str = null;
+ Field[] fields = component.getClass().getDeclaredFields();
+ AccessibleObject.setAccessible(fields, true);
+ for (Field field : fields) {
+ if (!Modifier.isStatic(field.getModifiers())) {
+ str = field.getName().substring(1);
+ if (str.startsWith("on")) {
+ componentAttribute.putEvent(str,
+ "");
+ } else if (str.indexOf("style") != -1 || str.indexOf("lass") !=
-1) {
+ try {
+ Object obj = field.get(component);
+ componentAttribute.putStyle(str, obj == null ? "null" : obj.toString());
+ } catch (IllegalArgumentException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ } else {
+
+ try {
+ Class cl = field.getType();
+ if(cl.isPrimitive() || cl.getName().equals("java.lang.String")){
+ Object obj = field.get(component);
+ componentAttribute.putAttribute(str, obj == null ? "null" :
obj.toString());
+ } else componentAttribute.putAttribute(str, "---");
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ }
- public String [] getComponentInfo() {
- String [] str = {attribute, property};
- return str;
}
-
- public String getAttribute() {
- return attribute;
- }
- public String getProperty() {
- return property;
+ public Object invoke(String aMethod, Class[] params, Object[] args) {
+ Method m;
+ System.out.println("ComponentInfo.invoke()");
+ if (component == null) return null;
+ try {
+ m = component.getClass().getDeclaredMethod(aMethod, params);
+ Object obj = m.invoke(component, args);
+ return obj;
+ } catch (SecurityException e) {
+ e.printStackTrace();
+ } catch (NoSuchMethodException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ finally {
+ return "";
+ }
}
-
- private void printInfo() {
- System.out.println("beanName: " + beanName + "[attribute: " +
attribute + "; property: " + property + "; description: " +
description + "];");
- }
- public String getDescription() {
- return description;
+ public ComponentAttribute getComponentAttribute() {
+ return componentAttribute;
}
-
- public void setDescription(String description) {
- this.description = description;
- }
}
Added: trunk/test-applications/jsp/src/main/java/util/componentInfo/Info.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/componentInfo/Info.java
(rev 0)
+++ trunk/test-applications/jsp/src/main/java/util/componentInfo/Info.java 2008-07-01
07:14:44 UTC (rev 9311)
@@ -0,0 +1,119 @@
+/**
+ *
+ */
+package util.componentInfo;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.Map.Entry;
+
+import javax.faces.component.html.HtmlInputText;
+import javax.faces.component.html.HtmlOutputText;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.faces.context.FacesContext;
+
+/**
+ * @author user
+ *
+ */
+public class Info {
+ private ComponentInfo info = ComponentInfo.getInstance();
+ private ComponentAttribute componentAttribute = info.getComponentAttribute();;
+ private HtmlPanelGrid panelEvent = null;
+
+ public HtmlPanelGrid getPanelEvent() {
+ return panelEvent;
+ }
+
+ public void setPanelEvent(HtmlPanelGrid panelEvent) {
+ this.panelEvent = panelEvent;
+ }
+
+ public Info() {
+ }
+
+ public String getName() {
+ return info.getName();
+ }
+
+ public List<Pair> getAttribute(){
+ List<Pair> list = new ArrayList<Pair>();
+ Set<Entry<String, String>> set = componentAttribute.getAttributeEntry();
+ Iterator<Map.Entry<String, String>> iterator = set.iterator();
+ while (iterator.hasNext()) {
+ Map.Entry<String, String> entry = iterator.next();
+ String str = Character.toUpperCase(entry.getKey().charAt(0)) +
entry.getKey().substring(1);
+// Object obj = null;
+// if(entry.getValue().equals("boolean"))
+// obj = info.invoke("is" + str, new Class[]{}, new Object[]{});
+// else obj = info.invoke("get" + str, new Class[]{}, new Object[]{});
+ list.add(new Pair(entry.getKey(), entry.getValue()));
+ }
+ return list;
+ }
+
+ public List<Pair> getEvent(){
+ FacesContext context = FacesContext.getCurrentInstance();
+ List<Pair> list = new ArrayList<Pair>();
+ Set<Entry<String, String>> set = componentAttribute.getEventEntry();
+ Iterator<Map.Entry<String, String>> iterator = set.iterator();
+ panelEvent.getChildren().clear();
+ while (iterator.hasNext()) {
+ Map.Entry<String, String> entry = iterator.next();
+ String key = entry.getKey();
+
+ HtmlOutputText out = new HtmlOutputText();
+ out.setValue(key);
+ panelEvent.getChildren().add(out);
+
+ HtmlInputText input = new HtmlInputText();
+ input.setValue("don't work");
+ input.setStyle("color:red");
+ input.setId(key + "InputID");
+ panelEvent.getChildren().add(input);
+
+ list.add(new Pair(key,"showEvent('" + input.getClientId(context) +
"', '" + key + "work!')"));
+ }
+ return list;
+ }
+
+ public List<Pair> getStyle(){
+ List<Pair> list = new ArrayList<Pair>();
+ Set<Entry<String, String>> set = componentAttribute.getStyleEntry();
+ Iterator<Map.Entry<String, String>> iterator = set.iterator();
+ while (iterator.hasNext()) {
+ Map.Entry<String, String> entry = iterator.next();
+ list.add(new Pair(entry.getKey(), entry.getValue()));
+ }
+ return list;
+ }
+
+ public class Pair {
+ private String key;
+ private String value;
+
+ public Pair(String key, String value) {
+ this.key = key;
+ this.value = value;
+ }
+
+ public String getKey() {
+ return key;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+ }
+}
Added: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ComponentInfo.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ComponentInfo.xml
(rev 0)
+++
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ComponentInfo.xml 2008-07-01
07:14:44 UTC (rev 9311)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces
Config 1.0//EN"
+
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>info</managed-bean-name>
+ <managed-bean-class>util.componentInfo.Info</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
\ No newline at end of file
Copied: trunk/test-applications/jsp/src/main/webapp/pages/Info (from rev 8931,
trunk/test-applications/jsp/src/main/webapp/pages/Action)
Deleted: trunk/test-applications/jsp/src/main/webapp/pages/Info/EventInfo.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp 2008-06-06
12:18:09 UTC (rev 8931)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Info/EventInfo.jsp 2008-07-01
07:14:44 UTC (rev 9311)
@@ -1,111 +0,0 @@
-<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
-<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
-
-<f:subview id="EventInfoSubview">
- <f:verbatim><div style="position: relative"><input
id="oneditactivatedInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oneditactivationInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputdblclickInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputmousedownInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputmousemoveInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputmouseoutInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputmouseoverInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputmouseupInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onviewactivatedInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onviewactivationInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmouseupInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ontabenterInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ontableaveInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onLoadMapInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onselectionchangeInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondownclickInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onupclickInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninitInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ongroupactivateInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onitemselectInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onsubmitInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onRowClickInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onRowDblClickInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onRowMouseDownInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onRowMouseMoveInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onRowMouseOutInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onRowMouseOverInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onRowMouseUpInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onselectInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onchangeInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onfocusInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onblurInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onclickInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oncollapseInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oncompleteInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondblclickInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondragendInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondragenterInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondragexitInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondragstartInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondropInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondropendInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onexpandInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onkeydownInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onkeypressInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onkeyupInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmousedownInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmousemoveInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmouseoutInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmouseoverInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onselectedInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onhideInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onshowInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onlistcallInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onitemselectedInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputblurInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputchangeInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputclickInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputfocusInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputkeydownInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputkeypressInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputkeyupInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oninputselectInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondateselectedInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondateselectInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ontimeselectInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ontimeselectedInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onchangedInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondatemouseoverInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondatemouseoutInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oncurrentdateselectInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onbeforedomupdateInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onslideInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondropoverInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ondropoutInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onerrorInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ontopclickInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onbottomclickInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onorderchangedInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmoveInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onheaderclickInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmaskclickInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onresizeInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmaskmouseoverInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmaskmouseoutInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmaskmousemoveInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmaskmouseupInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmaskmousedownInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmaskdblclickInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onmaskcontextmenuInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onitemchangeInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onitemhoverInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ongroupexpandInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="oncontextmenuInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ongroupcollapseInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onclearInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onuploadInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onuploadcanceledInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onuploadcompleteInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onsizerejectedInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="ontyperejectedInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onbeforehideInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="onbeforeshowInputID" type="hidden" value="don't
work!" size="42" /></div></f:verbatim>
- <f:verbatim><div style="position: relative"><input
id="openedInputID" type="hidden" value="don't work!"
size="42" /></div></f:verbatim>
-</f:subview>
Copied: trunk/test-applications/jsp/src/main/webapp/pages/Info/Info.jsp (from rev 8931,
trunk/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp)
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Info/Info.jsp
(rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Info/Info.jsp 2008-07-01 07:14:44
UTC (rev 9311)
@@ -0,0 +1,32 @@
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="infoSubview">
+ <h:panelGrid binding="#{info.panelEvent}" columns="2">
+ </h:panelGrid>
+ <h:commandButton action="#{info.getEvent}"
value="style"></h:commandButton>
+
+ <a4j:commandButton reRender="styleTableID"
value="rerender"></a4j:commandButton>
+ <h:dataTable id="styleTableID" value="#{info.style}"
var="info">
+ <h:column>
+ <h:outputText value="#{info.key}"></h:outputText>
+ </h:column>
+ <h:column>
+ <h:outputText value="#{info.value}"></h:outputText>
+ </h:column>
+ </h:dataTable>
+
+ <a4j:commandButton reRender="attributeTableID"
value="rerender"></a4j:commandButton>
+ <h:dataTable id="attributeTableID" value="#{info.attribute}"
var="info">
+ <h:column>
+ <h:outputText value="#{info.key}"></h:outputText>
+ </h:column>
+ <h:column>
+ <h:outputText value="#{info.value}"></h:outputText>
+ </h:column>
+ </h:dataTable>
+
+ <h:commandButton value="test"
action="#{calendarBean.bindingTest}"></h:commandButton>
+</f:subview>