JBoss Rich Faces SVN: r1258 - trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-06-21 11:00:42 -0400 (Thu, 21 Jun 2007)
New Revision: 1258
Modified:
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js
Log:
add selection JS events
Modified: trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js 2007-06-21 14:55:37 UTC (rev 1257)
+++ trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js 2007-06-21 15:00:42 UTC (rev 1258)
@@ -108,7 +108,39 @@
}
}
}
- },
+ },
+
+ getState: function() {
+ var s = this.clone();
+ return {
+ size: function() {
+ return s.size();
+ },
+
+ each: function(iterator) {
+ s.each(iterator);
+ },
+
+ isSelected: function(id) {
+ return s.isSelectedId(id);
+ }
+ };
+ },
+
+ clone: function() {
+ var ret = Object.extend(new Object(),this);
+ ret.ranges = new Array(ret.ranges.length);
+ for (var i = 0; i < ret.ranges.length; i++) {
+ ret.ranges[i] = this.ranges[i].clone();
+ }
+ return ret;
+ },
+
+ each: function(iterator) {
+ for (var i = 0; i < this.ranges.length; i++) {
+ this.ranges[i].each(iterator);
+ }
+ },
getRanges: function() {
return this.ranges;
@@ -245,6 +277,7 @@
}
i++;
}
+ this.oldState = this.selection.getState();
},
setListeners: function() {
@@ -354,7 +387,7 @@
this.lostFocus();
}
if (noDefault) {
- $(this.inputElement).value = this.selection.inspectRanges() + this.selectionFlag;
+ this.selectionChanged();
if (event.preventBubble) event.preventBubble();
Event.stop(event);
}
@@ -398,7 +431,14 @@
} else if (document.selection) {
document.selection.empty();
}
+ this.selectionChanged();
+ },
+
+ selectionChanged: function() {
$(this.inputElement).value = this.selection.inspectRanges()+ this.selectionFlag;
+ var state = this.selection.getState();
+// IL.Event.fireEvent(this.grid.element, "selectionchange", {oldSelection: this.oldState, newSelection: state}, null);
+ this.oldState = state;
},
setShiftRow: function(event) {
17 years, 6 months
JBoss Rich Faces SVN: r1257 - trunk/richfaces-samples/panelbar-sample/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: A.Skokov
Date: 2007-06-21 10:55:37 -0400 (Thu, 21 Jun 2007)
New Revision: 1257
Modified:
trunk/richfaces-samples/panelbar-sample/src/main/webapp/pages/index.jsp
Log:
http://jira.jboss.com/jira/browse/RF-274
Modified: trunk/richfaces-samples/panelbar-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/richfaces-samples/panelbar-sample/src/main/webapp/pages/index.jsp 2007-06-21 14:55:11 UTC (rev 1256)
+++ trunk/richfaces-samples/panelbar-sample/src/main/webapp/pages/index.jsp 2007-06-21 14:55:37 UTC (rev 1257)
@@ -28,7 +28,11 @@
<rich:panelBarItem label="1">
<h:commandButton value="knopochka"/>
</rich:panelBarItem>
- <rich:panelBarItem label="2">
+ <rich:panelBarItem>
+ <f:facet name="label">
+ <h:outputText value="2" />
+ </f:facet>
+
<h:inputTextarea value="null"></h:inputTextarea>
</rich:panelBarItem>
</rich:panelBar>
17 years, 6 months
JBoss Rich Faces SVN: r1256 - trunk/richfaces/panelbar/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: A.Skokov
Date: 2007-06-21 10:55:11 -0400 (Thu, 21 Jun 2007)
New Revision: 1256
Modified:
trunk/richfaces/panelbar/src/main/templates/panelBarItem.jspx
Log:
http://jira.jboss.com/jira/browse/RF-274
Modified: trunk/richfaces/panelbar/src/main/templates/panelBarItem.jspx
===================================================================
--- trunk/richfaces/panelbar/src/main/templates/panelBarItem.jspx 2007-06-21 14:25:24 UTC (rev 1255)
+++ trunk/richfaces/panelbar/src/main/templates/panelBarItem.jspx 2007-06-21 14:55:11 UTC (rev 1256)
@@ -13,11 +13,32 @@
<div id="#{clientId}" class="dr-pnlbar rich-panelbar dr-pnlbar-ext #{component.panel.attributes['styleClass']}" style="#{component.panel.attributes['style']}">
<div class="dr-pnlbar-h rich-panelbar-header #{component.panel.attributes['headerClass']} #{component.attributes['headerClass']}"
style="#{component.panel.attributes['headerStyle']};#{component.attributes['headerStyle']}">
- #{component.attributes['label']}
+ <jsp:scriptlet><![CDATA[
+ if(component.getFacet("label")!=null && component.getFacet("label").isRendered()) {
+ ]]></jsp:scriptlet>
+ <u:insertFacet name="label" />
+ <jsp:scriptlet><![CDATA[
+ } else {
+ ]]></jsp:scriptlet>
+ #{component.attributes['label']}
+ <jsp:scriptlet><![CDATA[
+ }
+ ]]></jsp:scriptlet>
</div>
<div class="dr-pnlbar-h-act rich-panelbar-header-act #{component.panel.attributes['headerClass']} #{component.attributes['headerClass']} #{component.panel.attributes['headerClassActive']} #{component.attributes['headerClassActive']}"
style="#{component.panel.attributes['headerStyle']};#{component.attributes['headerStyle']};#{component.panel.attributes['headerStyleActive']};#{component.attributes['headerStyleActive']};display: none;">
- #{component.attributes['label']}
+
+ <jsp:scriptlet><![CDATA[
+ if(component.getFacet("label")!=null && component.getFacet("label").isRendered()) {
+ ]]></jsp:scriptlet>
+ <u:insertFacet name="label" />
+ <jsp:scriptlet><![CDATA[
+ } else {
+ ]]></jsp:scriptlet>
+ #{component.attributes['label']}
+ <jsp:scriptlet><![CDATA[
+ }
+ ]]></jsp:scriptlet>
</div>
<div style="display: none; width: 100%;">
17 years, 6 months
JBoss Rich Faces SVN: r1255 - trunk/richfaces/togglePanel/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: a.izobov
Date: 2007-06-21 10:25:24 -0400 (Thu, 21 Jun 2007)
New Revision: 1255
Modified:
trunk/richfaces/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java
Log:
http://jira.jboss.com/jira/browse/RF-90 fixed
Modified: trunk/richfaces/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java
===================================================================
--- trunk/richfaces/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java 2007-06-21 14:19:33 UTC (rev 1254)
+++ trunk/richfaces/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java 2007-06-21 14:25:24 UTC (rev 1255)
@@ -113,7 +113,7 @@
if(UITogglePanel.CLIENT_METHOD.equals(switchType)) {
// Client
String panelId = panel.getClientId(context);
- String switchToDivId = getDivId(panelId, tgComp.getSwitchToState());
+ String switchToDivId = tgComp.getSwitchToState();
onClick.append("TogglePanelManager.toggleOnClient('")
.append(panelId)
.append("',")
@@ -151,14 +151,6 @@
return onClick.toString();
}
- private String getDivId(String panelId, String state) {
- if(state!=null) {
- return panelId + "_" + state;
- }
- return null;
- }
-
-
public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
super.encodeChildren(context, component);
}
17 years, 6 months
JBoss Rich Faces SVN: r1254 - in trunk/sandbox/panelmenu/src/main/java/org/richfaces: component and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-06-21 10:19:33 -0400 (Thu, 21 Jun 2007)
New Revision: 1254
Removed:
trunk/sandbox/panelmenu/src/main/java/org/richfaces/conveter/
Modified:
trunk/sandbox/panelmenu/src/main/java/org/richfaces/component/UIPanelMenuGroup.java
trunk/sandbox/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuItemRenderer.java
Log:
Some PanelMenu fixes
Modified: trunk/sandbox/panelmenu/src/main/java/org/richfaces/component/UIPanelMenuGroup.java
===================================================================
--- trunk/sandbox/panelmenu/src/main/java/org/richfaces/component/UIPanelMenuGroup.java 2007-06-21 14:03:01 UTC (rev 1253)
+++ trunk/sandbox/panelmenu/src/main/java/org/richfaces/component/UIPanelMenuGroup.java 2007-06-21 14:19:33 UTC (rev 1254)
@@ -22,9 +22,9 @@
package org.richfaces.component;
import javax.faces.component.ActionSource;
-import javax.faces.component.UIComponent;
import javax.faces.component.UIInput;
import javax.faces.context.FacesContext;
+import javax.faces.convert.BooleanConverter;
import javax.faces.el.MethodBinding;
import javax.faces.event.AbortProcessingException;
import javax.faces.event.ActionEvent;
@@ -32,8 +32,6 @@
import javax.faces.event.FacesEvent;
import javax.faces.event.PhaseId;
-import org.richfaces.conveter.UIPanelMenuGroupValueConverter;
-
public abstract class UIPanelMenuGroup extends UIInput implements ActionSource{
public static final String COMPONENT_TYPE = "org.richfaces.panelMenuGroup";
@@ -83,7 +81,7 @@
public UIPanelMenuGroup(){
- setConverter(new UIPanelMenuGroupValueConverter());
+ setConverter(new BooleanConverter());
}
public void addActionListener(ActionListener listener) {
@@ -134,7 +132,7 @@
}
public void queueEvent(FacesEvent event) {
- if(event instanceof ActionEvent){
+ if(event instanceof ActionEvent && this == event.getSource()){
if (isImmediate()) {
event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
} else {
Modified: trunk/sandbox/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuItemRenderer.java
===================================================================
--- trunk/sandbox/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuItemRenderer.java 2007-06-21 14:03:01 UTC (rev 1253)
+++ trunk/sandbox/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuItemRenderer.java 2007-06-21 14:19:33 UTC (rev 1254)
@@ -22,14 +22,15 @@
package org.richfaces.renderkit.html;
import java.io.IOException;
+
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.event.ActionEvent;
+
import org.ajax4jsf.framework.ajax.AjaxEvent;
import org.richfaces.component.UIPanelMenu;
import org.richfaces.component.UIPanelMenuItem;
-import org.richfaces.component.UISwitchablePanel;
import org.richfaces.renderkit.PanelMenuRendererBase;
public class PanelMenuItemRenderer extends PanelMenuRendererBase {
@@ -43,7 +44,7 @@
protected void doDecode(FacesContext context, UIComponent component) {
if(isSubmitted(context, component)) {
new ActionEvent(component).queue();
- if (UISwitchablePanel.AJAX_METHOD.equals(getItemMode(component))) {
+ if ("ajax".equals(getItemMode(component))) {
new AjaxEvent(component).queue();
} else {
17 years, 6 months
JBoss Rich Faces SVN: r1253 - trunk/docs/userguide/en/src/main/docbook.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-06-21 10:03:01 -0400 (Thu, 21 Jun 2007)
New Revision: 1253
Modified:
trunk/docs/userguide/en/src/main/docbook/master.xml
Log:
added FAQ
Modified: trunk/docs/userguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/master.xml 2007-06-21 14:02:09 UTC (rev 1252)
+++ trunk/docs/userguide/en/src/main/docbook/master.xml 2007-06-21 14:03:01 UTC (rev 1253)
@@ -10,7 +10,8 @@
<!ENTITY rfclibrary SYSTEM "modules/RFClibrary.xml">
-<!ENTITY richfaces_table SYSTEM "../../../target/generated/rich.xml">
+
+<!ENTITY richfaces_table SYSTEM "../../../target/generated/rich.xml">
<!ENTITY dataFilterSlider_table SYSTEM "../../../target/generated/dataFilterSlider.xml">
<!ENTITY dataScroller_table SYSTEM "../../../target/generated/datascroller.xml">
<!ENTITY dataTable_table SYSTEM "../../../target/generated/dataTable.xml">
@@ -35,7 +36,10 @@
<!ENTITY rfcidesupport SYSTEM "modules/RFCidesupport.xml">
<!ENTITY rfclinks SYSTEM "modules/RFClinks.xml">
+<!ENTITY rfcFAQ SYSTEM "modules/RFCfaq.xml">
+
+
]>
<book>
@@ -55,14 +59,17 @@
&rfctechreqs;
&rfcsetwebappl;
&rfcarchitectover;
+ &rfcFAQ;
+
+
<chapter role="NotInToc" id="RichFacesComponentsLibrary" xreflabel="RichFacesComponentsLibrary">
<?dbhtml filename="RichFacesComponentsLibrary.html"?>
<title>The RichFaces Components</title>
<para>The library encompasses ready-made components built based on the <emphasis role="italic"><property>Ajax4jsf Component Factory</property></emphasis>. To find out more about the Component Factory, go to the
<ulink url="http://www.jboss.org/projects/jbossajax4jsf">Ajax4jsf project</ulink>.</para>
-&richfaces_table;
-<!--
+&richfaces_table;
+<!--
&dataFilterSlider_table;
&dataScroller_table;
&dataTable_table;
@@ -88,5 +95,8 @@
</chapter>
&rfcidesupport;
+ &rfclinks;
+
+
</book>
17 years, 6 months
JBoss Rich Faces SVN: r1252 - trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-06-21 10:02:09 -0400 (Thu, 21 Jun 2007)
New Revision: 1252
Modified:
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/ScrollableGrid.js
Log:
add control resize JS API
Modified: trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/ScrollableGrid.js
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/ScrollableGrid.js 2007-06-21 14:01:35 UTC (rev 1251)
+++ trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/ScrollableGrid.js 2007-06-21 14:02:09 UTC (rev 1252)
@@ -88,6 +88,19 @@
if (this.selectionManager) {
this.selectionManager.addListener(argMap.row, argMap.index);
}
+ },
+
+ setSizes: function(width, height) {
+ var style = this.element.style;
+ style.width = width +"px";
+ style.height = height +"px";
+ this.updateLayout();
+ },
+
+ doExpand: function(index) {
+ },
+
+ doCollapse: function(index) {
}
});
17 years, 6 months
JBoss Rich Faces SVN: r1251 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-06-21 10:01:35 -0400 (Thu, 21 Jun 2007)
New Revision: 1251
Added:
trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
Log:
added FAQ
Added: trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-06-21 14:01:35 UTC (rev 1251)
@@ -0,0 +1,142 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<chapter id="FAQ" xreflabel="FAQ">
+ <?dbhtml filename="FAQ.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>RichFaces</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title>FAQ</title>
+
+ <section>
+ <?dbhtml filename="Wherearebinary/sourcedistributionforRichFacesrelease.html"?>
+ <title>Where are binary/source distribution for RichFaces 3.0.1 release?</title>
+ <para> JBoss RichFaces downloads could be found <ulink url="http://labs.jboss.com/jbossrichfaces/downloads">here</ulink>. </para>
+ <para> The version is tagged in SVN and put in the Jboss Maven <ulink url="http://repository.jboss.com/maven2/org/richfaces/richfaces/3.0.1/">repo</ulink>.</para>
+ <para> Ajax4jsf binary is also available <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=110267">here</ulink>.</para>
+ <para> Most important links for RichFaces can be found <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104575">here</ulink>.</para>
+ </section>
+
+ <section id="Wherearethesnapshots">
+ <?dbhtml filename="Wherearethesnapshots.html"?>
+ <title>Where are the snapshots?</title>
+ <para> Nightly builds are available <ulink url="http://maven.exadel.com/org/richfaces/richfaces/3.0.2-SNAPSHOT/">here</ulink> for RichFaces and <ulink url="http://maven.exadel.com/org/ajax4jsf/ajax4jsf/1.1.2-SNAPSHOT/">here</ulink> for Ajax.</para>
+ <para> RichFaces JSF components library Tag library documentation can be found <ulink url="http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...">here</ulink>.</para>
+ <para> RichFaces JSF components library 3.0.2-SNAPSHOT API can be found <ulink url="http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...">here</ulink>.</para>
+ </section>
+
+ <section>
+ <?dbhtml filename="HowtobuildRichFacessnapshotmanually"?>
+ <title>How to build RichFaces snapshot manually?</title>
+ <para>As it was mentioned <ulink url="index.html#Wherearethesnapshots"> before </ulink> you can download the snapshots or you can build them manually. This <ulink url="http://labs.jboss.com/wiki/HowToBuildRichFacesSnapshotManually."> wiki article </ulink> helps you.</para>
+ </section>
+
+ <section>
+ <?dbhtml filename="WhatstructureofRichFacesSVNrepositoryis"?>
+ <title>What structure of RichFaces SVN repository is?</title>
+ <para>RichFaces repository structure overview can be found <ulink url="http://labs.jboss.com/wiki/RichFacesRepositoryStructureOverview">here</ulink>.</para>
+ </section>
+
+ <section>
+ <?dbhtml filename="Howtobuildrichfaces-samplesapplications"?>
+ <title>How to build richfaces-samples applications?</title>
+ <para>How to build and how to use richfaces-samples applications in Eclipse is described <ulink url="http://labs.jboss.com/wiki/RichFacesRepositoryStructureOverview">here</ulink>.</para>
+ </section>
+
+ <section>
+ <?dbhtml filename="IstheredemoforRichFacescomponents"?>
+ <title>Is there demo for RichFaces 3.0.1 components?</title>
+ <para>Online demo Web applications that show the most important functionality of RichFaces components are available <ulink url="http://livedemo.exadel.com/richfaces-demo/">here</ulink>.</para>
+ <para>War file of a nightly build can be found <ulink url="http://maven.exadel.com/org/richfaces/richfaces-demo/3.0.1-SNAPSHOT/">here</ulink>.</para>
+ <para>Source Code (SVN) can be found <ulink url="http://anonsvn.jboss.org/repos/richfaces/trunk/richfaces-samples/richface...">here</ulink>.</para>
+ </section>
+
+ <section>
+ <?dbhtml filename="HowtouseSkinnability"?>
+ <title>How to use Skinnability?</title>
+ <para><ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111143">Here</ulink> is an article that explains the Skinability basics.</para>
+ <para>Also, the effect of predefined skins on the application whole look-and-feel could be seen <ulink url="http://livedemo.exadel.com/richfaces-demo/">here</ulink>.</para>
+ </section>
+
+ <section>
+ <?dbhtml filename="WhyRichFaceslibrarycondataTablecomp"?>
+ <title>Why RichFaces library contains rich:dataTable component if the standard h:dataTable exists?</title>
+ <para>The answer could be found <ulink url="http://labs.jboss.com/wiki/RichFacesArticleDataTable">here</ulink>.</para>
+ <para>Source code (SVN) could be found <ulink url="http://anonsvn.jboss.org/repos/richfaces/trunk/richfaces-samples/richface...">here</ulink>.</para>
+ <para> Online demo for a Web application is available <ulink url=" http://livedemo.exadel.com/richfaces-art-datatable/">here</ulink>.</para>
+ </section>
+
+ <section>
+ <?dbhtml filename="WhyRichFaceslibrarycondataTablecomp"?>
+ <title>How to organize wizards using the rich:modalPanel?</title>
+ <para>It’s necessary to put a4j:include inside the rich:modal panel and perform navigation inside it, as it's shown in the example below:</para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:modalPanel id="mp" minHeight="200" minWidth="450" height="200" width="500" zindex="2000">
+ <f:facet name="header">
+ <h:outputText value="Modal Panel Title" />
+ </f:facet>
+ <a4j:include viewId="/pages/include/first.xhtml"/>
+ <a href="javascript:Richfaces.hideModalPanel('mp')">hide this panel</a>
+ </rich:modalPanel>
+...
+]]></programlisting>
+ <para>For more information, follow the <ulink url="http://labs.jboss.com/wiki/ModalPanelWizards">link</ulink>.</para>
+ </section>
+
+ <section>
+ <?dbhtml filename="Howtopreventmodalpanelfromclosure"?>
+ <title>How to prevent modalPanel from closure if the validation inside fails?</title>
+ <para>Simple code is placed below to provide such behavior.</para>
+ <programlisting role="XML"><![CDATA[...
+ <ui:define name="body">
+ <f:verbatim>
+ <a href="javascript:Richfaces.showModalPanel('_panel',{left:'auto', top:'auto'})">Show Modal Panel</a>
+ </f:verbatim>
+ <rich:modalPanel id="_panel">
+ <f:facet name="header">
+ <h:outputText value="test"></h:outputText>
+ </f:facet>
+ <h:form id="mpform">
+ <a4j:outputPanel ajaxRendered="true">
+ <h:messages id="error"></h:messages>
+ </a4j:outputPanel>
+ <h:inputText value="#{bean.property}" required="true"></h:inputText>
+ <a4j:commandLink value="click" oncomplete="windowclose();" reRender="test" />
+ </h:form>
+ </rich:modalPanel>
+ <script type="text/javascript">
+ ...
+ </script>
+ </ui:define>
+...
+]]></programlisting>
+ </section>
+
+ <section>
+ <?dbhtml filename="HowtousesuggestionBox"?>
+ <title>How to use suggestionBox inside the modalPanel content? When I use it the popup suggestion list doesn't show since it is behind the modalPanel.</title>
+ <para>First of all to solve this problem you should use the latest versions of Ajax4JSF 1.1.2-SNAPSHOT and Richfaces 3.0.2-SNAPSHOT.</para>
+ <para> Nightly builds are available <ulink url="http://maven.exadel.com/org/richfaces/richfaces/3.0.2-SNAPSHOT/">here</ulink> for RichFaces and <ulink url="http://maven.exadel.com/org/ajax4jsf/ajax4jsf/1.1.2-SNAPSHOT/">here</ulink> for Ajax.</para>
+ <para>Also see the example of using suggestionBox inside the modalPanel content.</para>
+ <programlisting role="XML"><![CDATA[...
+ <ui:define name="body">
+ <a href="javascript:Richfaces.showModalPanel('panel',{left:'auto', top:'auto'})">Show</a>
+ <rich:modalPanel id="panel">
+ <h:form>
+ <h:inputText value="#{bean.property}" id="test" size="50" required="true"></h:inputText>
+ <rich:suggestionbox width="200" height="200" for="test"
+ suggestionAction="#{bean.autocomplete}" var="cap" ajaxSingle="false" limitToList="false" reRender="panel1">
+ <h:column>
+ <h:outputText value="#{cap.text}"></h:outputText>
+ </h:column>
+ </rich:suggestionbox>
+ <a4j:log>....</a4j:log>
+ </h:form>
+ </rich:modalPanel>
+ </ui:define>
+...
+]]></programlisting>
+ <para>In this case the popup suggestion list is above the modalPanel.</para>
+ </section>
+
+</chapter>
17 years, 6 months
JBoss Rich Faces SVN: r1250 - trunk/richfaces/common.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-06-21 08:45:41 -0400 (Thu, 21 Jun 2007)
New Revision: 1250
Modified:
trunk/richfaces/common/pom.xml
Log:
stringtemplate excess dependency removed
Modified: trunk/richfaces/common/pom.xml
===================================================================
--- trunk/richfaces/common/pom.xml 2007-06-21 12:36:40 UTC (rev 1249)
+++ trunk/richfaces/common/pom.xml 2007-06-21 12:45:41 UTC (rev 1250)
@@ -11,11 +11,6 @@
<dependencies>
<dependency>
<groupId>org.antlr</groupId>
- <artifactId>stringtemplate</artifactId>
- <version>3.0</version>
- </dependency>
- <dependency>
- <groupId>org.antlr</groupId>
<artifactId>antlr</artifactId>
<version>3.0</version>
</dependency>
17 years, 6 months