cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Messing, Elad" <>
Subject AW: CFORMS validation unexplained behavior - call for help!
Date Thu, 09 Jun 2005 14:51:47 GMT
Hello again Reinhard 
	I have checked this issue again, this time with "print" statements as you offered, but in
the log I do see the request is not cached !

So - in the example, this is my form handling function :

function handleFormRestaurantMainSearch() {
	print("Start handling the rest form");
	var data = {restTypeList: getRestTypes()};

    var form = new Form("forms/restaurant_main_search.xml");
	print("Sending the form request");
    form.showForm("/template/forms/restaurant_main_search.xhtml", data);

    var model = form.getModel();
    var results = new Object();
    results.restaurants = getResraurantSearchResults(, model.type);
	print("Sending the request for results");
    cocoon.sendPage("/template/dynamic/restaurant_results.jx", { "results": results });

So I submit the form with error data, get the errors, then I correct the data, submit it,
and click the link to the Form page, I do see both lines in the log :
Start handling the rest form
Sending the form request  
And in the form , I see the field with the error data and the error message. This also happens
when I am opening a new browser ! I always get the form, with the in-valid data that I put
in and later corrected... Only restart for the web-server helps.

What am I doing wrong here ??

Thank you in advance


-----Urspr√ľngliche Nachricht-----
Von: Reinhard Poetz [] 
Gesendet: Mittwoch, 8. Juni 2005 09:46
Betreff: Re: CFORMS validation unexplained behavior - call for help!

Messing, Elad wrote:
> Thank you Reinhard, for you answer !
> I understand, so this is typical "Back" behavior. It makes sense.
> However - Still the 3rd issue I mentioned occurs:  
> "
>  And the third issue - When I am not using the "Back" button,  but 
> instead using the original "link" to the form page, I get other
>  results:
>  - I can see the form in the state it was after I entered a "too-short" 
>  string in the text field !! This is after I have already changed the  
> data to valid, submitted, got my results, and return to the form page  
> using its link 1 minute after.. I even get the results opening a new  
> browser window, in a different process. Only "restart" to the web  
> server removes it.
> "
> Is this cache as well ? This time - server cache ? Or maybe something else ? How can
I check it ?

Have a look at the log files or add some print() statements to your flowscript. 
I guess it's a caching problem too as you initialize the form correctly in a local variable.

(May you refrain from sending your mails as HTML mails. AFAIK there are some 
people that have problems with them.

Additionally my mail client has problems to  show your mails at the correct 
place in the thread tree which is very unconvenient. This can have two reasons: 
Either you don't answer directly and always create new mails or your mail client 
suppresses the according information in the mail header. Please try to change 
this. Thanks!)

Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message