Dynamic/included table cell content - is it possible in JSF ?

Folks !
There is one killer JSP feature I seem to be missing in JSF dataTable components (I have tried Tomahawk also):
Basically, I am looking to do something like this:
<f:facet name="header">
<jsp:include page="detail.jsp" flush="true"/>
</f:facet>
Reason ? I would like to reuse detail.jsp content in more than one places and don't want to duplicate same code.
This is specially the case when you are using a detail row (from Tomahawk or Trinidad) that spans across all columns
<f:facet name="detailStamp">
     <jsp:include page="detail.jsp" flush="true"/>
</f:facet>
If not regular JSP, is it possible to do this somehow in Facelets ?
thanks,
-Sanjay

Sorry, I failed to note that "detail.jsp" is not static content but actually uses the "row" variable of the datatable.
Since includes are processed seperately from taglib rendering at runtime, detail.jsp fails with error as it doesn't see the row variable null at run time.
thanks,

Similar Messages

  • SAP Portal development-Table Controls having link to table cell content

    Hello all,
    I am creating the SAP portal in which i am using Table controls to display the data. I want the function should be called whenever user clicks the table cell content. i.e. i want to create the function link to table cell.
    Please reply soon.
    Regards,
    Prashant

    Hi Prashant,
    You haven't mentioned if you are using Webdynpro or HTMLB JSPDynPages.
    If its the webdynpro, you can declare then and there itself that the content to the table column is a row my changing the property.
    If it is a HTMLB component TableVIew that you are trying to use, you can include a TableCellRenderer Class which renders the cells of the table at the runtime as links or buttons or whatever you want to put.
    So let me know, what exactly you are trying to use, then finding a solution will be more clear.
    regards,
    Sujana

  • Space in table cell content

    Hi,
    I want to add some space before and after the table cell content. I am using setIntercellSpacing() method to achieve that and I could get the required functionality. But its adding space in the Table Header also which looks odd. Is there any way to set the spacing only for the cell and not for the table header.
    Let me know if anyone has solution for this.
    Thanks and Regards,
    R.Vishnu Varadhan.

    I find this behaviour of setIntercellSpacing() very annoying, too. Why the hell did the Swing developers implement it that way?
    Nevertheless, you can create the desired effect by writing a custom cell renderer, but that is if course more work than that single method call.

  • Wrapping table cell contents

    Hi
    I have a requirement where i need to wrap my table cell contents.I have chekced all the properties of table but none serves my purpose.Kindly help in this direction.
    NWDS version : 7.3
    Server version : 7.3 SP02
    Thanks
    Monika

    Hi Monika
    Wrapping property is not available at table level.
    The individual columns header and content in the text views only you can wrap.
    If the table column cell editor is a Text View , then you can see the Wrapping property and you can change it to true for wrapping.. For column headers also you can set the property.
    Regards
    Venkata KALYAN

  • Autofit column width to table cell content in Pages

    Hello,
    Would anyone know how to autofit the column width of a table cell in Pages '09?
    I have searched Pages Help to no avail.
    Thank you very much in advance.

    There is a checkbox in the table inspector to auto-resize to fit content. Unfortunately, that only seems to work with rows, not columns.

  • Link to Table cell content...

    Hi,
    I am Prashant.i am developing SDAP Portal.In that,I am populating data to the .NET SAP NwtWieaver Table control dynamically.I am also adding LinkToAction control to the table cell.I want some action should be carried out on clicking on that link.For that i am using LeadSelect event.
    Actually it works fine when i am putting data at design time by editing rows.But it does not work when i gather data from at run time.When i gather data at run time and when i click on some link,all the table data disappears.
    I can not understand why this is happened?. What properties should i set for the same.If any one knows, Please help me.
    Regards,
    Prashant J.

    Soory it is not SDAP.It is SAP....

  • Expanding/Enhancing a table cell contents

    I have a search utility that shows my database query results in a read-only table.
    Say this table T has columns C1-C5 and rows R1-R5.
    Data returned in column C3 has a VARCHAR count between 2000-4000.
    Currently the table only displays somewhere in the region of 500 characters (on mouse hover) for this column, the page depends how far you can stretch the table column.
    My question is three part:
    - is there an ADF component that will allow me to copy the contents of a cell, for example, column C3 row R1.
    - is there an ADF component that will allow me to expand the cell(C3/R1) in a popup window? (And enable other cells in the C3 column to do the same)
    - is there an ADF component that will allow me to open the cell contents in a new window? or .txt (And enable other cells in the C3 column to do the same)
    Jdev Version (11.1.2.4)

    User, which jdev version do you use?
    All this can be done.
    1) Yes, but this depends on the use case (e.g. per drag & drop or copy & paste using the keyboard)
    2) Yes a popup which you e.g. show on hoover which shows all text or you click on the cell and open a popup
    3) Yes, if your table is in click to edit mode or you show a form with all attributes of the selected row in a new window (which allows you to layout the components better).
    Timo

  • Table Cell Contents Disappears Please HELP!!!!

    PROBLEM: I have a different tables within different table cells in the Master table. One table per Master cell. Once I click on a table cell (0,0) and click on another table cell (1,1) the cell (0,0) blanks out. Likewise with other cells so that if I've click on all the cells in the Master Table and then clicked somewhere else all cell contents have disappeared.
    QUESTION: Do I need to call some UI refresh procedure????? I have a cell renderer which returns the table for each Master's Cell.
    I don't if this is clear but please help!
    Thanks

    Hi,
    the problem is that the DefaultCellEditor can't handle tables.
    So you have to write your CellEditor, which returns another table as Editor.
    class YourTableCellRenderer implements  TableCellRenderer{
        private  JTable table = new JTable();
        public Component getTableCellRendererComponent(JTable table,
                                                       Object value,
                                                       boolean isSelected,
                                                       boolean hasFocus,
                                                       int row,
                                                       int column){
             // set Data and Layout
             return table;
    }then set the Editor to your MasterTable (master) with.
    master.setCellEditor(TableCellEditor anEditor) or
    master.setDefaultEditor(Class columnClass,
                                 TableCellEditor editor);Hope this Helps.
    Michael

  • Add Hyperlink to table cell content dynamically

    Hello,
              I have a xdp form created in Livecycle designer. We populate a table by dynamically merging XML to this xdp form uing livecycle FormServices.
    For example:
    the XML:
    <data>
    <person>
         <name> George</name>
         <age>11</age>
    </person>
    <person>
         <name> John</name>
         <age>30</age>
    </person>
    </data>
    populated in table of pdf:
    Name
    Age
    George
    11
    John
    30
    How do I add the hyper link to "George", "John" programmatically, so it can be link to some other URL.
    Thanks,
    Joanna

    So my table is like this:
    Product
    Price
    Apples
    1.29
    Oranges
    2.49
    Grapes
    1.99
    and my XML is like this:
    <
    Product ProductType="Apples">
    <URL>www.apples.com</URL>
    <Price>1.29</Price>
    </Product>
    <
    Product ProductType="Oranges"> 
    <URL>www.oranges.com</URL>
    <Price>2.49</Price>
    </Product>
    <
    Product ProductType="Grapes"> 
    <URL>www.grapes.com</URL>
    <Price>1.99</Price>
    </Product>
    What I want to do is populate the table from the XML file, and make the URL element be linked from the product name (Apples for instance) at runtime  when I fill the table.  Any ideas?

  • Centering table cell content in panel grid

    How can I center the content of the cells in a table grid so it would end up something like this:
    <table>
    <tr>
    <td align="center">

    You can do that using stylesheet. You can look at the
    repeater demo example for ideas. The corresponding
    stylesheet class is components/web/stylesheet.css .
    Hope this helps.
    -JayashriI think we need more powerfull layout oriented components.
    XAML, XUL, ADF all of them have powerfull layout components library.
    Maybe it's time start working in this direction.
    I'm sure that JSF must provide in near future more powerfull layout related components library, no doubt here!
    After that it will be possible to remove from styles classes and jsp code everything that was used for layout.
    Layout components will take care about align components, preferred size and etc.
    We need minimize number of style classes.
    That possible if you will make them more universal.
    But no way to make universal style classes with layout related attributes inside them.
    Take a look on simple layout case:
    <s:row align="opposite" styleClass="footerPage">
         <h:outputText value="#{bundle.copyright}"/>
         <h:outputText value="#{bundle.terms}"/>
    </s:row>
    public class RowRenderer extends HtmlBasicRenderer {
    public RowRenderer() {
    super();
    public boolean getRendersChildren() {
    return true;
    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
    if (!component.isRendered())
    return;
    ResponseWriter writer = context.getResponseWriter();
    writer.startElement("div", component);
    writeIdAttributeIfNecessary(context, writer, component);
    String styleClass = (String) component.getAttributes().get("styleClass");
    if (styleClass != null) {
    writer.writeAttribute("class", styleClass, "styleClass");
    Util.renderPassThruAttributes(writer, component);
    public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
    if (!component.isRendered())
    return;
    Iterator kids = null;
    String style = null;
    int i = 0;
    String align = (String) component.getAttributes().get("align");
    if (align == null) align = "start";
    if (null != (kids = getChildren(component))) {
    while (kids.hasNext()) {
    UIComponent child = (UIComponent) kids.next();
    if (!child.isRendered())continue;
    style = (String) child.getAttributes().get("style");
    style = (style != null) ? style + ";" : "";
    if ( (align == "start") || (align == "left"))
    style += "float: left;";
    else
    if ( (align == "end") || (align == "right"))
    style += "float: right;";
    else
    if (align == "opposite") {
    if ((i % 2) == 0)
    style += "float: left;";
    else
    style += "float: right;";
    child.getAttributes().put("style", style);
    encodeRecursive(context, child);
    i++;
    public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
    if (context == null || component == null) {
    throw new NullPointerException(Util.getExceptionMessageString(
    Util.NULL_PARAMETERS_ERROR_MESSAGE_ID));
    if (!component.isRendered())
    return;
    ResponseWriter writer = context.getResponseWriter();
    writer.endElement("div");
    It's good idea in many layout situations to use tableless layout.
    Row component just simple demonstration how it work.
    There are some problems with implementation and using tableless layout
    but at least in some cases it's good choise.
    I'm ready to provide plenty suggestions in area of creating and using layout components.
    Just don't know if you have interest to discuss that matter.
    Vladimir

  • Table cell contents won't show

    I've added a simple sum formula but the result doesn't show. In fact the cell appears totally blank. This has happened in a couple of other cells where the number (single digit) won't show unless I double click and then don't move the cursor. I've checked formatting, altered the size and generally fiddled with all the format settings but can't get the formula result to show. Really appreciate some help.

    Thanks, I realise that. The problem was in a table in Pages but I know what you mean. I have since solved it though. The cell was too small to fit the result and therefore showed nothing. Enlarging the cell/table did the trick.

  • Images as table cell content

    Hi,
    we are using thumbnail images for representing some employee status in a table. Images are displayed successfully.
    Problem is the white space between two cells, we want to eliminate the space between two cells. I have tried cell width property but it doesn't help.
    Any other suggestions to achieve this.
    Thanks a lot.
    Rgds

    Hi Sharanya,
    I could not find property cell spacing and cell padding property for cell.
    I am on Nw04.
    Is there other way we can achieve this.
    Rgds

  • SAP GUI Java 7.10 rev 5: Copy cells content from ALV does not work (OSX)

    Hi all,
    I'm trying rev 5 for OSX. ALV aesthetics is really great but: copy cells content is not possible anymore.
    Nothing happens with command+C.
    I cannot copy anymore just a part of the cell content.
    Trying all possible key combinations, something is copied with Ctrl+C. When I paste it, the pasted content is something like this:
    (0100),RID(),CID(),RIDN(0),E(true),RO(false),CTL(-1)     (0000012338),RID(),CID(),RIDN(0),E(true),RO(false),CTL(-1)     (),RID(),CID(),RIDN(0),E(true),RO(false),CTL(-1)     (),RID(),CID(),RIDN(0),E(true),RO(false),CTL(-1)     (),RID(),CID(),RIDN(0),E(true),RO(false),CTL(-1)     (),RID(),CID(),RIDN(0),E(true),RO(false),CTL(-1)
    where "0000012338" is the content I wanted to copy.
    Any suggestion?
    Thanks,
    Lorenzo

    Hello Lorenzo,
    thanks for the feedback. We are working on it and if all goes well, a solution will be provided with 7.10 rev 6.
    Best regards
    Rolf-Martin

  • Change wording in Table of Contents

    In the Table of Contents is it possible to change the text that says "Slide Title" to something else?
    Thanks.

    I don't think Steve is talking about Slide Labels in the Properties tab.  He's mentioned Table of Contents.  I believe he's referring to the heading in the TOC that says: Slide Title
    If so, then the workaround to change this is to use the same trick that people use when localising these TOC strings for different language outputs.
    Just create a text file with the following text in it.
    [TOCStrings]
    SlideTitle=Module
    Duration=Time
    ClearToolTip=Wipe State
    BookMarkToolTip=book-marking
    NoSearch=String not found
    CurrTime=what
    Name this file as TOCStrings.ini and save it in the folder in which Adobe Captivate is installed. Default path where Adobe Captivate is installed is “C:\Program Files\Adobe\Adobe Captivate 6”.
    For more information, Please refer to the blog post
    http://blogs.adobe.com/captivate/2009/02/changing_default_captions_in_ t.html
    Rod Ward
    http://www.infosemantics.com.au/troubleshoot-adobe-captivate

  • Multiple tables of contents -- any updates?

    I've searched the Pages help topic and came here look to see if I could find any help. I'm writing my dissertation in Pages, and I need to have multiple tables of content: one for the chapters, headings, sub-headings, etc., one for a list of figures, and one for a list of tables.
    I found one thread on this topic that was already closed, and it looks like multiple tables of contents was not possible at that point. Are there any new updates or workarounds that would allow this feature?
    I'd hoped to complete my entire dissertation in Pages but alas, it looks like I'll have to export it to Word and struggle with learning to to TOCs in Word. Bleah.

    Karen,
    Sorry to disappoint but you aren't going to easily achieve what you want with the current version of Pages. Hopefully a newer version will do this. You might want to experiment with NeoOffice in the meantime. It's free and IMHO a less of a struggle than Word.
    In any event, concentrate on the content of your dissertation. When you have the text, the formatting will be a breeze no matter what applications you have at your disposal by then.
    Good luck!

Maybe you are looking for

  • Resize multiple objects at once

    How do I set the height of mutliple objects at once? I'm creating a form and the I want to ensure all the text fields are the some height.

  • Displaying Image on the Emulator

    Hi all, I was trying to display image on to the emulator on canvas,problem is the image is getting failed to load.my code is as follows,and where should i have the image in my filesystem to be displayed on the emulator and what path should i give,my

  • Display sleep settings & Parallels

    Its my observation that whenever am playing video on my iMac the display never goes to sleep, though the settings are set to to 10 mins. However, when am running any videos using Parallels on Windodows 7, the Mac display goes to sleep mode after 10 m

  • Best Way to Print multiples in CS4

    Ok, I have been hating this for a long time, so thought there might be a better way to do it. I frequently get a list from my boss of a bunch of photos to print 4x6 (Epson R1900) there might be 10 or 100 different photos. Most of the time, I don't ne

  • Co-Product & By-Product Costing in PP Scenario

    Dear Frds, Can anybody tell me that, how to do settings/configuration so that I will calculate costs for Co-Product & By-Product along with Header Material in our PP Scenario. Thanks, Naresh