This isn't necessarily a MyFaces question, it's probably more of a
tiles integration with JSF, but I'm going for it anyway.

I have a base implementation of a jsf index page which loads a tiles
definition... no biggie, that works just fine.

The issue comes up with one of my definitions having a tiles def in it.

e.g.
indexInclude.jsp
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>
<%@ taglib uri="http://jakarta.apache.org/tiles"; prefix="tiles" %>

<f:view>
     <f:subview id="mainContent">
          <tiles:insert attribute="mainContent"/>
     </f:subview>
</f:view>

//mainContent in my tiles definitions is mapped to nothing, but my
TilesServletController sends it to a predefined page (search.jsp)

search.jsp
<%@ taglib uri="http://jakarta.apache.org/tiles"; prefix="tiles" %>

<tiles:insert definition="propertySearch" flush="false"/>

I have propertySearch to insert two attributes.

I've tried wrapping the insert definition on search.jsp with a facet,
a view and subview, a view and facet and subview.  Nothing seems to
keep it from asking me
java.lang.IllegalStateException: parent is null?

if I remove the tiles:insert and replace it with only text, it seems
to work just fine (with a subview, facet, view or anycombo thereof.

I did not find this type of question asked in the archives, but I'll
concede that my archive search probably wasn't exceptional.

any thoughts,

thx,

timo

Reply via email to