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 11-27-2007, 11:15 AM
Intermediate Member
 
Posts: 17
Default Behaviour of Zimlets with Zimbra 5.0

Hello,

I am trying to develop Zimlets using Zimbra 5.0 . I have noticed the following behaviour that makes for me the development quite difficult:

When you deploy a Zimlet via the administration console (usually on port 7071), everything goes fine. Ok, I notice I have some bug in my Zimlet, then I undeploy it via the console. Ok, this also goes fine. But yet, wait, when I start Firebug against the running Zimbra client, I see in script Zimlet-nodev_all.js.zgz still the code of the Javascript code of the undeployed Zimlet.

Is this behaviour normal? You undeploy a Zimlet and you still see have the "dead" code on the client? Is this a feature?

What is the best strategy to develop Zimlets under Zimbra 5.0 . Is there some configuration options I should turn on? Which is the strategy you can use to develop Zimlets in a confortable way under Zimbra 5.0? Any idea ...?

Kind regards,

Gil Fernandes
Reply With Quote
  #2 (permalink)  
Old 11-27-2007, 12:14 PM
Moderator
 
Posts: 6,237
Default

Welcome to the forums,

First I would suggest using a test box where you can restart jetty.
You can append &dev=1 which forces the zimlet source files to load separately. But while this eliminates the modular loading, caching, and also the minimization, it does change the overall behavior.
I believe you can also increment the version in the xml file but I personally don't.
Note: There is a known issue with the _dev folder not working ZimletWritingTip - Zimbra :: Wiki
(Bug 19944 - Dev deployment of zimlets doesn't work is one of them)

Last edited by mmorse; 11-27-2007 at 12:39 PM..
Reply With Quote
  #3 (permalink)  
Old 11-27-2007, 12:38 PM
Intermediate Member
 
Posts: 17
Default

Great !

When I try dev=1, then I see in Firebug each one of the scripts. This is a big help already.
Concerning restart of jetty, I already am running a test box on which I can restart it at any time. Yet I do not know how to restart it. I must confess I am a newbie to Jetty. How do you do it?

Thanks for the valuable suggestion, Mike,

Gil
Reply With Quote
  #4 (permalink)  
Old 11-27-2007, 12:43 PM
Moderator
 
Posts: 6,237
Default

su zimbra
zmmailboxdctl restart
Reply With Quote
  #5 (permalink)  
Old 11-27-2007, 12:58 PM
Former Zimbran
 
Posts: 5,606
Default

File a bug. &dev=1 isn't meant to be run all the time, and makes Zimbra much slower.

This is likely related to lazy loading.
Reply With Quote
  #6 (permalink)  
Old 11-27-2007, 06:42 PM
Zimlet Guru & Moderator
 
Posts: 467
Default

Quote:
Originally Posted by jholder View Post
File a bug. &dev=1 isn't meant to be run all the time, and makes Zimbra much slower.

This is likely related to lazy loading.
I am going to try and duplicate this behavior.
Reply With Quote
  #7 (permalink)  
Old 01-09-2008, 07:52 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

Comment for Gil: I have this behavior too. When I undeploy a zimlet, the zimlet is not activated anymore but files are not removed. Is this normal?

PS : It is not only in 5.0, me I had it on 4.5
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.