Re: [Rife-users] How to use Rife for file download?

2006-10-25 Thread Emmanuel Okyere

you lost me at the "send down a file" bit

On 10/26/06, ying lcs <[EMAIL PROTECTED]> wrote:

Hi,

I am trying to write a Java web app using Rife.
So i need a page which takes some info from user and it has a submit button.
If the validation of the info entered by user is correct, the web app
will send down a file.

How can I do that with Rife?

Thank you.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
+44.790.449.0207 (London, NW10)

rife -- http://rifers.org/
blog -- http://eokyere.blogspot.com/
rife training -- http://rifers.org/training

Malcolm Forbes - "Failure is success if we learn from it."
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


[Rife-users] How to use Rife for file download?

2006-10-25 Thread ying lcs

Hi,

I am trying to write a Java web app using Rife.
So i need a page which takes some info from user and it has a submit button.
If the validation of the info entered by user is correct, the web app
will send down a file.

How can I do that with Rife?

Thank you.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


[Rife-users] RIFE With Maven Tip Added To Wiki

2006-10-25 Thread Jeremy Whitlock
Hi All,    I have created a wiki for how to use RIFE in a Maven-built application.  It is located here:http://rifers.org/wiki/display/RIFE/Using+RIFE+In+Maven-Built+Applications
Please feel free to update as you feel the need and I hope it benefits someone besides me.Take care,Jeremy
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] puzzled by call()/answer() and passing back state information from answerer to caller

2006-10-25 Thread Geert Bevin

Hi John,

an element is not reinitialized when continuations are used, you  
continue using the same instance of the element. To get data from the  
slave to the master, simply provide it as an argument to the answer()  
method and it with be available as the return value of the master's  
call() method.


Hope this helps.

Geert

On 24 Oct 2006, at 00:33, John Lukar wrote:



Hi there all..

I have a problem pertaining to call() and answer().  I have the  
following:


MasterElement{

 initialize() {
 localVar = getInput("someVarFromExternalUrlLinkCaller");
 getDBStuffUsingVar (localVar );
}

processElement() {
if ( hasSubmission("form1") {
 setOutput("passVar1" , MasterElement.getLocalVar() );
 call("slaveElement1");
}
}


My problem is that once "answer" comes back from "slaveElement1",  
the initizlie() method does not have the input variable:   
someVarFromExternalUrlLinkCaller.


I tried defining output parameters in the slaveElement1  processing  
forms:
  and then inside  
slaveElement1  I   setOutput 
("someVarFromExternalUrlLinkCaller", .)


but it seems that this does not work.  The MasterElement.initialize  
()  does not get back any definined input parameter from the  
callback slaveElement1.


Even moving the code from MasterElement.initialize() to  
MasterElement.processElement()   still leaves me with the problem  
of not having the Input:  someVarFromExternalUrlLinkCaller.


I played around with Object obj = call("slaveElment1")  but I  
am still left with a problem of not being to maintian the value of  
someVarFromExternalUrlLinkCaller  across  one invocation of  
MasterElement to the next.


any ideas how to tackle this ?


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users