Hi,
I'm using the Echo2 File Transfer Library in order to provide a file upload to my webapp but I would like to use the Echo3 File Transfer Library due to it supports a MultipleUploadSelect and provides feedback to users about the percentage of the upload.
I'm wondering if there is a backported version of this new Echo3 Library that can be used in Echo2.
Do you have this new library available for Echo2?
If not, is it possible to do that? Does the new library make use of new functionalities that are only available in Echo3 and not in Echo2?
Thanks,
Guillermo
help
Does anyone know something about this?
I think it would be
I think it would be possible. You would have to rewrite it from scratch, as it uses a lot of the new functionality provided by echo3.
UserInstance changes
I looked at the code and it seems that it couldn't be migrated due to a new method
http://echo.nextapp.com/content/echo3/doc/3.0/api/public/webcontainer/nextapp/echo/webcontainer/UserInstance.html#getClientRenderId%28nextapp.echo.app.Component%29
Do you know if there is a way to get the serviceURI without using this method?
This method is used in following class AbstractUploadSelectPeer:
/** * @see nextapp.echo.webcontainer.AbstractComponentSynchronizePeer#getOutputProperty(nextapp.echo.app.util.Context, * nextapp.echo.app.Component, java.lang.String, int) */ public Object getOutputProperty(Context context, Component component, String propertyName, int propertyIndex) { if ("receiver".equals(propertyName)) { UserInstance userInstance = (UserInstance) context.get(UserInstance.class); return userInstance.getServiceUri(UploadReceiverService.INSTANCE, RECEIVER_PARAMETERS, new String[]{ userInstance.getClientRenderId(component)}); } else if ("monitor".equals(propertyName)) { UserInstance userInstance = (UserInstance) context.get(UserInstance.class); return userInstance.getServiceUri(UploadMonitorService.INSTANCE); } else { return super.getOutputProperty(context, component, propertyName, propertyIndex); } }Thanks