Is it possible to set the relative position of a page fragment?
Hi,
I have a static text field and a page fragment on my page. The static text will be filled with data from database, its size will change from request to request. My page fragment (a footer page fragment) is expected to sit at the bottom of the page all the time.
Because I can not use grid panel to group the static text fields and the page fragment, I am wondering whether I can set the relative position of the page fragment in the jsp page?
The final result I want to achieve is something like the pages from this very forum. If you click on one topic in this forum, you will be shown a list of posts in the thread on the right (in a frame), and the height of this frame can not be determined at design time; and at the bottom, you can see the footer information for Sun Microsystems Inc.
Your help will be much appreciated.
Xiaoyan
[877 byte] By [
Xiaoyan] at [2007-11-26 8:41:12]

# 1
Hi Xiaoyan,
The CSS "relative" attribute doesn't work properly in Creator 2, it's known bug. But you can simply remove all CSS settings ("style" property of component), and your components will be placed one after another. You can use also grid layout panels and CSS margin property for laying out your components.
Thanks, Misha
(Creator team)
# 2
Hi, Misha,
Thanks very much for your reply.
I have tried to remove all CSS settings (i.e I removed all style="_") from my jsp file. However, the effect is not very satisfactory, especially because that my header page fragment and footer page fragment are now overlapping each other.
As for the use of the grid panel, I know that page fragment can be placed on a form, but not inside a grid panel (correct me if I am wrong). So could you give me a bit explanation about your second suggestion? i.e. how to use a grid layout panels and CSS margin property to place all my components, including page fragment?
Thanks again.
Xiaoyan
# 4
HI, Misha,
Many thanks.
I did use grid panels inside my page fragments to lay out the subcomponents in it. The main problem is the overlapping of the page fragment and other components whose sizes change dynamically.
Again use this forum as an example, when we click on one topic, nobody knows how many replies there are, and how long each reply is. If we use a table (without pagination) and static text fields to hold these messages, the table and the footer page fragment will eventually overlap each other with the addition of new replies.
It will be nice to know how sun forums' developers achieved this.
Thanks again.
Xiaoyan