-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4216926
By: amrisofien
when use other type of file then zul or zhtml ( in other project).
first, t use this exp:
<form action="/updateProfile" xmlns:x="http://www.zkoss.org/2005/zul">
<table>
<tr>
<td>Firt Name</td>
<td><input type="text" name="firstName" value="a1"/></td>
</tr>
<tr>
<td>Last Name</td>
<td><input type="text" name="lastName" value="a2"/></td>
</tr>
<tr>
<td>Title</td>
<td><x:combobox name="title" value="cc"/></td>
</tr>
<tr>
<td>Role</td>
<td>
<x:listbox name="role">
<x:listitem value="1"
selected="ss" label="Determine need"/>
<x:listitem value="2"
selected="ss" label="Evaluate products/sesrvices"/>
<x:listitem value="3"
selected="ss" label="Recommend products/sesrvices"/> </x:listbox>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="Update"/>
<input type="reset"/>
</td>
</tr>
</table>
</form>
but the result page give me the interface without ajax. that wants to say that this line:
xmlns:x="http://www.zkoss.org/2005/zul"
is desable.
what is the problem.
thank you
amrisofien
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4218039
By: robbiecheng
Try to change file extention from .html to .zhtml or ZK loader won't catch this page.
/robbie
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4219038
By: amrisofien
i start ( a the beginig) with .zk, or .ftl file extention, but there is not ajax appearance.
I must you specify that I tested this example in a simple project ( simple tomcat and the necessar .jar of zk), and no problem.
but in another project which uses others frameworks, the posting of ajax is stopped ( wen it arrive to the namesapces ajax, stopped).
thank you.
amrisofien.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4219135
By: michel-2
i find this in the controller.xml file ( into the project).
<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd">
perhaps this is the problem.
amrisofien
Amrisofien,
Were you able to integrate ZK with ftl in ofBiz? I would like to re-use ofBiz's decorator screens with header, menu and footer and use ZUL for only body/content.
i.e. I would like to <include src="/party/editPosMenu.zul"/> in an ftl file and have ofBiz render ZUL files.
I would like to incluse ZUL file in say partyscreens.xml file as below.
<screen name="ViewDevices"> <section> <actions> <set field="titleProperty" value="ViewTerminals"/> <set field="tabButtonItem" value="TerminalDetails"/> <set field="headerItem" value="find"/> <script location="component://party/webapp/partymgr/WEB-INF/actions/party/viewDevices.bsh"/> <script location="component://party/webapp/partymgr/WEB-INF/actions/party/setPartyAttributes.bsh"/> </actions> <widgets> <decorator-screen name="TerminalCommonPartyDecorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> <platform-specific><b > <html> <html-template location="component://party/webapp/partymgr/party/updatePartyTerminalInfo.ftl"/> </html></b> </platform-specific> <platform-specific> <b ><html> <html-template location="component://party/webapp/partymgr/party/viewPosMenu.zul"/> </html></b> </platform-specific> </decorator-section> </decorator-screen> </widgets> </section> </screen>
Asked: 2007-03-20 17:59:10 +0800
Seen: 300 times
Last updated: Sep 20 '11