I'm working on a simple dialog using the new sandbox stuff for the
shale-petstore app.  I have a command link that launches the dialog
but I don't want to show it once the dialog is in progress (there's no
need - since we are already in the dialog.)

I discovered the following little trick that works nicely:

<h:commandLink action="dialog2:Checkout" rendered="#{empty
requestScope.dialog2}">Checkout</h:commandLink>

One side effect of this is that the link will be hidden if *any*
dialog is in progress - not just the Checkout dialog.  Maybe I'll
write a facelet function that can check for whether or not a specific
dialog is ongoing.

My dialog doesn't have any action states yet.  I'm going to start
testing that stuff shortly.

Sean

Reply via email to