myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brummeline Braaten <brummel...@gmail.com>
Subject Re: commandlink and param
Date Mon, 19 Mar 2007 08:59:55 GMT
Volker Weber <v.weber <at> inexso.de> writes:

> 
> Please post the related code where you get the error
> 
> 2007/3/19, Brummeline Braaten <brummeline <at> gmail.com>:
> > I've got a strange problem.
> >
> > This is part of my code:
> > <t:commandLink action="#{tabnavigering.hentSide}" id="varsellink">
> > <h:outputText value="#{noticetitles.title}" id="varseltittel"/>
> >  <f:param value="#{noticetitles.noticeId}" name="varselid"/>
> > </t:commandLink>
> >
> > When I execute my code I get the error: varselid has no properties.
> >
> > If I change the <f:param> line to: <h:outputText
> > value="#{noticetitles.noticeId}" id="varselid"/>,
> > I get the values on the screen.
> >
> > Why cant i find this values with the param attribute?
> >
> >

The code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<html>
<f:view>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Nytt i helse-ekstern-alle</title>
<link rel="stylesheet" href="../css/frontend.css" type="text/css"
media="screen">
</head>
<body>
<h:form id="metoder">
<h:dataTable var="noticetitles" value="#{tabnavigering.localList}" rows="7"
id="varseltabell">									<h:column id="varselkolonne">
<h:outputText value="#{noticetitles.produceDate}" styleClass="listdate"/>
<t:commandLink action="#{tabnavigering.hentSide}" id="varsellink">
<h:outputText value="#{noticetitles.title}" id="varseltittel"/>
<f:param value="#{noticetitles.noticeId}" name="varselid"/>				</t:commandLink>
</h:column>
</h:dataTable> 
</h:form>
</body>
</f:view>
</html>



Mime
View raw message