查看继承问题
我从 spring 论坛复制了这个问题。
我有一个父流和一个子流。父流具有以下文件夹结构
parent
|
|--parent-flow.xml
|--parentView.xhtml
该父流具有以下视图状态
<view-state id="parentState" view="parentView.xhtml">
</view-state>
子流如下所示:
<flow ...
parent="parent">
...
<view-state id="test">
<transition on="bang" to="parentState"/>
</view-state>
...
</flow>
问题是当我点击子流的“bang”操作时,它无法在父流中看到parentView.xhtml 视图。我得到这样的东西: 代码:
The requested resource (/spring/child?execution=e3s2) is not available.
如果我将parentView.xhtml复制到孩子的流程文件夹中,一切都会变得很神奇。
我想知道这是一个缺陷还是它被设计成这样工作?如果这是一个缺陷,那么打开 JIRA 票证会更糟...我认为这种情况很常见,例如在我的情况下,我有删除构造屏幕(父视图状态),用户可以删除的所有页面中都使用该构造屏幕实体。
I have copied this question here from spring forum.
I have a parent flow and a child flow. The parent flow has following folder structure
parent
|
|--parent-flow.xml
|--parentView.xhtml
This parent has following view-state
<view-state id="parentState" view="parentView.xhtml">
</view-state>
Child flow looks like this:
<flow ...
parent="parent">
...
<view-state id="test">
<transition on="bang" to="parentState"/>
</view-state>
...
</flow>
The problem is when I hit 'bang' action of child flow it can't see parentView.xhtml view in parent flow. I get something like this:
Code:
The requested resource (/spring/child?execution=e3s2) is not available.
If I copy parentView.xhtml into child's flow folder, everything works as a charm.
I wonder if it is a defect or it was designed to work like this? If it's a defect, then it worse opening JIRA ticket... This situation is quite common I think, for example in my case I have delete conformation screen (parent view-state) that is used in all pages where user is able to delete entities.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该问题的解决方法:
可以在视图属性中指定相对路径。如果您像这样指定父视图,则下面的示例有效:
Workaround for the issue:
One can specify relative path in view attribute. The example below works if you specify parent view like that: