Problema com a tag "<h:commandlink"

7 respostas
paulojr83

Olá pessoal, estou com um problema com a tag “<h:commandLink>”, quando tento utilizar ela junto com tabPanel ela não funciona e nem me apresenta nenhum erro, o codigo de minha teplate, nenhum dos link estão funcionando.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml
xmlns:ui=“http://java.sun.com/jsf/facelets
xmlns:h=“http://java.sun.com/jsf/html
xmlns:f=“http://java.sun.com/jsf/core
xmlns:rich=“http://richfaces.ajax4jsf.org/rich
xmlns:a4j=“http://richfaces.org/a4j”>

<head>

<meta http-equiv=“Content-Type” content=“text/html; charset=UTF-8” />

<style>

.rich-text-general {

font-size: 12px /<em>generalSizeFont</em>/;

font-family: Arial, Verdana, sans-serif /<em>generalFamilyFont</em>/;

color: #000000 /<em>generalTextColor</em>/;

FONT-WEIGHT: bold

}

}

</style>

</head>

<body>

<ui:insert name=“topo”>

<link rel=“STYLESHEET” type=“text/css” href="/css/rich-styles.css"

media=“screen” />

<h:form>

<h3 style=“text-align: right; margin: 0; padding: 0;”><h:commandLink

style=“text-decoration: none;” styleClass=“rich-button”

onmouseover=“this.className=‘rich-button-over’”

onmouseout=“this.className=‘rich-button’”

onmousedown=“this.className=‘rich-button-press’”

onmouseup=“this.className=‘rich-button-over’”

action=“logoff”> <h:outputText value=“Logoff” /></h:commandLink> <rich:spacer width=“2%”></rich:spacer>

<h:commandLink style=“text-decoration: none;” styleClass=“rich-button”

onmouseover=“this.className=‘rich-button-over’”

onmouseout=“this.className=‘rich-button’”

onmousedown=“this.className=‘rich-button-press’”

onmouseup=“this.className=‘rich-button-over’”

action=“alterarsenha”><h:outputText value=“Alterar Senha” /></h:commandLink> <rich:spacer width=“2%” /> <h:commandLink

style=“text-decoration: none;” styleClass=“rich-button”

onmouseover=“this.className=‘rich-button-over’”

onmouseout=“this.className=‘rich-button’”

onmousedown=“this.className=‘rich-button-press’”

onmouseup=“this.className=‘rich-button-over’” action=“cadastroCredenciado”>

<h:outputText value=" Cadastro de usuário" />

</h:commandLink> <rich:spacer width=“2%” />
&lt;h:outputText value="Usuario Logado:" styleClass="rich-text-general"&gt;&lt;/h:outputText&gt;&lt;h:outputText
		value="#{loginHandler.login}" styleClass="rich-text-general" /&gt; &lt;rich:spacer
		width="23"&gt;&lt;/rich:spacer&gt;&lt;/h3&gt;

&lt;/h:form&gt;

</ui:insert>
<ui:insert name=“corpo” />
</body>
</html>

7 Respostas

anderson.bonavides

Já tentou utilizar o <h:messages/> para ver se aparece algum erro?

paulojr83

ainda não vou tentar pra ver o que aparece

paulojr83

só aparece erro message :?: :?

anderson.bonavides

Kd a definição do teu view?

<f:view>
    <h:form></h:form>
</f:view>

Quando você for postar códigos coloca teu código dentro da tag [code][/ c ode]. Elas ficam localizada no topo do editor.

paulojr83

vlw já resolvi obrigado

anderson.bonavides

Erros devem sempre ter solução. Posta ai onde estava o erro.

t+

paulojr83

o erro estava quando fui configurar o arquivo xml, agora eu fiz um handle só para direcionar as pagina.

Criado 12 de maio de 2008
Ultima resposta 12 de mai. de 2008
Respostas 7
Participantes 2