I am trying to import a ZK file into ZK JET , but when I browsed and selected file to import nothing is happening . Is it because of security issues which I need to turn off.
↧
Cannot import a zul file into ZK JET
↧
display svg don't work
I'm working with richlet and I'm trying to display an svg file but it look like Zk don't handle it. Is that a bug from zk because I can display the file with no issue in a normal html page
this don't work
Image image = new Image();
image.setSrc("../../drawable/diagrams/Yin_yang.svg");
this is work fine
any suggestion please
↧
↧
Exist html tags convert to zul file??
Hi,
I have some problem.
When i convert html file to zul file i get a javaScript error.
Converted zul file:
----------------------------------------------------------------------
addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){
window.scrollTo(0,1); }
new WOW().init();
var menuLeft = document.getElementById( 'cbp-spmenu-s1' ),
showLeftPush
= document.getElementById( 'showLeftPush' ),
body =
document.body;
showLeftPush.onclick = function() {
classie.toggle(
this, 'active' );
classie.toggle( body, 'cbp-spmenu-push-toright' );
classie.toggle(
menuLeft, 'cbp-spmenu-open' );
disableOther(
'showLeftPush' );
};
function disableOther( button ) {
if( button !==
'showLeftPush' ) {
classie.toggle( showLeftPush, 'disabled' );
}
}
Dashboard
Components12 Grid System Media Objects
UI Elements
General08 Typography
Widgets08
Mailbox
Inbox05 Compose email
Tables05
Forms
Basic Forms07 Validation
Pages02 Login SignUp Blank Page
Chartsnew NOVUS AdminPanel 3 You have 3 new messages Lorem ipsum dolor amet 1 hour ago Lorem ipsum dolor amet 1 hour ago Lorem ipsum dolor amet 1 hour ago See all messages 3 You have 3 new notification Lorem ipsum dolor amet 1 hour ago Lorem ipsum dolor amet 1 hour ago Lorem ipsum dolor amet 1 hour ago See all notifications 15 You have 8 pending task Database update 40% Dashboard done 90% Mobile App 33% Issues fixed 80% See all pending tasks Wikolia Administrator
Settings
Profile
LogoutToday Sales 45 Today Visitors 80 Today Orders 51 Bar Chart Example Line Chart Example Pie Chart Example Browser Stats
GoogleChrome85%
Firefox35%
Internet Explorer78%
Safari50%
Opera80%
Others60% S.NO PRODUCT STATUS PROGRESS 1 Lorem ipsum In progress
85% 2 Aliquam New
35% 3 Lorem ipsum Overdue
40% 4 Aliquam Out of stock
100% 5 Lorem ipsum In progress
10% 6 Aliquam New
38% Visitors Map
jQuery(document).ready(function() {
jQuery('#vmap').vectorMap({
map: 'world_en',
backgroundColor:
'#fff',
color: '#696565',
hoverOpacity: 0.8,
selectedColor:
'#696565',
enableZoom: true,
showTooltip: true,
values:
sample_data,
scaleColors: ['#585858',
'#696565'],
normalizeFunction: 'polynomial'
});
}); 3.1 K Tweets 523 Circles 1.06K Likes 1.6 K Subscribers 2.1 m Contacts 2525 Connections 1221 Media Y! 2525 Connections 1523 Subscribers 1523 Subscribers Calender
2016 Novus Admin Panel. All Rights Reserved | Design byw3layouts
JavaScripts does not work or It does not effect in zul file.
Pls help me????
↧
Problem using multicheck on listbox
I'm having some trouble trying to build a listbox with multicheck enabled.
I'd like to see the check also in the head of the table, but I can see it just in the listcell.
As documentation specifies I insert in the listbox tag checkmark="true" multiple="true" but it doesn't work!
The code is something like that:
.....
Thank you in advance.
Morena
↧
Some questions about zats
Hello,
I have tried to implement junit tests with zats and zk 8 and I have some problems that could be either caused by my code or maby zats doesn't support this :D
1. I couldn't get zats to work with ZK8, only with ZK7. Is 8 supported yet?
2. I also could't get it to run with Jetty9, only with Jetty8 which needs a different web.xml. I managed to set it in the environment settings but I think it would be better if I could use the same version for the test that I actually use. Is Jetty9 supported yet?
3. I want to test my custom components and I noticed that some functions don't work with zats.
A few examples I noticed that don't work:
Executions.getCurrent().sendRedirect("/app/richletname");
Events.sendEvent(new Event(Events.ON_USER, component));
I managed to work around the problems from the examples above but this one is causing trouble for me:
component.detach();
This throws the following exception:
IllegalStateException: Components can be accessed only in event listeners
I noticed that there is a comment in [this](https://github.com/zkoss/zats/blob/master/zats-example/src/test/java/org/zkoss/zats/example/testcase/TodoTest.java#L57) example about the same issue.
I think that this happens because the junit test runs in a different thread and that Executions.getCurrent() returns an invalid value. Is there a way to use components directly in zats or is this simply not supported?
Thanks in advance
↧
↧
Set combobox value in MVVM
I have this view:Customer Form
and this view model:
package mx.com.mindwork.relativity6.controllers.customers;
import java.util.List;
import org.zkoss.bind.annotation.Command;
import org.zkoss.bind.annotation.Init;
import org.zkoss.bind.annotation.QueryParam;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.select.annotation.VariableResolver;
import org.zkoss.zk.ui.select.annotation.WireVariable;
import mx.com.mindwork.relativity6.dal.daos.companies.CompanyRepository;
import mx.com.mindwork.relativity6.dal.daos.customers.CustomerRepository;
import mx.com.mindwork.relativity6.dal.models.companies.Company;
import mx.com.mindwork.relativity6.dal.models.customers.Customer;
@VariableResolver(org.zkoss.zkplus.spring.DelegatingVariableResolver.class)
public class CustomerFormVM {
public static final String URL = "/customers/customersForm.zul";
private Customer currentCustomer;
private Company selectedCompany;
private List companies;
@WireVariable
private CompanyRepository companyRepository;
@WireVariable
private CustomerRepository customerRepository;
@Init
public void init(@QueryParam("id") String id){
companies = companyRepository.findAll();
if(id==null || id.isEmpty() ){
currentCustomer = new Customer();
}else{
currentCustomer = customerRepository.findOne(Integer.valueOf(id));
selectedCompany = currentCustomer.getCompany();
}
}
@Command
public void save(){
currentCustomer.setCompany(selectedCompany);
customerRepository.save(currentCustomer);
Executions.sendRedirect(CustomerListVM.URL);
}
@Command
public void cancel(){
Executions.sendRedirect(CustomerListVM.URL);
}
public Customer getCurrentCustomer() {
return currentCustomer;
}
public void setCurrentCustomer(Customer currentCustomer) {
this.currentCustomer = currentCustomer;
}
public Company getSelectedCompany() {
return selectedCompany;
}
public void setSelectedCompany(Company selectedCompany) {
this.selectedCompany = selectedCompany;
}
public List getCompanies() {
return companies;
}
}
But when I load the form, the combobox doesn't have de selectedCompany value.
What I am doing wrong?
↧
Nested Header Implementation Using AbstractGroupsModel and List box(like Grid hierarchy demo))
I want to design Nested Header (for group header and data header related to group.)
I have written the code like this
Can anyone suggest how to solve this issue ?
↧
ZK spreadsheet formula errors
Just like to know it anybody has experienced the following problem.
scenario: insert a cell in a formula enclosed in parenthesis clicking on the cells (single or multiple cells no matter).
As soon as the parenthesis is closed, an operator is inserted and another cell is clicked to be inserted in the formula, an error message pops up:
"This formula contains an error : The specified formula '(B2)-' contains an error. Expects cell reference or constant literal."
Then after clicking ok, error message disappear and formula is accepted and working
This does NOT happen if cell reference in the first part of the formula is inserted by hand, eg:
case A)
values in B2 and B3:
go to C3, insert "=(", click on B2, insert ")-", click on B3 => ERROR POPS UP, click ok, formula is correct and working =(B2)-B3
case B)
values in B2 and B3:
go to C3, insert "=(", insert "B2, insert ")-", click on B3 => NO ERRORS and formula is working
no matter if using single or multiple references, eg. the same happens if the formula is:
=sum(b2:b5)-b6
if (b2:b5) is written by hand, no errors, if it is the result of a point-and-click with the mouse, then the error raise
No matter which operator is used (+, -, *, /)
↧
How can i print pdf file using ZK-spring
Hi,
My requirement is when i click a print button, I need to open a pdf file with print dialogue(print preference window).
Please help me out in this.
Thanks in advance
Sowmya
↧
↧
listbox SelectAll disappear from listheader
I have just migrate from zk 700 to zk 800, and now I have problem for checkbox in listbox that disappear when I run this code in zk 800
New Content Here!
I run the same code in zk 7 and 8, and its result are different. In zk 7, SelectAll checkbox still there but in zk 8 it disappear.
When I dont use mold="paging", in zk 8 the listheader has the selectAll checkbox
Thanks for some advices
↧
Download zkee-bin-eval-6.5.8.1.zip
I'm trying zkee-eval-6.5.0
I want to upgrade to zkee-bin-6.5.8.1-eval
I want to download the package zkee-bin-eval-6.5.8.1.zip
Thanhk.
I want to upgrade to zkee-bin-6.5.8.1-eval
I want to download the package zkee-bin-eval-6.5.8.1.zip
Thanhk.
↧
How to install ZK8 on Eclipse
I downloaded the ZK8 , but I can not install nor use it in Eclipse. Help please!
↧
i have a jpeg image and want to remove white background...
As the topic description says i would like to remove the white background of a jpeg image, preferbly transparent.
Anyone knows how to accomplish this, if this is not possible because i read somewhere jpeg doesn't support transparency is there any option to trace the contour of the image that i have and in a way cut away the white background ending up with the image.
I hope someone can help me out on this one
Link of image is-->http://www.google.co.in/imgres?q=UCX+logo&um=1&hl=en&sa=N&biw=1024&bih=616&tbm=isch&tbnid=PZmEe6U4hlybhM:&imgrefurl=http://www.ucxindia.com/Media%2520Kit/M__136&docid=-SnVp_VUqwNz2M&imgurl=http://www.ucxindia.com/downloads/logo3.jpg&w=273&h=220&ei=GtPIT8L2JtDrrQeNzoXBDg&zoom=1
Thanks in advance
↧
↧
complex borderlayout with listbox not showing scrollbar
I have a complex layout a window in my application, within a center section, the listbox contents can exceed the sections space, depending on window resolution, but does not show or render a vertical scrollbar. I've tried a lot of different options, so what am I missing?
I created an example at www.zkfiddle.org/sample/2flts81/10-complex-borderlayout-and-listbox
which pretty well shows the issue.
Using zk7.0.6.1 and primarily Chrome.
↧
How can I create statistical reports on zk
How can I create statistical reports on zk
↧
how to capture href onClick() event
How could I trap the onClick event when href is pressed?
If I override the method onClick() it will get called on all onClick() events, how to know that it has come from href?
The motivation behind this is that I would like to call one of my java methods when href is clicked.
↧
view of named ranges on the top left
When clicking cells the dropdown on the top left changes according to the cell like in Excel (displaying e.g. A1) but unlike Excel it won't display the name of a range if that selected cell (or cells) is a named range. Will the be added to ZK-Spreadsheet? Or is there a way to do this currently that I'm missing? Thanks.
↧
↧
Each Item in the Listbox is giving me the same value.
When I select different items in this set of code:
public void onClick$edit( Event ev ){
// was an item selected?
if ( probTblListbox.getSelectedCount() < 1 ){
try { Messagebox.show( "No item selected." ); } catch (InterruptedException e) { /*ignore*/ }
return;
}
// get selected item's rec
Rec rec = (Rec) probTblListbox.getSelectedItem().getValue();
System.out.println("rec: "+rec);
The rec is different for each item selected here.
An example of how IT SHOULD WORK from the above code, when two examples are selected:
Result 1:
rec: 5633
36
249913002
Result 2:
rec: 2623
16
239769003
Here the Indexes, labels and rec's are both different as opposed to below.
However, here:
public void onClick$edit( Event ev ){
// was an item selected?
if ( dgnListbox2.getSelectedCount() < 1 ){
try { Messagebox.show( "No item selected." ); } catch (InterruptedException e) { /*ignore*/ }
return;
}
get selected item's rec
Rec rec = (Rec) dgnListbox2.getSelectedItem().getValue();
System.out.println("rec: " + rec);
System.out.println(dgnListbox2.getSelectedIndex());
System.out.println(dgnListbox2.getSelectedItem().getLabel());
I get the same value for rec each item selected in the Listbox.
the zul code:
I get different Indexes and labels.
Here is the results when i select two different items in the listbox:
result 1:
rec: 1965
7
ABNORMAL THYROID TEST
result two:
rec: 1965
5
TESTERONE-MEDICARE
So different index and labels but the same rec value even though its clearly two different items. (Hopes this helps)
It is basically the same code and I wonder why I am getting the same value for "dgnListbox2.getSelectedItem().getValue();" for different items selected. Is this because of the file type or something else?
Thanks.
↧
ZK Charts + Export
Hi,
I want to add a **CSV Export** MenuItem to the existing Export Menu in ZK Charts 2.1.1
Since the standard export menu has already some MenuItems ("*Download PNG/JPEG/PDF/SVG ...*") I want to add "Download CSV".
So i tried following code
ExportingButton exportingButton = charts.getExporting().getButtons();
List
↧
get selected item from listbox and pass to another window/modal listbox
Hello everyone,
I really am new with both zk and java, and just recently learn to show data from database to listbox.
I had no idea to do this. So sorry if the question is not good.
So I want to show details according to '@bind(terpilih.aktivitas)' of selected item from listbox in the main zul to another zul/windowpopup(monitoringPopUp.zul) listbox by clicking the list/item and then click toolbar button with command 'detaildata'.
Here is my main zul code:
---------------------
This is my controller code:
---------------------------
package com.swamedia.soki.webui.monitoring;
import com.swamedia.soki.backend.model.Monitoring;
import com.swamedia.soki.backend.model.SecUser;
import com.swamedia.soki.backend.dao.MonitoringDAO;
import com.swamedia.soki.backend.dao.impl.MonitoringDAOImpl;
import com.swamedia.soki.webui.util.GFCBaseCtrl;
public class MonitoringCtrl extends GFCBaseCtrl {
private List monitorList;
private Monitoring selectedMonitor;
@Wire("#WindowUserPopUp")
Window WindowUserPopUp;
@Wire("#WindowUser")
Window WindowUser;
@WireVariable
private MonitoringDAO monitorService;
@Init
public void initSetup(@ContextParam(ContextType.VIEW) Component view) {
Selectors.wireComponents(view, this, false);
monitorList = monitorService.findAll();
}
public void setMonitorList(List monitorList) {
this.monitorList = monitorList;
}
public List getMonitorList(){
return monitorList;
}
public void setSelectedMonitor(Monitoring selectedMonitor) {
this.selectedMonitor = selectedMonitor;
}
public Monitoring getSelectedMonitor() {
return selectedMonitor;
}
@Command
public void keluar() {
WindowUserPopUp.detach();
}
@Command
public void detaildata(){
if(selectedMonitor == null){
Messagebox.show("No data selected!", "Warning", Messagebox.OK, Messagebox.EXCLAMATION);
}else{
Window window = (Window)Executions.createComponents(
"/WEB-INF/pages/monitoring/monitoringPopUp.zul", this.self, args);
window.setClosable(true);
window.doModal();
}
}
}
And this is my popup zul (monitoringPopUp.zul):
----------------------------------------
Thanks....
↧