如何在Oracle ADF的JSFF页面上添加“返回”按钮?

huangapple go评论61阅读模式
英文:

How to add BACK button on JSFF page in Oracle ADF?

问题

我是一个Oracle ADF开发人员。我想在我的JSFF页面上添加一个“返回”按钮,可以将我重定向到上一页。我在互联网上搜索过,但只找到了一些对我没有帮助的JavaScript代码。是否有人可以建议一些Java代码,我可以编写一个按钮动作?

英文:

I am an Oracle ADF Developer. I want to add a BACK button on my JSFF page which can redirect me to the previous page. I searched the internet but could only find Javascript code which was not helpful. Could anyone suggest some java code which I can write a button action?

答案1

得分: 2

Joe提出的方法就是这样做的方式。这只是一个详细的回答。

以下是步骤:

  1. 在任务流中,从当前视图(当前的JSFF)添加一个控制流Case到之前的视图(之前的JSFF)。
  2. 将控制流Case的“From Outcome”属性设置为类似于“Back”的某个值。
  3. 在当前JSFF页面上添加一个按钮。
  4. 将按钮的“Action”属性设置为“Back”(与步骤2中的相同字符串)。
英文:

What Joe has suggested is the way to do it. This is just a detailed answer.

Here are the steps:

  1. Add a Control Flow Case from the current View(current JSFF) to previous View(previous JSFF) in the taskflow.
  2. Set the 'From Outcome' property of the control flow case to something like 'Back'
  3. Add a Button on the current JSFF page.
  4. Set the 'Action' property of the button as 'Back' (same string from step 2)

答案2

得分: 0

为什么不简单地从页面将任务流程案例返回到上一页,并将按钮与之关联呢?

英文:

Why not simply add a taskflow flow case back from the page to the previous page and tie a button to that?

huangapple
  • 本文由 发表于 2020年5月19日 18:24:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/61888732.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定