Just a note about css tips and trick.
If you play with % sire, the container size has to be known by renderer, that mean if you have this
table (width=60%)
td (width=10%)
it will awfully fail unless the parent of table has a known width. The trick is this
<body style="width:100%">
which fixes the width of body and as a consequence, the with of every child in percentage mode.

Andrew Robinson a écrit :
I have made a grid bag layout for my company, and to be honest I am
not 100% satisfied with it. There are so many bleeping bugs in IE with
CSS and TABLEs that making a perfect and stable implementation is near
impossible. My current version uses JavaScript to layout the
components, but it results in flashing, which of course our QA
reported as a bug.

If I can get IE to do what it is supposed to do (it doesn't even do
what the MSDN docs says it is supposed to do), I may make a free
version (myfaces for example).

The biggest hurdles:

1) mixing perentages and pixels (fill the remainder type of work)
2) implementing "auto" sizing -- in swing we would say preferred size.
3) dealing with all the, seeming 100s of, layout issues with TABLE in
IE (most CSS attributes and DOM properties for overflow, clientWidth,
scrollWidth, offsetWidth, height, etc. are not computed correctly for
TABLE, TR, TD and TH elements in IE)

CSS3 makes GridBagLayout implementation easy, unfortunately even
FireFox isn't that up to date with the standards (it still lacks the
colspan and rowspan CSS support which is key in GridBagLayout).

-Andrew

On 8/19/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
The primary functionality of Tobago is layout management like you've
described (and some skinning).
The downside is that you can only use JSF components which are
layout-aware, which is why Tobago components have to be used
exclusively.

You can either use Tobago if it does everything (or almost everything)
you want, or you can try "porting" some of the Tobabo layout logic to
standard JSF.

On 8/19/06, Remo Liechti <[EMAIL PROTECTED]> wrote:
> Hi all
> I use JSF some months now. But what I really miss is a nice LayoutManager like BoarderLayout or GridBagLayout in Java. Is there any way to do simple JSF using LayoutManagers?
>
> It would be so great if one could use JSF like this:
> <panelGrid layout="GridBagLayout">
>   <any-JSF-component x="1" y="1"/>
>   <any-JSF-component x="1" y="2"/>
>   <any-JSF-component x="2" y="1"/>
>   <any-JSF-component x="2" y="2"/>
> </panelGrid>
>
> Same for Border:
> <panelGrid layout="BorderLayout">
>   <any-JSF-component direction="north"/>
>   <any-JSF-component direction="west"/>
>   <any-JSF-component direction="center"/>
>   <any-JSF-component direction="east"/>
> </panelGrid>
>
> Or the like. You know what I'm talking about. Is there any easy way to do this? I don't think it would be nice to use <div>'s with CSS... > If so, great. If not, I'm really thinking about to create a custom component that can render all other JSF elements, but which is able to handle some basic layoutmanagers.
>
> Summary:
> Flowlayout: would be very easy to do
> NullLayout could be done using html tables and some wierd hights and widths
> BorderLayout: could be done using html tables and col/rowspan
> GridBagLayout: could be done using html tables and col/rowspan
> GidLayout: just a simple html table
>
> Any feedback?
>
> Thanks,
> Remo
>
>
> This message may contain legally privileged or confidential information and is therefore addressed to the named persons only. The recipient should inform the sender and delete this message, if he/she is not named as addressee. > The sender disclaims any and all liability for the integrity and punctuality of this message. The sender has activated an automatic virus scanning, but does not guarantee the virus free transmission of this message.
>
>


Reply via email to