Author: mvitenkov
Date: 2008-07-09 10:23:47 -0400 (Wed, 09 Jul 2008)
New Revision: 9489
Modified:
trunk/test-applications/facelets/src/main/java/componentControl/ComponentControl.java
trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml
Log:
Modified:
trunk/test-applications/facelets/src/main/java/componentControl/ComponentControl.java
===================================================================
---
trunk/test-applications/facelets/src/main/java/componentControl/ComponentControl.java 2008-07-09
14:14:57 UTC (rev 9488)
+++
trunk/test-applications/facelets/src/main/java/componentControl/ComponentControl.java 2008-07-09
14:23:47 UTC (rev 9489)
@@ -1,8 +1,26 @@
package componentControl;
+import org.richfaces.component.html.HtmlComponentControl;
+
+import util.componentInfo.ComponentInfo;
+
public class ComponentControl {
private boolean calendarPopup;
+ private HtmlComponentControl htmlComponentControl = null;
+ public HtmlComponentControl getHtmlComponentControl() {
+ return htmlComponentControl;
+ }
+
+ public void setHtmlComponentControl(HtmlComponentControl htmlComponentControl) {
+ this.htmlComponentControl = htmlComponentControl;
+ }
+
+ public String addHtmlComponentControl(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlComponentControl);
+ return null;
+ }
public ComponentControl() {
calendarPopup = false;
}
Modified:
trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml 2008-07-09
14:14:57 UTC (rev 9488)
+++
trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml 2008-07-09
14:23:47 UTC (rev 9489)
@@ -7,7 +7,7 @@
<h:inputText value="test">
<rich:componentControl name="controlMe" event="onclick"
- attachTiming="onload" for="ccToltipID" operation="show"
/>
+ attachTiming="onload" for="ccToltipID" operation="show"
binding="#{componentControl.htmlComponentControl}"/>
</h:inputText>
<rich:panel>
@@ -45,7 +45,7 @@
<br />
<br />
</f:verbatim>
-
+ <h:commandButton action="#{componentControl.addHtmlComponentControl}"
value="add test" />
<rich:calendar popup="#{componentControl.calendarPopup}"
id="ccCalendarID" />
<h:panelGrid columns="2">