Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mojarra-dev] faces-redirect=true alternative via Annotation?

Hello Thomas,

My Knowledge of the JSF internals is very limited so permit me to ask this. Can't the FacesContext.getCurrentInstance().getViewRoot().getViewId() be called to determine the URL for the void method?



On Wed, Feb 17, 2021 at 1:22 PM Thomas Andraschko <tandraschko@xxxxxxxxxx> wrote:
This would only possible if @Redirect would also take a value.

@Redirect + non-void-return-value would work

or

@Redirect("myView.xhtml") + void method would work

Am Mi., 17. Feb. 2021 um 14:14 Uhr schrieb Edwin Amoakwa <edwin.amoakwa@xxxxxxxxx>:
Great !!!

Will it be applicable to void methods e.g

@Redirect
public void action()
{
    doSomeOtherAction();
}


On Wed, Feb 17, 2021 at 10:35 AM Thomas Andraschko <tandraschko@xxxxxxxxxx> wrote:
I could prototype it in MyFaces.

Best regards,
Thomas
_______________________________________________
mojarra-dev mailing list
mojarra-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mojarra-dev
_______________________________________________
mojarra-dev mailing list
mojarra-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mojarra-dev
_______________________________________________
mojarra-dev mailing list
mojarra-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mojarra-dev

Back to the top