Author: adubovsky
Date: 2008-07-15 08:25:04 -0400 (Tue, 15 Jul 2008)
New Revision: 9602
Modified:
trunk/test-applications/jsp/src/main/java/hotKey/HotKey.java
trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp
Log:
Add new attributes to hotKey
Modified: trunk/test-applications/jsp/src/main/java/hotKey/HotKey.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/hotKey/HotKey.java 2008-07-15 12:13:46 UTC
(rev 9601)
+++ trunk/test-applications/jsp/src/main/java/hotKey/HotKey.java 2008-07-15 12:25:04 UTC
(rev 9602)
@@ -10,6 +10,8 @@
import org.richfaces.component.html.HtmlHotKey;
+import util.componentInfo.ComponentInfo;
+
/**
* @author AYanul
*
@@ -26,6 +28,12 @@
private boolean checkParent = false;
private HtmlHotKey htmlHotKey = null;
+ public String add(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlHotKey);
+ return null;
+ }
+
public HtmlHotKey getHtmlHotKey() {
return htmlHotKey;
}
Modified: trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp 2008-07-15 12:13:46 UTC
(rev 9601)
+++ trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp 2008-07-15 12:25:04 UTC
(rev 9602)
@@ -86,7 +86,7 @@
</rich:componentControl>
</h:panelGrid>
<f:verbatim><hr /></f:verbatim>
-
+ <h:commandButton action="#{hotKey.add}" value="add test" />
<div style="FONT-WEIGHT: bold;">rich:findComponent</div>
<h:panelGrid columns="2">
<rich:column>
Show replies by date