You might want to look at Sun's Creator and components as it has a grid and
a flow layout manager although the positions are rendered with CSS -- you
just don't have to worry about it though!


-----Original Message-----
From: Remo Liechti [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 19, 2006 12:32 PM
To: [email protected]
Subject: LayoutManager

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