• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Applet + WO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applet + WO


  • Subject: Re: Applet + WO
  • From: Stephane Guyot <email@hidden>
  • Date: Sun, 21 Sep 2008 21:17:07 +0200


Shravan,

another way , if you don't use component , you avoid cache trouble.

Would it be difficult to extract the code ( used to receive for the uploaded file) in your component and put it in a DrectAction ?
With WOActionURL you can generate the url for the action for the Applet,
the Applet may upload files directly to a dedicated direction action, and then avoid to fill the cache ?
What did you have in your component that a direction action may needs and not have ?


HTH,
Stephane

PS : just an idea, but not sure a good idea ..




Le 21 sept. 08 à 20:52, shravan kumar a écrit :


Hello Stephane,

In our app, we have limit the page cache size to be 10. As a result not more than 10 files I was able to upload per click. I have tried increasing this size to 20, then I was able to upload not more than 20 files per click.

However, I do not see this as option for solution, as in our app, we do not have any upload limit, i.e., no limit on how many number of files can be uploaded per click.

I imagine some vague solution of replacing contextID in the URL of the final request with the new one. But was not sure of how to implement this/ is this the solution?

Thank You,
Shravan Kumar. M
-------------------------


--- On Sun, 9/21/08, Stephane Guyot <email@hidden> wrote:


From: Stephane Guyot <email@hidden>
Subject: Re: Applet + WO
To: "webobjects Development" <email@hidden>
Cc: email@hidden
Date: Sunday, September 21, 2008, 8:33 PM
Hi Shravan,

as far as I remember, "You Bactrack too far"
occurs when you have a
cachePageSize too small in your Application.
Default is 30, did you try to increase the size ?
You can try  100 ? 200 ...
Did you a limit for the upload ? How many files the user
may upload
in one click ?

Each time you upload a file with your component, a new
entry is put
in the cache with a new contextID, but it's the same
instance,

Only after all the photos are uploaded, then it
invokes another
action and then refreshes main page...

when you try  to refresh the main page, it's contextID
is no more in
the cache , and then backtrack too far :-(

For better solution, implement your  own caching management
via
session's api, like restorePageForContextID, savePage
...,
but the way to do that ,  is not clear in my mind anymore.

HTH,
Stephane


Le 21 sept. 08 à 06:40, shravan kumar a écrit :


Hello Group,

I have integrated a third party Applet tool called
Image Uploader
to our app. Integration was good and ImageUploader is
also designed
and functioning great.


This tool basically uploads files of different formats
at ease.

Lets say you have selected 20 files and clicked on
upload, app is
just uploading 10 files and then I receive "You
Have Backtracked
Too Far" error.
This tool basically, submits each file you are
uploading to the
server one by one ( based on config ), i.e., it
invokes the
WOComponent action processing this upload 20 times...
and during
these invocations the applet does not refresh the main
page where
this applet is embedded. Only after all the photos are
uploaded,
then it invokes another action and then refreshes main
page...

So, can any one suggest me, how to overcome this issue
in best
manner asap.

Thanks in advance.

Thank You,
Shravan



 _______________________________________________
Do not post admin requests to the list. They will be
ignored.
Webobjects-dev mailing list
(email@hidden)
Help/Unsubscribe/Update your Subscription:

email@hidden

This email sent to email@hidden







_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Applet + WO (From: shravan kumar <email@hidden>)

  • Prev by Date: Re: Applet + WO
  • Next by Date: Re: inter-instance communication ?
  • Previous by thread: Re: Applet + WO
  • Next by thread: Re: inter-instance communication ?
  • Index(es):
    • Date
    • Thread