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