You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org> on 2005/05/10 02:28:04 UTC

[jira] Created: (BEEHIVE-631) Message Bundles for Form Beans no longer seem to work

Message Bundles for Form Beans no longer seem to work
-----------------------------------------------------

         Key: BEEHIVE-631
         URL: http://issues.apache.org/jira/browse/BEEHIVE-631
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1    
    Reporter: Alejandro Ramirez
 Assigned to: Carlin Rogers 
     Fix For: V1
 Attachments: FormBeanMessageBundle.zip

Message Bundles declared within a form bean no longer seem to work.

1.- Unzip the attached pageflow into a beehive enabled webapp and access it (e.g. http://localhost:<yourport>/<yourContext>/validationTests/beanRules/BeanRulesController.jpf )
2.- In the page that is displayed, click the "Click" button without entering any data.

Expected:  There should be a message (obtained from a message bundle) that the required rule is required.

Actual:  There is an exception:
Error Number	Tag Type	Error
1	Errors	Message	An error occurred accessing the message bundle. This may be because there is no default message bundle defined for the current page flow

I have made sure to include the declared bundle "beanScope" in WEB-INF/src and also verified that after compilation of my webapp it is under WEB-INF/classes dir:

@Jpf.Controller()
public class BeanRulesController extends PageFlowController
{
    ...
    @Jpf.FormBean(messageBundle = "beanScope")
    public static class InnerBean extends FormData
    {
        ...
    }
}



-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (BEEHIVE-631) Message Bundles for Form Beans no longer seem to work

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


Verified fixed.  Executed repro steps and now I get the correct message from the bundle.

> Message Bundles for Form Beans no longer seem to work
> -----------------------------------------------------
>
>          Key: BEEHIVE-631
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-631
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Alejandro Ramirez
>     Assignee: Alejandro Ramirez
>      Fix For: V1
>  Attachments: FormBeanMessageBundle.zip
>
> Message Bundles declared within a form bean no longer seem to work.
> 1.- Unzip the attached pageflow into a beehive enabled webapp and access it (e.g. http://localhost:<yourport>/<yourContext>/validationTests/beanRules/BeanRulesController.jpf )
> 2.- In the page that is displayed, click the "Click" button without entering any data.
> Expected:  There should be a message (obtained from a message bundle) that the required rule is required.
> Actual:  There is an exception:
> Error Number	Tag Type	Error
> 1	Errors	Message	An error occurred accessing the message bundle. This may be because there is no default message bundle defined for the current page flow
> I have made sure to include the declared bundle "beanScope" in WEB-INF/src and also verified that after compilation of my webapp it is under WEB-INF/classes dir:
> @Jpf.Controller()
> public class BeanRulesController extends PageFlowController
> {
>     ...
>     @Jpf.FormBean(messageBundle = "beanScope")
>     public static class InnerBean extends FormData
>     {
>         ...
>     }
> }

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (BEEHIVE-631) Message Bundles for Form Beans no longer seem to work

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

Alejandro Ramirez updated BEEHIVE-631:
--------------------------------------

    Attachment: FormBeanMessageBundle.zip

> Message Bundles for Form Beans no longer seem to work
> -----------------------------------------------------
>
>          Key: BEEHIVE-631
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-631
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Alejandro Ramirez
>     Assignee: Carlin Rogers
>      Fix For: V1
>  Attachments: FormBeanMessageBundle.zip
>
> Message Bundles declared within a form bean no longer seem to work.
> 1.- Unzip the attached pageflow into a beehive enabled webapp and access it (e.g. http://localhost:<yourport>/<yourContext>/validationTests/beanRules/BeanRulesController.jpf )
> 2.- In the page that is displayed, click the "Click" button without entering any data.
> Expected:  There should be a message (obtained from a message bundle) that the required rule is required.
> Actual:  There is an exception:
> Error Number	Tag Type	Error
> 1	Errors	Message	An error occurred accessing the message bundle. This may be because there is no default message bundle defined for the current page flow
> I have made sure to include the declared bundle "beanScope" in WEB-INF/src and also verified that after compilation of my webapp it is under WEB-INF/classes dir:
> @Jpf.Controller()
> public class BeanRulesController extends PageFlowController
> {
>     ...
>     @Jpf.FormBean(messageBundle = "beanScope")
>     public static class InnerBean extends FormData
>     {
>         ...
>     }
> }

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-631) Message Bundles for Form Beans no longer seem to work

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

Rich Feit reassigned BEEHIVE-631:
---------------------------------

    Assign To: Rich Feit  (was: Carlin Rogers)

> Message Bundles for Form Beans no longer seem to work
> -----------------------------------------------------
>
>          Key: BEEHIVE-631
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-631
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Alejandro Ramirez
>     Assignee: Rich Feit
>      Fix For: V1
>  Attachments: FormBeanMessageBundle.zip
>
> Message Bundles declared within a form bean no longer seem to work.
> 1.- Unzip the attached pageflow into a beehive enabled webapp and access it (e.g. http://localhost:<yourport>/<yourContext>/validationTests/beanRules/BeanRulesController.jpf )
> 2.- In the page that is displayed, click the "Click" button without entering any data.
> Expected:  There should be a message (obtained from a message bundle) that the required rule is required.
> Actual:  There is an exception:
> Error Number	Tag Type	Error
> 1	Errors	Message	An error occurred accessing the message bundle. This may be because there is no default message bundle defined for the current page flow
> I have made sure to include the declared bundle "beanScope" in WEB-INF/src and also verified that after compilation of my webapp it is under WEB-INF/classes dir:
> @Jpf.Controller()
> public class BeanRulesController extends PageFlowController
> {
>     ...
>     @Jpf.FormBean(messageBundle = "beanScope")
>     public static class InnerBean extends FormData
>     {
>         ...
>     }
> }

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (BEEHIVE-631) Message Bundles for Form Beans no longer seem to work

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

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

Another good catch.  This was happening when there were messages associated with the form bean (through @Jpf.FormBean), but there were no default messages associated with the page flow.  Fixed with revision 169513.

> Message Bundles for Form Beans no longer seem to work
> -----------------------------------------------------
>
>          Key: BEEHIVE-631
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-631
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Alejandro Ramirez
>     Assignee: Alejandro Ramirez
>      Fix For: V1
>  Attachments: FormBeanMessageBundle.zip
>
> Message Bundles declared within a form bean no longer seem to work.
> 1.- Unzip the attached pageflow into a beehive enabled webapp and access it (e.g. http://localhost:<yourport>/<yourContext>/validationTests/beanRules/BeanRulesController.jpf )
> 2.- In the page that is displayed, click the "Click" button without entering any data.
> Expected:  There should be a message (obtained from a message bundle) that the required rule is required.
> Actual:  There is an exception:
> Error Number	Tag Type	Error
> 1	Errors	Message	An error occurred accessing the message bundle. This may be because there is no default message bundle defined for the current page flow
> I have made sure to include the declared bundle "beanScope" in WEB-INF/src and also verified that after compilation of my webapp it is under WEB-INF/classes dir:
> @Jpf.Controller()
> public class BeanRulesController extends PageFlowController
> {
>     ...
>     @Jpf.FormBean(messageBundle = "beanScope")
>     public static class InnerBean extends FormData
>     {
>         ...
>     }
> }

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira