[jboss-user] [JBoss Seam] - s:link cannot understand Facelets params?

bfo81 do-not-reply at jboss.com
Thu Nov 9 09:03:26 EST 2006


Yes, I'm back *g*.

Simplified scenario: I'm using a template for data tables listing entities with an edit link at the end of each row. The concrete list entries and the editor bean are put into the template via ui-params.

The list template:
				<h:dataTable var="entry" value="#{list.entries}">
  | 
  | 					<ui:insert name="content" />
  | 
  | 					<h:column>
  | 						<s:link action="#{editor.edit}" value="Edit this">
  | 							<f:param name="id" value="#{entry.id}" />
  | 						</s:link>
  | 					</h:column>
  | 
  | 				</h:dataTable>

And a concrete "content" example, that gets decorated with the above code:

<ui:param name="editor" value="#{personEditorBean}" />
  | <ui:param name="liste" value="#{personListBean}" />
  | 
  | <ui:define name="content">
  | 
  |     ...other columns...
  | 
  | </ui:define>

If I use h:commandLink instead of s:link, everything works fine.
But s:link is not able to understand that #{editor.edit} means (in this case) #{personEditorBean.edit}.

Caused by: javax.faces.el.PropertyNotFoundException: Base is null: editor


wtf? ^^

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984528#3984528

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984528



More information about the jboss-user mailing list