[
http://www.stripesframework.org/jira/browse/STS-864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12500#comment-12500
]
Ben Gunter commented on STS-864:
--------------------------------
You can override ActionBeanContext.getSourcePageResolution() to suit your
needs. Is this not sufficient?
> Allow explicitly setting the sourcePage in a form for AJAX validation
> requests and other edge cases
> ---------------------------------------------------------------------------------------------------
>
> Key: STS-864
> URL: http://www.stripesframework.org/jira/browse/STS-864
> Project: Stripes
> Issue Type: Improvement
> Components: Tag Library
> Affects Versions: Release 1.5.6
> Reporter: Peter Smiley
> Priority: Minor
>
> Would be nice to be able to explicity set the sourcePage in a form tag for
> when automatically validating parameters and being able to show the ajax part
> of the form only.
> Changes would be as follows:
> {code:title=net.sourceforge.stripes.tag.FormTag.java|borderStyle=solid}
> private String sourcePage;
> /** Get the encrypted value for the hidden _sourcePage field. */
> protected String getSourcePageValue() {
>
> if(sourcePage != null && sourcePage.length() > 0) {
> return CryptoUtil.encrypt(sourcePage);
> }
>
> HttpServletRequest request = (HttpServletRequest)
> getPageContext().getRequest();
> return CryptoUtil.encrypt(request.getServletPath());
> }
> public void setSourcePage(String sourcePage) {
> this.sourcePage = sourcePage;
> }
> {code}
> and add the following to the form taglib tld
> {code:xml}
> <attribute>
> <description><![CDATA[
> A specific sourcePage to use in the case of an AJAX request
> or other edge cases
> ]]></description>
>
> <name>sourcePage</name><required>false</required><rtexprvalue>true</rtexprvalue>
> </attribute>
> {code}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Cloud Computing - Latest Buzzword or a Glimpse of the Future?
This paper surveys cloud computing today: What are the benefits?
Why are businesses embracing it? What are its payoffs and pitfalls?
http://www.accelacomm.com/jaw/sdnl/114/51425149/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development