You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Jason Dunckley (JIRA)" <be...@incubator.apache.org> on 2005/02/17 01:52:48 UTC

[jira] Created: (BEEHIVE-315) Databinding expressions not evalutated for error message args

Databinding expressions not evalutated for error message args
-------------------------------------------------------------

         Key: BEEHIVE-315
         URL: http://issues.apache.org/jira/browse/BEEHIVE-315
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1Beta    
    Reporter: Jason Dunckley


-The bean below has an example of an ExpressionMessage with an arg using a databinding expression to use a pageFlow member variable

-There is a <netui:error> and <netui:errors> tag in the JSP page

-When the passing the string "fail" the validation method on the bean field adds the errors:

Expected result- This message for validateMe failing validation has - a string databound from pageflow

Actual result- This message for validateMe failing validation has - ${pageFlow.memberString}

This is also true for errors added with addActionErrorExpression


package bean; 

import javax.servlet.http.HttpServletRequest;
import org.apache.beehive.netui.pageflow.ExpressionMessage;
import org.apache.beehive.netui.pageflow.Validatable;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessages;

public class MyBean implements Validatable
{
    public void validate(ActionMapping arg0, HttpServletRequest arg1, ActionMessages errors)
    {
        if (validateMe=="fail")
{
    errors.add("validateMe", new ExpressionMessage ("This message for validateMe failing validatoin has an arg from {0}", "${pageFlow.memberString}"));

}
    }
    private String validateMe;

    public String getValidateMe(){return validateMe;}

    public void setValidateMe(String value){validateMe = value;}
    
} 



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (BEEHIVE-315) Databinding expressions not evalutated for error message args

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-315?page=comments#action_59296 ]
     
Rich Feit commented on BEEHIVE-315:
-----------------------------------

This one's mine for now.

> Databinding expressions not evalutated for error message args
> -------------------------------------------------------------
>
>          Key: BEEHIVE-315
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-315
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Jason Dunckley
>     Assignee: Rich Feit

>
> -The bean below has an example of an ExpressionMessage with an arg using a databinding expression to use a pageFlow member variable
> -There is a <netui:error> and <netui:errors> tag in the JSP page
> -When the passing the string "fail" the validation method on the bean field adds the errors:
> Expected result- This message for validateMe failing validation has - a string databound from pageflow
> Actual result- This message for validateMe failing validation has - ${pageFlow.memberString}
> This is also true for errors added with addActionErrorExpression
> package bean; 
> import javax.servlet.http.HttpServletRequest;
> import org.apache.beehive.netui.pageflow.ExpressionMessage;
> import org.apache.beehive.netui.pageflow.Validatable;
> import org.apache.struts.action.ActionError;
> import org.apache.struts.action.ActionMapping;
> import org.apache.struts.action.ActionMessages;
> public class MyBean implements Validatable
> {
>     public void validate(ActionMapping arg0, HttpServletRequest arg1, ActionMessages errors)
>     {
>         if (validateMe=="fail")
> {
>     errors.add("validateMe", new ExpressionMessage ("This message for validateMe failing validatoin has an arg from {0}", "${pageFlow.memberString}"));
> }
>     }
>     private String validateMe;
>     public String getValidateMe(){return validateMe;}
>     public void setValidateMe(String value){validateMe = value;}
>     
> } 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (BEEHIVE-315) Databinding expressions not evalutated for error message args

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-315?page=history ]
     
Rich Feit resolved BEEHIVE-315:
-------------------------------

      Assign To: Alejandro Ramirez  (was: Rich Feit)
     Resolution: Fixed
    Fix Version: V1Beta

Fixed with revision 154456.  This was a good one...

> Databinding expressions not evalutated for error message args
> -------------------------------------------------------------
>
>          Key: BEEHIVE-315
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-315
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Jason Dunckley
>     Assignee: Alejandro Ramirez
>      Fix For: V1Beta

