JBoss Rich Faces SVN: r9954 - trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-08-06 10:44:19 -0400 (Wed, 06 Aug 2008)
New Revision: 9954
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
Log:
https://jira.jboss.org/jira/browse/RF-3441, https://jira.jboss.org/jira/browse/RF-3909
Modified: trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
--- trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-08-06 14:12:28 UTC (rev 9953)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-08-06 14:44:19 UTC (rev 9954)
@@ -67,17 +67,18 @@
},
buttonClickHandler : function(e) {
+ this.button.isClicked = true;
this.tempKeeperClickHandler();
this.tempValueKeeper.focus();
- this.button.isClicked = true;
Event.stop(e);
},
tmpValueBlurHandler : function($super, event) {
- if (this.clickOnBar || this.byTab) {
+ if (this.clickOnBar || this.byTab || (Richfaces.browser.isIE && this.button.isClicked)) {
//tab navigation&clickOnbar handler
this.clickOnBar = false;
this.byTab = false;
+ this.button.isClicked = false;
return;
}
@@ -93,6 +94,7 @@
return;
}*/
this.comboList.hideWithDelay();
+
}
if (this.clickOnScroll) {
@@ -103,13 +105,12 @@
return;
}
- if (!this.attributes.showControls) {
+ if (!this.attributes.showControls) {
this.save();
} else {
this.applyTmpValue();
}
this.comboList.isList = false;
-
},
listClickHandler : function(event) {
Modified: trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
===================================================================
--- trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js 2008-08-06 14:12:28 UTC (rev 9953)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js 2008-08-06 14:44:19 UTC (rev 9954)
@@ -94,10 +94,8 @@
if( listWidth == this.list.offsetWidth) {
listWidth = listWidth- Richfaces.getScrollWidth(this.list);
}
-
- if (Prototype.Browser.Gecko) {
- listWidth = listWidth - (Richfaces.getBorderWidth(item,"lr") + Richfaces.getPaddingWidth(item,"lr") + Richfaces.getMarginWidth(item,"lr"));
- }
+
+ listWidth = listWidth - (Richfaces.getBorderWidth(item,"lr") + Richfaces.getPaddingWidth(item,"lr") + Richfaces.getMarginWidth(item,"lr"));
item.style.width = listWidth + "px";
},
16 years, 3 months
JBoss Rich Faces SVN: r9953 - trunk/test-applications/jsp/src/main/java/validator.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-08-06 10:12:28 -0400 (Wed, 06 Aug 2008)
New Revision: 9953
Modified:
trunk/test-applications/jsp/src/main/java/validator/LengthBean.java
Log:
localization test
Modified: trunk/test-applications/jsp/src/main/java/validator/LengthBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/validator/LengthBean.java 2008-08-06 14:11:54 UTC (rev 9952)
+++ trunk/test-applications/jsp/src/main/java/validator/LengthBean.java 2008-08-06 14:12:28 UTC (rev 9953)
@@ -13,7 +13,7 @@
*/
public class LengthBean implements Validable {
- @Length(max=10,min=4,message="incorrect field length")
+ @Length(max=10,min=4,message="{sizeFailure}!!!")
private String text;
private int intValue;
16 years, 3 months
JBoss Rich Faces SVN: r9952 - trunk/test-applications/jsp/src/main/resources.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-08-06 10:11:54 -0400 (Wed, 06 Aug 2008)
New Revision: 9952
Added:
trunk/test-applications/jsp/src/main/resources/ValidatorMessages_en.properties
Log:
Added: trunk/test-applications/jsp/src/main/resources/ValidatorMessages_en.properties
===================================================================
--- trunk/test-applications/jsp/src/main/resources/ValidatorMessages_en.properties (rev 0)
+++ trunk/test-applications/jsp/src/main/resources/ValidatorMessages_en.properties 2008-08-06 14:11:54 UTC (rev 9952)
@@ -0,0 +1 @@
+sizeFailure=correct range is {min}-{max}
16 years, 3 months
JBoss Rich Faces SVN: r9951 - trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-08-06 09:37:40 -0400 (Wed, 06 Aug 2008)
New Revision: 9951
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
RF-4100
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
--- trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-08-06 13:09:24 UTC (rev 9950)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-08-06 13:37:40 UTC (rev 9951)
@@ -1012,7 +1012,7 @@
parentForm.encoding = "multipart/form-data";
parentForm.enctype = "multipart/form-data";
parentForm.target = this.id + "_iframe";//this.id;
- parentForm.action = this.actionUrl + (/\?/.test(this.actionUrl) ? '&_richfaces_upload_uid' : '?_richfaces_upload_uid') + '=' + encodeURI(entry.uid) + "&id=" + this.id + "&_richfaces_upload_file_indicator=true";
+ parentForm.action = this.actionUrl + (/\?/.test(this.actionUrl) ? '&_richfaces_upload_uid' : '?_richfaces_upload_uid') + '=' + encodeURI(entry.uid) + "&id=" + this.id + "&_richfaces_upload_file_indicator=true&AJAXREQUEST="+this.progressBar.containerId;
try {
var inputs = parentForm.elements;
@@ -1173,12 +1173,9 @@
},
_flashGetPostParams: function () {
- var query = new A4J.Query('', this.form);
+ var query = new A4J.Query(this.progressBar.containerId, this.form);
if (query) {
query.appendFormControls();
- if (query._query.AJAXREQUEST) {
- query._query.remove('AJAXREQUEST');
- }
return query.getQueryString();
}
return '';
16 years, 3 months
JBoss Rich Faces SVN: r9950 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2008-08-06 09:09:24 -0400 (Wed, 06 Aug 2008)
New Revision: 9950
Modified:
trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml
Log:
https://jira.jboss.org/jira/browse/RF-3256
attribute API is added to guide
Modified: trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml 2008-08-06 13:00:44 UTC (rev 9949)
+++ trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml 2008-08-06 13:09:24 UTC (rev 9950)
@@ -462,8 +462,8 @@
</row>
<row>
- <entry role="tbi">setValue(newValue)</entry>
- <entry role="tbi">Sets the current value (to be implemented)</entry>
+ <entry >setValue(newValue)</entry>
+ <entry >Sets the current value (to be implemented)</entry>
</row>
</tbody>
16 years, 3 months
JBoss Rich Faces SVN: r9949 - trunk/ui/tooltip/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-08-06 09:00:44 -0400 (Wed, 06 Aug 2008)
New Revision: 9949
Modified:
trunk/ui/tooltip/src/main/java/org/richfaces/component/UIToolTip.java
Log:
https://jira.jboss.org/jira/browse/RF-4024
Modified: trunk/ui/tooltip/src/main/java/org/richfaces/component/UIToolTip.java
===================================================================
--- trunk/ui/tooltip/src/main/java/org/richfaces/component/UIToolTip.java 2008-08-06 13:00:10 UTC (rev 9948)
+++ trunk/ui/tooltip/src/main/java/org/richfaces/component/UIToolTip.java 2008-08-06 13:00:44 UTC (rev 9949)
@@ -4,12 +4,14 @@
import java.util.Set;
import javax.faces.component.UICommand;
+import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.event.AbortProcessingException;
import javax.faces.event.FacesEvent;
import org.ajax4jsf.context.AjaxContext;
import org.ajax4jsf.event.AjaxEvent;
+import org.ajax4jsf.renderkit.AjaxChildrenRenderer;
import org.richfaces.renderkit.html.ToolTipRenderer;
public abstract class UIToolTip extends UICommand implements org.ajax4jsf.component.AjaxChildrenEncoder{
@@ -132,7 +134,23 @@
ajaxContext.addRegionsFromComponent(this);
}
}
+
+ /**
+ * Instance of default renderer in ajax responses.
+ */
+ private static final AjaxChildrenRenderer _childrenRenderer = new AjaxChildrenRenderer() {
+
+ protected Class<? extends UIComponent> getComponentClass() {
+ return UIToolTip.class;
+ }
+
+ };
+
+ protected AjaxChildrenRenderer getChildrenRenderer() {
+ return _childrenRenderer;
+ }
+
public void encodeAjaxChild(FacesContext context, String path, Set ids,
Set renderedAreas) throws IOException {
@@ -142,10 +160,7 @@
r.encodeTooltipText(context, this);
ajaxContext.getAjaxRenderedAreas().add(this.getClientId(context) + "content");
} else {
- // todo
-// AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
-// ajaxContext.e
-
+ _childrenRenderer.encodeAjaxChildren(context, this, path, ids, renderedAreas);
}
}
16 years, 3 months
JBoss Rich Faces SVN: r9948 - trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-08-06 09:00:10 -0400 (Wed, 06 Aug 2008)
New Revision: 9948
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/AjaxChildrenRenderer.java
Log:
AjaxChildrenEncoder2 removed
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/AjaxChildrenRenderer.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/AjaxChildrenRenderer.java 2008-08-06 13:00:05 UTC (rev 9947)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/AjaxChildrenRenderer.java 2008-08-06 13:00:10 UTC (rev 9948)
@@ -33,7 +33,6 @@
import org.ajax4jsf.Messages;
import org.ajax4jsf.component.AjaxChildrenEncoder;
import org.ajax4jsf.component.AjaxOutput;
-import org.ajax4jsf.renderkit.AjaxRenderer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
16 years, 3 months
JBoss Rich Faces SVN: r9947 - trunk/framework/api/src/main/java/org/ajax4jsf/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-08-06 09:00:05 -0400 (Wed, 06 Aug 2008)
New Revision: 9947
Removed:
trunk/framework/api/src/main/java/org/ajax4jsf/component/AjaxChildrenEncoder2.java
trunk/framework/api/src/main/java/org/ajax4jsf/component/AjaxChildrenEncoder2State.java
Log:
AjaxChildrenEncoder2 removed
Deleted: trunk/framework/api/src/main/java/org/ajax4jsf/component/AjaxChildrenEncoder2.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/component/AjaxChildrenEncoder2.java 2008-08-06 12:08:29 UTC (rev 9946)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/component/AjaxChildrenEncoder2.java 2008-08-06 13:00:05 UTC (rev 9947)
@@ -1,58 +0,0 @@
-/**
- * License Agreement.
- *
- * Rich Faces - Natural Ajax for Java Server Faces (JSF)
- *
- * 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.ajax4jsf.component;
-
-import java.io.IOException;
-import java.util.Set;
-
-import javax.faces.context.FacesContext;
-
-/**
- * Marker interface for components, have ability to manipulate rendering in case of Ajax responses.
- * Such as ajax-enabled iterator, menus etc
- * @author shura
- *
- */
-public interface AjaxChildrenEncoder2 {
-
- public AjaxChildrenEncoder2State getEncodeAjaxChildState(FacesContext context,
- String path,Set<String> ids,Set<String> renderedAreas);
-
- /**
- * Iterate over all childs of components. If component id contains in list ,
- * or, if list is empty, compotents is submitted form - render it.
- * TODO - Instead of calculate full path for every component, build current Path
- * for componet and send as parameter.
- *
- * @param context -
- * current context
- * @param component -
- * curent faces component.
- * @param ids -
- * list of Id to render.
- * @throws IOException
- */
- public void encodeAjaxChild(FacesContext context,
- String path,Set<String> ids,Set<String> renderedAreas, AjaxChildrenEncoder2State state) throws IOException ;
-
-
-}
Deleted: trunk/framework/api/src/main/java/org/ajax4jsf/component/AjaxChildrenEncoder2State.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/component/AjaxChildrenEncoder2State.java 2008-08-06 12:08:29 UTC (rev 9946)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/component/AjaxChildrenEncoder2State.java 2008-08-06 13:00:05 UTC (rev 9947)
@@ -1,49 +0,0 @@
-/**
- * License Agreement.
- *
- * JBoss RichFaces - 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.ajax4jsf.component;
-
-/**
- * Created 05.08.2008
- * @author Nick Belaevski
- * @since 3.2.2
- */
-
-public interface AjaxChildrenEncoder2State {
-
- public boolean shouldEncode();
-
- public static final AjaxChildrenEncoder2State SHOULD_ENCODE = new AjaxChildrenEncoder2State() {
-
- public boolean shouldEncode() {
- return true;
- }
-
- };
-
- public static final AjaxChildrenEncoder2State SHOULD_NOT_ENCODE = new AjaxChildrenEncoder2State() {
-
- public boolean shouldEncode() {
- return false;
- }
-
- };
-}
16 years, 3 months
JBoss Rich Faces SVN: r9946 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/examples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-08-06 08:08:29 -0400 (Wed, 06 Aug 2008)
New Revision: 9946
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/examples/custom.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-4000
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/examples/custom.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/examples/custom.xhtml 2008-08-06 12:03:39 UTC (rev 9945)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/examples/custom.xhtml 2008-08-06 12:08:29 UTC (rev 9946)
@@ -24,9 +24,6 @@
cellpadding="#{suggestionBox.cellpadding}"
nothingLabel="No capitals found" columnClasses="center">
<h:column>
- <f:facet name="header">
- <h:outputText value="123"></h:outputText>
- </f:facet>
<h:graphicImage value="#{result.stateFlag}" />
</h:column>
<h:column>
16 years, 3 months
JBoss Rich Faces SVN: r9945 - trunk/test-applications/jsp/src/main/webapp/Validator.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-08-06 08:03:39 -0400 (Wed, 06 Aug 2008)
New Revision: 9945
Modified:
trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp
Log:
Modified: trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp 2008-08-06 11:57:24 UTC (rev 9944)
+++ trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp 2008-08-06 12:03:39 UTC (rev 9945)
@@ -96,7 +96,8 @@
<h:outputLabel for="dateValue" value="Future validation:" />
<h:panelGroup>
- <h:inputText value="#{validator.dateValue}" id="dateValue" converter="dateValueConverter">
+ <h:inputText value="#{validator.dateValue}" id="dateValue" converter="dateValueConverter">
+ <rich:ajaxValidator event="onchange"></rich:ajaxValidator>
</h:inputText>
<rich:message for="dateValue" showDetail="true" showSummary="true" />
</h:panelGroup>
16 years, 3 months