Revision history [back]

click to hide/show revision 1
initial version

answered 2010-05-19 10:42:10 +0800

jimmyshiau gravatar image jimmyshiau

http://www.zkoss.org/ ZK Team

It cause by below code

 if (!jq.nodeName(n, 'button', 'input', 'textarea', 'a', 'select', 'iframe'))
    return false;

in ZK 3, toolbutton is a "a" tag but we modify to a "div" in ZK 5

we will fix it after we decide it whether is a bug or spec

You can use client side to control it it is more fast then control from server

I create a sample

<zk xmlns:w="http://www.zkoss.org/2005/zk/client">
    <script type="text/javascript"><![CDATA[
        function foco(){
            jq("$btnGrabar").focus();
        }
    ]]></script>
    <button label="Foco" w:onClick="foco();"/>
    <toolbarbutton id="btnGrabar" label="Grabar"/>
</zk>

more information

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More