Works for me… I just implemented it like not 10minutes ago, can you show some more code as to why the variables before and the persist for nextevent and where you are using it.
first function
function addScores(event,rc)
{
rc.games=tournamentService.getGamesNoScore(event.getvalue(“tournamentid”,0),event.getvalue(“eventid”,0));
if (event.getValue(“submit”, “”) eq “Add Score”)
{
setNextEvent(event=“tournament.addGameScore”,persist=“tournamentID,gameid,eventID”);
};
Event.setValue(“header”, “Add Scores”);
Event.setView(“tournamentAdmin/addscores”);
}
if I do a writedump(rc); prior to the setNextEvent I can see all three vars that I am trying to perist.
if I do this in in the addgamescore function the only thing I get in the dump is the event. No persisted vars.
function addGameScore(event,rc)
{
writedump(rc);
abort;
Neither of those are working on this app. Strange. One difference between this app and my test app is that the one that isn’t working is using an SSL interceptor.
I am not using SSL on mine and this is what I do for messagebox
messageBox.setMessage(type=‘info’, message=‘Some message to display on failed form entry.’);
setNextEvent(event=‘general.redoyourform’, persist=“messageBox”);
Never had to do anything with RC though, but is there a reason you are doing setNextEVent() instead of just calling
addGameScore(event) I assume both methods are in the same handler?
You might need to also pass rc. prc as well, I am not using either but I noticed that you are using rc this way.
The only reason I do it is to save on a http request, but if you want the user to know what the URL is going to, then the way you are doing it is fine.
Just remember to pass the same arguments as your handler, so in your case you might have to do.
addGameScore(event, rc);
Once this is called then, ColdBOx treats it as if the handler was passed through the URL, which in this case actually wasn’t.
I understand that. Both of these are SSL. It’s not a ssl to non-ssl scenario. It works no-ssl to no-ssl. Just not ssl to ssl.
I think somehow the interceptor is dropping it.
ok fixed it. What I realized what by not using the ssl=‘true’ option it was using not ssl then converting it back and thus loosing my perist variable because like you said it’s two different sessions. Thanks for giving me the thought.
kk, I couldn’t see anything in the code that cold be causing it. Admittedly I did browse it very quickly, sorry just don’t have the time to run any test cases to see it happening for myself.
Did you say that the older SSL interceptor actually worked? If that is the case any chance you can roll back or get a copy and do a compare on the two to see what differences there are?
Other than that I haven’t used the SSL intereceptor so I have no real suggestions there.