0

Problen with Zk Vizual Editor: Fail to render : Resource not found: http://www.zkoss.org/zkspring/..

asked 2012-07-30 18:28:34 +0800

jandersonti gravatar image jandersonti
3

updated 2012-07-30 18:37:56 +0800

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!

delete flag offensive retag edit

1 Reply

Sort by » oldest newest

answered 2012-11-29 02:08:48 +0800

paowang gravatar image paowang
140 6

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.

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: 2012-07-30 18:28:34 +0800

Seen: 108 times

Last updated: Nov 29 '12

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