0

Radio & JSP

asked 2009-09-29 16:43:13 +0800

gmejia gravatar image gmejia
9

Hi,

I have ZK code working into a JSP, it works fine, but now I need to include some radios, but these are not desplayed in the page, I copy the same radios to an other page (a simple zul page) and works... could some one help me..
Thanks a lot..

I have somethink like:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://www.zkoss.org/jsp/zul" prefix="z" %>
<z:init use="org.zkoss.zkplus.databind.AnnotateDataBinderInit" />
<jsp:include page="/jsp/header.jsp" flush="true">
<jsp:param name="title" value="Perfil - Listar" />
<jsp:param name="pagina" value="perfil_listar.jsp" />
</jsp:include>

<z:page>

<z:window id="win2" title="To do list" width="640px" border="normal"
apply="org.zkforge.todo.event.EventController">
<vbox>
<radiogroup onCheck="fruit.value = self.selectedItem.label">
<radio label="Apple" />
<radio label="Orange" />
<radio label="Banana" />
</radiogroup>
You have selected :
<label id="fruit" style="color:red" />
</vbox>

<z:listbox id="box" multiple="true" rows="5" model="@{win2$composer.allEvents
load-after='add.onClick, delete.onClick, update.onClick'}" selectedItem="@{win2$composer.current}">

<z:listhead>
<z:listheader label="Item" />
<z:listheader label="Prioridad" width="50px" />
<z:listheader label="Abierto" width="90px" />
</z:listhead>
<z:listitem self="@{each='tipo'}" value="@{tipo}">
<z:listcell label="@{tipo.name}" />
<z:listcell label="@{tipo.priority}" />
<z:listcell label="@{tipo.date}" />
</z:listitem>

</z:listbox>
<z:groupbox>
<z:caption label="Event" />
Item: <z:textbox id="name" cols="25" value="@{win2$composer.current.name}" />
Prioridad: <z:intbox id="priority" cols="1" value="@{win2$composer.current.priority}" />
Fecha: <z:datebox id="date" cols="8" value="@{win2$composer.current.date}" />

<z:button id="add" label="Add" width="36px" height="24px"/>
<z:button id="update" label="Update" width="46px" height="24px"/>
<z:button id="delete" label="Delete" width="46px" height="24px"/>

</z:groupbox>
</z:window>

</z:page>
<tr><td> </td></tr>
<tr><td> </td></tr>
<jsp:include page="/jsp/footer.jsp" flush="true" />

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-09-30 08:39:09 +0800

martin79 gravatar image martin79
96

I am not sure if this solves your problem, but you should always use the namespace-prefix, if you want to use ZK radio-buttons. A normal ZUL doesn't require this, so this seems to be the reason, why it works there.

link publish delete flag offensive edit

answered 2009-09-30 20:13:31 +0800

gmejia gravatar image gmejia
9

:S you are rigth... I forgot that.. thanks a lot..

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-09-29 16:43:13 +0800

Seen: 237 times

Last updated: Sep 30 '09

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