Creator Tip: Table component with a custom title bar
Another feature of the Sun Java Studio Creator 2U1 Table Component, that may be of interest is to have a custom title bar. This is also done very similar to the technique I explained in my blog on How to add the button panel to the table header.
Here is an example. Suppose you are running some process and periodically post the information about the process to a web page, where user can view output information of the process in a table. Suppose, if part of the process failed, you may want to display some message in the table title bar stating the process failed along with some error icon, which looks something similar to the below image.
Here are the steps to do this:
Here is the "title" facet code I used to make the above table title bar with red error icon and red colored text.
<f:facet name="title">
<ui:panelGroup binding="#{Page1.groupPanel1}" id="groupPanel1" style="text-align: left">
<ui:image align="middle" binding="#{Page1.image1}" icon="ALERT_FAILED_LARGE" id="image1"/>
<ui:staticText binding="#{Page1.staticText1}" id="staticText1"
style="color: #da3333; padding-left: 5px; padding-top: 10px; vertical-align: middle"
text="Process failed"/>
</ui:panelGroup>
</f:facet>
Also, it is possible to add a DropDown Component to the Table Component title bar as shown below.

Here is the "title" facet code I used to put the DropDown Component in the title bar.
<f:facet name="title">
<ui:panelLayout binding="#{Page1.layoutPanel1}" id="layoutPanel1"
panelLayout="flow" style="text-align: right">
<ui:dropDown binding="#{Page1.dropDown2}" id="dropDown2"
items="#{Page1.dropDown2DefaultOptions.options}"
style="text-align: right; width: 150px"/>
</ui:panelLayout>
</f:facet>
Posted at 11:48AM Sep 25, 2006 | Permanent link to this entry
Posted by cavaliernino on September 26, 2006 at 05:36 PM PDT #
Posted by Thomas on October 03, 2006 at 05:49 AM PDT #
Posted by Amit shastri on October 11, 2006 at 11:14 PM PDT #
Posted by Jordan on March 17, 2007 at 02:09 PM PDT #
?
Posted by 85.18.14.5 on December 20, 2007 at 02:54 AM PST #
http://www.batteryfast.co.uk/ibm/thinkpad-r50.htm ibm thinkpad r50 battery,
http://www.batteryfast.co.uk/ibm/thinkpad-t40.htm ibm thinkpad t40 battery,
http://www.batteryfast.co.uk/ibm/08k8192.htm ibm 08k8192 battery,
Posted by laptop batteries on October 24, 2008 at 12:11 AM PDT #
I have a GPS system on my car bought from http://www.lweshop.com/ and it really has helped enormously in finding new locations. I found this blog most interesting as I didn’t realize all of the wide range of applications out there today for GPS technology
Posted by GPS Navigation on November 27, 2008 at 01:53 AM PST #
Thanks this table and its pagination is useful.
Posted by Colon Cleanse on May 16, 2009 at 02:10 PM PDT #
good post
Posted by lyn on November 22, 2009 at 01:06 AM PST #