Re: URL to a dialog?

2007-02-06 Thread Paul Spencer

Craig,
The doc just ways add the the parameter the the url,  it does not say 
what the URL should be.


The following URL does work
http://foo.com/myApp/index.jsf?org.apache.shale.dialog.DIALOG_NAME=interview

1) The name of the page, index.jsf, is required but not appear to be 
used because the dialog is called and the page, index.jsf, is not displayed.


2) Is this a security hole?  Specifically some of my dialogs are called 
from protected pages  This allows the dialog to be called directly.  In 
case where the first state is an action state, then action is not 
protected unless the action protects itself!



Paul Spencer

 Craig McClanahan wrote:

On 2/5/07, Paul Spencer <[EMAIL PROTECTED]> wrote:


Shale 1.0.3+

I would like to start a dialog from a URL instead of an action.  If the
dialog is named "interview" and the base URL is foo.com/myApp, what is
URL?



In 1.0.4 there actually is a  way to do this ... add a request parameter
named "*org.apache.shale.dialog.DIALOG_NAME" that contains the name of the
dialog you wish to start. See the "Starting a DialogContext via URL
Parameters" section of the web docs[1] for more information on the 
options.*


Paul Spencer





Craig

[1] http://shale.apache.org/shale-dialog/





Re: URL to a dialog?

2007-02-05 Thread Craig McClanahan

On 2/5/07, Paul Spencer <[EMAIL PROTECTED]> wrote:


Shale 1.0.3+

I would like to start a dialog from a URL instead of an action.  If the
dialog is named "interview" and the base URL is foo.com/myApp, what is
URL?



In 1.0.4 there actually is a  way to do this ... add a request parameter
named "*org.apache.shale.dialog.DIALOG_NAME" that contains the name of the
dialog you wish to start. See the "Starting a DialogContext via URL
Parameters" section of the web docs[1] for more information on the options.*

Paul Spencer





Craig

[1] http://shale.apache.org/shale-dialog/


Re: URL to a dialog?

2007-02-05 Thread Rahul Akolkar

On 2/5/07, Paul Spencer <[EMAIL PROTECTED]> wrote:

Shale 1.0.3+

I would like to start a dialog from a URL instead of an action.  If the
dialog is named "interview" and the base URL is foo.com/myApp, what is URL?




With a bit of code it will be possible to either create a remoting
processor or possibly work with the Method Binding processor provided
out of the box by Shale Remoting, and leverage the programmatic
starting of dialogs here.

-Rahul



Paul Spencer



URL to a dialog?

2007-02-05 Thread Paul Spencer

Shale 1.0.3+

I would like to start a dialog from a URL instead of an action.  If the 
dialog is named "interview" and the base URL is foo.com/myApp, what is URL?


Paul Spencer