Author: dbiatenia
Date: 2007-07-13 09:14:47 -0400 (Fri, 13 Jul 2007)
New Revision: 1621
Modified:
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/java/org/richfaces/Bean.java
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/faces-config.xml
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/web.xml
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/pages/index.jsp
Log:
Modified:
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/java/org/richfaces/Bean.java
===================================================================
---
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/java/org/richfaces/Bean.java 2007-07-13
13:02:25 UTC (rev 1620)
+++
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/java/org/richfaces/Bean.java 2007-07-13
13:14:47 UTC (rev 1621)
@@ -26,4 +26,26 @@
*/
public class Bean {
+ String text;
+
+ String toolTipContent = "ToolTip content";
+
+ public String getText() {
+ return text;
+ }
+
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ public String getToolTipContent() {
+ return toolTipContent;
+ }
+
+ public void setToolTipContent(String toolTipContent) {
+ this.toolTipContent = toolTipContent;
+ }
+
+
+
}
\ No newline at end of file
Modified:
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/faces-config.xml 2007-07-13
13:02:25 UTC (rev 1620)
+++
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/faces-config.xml 2007-07-13
13:14:47 UTC (rev 1621)
@@ -7,4 +7,10 @@
<managed-bean-class>org.richfaces.Bean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>skinBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.SkinBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
</faces-config>
Modified: branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
---
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/web.xml 2007-07-13
13:02:25 UTC (rev 1620)
+++
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/web.xml 2007-07-13
13:14:47 UTC (rev 1621)
@@ -14,6 +14,11 @@
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
<param-value>false</param-value>
</context-param>
+
+<!--context-param>
+ <param-name>org.ajax4jsf.SKIN</param-name>
+ <param-value>blueSky</param-value>
+ </context-param-->
<!--
-->
@@ -21,6 +26,11 @@
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
+ <init-param>
+ <param-name>forceparser</param-name>
+ <param-value>true</param-value>
+ </init-param>
+
</filter>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
Modified: branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/pages/index.jsp
===================================================================
---
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/pages/index.jsp 2007-07-13
13:02:25 UTC (rev 1620)
+++
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/pages/index.jsp 2007-07-13
13:14:47 UTC (rev 1621)
@@ -1,33 +1,29 @@
<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib
uri="http://richfaces.ajax4jsf.org/tooltip"
prefix="tt"%>
-
+<%@ taglib
uri="https://ajax4jsf.dev.java.net/ajax"
prefix="a4j"%>
<html>
<head>
<title></title>
-
</head>
<body>
<f:view>
<h:form>
- <%--h:inputText value="Input text" id="inp1"
size="50">
- <tt:toolTip value="1231231">
- <f:facet name="defaultContent"><f:verbatim>DEFAULT
VALUE</f:verbatim></f:facet>
- </tt:toolTip>
- </h:inputText--%>
+ <%--h:selectOneRadio binding="#{skinBean.component}" />
+ <h:commandLink action="#{skinBean.change}" value="set skin"
/--%>
+ <f:verbatim>
+ <br/><br/>
+ </f:verbatim>
+ <h:inputText value="Input text with tooltip" id="inp1"
size="50">
+ <tt:toolTip id="tt" followMouse="true"
direction="top-right" mode="client">
+ <%--f:facet name="defaultContent"><f:verbatim>DEFAULT
VALUE</f:verbatim>
+ </f:facet--%>
+ <h:outputText id="ot"
value="#{bean.toolTipContent}"></h:outputText>
+ </tt:toolTip>
+ </h:inputText>
- <h:selectOneListbox value="sdfsfd" id="ddl">
- <tt:toolTip value="1231231">
- <f:facet name="defaultContent"><f:verbatim>DEFAULT VALUE
DropDown</f:verbatim></f:facet>
- </tt:toolTip>
-
- </h:selectOneListbox>
-
-
-
-
- <!-- h:inputText value="ddd"
onclick="toolTipAttach();alert(document.getElementById('lkjl'))"/-->
</h:form>
+
</f:view>
</body>
</html>