Author: pyaschenko
Date: 2007-10-24 06:25:42 -0400 (Wed, 24 Oct 2007)
New Revision: 3498
Modified:
trunk/ui/core/src/main/java/org/ajax4jsf/taglib/html/jsp/ActionParamTag.java
Log:
changed type of _assignTo from String to ValueExpression
Modified: trunk/ui/core/src/main/java/org/ajax4jsf/taglib/html/jsp/ActionParamTag.java
===================================================================
---
trunk/ui/core/src/main/java/org/ajax4jsf/taglib/html/jsp/ActionParamTag.java 2007-10-24
10:13:13 UTC (rev 3497)
+++
trunk/ui/core/src/main/java/org/ajax4jsf/taglib/html/jsp/ActionParamTag.java 2007-10-24
10:25:42 UTC (rev 3498)
@@ -62,7 +62,7 @@
// UIParameter attributes
// value already implemented in UIComponentTagBase
private ValueExpression _name;
- private String _assignTo;
+ private ValueExpression _assignTo;
private String _converter;
private String _noEscape;
@@ -88,9 +88,9 @@
FacesContext facesContext = FacesContext.getCurrentInstance();
Application application = facesContext.getApplication();
if (_assignTo != null) {
- if (!UIComponentTag.isValueReference(_assignTo)) throw new
IllegalArgumentException(Messages.getMessage(Messages.NO_VALUE_REFERENCE_ERROR_2,
_assignTo));
+ if
(!UIComponentTag.isValueReference(_assignTo.getExpressionString())) throw new
IllegalArgumentException(Messages.getMessage(Messages.NO_VALUE_REFERENCE_ERROR_2,
_assignTo));
UIActionParameter al = (UIActionParameter)component;
- al.setAssignToBinding(application.createValueBinding(_assignTo));
+
al.setAssignToBinding(application.createValueBinding(_assignTo.getExpressionString()));
if (_converter != null)
{
Converter converter = application.createConverter(_converter);
@@ -127,7 +127,7 @@
/**
* @param property The property to set.
*/
- public void setAssignTo(String property)
+ public void setAssignTo(ValueExpression property)
{
this._assignTo = property;
}
Show replies by date