[
http://www.stripesframework.org/jira/browse/STS-705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930#comment-12930
]
Ted Schrader commented on STS-705:
----------------------------------
I also ran into this issue once I added an @Wizard action bean as a menu option
into the MenuViewHelper + Stripes-Security approach outlined in Chapter 14 of
the Stripes book ("Hiding Restricted Content in JSPs", pp. 328-9).
I couldn't get the workaround listed above to work. Here's what I did instead:
In my JSP:
<c:forEach var="section" items="${actionBean.sections}">
<s:useActionBean id="beanId" beanclass="${section.beanclass}"
*event="doNothing"* />
<security:allowed bean="beanId">render menu item here.</security:allowed>
</c:forEach>
In my {{BaseActionBean}}:
@DontValidate
public Resolution doNothing() { return null; }
In my wizard:
@Wizard(startEvents={"view", "done", "doNothing"})
It seems to be working thus far.
> Tag useActionBean causes Exception if beanclass is a wizard
> -----------------------------------------------------------
>
> Key: STS-705
> URL: http://www.stripesframework.org/jira/browse/STS-705
> Project: Stripes
> Issue Type: Bug
> Components: ActionBean Dispatching, Tag Library
> Affects Versions: Release 1.5.1
> Reporter: Marcus Kraßmann
>
> When using <s:useActionBean var="xy" beanclass="..."> without a specified
> event on a wizard class, the DefaultActionBeanPropertyBinder is throwing an
> exception because it checks if the event name "null" is part of the wizard's
> startEvents. This blocks me from using the Stripes-Security package on wizard
> actionBeans.
> Current workaround to get it work: Specifying an empty startEvent in the
> useActionBean tag.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development