You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (Jira)" <ji...@apache.org> on 2022/04/29 12:35:00 UTC
[jira] [Commented] (ISIS-1659) no-arg actions (eg toggle) don't respect config property isRedirectOnlyIfSameObject=false
[ https://issues.apache.org/jira/browse/ISIS-1659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17529964#comment-17529964 ]
Andi Huber commented on ISIS-1659:
----------------------------------
We don't use the RedirectFacet any more. Either deprecate or re-instate.
> no-arg actions (eg toggle) don't respect config property isRedirectOnlyIfSameObject=false
> -----------------------------------------------------------------------------------------
>
> Key: ISIS-1659
> URL: https://issues.apache.org/jira/browse/ISIS-1659
> Project: Isis
> Issue Type: Improvement
> Components: Isis Viewer Wicket
> Reporter: Daniel Keir Haywood
> Assignee: Andi Huber
> Priority: Minor
> Fix For: 2.0.0-RC1
>
>
> eg:
> {code}
> public SomeObject toggle() {
> setFlag(! isFlag());
> return this;
> }
> {code}
> will cause a redirect to the same page, even though the same object is being rendered.
> The reason is because the current viewer implementation does not expose the AjaxRequestTarget. Need some deep surgery somewhere...
--
This message was sent by Atlassian Jira
(v8.20.7#820007)