two questions...

first:

i use tiles... i have a static left and side - middle is dynamic (with
actions &&&)
if i enter the dialog manager, i thought ok, cool i cann swap between dialogs...

if i use a link from the static sides, i got fault because the
transition are not defined in dialog manager... i dont want to define
it again...

does exist a possibility that if i'm in a dialog and a non defined
transaction is called, that the dialog automatically ends?

 <!-- Edit Profile Dialog -->
 <dialog                name="buyProcedure"
                       start="Setup">

   <!-- Global transitioh definitions -->
   <transition       outcome="cancel"
                      target="Cancel"/>
   <transition       outcome="finish"
                      target="Finish"/>

   <action              name="Setup"
                      method="#{buy.prepareBuy1}">
     <transition     outcome="success"
                      target="Page 1"/>
   </action>

   <view                name="Page 1"
                      viewId="/buy.xml">
     <transition     outcome="next"
                      target="Page 2"/>
   </view>

   <view                name="Page 2"
                      viewId="/buy2.xml">
     <transition     outcome="next"
                      target="Page 3"/>
     <transition     outcome="previous"
                      target="Page 1"/>
   </view>

like autcome="*" -> does exist any possibility


second:

while using tiles i got a problem with the dialog manager!

eg. in shale use cases the edit dialog form:

everything defined there is handled by profile$edit aka
org.apache.shale.usecases.profile.EditProfileActions

if i try to rebuilt this - exception -> no contextloader...

i have to define for every step buy1 ... buyX an separate managed bean
and tiles entry
tiles entry is logic, but also a managed bean...

or what happens if i define:

        <managed-bean>
                <managed-bean-name>buy1</managed-bean-name>
                <managed-bean-class>
                        de.fhb.ShaleTest.Buy
                </managed-bean-class>
                <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>

        <managed-bean>
                <managed-bean-name>buy2</managed-bean-name>
                <managed-bean-class>
                        de.fhb.ShaleTest.Buy
                </managed-bean-class>
                <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>

is this possible or nonkonform...

thx for help

stephan

Reply via email to