Hi Rahul,
the message / literal for "Login.4" return the method "success" !
i implemented the "dataClassName" in my <dialog> and the code work.
but now i get a new problem. i do like so: my aim is to get the Field input
data from jsp
via shale Dialog "dataClassName" and store the input data (user, pass) using
hibernate like this(only if the user submit finish).

public String finish ()
    {
                                final FacesContext context =
FacesContext.getCurrentInstance();
                final DialogContext dcontext = 
DialogHelper.getDialogContext(context);
                final logindata currentuser = (logindata) dcontext.getData();

                Configuration config = new 
Configuration().addClass(logindata.class);
                SessionFactory factory = config.buildSessionFactory();
                // get a session
                Session sess = factory.openSession();

                Transaction t = sess.beginTransaction();
                sess.saveOrUpdate(currentuser);
                t.commit();
                sess.close();
        return Messages.getString("Login.1");//finished
}
and her are my console output

bad output:Cannot find transition 'success' for state 'main' of dialog
'logon'
good output:org.hibernate.cfg.Configuration addClass
bO:Error calling action method of component with id form:finish
Exception while invoking expression #{login.finish}

any Idea Rahul


Rahul Akolkar wrote:
> 
> On 4/7/07, samju <[EMAIL PROTECTED]> wrote:
>>
>> hi,
>> i am new to Shale and need some help!
>> i got this error "Cannot find transition
>> 'org.apache.shale.dialog.basic.START_OUTCOME' for state 'activateLog' of
>> dialog 'logon' "
>>
>> what ii have:
>> <h:commandLink id="logindialog" action="dialog:logon">
>>
>> <dialog  name="logon"
>>              start="activateLog">
>>       <action      name="activateLog"
>>                        method="#{login.activateLog}">
>>         <transition   outcome="success"
>>                        target="main"/>
>>       </action>
>> the appropriate <View> and the <end> tag
>> </dialog>
>>
>>  public String activateLog()
>>     {
>>          FacesContext context = FacesContext.getCurrentInstance();
>>          DialogContext dcontext = DialogHelper.getDialogContext(context);
>>
>>          logindata currentuser =(logindata)dcontext.getData();
>>          //only test
>>          currentuser.setUser(Messages.getString("Login.2"));
>>          currentuser.setPass(Messages.getString("Login.3"));
>>         return Messages.getString("Login.4");
>>
>>     }
>>
>> what i am missed to implement?
> <snip/>
> 
> Whats the message / literal for "Login.4" ? Does the method return
> "success" ?
> 
> -Rahul
> 
> 
>> Thanks in advance
>> sam
>> --
>> View this message in context:
>> http://www.nabble.com/Dialog-transition-outcome-tf3540140.html#a9882207
>> Sent from the Shale - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dialog-transition-outcome-tf3540140.html#a9955015
Sent from the Shale - User mailing list archive at Nabble.com.

Reply via email to