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/02/11 18:17:11 UTC

[jira] Resolved: (BEEHIVE-200) Inherited properties from a SharedFlow are not displayed when invoked by an tag

     [ http://issues.apache.org/jira/browse/BEEHIVE-200?page=history ]
     
Alejandro Ramirez resolved BEEHIVE-200:
---------------------------------------

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

Upon further inspection, it turned out to be a casing issue.  In the pageflow, I declared a reference to the sharedflow as (SubSF):
sharedFlowRefs={
        @Jpf.SharedFlowRef(name="SubSF", type=SubSharedFlow.class)
    })
However, I was trying to access it in the Jsp as (subSF, lower case "s"):
<netui:span value="${sharedFlow.subSF.messageFromMethod}

Using the correct case in the sharedflow reference fixed my problem.



> Inherited properties from a SharedFlow are not displayed when invoked by an <anchor> tag
> ----------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-200
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-200
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>  Environment: Windows XP, Tomcat 5.0.25
>     Reporter: Alejandro Ramirez
>     Assignee: Alejandro Ramirez
>  Attachments: testWebApp.zip
>
> Overview:
> In the attached webapp, I have the following shared flows:
> 	- inheritableSharedFlows.superSharedFlows.SuperSharedFlow which contains a catch for "UnfulfilledRolesException" as well as a private String member named messageFromMethod.  That member can be accessed with the defined getter: getMessageFromMethod().
> 	- inheritableSharedFlows.SubSharedFlow which extends SuperSharedFlow and it is an empty class.
> The webapp also contains the following PageFlow and JSP:
> 	- inheritableSharedFlows.Controller.jpf which contains a reference to the "SubSharedFlow" shared flow.  It also contains an action: "failRoles" that throws an UnfulfilledRolesException if the user has not logged in with the user defines in that action.
> 	- inheritableSharedFlows/Error.jsp is the JSP that should be loaded after the exception has been handled.  It contains a call to the inherited property "messageFromMethod" (<netui:span value="${sharedFlow.subSF.messageFromMethod})
> The problem is that the page is not displaying the inherited property messageFromMethod.
> REPRO:
> 1.- Using the attached beehive enabled webapp, deploy it and access the following:
> http://localhost:8080/testWebApp/SharedFlowTest/SharedFlowController.jpf
> 2.- In the "Shared Flow Test: Access to Properties in Shared Flows" page, click the link to: "Go to Inheritable SharedFlows".
> 3.- Now in the exceptions page, click the link "Throw Exception".
> Expected: That link should throw an "UnfulfilledRolesException" and the exception should be caught by an inherited catch and display error message in the Error.jsp page.  The inherited property messageFromMethod should also be displayed.
> Actual:  The inherited property messageFromMethod is not being displayed.

-- 
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