I am trying to create a tabbed site and each tab I want to be a subview page, then eventually use AJAX to update the data for the current tab.
But I keep getting:

16:01:24,583 ERROR [ViewTag] Error writing endDocument
java.io.IOException: Illegal to flush within a custom tag


16:01:24,630 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
javax.faces.FacesException: Exception in JSP: /views/main.jsp:57

54:                 label="Home Page for TRO"
55:                 style="width:100%">
56:             <f:subview id="homeview">
57:                 <jsp:include page="registration/page3.jsp" flush="false" />
58:             </f:subview>
59:         </t:panelTab>
60:




    <t:panelTabbedPane bgcolor="#fffffc"
                       selectedIndex="0"
                       serverSideTabSwitch="false"

                       activeTabStyleClass="googleHouse_panelTabbedPane_activeHeaderCell"
                       tabContentStyleClass="googleHouse_panelTabbedPane"
                       activeSubStyleClass="googleHouse_panelTabbedPane_subHeaderCell_active"

                       inactiveTabStyleClass="CSSClass"
                       disabledTabStyleClass="CSSClass"
                       inactiveSubStyleClass="CSSClass">

        <%-- =======================================================--%>
        <%-- Home Page Tab --%>
        <%-- =======================================================--%>
        <%--
            This is the Home page tab
        --%>
        <t:panelTab
                id="Home"
                label="Home Page for TRO"
                style="width:100%">
            <f:subview id="homeview">
                <jsp:include page="registration/page3.jsp" flush="false" />
            </f:subview>
        </t:panelTab>

        <%-- =======================================================--%>
        <%-- Artists Tab --%>
        <%-- =======================================================--%>
        <%--
            This is the Home page tab
        --%>
        <t:panelTab
                id="artists"
                label="Artists of TRO"
                style="width:100%">

            <h:form>
                <h:outputText value="This works, but I want the tab to update, instead of moving to another page"/>
                <h:commandLink action=""
                    <h:outputText value="Register Now"/>
                </h:commandLink>
            </h:form>

        </t:panelTab>


    </t:panelTabbedPane>
...



Page3:

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri=" http://java.sun.com/jsf/core" prefix="f" %>

<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>

<f:view>
    <h:form>
        <h:outputText value="This works, but I want the tab to update, instead of moving to another page"/>
        <h:commandLink action=""
            <h:outputText value="Register Now"/>
        </h:commandLink>
    </h:form>
</f:view>






--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson

Reply via email to