--
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+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
don't think so. why do you needs to do that?
you can use the dashboard content edit to use different zul and class. fragment can be used to contribute zul file as well.
to know what "objects" can be customized without touching the core.
it seems that fragment could be used for theme ,zul files.
I need to study the difference between a plugin and a fragment.
BTW, we made some very specific customization to trees on adempiere swingUI (which uses new tables and model classes).
The goal is to have a view of data from childen tabs from the tree of the main tab.
I've integrated those classes in a plugin and now i'm customizing webUI trees (MTree, ADTreePanel, ...).
But, as those trees have to use new classes, i need to move them from the plugin to the core ? Because i can't a way to call a plugin class from the core classes ?
You received this message because you are subscribed to a topic in the Google Groups "iDempiere" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/idempiere/VN7YpJH0jBM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to idempiere+...@googlegroups.com.
That's what i feared.
Until now, i used plugins for process, callout, model classes, theme and it was just fantastic !
Will be hard to use the 'old way' again. But seems that there is no other solutions :(
Regards
That's what i have done.
So now, my customization are located in 3 places :
- org.adempiere.ui / org.adempiere.ui.zk : new tables needed by in core classes
- a plugin : devCommon with callout, process, new tables, ...
- a fragment : devCustomUiZk : contains a custom theme and a new dashboard:
- devCustomUiZk/src/org/adempiere/webui/dashboard/DPActivities_Tgi.java
- theme\expertWebLight\ css ; images ; zul
- zul\activities_Tgi.zul
All works perfectly within Eclipse.
But when i try to put the fragment on my idempiere instance, it fails.
Seems like the fragment is not correctly installed.
I can't access the login page ; error : Page not found: /theme/expertWebLight/zul/login/login.zul
And if i return to the default theme (using ZK_THEME), i can login but can't see the new dashboard.
Log says :
10:32:16.856-----------> DashboardController.render: Failed to create components. zul=/zul/activitie
s_Tgi.zul [18]
org.zkoss.zk.ui.UiException: Page not found: /zul/activities_Tgi.zul
at org.zkoss.zk.ui.http.ExecutionImpl.getPageDefinition(ExecutionImpl.java:371)
at org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:246)
at org.zkoss.zk.ui.impl.AbstractExecution.createComponents(AbstractExecution.java:238)
at org.zkoss.zk.ui.Executions.createComponents(Executions.java:179)
at org.adempiere.webui.desktop.DashboardController.render(DashboardController.java:317)
at org.adempiere.webui.desktop.DefaultDesktop.renderHomeTab(DefaultDesktop.java:279)
at org.adempiere.webui.desktop.DefaultDesktop.access$3(DefaultDesktop.java:272)
at org.adempiere.webui.desktop.DefaultDesktop$5$1.updateUI(DefaultDesktop.java:244)
at org.adempiere.webui.util.ServerPushTemplate$1.onEvent(ServerPushTemplate.java:55)
at org.zkoss.zk.ui.impl.DesktopImpl$ScheduleInfo.invoke(DesktopImpl.java:1551)
at org.zkoss.zk.ui.impl.DesktopImpl$ScheduleInfo.access$1100(DesktopImpl.java:1543)
at org.zkoss.zk.ui.impl.DesktopImpl$ScheduleListener.onEvent(DesktopImpl.java:1566)
at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2742)
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2713)
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2654)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1717)
at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1502)
at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1212)
at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600)
at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:482)
The MANIFEST.MF of devCustomUiZk :
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: devCustomUiZk
Bundle-SymbolicName: devCustomUiZk;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: .,
zul/,
theme/
Fragment-Host: org.adempiere.ui.zk;bundle-version="1.0.0"
Export-Package: org.adempiere.webui.dashboard;version="1.0.0.qualifier"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: org.tgi.alfresco
Bundle-Vendor: T.G.I.
For exporting it, i'm using a feature (devCustomUiZkFeature) ; here's the feature.xml :
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="devCustomUiZkFeature"
label="DevCustomUiZkFeature"
version="1.0.0.qualifier"
provider-name="T.G.I.">
<description url="http://www.example.com/description">
bla bla bla
</description>
<copyright url="http://www.example.com/copyright">
[Enter Copyright Description here.]
</copyright>
<license url="http://www.example.com/license">
[Enter License Description here.]
</license>
<requires>
<import plugin="org.adempiere.ui.zk" version="1.0.0" match="greaterOrEqual"/>
</requires>
<plugin
id="devCustomUiZk"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"/>
</feature>
It generates a devCustomUiZk_1.0.0.<timestamp>.jar that i put in the idempiere instance using Felix console.
Its status is 'installed'.
Any ideas where to look ?
Thanks,
Nicolas
I'm using the Export Wizard from Eclipse (to a directory).
Then i copy the generated files and directories on the server (/opt/iDempiere/p2)
There, i have :
/opt/iDempiere/p2
- features
- devCustomUiZlFeature_1.0.0.201305281248
- plugins
- devCustomUiZk_1.0.0.201305281248
- artifacts.jar
- content.jar
Should i do it differently ?
Ooops... the id was devCustomUiZlFeature
I've corrected this and now, scripts can be applied.
So, now i can install devCommon and devCustomUiZk using "my" update.sh
>>
Installing xxx.feature.group 1.0.0.201305311127.
Operation completed in 8522 ms.
but the status is still 'Installed' for the fragment devCustomUiZk :(
I notice also that i had to start devCommon manually through Felix (whereas it started automatically when installing with Felix).
Any idea ?
Thanks,
Nicolas
have you try installing the fragment using the p2 approach ? Just wondering whether the refresh is needed if installation is done through p2.