[ 
http://issues.apache.org/jira/browse/BEEHIVE-220?page=comments#action_58414 ]
     
Alejandro Ramirez commented on BEEHIVE-220:
-------------------------------------------

Rich/Eddie,
I think this issue is due to the fact that there is no explicit reference the 
sharedFlow in the Jsp.  In order to invoke actions contained in sharedFlows 
from a jsp, you have to explicitly reference the shared flow that contains the 
action.

So, in the pkg/Controller.jpf you have:
@Jpf.Controller(
    simpleActions={
        @Jpf.SimpleAction(name="begin", path="index.jsp")
    },
    sharedFlowRefs={
        @Jpf.SharedFlowRef(name="shared", type=shared.SharedFlow.class)
    }
)

Then, you need to reference that action in the index.jsp as:
<netui:anchor action="shared.home">

I tried that and it worked.

> actions don't seem to resolve correctly to shared flows
> -------------------------------------------------------
>
>          Key: BEEHIVE-220
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-220
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>  Environment: Win XP.  Tomcat 5.0.25.  Beehive build from SVN this morning.
>     Reporter: Eddie O'Neil
>     Assignee: Rich Feit
>      Fix For: V1Beta
>  Attachments: reproWeb.war
>
> Webapp is this:
>   /pkg/Controller.jpf
>          begin.do
>       /index.jsp
>   /WEB-INF/src/shared/SharedFlow.jpfs
>                         home.do
> With a <netui:anchor> in /index.jsp that references "home" as:
>   <netui:anchor action="home">
> the action "home" isn't resolved with the error:
>   Action 'home' is not a valid action.
> Repro will be attached shortly; to build, run:
>   ant -f ant\buildWebapp.xml build 
> -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
>   ant -f ant\buildWebapp.xml deploy -Dcontext.path=reproWeb 
> -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
> then hit:
>   http://localhost:8080/reproWeb/pkg/Controller.jpf
> The same problem is showing up in the petstoreWeb.

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

Reply via email to