Hi Cory,

no, you can't use two tc:page in the same page. tc:page is the outher
container which renders the start and end of a page and do all
initialization eg. in html the
   <html>
       <head>
           <link ...
           <script ...
       </head>
       <body>
and
       </body>
   </html>

you can use tobago for the page and a tc:panel with f:verbatim to
render your html inside the tobago panel. like this:

   <tc:panel><f:verbatim>
         <div style="height: 600px; width: 1250; overflow: auto">
             <img src="images/map.jpg" />
         </div>
   </f:verbatim></tc:panel>

regards,
 volker

2006/6/7, Showers, Cory R <[EMAIL PROTECTED]>:




I am trying to use the Tobago and I am having a problem with using the div
tag.  Tobago doesn't have a div component so I'm using the html one.  My
problem is trying to use the div component in between tabago <tc:page> tags.
 Whats happening is when I create the second <tc:page> at the bottom with my
menu at the top just disappears.   The box and toolbars are displayed even
the menu bar but the labels for the menu bar go away.  When I remove the
page tag at the bottom the labels for my menu appears again.  Can you use
two sets of <tc:page> tags in the same page?  Is there some conflict of
component that's happening?



The reason for this is because I want to use Tobago components at the top of
the page and at the bottom but not in the middle so the code looks like
this:



***************************



<%@ taglib uri="http://myfaces.apache.org/tobago/component";
prefix="tc" %>

<%@ taglib uri="http://myfaces.apache.org/tobago/extension";
prefix="tx" %>

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

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





<[EMAIL PROTECTED] file="inc/head.inc"%>

<html>

<body>

<f:view>

  <tc:page width="1250px">

   <f:facet name="layout">

      <tc:gridLayout  columns="1*" rows="1*"/>

    </f:facet>



      <tc:panel id="pageToolbar" >

      <f:facet name="layout">

        <tc:gridLayout rows="fixed"  columns="1*" id="pageToolbarLayout"/>

      </f:facet>



        <tc:box label="toolbar" id="boxToolbar" >



          <f:facet name="layout">

            <tc:gridLayout rows="fixed" columns="1*" id="boxToolbarLayout"/>

          </f:facet>



          <f:facet name="toolBar">

          <tc:toolBar>

             <tc:toolBarCommand id="gjhgjh" action="overview/toolbar"



                label="zoom out"

                image="images/ZoomOut24.gif" />







             <tc:toolBarCommand id="imageButton" action="overview/toolbar"

                label="zoom in"

            I   mage="images/ZoomIn24.gif" />



          </tc:toolBar>

          </f:facet>



      <tc:menuBar >



          <tc:menu label="File" >



            <tc:menuItem  label="alert 1" />



          </tc:menu>

          <tc:menu label="View">



            <tc:menuItem  label="alert 1" />



          </tc:menu>

               <tc:menu label="Tools">



            <tc:menuItem  label="alert 1" />



          </tc:menu>

        </tc:menuBar>

     </tc:box>

    </tc:panel>

  </tc:page>



    <div style="height: 600px; width: 1250; overflow: auto">

      <img src="images/map.jpg" />

    </div>





   <tc:page width="1250px" height="300">

      <f:facet name="layout">

         <tc:gridLayout  columns="1*" rows="1*"/>

       </f:facet>



      <tc:panel id="pageToolbar" >

         <f:facet name="layout">

           <tc:gridLayout rows="fixed"  columns="1*;1*"
id="pageToolbarLayout"/>

         </f:facet>



         <tc:box label="Emergency Response" id="response" >    </tc:box>

        <tc:box label="Closed Control" id="conto" >       </tc:box>

     </tc:panel>



  </tc:page>

</f:view>



At the bottom

</body>

</html>

******************************



It would be wonderful if there was a way to use the div tag within a
<tc:page> layout but when using div inside a cell layout the image would not
show.  Or when I try to expand the cell to the size that I want and use the
<tc:image> it  would only compress the image to that size and not leave the
image with its original size.  The div tag gives me the ability to have a
viewable area with scroll bars and to the size I want.





Cory

Reply via email to