org.zkoss.zk.library empty

465 views
Skip to first unread message

Hermawan Heri

unread,
Feb 23, 2017, 4:08:27 AM2/23/17
to iDempiere
Hi All,

I just clone idempiere.
but org.zkoss.zk.library folder is empty?
so I can't add a plug-in

Can anyone help me?

Thanks.

Heri H

Carlos Antonio Ruiz Gomez

unread,
Feb 23, 2017, 4:18:14 AM2/23/17
to idem...@googlegroups.com
Heri, the zk libraries were moved to targetPlatform.

You need to change your plugins referencing the org.zkoss.zk.library to reference the plugins, like here:
https://bitbucket.org/druiz/kdb_idempiere/commits/935963e

Regards,

Carlos Ruiz


El 23/02/17 a las 10:08, Hermawan Heri escribió:

Rheine Adithia

unread,
Aug 2, 2017, 6:10:38 AM8/2/17
to iDempiere
can you tell me which manifest in which package i need to modify??
is this why i cant use any zkoss related function in my iDempiere project??

sorry im a newbie at java and idempiere. im using the 4.1 iDempiere that i downloaded from 
hg clone https://bitbucket.org/idempiere/idempiere 

Regards,
Rheine Adithia

Luis Amesty

unread,
Aug 2, 2017, 1:06:20 PM8/2/17
to iDempiere
I understood from Carlos, that plugin dependencies on org.adempiere.ui.zk  is like imaged attached shows.
An you have to include then on any plugin that requires ZK 8.0 Library
Manifest file on Text View looks like:

Require-Bundle: org.adempiere.base;bundle-version="4.1.0",

 org.adempiere.ui;bundle-version="0.0.0",

 org.idempiere.zk.extra;bundle-version="0.0.0",

 zcommon;bundle-version="0.0.0",

 zel;bundle-version="8.0.1",

 zhtml;bundle-version="8.0.1",

 zk;bundle-version="0.0.0",

 zkbind;bundle-version="0.0.0",

 zkplus;bundle-version="8.0.1",

 zul;bundle-version="8.0.1",

 zweb;bundle-version="8.0.1",

 org.junit;bundle-version="4.12.0",

 org.apache.commons.io;bundle-version="2.2.0",

 com.itextpdf;bundle-version="5.5.10",

 org.atmosphere.runtime;bundle-version="0.0.0"



Captura de pantalla 2017-08-02 a la(s) 1.04.23 p. m..png

Luis Amesty

unread,
Aug 2, 2017, 1:11:42 PM8/2/17
to iDempiere
Carlos 
i have a question on ZK 8.0.
I put some ZK Forms on idempiere versions 2.1 and 3.1, on my plugins, and they have incompatibility formats on Text and Label object on Idempiere 4.1, because of ZK 8.0.
I have to make a lot of modifications on code to be compatible with ZK 8.0
Is there a short cut to overcome this ?

Hiep Lq

unread,
Aug 2, 2017, 2:00:20 PM8/2/17
to Mohemmed Bilal Ilyas
you can see what's change relate update to zk8 on bitbucket.
i remember isn't much things change.

have more things change when update to zk7, so it's worth to also review it.

or you can reference this guideline.
https://www.zkoss.org/wiki/ZK%20Style%20Customization%20Guide/Upgrade%20Customized%20Style%20From%20other%20ZK%20Version/Upgrade%20From%20ZK%206.5

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/c4e3e844-0397-466b-9bf9-32accbc72ebf%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam

Hiep Lq

unread,
Aug 2, 2017, 2:03:10 PM8/2/17
to Mohemmed Bilal Ilyas
On Wed, Aug 2, 2017 at 5:10 PM, Rheine Adithia <rheine...@gmail.com> wrote:
can you tell me which manifest in which package i need to modify??
is this why i cant use any zkoss related function in my iDempiere project??

how you use "zkoss related function in my iDempiere project"?
 

sorry im a newbie at java and idempiere. im using the 4.1 iDempiere that i downloaded from 
Regards,
Rheine Adithia

On Thursday, February 23, 2017 at 4:18:14 PM UTC+7, Carlos Antonio Ruiz Gómez wrote:
Heri, the zk libraries were moved to targetPlatform.

You need to change your plugins referencing the org.zkoss.zk.library to reference the plugins, like here:
https://bitbucket.org/druiz/kdb_idempiere/commits/935963e

Regards,

Carlos Ruiz


El 23/02/17 a las 10:08, Hermawan Heri escribió:
Hi All,

I just clone idempiere.
but org.zkoss.zk.library folder is empty?
so I can't add a plug-in

Can anyone help me?

Thanks.

Heri H

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Rheine Adithia

