After a good day spent on writing my zimlet with plenty of satisfaction, I faced the same behavior as u268 and code0 just described here.
Therefore I fgrepped through all known existing zimlet source codes to get an idea on where I was mistaking but alas, none of the implementations works here!
I tried the following ways (all found around, zimlet draft included - BTW how come we've got so many different modes in the shipped zimlets??!?!):
1- the official one: ${src.objectContent}
2- the wikipedia/bugz way ( ${src.$1} ):
Code:
<param name="search">${src.$1}</param> 3- amazon Zimlet ( ${objectContent} ):
Code:
<actionUrl target="http://www.amazon.com/exec/obidos/external-search/002-8747903-2137627?field-keywords=${objectContent}&sourceid=Zimbra"/> Keep in mind that I am not testing via _dev dir anymore, I fully deployed via the zmzimletctl facility.
My tests (collects whatever found above, and more - everything else works)
Code:
<contentObject type="phone">
<matchOn>
<regex attrs="ig">^([0-9]*\-?\ ?\/?[0-9]*)$</regex>
</matchOn>
<contextMenu>
<menuItem label="Chiama src.objectContent ${src.objectContent}" icon="Telephone" id="CALL_JSP">
<canvas type="window" title="Panel" width="600" height="600" />
<actionUrl target="/service/zimlet/it_open1_phone/phone.jsp">
<param name="dial_second">${src.objectContent}</param>
</actionUrl>
</menuItem>
<menuItem label="Chiama obj.objectContent ${obj.objectContent}" icon="Telephone" id="CALL_JSP2">
<canvas type="window" title="Panel" width="600" height="600" />
<actionUrl target="/service/zimlet/it_open1_phone/phone.jsp">
<param name="dial_second">${obj.objectContent}</param>
</actionUrl>
</menuItem>
<menuItem label="Chiama objectContent ${objectContent}" icon="Telephone" id="CALL_JSP3">
<canvas type="window" title="Panel" width="600" height="600" />
<actionUrl target="/service/zimlet/it_open1_phone/phone.jsp">
<param name="dial_second">${objectContent}</param>
</actionUrl>
</menuItem>
<menuItem label="Aggiungi ai contatti" icon="NewContact" id="ADDCONTACT"/>
</contextMenu>
</contentObject> Whatta.... :-(
P.S. During these hours of work I am keeping track of my findings, including wrong things in the draft, shortcuts for faster deployment, what works and what doesn't by usign the _dev dir, and so on. Hope I'll get some feedback from you guys.. ;-)
P.P.S. I am sooo tired working with this stuff (7 days +/-)! I wanna get back to VDCs, sysAdministration, clustering labs....!!! Gosh!