Stephan, the a is xhtml, not native. The poster didn't mention what he used but maybe add it to the answer?
chillworld ( 2016-08-23 20:59:21 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
Is It Possible to call mvvm onClick command in Java Classes via HTML Button?
like this :
zul :
<input type="button" onClick="@command('test')">Sign in</button>
Java :
@Command
public void test(){
System.out.print("test");
{
I tried adding xmlns:zk = "zk"
then zk:onClick="@command('test')
but still didn't get any result.
pls help.
Regards,
Klepon
New feature from ZK 8 :
Greetz chill.
In my bootstrap environment i do such things with <a>
<zk xmlns="http://www.zkoss.org/2005/zul" xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:w="http://www.zkoss.org/2005/zk/client"
xmlns:n="http://www.zkoss.org/2005/zk/native"
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
<h:a class="btn btn-sm btn-danger fa fa-times btn-group-btn pull-right"
title="Delete"
onClick="@command('onDelete')" />
best Stephan
Stephan, the a is xhtml, not native. The poster didn't mention what he used but maybe add it to the answer?
chillworld ( 2016-08-23 20:59:21 +0800 )editHi Childworld
Can you give me a example. I am also tryign the same
Asked: 2016-08-23 06:25:19 +0800
Seen: 115 times
Last updated: Nov 07 '16
How to get HTML Components values into MVC Composer or MVVM View Model
embed zul file into html template
onBlur event is not sent when clicking on a Html component
Applet integration - How can i get the html tag id in javascript?
Create notification icon with zk 7 CE