myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Werner Punz <>
Subject Re: aliasbean question
Date Fri, 13 May 2005 11:49:12 GMT
Broekelmann, Mathias wrote:
> Hi Werner,
> I use the alias bean for more than one alias at the same time. You
> simply have to nest them:
> <x:aliasbean value="..." alias="#{alias1}">
> 	<x:aliasbean value="..." alias="#{alias2}">
> 		<!-- reusable component tree which uses alias1 and
> alias2-->
> 	</x:aliasbean>
> </x:aliasbean>
> The only thing which will not work is to overwrite the alias name by an
> other alias for some nested components because the overwritten alias
> value is not restored.
> Mathias
Ok just tried it that does not seem to work:
<x:aliasBean alias="#{controller}" value="#{myController}">
	<x:aliasBean alias="#{holder}" value="#{testLocationForm}">
		<f:subview id="simulatedIncludedSubform1">
			<jsp:include page="../../inc/webobjects/bld.jsp" />
gives me a null pointer exception as soon as the #{controller} is hit in 
the include.

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

View raw message