>
> -The bean below has an example of an ExpressionMessage with an arg using a databinding expression to use a pageFlow member variable
> -There is a <netui:error> and <netui:errors> tag in the JSP page
> -When the passing the string "fail" the validation method on the bean field adds the errors:
> Expected result- This message for validateMe failing validation has - a string databound from pageflow
> Actual result- This message for validateMe failing validation has - ${pageFlow.memberString}
> This is also true for errors added with addActionErrorExpression
> package bean; 
> import javax.servlet.http.HttpServletRequest;
> import org.apache.beehive.netui.pageflow.ExpressionMessage;
> import org.apache.beehive.netui.pageflow.Validatable;
> import org.apache.struts.action.ActionError;
> import org.apache.struts.action.ActionMapping;
> import org.apache.struts.action.ActionMessages;
> public class MyBean implements Validatable
> {
>     public void validate(ActionMapping arg0, HttpServletRequest arg1, ActionMessages errors)
>     {
>         if (validateMe=="fail")
> {
>     errors.add("validateMe", new ExpressionMessage ("This message for validateMe failing validatoin has an arg from {0}", "${pageFlow.memberString}"));
> }
>     }
>     private String validateMe;
>     public String getValidateMe(){return validateMe;}
>     public void setValidateMe(String value){validateMe = value;}
>     
> } 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-315) Databinding expressions not evalutated for error message args

Posted by "Jason Dunckley (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-315?page=history ]

Jason Dunckley reassigned BEEHIVE-315:
--------------------------------------

    Assign To: Jason Dunckley  (was: Alejandro Ramirez)

> Databinding expressions not evalutated for error message args
> -------------------------------------------------------------
>
>          Key: BEEHIVE-315
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-315
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Jason Dunckley
>     Assignee: Jason Dunckley
>      Fix For: V1Beta

>
> -The bean below has an example of an ExpressionMessage with an arg using a databinding expression to use a pageFlow member variable
> -There is a <netui:error> and <netui:errors> tag in the JSP page
> -When the passing the string "fail" the validation method on the bean field adds the errors:
> Expected result- This message for validateMe failing validation has - a string databound from pageflow
> Actual result- This message for validateMe failing validation has - ${pageFlow.memberString}
> This is also true for errors added with addActionErrorExpression
> package bean; 
> import javax.servlet.http.HttpServletRequest;
> import org.apache.beehive.netui.pageflow.ExpressionMessage;
> import org.apache.beehive.netui.pageflow.Validatable;
> import org.apache.struts.action.ActionError;
> import org.apache.struts.action.ActionMapping;
> import org.apache.struts.action.ActionMessages;
> public class MyBean implements Validatable
> {
>     public void validate(ActionMapping arg0, HttpServletRequest arg1, ActionMessages errors)
>     {
>         if (validateMe=="fail")
> {
>     errors.add("validateMe", new ExpressionMessage ("This message for validateMe failing validatoin has an arg from {0}", "${pageFlow.memberString}"));
> }
>     }
>     private String validateMe;
>     public String getValidateMe(){return validateMe;}
>     public void setValidateMe(String value){validateMe = value;}
>     
> } 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (BEEHIVE-315) Databinding expressions not evalutated for error message args

Posted by "Jason Dunckley (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-315?page=history ]
     
Jason Dunckley closed BEEHIVE-315:
----------------------------------


Verified fixed using expressions in args for messages in ExpressionMessage, PageFlowUtils.addActionErrorExpression, and addActionErrorExpression within a JPF

> Databinding expressions not evalutated for error message args
> -------------------------------------------------------------
>
>          Key: BEEHIVE-315
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-315
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Jason Dunckley
>     Assignee: Jason Dunckley
>      Fix For: V1Beta

