ajax em java com zkoss show me the code

8
Ajax em Java com ZKOSS Show me the code ! Vaca Vitória Software Setembro 2011 Hamilton Lima

Upload: vacavitoria

Post on 28-Jul-2015

950 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Ajax em java com zkoss   show me the code

Ajax em Java com ZKOSSShow me the code !

Vaca Vitória SoftwareSetembro 2011Hamilton Lima

Page 2: Ajax em java com zkoss   show me the code

Agenda

• Exemplos online• Paginação • Eventos de teclado• Timer

Page 3: Ajax em java com zkoss   show me the code

Exemplos online

• Demo das principais funcionalidadeshttp://www.zkoss.org/zkdemo/grid

• Teste de codigo onlinehttp://www.zkoss.org/zksandbox/

Page 4: Ajax em java com zkoss   show me the code

Exemplos para examinar

Paginaçãohttp://www.zkoss.org/zkdemo/grid/paging

Eventos de tecladohttp://www.zkoss.org/zkdemo/event/keystroke_event

Timerhttp://www.zkoss.org/zkdemo/server_push/timer

Page 5: Ajax em java com zkoss   show me the code

Paginação<grid id="grid” mold="paging" pageSize="6">…<rows> <zscript><![CDATA[ import org.zkoss.zul.*; int[] orderArray = new int[26]; for (int j=0; j<26; j++){ orderArray[j] = 390 + j; } ]]></zscript> <row forEach="${orderArray}"> <label value="${each}" /> <listbox mold="select" >

Page 6: Ajax em java com zkoss   show me the code

Eventos de teclado

<textbox id="inp" ctrlKeys="^a#f8" type="password" value="123456789" width="150px">

<attribute name="onOK"><![CDATA[ Messagebox.show("ENTER key is pressed", "OK", Messagebox.OK, Messagebox.EXCLAMATION); self.focus(); ]]></attribute>

<attribute name="onCancel"><![CDATA[ Messagebox.show("ESC key is pressed", "CANCEL", Messagebox.OK, Messagebox.EXCLAMATION); self.focus();]]></attribute>

Page 7: Ajax em java com zkoss   show me the code

Timer <label id="now" sclass="time" /> <label id="count" sclass="count" />…<timer id="timer" delay="1000" repeats="true"> <attribute name="onTimer"> now.setValue("Time : " + new Date().toString()); if (countNum == 0) { timer.stop(); return; } count.value = "Count : " + --countNum + ""; pm.value = pm.value + 10;

</attribute></timer>

Page 8: Ajax em java com zkoss   show me the code

Hamilton [email protected]+55 21 8033-VACA

Mais perguntas.

hamilton.lima