You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by d....@gmx.net on 2012/09/07 11:28:07 UTC

Re: [Tobago] How to automatically maximize tc:page on initial view of applicaiton? [solved]

Hi all,

just for reference: I ended up using the "action" facet of tc:page, where "outcome.jsp" would contain the user interface that should be maximized.

<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:tc="http://myfaces.apache.org/tobago/component"
          xmlns:tx="http://myfaces.apache.org/tobago/extension"
          xmlns:tcs="http://myfaces.apache.org/tobago/sandbox"
          version="2.0">

  <f:view locale="#{...}">
    <tc:page id="initPage">
      <f:facet name="layout">
        <tc:gridLayout rows="*" />
      </f:facet>
      <f:facet name="action">
        <tc:link action="outcome" immediate="true" />
      </f:facet>	
      <tc:cell />
    </tc:page>
  </f:view>
</jsp:root>


This is similar to what is done in the Tobago Example application:
http://svn.apache.org/repos/asf/myfaces/tobago/tags/tobago-1.5.4/tobago-example/tobago-example-demo/src/main/webapp/init.xhtml

Thanks again for your help.
Greetings, Dom