Dojo and Java EE

I attended JavaOne last year and was very interested in the modification the Blueprints team made to the Petstore demo. To that end, we have been working a little bit with the Dojo library and integrating it with our Java EE application. Through this effort we have become aware of some issues properly handling the browser's back button (more specifically Safari). Essentially, when the back button is pressed, the resulting page does not contain the updated data. To that point, we have learned that this is a common problem and the root seems to be a deficiency with the Safari browser.

We have not been able to identify a reasonable solution to handle that functionality correctly and it places the viability of using Dojo with our applications in jeopardy. So, if I may, I would like to ask if anyone has considered this issue and if so, how have you addressed it?

Any insight you could provide would be appreciated.

Fran Varin, M.S.

Sr. IT Architect

Amica Mutual Insurance Company

[1026 byte] By [F_Varina] at [2007-11-26 14:33:50]
# 1

I thought Dojo already supported the back/forward button and found this:

http://archive.dojotoolkit.org/nightly/tests/undo/test_browser_bookmark.html .

Anyway, we need to create a "stack" for back and looks like it still

has a problem with Safari, but at least back buttom seems working.

yutaa at 2007-7-8 2:29:47 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Hi Yuta, and others

Also, in current version of petstore we dealt with the back button issue a little bit (though we should look closer at it and make sure we have the expected behavior and design we want). For example, in the seller portion of the petstore, we have a sort of ajax multi-page form wizard that users fill out in order to upload an image file and upload met-info like the type and name of pet, plus allow some tagging and other data associated ith pet image file being uploaded. This "form wizard" keeps some of the data from each page in the wizard on the client in order to support a previous page button, right?

This "ajax form wizard" in seller portion of petstore has back button capabilities I believe so we do have an example of handling back button in some cases. Initially we used a dojo widget but that had some issues we we use some custom javascript of our own.

Can you describe how we handle back buttons in that case(I think you are the one who replaced the dojo ajax multi page wizard with our own custom ajax multipage wizard)?

Also, maybe we can look at other places in pestore where the back button issue should be addressed. Lets make sure our design is correct and we are handling the issue consistently since its a common issue in ajax apps.

Maybe we can spend some cycles and refactor petstore to handle some back button issues if they are not handled correctl now.

thx,

Sean

seanbrydona at 2007-7-8 2:29:47 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

Hi Fran,

did you ever get this question answered? I asked around and still am not sure if DOJO can handle this issue of back button sufficiently with Safari. I have received conflicting answers.

We need to look at this in our apps as well.

If you could share any information you learned, that would be great.

thanks,

Sean

seanbrydona at 2007-7-8 2:29:47 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...