Hi Madan,

you can't have a box growing and shrinking with the tree.

But the tree should become a scrollbar if it expands to large for the
calculated layout.

Regards,
 Volker

2007/1/25, madan chowdary <[EMAIL PROTECTED]>:

ya sieppl,

i changed the page width attributes, say for width="900px" and
height="600px".

But what happens is, i placed the <tc:tree> with in a <tc:box>.

As the height is contsant, when ever i expand my tree, the contents are
overflowed beyong the box height and thus they are not visible.

Whats my case is,
1) Initially i should have a sindle node displayed to the user in a Box.
2) The box should expand as i expand my tree.
3) The right pane contents must not be moved when this tree expands.
4) The components that are under the Tree Box can move as downa nd up when
ever the tree Expand.

Think u got me ?

So please tell me how can i achieve this...

as i have to show a mockup to my lead ASAP.

Thnx in advance

Regards
Madan Chowdary

----- Original Message ----
From: sieppl <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, 25 January, 2007 10:37:03 PM
Subject: Re: [Tobago] Help regarding <tc:gridLayout>


sorry, I meant the page width attribute. Your page looks fine. I cannot see
any overflowing areas in firefox 2.0. But I have not your includes. Maybet
the error occurs there.


madan chowdary-2 wrote:
>
> hi sieppl,
>
> can u tell me what do u mean by this
>
> " you can specify a global container with maximum constraints for your
> page.  "
>
> i didnt get u, i saw the examples but cant figure wht exactly u told me to
> do...
>
> this is my firstpage
>
> <f:view>
>   <tc:loadBundle basename="messages" var="bundle"/>
>   <tc:page label="#{bundle.pageTitle}" id="page" width="900px" >
>      <f:facet name="layout">
>          <tc:gridLayout border="1" rows="130px;*" marginLeft="80px"
> marginTop="30px"/>
>      </f:facet>
>       <tc:cell>
>          <f:facet name="layout">
>                <tc:gridLayout border="0" columns="1*;3*" rows="100px;2*"
> />
>          </f:facet>
>          <tc:cell spanX="2">
>             <jsp:include page="header.jsp"/>
>         </tc:cell>
>         <tc:cell spanX="2" >
>              <f:facet name="layout">
>                  <tc:gridLayout rows="20px;4*" border="0"
/>
>              </f:facet>
>              <tc:cell>
>                  <jsp:include page="topNavigationBar.jsp"/>