unread,
Aug 2, 2017, 9:29:30 PM8/2/17
to iDempiere
So currently im learning how to make a custom form in iDempiere using this link :
https://www.youtube.com/watch?v=KMSs8eoXo4o&spfreload=5

and it works fine if i add a label into the custom form. 
but when i try to add a textbox that was imported from org.zkoss.zul.Textbox it started giving me errors.

this line of code gave me an error saying "No Exception of type WrongValueException can be thrown; an exception type must be a subclass of Throwable" :
try {
 temp
= c.getText();
 
} catch (WrongValueException e) {
 
// TODO Auto-generated catch block
 e
.printStackTrace();
 
}

so with my deductive reasoning skill, i think i never declared what is WrongValueException class, so the compiler is confused with this term (?)
but when i trace the WrongValueException it goes to the "Source not found" page. the textbox class is giving me "Source not found" page too.
is this caused by the problem that was discussed on this topic?


Regards,
Rheine Adithia

On Thursday, August 3, 2017 at 1:03:10 AM UTC+7, Hiep Lq wrote:

On Wed, Aug 2, 2017 at 5:10 PM, Rheine Adithia <rheine...@gmail.com> wrote:
can you tell me which manifest in which package i need to modify??
is this why i cant use any zkoss related function in my iDempiere project??

how you use "zkoss related function in my iDempiere project"?
 

sorry im a newbie at java and idempiere. im using the 4.1 iDempiere that i downloaded from 
Regards,
Rheine Adithia



Rheine Adithia

unread,
Aug 2, 2017, 9:34:45 PM8/2/17
to iDempiere
it shows "0.0.0" on everysingle line.. do i change the non-highlighted line with the one you pasted??
Require-Bundle: org.adempiere.base;bundle-version="0.0.0",

 org
.adempiere.ui;bundle-version="0.0.0",
 org
.idempiere.zk.extra;bundle-version="0.0.0",
 zcommon
;bundle-version="0.0.0",

 zel
;bundle-version="0.0.0",
 zhtml
;bundle-version="0.0.0",

 zk
;bundle-version="0.0.0",
 zkbind
;bundle-version="0.0.0",

 zkplus
;bundle-version="0.0.0",
 zul
;bundle-version="0.0.0",
 zweb
;bundle-version="0.0.0",
 org
.junit;bundle-version="0.0.0",
 org
.apache.commons.io;bundle-version="0.0.0",
 com
.itextpdf;bundle-version="0.0.0",
 org
.atmosphere.runtime;bundle-version="0.0.0"

Best Regards,
Rheine Adithia 

Luis Amesty

unread,
Aug 4, 2017, 8:04:26 AM8/4/17
to iDempiere
TWO CASES
1. On 4.1 Your ZKUpdateUtil Class

/**

 * @author hieplq

 *

 */

public class ZKUpdateUtil {

public static void setHeight (HtmlBasedComponent comp, String value){

if (comp.getVflex() != null)

comp.setVflex(null);

comp.setHeight(value);

}

...


You have to Change on all Forms that i use for instance Text Object

Text Variable (txtPostal)

// OLD MODE

txtPostal.setHflex("1");

// NEW MODE

ZKUpdateUtil.setHflex(txtPostal, "1");



2. ANOTHER CASE is setValue method


fieldDescription.setValue(getProductDescription(getSelectedProductId(), Env.getAD_Client_ID(Env.getCtx()), getSelectedOrgID(), 

getSelectedDateFrom() , getSelectedDateTo()));

in this case Java is telling me to surround by try catch, but still having error.

try {

fieldDescription.setValue(getProductDescription(getSelectedProductId(), Env.getAD_Client_ID(Env.getCtx()), getSelectedOrgID(), 

getSelectedDateFrom() , getSelectedDateTo()));

} catch (Exception e) {

// TODO Auto-generated catch block

e.printStackTrace();

}


Minh Phạm Văn

unread,
Aug 7, 2017, 6:53:23 AM8/7/17
to iDempiere
Please, try to change your MANIFEST.MF in plugin like this:

Require-Bundle: org.adempiere.base;bundle-version="0.0.0",
 org.adempiere.ui;bundle-version="0.0.0",
 org.idempiere.zk.extra;bundle-version="0.0.0",
 zcommon;bundle-version="0.0.0",
 zel;bundle-version="0.0.0",
 zhtml;bundle-version="0.0.0",
 zk;bundle-version="0.0.0",
 zkbind;bundle-version="0.0.0",
 zkplus;bundle-version="0.0.0",
 zul;bundle-version="0.0.0",
 zweb;bundle-version="0.0.0",
 org.adempiere.ui.zk,
 org.adempiere.plugin.utils;bundle-version="4.1.0",

Vào 08:29:30 UTC+7 Thứ Năm, ngày 03 tháng 8 năm 2017, Rheine Adithia đã viết:
Reply all
Reply to author
Forward
0 new messages