JBoss Rich Faces SVN: r5354 - management/design/fileUpload/markup.
by richfaces-svn-commits@lists.jboss.org
Author: admitriev
Date: 2008-01-14 10:51:30 -0500 (Mon, 14 Jan 2008)
New Revision: 5354
Modified:
management/design/fileUpload/markup/file_upload.html
Log:
Modified: management/design/fileUpload/markup/file_upload.html
===================================================================
--- management/design/fileUpload/markup/file_upload.html 2008-01-14 15:41:17 UTC (rev 5353)
+++ management/design/fileUpload/markup/file_upload.html 2008-01-14 15:51:30 UTC (rev 5354)
@@ -66,6 +66,43 @@
</div>
<div class="upload_font upload_name">
+ <b>Done</b>
+ <!--div class="upload_bar_exterior">
+ <div class="upload_bar_shell">
+ <div class="upload_bar_uploaded">
+
+ </div>
+ </div>
+ </div-->
+ <!--br-->
+ </div>
+
+ <!--div class="upload_font upload_name">
+ 70% from 200000 KB
+ </div-->
+ </td>
+ <td>
+ <div class="upload_font upload_del"><a href="#" class="upload_anc">Clear</a></div>
+ </td>
+ <td>
+ <div class="upload_font upload_scroll"></div>
+ </td>
+ </tr>
+ </table>
+
+
+
+ <table border="0" cellpadding="0" cellspacing="0" id="upload_table">
+ <tr>
+ <td>
+ <div class="upload_font upload_icon"><img src="images/ico_file_32.gif" width="32" height="32" alt="" border="0"></div>
+ </td>
+ <td>
+ <div class="upload_font upload_name">
+ file_upload.html
+ </div>
+
+ <div class="upload_font upload_name">
<!--Done-->
<div class="upload_bar_exterior">
<div class="upload_bar_shell">
@@ -77,8 +114,48 @@
<!--br-->
</div>
+ <div class="upload_font upload_name">
+ <b>70%</b> from 200000 KB
+ </div>
</td>
<td>
+ <div class="upload_font upload_del"><a href="#" class="upload_anc">Stop</a></div>
+ </td>
+ <td>
+ <div class="upload_font upload_scroll"></div>
+ </td>
+ </tr>
+ </table>
+
+
+
+ <table border="0" cellpadding="0" cellspacing="0" id="upload_table">
+ <tr>
+ <td>
+ <div class="upload_font upload_icon"><img src="images/ico_file_32.gif" width="32" height="32" alt="" border="0"></div>
+ </td>
+ <td>
+ <div class="upload_font upload_name">
+ file_upload.html
+ </div>
+
+ <div class="upload_font upload_name">
+ <!--Done>
+ <div class="upload_bar_exterior">
+ <div class="upload_bar_shell">
+ <div class="upload_bar_uploaded">
+
+ </div>
+ </div>
+ </div-->
+ <br>
+ </div>
+
+ <!--div class="upload_font upload_name">
+ 70% from 200000 KB
+ </div-->
+ </td>
+ <td>
<div class="upload_font upload_del"><a href="#" class="upload_anc">Delete</a></div>
<div class="upload_font upload_del"><a href="#" class="upload_anc">Upload</a></div>
</td>
@@ -87,6 +164,47 @@
</td>
</tr>
</table>
+
+
+
+ <table border="0" cellpadding="0" cellspacing="0" id="upload_table">
+ <tr>
+ <td>
+ <div class="upload_font upload_icon"><img src="images/ico_file_32.gif" width="32" height="32" alt="" border="0"></div>
+ </td>
+ <td>
+ <div class="upload_font upload_name">
+ file_upload.html
+ </div>
+
+ <div class="upload_font upload_name">
+ <!--Done>
+ <div class="upload_bar_exterior">
+ <div class="upload_bar_shell">
+ <div class="upload_bar_uploaded">
+
+ </div>
+ </div>
+ </div-->
+ <br>
+ </div>
+
+ <!--div class="upload_font upload_name">
+ 70% from 200000 KB
+ </div-->
+ </td>
+ <td>
+ <div class="upload_font upload_del"><a href="#" class="upload_anc">Delete</a></div>
+ <div class="upload_font upload_del"><a href="#" class="upload_anc">Upload</a></div>
+ </td>
+ <td>
+ <div class="upload_font upload_scroll"></div>
+ </td>
+ </tr>
+ </table>
+
+
+
</div>
17 years
JBoss Rich Faces SVN: r5353 - trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-01-14 10:41:17 -0500 (Mon, 14 Jan 2008)
New Revision: 5353
Modified:
trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp
Log:
fix demo
Modified: trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp 2008-01-14 15:07:53 UTC (rev 5352)
+++ trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp 2008-01-14 15:41:17 UTC (rev 5353)
@@ -53,9 +53,9 @@
<script>
var pr = new ProgressBar('j_id_jsp_2009877409_1:progrs');
</script>
- <input type="button" value="crack" onclick="alert(pr.getPercent());" /><br/>
+ <input type="button" value="Get Progress" onclick="alert(pr.getProgress());" /><br/><br/>
<input type="text" value="" id="percent"/>
- <input type="button" value="set" onclick="pr.setPercent(document.getElementById('percent').value);" />
+ <input type="button" value="Set Progress" onclick="pr.enable(); pr.setProgress(document.getElementById('percent').value);" />
</f:view>
</body>
</html>
17 years
JBoss Rich Faces SVN: r5352 - in trunk/ui/panelbar/src/main: java/org/richfaces/renderkit/html and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2008-01-14 10:07:53 -0500 (Mon, 14 Jan 2008)
New Revision: 5352
Modified:
trunk/ui/panelbar/src/main/config/component/panelbar.xml
trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java
Log:
http://jira.jboss.com/jira/browse/RF-1861
Modified: trunk/ui/panelbar/src/main/config/component/panelbar.xml
===================================================================
--- trunk/ui/panelbar/src/main/config/component/panelbar.xml 2008-01-14 14:39:19 UTC (rev 5351)
+++ trunk/ui/panelbar/src/main/config/component/panelbar.xml 2008-01-14 15:07:53 UTC (rev 5352)
@@ -127,7 +127,7 @@
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
- <name>mouseover</name>
+ <name>onmouseover</name>
<classname>java.lang.String</classname>
<description>
Event must occurs on than item has been changed
@@ -135,7 +135,7 @@
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
- <name>mouseout</name>
+ <name>onmouseout</name>
<classname>java.lang.String</classname>
<description>
Event must occurs on than item has been changed
@@ -143,7 +143,7 @@
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
- <name>mousemove</name>
+ <name>onmousemove</name>
<classname>java.lang.String</classname>
<description>
Event must occurs on than item has been changed
Modified: trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java
===================================================================
--- trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java 2008-01-14 14:39:19 UTC (rev 5351)
+++ trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java 2008-01-14 15:07:53 UTC (rev 5352)
@@ -190,9 +190,9 @@
}
options.addOption("onclick", panelBar.getAttributes().get("onclick"));
- options.addOption("mouseover", panelBar.getAttributes().get("mouseover"));
- options.addOption("mouseout", panelBar.getAttributes().get("mouseout"));
- options.addOption("mousemove", panelBar.getAttributes().get("mousemove"));
+ options.addOption("mouseover", panelBar.getAttributes().get("onmouseover"));
+ options.addOption("mouseout", panelBar.getAttributes().get("onmouseout"));
+ options.addOption("mousemove", panelBar.getAttributes().get("onmousemove"));
options.addOption("items", items);
17 years
JBoss Rich Faces SVN: r5351 - trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2008-01-14 09:39:19 -0500 (Mon, 14 Jan 2008)
New Revision: 5351
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
Log:
http://jira.jboss.com/jira/browse/RF-1897
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2008-01-14 14:23:32 UTC (rev 5350)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2008-01-14 14:39:19 UTC (rev 5351)
@@ -42,6 +42,9 @@
import org.ajax4jsf.Messages;
import org.ajax4jsf.javascript.JSFunctionDefinition;
+import org.ajax4jsf.javascript.JSReference;
+import org.ajax4jsf.javascript.ScriptString;
+import org.ajax4jsf.javascript.ScriptUtils;
import org.ajax4jsf.renderkit.compiler.TemplateContext;
import org.ajax4jsf.resource.InternetResource;
import org.ajax4jsf.resource.Java2Dresource;
@@ -908,4 +911,25 @@
writer.writeText(eventName + ": ''", null);
}
}
+
+ public JSFunctionDefinition getAsEventHandler(FacesContext context, UIComponent component, String attributeName, String append) {
+ String event = (String) component.getAttributes().get(attributeName);
+
+ if (event != null) {
+ event = event.trim();
+
+ if (event.length() != 0) {
+ JSFunctionDefinition function = new JSFunctionDefinition();
+ function.addParameter("event");
+ if(null!=append && append.length()>0){
+ function.addToBody(event+append);
+ }else{
+ function.addToBody(event);
+ }
+ return function;
+ }
+ }
+
+ return null;
+ }
}
17 years
JBoss Rich Faces SVN: r5350 - in trunk/ui/tooltip/src/main: resources/org/richfaces/renderkit/html/scripts and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2008-01-14 09:23:32 -0500 (Mon, 14 Jan 2008)
New Revision: 5350
Modified:
trunk/ui/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java
trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
http://jira.jboss.com/jira/browse/RF-1897
Modified: trunk/ui/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java
===================================================================
--- trunk/ui/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java 2008-01-14 13:51:05 UTC (rev 5349)
+++ trunk/ui/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java 2008-01-14 14:23:32 UTC (rev 5350)
@@ -17,6 +17,7 @@
import org.ajax4jsf.javascript.ScriptUtils;
import org.ajax4jsf.renderkit.AjaxComponentRendererBase;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
+import org.ajax4jsf.renderkit.RendererUtils;
import org.ajax4jsf.resource.InternetResource;
import org.richfaces.component.UIToolTip;
import org.richfaces.skin.Skin;
@@ -238,9 +239,6 @@
Map eventsMap = new HashMap();
eventsMap.put(new JSReference("event"), event);
- eventsMap.put(new JSReference("onshow"), toolTip.getOnshow());
- eventsMap.put(new JSReference("oncomplete"), toolTip.getOncomplete());
- eventsMap.put(new JSReference("onhide"), toolTip.getOnhide());
eventsMap.put(new JSReference("delay"), new Integer(toolTip.getShowDelay()));
eventsMap.put(new JSReference("hideDelay"), new Integer(toolTip.getHideDelay()));
@@ -248,10 +246,20 @@
JSReference ref = new JSReference("ajaxOptions");
function.addParameter(ref);
String ajaxFunc = function.toScript();
-
+
Map ajaxOptions = buildEventOptions(context, toolTip, targetClientId);
+ JSFunctionDefinition completeFunc = getUtils().getAsEventHandler(context, component, "oncoplete", "return true;");
+ JSFunctionDefinition hideFunc = getUtils().getAsEventHandler(context, component,"onhide", "return true;");
+ JSFunctionDefinition showFunc = getUtils().getAsEventHandler(context, component,"onshow", "return true;");
- ret.append("new ToolTip(" + ScriptUtils.toScript(eventsMap)).append(comma).append(quot).append( toolTip.getClientId(context)).append(quot).append(comma).
+ Map funcMap = new HashMap();
+ funcMap.put(new JSReference("oncomplete"), completeFunc);
+ funcMap.put(new JSReference("onhide"), hideFunc);
+ funcMap.put(new JSReference("onshow"), showFunc);
+
+
+ ret.append("new ToolTip(" + ScriptUtils.toScript(eventsMap)).append(comma).append(ScriptUtils.toScript(funcMap))
+ .append(comma).append(quot).append( toolTip.getClientId(context)).append(quot).append(comma).
append(quot).append(targetClientId).append(quot).append(comma).
append(quot).append(toolTip.getMode()).append(quot).append(comma).
append(toolTip.isDisabled()).append(comma).
@@ -260,7 +268,7 @@
append(toolTip.getHorizontalOffset()).append(comma).
append(toolTip.getVerticalOffset()).append(comma).
append("\"").append(ajaxFunc).append("\"").append(comma).append(ScriptUtils.toScript(ajaxOptions)).append(");");
-
+
return ret.toString();
}
Modified: trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
===================================================================
--- trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2008-01-14 13:51:05 UTC (rev 5349)
+++ trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2008-01-14 14:23:32 UTC (rev 5350)
@@ -5,13 +5,14 @@
ToolTip = Class.create();
ToolTip.prototype = {
- initialize:function(events, id, parentId, mode, disabled, direction, followMouse, horizontalOffset, verticalOffset, ajaxFunction, ajaxOptions){
+ initialize:function(events,functions, id, parentId, mode, disabled, direction, followMouse, horizontalOffset, verticalOffset, ajaxFunction, ajaxOptions){
this["rich:destructor"] = "destroy";
- this.event = events.event;
- this.onshow = new Function('event', events.onshow + ';return true;');
- this.oncomplete = new Function('event', events.oncomplete + ';return true;');
- this.onhide = new Function('event', events.onhide + ';return true;');
+ this.event = events.event;
+ this.onshow = functions.onshow;
+ this.oncomplete = functions.oncomplete;
+ this.onhide = functions.onhide;
+
this.delay = events.delay;
this.hideDelay = events.hideDelay;
@@ -256,7 +257,10 @@
} catch (e) {;}
}
- this.onshow(e);
+ if(this.onshow!=null)
+ {
+ this.onshow(e);
+ }
this.isMouseOvered = true;
if (e.target)
@@ -337,7 +341,10 @@
}
this.hintParentElement = null;
this.isMouseOvered = false;
- this.onhide(e);
+ if(this.onhide!=null)
+ {
+ this.onhide(e);
+ }
if (this.hidingTimerHandle) {
window.clearTimeout(this.hidingTimerHandle);
@@ -565,7 +572,11 @@
}
if(runOnComplete){
- this.oncomplete(window.event);
+ if(this.oncomplete!=null)
+ {
+ this.oncomplete(window.event);
+ }
+
}
}
17 years
JBoss Rich Faces SVN: r5349 - in branches/3.1.x/ui/modal-panel/src/main: templates/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-01-14 08:51:05 -0500 (Mon, 14 Jan 2008)
New Revision: 5349
Modified:
branches/3.1.x/ui/modal-panel/src/main/config/component/modalPanel.xml
branches/3.1.x/ui/modal-panel/src/main/templates/org/richfaces/htmlModalPanel.jspx
Log:
http://jira.jboss.com/jira/browse/RF-1894
Modified: branches/3.1.x/ui/modal-panel/src/main/config/component/modalPanel.xml
===================================================================
--- branches/3.1.x/ui/modal-panel/src/main/config/component/modalPanel.xml 2008-01-14 13:42:52 UTC (rev 5348)
+++ branches/3.1.x/ui/modal-panel/src/main/config/component/modalPanel.xml 2008-01-14 13:51:05 UTC (rev 5349)
@@ -206,5 +206,45 @@
<name>valid</name>
<description>valid</description>
</property>
+ <property>
+ <name>onmaskclick</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskdblclick</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskcontextmenu</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskmouseup</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskmousedown</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskmousemove</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskmouseover</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskmouseout</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
</component>
</components>
Modified: branches/3.1.x/ui/modal-panel/src/main/templates/org/richfaces/htmlModalPanel.jspx
===================================================================
--- branches/3.1.x/ui/modal-panel/src/main/templates/org/richfaces/htmlModalPanel.jspx 2008-01-14 13:42:52 UTC (rev 5348)
+++ branches/3.1.x/ui/modal-panel/src/main/templates/org/richfaces/htmlModalPanel.jspx 2008-01-14 13:51:05 UTC (rev 5349)
@@ -40,7 +40,15 @@
x:passThruWithExclusions="id,style,class,styleClass"
>
<div class="dr-mpnl-mask-div rich-mpnl-mask-div" id="#{clientId}Div"
- style="z-index: 1;"></div>
+ style="z-index: 1;"
+ onclick="#{component.attributes['onmaskclick']}"
+ ondblclick="#{component.attributes['onmaskdblclick']}"
+ oncontextmenu="#{component.attributes['onmaskcontextmenu']}"
+ onmouseup="#{component.attributes['onmaskmouseup']}"
+ onmousedown="#{component.attributes['onmaskmousedown']}"
+ onmousemove="#{component.attributes['onmaskmousemove']}"
+ onmouseover="#{component.attributes['onmaskmouseover']}"
+ onmouseout="#{component.attributes['onmaskmouseout']}" />
<div class="dr-mpnl-mask-div rich-mpnl-mask-div" id="#{clientId}CursorDiv"
style="filter: alpha(opacity=1); z-index: -200"></div>
17 years
JBoss Rich Faces SVN: r5348 - in trunk/ui/modal-panel/src/main: templates/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-01-14 08:42:52 -0500 (Mon, 14 Jan 2008)
New Revision: 5348
Modified:
trunk/ui/modal-panel/src/main/config/component/modalPanel.xml
trunk/ui/modal-panel/src/main/templates/org/richfaces/htmlModalPanel.jspx
Log:
http://jira.jboss.com/jira/browse/RF-1894
Modified: trunk/ui/modal-panel/src/main/config/component/modalPanel.xml
===================================================================
--- trunk/ui/modal-panel/src/main/config/component/modalPanel.xml 2008-01-14 12:35:07 UTC (rev 5347)
+++ trunk/ui/modal-panel/src/main/config/component/modalPanel.xml 2008-01-14 13:42:52 UTC (rev 5348)
@@ -209,6 +209,46 @@
<property hidden="true">
<name>valid</name>
<description>valid</description>
+ </property>
+ <property>
+ <name>onmaskclick</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskdblclick</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskcontextmenu</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskmouseup</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskmousedown</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskmousemove</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskmouseover</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>onmaskmouseout</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
</property>
</component>
</components>
Modified: trunk/ui/modal-panel/src/main/templates/org/richfaces/htmlModalPanel.jspx
===================================================================
--- trunk/ui/modal-panel/src/main/templates/org/richfaces/htmlModalPanel.jspx 2008-01-14 12:35:07 UTC (rev 5347)
+++ trunk/ui/modal-panel/src/main/templates/org/richfaces/htmlModalPanel.jspx 2008-01-14 13:42:52 UTC (rev 5348)
@@ -40,7 +40,15 @@
x:passThruWithExclusions="id,style,class,styleClass"
>
<div class="dr-mpnl-mask-div rich-mpnl-mask-div" id="#{clientId}Div"
- style="z-index: 1;"></div>
+ style="z-index: 1;"
+ onclick="#{component.attributes['onmaskclick']}"
+ ondblclick="#{component.attributes['onmaskdblclick']}"
+ oncontextmenu="#{component.attributes['onmaskcontextmenu']}"
+ onmouseup="#{component.attributes['onmaskmouseup']}"
+ onmousedown="#{component.attributes['onmaskmousedown']}"
+ onmousemove="#{component.attributes['onmaskmousemove']}"
+ onmouseover="#{component.attributes['onmaskmouseover']}"
+ onmouseout="#{component.attributes['onmaskmouseout']}" />
<div class="dr-mpnl-mask-div rich-mpnl-mask-div" id="#{clientId}CursorDiv"
style="filter: alpha(opacity=1); z-index: -200"></div>
17 years
JBoss Rich Faces SVN: r5347 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: contextMenu and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-01-14 07:35:07 -0500 (Mon, 14 Jan 2008)
New Revision: 5347
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/example/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/example/menu.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/usage.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-1901
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/example/menu.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/example/menu.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/example/menu.xhtml 2008-01-14 12:35:07 UTC (rev 5347)
@@ -0,0 +1,42 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <style>
+ .cent{
+ text-align:center;
+ }
+ .rich-menu-item{
+ text-align:left;
+ }
+ .rich-menu-group{
+ text-align:left;
+ }
+</style>
+ <h:panelGrid columns="1" columnClasses="cent">
+
+ <h:outputText value="Perform right-click on the picture to call the menu" style="font-weight:bold" id="label"/>
+
+ <h:panelGroup id="picture">
+ <h:graphicImage value="/richfaces/jQuery/images/pic1.jpg" id="pic"/>
+ <rich:contextMenu event="oncontextmenu" attached="true" submitMode="none">
+ <rich:menuItem value="Zoom In" onclick="enlarge();" id="zin"></rich:menuItem>
+ <rich:menuItem value="Zoom Out" onclick="decrease();" id="zout"></rich:menuItem>
+ </rich:contextMenu>
+ </h:panelGroup>
+
+ </h:panelGrid>
+ <script type="text/javascript">
+ function enlarge(){
+ document.getElementById('pic').width=document.getElementById('pic').width*1.1;
+ document.getElementById('pic').height=document.getElementById('pic').height*1.1;
+ }
+ function decrease(){
+ document.getElementById('pic').width=document.getElementById('pic').width*0.9;
+ document.getElementById('pic').height=document.getElementById('pic').height*0.9;
+ }
+ </script>
+
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/usage.xhtml 2008-01-14 12:35:07 UTC (rev 5347)
@@ -0,0 +1,86 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>RichFaces Context menu is a component that allows to organize the hierarchical context menus
+ similar to one that almost every desktop application has.
+ </p>
+ <p>Context Menu can contain a set of Menu Items, Menu Groups and Menu Separators.
+ Usage of these components are similar to usage in RichFaces Drop Down Menu.
+ </p>
+ <p><b>Example:</b>To call the menu - perform the right click on the picture</p>
+ <div class="sample-container">
+
+ <ui:include src="/richfaces/contextMenu/example/menu.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/contextMenu/example/menu.xhtml"/>
+ </ui:include>
+
+ </div>
+ <p>
+ In this example menu is just defined as nested to <b>panelGroup</b> with "picture" Id.
+ You should be careful with such definitions, because on the client menu component
+ searches for the DOM element with the client Id of the parent component on the server.
+ If the component doesn't encode id on the client, it will be not found by the menu and menu
+ will be attached to its closest parent in a DOM tree. For example you should not define the menu as a child
+ for images components.
+ </p>
+ <p>Context menu itself is an invisible panel
+ that appears after a particular client side event (onmouseover, onclick etc) occured on a parent component.
+ The event is defined with an <b>event</b> attribute.</p>
+ <p>
+ <i><b>Note:</b> As you can see from the first example the component could use "oncontextmenu" event to call the Menu on right click event.
+ But in this case the component should be called via <b>componentControl</b> component (as it is shown at the second example) rather than using a4j:support style.
+ If a4j:support style is used then many of the components don't encode this event and also in case of support-like definition the component will not work properly.
+ </i>
+ </p>
+ <p>
+ Other usefull attributes are:
+ <ul>
+ <li>
+ <b>disableDefaultMenu</b> - if it is true, the event defined on the menu
+ will not be handled by other client handlers except context menu handler. You
+ may see on the first example that a standard browser menu isn't called
+ after right click.
+ </li>
+ <li>
+ <b>attached</b> - if it is true, the menu is attached to parent component. In other case
+ it should be called via JS API (using componentControl)
+ </li>
+ </ul>
+ </p>
+ <p>
+ Unlike dropDownMenu, contextMenu has no representation element, and has strong right-click
+ support.
+ </p>
+ <p>
+ And the main difference from drop down menu is that a context menu could be defined once on the page
+ and used by different components. Single instance of the menu will be created and shared between the components.
+ </p>
+ <p>
+ To customize shared menu for every component, macrosubstitutions could be used.
+ <b>ComponentControl</b> component could be used to call the instance of the menu for
+ the particular component. <b>f:param</b> components could be used to add parameters to menu.
+ </p>
+ <p>
+ <b>Example:</b> To call the menu - click any car row.
+ </p>
+ <ui:include src="/richfaces/componentControl/examples/cmenuusage.xhtml" />
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/componentControl/examples/cmenuusage.xhtml"/>
+ </ui:include>
+ <p>
+ Pay your attention to the source code. Inside the table you may see component control that calls the menu.
+ Menu recreated after every call on the client and new <b>{car}</b> and <b>{model}</b> values are inserted into the menu.
+ </p>
+ <p>Look through componentControl demo page for more information.</p>
+ </ui:define>
+
+ </ui:composition>
+</html>
17 years
JBoss Rich Faces SVN: r5346 - in trunk/samples/richfaces-demo/src/main: java/org/richfaces/demo and 14 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-01-14 07:31:08 -0500 (Mon, 14 Jan 2008)
New Revision: 5346
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/listShuttle/
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/listShuttle/Converter.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/listShuttle/ToolBar.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/listShuttle/ToolBarItem.java
trunk/samples/richfaces-demo/src/main/webapp/images/cn_componentControl.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_contextMenu.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_listShuttle.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_orderingList.gif
trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/cmenuusage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/control.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples/toolBarCustomization.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/listShuttle.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/example/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/example/playlist.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/orderingList.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tree/Library.java
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-1901
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2008-01-14 12:16:46 UTC (rev 5345)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2008-01-14 12:31:08 UTC (rev 5346)
@@ -77,6 +77,15 @@
return allCars;
}
+ public List<DemoInventoryItem> getTenRandomCars() {
+ List<DemoInventoryItem> result = new ArrayList<DemoInventoryItem>();
+ int size = getAllCars().size()-1;
+ for (int i = 0; i < 10; i++) {
+ result.add(getAllCars().get(rand(1, size)));
+ }
+ return result;
+ }
+
public int genRand() {
return rand(1,10000);
}
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java 2008-01-14 12:16:46 UTC (rev 5345)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java 2008-01-14 12:31:08 UTC (rev 5346)
@@ -118,6 +118,10 @@
return ret;
}
+ public List getSelectComponents() {
+ return getFilteredComponents("richSelect");
+ }
+
public List getRichDragDropComponents() {
return getFilteredComponents("richDragDrop");
}
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/listShuttle/Converter.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/listShuttle/Converter.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/listShuttle/Converter.java 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,23 @@
+package org.richfaces.demo.listShuttle;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+public class Converter implements javax.faces.convert.Converter{
+
+ public Object getAsObject(FacesContext context, UIComponent component,
+ String value) {
+
+ int index = value.indexOf(':');
+
+ return new ToolBarItem(value.substring(0, index), value.substring(index + 1));
+ }
+
+ public String getAsString(FacesContext context, UIComponent component,
+ Object value) {
+
+ ToolBarItem optionItem = (ToolBarItem) value;
+ return optionItem.getLabel() + ":" + optionItem.getIcon();
+ }
+
+}
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/listShuttle/ToolBar.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/listShuttle/ToolBar.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/listShuttle/ToolBar.java 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,54 @@
+package org.richfaces.demo.listShuttle;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class ToolBar {
+ private List<ToolBarItem> items = new ArrayList<ToolBarItem>();
+ private List<ToolBarItem> freeItems = new ArrayList<ToolBarItem>();
+ public ToolBar() {
+ ToolBarItem item = new ToolBarItem();
+ item.setIcon("create_folder");
+ item.setLabel("Create Folder");
+ items.add(item);
+ item = new ToolBarItem();
+ item.setIcon("create_doc");
+ item.setLabel("Create Doc");
+ items.add(item);
+ item = new ToolBarItem();
+ item.setIcon("find");
+ item.setLabel("Find");
+ items.add(item);
+ item = new ToolBarItem();
+ item.setIcon("open");
+ item.setLabel("Open");
+ freeItems.add(item);
+ item = new ToolBarItem();
+ item.setIcon("save");
+ item.setLabel("Save");
+ freeItems.add(item);
+ item = new ToolBarItem();
+ item.setIcon("save_all");
+ item.setLabel("Save All");
+ freeItems.add(item);
+ item = new ToolBarItem();
+ item.setIcon("delete");
+ item.setLabel("Delete");
+ freeItems.add(item);
+ }
+
+ public List<ToolBarItem> getItems() {
+ return items;
+ }
+ public void setItems(List<ToolBarItem> items) {
+ this.items = items;
+ }
+
+ public List<ToolBarItem> getFreeItems() {
+ return freeItems;
+ }
+
+ public void setFreeItems(List<ToolBarItem> freeItems) {
+ this.freeItems = freeItems;
+ }
+}
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/listShuttle/ToolBarItem.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/listShuttle/ToolBarItem.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/listShuttle/ToolBarItem.java 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,67 @@
+package org.richfaces.demo.listShuttle;
+
+public class ToolBarItem {
+private String icon;
+private String label;
+private String iconURI;
+public ToolBarItem() {
+ // TODO Auto-generated constructor stub
+}
+
+public ToolBarItem(String label, String icon) {
+ setLabel(label);
+ setIcon(icon);
+}
+
+public String getLabel() {
+ return label;
+}
+public void setLabel(String label) {
+ this.label = label;
+}
+
+public String getIcon() {
+ return icon;
+}
+
+public void setIcon(String icon) {
+ this.icon = icon;
+}
+
+
+
+public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((icon == null) ? 0 : icon.hashCode());
+ result = prime * result + ((label == null) ? 0 : label.hashCode());
+ return result;
+}
+
+public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ final ToolBarItem other = (ToolBarItem) obj;
+ if (icon == null) {
+ if (other.icon != null)
+ return false;
+ } else if (!icon.equals(other.icon))
+ return false;
+ if (label == null) {
+ if (other.label != null)
+ return false;
+ } else if (!label.equals(other.label))
+ return false;
+ return true;
+}
+
+public String getIconURI() {
+ return "/images/icons/"+icon+".gif";
+}
+
+
+}
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tree/Library.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tree/Library.java 2008-01-14 12:16:46 UTC (rev 5345)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tree/Library.java 2008-01-14 12:31:08 UTC (rev 5346)
@@ -3,8 +3,10 @@
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
+import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
+import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;
@@ -144,4 +146,20 @@
this.state2 = state2;
}
+ public void walk(TreeNode node, List<TreeNode> appendTo, Class<? extends TreeNode> type) {
+ if (type.isInstance(node)){
+ appendTo.add(node);
+ }
+ Iterator<Map.Entry<Object, TreeNode>> iterator = node.getChildren();
+ while(iterator.hasNext()) {
+ walk(iterator.next().getValue(), appendTo, type);
+ }
+
+ }
+
+ public ArrayList getLibraryAsList(){
+ ArrayList appendTo = new ArrayList();
+ walk(this, appendTo, Song.class);
+ return appendTo;
+ }
}
Modified: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-01-14 12:16:46 UTC (rev 5345)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-01-14 12:31:08 UTC (rev 5346)
@@ -68,3 +68,7 @@
page= ajaxMisc, Ajax Page, /images/ico_common.gif, /images/cn_AjaxPage.gif, RichFacesComponentsLibrary.html#page, jbossajax4jsf/freezone/docs/tlddoc/a4j/page.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxRegion.html, /richfaces/page.jsf
portlet= ajaxMisc, Ajax Portlet, /images/ico_common.gif, /images/cn_AjaxPortlet.gif, RichFacesComponentsLibrary.html#portlet, jbossajax4jsf/freezone/docs/tlddoc/a4j/portlet.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIPortlet.html, /richfaces/portlet.jsf
effect= richMisc, Effect, /images/ico_common.gif, /images/cn_Effect.gif, RichFacesComponentsLibrary.html#effect, jbossrichfaces/freezone/docs/tlddoc/rich/effect.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIEffect.html, /richfaces/effect.jsf
+contextMenu= richMenu, Context Menu, /images/ico_dropDownMenu.gif, /images/cn_contextMenu.gif, RichFacesComponentsLibrary.html\#contextMenu, jbossrichfaces/freezone/docs/tlddoc/rich/contextMenu.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIContextMenu.html, /richfaces/contextMenu.jsf
+componentControl= richMisc, Component Control, /images/ico_common.gif, /images/cn_componentControl.gif, RichFacesComponentsLibrary.html\#componentControl, jbossrichfaces/freezone/docs/tlddoc/rich/componentControl.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIcomponentControl.html, /richfaces/componentControl.jsf
+orderingList= richSelect, Ordering List, /images/ico_DataTable.gif, /images/cn_orderingList.gif, RichFacesComponentsLibrary.html\#orderingList, jbossrichfaces/freezone/docs/tlddoc/rich/orderingList.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIorderingList.html, /richfaces/orderingList.jsf
+listShuttle= richSelect, List Shuttle, /images/ico_DataTable.gif, /images/cn_listShuttle.gif, RichFacesComponentsLibrary.html\#listShuttle, jbossrichfaces/freezone/docs/tlddoc/rich/listShuttle.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIlistShuttle.html, /richfaces/listShuttle.jsf
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2008-01-14 12:16:46 UTC (rev 5345)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -2,6 +2,10 @@
<!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>
+ <converter>
+ <converter-id>listShuttleconverter</converter-id>
+ <converter-class>org.richfaces.demo.listShuttle.Converter</converter-class>
+ </converter>
<managed-bean>
<managed-bean-name>skinBean</managed-bean-name>
<managed-bean-class>org.richfaces.demo.common.SkinBean</managed-bean-class>
@@ -264,6 +268,11 @@
<value>true</value>
</managed-property>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>toolBar</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.listShuttle.ToolBar</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
<navigation-rule>
<from-view-id>/richfaces/include/examples/wstep1.xhtml</from-view-id>
<navigation-case>
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_componentControl.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_componentControl.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_contextMenu.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_contextMenu.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_listShuttle.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_listShuttle.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_orderingList.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_orderingList.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/cmenuusage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/cmenuusage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/cmenuusage.xhtml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,73 @@
+<f:subview xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich" id="subview">
+ <style>
+ .cur{
+ cursor:pointer;
+ }
+ </style>
+ <h:form id="form">
+
+ <rich:contextMenu attached="false" id="menu" submitMode="ajax">
+ <rich:menuItem ajaxSingle="true">
+ <b>{car} {model}</b> details
+ <a4j:actionparam name="det" assignTo="#{ddmenu.current}" value="{car} {model} details"/>
+ </rich:menuItem>
+ <rich:menuGroup value="Actions">
+ <rich:menuItem ajaxSingle="true">
+ Put <b>{car} {model}</b> To Basket
+ <a4j:actionparam name="bask" assignTo="#{ddmenu.current}" value="Put {car} {model} To Basket"/>
+ </rich:menuItem>
+ <rich:menuItem value="Read Comments" ajaxSingle="true">
+ <a4j:actionparam name="bask" assignTo="#{ddmenu.current}" value="Read Comments"/>
+ </rich:menuItem>
+ <rich:menuItem ajaxSingle="true">
+ Go to <b>{car}</b> site
+ <a4j:actionparam name="bask" assignTo="#{ddmenu.current}" value="Go to {car} site"/>
+ </rich:menuItem>
+ </rich:menuGroup>
+ </rich:contextMenu>
+
+ <h:panelGrid columns="2">
+
+ <rich:dataTable value="#{dataTableScrollerBean.tenRandomCars}" var="car" id="table"
+ onRowMouseOver="this.style.backgroundColor='#F8F8F8'"
+ onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" rowClasses="cur">
+ <rich:column>
+ <f:facet name="header">
+ Make
+ </f:facet>
+ <h:outputText value="#{car.make}"/>
+ </rich:column>
+ <rich:column>
+ <f:facet name="header">
+ Model
+ </f:facet>
+ <h:outputText value="#{car.model}"/>
+ </rich:column>
+ <rich:column>
+ <f:facet name="header">
+ Price
+ </f:facet>
+ <h:outputText value="#{car.price}" />
+ </rich:column>
+
+ <rich:componentControl event="onRowClick" for="menu" operation="show">
+ <f:param value="#{car.model}" name="model"/>
+ <f:param value="#{car.make}" name="car"/>
+ </rich:componentControl>
+
+ </rich:dataTable>
+
+ <a4j:outputPanel ajaxRendered="true">
+ <rich:panel>
+ <f:facet name="header">Last Menu Action</f:facet>
+ <h:outputText value="#{ddmenu.current}"></h:outputText>
+ </rich:panel>
+ </a4j:outputPanel>
+ </h:panelGrid>
+ </h:form>
+</f:subview>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/control.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/control.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/control.xhtml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,75 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <style>
+ .atop{
+ vertical-align:top;
+ }
+ </style>
+ <p>RichFaces Component Control is a universal component that allows to call JS API functions on the
+ components after defined events.
+ </p>
+ <p>
+ In this simple example <b>componentControl</b> components are used to open and close modal panel.
+ The component is attached to links and calls "show" and "hide" functions on Modal Panel.
+ </p>
+ <div class="sample-container">
+ <ui:include src="/richfaces/componentControl/examples/mpusage.xhtml" />
+ <rich:spacer height="20"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/componentControl/examples/mpusage.xhtml"/>
+ </ui:include>
+ </div>
+ <p>
+ <b>Main component attributes:</b>
+ <ul>
+ <li><b>for</b> - specifies client identifier of the target component.</li>
+ <li><b>attachTo</b> - specifies client identifier of the component or id of the existing DOM element that is a source
+ for a given event. If <b>attachTo</b> is not defined, the event is attached on the server to the closest in the
+ component tree parent component.</li>
+ <li><b>event</b> - is used to trigger the <b>operation</b> on the target component
+ <br/><i><b>Note:</b> the component could use "oncontextmenu" event to call the JS API on right click event.
+ But in this case this component should be defined via <b>for</b> attribute rather than using a4j:support style.
+ In case of support-like definition, the component will not work properly, as many of the components don't encode this event.
+ </i>
+
+ </li>
+ <li><b>operation</b> - name of the javascript function that will be invoked on a target component. The API method
+ is attached to the 'component' property of the root DOM element that represents
+ the target component. The function has two parameters - <b>event</b> and <b>params</b>.</li>
+ <li><b>params</b> - a set of parameters passed to the function of Javascript API that will be invoked.
+ The JSON syntax is used to define the parameters, but without open and closed curve
+ bracket.
+ As an alternative, a set of f:param can be used to define the parameters passed to the
+ API function. </li>
+ </ul>
+ </p>
+ <p>
+ Thus, one of the main features is that Component Control component allows to transfer
+ parameters to managed components.
+ </p>
+ <p>
+ You may put <b>f:param</b> components as nested to component control component (instead of <b>params</b> attribute usage)
+ and all the parameters that are defined will be available from target component.
+ </p>
+ <p>
+ In the next example, component control is used inside <b>rich:dataTable</b> component.
+ Component control is defined with two parameters which have the current row values.
+ Hence the <b>rich:contextMenu</b> component that called by this Component Control
+ will take this parameters and will be able to display them in its items values.
+ </p>
+ <p>
+ Click at any table row to see the context menu that generated individually for
+ every row using parameters.
+ </p>
+ <div class="sample-container">
+ <ui:include src="/richfaces/componentControl/examples/cmenuusage.xhtml" />
+ <rich:spacer height="20"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/componentControl/examples/cmenuusage.xhtml"/>
+ </ui:include>
+ </div>
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,27 @@
+<f:subview xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <rich:modalPanel id="panel" width="350" height="100">
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText value="Modal Panel"></h:outputText>
+ </h:panelGroup>
+ </f:facet>
+ <f:facet name="controls">
+ <h:panelGroup>
+ <h:graphicImage value="/images/modal/close.png" style="cursor:pointer" id="hidelink"/>
+ <rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
+ </h:panelGroup>
+ </f:facet>
+ <h:outputText value="This panel is called using Component Control Component"></h:outputText>
+ <br/>
+ <h:outputText value="Closure link (X) works also through Component Control"></h:outputText>
+ </rich:modalPanel>
+ <h:outputLink value="#" id="link">
+ Show Modal Panel
+ <rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>
+ </h:outputLink>
+</f:subview>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/usage.xhtml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,16 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <ui:include src="/richfaces/componentControl/examples/control.xhtml"/>
+
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/componentControl.xhtml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Component Control Component</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/componentControl/usage.xhtml"/>
+ </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/componentControl"/>
+ </ui:include>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu.xhtml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Context Menu Component</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/contextMenu/usage.xhtml"/>
+ </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/contextMenu"/>
+ </ui:include>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples/toolBarCustomization.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples/toolBarCustomization.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples/toolBarCustomization.xhtml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,46 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:c="http://java.sun.com/jstl/core">
+
+<style>
+.pic{
+margin-bottom:-4px;
+margin-right:2px;
+}
+a{
+text-decoration:none;
+color:#{a4jSkin.headerTextColor};
+}
+</style>
+ <h:form>
+ <rich:toolBar id="toolBar" itemSeparator="line" height="28px">
+ <c:forEach items="#{toolBar.items}" var="item">
+ <h:panelGroup>
+ <h:graphicImage value="#{item.iconURI}" styleClass="pic"/>
+ <h:outputLink value="#">
+ <h:outputText value="#{item.label}"></h:outputText>
+ </h:outputLink>
+ </h:panelGroup>
+ </c:forEach>
+ </rich:toolBar>
+ <rich:spacer height="20"></rich:spacer>
+
+ <rich:listShuttle sourceValue="#{toolBar.freeItems}"
+ targetValue="#{toolBar.items}" var="items" listHeight="300" listWidth="300"
+ sourceCaptionLabel="Available Items"
+ targetCaptionLabel="Currently Active Items"
+ converter="listShuttleconverter">
+ <rich:column width="18">
+ <h:graphicImage value="#{items.iconURI}"></h:graphicImage>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{items.label}"></h:outputText>
+ </rich:column>
+ <a4j:support event="onlistchanged" reRender="toolBar"/>
+ </rich:listShuttle>
+ </h:form>
+</ui:composition>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/listShuttle.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/listShuttle.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/listShuttle.xhtml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,46 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+ <p>
+ <b>listShuttle</b> component allows to select items using two lists with move controls and reorder items in result list.
+ </p>
+ <p>
+ List Shuttle could contain several columns in list representation. And it
+ also has strong keyboard support out of the box.
+ </p>
+ <p><b>Example.</b>Customize simple application toolbar using List Shuttle.
+ In this example you may select items and their order within the toolBar.
+ <br/>
+ After you move some items between lists or reorder them in "Currently Active" list - you'll
+ see the changes on the toolbar
+ </p>
+ <div class="sample-container">
+ <ui:include src="/richfaces/listShuttle/examples/toolBarCustomization.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/listShuttle/examples/toolBarCustomization.xhtml"/>
+ </ui:include>
+
+ </div>
+
+ <p>
+ Content definition for this component - analogous to any Iteration component.
+ So, all you need is define collection in List Shuttle <b>sourceValue</b> attribute
+ and iterate the collection in nested columns through <b>var</b> attribute.
+ </p>
+ <p>
+ Result items will be stored under the collection defined in <b>targetValue</b> attribute.
+ </p>
+ <p>
+ In order to set initially selected rows or to process submitted selection -
+ use <b>sourceSelection</b> and <b>targetSelection</b> attributes.
+ </p>
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle.xhtml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Ordering List Component</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/listShuttle/listShuttle.xhtml"/>
+ </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/listShuttle"/>
+ </ui:include>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/example/playlist.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/example/playlist.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/example/playlist.xhtml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,26 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <style>
+ .cent{
+ text-align:center;
+ }
+</style>
+ <rich:orderingList value="#{library.libraryAsList}" var="lib" listHeight="300" listWidth="350">
+ <rich:column width="180">
+ <f:facet name="header">
+ Song Name
+ </f:facet>
+ <h:outputText value="#{lib.title}"></h:outputText>
+ </rich:column>
+ <rich:column>
+ <f:facet name="header">
+ Artist Name
+ </f:facet>
+ <h:outputText value="#{lib.album.artist.name}"></h:outputText>
+ </rich:column>
+ </rich:orderingList>
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/orderingList.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/orderingList.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/orderingList.xhtml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+ <p>
+ <b>orderingList</b> component allows to reorder items in a list.
+ </p>
+ <p>
+ Ordering List could contain several columns in list representation. And it
+ also has strong keyboard support out of the box.
+ </p>
+ <p><b>Example.</b>Manage simple playlist represented via Ordering List:</p>
+ <div class="sample-container">
+ <ui:include src="/richfaces/orderingList/example/playlist.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/orderingList/example/playlist.xhtml"/>
+ </ui:include>
+
+ </div>
+ <p>
+ In this example you may select some songs (using the mouse and Ctrl/Shift keys) and move them
+ within the list using controls.
+ </p>
+
+ <p>
+ Content definition for this component is similar to any Iteration component.
+ Thus, all you need is to define collection in Ordering List <b>value</b> attribute
+ and iterate the collection in nested columns with <b>var</b> attribute.
+ </p>
+ <p>
+ In order to set initially selected rows or to process submitted selection,
+ use <b>selection</b> attribute.
+ </p>
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList.xhtml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Ordering List Component</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/orderingList/orderingList.xhtml"/>
+ </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/orderingList"/>
+ </ui:include>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Modified: trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml 2008-01-14 12:16:46 UTC (rev 5345)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml 2008-01-14 12:31:08 UTC (rev 5346)
@@ -58,6 +58,11 @@
<ui:param name="components" value="#{componentNavigator.richInputs}" />
</ui:include>
</rich:panelBarItem>
+ <rich:panelBarItem id="richSelect" label="Rich Selects">
+ <ui:include src="/templates/include/components-group.xhtml" >
+ <ui:param name="components" value="#{componentNavigator.selectComponents}" />
+ </ui:include>
+ </rich:panelBarItem>
<rich:panelBarItem id="richMisc" label="Rich Miscellaneous">
<ui:include src="/templates/include/components-group.xhtml" >
<ui:param name="components" value="#{componentNavigator.richMisc}" />
17 years
JBoss Rich Faces SVN: r5345 - trunk/sandbox/samples/combobox-sample/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-01-14 07:16:46 -0500 (Mon, 14 Jan 2008)
New Revision: 5345
Modified:
trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp
Log:
Modified: trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-01-14 12:01:18 UTC (rev 5344)
+++ trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-01-14 12:16:46 UTC (rev 5345)
@@ -76,7 +76,7 @@
selectFirstOnUpdate="#{bean.selectFirstOnUpdate}"
filterNewValues="#{bean.filterNewValues}"
directInputSuggestions="#{bean.directInputSuggestions}"
- defaultMessage="#{bean.defaultMessage}"
+ defaultLabel="#{bean.defaultMessage}"
inputSize="#{bean.inputSize}"
onchange="#{bean.onchangeScript}"
onlistcall="#{bean.onlistcallScript}"
@@ -88,6 +88,12 @@
<f:selectItem itemValue="Rhode Island"/>
<f:selectItem itemValue="South Carolina"/>
</cmb:comboBox>
+ <cmb:comboBox>
+ <f:selectItem itemValue="Oregon"/>
+ <f:selectItem itemValue="Pennsylvania"/>
+ <f:selectItem itemValue="Rhode Island"/>
+ <f:selectItem itemValue="South Carolina"/>
+ </cmb:comboBox>
<br/>
<h:commandButton action="none" value="submit"></h:commandButton>
<br>
17 years