Image on Datatable header

Hi all.
We need to include an image (<img>) in the header of a table. Is it possible? So far we could only add text to the headers.
Thanks in advance

JSF table - column width are set in the styleclasses available through the h:dataTable itself.
There is a property - columnClasses where you can specify the column width of each column (you will have to specify a styleclass for each column though)
For example if you have 3 columns in the dataTable and you want to give
5% width to the first column, 5% to the second and 90% for the last, you can create the following css stylesheet classes (watch the width field down here):
.AdminSectionSelector {
border-bottom-color: #c4c4f9;
border-bottom-style: solid;
border-bottom-width: 1px;
text-align: center;
width: 5%
.AdminSectionPublish {
border-bottom-color: #c4c4f9;
border-bottom-style: solid;
border-bottom-width: 1px;
text-align: center;
width: 5%
.AdminSectionData {
border-bottom-color: #c4c4f9;
border-bottom-style: solid;
border-bottom-width: 1px;
width: 90%
Now in your h:datatable columnclasses, you specify like this:
columnclasses=AdminSectionSelector,AdminSectionPublish,AdminSectionData
Hope it helps,
BB

Similar Messages

  • Datatable header display issue

    Hi,
    I need to display more then one component in the header of a datatable. Currently, we are able to display the table along with the header values using datatable. Next to the header we want to display 2 icons, one to denote sorted by descending and another to denote that
    table values are sorted by ascending. We tried some thing like as show below
    <h:dataTable styleClass="dataTable" value="#{list}" var="plist">
    <h:column>
    <f:facet name="header">
    <h:commandLink action="#{form.sortDescending}">
         <h:graphicImage value="/descending.jpg"/>
    </h:commandLink>
    <h:outputText value="HeaderDisplayName" ></h:outputText>
    <h:commandLink action="#{form.sortAscending}">
         <h:graphicImage value="/ascending.jpg"/>
    </h:commandLink>
    </f:facet>
    <h:outputText id="value" value="#{list.value}" />
    </h:column>
    when I execute the above code, I get to see only the descending image.
    The header name and ascending image are not visible. Could you please help me resolve this issue?
    Thank you,
    DargonHorse

    you should use one component inside a facet.. So, you can solve your problem by encapsulating all that command links and outputtext inside a jsppanel component.. like;
    <f:facet name="header">
    <jsppanel>
    <h:commandLink descending...>
    <h:outputText header >
    <h:commandLink ascending... >
    <jsppanel />
    </f:facet>

  • Anchor link only for image in table header for sorting

    Hi,
    I need to implement sorting functionality for datatable.
    for sorting header of the table column will have image along with header text.
    for this i am using <h:commandLink> and <h:graphicImage>.
    But i am getting behaviour as anchor link for both text and image.
    deserved behavior for this is only ofr Image.
    If any one implemented the same ..please help me
    Regards

    Try:
    Sub ClearKeepWNext()
    Dim Tbl As Table, i As Long
    For Each Tbl In ActiveDocument.Tables
      With Tbl
        .Range.ParagraphFormat.KeepWithNext = False
        For i = 1 To .Rows.Count
          With .Rows(i)
            If .HeadingFormat = True Then
              .Range.ParagraphFormat.KeepWithNext = True
            Else
              Exit For
            End If
          End With
        Next
      End With
    Next
    End Sub
    If the tables only have a single heading row, you could instead use:
    Sub ClearKeepWNext()
    Dim Tbl As Table
    For Each Tbl In ActiveDocument.Tables
      With Tbl
        .Range.ParagraphFormat.KeepWithNext = False
        With .Rows(1)
          If .HeadingFormat = True Then
            .AllowBreakAcrossPages = False
          End If
        End With
      End With
    Next
    End Sub
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • How to add an image in the header? Pages 5.0

    I don't believe I have to use Microsoft Word! I can't, no way, add an image in the header. This is unbelievable!
    **** time I updated to Mavericks!
    Please, does anyone know the solution?
    I'm losing a great deal in my company.

    Do you still have Pages 4.3 installed. If so, use that.

  • Problem with buttons in datatable header

    Hi
    I have command buttons in the datatable header .When I display the data in columns there is a gap between buttons .I want the buttons should be stretched automatically along with column data there should not be no gap between buttons regardless how big the data is in each column.
    Can anybody help me asap.
    Thanks.

    This issue is that the second header is an instance of the first, so all unmanaged relative code breaks. I would hazzard a guess to say that your add code looks like "$.parent.row1.instanceManager.addInstance(1)." This will break, as the "second" header row no longer sees the 'table' element as it's parent.
    Changing to code to a static reference will fix it... i.e. xfa.form.form1.table1.row1.instanceManager.addInstance(1).
    This should solve it for you... if not, let me know.
    - Scott

  • How do i add images in the header and footer to a PDF using iText

    Hi ,
    I want to add images to the header and footer of every page while i am genrating a pdf i have created a separate class called EndPage which i am instanceiating its default constructor in another class 's button action method.
    The above code genrates a PDF for me however it genrates a file with file size zero bytes and does not open it following is my sample code
    //**********Any Help would be appreciated
    Thank You
    public class My_Class
    public String pdf_action()
    EndPage ep=new EndPage();
    return null;
    }//My_class Ends
    class EndPage extends PdfPageEventHelper
    * Demonstrates the use of PageEvents.
    * @param args no arguments needed
    public EndPage()
    try {
    com.lowagie.text.Document document = new Document(PageSize.A4, 50, 50, 70, 70);
    PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("D://proposals/endpage.pdf"));
    writer.setPageEvent(new EndPage());
    document.open();
    String text = "Lots of text. ";
    for (int k = 0; k < 10; ++k)
    text += text;
    document.add(new Paragraph(text));
    document.close();
    catch (Exception de) {
    de.printStackTrace();
    public void onEndPage(PdfWriter writer, Document document) {
    try {
    Rectangle page = document.getPageSize();
    PdfPTable head = new PdfPTable(3);
    for (int k = 1; k <= 6; ++k)
    head.addCell("head " + k);
    head.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
    head.writeSelectedRows(0, -1, document.leftMargin(), page.height() - document.topMargin() + head.getTotalHeight(),
    writer.getDirectContent());
    PdfPTable foot = new PdfPTable(3);
    for (int k = 1; k <= 6; ++k)
    foot.addCell("foot " + k);
    foot.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
    foot.writeSelectedRows(0, -1, document.leftMargin(), document.bottomMargin(),
    writer.getDirectContent());
    catch (Exception e) {
    throw new ExceptionConverter(e);
    }

    Hi,
    Thanks for the quick response.
    The problem is that when I keep the logo as a watermark, the pdf is not adjusting itself to include the logo as header.
    But if I add a header text via Tools -> Headers and Footers, the pdf is adjusting itself so that the header text is at the beginning , not overlapping with the contents of pdf.
    But while using logo as watermark, some times overlapping of the pdf contents and logo is happening.
    Is there any way to add a logo in the Header and Footer via the option in Tools -> Headers and Footers
    Thanks,
    Vidhya

  • Error message when I try to add an image to the header

    I receive the following error message when I try to add an image to the header:
    Acrobat.com encountered an unexpected error.
    I have tried to add .jpg and .gif without success.
    Thanks,
    MDawn

    Hi,
    We typically see this when an organizations IT department is blocking the upload of images.  Are you working on this at work?  If so, can you try adding the image outside your companies network?
    Thanks,
    Todd

  • Why can't I insert an image into the header in Pages 5.0.1?

    In previouis versions of Pages, I was able to insert an image into a Header or Footer.
    This action does not appear an option in Pages 5.0.1.
    Am I missing something?
    I must say, I do not like the NEW interface. Much has been lost with the transition to the Cloud.
    I like the concept of using my iPad Air and my desktop, however functionality has been tossed out for deference to the Tablet.

    KT,
    Use a "Floating Graphic" and send it to the Section Master in the Arrange > Section Master menu. Floating is called Stays With Page now. Don't worry about it not being in the Header field. It will serve the purpose.
    Jerry

  • Pages 5.0 : impossible to paste an image in the header

    hi, with the previous version of Pages, you can paste an image in the header to get it on every page. Now it seems to be impossible. Does anyone found a solution ? Thanks.

    Images in headers & footers is just one of the many, many features that have been eliminated or changed. Leave feedback for the Pages team using the link in the Pages menu.

  • How can I resize an image in the header?

    I have uploaded my organization's logo into our document, but it is out of proportion to the rest of the document. I've delted it and uploaded smaller versions of the logo and it is still too big. How can I format the image in the header so that it is more reasonably sized?

    Thanks. The triangle was buried in the image. If you hadn’t told me where to look, I would never have found it!
    Michelle
    Michelle Lancto
    Jewish Endowment Foundation
    a division of the Jewish Federation of Western Massachusetts
    Phone: 413-732-9994                Fax: 413-737-4348
    <mailto:[email protected]> [email protected]
    <http://www.jefwesternmass.org/> www.jefwesternmass.org 
    <http://www.jewishwesternmass.org/> www.jewishwesternmass.org
    JEF_Logos_1101_JFWM for email LOW RES
    Confidentiality Notice
    The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.

  • How can i add an image into the header

    When printing a webpage i would like to ad an image into the header? Is this possible?

    Thanks. The triangle was buried in the image. If you hadn’t told me where to look, I would never have found it!
    Michelle
    Michelle Lancto
    Jewish Endowment Foundation
    a division of the Jewish Federation of Western Massachusetts
    Phone: 413-732-9994                Fax: 413-737-4348
    <mailto:[email protected]> [email protected]
    <http://www.jefwesternmass.org/> www.jefwesternmass.org 
    <http://www.jewishwesternmass.org/> www.jewishwesternmass.org
    JEF_Logos_1101_JFWM for email LOW RES
    Confidentiality Notice
    The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.

  • Making some texbox and image invisible from header in the second page and third page only

    i have written this expression for the image
    =iif(Globals!PageNumber= 1,false,True)
    the problem is, it is repeating in every pages, i want it to be displayed in the page one only, when the rdlc report is generated in the report viewer

    Hi aki.mary,
    According to your description, you added textbox and image to page header, now you want to display them on the first page, on other pages, their visibility is set to false, but the image is visible on every page.
    I tried to reproduce the issue in my local machine, but it works fine for me. I set visibility of textbox and image by following steps:
    Right-click the image, click Image Properties.
    Click Visibility in left pane, select Show or hide based on an expression.
    Click (fx) button and type the expression: =iif(Globals!PageNumber= 1,false,True).
    The following screenshot is for your reference:
    In order to improve the efficiency of troubleshooting, please provide detailed information of the report. I would be appreciated it if you could provide steps you created the report and screenshot of the report. By collecting this information now, it will
    help us move more quickly toward a solution.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • How do you set-up a floating image in a header or footer?

    I want to place a floating image in the header or footer so it repeats on every page of a section. Somehow this has been achieved in the Project Proposal Template but I can't work out how you set something like this up from scratch. Can you help me?

    It is not in the header.
    Highlight the floating image and then go Format > Advanced > Move Ojbects to Section Master.

  • How do I place an image over the header?

    I am new to web design and new to Dreamweaver CS4.  I have used 2 column template with header and footer.  I have got a header title (an image) but I want to place an image to the left of it in the top left corner of the web page.  I want the header region to be the height of the title as I want the image to have a greater height than the header area.  When I insert the image it goes into the header region and the header automatically increases its height to fit the image.  How can I overlay the image on the header rather than inserting it in the header?  Any help would be appreciated.

    Designing web pages is nothing like designing for print.   To achieve what you want , you'll either need to create a special header image in Photoshop or Fireworks that contains white space and/or slices from surrounding images.  Insert this new image into your header region.
    Or, you could simply place image in the background using CSS.  Then align your message text using CSS floats and margins.  See demo below for an example.
    http://alt-web.com/TEMPLATES/I-page-with-floats.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Image size from header

    Hi,
    I'm trying to extract image size from header for PNG, JPG, TIFF, BMP and GIF files. So far I got PNG working. I'm having problems finding size info for JPG files. Anyone knows where I can read about it (i didnt find nothing on google) or have the code that works? also for the other image types?
    P.S. I dont wanna read the entire image using Image class cause its too slow.

    Code Snippet:
    ImageInputStream imageStream =
            ImageIO.createImageInputStream(/*File or InputStream*/);
    java.util.Iterator<ImageReader> readers =
            ImageIO.getImageReaders(imageStream);
    ImageReader reader = null;
    if(readers.hasNext()) {
        reader = readers.next();
    }else {
        imageStream.close();
        //can't read image format... what do you want to do about it,
        //throw an exception, return ?
    reader.setInput(imageStream,true,true);
    int imageWidth = reader.getWidth(0);
    int imageHeight = reader.getHeight(0);
    reader.dispose();
    imageStream.close();

Maybe you are looking for

  • Material Cost is not coming in Credit Memo

    Dear SAP gurus, My Client is from Brazil & they created a cycle of Sales Order (Export Order) to Billing (with Nota Fiscal) & with Reference to Invoice, they created the Return Order, Return Delivery (PGR) & finally generated Credit Memo. The Problem

  • Deleting individual messages in iMessage.

    Does anyone know how to delete individual messages in iMessage. Just updated to ios8 and have lost the function on my iPhone 5s

  • Secured LDAP implementation in Oracle BI

    Hi All, Can anyone tell me how can I implement the secured LDAP in Oracle BI as I have enabled SSL certificate box during the LDAP configuration in the Oracle BI Repository. Is this enough to say that we have implemented secured LDAP or there is some

  • Stuck in Edit

    I have a list page that is stuck in Edit.  Every time you open the page it's in edit with the option to "STOP editing this list." How do I make it stop?  The list have multiple views - not all views are stuck - one the default view. The problem start

  • Authorisation to create material master based on material type

    Hello MM Gurus,         How to create user authorisation to create material master on the basis of material type i.e. some are authorised to create material master with material type ROH only and some are authorised to create material master with mat