Tobago works w/ Facelets.
The tobago guys had a nice series of JSF in a popular German it
magazin. and the last article described facelets and tobago. Of
course, how to mix ;-)

-Matthias

On 6/7/06, Showers, Cory R <[EMAIL PROTECTED]> wrote:
I'm looking into facelets now but does Tobago work within facelets.
There seems to be a lot of open source projects now but I'm concern with
each open source project being compatible with the other.  I read
facelets works with myfaces 1.1.. but Tobago works with myfaces 1.3.  Is
there another solution to using divs with Tobago or having my menu
problem go away?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Wednesday, June 07, 2006 12:57 PM
To: MyFaces Discussion
Subject: Re: Can I use a div component in between two sets of <tc:page>
tags in one tobago jsp page?

You should try to use Facelets instead of JSP

-Matthias

On 6/7/06, Showers, Cory R <[EMAIL PROTECTED]> wrote:
>
>
>
>
> 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


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com





--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Reply via email to