The CVS is updated with some FrameworkController changes that implement
the Post-Redirect-Get module (PRG).
In doing this you can also call the FrameworkController class with a Get
URL. It only requires 3 parameters, with one being optional for sessions.
http://localhost/index.rwf.php?rwfEventObject=index_r_wcTest&rwfEventType=Click&rwfSesMan=rwfPage87b2b328685c123464feb74a357991c9&rwfTime=e924f281550307b20d8a78fc9203de63
rwfEventObject and rwfEventType are the main parameters that send all
the events.
rwfSesMan is set by FrameworkController and all you have to do is add
RWF_GET_REPLACE_KEY into your custom URL and it will replace rwfSesMan,
rwfTime and rwfCurrentModule with FrameworkController values.
NOTE: rwfTime is there to get the URL salt so that the browser things
its a different call and makes the back button in teh browser work better
Ok its late so I probably wont explain this well. But if you use the
new Get URL it will not save the state of input fields, but this is the
normal web experience so most ppl dont care. I defaulted the Label with
Click event to use the new Get URL method and not do the normal rwfphp
rwfEventSubmission js call to send a Post. But in the future I'll make
it so you can set the Controls if you want to use the Get URL method
(stateless) or use the rwfEventSubmission js method. Of course the
Button control will not have this option and will always send the Post
method.
This gets us closer to making rwfphp less dependent on JS for the
plumbing, there are still a few html controls that need JS to get them
to mimic Application like functionality. Of course if you didn't want
to use that functionality rwfphp's JS dependency becomes much less.
We have also created some Code Helper classes that hopefully we can make
available some time soon.
Renaun
|