core icon indicating copy to clipboard operation
core copied to clipboard

WicketViewFactoryCreator does not allow for View-State inheritance

Open wmayville19 opened this issue 13 years ago • 2 comments

Spring Web Flow allows for view-state inheritance. The idea being you can abstract out functionality that is common among your view-states. From the Spring Documentation it does not force you to provide a backing class for every view state in the Flow xml file. The current implementation of WicketViewFactoryCreator is forcing me to define a class for any parent view state I define even though it does not represent an actual page in the flow. Here is some example flow xml

<view-state id="Base">    
    <on-entry>
        <evaluate expression="Do something"></evaluate>    
   </on-entry>
   <on-exit>
    <evaluate expression="Do something else"></evaluate>    
   </on-exit>
</view-state>

<view-state id="MyPage1" view="com.usaa.MyPage1" parent="#Base">
<!-- View State definition -->
</view-state>
<view-state id="MyPage2" view="com.usaa.MyPage2" parent="#Base">
<!-- View State definition -->
</view-state>

wmayville19 avatar Nov 14 '12 14:11 wmayville19

@checketts : Ping

martin-g avatar Nov 14 '12 14:11 martin-g

Unfortunately I've switched employers and haven't touched any of this code for over a year. I'm checking to see if there is any other current maintainer.

checketts avatar Nov 14 '12 18:11 checketts