>
> -The bean below has an example of an ExpressionMessage with an arg using a databinding expression to use a pageFlow member variable
> -There is a <netui:error> and <netui:errors> tag in the JSP page
> -When the passing the string "fail" the validation method on the bean field adds the errors:
> Expected result- This message for validateMe failing validation has - a string databound from pageflow
> Actual result- This message for validateMe failing validation has - ${pageFlow.memberString}
> This is also true for errors added with addActionErrorExpression
> package bean; 
> import javax.servlet.http.HttpServletRequest;
> import org.apache.beehive.netui.pageflow.ExpressionMessage;
> import org.apache.beehive.netui.pageflow.Validatable;
> import org.apache.struts.action.ActionError;
> import org.apache.struts.action.ActionMapping;
> import org.apache.struts.action.ActionMessages;
> public class MyBean implements Validatable
> {
>     public void validate(ActionMapping arg0, HttpServletRequest arg1, ActionMessages errors)
>     {
>         if (validateMe=="fail")
> {
>     errors.add("validateMe", new ExpressionMessage ("This message for validateMe failing validatoin has an arg from {0}", "${pageFlow.memberString}"));
> }
>     }
>     private String validateMe;
>     public String getValidateMe(){return validateMe;}
>     public void setValidateMe(String value){validateMe = value;}
>     
> } 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-315) Databinding expressions not evalutated for error message args

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-315?page=history ]

Rich Feit reassigned BEEHIVE-315:
---------------------------------

    Assign To: Rich Feit  (was: carlin rogers)

> Databinding expressions not evalutated for error message args
> -------------------------------------------------------------
>
>          Key: BEEHIVE-315
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-315
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Jason Dunckley
>     Assignee: Rich Feit

>
> -The bean below has an example of an ExpressionMessage with an arg using a databinding expression to use a pageFlow member variable
> -There is a <netui:error> and <netui:errors> tag in the JSP page
> -When the passing the string "fail" the validation method on the bean field adds the errors:
> Expected result- This message for validateMe failing validation has - a string databound from pageflow
> Actual result- This message for validateMe failing validation has - ${pageFlow.memberString}
> This is also true for errors added with addActionErrorExpression
> package bean; 
> import javax.servlet.http.HttpServletRequest;
> import org.apache.beehive.netui.pageflow.ExpressionMessage;
> import org.apache.beehive.netui.pageflow.Validatable;
> import org.apache.struts.action.ActionError;
> import org.apache.struts.action.ActionMapping;
> import org.apache.struts.action.ActionMessages;
> public class MyBean implements Validatable
> {
>     public void validate(ActionMapping arg0, HttpServletRequest arg1, ActionMessages errors)
>     {
>         if (validateMe=="fail")
> {
>     errors.add("validateMe", new ExpressionMessage ("This message for validateMe failing validatoin has an arg from {0}", "${pageFlow.memberString}"));
> }
>     }
>     private String validateMe;
>     public String getValidateMe(){return validateMe;}
>     public void setValidateMe(String value){validateMe = value;}
>     
> } 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-315) Databinding expressions not evalutated for error message args

Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-315?page=history ]

Alejandro Ramirez reassigned BEEHIVE-315:
-----------------------------------------

    Assign To: carlin rogers

I think this might be yours?

> Databinding expressions not evalutated for error message args
> -------------------------------------------------------------
>
>          Key: BEEHIVE-315
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-315
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Jason Dunckley
>     Assignee: carlin rogers

>
> -The bean below has an example of an ExpressionMessage with an arg using a databinding expression to use a pageFlow member variable
> -There is a <netui:error> and <netui:errors> tag in the JSP page
> -When the passing the string "fail" the validation method on the bean field adds the errors:
> Expected result- This message for validateMe failing validation has - a string databound from pageflow
> Actual result- This message for validateMe failing validation has - ${pageFlow.memberString}
> This is also true for errors added with addActionErrorExpression
> package bean; 
> import javax.servlet.http.HttpServletRequest;
> import org.apache.beehive.netui.pageflow.ExpressionMessage;
> import org.apache.beehive.netui.pageflow.Validatable;
> import org.apache.struts.action.ActionError;
> import org.apache.struts.action.ActionMapping;
> import org.apache.struts.action.ActionMessages;
> public class MyBean implements Validatable
> {
>     public void validate(ActionMapping arg0, HttpServletRequest arg1, ActionMessages errors)
>     {
>         if (validateMe=="fail")
> {
>     errors.add("validateMe", new ExpressionMessage ("This message for validateMe failing validatoin has an arg from {0}", "${pageFlow.memberString}"));
> }
>     }
>     private String validateMe;
>     public String getValidateMe(){return validateMe;}
>     public void setValidateMe(String value){validateMe = value;}
>     
> } 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira