JBoss Rich Faces SVN: r1827 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-07-24 13:09:24 -0400 (Tue, 24 Jul 2007)
New Revision: 1827
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/usage.xhtml
Log:
attributes
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/usage.xhtml 2007-07-24 17:09:24 UTC (rev 1827)
@@ -0,0 +1,107 @@
+<!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/ajax"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>This section overview the attributes that are common for the Ajax components
+ such as a4j:support, a4j:commandButton, a4j:jsFunction, a4j:poll, a4j:push and so
+ on. Also, most RichFaces components with built-in Ajax support have those
+ attribute for the similar purpose.
+ </p>
+ <p>
+ Attributes of Ajax component is a way how RichFaces exposes its features.
+ Most of the attributes have an default value. So, you can start working with RichFaces
+ without knowing the usage of those attribute. However, using them allows to
+ tune the required Ajax behavoir very smoothly.
+ </p>
+ <h1 class="hsample">Re-Rendering</h1>
+ <p>
+ <b>reRender</b> is a key attribute. It allows to point to the area(s) on the page that
+ should be updated as a response on Ajax interaction. The value of the reRender
+ attribute is an id of the the JSF component or the id list. This is a simple example:
+
+ <div class="esample">
+ <pre>
+...
+<a4j:commandButton value="update" reRender="<b>infoBlock</b>" />
+....
+<h:panelGrid id="<b>infoBlock</b>">
+.....
+</h:panelGrid>
+.....
+ </pre>
+ </div>
+ </p>
+ <p>
+ reRender uses <a target="_blank" href="http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/api/javax/faces/c...">
+ UIComponent.findComponent()</a> algorithm (with some additional exceptions)
+ to find the component in the component tree. As you see, the algorithm presume
+ several steps. Each other step is used if the previous step is not succeseful.
+ Therefore, from your side, you can shortcut the way how fast the component is
+ found if you mentioned it more precisely. The following example show the difference
+ in approaches (both buttons will work successfully):
+ <div class="esample">
+ <pre>
+.....
+<h:form id="form1">
+ ....
+ <a4j:commandButton value="Usual Way" reRender="<b>infoBlock</b>, <b>infoBlock2</b>" />
+ <a4j:commandButton value="Shortcut" reRender="<b>:infoBlockl</b>,<b>:sv:infoBlock2</b>" />
+.....
+</h:form>
+<h:panelGrid id="<b>infoBlock</b>">
+.....
+</h:panelGrid>
+.....
+<f:subview id="<b>sv</b>">
+<h:panelGrid id="<b>infoBlock2</b>">
+.....
+</h:panelGrid>
+.....
+</f:subview>
+ </pre>
+ </div>
+ </p>
+ <p>
+ You can use JSF EL expression as a value of the reRender attribute. It might be property of
+ types Set, Collection, Array or simple String. The EL for reRender is resolved right before the
+ Render Response phase. So, you can calculate what should be re-rendered on any previous
+ phase during the Ajax request processing.
+ </p>
+ <p>
+ <b>ajaxRendered</b> attribute of the a4j:outputPanel set to true allows to define the
+ area of the page that will be re-rendered even it is not pointed in the reRender attribute
+ explicitly. It might be useful if you have a zone on the page that should be updated as a
+ response on any Ajax request. For example, the following code allows to output the error
+ messages independently what Ajax request causes the Validation phase failed.
+ </p>
+ <div class="esample">
+ <pre>
+<a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+</a4j:outputPanel>
+ </pre>
+ </div>
+ <p>
+ <b>limitToList</b> attribute allows to dismiss the behaviour of the a4j:outputPanel's ajaxRendered
+ attribute. limitToList = "false" means to update only the area(s) that mentioned in the
+ reRender attribute explicitly. All output panels with ajaxRendered="true" will be ignored.
+ </p>
+
+
+ <div class="sample-container" >
+ </div>
+
+
+ </ui:define>
+ <ui:define name="sources">
+ Here is a fragment of page sources for the given example:
+ <iframe src="${facesContext.externalContext.requestContextPath}/richfaces/ajaxAttributes/source/usage.html" class="source_frame"/>
+ </ui:define>
+ </ui:composition>
+</html>
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/usage.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
17 years, 5 months
JBoss Rich Faces SVN: r1826 - trunk/samples/richfaces-demo/src/main/webapp/images.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-07-24 13:08:08 -0400 (Tue, 24 Jul 2007)
New Revision: 1826
Added:
trunk/samples/richfaces-demo/src/main/webapp/images/cn_AjaxPage.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_AjaxPortlet.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_Bundle.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_Column.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_ColumnGroup.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_DragDropParameter.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_HtmlCommandLink.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_Include.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_KeepAlive.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_Log.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_MediaOutput.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_MenuGroup.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_MenuItem.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_MenuSeparator.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_OutputPanel.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_Repeat.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_Script.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_Style.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_ToolTip.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_action_parameter.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_attributes.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_form.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_listener.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_region.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_support.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_command_button.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_command_link.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_javascript_function.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_poll.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_push.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_status.gif
Modified:
trunk/samples/richfaces-demo/src/main/webapp/images/cn_DataDefinitionList.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_DataFilterSlider.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_DataGrid.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_DataList.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_DataOrderedList.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_DataTable.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_DragIndicator.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_DragSupport.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_DropDownMenu.gif
trunk/samples/richfaces-demo/src/main/webapp/images/cn_DropSupport.gif
Log:
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_AjaxPage.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_AjaxPage.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_AjaxPortlet.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_AjaxPortlet.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Bundle.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Bundle.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Column.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Column.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ColumnGroup.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ColumnGroup.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/samples/richfaces-demo/src/main/webapp/images/cn_DataDefinitionList.gif
===================================================================
(Binary files differ)
Modified: trunk/samples/richfaces-demo/src/main/webapp/images/cn_DataFilterSlider.gif
===================================================================
(Binary files differ)
Modified: trunk/samples/richfaces-demo/src/main/webapp/images/cn_DataGrid.gif
===================================================================
(Binary files differ)
Modified: trunk/samples/richfaces-demo/src/main/webapp/images/cn_DataList.gif
===================================================================
(Binary files differ)
Modified: trunk/samples/richfaces-demo/src/main/webapp/images/cn_DataOrderedList.gif
===================================================================
(Binary files differ)
Modified: trunk/samples/richfaces-demo/src/main/webapp/images/cn_DataTable.gif
===================================================================
(Binary files differ)
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_DragDropParameter.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_DragDropParameter.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/samples/richfaces-demo/src/main/webapp/images/cn_DragIndicator.gif
===================================================================
(Binary files differ)
Modified: trunk/samples/richfaces-demo/src/main/webapp/images/cn_DragSupport.gif
===================================================================
(Binary files differ)
Modified: trunk/samples/richfaces-demo/src/main/webapp/images/cn_DropDownMenu.gif
===================================================================
(Binary files differ)
Modified: trunk/samples/richfaces-demo/src/main/webapp/images/cn_DropSupport.gif
===================================================================
(Binary files differ)
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_HtmlCommandLink.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_HtmlCommandLink.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Include.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Include.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_KeepAlive.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_KeepAlive.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Log.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Log.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_MediaOutput.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_MediaOutput.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_MenuGroup.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_MenuGroup.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_MenuItem.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_MenuItem.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_MenuSeparator.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_MenuSeparator.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_OutputPanel.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_OutputPanel.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Repeat.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Repeat.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Script.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Script.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Style.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_Style.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ToolTip.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ToolTip.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_action_parameter.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_action_parameter.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_attributes.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_attributes.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_form.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_form.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_listener.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_listener.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_region.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_region.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_support.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ajax_support.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_command_button.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_command_button.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_command_link.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_command_link.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_javascript_function.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_javascript_function.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_poll.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_poll.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_push.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_push.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_status.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_status.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 5 months
JBoss Rich Faces SVN: r1825 - in trunk: sandbox/samples/scrollable-grid-demo/src/main/webapp/pages and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-07-24 11:48:57 -0400 (Tue, 24 Jul 2007)
New Revision: 1825
Modified:
trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
trunk/sandbox/samples/scrollable-grid-demo/src/main/webapp/pages/test.xhtml
trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Grid.js
trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/GridBody.js
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx
Log:
RF-463
Modified: trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
===================================================================
--- trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2007-07-24 13:17:18 UTC (rev 1824)
+++ trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2007-07-24 15:48:57 UTC (rev 1825)
@@ -811,16 +811,19 @@
*/
A4J.AJAX.finishRequest = function(req){
var options = req.options;
- // mark status object ( if any ) for complete request ;
- A4J.AJAX.status(req.containerId,options.status,false);
// we can set listener for complete request - for example,
// it can shedule next request for update page.
if(options.oncomplete){
LOG.debug( "Call request oncomplete function after processing updates" );
window.setTimeout(function(){
- options.oncomplete(req,req.domEvt,req.getJSON('_ajax:data'));},
+ options.oncomplete(req,req.domEvt,req.getJSON('_ajax:data'));
+ // mark status object ( if any ) for complete request ;
+ A4J.AJAX.status(req.containerId,options.status,false);},
50);
+ } else {
+ // mark status object ( if any ) for complete request ;
+ A4J.AJAX.status(req.containerId,options.status,false);
}
// If we have events in queue - send next request.
if(options.eventsQueue){
Modified: trunk/sandbox/samples/scrollable-grid-demo/src/main/webapp/pages/test.xhtml
===================================================================
--- trunk/sandbox/samples/scrollable-grid-demo/src/main/webapp/pages/test.xhtml 2007-07-24 13:17:18 UTC (rev 1824)
+++ trunk/sandbox/samples/scrollable-grid-demo/src/main/webapp/pages/test.xhtml 2007-07-24 15:48:57 UTC (rev 1825)
@@ -4,10 +4,11 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:sg="http://labs.jboss.com/jbossrichfaces/ui/ui/scrollable-grid"
- xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+ xmlns:a4j="http://richfaces.org/ajax">
<body>
<f:view>
<h:form>
+ <a4j:status startText="loading..."/>
<h:selectOneMenu value="#{modelBuilder.grid}">
<f:selectItems value="#{modelBuilder.grids}" />
</h:selectOneMenu>
Modified: trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Grid.js
===================================================================
--- trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Grid.js 2007-07-24 13:17:18 UTC (rev 1824)
+++ trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Grid.js 2007-07-24 15:48:57 UTC (rev 1825)
@@ -171,9 +171,6 @@
this.adjustColumnWidth(i, columns[i].width);
}
},
- setProgressCtrl: function(ctrl) {
- this.getBody().setProgressCtrl(ctrl);
- },
quickFind: function(column, text, startRow) {
var start = startRow || 0;
var searchText = "*" + text + "*";
Modified: trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
--- trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/GridBody.js 2007-07-24 13:17:18 UTC (rev 1824)
+++ trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/GridBody.js 2007-07-24 15:48:57 UTC (rev 1825)
@@ -6,7 +6,6 @@
ClientUILib.declarePackage("ClientUI.controls.grid.GridBody");
ClientUILib.requireClass("ClientUI.common.box.Box");
-ClientUILib.requireClass("ClientUI.common.box.SplashBox");
//ClientUILib.requireClass("ClientUI.controls.grid.DataCash");
/*
@@ -426,7 +425,6 @@
this.currRange = range;
this.currentPos = task.pos;
- this.showSplash();
this.container.hide();
var options = {
@@ -462,21 +460,6 @@
this.updateStarted = false;
}
},
-
- setProgressCtrl: function(ctrl) {
- this.splash = ctrl;
- this.splash.setParent(this.getElement());
- this.splash.moveTo(0, 0);
- },
- showSplash: function () {
- if(!this.splash) {
- this.setProgressCtrl(new ClientUI.common.box.SplashBox(null, this.getElement(), 300));
- }
- this.splash.setSize(this.scrollBox.getViewportWidth(), this.scrollBox.getViewportHeight());
- this.splash.updateLayout();
- this.splash.show();
- this.splash.updateLayout();
- },
forceReRender: function() {
if(ClientUILib.isIE && !ClientUILib.isIE7) {
var frozenTbl = this.templFrozen.getElement();
@@ -608,15 +591,9 @@
*/
invalidate: function(options) {
screen.updateInterval = this.updateInterval;
-
- setTimeout(function () {
- this.rearrangeRows(options, true, true);
- this.container.show();
- if(this.splash) this.splash.hide();
- this.updateStarted = false;
-
- }.bind(this), 10);
-
+ this.rearrangeRows(options, true, true);
+ this.container.show();
+ this.updateStarted = false;
/*if(this.processedPos != this.currentPos) {
this.currentPos = this.processedPos;
setTimeout(function (){
Modified: trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx
===================================================================
--- trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx 2007-07-24 13:17:18 UTC (rev 1824)
+++ trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx 2007-07-24 15:48:57 UTC (rev 1825)
@@ -224,17 +224,6 @@
<f:call name="contributorsEncodeHere"/>
</div>
-
- <jsp:scriptlet>
- if(component.getFacets().containsKey("splash")){
- UIComponent splash = component.getFacet("splash");
- String splash_id = splash.getClientId(context);
- variables.setVariable("splash_id",splash_id);
- renderChild(context, splash);
- }
- </jsp:scriptlet>
-
-
<script id="#{clientId}_grid_create_scripts" type="text/javascript">
//<![CDATA[
17 years, 5 months
JBoss Rich Faces SVN: r1824 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-07-24 09:17:18 -0400 (Tue, 24 Jul 2007)
New Revision: 1824
Added:
trunk/docs/userguide/en/src/main/resources/images/virtualEarth.png
trunk/docs/userguide/en/src/main/resources/images/virtualEarth1.png
Log:
http://jira.jboss.com/jira/browse/RF-458
Added: trunk/docs/userguide/en/src/main/resources/images/virtualEarth.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/virtualEarth.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/virtualEarth1.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/virtualEarth1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 5 months
JBoss Rich Faces SVN: r1823 - trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-07-24 09:14:24 -0400 (Tue, 24 Jul 2007)
New Revision: 1823
Modified:
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageHtmlBaseRenderer.java
Log:
add support for rendering title attribute
Modified: trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageHtmlBaseRenderer.java
===================================================================
--- trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageHtmlBaseRenderer.java 2007-07-24 13:13:50 UTC (rev 1822)
+++ trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageHtmlBaseRenderer.java 2007-07-24 13:14:24 UTC (rev 1823)
@@ -260,6 +260,8 @@
Severity severity = null;
+ String title = null;
+
boolean isTooltip = getUtils().isBooleanAttribute(uiMsg, "tooltip");
boolean showSummary = uiMsg.isShowSummary();
@@ -268,6 +270,7 @@
boolean isPassLabel = false;
+
if(facesMsg != null){
severity = facesMsg.getSeverity();
@@ -319,7 +322,12 @@
if(facesMsg != null){
if(isTooltip){
- getUtils().writeAttribute(writer, HTML.title_ATTRIBUTE, summary);
+ title = (String) uiMsg.getAttributes().get("title");
+ if(title != null){
+ getUtils().writeAttribute(writer, HTML.title_ATTRIBUTE, title);
+ }else{
+ getUtils().writeAttribute(writer, HTML.title_ATTRIBUTE, summary);
+ }
}
if(showDetail){
17 years, 5 months
JBoss Rich Faces SVN: r1822 - trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-07-24 09:13:50 -0400 (Tue, 24 Jul 2007)
New Revision: 1822
Modified:
trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
Log:
add title attribute to the first rich:message component
Modified: trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
===================================================================
--- trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-07-24 12:53:44 UTC (rev 1821)
+++ trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-07-24 13:13:50 UTC (rev 1822)
@@ -33,6 +33,7 @@
fatalLabelClass="warnLabel"
infoLabelClass="infoLabel"
warnLabelClass="fatalLabel"
+ title="this is tooltip"
>
@@ -52,8 +53,8 @@
<h:graphicImage url="/image/passed.gif"/>
</f:facet>
</r:message>
-
- <a4j:outputPanel ajaxRendered="true">
+ <a4j:outputPanel ajaxRendered="true">
+
<r:message for="select"
tooltip="true"
showDetail="false"
17 years, 5 months
JBoss Rich Faces SVN: r1821 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-07-24 08:53:44 -0400 (Tue, 24 Jul 2007)
New Revision: 1821
Added:
trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.xml
Log:
http://jira.jboss.com/jira/browse/RF-458
Added: trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml 2007-07-24 12:53:44 UTC (rev 1821)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section>
+<sectioninfo>
+<keywordset>
+ <keyword>virtualEarth</keyword>
+</keywordset>
+</sectioninfo>
+<section>
+<title>Description</title>
+ <para>Component that presents the Microsoft <property>Virtual Earth map</property> in the JSF applications.</para>
+ <figure>
+ <title>virtualEarth component</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/virtualEarth.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem>Presents the Microsoft <property>Virtual Earth map</property> functional</listitem>
+ <listitem>Highly customizable via attributes</listitem>
+ <listitem>No developers JavaScript writing needed to use on the pages</listitem>
+ </itemizedlist>
+</section>
+</section>
Added: trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.xml 2007-07-24 12:53:44 UTC (rev 1821)
@@ -0,0 +1,135 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>map</keyword>
+ <keyword>Virtual Earth</keyword>
+ </keywordset>
+ </sectioninfo>
+
+ <table>
+ <title>Component identification parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.richfaces.VirtualEarth</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlVirtualEarth</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.VirtualEarth</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.VirtualEarthRenderer</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.VirtualEarthTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <section>
+ <title>Creating the Component with a Page Tag</title>
+ <para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:virtualEarth var="map"/>
+...
+]]></programlisting>
+ </section>
+ <section>
+ <title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlVirtualEarth;
+...
+HtmlVirtualEarth myMap = new HtmlVirtualEarth();
+...
+]]></programlisting>
+ </section>
+ <section>
+ <title>Details of Usage</title>
+
+ <para>Here are the main settings of initial rendering performed with a component
+ <property>map</property> that are accessible with the following attributes:</para>
+ <itemizedlist>
+ <listitem>
+ <emphasis>
+ <property>"zoom"</property>
+ </emphasis> defines an approximation size (boundary values 1-18) </listitem>
+ <listitem>
+ <emphasis>
+ <property>"lat"</property>
+ </emphasis> specifies an initial latitude coordinate in degrees, as a number between -90 and
+ +90 </listitem>
+ <listitem>
+ <emphasis>
+ <property>"lng"</property>
+ </emphasis> specifies an initial longitude coordinate in degrees, as a number between -180
+ and +180 </listitem>
+ <listitem>
+ <emphasis>
+ <property>"dashboardSize"</property>
+ </emphasis>specifies a type of a rendered map (Normal, Small, Tiny)</listitem>
+ </itemizedlist>
+ <para>For example, the city of Paris is shown after rendering with the following initial
+ settings: <emphasis>
+ <property>"lat"</property>
+ </emphasis>= 48.833, <emphasis>
+ <property>"lng"</property>
+ </emphasis>= 2.40 and <emphasis>
+ <property>"zoom"</property>
+ </emphasis>= 11.</para>
+ <figure>
+ <title>virtualEarth initial rendering</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/virtualEarth1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Code for this example is placed below:</para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:virtualEarth style="width:800px;" id="vm" lat="48.833" lng="2.40"
+ dashboardSize="Normal" zoom="11" mapStyle="Hybrid" var="map" />
+...
+]]></programlisting>
+
+ </section>
+ <!--section>
+ <title>Look-and-Feel Customization</title>
+ <para><property>Virtual Earth map</property> component isn't tied to skin parameters, as there is no
+ additional elements on it, except the ones provided with <emphasis><property>Virtual Earth map</property>.</emphasis></para>
+ </section>
+ <section>
+ <title>Definition custom style classes:</title>
+ <para>rich-virtualEarth map is a predefined style class for the map. It's possible to define some
+ standard properties for all <property>maps</property> components on a page (padding, border,
+ etc.) with the definition of the component.</para>
+ </section-->
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ <ulink url="http://msdn2.microsoft.com/en-us/library/bb429619.aspx">Here</ulink> you can found
+ information about Microsoft <property>Virtual Earth map</property>.</para>
+ </section>
+
+</section>
17 years, 5 months
JBoss Rich Faces SVN: r1820 - in trunk/sandbox/ui/calendar/src: test/java/org/richfaces/component and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-07-24 08:51:40 -0400 (Tue, 24 Jul 2007)
New Revision: 1820
Added:
trunk/sandbox/ui/calendar/src/test/java/org/richfaces/component/CurrentDateEventTest.java
Modified:
trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
Log:
Added JUnit test for CurrentDateChangeEvent
Modified: trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-07-24 11:28:26 UTC (rev 1819)
+++ trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-07-24 12:51:40 UTC (rev 1820)
@@ -239,7 +239,6 @@
updateCurrentDate(facesContext, currentDate1);
ValueChangeEvent changeEvent = new ValueChangeEvent(this,currentDate2,currentDate1);
changeEvent.queue();
- //TODO Add ValueChange Events for currentDate
}
Added: trunk/sandbox/ui/calendar/src/test/java/org/richfaces/component/CurrentDateEventTest.java
===================================================================
--- trunk/sandbox/ui/calendar/src/test/java/org/richfaces/component/CurrentDateEventTest.java (rev 0)
+++ trunk/sandbox/ui/calendar/src/test/java/org/richfaces/component/CurrentDateEventTest.java 2007-07-24 12:51:40 UTC (rev 1820)
@@ -0,0 +1,76 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces 3.0 - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.component;
+
+import java.util.Calendar;
+
+import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
+
+/**
+ * Unit test for CurrentDateChangeEvent.
+ */
+public class CurrentDateEventTest extends AbstractAjax4JsfTestCase {
+
+ private CurrentDateChangeEvent event1;
+ private CurrentDateChangeEvent event2;
+ private UICalendar calendar;
+ private Calendar cal;
+
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public CurrentDateEventTest(String testName) {
+ super(testName);
+ }
+
+ /* (non-Javadoc)
+ * @see org.ajax4jsf.tests.AbstractAjax4JsfTestCase#setUp()
+ */
+ public void setUp() throws Exception {
+ super.setUp();
+
+ calendar = (UICalendar) application.createComponent(UICalendar.COMPONENT_TYPE);;
+ event1 = new CurrentDateChangeEvent (calendar, "09/11/2001");
+ cal = Calendar.getInstance();
+ cal.set(2001, 8, 11);
+ event2 = new CurrentDateChangeEvent (calendar, cal.getTime());
+ }
+
+ /* (non-Javadoc)
+ * @see org.ajax4jsf.tests.AbstractAjax4JsfTestCase#tearDown()
+ */
+ public void tearDown() throws Exception {
+ super.tearDown();
+ event1 = null;
+ event2 = null;
+ calendar = null;
+ }
+
+ public void testEvent() throws Exception {
+ assertEquals(cal.getTime(), event2.getCurrentDate());
+ assertEquals("09/11/2001", event1.getCurrentDateString());
+ }
+
+
+}
Property changes on: trunk/sandbox/ui/calendar/src/test/java/org/richfaces/component/CurrentDateEventTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
17 years, 5 months
JBoss Rich Faces SVN: r1819 - trunk.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-07-24 07:28:26 -0400 (Tue, 24 Jul 2007)
New Revision: 1819
Modified:
trunk/pom.xml
Log:
oops
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2007-07-24 11:28:13 UTC (rev 1818)
+++ trunk/pom.xml 2007-07-24 11:28:26 UTC (rev 1819)
@@ -13,7 +13,7 @@
<module>ui</module>
<module>ui/assembly</module>
<module>extensions</module>
- <!--module>docs</module-->
+ <module>docs</module>
<module>samples</module>
<!--
<module>sandbox</module>
17 years, 5 months
JBoss Rich Faces SVN: r1818 - trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-07-24 07:28:13 -0400 (Tue, 24 Jul 2007)
New Revision: 1818
Modified:
trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
Log:
remove marlerLocation attribute
Modified: trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
===================================================================
--- trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-07-24 11:17:55 UTC (rev 1817)
+++ trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-07-24 11:28:13 UTC (rev 1818)
@@ -28,7 +28,6 @@
tooltip="true"
showDetail="false"
showSummary="true"
- markerLocation="left"
passedLabel="No Error"
errorLabelClass="errorLabel"
fatalLabelClass="warnLabel"
@@ -59,7 +58,6 @@
tooltip="true"
showDetail="false"
showSummary="true"
- markerLocation="left"
passedLabel="No Error"
errorLabelClass="errorLabel"
fatalLabelClass="warnLabel"
17 years, 5 months