-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi!
My Zul Visual Editor is displaying the following message "Fail to render: Resource not found: http://www.zkoss.org/zkspring/security " and don't works.
I'm using Zk 6.0.1 and zkspring 3.1.
This is a zul page:
<?page title="Usuários" contentType="text/html;charset=UTF-8"?> <?taglib uri="http://www.zkoss.org/zkspring/security" prefix="sec"?> <?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?> <?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="gridUsuarios"?> <zk> <window id="gridUsuarios" title="Cadastro de Usuários" border="normal" width="800px" height="600px" closable="true" position="center, center" apply="${UsuariosCtrl}" xmlns:n="http://www.zkoss.org/2005/zk/native"> <listbox id="listUsuarios" height="520px" model="@{UsuariosCtrl.listModel}" itemRenderer="@{UsuariosCtrl.itemRenderer}"> <listhead> <listheader label="Código" width="75px"></listheader> <listheader label="Nome"></listheader> <listheader label="Perfil de Acesso" width="250px"></listheader> <listheader label="Ativo" width="100px"></listheader> </listhead> </listbox> <toolbar align="end" style="padding:4px;"> <button id="btnNew" label="Novo" width="70px" height="24px" disabled="${sec:isNoneGranted('AUTH_ALL, AUTH_USER_INSERT')}"></button> <button id="btnEdit" label="Editar" width="70px" height="24px" disabled="${sec:isNoneGranted('AUTH_ALL, AUTH_USER_UPDATE')}"></button> <button id="btnDel" label="Apagar" width="70px" height="24px" disabled="${sec:isNoneGranted('AUTH_ALL, AUTH_USER_DELETE')}"></button> <button id="btnClose" label="Fechar" width="70px" height="24px" onClick="gridUsuarios.detach()"></button> </toolbar> </window> </zk>
This is a part of my pom.xml:
<dependency> <groupId>org.zkoss.zk</groupId> <artifactId>zkspring-core</artifactId> <version>${zk_spring.version}</version> <exclusions> <exclusion> <artifactId>slf4j-api</artifactId> <groupId>org.slf4j</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.zkoss.zk</groupId> <artifactId>zkspring-security</artifactId> <version>${zk_spring.version}</version> </dependency>
What could be the possible cause of this error?
thanks!
After I added <?taglib uri="http://www.zkoss.org/zkspring/security" prefix="sec"?> in my ZUL, my Visual Editor is displaying some message as you described.
I think that the Visual Editor can't load taglib correctly.
Asked: 2012-07-30 18:28:34 +0800
Seen: 108 times
Last updated: Nov 29 '12