>              </tc:cell>
>         </tc:cell>
>        </tc:cell>
>        <tc:cell>
>                <f:facet name="layout">
>                    <tc:gridLayout columns="230px;*"
border="0"/>
>                </f:facet>
>                <tc:cell>
>                    <f:facet name="layout">
>                        <tc:gridLayout/>
>                    </f:facet>
>                    <tc:cell>
>                     <f:facet name="layout">
>                         <tc:gridLayout rows="50px;*"/>
>                     </f:facet>
>                     <tc:cell/>
>                     <tc:cell>
>                         <jsp:include page="searchAndBrowsePane.jsp"/>
>                     </tc:cell>
>                    </tc:cell>
>                </tc:cell>
>                <tc:cell>
>                    <f:facet name="layout">
>                        <tc:gridLayout/>
>                    </f:facet>
>                    <tc:cell>
>                        <f:facet name="layout">
>                            <tc:gridLayout
rows="30px;fixed" border="0"/>
>                        </f:facet>
>                        <tc:cell spanY="2">
>                            <jsp:include
page="userCartDetails.jsp"/>
>                        </tc:cell>
>                    </tc:cell>
>            </tc:cell>
>           </tc:cell>
>    </tc:page>
> </f:view>
>
> searchAndBrowsePane.jsp includes
>
> <%@ taglib uri="http://java.sun.com/jsf/core";; prefix="f" %>
> <%@ taglib
uri="http://myfaces.apache.org/tobago/component";;
prefix="tc" %>
> <%@ taglib
uri="http://myfaces.apache.org/tobago/extension";;
prefix="tx" %>
> <f:subview id="searchAndBrowserPane">
>     <f:verbatim>
>         <tc:page>
>         <tc:panel width="220px" >
>             <f:facet name="layout">
>                 <tc:gridLayout rows="1*;1*;1*"/>
>             </f:facet>
>             <tc:cell>
>                 <tc:box label="Search Product" width="220px"
> height="50px">
>                     <f:facet name="layout">
>                         <tc:gridLayout columns="1*;40px"/>
>                     </f:facet>
>                     <tc:cell>
>                         <tc:in id="search" value="Search" width="160px"/>
>                     </tc:cell>
>                     <tc:cell>
>                         <tc:button label="Go" width="25px"/>
>                     </tc:cell>
>                 </tc:box>
>             </tc:cell>
>             <tc:cell/>
>             <tc:cell>
>                 <jsp:include page="showCategories.jsp"/>
>             </tc:cell>
>         </tc:panel>
>         </tc:page>
>     </f:verbatim>
> </f:subview>
>
> showCategories.jsp includes
>
> <%@ taglib
uri="http://myfaces.apache.org/tobago/component";;
prefix="tc" %>
> <%@ taglib
uri="http://myfaces.apache.org/tobago/extension";;
prefix="tx" %>
> <%@ taglib uri="http://java.sun.com/jsf/core";; prefix="f" %>
>
> <f:subview id="showCategories">
>    <tc:loadBundle basename="messages" var="bundle"/>
>    <tc:panel width="220px">
>       <f:facet name="layout">
>         <tc:gridLayout/>
>       </f:facet>
>       <tc:box label="#{bundle.categoriesBoxTitle}" >
>         <f:facet name="layout">
>           <tc:gridLayout/>
>         </f:facet>
>             <tc:tree value="#{category.categoryTree}"
> state="#{category.categoryTreeState}" id="categoryTree"
>                 idReference="userObject.id"
>                 nameReference="userObject.name"
>                 showIcons="#{category.showIcons}"
>                 showJunctions="#{category.showJunctions}"
>                 showRootJunction="#{category.showRootJunction}"
>                 showRoot="#{category.showRoot}"
>                 selectable="#{category.treeSelectMode}"
>                 mutable="#{category.mutable}"
>                 actionListener="#{category.processAction}"
>                 >
>                 <f:actionListener
>
type="com.resmed.store.frontend.controller.CategoryListener"/>
>             </tc:tree>
>       </tc:box>
>     </tc:panel>
> </f:subview>
>
> userCartDetails.jsp this is the one in right hand side
>
> <%@ taglib uri="http://java.sun.com/jsf/core";; prefix="f" %>
> <%@ taglib
uri="http://myfaces.apache.org/tobago/component";;
prefix="tc" %>
>
> <f:subview id="userCartDetails">
>     <f:verbatim>
>         <tc:panel>
>         <tc:box label="Admin Cart Details">
>               <f:facet name="layout">
>               <tc:gridLayout rows="fixed;fixed;fixed" columns="2*;1*;1*"
> id="boxToolbarLayout"/>
>             </f:facet>
>             <f:facet name="toolBar">
>                    <tc:toolBar>
>                     <tc:link id="viewCartContents" label="View Cart
> Contents" />
>                     <tc:link image="images/cart2.gif"/>
>                  </tc:toolBar>
>              </f:facet>
>              <tc:cell>
>                  <f:facet name="layout">
>                      <tc:gridLayout columns="1*;3*"
rows="1*;1*"
> border="1"/>
>                  </f:facet>
>                 <tc:cell>
>                     <tc:out value="Display Some"/>
>                 </tc:cell>
>                 <tc:cell>
>                     <tc:out value="Contents that are to be shown to the
> Customer"/>
>                 </tc:cell>
>             </tc:cell>
>         </tc:box>
>     </tc:panel>
>     </f:verbatim>
> </f:subview>
>
> so when ever tree expands, the right hand side userCartDetails.jsp is
> moving downwards
>
> i need to align that column to top as we do in <d valign="top"/>
>
> thnx in advance
>
> Regards,
> Madan
>
>
>
>
>
> ----- Original Message ----
> From: sieppl <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Thursday, 25 January, 2007 5:29:10 AM
> Subject: Re: [Tobago] Help regarding <tc:gridLayout>
>
>
> you can specify a global container with maximum constraints for your page.
> (see the tobago example)
> Thus the right hand side does not expand when the left hand side does.
>
>
> madan chowdary-2 wrote:
>>
>> Hi All,
>>
>> I am displaying a few contents on my page using <tc:gridLayout>.
>>
>> I did such a way that, i need a left pane which contains a tree and the
>> other part some other text to display.
>>
>> i specifed this by <tc:gridLayout columns="200px;*"/> .
>>
>> But when tree gets expanded , the other column is also expanding and so
>> the contents are moved downloads.
>>
>> I need the 2nd column contents to be fixed even if the 1st column expands
>> when the tree does.
>>
>> how to achieve this ?
>>
>> and what does "fixed" mean in columns and rows ?
>>
>> Thnx in advance
>>
>> Regards,
>> Madan
>>
>>
>>
>>
>>
>>
>>
>>
__________________________________________________________
>> Yahoo! India Answers: Share what you know. Learn something new
>> http://in.answers.yahoo.com/
>>
>
> --
> View this message in context:
>
http://www.nabble.com/-Tobago--Help-regarding-%3Ctc%3AgridLayout%3E-tf3083643.html#a8591766
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
>
>
>
>
>
>
>
>
__________________________________________________________
> Yahoo! India Answers: Share what you know. Learn something new
> http://in.answers.yahoo.com/
>

--
View this message in context:
http://www.nabble.com/-Tobago--Help-regarding-%3Ctc%3AgridLayout%3E-tf3083643.html#a8637230
Sent from the MyFaces - Users mailing list archive at Nabble.com.


 ________________________________
 Here�s a new way to find what you're looking for - Yahoo! Answers

Reply via email to