JBoss Rich Faces SVN: r1635 - branches/3.0.2/sandbox/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: dbiatenia
Date: 2007-07-16 11:40:31 -0400 (Mon, 16 Jul 2007)
New Revision: 1635
Modified:
branches/3.0.2/sandbox/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
positioning bugfix
Modified: branches/3.0.2/sandbox/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
===================================================================
--- branches/3.0.2/sandbox/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2007-07-16 15:20:44 UTC (rev 1634)
+++ branches/3.0.2/sandbox/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2007-07-16 15:40:31 UTC (rev 1635)
@@ -60,14 +60,12 @@
},
attachParentEvents: function(){
if(this.followMouse){
- Event.observe(this.parent, 'mousemove', this.doShow.bindAsEventListener(this), false);
- } else {
- Event.observe(this.parent, this.event, this.doShow.bindAsEventListener(this), false);
+ Event.observe(this.parent, 'mousemove', this.setToolTipPosition.bindAsEventListener(this), false);
}
+ Event.observe(this.parent, this.event, this.doShow.bindAsEventListener(this), false);
Event.observe(this.parent, "mouseout", this.doHide.bindAsEventListener(this), false);
- Event.observe(this.toolTip, 'mouseout', this.leaveHint.bindAsEventListener(this), false)
-
+ Event.observe(this.toolTip, 'mouseout', this.leaveToolTip.bindAsEventListener(this), false)
},
detectAncestorNode: function(leaf, element) {
@@ -79,7 +77,7 @@
},
- leaveHint: function(e) {
+ leaveToolTip: function(e) {
var hintNotLeft = false;
@@ -102,26 +100,13 @@
if (e.srcElement)
this.hintParentElement = e.srcElement;
- posX = e.clientX + document.body.scrollLeft;
- posY = e.clientY + document.body.scrollTop;
if(this.mode == 'ajax'){
var event = e;
eval(this.ajaxExecuteString);
-// this.toolTip = $(this.id);
-// this.setToolTipPosition();
-// if(this.iframe){
-// this.iframe.style.top = parseInt(this.toolTip.style.top) - this.toolTipBorderHeight;
-// this.iframe.style.left = parseInt(this.toolTip.style.left) - this.toolTipBorderWidth;
-// this.iframe.style.display = "block";
-// }
-// this.toolTip.style.display = "block";
}
-
- this.setToolTipPosition(e, posX, posY);
+ this.setToolTipPosition(e);
-
-
this.toolTip.style.display = "block";
if(this.iframe){
this.iframe.style.top = parseInt(this.toolTip.style.top) - this.toolTipBorderHeight;
@@ -153,14 +138,20 @@
this.disabled = true;
},
- setToolTipPosition: function(e, cursorX, cursorY){
+ setToolTipPosition: function(e){
var windowDim = this.windowSize();
-
+ var cursorX = e.clientX + document.body.scrollLeft;
+ var cursorY = e.clientY + document.body.scrollTop;
+
+ this.toolTipH = this.toolTip.getHeight();
+ this.toolTipW = this.toolTip.getWidth();
+
+
if(this.direction == "top-left"){
- if(cursorY - this.verticalOffset - this.toolTip.clientHeight < 0){
- this.toolTip.style.top = cursorY - this.verticalOffset - this.toolTipH;
+ if(cursorY - this.verticalOffset - this.toolTipH < 0){
+ this.toolTip.style.top = cursorY + this.verticalOffset - this.toolTipH;
} else {
- this.toolTip.style.top = cursorY + this.verticalOffset;
+ this.toolTip.style.top = cursorY - this.verticalOffset - this.toolTipH;
}
if(cursorX - this.horizontalOffset - this.toolTipW < 0){
this.toolTip.style.left = cursorX + this.horizontalOffset;
@@ -169,7 +160,7 @@
}
} else if(this.direction == "bottom-left"){
- if(cursorY + this.verticalOffset - this.toolTipH > windowDim[1]){
+ if(cursorY + this.verticalOffset + this.toolTipH > windowDim[1]){
this.toolTip.style.top = cursorY - this.verticalOffset - this.toolTipH;
} else {
this.toolTip.style.top = cursorY + this.verticalOffset;
@@ -177,7 +168,7 @@
if(cursorX - this.horizontalOffset - this.toolTipW < 0){
this.toolTip.style.left = cursorX + this.horizontalOffset ;
} else {
- this.toolTip.style.left = cursorX - this.horizontalOffset - this.toolTopW;
+ this.toolTip.style.left = cursorX - this.horizontalOffset - this.toolTipW;
}
} else if(this.direction == "top-right"){
if(cursorY - this.verticalOffset - this.toolTipH < 0){
17 years, 6 months
JBoss Rich Faces SVN: r1634 - in branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces: renderkit and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-07-16 11:20:44 -0400 (Mon, 16 Jul 2007)
New Revision: 1634
Modified:
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateEvent.java
Log:
added getConvertedValue method
Modified: branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-07-16 13:47:08 UTC (rev 1633)
+++ branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-07-16 15:20:44 UTC (rev 1634)
@@ -30,14 +30,15 @@
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
+import java.util.Map;
import java.util.Set;
import java.util.TimeZone;
import javax.faces.component.UIComponent;
import javax.faces.component.UIInput;
import javax.faces.component.UIViewRoot;
+import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
-import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
import javax.faces.convert.DateTimeConverter;
import javax.faces.event.AbortProcessingException;
@@ -90,50 +91,43 @@
// currentDate processing -------------------------------------------------
private Date currentDate = null;
-
- public Converter getConverter(FacesContext context, UICalendar calendar) {
-
- Converter converter = calendar.getConverter();
- if (converter == null) {
- DateTimeConverter datetime = new DateTimeConverter();
- if (context.getViewRoot().getLocale() == null) {
- datetime.setLocale(getDefaultLocale());
- } else {
- datetime.setLocale(context.getViewRoot().getLocale());
- }
- datetime.setTimeZone(TimeZone.getDefault());
- converter = datetime;
- }
- return converter;
- }
-
- public Object getConvertedValue(FacesContext context,
- UIComponent component, Object currentDate)
- throws ConverterException {
- UICalendar calendar = (UICalendar) component;
- Converter converter = getConverter(context, calendar);
- String valueString = (String) currentDate;
- return converter.getAsObject(context, component, valueString);
-
- }
-
public String getValueAsString(FacesContext context, UIComponent component)
throws IOException {
UICalendar calendar = (UICalendar) component;
Date valueString = calendar.getCurrentDate();
return valueString.toString();
}
-
- public void decode(FacesContext context) {
-
+
+ public void decode(FacesContext context, UIComponent component) {
+
+ if (context == null) {
+ throw new NullPointerException();
+ }
super.decode(context);
-
+ ExternalContext external = context.getExternalContext();
+ Map requestParams = external.getRequestParameterMap();
+
+ UICalendar calendar = (UICalendar) component;
+ String clientId = calendar.getClientId(context);
+
+ Date currentDate = (Date) requestParams.get(clientId);
+ calendar.setCurrentDate(currentDate);
}
+
+ public Date getConvertedValue(FacesContext context,
+ String currentDateString) throws ConverterException {
+
+ DateTimeConverter datetime = new DateTimeConverter();
+ datetime.setPattern("MM/yyyy");
+ Date newCurrentDate =(Date)datetime.getAsObject(context, this, currentDateString);
+ return newCurrentDate;
+ }
+
+
// --------------------------------------------------------
-
private int getLastDayOfWeek(Calendar calendar) {
int i = calendar.getFirstDayOfWeek();
if (i == calendar.getActualMinimum(Calendar.DAY_OF_WEEK)) {
@@ -193,12 +187,12 @@
FacesContext facesContext = FacesContext.getCurrentInstance();
AjaxContext ajaxContext = AjaxContext
.getCurrentInstance(facesContext);
- ajaxContext.setResponseData(getPreload());
+ ajaxContext.setResponseData(getPreload());
}
-
- //added recently
- if (event instanceof CurrentDateEvent){
- event.getPhaseId();
+
+ // added recently
+ if (event instanceof CurrentDateEvent) {
+ event.getPhaseId();
event.getComponent();
}
}
Modified: branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-07-16 13:47:08 UTC (rev 1633)
+++ branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-07-16 15:20:44 UTC (rev 1634)
@@ -95,7 +95,7 @@
((UICalendar) component)
.setCurrentDate(convertCurrentDate(currentDateString));
}
-
+
CurrentDateEvent ev = new CurrentDateEvent(component) ;
ev.setPhaseId(PhaseId.PROCESS_VALIDATIONS);
ev.queue();
Modified: branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateEvent.java
===================================================================
--- branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateEvent.java 2007-07-16 13:47:08 UTC (rev 1633)
+++ branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateEvent.java 2007-07-16 15:20:44 UTC (rev 1634)
@@ -19,6 +19,5 @@
public void processListener(FacesListener listener) {
// TODO Auto-generated method stub
}
-
}
17 years, 6 months
JBoss Rich Faces SVN: r1633 - in branches/3.0.2/richfaces/panel/src/main: java/org/richfaces/component and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-07-16 09:47:08 -0400 (Mon, 16 Jul 2007)
New Revision: 1633
Modified:
branches/3.0.2/richfaces/panel/src/main/config/component/panel.xml
branches/3.0.2/richfaces/panel/src/main/java/org/richfaces/component/UIPanel.java
branches/3.0.2/richfaces/panel/src/main/templates/panel.jspx
Log:
http://jira.jboss.com/jira/browse/RF-333
Modified: branches/3.0.2/richfaces/panel/src/main/config/component/panel.xml
===================================================================
--- branches/3.0.2/richfaces/panel/src/main/config/component/panel.xml 2007-07-16 13:30:45 UTC (rev 1632)
+++ branches/3.0.2/richfaces/panel/src/main/config/component/panel.xml 2007-07-16 13:47:08 UTC (rev 1633)
@@ -47,6 +47,10 @@
<description>
A class that defines a style for a panel content
</description>
+ </property>
+ <property>
+ <name>header</name>
+ <classname>java.lang.String</classname>
</property>
</component>
</components>
Modified: branches/3.0.2/richfaces/panel/src/main/java/org/richfaces/component/UIPanel.java
===================================================================
--- branches/3.0.2/richfaces/panel/src/main/java/org/richfaces/component/UIPanel.java 2007-07-16 13:30:45 UTC (rev 1632)
+++ branches/3.0.2/richfaces/panel/src/main/java/org/richfaces/component/UIPanel.java 2007-07-16 13:47:08 UTC (rev 1633)
@@ -32,4 +32,7 @@
public boolean getRendersChildren() {
return true;
}
+
+ public abstract String getHeader();
+ public abstract void setHeader(String header);
}
Modified: branches/3.0.2/richfaces/panel/src/main/templates/panel.jspx
===================================================================
--- branches/3.0.2/richfaces/panel/src/main/templates/panel.jspx 2007-07-16 13:30:45 UTC (rev 1632)
+++ branches/3.0.2/richfaces/panel/src/main/templates/panel.jspx 2007-07-16 13:47:08 UTC (rev 1633)
@@ -19,6 +19,12 @@
<u:insertFacet name="header" />
</div>
<jsp:scriptlet>
+ <![CDATA[} else if (null != component.getHeader() && !"".equals(component.getHeader())) { ]]>
+ </jsp:scriptlet>
+ <div id="#{clientId}_header" class="dr-pnl-h rich-panel-header #{component.attributes['headerClass']}">
+ #{component.attributes['header']}
+ </div>
+ <jsp:scriptlet>
<![CDATA[}]]>
</jsp:scriptlet>
<div id="#{clientId}_body" class="dr-pnl-b rich-panel-body #{component.attributes['bodyClass']}">
17 years, 6 months
JBoss Rich Faces SVN: r1632 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-07-16 09:30:45 -0400 (Mon, 16 Jul 2007)
New Revision: 1632
Modified:
trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml
Log:
commented "Details of usage" section with wrong information
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml 2007-07-16 13:08:35 UTC (rev 1631)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml 2007-07-16 13:30:45 UTC (rev 1632)
@@ -75,7 +75,7 @@
...
]]></programlisting>
</section>
- <section>
+ <!--section>
<title>Details of Usage</title>
<para>The component seems to be combined of two elements: an icon on the left and informational
part on the right. The definition and usage is described further for each element.</para>
@@ -151,7 +151,7 @@
</emphasis>component.</para>
</section>
- </section>
+ </section-->
<section>
<title>Relevant resources links</title>
<para>
17 years, 6 months
JBoss Rich Faces SVN: r1631 - trunk/docs/ajaxguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-07-16 09:08:35 -0400 (Mon, 16 Jul 2007)
New Revision: 1631
Modified:
trunk/docs/ajaxguide/en/src/main/docbook/included/push.xml
Log:
http://jira.jboss.com/jira/browse/RF-438
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/push.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/push.xml 2007-07-16 13:03:29 UTC (rev 1630)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/push.xml 2007-07-16 13:08:35 UTC (rev 1631)
@@ -59,7 +59,7 @@
</para>
<para>
'interval' - Interval (in ms) for call push requests. Default value 1000 (1 sec).
-If "0" a connection is permanent. Also user can set different value for parameter 'timeout'.
+<!-- If "0" a connection is permanent. Also user can set different value for parameter 'timeout'. -->
</para>
Code for registration of listener:
<programlisting role="JAVA"><![CDATA[
17 years, 6 months
JBoss Rich Faces SVN: r1630 - trunk/docs/ajaxguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-07-16 09:03:29 -0400 (Mon, 16 Jul 2007)
New Revision: 1630
Added:
trunk/docs/ajaxguide/en/src/main/docbook/included/push.desc.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/push.xml
Log:
http://jira.jboss.com/jira/browse/RF-438
Added: trunk/docs/ajaxguide/en/src/main/docbook/included/push.desc.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/push.desc.xml (rev 0)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/push.desc.xml 2007-07-16 13:03:29 UTC (rev 1630)
@@ -0,0 +1,9 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<root>
+<section>
+<title>Description</title>
+ <para>The <emphasis role="bold">
+ <property><a4j:push></property>
+ </emphasis>periodically perform AJAX request to server, to simulate 'push' data.</para>
+</section>
+</root>
\ No newline at end of file
Added: trunk/docs/ajaxguide/en/src/main/docbook/included/push.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/push.xml (rev 0)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/push.xml 2007-07-16 13:03:29 UTC (rev 1630)
@@ -0,0 +1,85 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<chapter>
+
+ <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.ajax4jsf.components.Push</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.ajax4jsf.components.AjaxPush</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.ajax4jsf.components.AjaxPush</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.ajax4jsf.components.AjaxPushRenderer</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <section>
+ <title>Creating on a page</title>
+ <programlisting role="XML"><![CDATA[
+<a4j:push reRender="msg" eventProducer="#{messageBean.addListener}" interval="3000"/>]]></programlisting>
+ </section>
+
+ <section>
+ <title>Dynamical creation of a component from Java code</title>
+ <programlisting role="JAVA"><![CDATA[
+import org.ajax4jsf.ajax.html.AjaxPush;
+...
+AjaxPush myPush = new AjaxPush();
+...]]></programlisting>
+ </section>
+
+ <section>
+ <title>Key attributes and ways of usage</title>
+ <para>The main difference between <emphasis role="bold"><property><a4j:push></property></emphasis>and
+ <emphasis role="bold"><property><a4j:poll></property></emphasis> components
+ is that <emphasis role="bold"><property><a4j:push></property></emphasis> makes request to minimal code only (not to JSF tree) in order to check the presence of messages in the queue.
+ If the message exists the complete request will be performed.
+ The component doesn't poll registered beans but registers EventListener which receives messages about events.
+ </para>
+<para>
+ There are some attributes which allows to customize of the component behaviour:
+</para>
+<para>
+'interval' - Interval (in ms) for call push requests. Default value 1000 (1 sec).
+If "0" a connection is permanent. Also user can set different value for parameter 'timeout'.
+</para>
+Code for registration of listener:
+ <programlisting role="JAVA"><![CDATA[
+public void addListener(EventListener listener) {
+synchronized (listener) {
+ if (this.listener != listener) {
+ this.listener = (PushEventListener) listener;
+}
+]]></programlisting>
+
+
+Component can get message using current code:
+ <programlisting role="JAVA"><![CDATA[
+System.out.println("event occurs");
+synchronized (listener) {
+ listener.onEvent(new EventObject(this));
+}
+]]></programlisting>
+
+Thus, component 'push' uses asynchronous model instead of polls.
+
+ </section>
+</chapter>
\ No newline at end of file
17 years, 6 months
JBoss Rich Faces SVN: r1629 - branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins.
by richfaces-svn-commits@lists.jboss.org
Author: dbiatenia
Date: 2007-07-16 08:59:43 -0400 (Mon, 16 Jul 2007)
New Revision: 1629
Modified:
branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/blueSky.skin.properties
branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/classic.skin.properties
branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/deepMarine.skin.properties
branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/emeraldTown.skin.properties
branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/japanCherry.skin.properties
branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/ruby.skin.properties
branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/wine.skin.properties
Log:
removing backslash from 'tipBackgroundColor' and 'tipBorderColor' definitions
Modified: branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/blueSky.skin.properties
===================================================================
--- branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/blueSky.skin.properties 2007-07-16 12:53:19 UTC (rev 1628)
+++ branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/blueSky.skin.properties 2007-07-16 12:59:43 UTC (rev 1629)
@@ -24,8 +24,8 @@
trimColor=#D6E6FB
-tipBackgroundColor=\#FAE6B0
-tipBorderColor=\#E5973E
+tipBackgroundColor=#FAE6B0
+tipBorderColor=#E5973E
selectControlColor=#E79A00
Modified: branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/classic.skin.properties
===================================================================
--- branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/classic.skin.properties 2007-07-16 12:53:19 UTC (rev 1628)
+++ branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/classic.skin.properties 2007-07-16 12:59:43 UTC (rev 1629)
@@ -24,8 +24,8 @@
trimColor=#C6D6EA
-tipBackgroundColor=\#FAE6B0
-tipBorderColor=\#E5973E
+tipBackgroundColor=#FAE6B0
+tipBorderColor=#E5973E
selectControlColor=#E79A00
Modified: branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/deepMarine.skin.properties
===================================================================
--- branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/deepMarine.skin.properties 2007-07-16 12:53:19 UTC (rev 1628)
+++ branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/deepMarine.skin.properties 2007-07-16 12:59:43 UTC (rev 1629)
@@ -24,8 +24,8 @@
trimColor=#C9EDF0
-tipBackgroundColor=\#FAE6B0
-tipBorderColor=\#E5973E
+tipBackgroundColor=#FAE6B0
+tipBorderColor=#E5973E
selectControlColor=#E79A00
Modified: branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/emeraldTown.skin.properties
===================================================================
--- branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/emeraldTown.skin.properties 2007-07-16 12:53:19 UTC (rev 1628)
+++ branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/emeraldTown.skin.properties 2007-07-16 12:59:43 UTC (rev 1629)
@@ -24,8 +24,8 @@
trimColor=#BBECBB
-tipBackgroundColor=\#FAE6B0
-tipBorderColor=\#E5973E
+tipBackgroundColor=#FAE6B0
+tipBorderColor=#E5973E
selectControlColor=#FF9409
Modified: branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/japanCherry.skin.properties
===================================================================
--- branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/japanCherry.skin.properties 2007-07-16 12:53:19 UTC (rev 1628)
+++ branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/japanCherry.skin.properties 2007-07-16 12:59:43 UTC (rev 1629)
@@ -24,8 +24,8 @@
trimColor=#F7D5D5
-tipBackgroundColor=\#FAE6B0
-tipBorderColor=\#E5973E
+tipBackgroundColor=#FAE6B0
+tipBorderColor=#E5973E
selectControlColor=#E79A00
Modified: branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/ruby.skin.properties
===================================================================
--- branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/ruby.skin.properties 2007-07-16 12:53:19 UTC (rev 1628)
+++ branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/ruby.skin.properties 2007-07-16 12:59:43 UTC (rev 1629)
@@ -24,8 +24,8 @@
trimColor=#F7C4C4
-tipBackgroundColor=\#FAE6B0
-tipBorderColor=\#E5973E
+tipBackgroundColor=#FAE6B0
+tipBorderColor=#E5973E
selectControlColor=#FF9409
Modified: branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/wine.skin.properties
===================================================================
--- branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/wine.skin.properties 2007-07-16 12:53:19 UTC (rev 1628)
+++ branches/3.0.2/richfaces/common/src/main/resources/META-INF/skins/wine.skin.properties 2007-07-16 12:59:43 UTC (rev 1629)
@@ -24,8 +24,8 @@
trimColor=#E1D2AF
-tipBackgroundColor=\#FAE6B0
-tipBorderColor=\#E5973E
+tipBackgroundColor=#FAE6B0
+tipBorderColor=#E5973E
selectControlColor=#E79A00
17 years, 6 months
JBoss Rich Faces SVN: r1628 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-07-16 08:53:19 -0400 (Mon, 16 Jul 2007)
New Revision: 1628
Modified:
trunk/docs/userguide/en/src/main/docbook/included/panel.xml
trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml
trunk/docs/userguide/en/src/main/docbook/included/tab.xml
Log:
http://jira.jboss.com/jira/browse/RF-335
Modified: trunk/docs/userguide/en/src/main/docbook/included/panel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2007-07-16 10:45:44 UTC (rev 1627)
+++ trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2007-07-16 12:53:19 UTC (rev 1628)
@@ -141,6 +141,21 @@
<listitem> onmouseout </listitem>
<listitem> etc. </listitem>
</itemizedlist>
+
+ <!--<para>The "header" attribute defines text to be represented. If you can use the
+ "header" facet, you can even not use the "header" attribute.</para>
+ <emphasis role="bold">Example:</emphasis>
+ <programlisting role="XML"><![CDATA[...
+ <rich:panel>
+ <f:facet name="header">
+ <h:graphicImage value="/images/img1.gif"/>
+ </f:facet>
+ ...
+ <Any Content inside>
+ ...
+ </rich:panel>
+...
+]]></programlisting>-->
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml 2007-07-16 10:45:44 UTC (rev 1627)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml 2007-07-16 12:53:19 UTC (rev 1628)
@@ -1,47 +1,47 @@
<?xml version='1.0' encoding='UTF-8'?>
<section>
-<sectioninfo>
-<keywordset>
-<keyword>item</keyword>
-<keyword>rich:panelbaritem</keyword>
-<keyword>HtmlPanelBar</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.PanelBarItem</entry>
- </row>
- <row>
- <entry>component-class</entry>
- <entry>org.richfaces.component.html.HtmlPanelBarItem</entry>
- </row>
- <row>
- <entry>component-family</entry>
- <entry>org.richfaces.PanelBarItem</entry>
- </row>
- <row>
- <entry>renderer-type</entry>
- <entry>org.richfaces.PanelBarItemRenderer</entry>
- </row>
- <row>
- <entry>tag-class</entry>
- <entry>org.richfaces.taglib.PanelBarItemTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
+ <sectioninfo>
+ <keywordset>
+ <keyword>item</keyword>
+ <keyword>rich:panelbaritem</keyword>
+ <keyword>HtmlPanelBar</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.PanelBarItem</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlPanelBarItem</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.PanelBarItem</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.PanelBarItemRenderer</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.PanelBarItemTag</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>
@@ -75,38 +75,52 @@
</section>
<section>
<title>Details of Usage</title>
- <para>As it was mentioned above, <property>panelBarItem</property> is used for grouping any content
- inside within one <property>panelBar</property>, thus its customization deals only with specification of sizes and styles for rendering.</para>
- <para>The only attribute to describe here is
- <emphasis
-
-><property>"label"</property></emphasis> that specifies a text string in a component header.</para>
- <para><property>panelBar</property> could contain any number of child <property>panelBarItem</property> components inside, which content is uploaded onto the client and headers are controls to open the
- corresponding child element.</para>
+ <para>As it was mentioned above, <property>panelBarItem</property> is used for grouping any
+ content inside within one <property>panelBar</property>, thus its customization deals only
+ with specification of sizes and styles for rendering.</para>
+ <para>The "label" attribute defines text to be represented. If you can use the
+ "label" facet, you can even not use the "label" attribute.</para>
+ <emphasis role="bold">Example:</emphasis>
+ <programlisting role="XML"><![CDATA[...
+ <rich:panelBarItem...>
+ <f:facet name="label">
+ <h:graphicImage value="/images/img1.gif"/>
+ </f:facet>
+ ...
+ <!--Any Content inside-->
+ ...
+ </rich:panelBarItem>
+...
+]]></programlisting>
+ <para><property>panelBar</property> could contain any number of child
+ <property>panelBarItem</property> components inside, which content is uploaded onto the client
+ and headers are controls to open the corresponding child element.</para>
</section>
- <section>
+ <section>
<title>Look-and-Feel Customization</title>
- <para>For skinnability implementation the components use a <emphasis
-><property>style class redefinition method</property></emphasis>.</para>
- <para>Default style classes are mapped on <emphasis
-><property>skin parameters</property>.</emphasis></para>
- <para>To redefine appearance of all panelBarItem at once, there are two ways:</para>
- <itemizedlist>
- <listitem>to redefine corresponding skin parameters</listitem>
- <listitem>to add <emphasis
-><property>style classes</property></emphasis> used by the panelBarItem to your page style sheets</listitem>
- </itemizedlist>
- </section>
- <section>
- <title>Skin parameters redefinition</title>
-<table>
- <title>Skin parameters for the panel content appearance</title>
+ <para>For skinnability implementation the components use a <emphasis>
+ <property>style class redefinition method</property>
+ </emphasis>.</para>
+ <para>Default style classes are mapped on <emphasis><property>skin
+ parameters</property>.</emphasis></para>
+ <para>To redefine appearance of all panelBarItem at once, there are two ways:</para>
+ <itemizedlist>
+ <listitem>to redefine corresponding skin parameters</listitem>
+ <listitem>to add <emphasis>
+ <property>style classes</property>
+ </emphasis> used by the panelBarItem to your page style sheets</listitem>
+ </itemizedlist>
+ </section>
+ <section>
+ <title>Skin parameters redefinition</title>
+ <table>
+ <title>Skin parameters for the panel content appearance</title>
<tgroup cols="2">
- <thead>
- <row>
- <entry>Skin parameters for a hint</entry>
- <entry>CSS properties</entry>
- </row>
+ <thead>
+ <row>
+ <entry>Skin parameters for a hint</entry>
+ <entry>CSS properties</entry>
+ </row>
</thead>
<tbody>
<row>
@@ -117,21 +131,21 @@
<entry>generalBackgroundColor</entry>
<entry>background-color</entry>
</row>
- <row>
+ <row>
<entry>border</entry>
<entry>tableBorderColor</entry>
</row>
</tbody>
</tgroup>
</table>
- <table>
- <title>Parameters for panel header appearance</title>
+ <table>
+ <title>Parameters for panel header appearance</title>
<tgroup cols="2">
- <thead>
- <row>
- <entry>Skin parameters</entry>
- <entry>CSS properties</entry>
- </row>
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
</thead>
<tbody>
<row>
@@ -141,26 +155,27 @@
</tbody>
</tgroup>
</table>
- </section>
- <section>
+ </section>
+ <section>
<title>Definition custom style classes:</title>
- <figure>
- <title>PanelBarItem style classes</title>
- <mediaobject>
+ <figure>
+ <title>PanelBarItem style classes</title>
+ <mediaobject>
<imageobject>
- <imagedata fileref="images/panelBar3.gif"/>
+ <imagedata fileref="images/panelBar3.gif"/>
</imageobject>
- </mediaobject>
- </figure>
-<para>There are two predefined classes for the <property>panelBarItem</property> shown on the screenshot and described in the table below</para>
- <table>
- <title>Predefined component skin class</title>
+ </mediaobject>
+ </figure>
+ <para>There are two predefined classes for the <property>panelBarItem</property> shown on the
+ screenshot and described in the table below</para>
+ <table>
+ <title>Predefined component skin class</title>
<tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Class description</entry>
- </row>
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Class description</entry>
+ </row>
</thead>
<tbody>
<row>
@@ -174,19 +189,18 @@
</tbody>
</tgroup>
</table>
- <para>It's necessary to define a class according to the corresponding name, so as an
-
-appearance of all <property>panelBarItems</property> on a page is changed at once.</para>
- <para>To change style peculiarities of the particular <property>panelBarItems</property>,
- define your own style classes in the corresponding <property>panelBarItems</property> attributes.</para>
-<table>
- <title>Style component classes</title>
+ <para>It's necessary to define a class according to the corresponding name, so as an
+ appearance of all <property>panelBarItems</property> on a page is changed at once.</para>
+ <para>To change style peculiarities of the particular <property>panelBarItems</property>, define
+ your own style classes in the corresponding <property>panelBarItems</property> attributes.</para>
+ <table>
+ <title>Style component classes</title>
<tgroup cols="2">
- <thead>
- <row>
- <entry>A class attribute</entry>
- <entry>A component element defined by an attribute</entry>
- </row>
+ <thead>
+ <row>
+ <entry>A class attribute</entry>
+ <entry>A component element defined by an attribute</entry>
+ </row>
</thead>
<tbody>
<row>
@@ -200,13 +214,15 @@
</tbody>
</tgroup>
</table>
- <para><emphasis role="bold">Example:</emphasis></para>
- <para>CSS code piece used on the page:</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <para>CSS code piece used on the page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
-<programlisting role="XML"><![CDATA[...
+ <programlisting role="XML"><![CDATA[...
.rich-panelbar-header{
font-size:14px;
}
@@ -215,12 +231,12 @@
}
...
]]></programlisting>
-<para>The component is defined in the following way:</para>
+ <para>The component is defined in the following way:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
-<programlisting role="XML"><![CDATA[...
+ <programlisting role="XML"><![CDATA[...
<rich:panelBar>
<rich:panelBarItem contentClass="myClass">
...
@@ -228,8 +244,7 @@
</rich:panelBar>
...
]]></programlisting>
-<para>Hence, a font size
- of all <property>panelBarItem</property> headers is changed on a page as well as a font for the
- particular <property>panelBarItem</property> content.</para>
+ <para>Hence, a font size of all <property>panelBarItem</property> headers is changed on a page
+ as well as a font for the particular <property>panelBarItem</property> content.</para>
+ </section>
</section>
-</section>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/tab.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tab.xml 2007-07-16 10:45:44 UTC (rev 1627)
+++ trunk/docs/userguide/en/src/main/docbook/included/tab.xml 2007-07-16 12:53:19 UTC (rev 1628)
@@ -73,8 +73,24 @@
<section>
<title>Details of Usage</title>
<para>The main component function is to define a content group that is rendered and processed when the <property>tab</property> is active, i.e. click on a <property>tab</property> causes switching onto a <property>tab</property> containing content corresponded to this <property>tab</property>.</para>
-<para>A marker on a <property>tab</property> header defined with the <emphasis ><property>"label"</property></emphasis> attribute. Moreover, each <property>tab</property> could be disabled (switching on this <property>tab</property> is impossible) with the <emphasis ><property>"disable"</property></emphasis> attribute.</para>
+ <para>The "label" attribute defines text to be represented. If you can use the
+ "label" facet, you can even not use the "label" attribute.</para>
+ <emphasis role="bold">Example:</emphasis>
+ <programlisting role="XML"><![CDATA[...
+ <rich:tab>
+ <f:facet name="label">
+ <h:graphicImage value="/images/img1.gif"/>
+ </f:facet>
+ ...
+ <!--Any Content inside-->
+ ...
+ </rich:tab>
+...
+]]></programlisting>
+
+ <para>A marker on a <property>tab</property> header defined with the <emphasis ><property>"label"</property></emphasis> attribute. Moreover, each <property>tab</property> could be disabled (switching on this <property>tab</property> is impossible) with the <emphasis ><property>"disable"</property></emphasis> attribute.</para>
+
<para>
<emphasis role="bold">Example:</emphasis>
</para>
17 years, 6 months
JBoss Rich Faces SVN: r1627 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-07-16 06:45:44 -0400 (Mon, 16 Jul 2007)
New Revision: 1627
Modified:
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
Log:
http://jira.jboss.com/jira/browse/RF-391
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-07-16 09:26:06 UTC (rev 1626)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-07-16 10:45:44 UTC (rev 1627)
@@ -242,32 +242,56 @@
<programlisting role="JAVA">onshow="alert(event.parameters.param1)"</programlisting>
<para> Here, during modalPanel opening the value of a passing parameter is output. </para>
<para> More information about this problem could be found on the <ulink
- url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111804"
- >RichFaces Development Forum</ulink>.</para>
- <para>
- There is a possibility to restore of the previous component state on a page (including position on the screen) after submitting and reloading.
- The modalPanel has some special attributes like 'showWhenRendered' and 'keepVisualState'.
- </para>
- <para>
- showWhenRendered - This boolean attribute is used if modalPanel should be rendered after first page loading.
- </para>
- <para>
- keepVisualState - Used if modalPanel should save state after submission.
- If keepVisualState=true then parameters which modalPanel has during opening should be submitted and passed to new page.
- </para>
-
- <para>
+ url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111804"
+ >RichFaces Development Forum</ulink>.</para>
+ <para> There is a possibility to restore of the previous component state on a page (including
+ position on the screen) after submitting and reloading. The modalPanel has some special
+ attributes like 'showWhenRendered' and 'keepVisualState'. </para>
+ <para> showWhenRendered - This boolean attribute is used if modalPanel should be rendered after
+ first page loading. </para>
+ <para> keepVisualState - Used if modalPanel should save state after submission. If
+ keepVisualState=true then parameters which modalPanel has during opening should be submitted
+ and passed to new page. </para>
+
+ <para>
<emphasis role="bold">Example:</emphasis>
</para>
-
+
<programlisting role="JAVA"><![CDATA[...
<a href="javascript:Richfaces.showModalPanel('_panel', {top:'10px', left:'10px', height:'400'});">Show</a>
...
]]></programlisting>
+ <para> Here, if user opens modal dialog window using current link and after submits data then
+ modalPanel destination and height on new loaded page will be restored. </para>
+ <para>You can use input or/and command components inside modalPanel. Simple example of using
+ commandButton within modalPanel is placed below.</para>
+ <emphasis role="bold">Example:</emphasis>
+ <programlisting role="XML"><![CDATA[...
+ <rich:modalPanel>
+ <f:facet name="header">
+ <h:outputText value="Test" />
+ </f:facet>
+ <f:facet name="controls">
+ <h:commandLink value="Close" style="cursor:pointer" onclick="Richfaces.hideModalPanel('mp')" />
+ </f:facet>
+ <h:form>
+ <t:commandButton value="Test" action="#{TESTCONTROLLER.test}" />
+ </h:form>
+ </rich:modalPanel>
+...
+]]></programlisting>
<para>
- Here, if user opens modal dialog window using current link and after submits data then modalPanel destination and height on new loaded page will be restored.
- </para>
-
+ <note>
+ <title>Note:</title>Two rules are important for modalPanel: <itemizedlist>
+ <listitem>modalPanel must have its own form if it has form elements (input or/and command
+ components) inside (as it was shown in the example above) </listitem>
+ <listitem>modalPanel must not be included into the form (on any level up) if it has the
+ form inside.</listitem>
+ </itemizedlist></note>
+ </para>
+ <para>See also <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064191"
+ >RichFaces Users Forum</ulink>.</para>
</section>
<section>
17 years, 6 months
JBoss Rich Faces SVN: r1626 - in trunk/docs/userguide/en/src/main/docbook: modules and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-07-16 05:26:06 -0400 (Mon, 16 Jul 2007)
New Revision: 1626
Modified:
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
Log:
http://jira.jboss.com/jira/browse/RF-389
http://jira.jboss.com/jira/browse/RF-391
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-07-14 02:08:04 UTC (rev 1625)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-07-16 09:26:06 UTC (rev 1626)
@@ -241,6 +241,9 @@
</para>
<programlisting role="JAVA">onshow="alert(event.parameters.param1)"</programlisting>
<para> Here, during modalPanel opening the value of a passing parameter is output. </para>
+ <para> More information about this problem could be found on the <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111804"
+ >RichFaces Development Forum</ulink>.</para>
<para>
There is a possibility to restore of the previous component state on a page (including position on the screen) after submitting and reloading.
The modalPanel has some special attributes like 'showWhenRendered' and 'keepVisualState'.
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-07-14 02:08:04 UTC (rev 1625)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-07-16 09:26:06 UTC (rev 1626)
@@ -80,6 +80,9 @@
<para>Source Code (SVN) can be found <ulink
url="http://anonsvn.jboss.org/repos/richfaces/trunk/richfaces-samples/richface..."
>here</ulink>.</para>
+ <para>See also <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=113454"
+ >how to prevent richfaces-demo deployment failed</ulink>.</para>
</section>
<section>
@@ -351,6 +354,14 @@
</rich:modalPanel>
...
]]></programlisting>
+ <para>
+ <note>
+ <title>Note:</title>Two rules are important for modalPanel:
+ <itemizedlist>
+ <listitem>modalPanel must have its own form if it has form elements (input or/and command components) inside (as it was shown in the example above) </listitem>
+ <listitem>modalPanel must not be included into the form (on any level up) if it has the form inside.</listitem>
+ </itemizedlist></note>
+ </para>
</section>
<section>
17 years, 6 months