Forum OpenACS Development: template::forward and the 2,083 IE limit
Has anyone had similar problems or any success with this problem?
You might want to look into session variables for passing larger chunks of stuff from page to page. The APM does this if you're looking for an example.
I think Don's suggestion is what you need. On the project that I used the wizard I created a package similar to ad_set/get_client_property.
Although I am not sure how you have surpassed 2,000 get url chars easily. We have a 4 level wizard and also pass around the wizard url as return url. We haven't reached that 2,000 char limit yet. Although most of our forms also a lot of processing already. We just normally pass object_id, setting_id, etc.
Either you use ad_set/get_client_property or save the stuff you did in a temp table or row while in the wizard steps.
Either approach will work, it will depend on what you are doing.
So I set out on using user session variables and decided that perhaps some things might make using these variables a little easier in the toolkit.
Instead of allowing template::forward to only use ad_returnredirect (which could, and does, ultimately break the IE character limit of 2,083) I thought a procedure such as ad_cache_returnredirect would help those pages using the the templating system (those that wanted to) cache values between pages of a package for a user's session (see http://openacs.org/bugtracker/openacs/patch?patch_number=237 and http://openacs.org/bugtracker/openacs/patch?patch_number=239). This procedure still uses ad_returnredirect with any variables excluded after values are cached.
Having a "cached" key and filter in ad_page_contract could help a page retrieve those values that it expects *may* be in cache for the calling page and package, and allows all other filters to still act accordingly (see http://openacs.org/bugtracker/openacs/patch?patch_number=238).
This has eliminated the IE character limit for us, and seems to make session variables much easier to work with.
These are really very good additions. I will add them in to the wizard once they have accepted the patches.
I hope Brad's patches be accepted. They are really good additions. Thanks.
Any chance these changes and Jun's wizard might make it in the toolkit? Thanks!