Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-28-2008, 05:39 AM
Member
 
Posts: 11
Default dropping multiple entities to zimlet

I have a JSP zimlet which accepts drag'n'drop of ZmContact.
When I drop multiple contact objects there at once zimbra merges them to one object. And those object properties comes in request to JSP merged like: name= fname1, fname2, fname3...; email=email1, email2, email3 and so on.

Is there any way to avoid this?
I want each dropped entity performed one request, then next dropped entity another request.

Any ideas?
Reply With Quote
  #2 (permalink)  
Old 03-03-2008, 06:03 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

I don't think there is any way to avoid this.
But you can still split the string with the "," char.
Reply With Quote
  #3 (permalink)  
Old 03-03-2008, 08:00 AM
Member
 
Posts: 11
Default

Don't think this will work since any fields may contain "," characters
Reply With Quote
  #4 (permalink)  
Old 03-03-2008, 08:40 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

The solution is to get only the id of the contact.
Since the basic request is done with GET method, it is very limited and you should not get any field that have unlimited lentgh by this method.
So just send the id of your contact to the jsp page and in the jsp you can get all the information you want about the contact with just the id.
You ll just have to look a little at zimbra source code to find how to get a contact by the id.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.