Af:table with tags JSTL.

Hi guys,
I'm tried to use JSTL (c:if) inside component ADF Rich Client (af:table) and it shown me a error message.
Is possible using JSTL with ADF? If is possible, you have a sample? Or a idea for solution this case?
The code that I'm creating is:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:c="http://java.sun.com/jsp/jstl/core"
          xmlns:fn="http://java.sun.com/jsp/jstl/functions"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
    <af:document id="d1">
      <af:form id="f1">
        <af:table value="#{valueTable.paises}" var="row" rowBandingInterval="0"
                  id="t2" varStatus="status">
          <c:if test="#{status.count == 1}">
            <af:forEach items="#{valueTable.paises}" var="cvalue" varStatus="teste">
              <af:column sortable="false" headerText="#{cvalue}" align="start" id="c7">
                <af:outputText value="#{cvalue}#{fn:length(valueTable.paises)}" id="ot6"/>
              </af:column>
            </af:forEach>
          </c:if>
          <c:if test="#{status.count > 1}">
            <af:forEach items="#{valueTable.paises2}" var="cvalue2" varStatus="teste2">
              <af:column sortable="false" headerText="#{cvalue2}" align="start" id="c7">
                <af:outputText value="#{cvalue2}#{fn:length(valueTable.paises2)}" id="ot6"/>
              </af:column>
            </af:forEach>
          </c:if> 
        </af:table>
      </af:form>
    </af:document>
  </f:view> Another information:
I tried using af:switcher but af:switcher only can to be use inside in af:treeTable it can't to be use inside in af:table.

Hi,
the problem with this is that JSTL is parsed at compile time whereas JSF statements are evaluated at runtime. So while you can use JSTL, you can't for the use case you list here.
What about this (forget about your JSTL)
<af:forEach items="#{valueTable.paises}" var="cvalue" varStatus="teste">
  <af:switcher defaultFacet="equal" facetName="#{status.count > 1? 'larger' : 'equals'}">
       <f:facet name="larger">
             <af:column sortable="false" headerText="#{cvalue2}" align="start" id="c7">
                <af:outputText value="#{cvalue2}#{fn:length(valueTable.paises2)}" id="ot6"/>
              </af:column>
              </af:column>
       </f:facet>
       <f:facet name="equals">
               <af:column sortable="false" headerText="#{cvalue}" align="start" id="c7">
                <af:outputText value="#{cvalue}#{fn:length(valueTable.paises)}" id="ot6"/>
       </f:facet>
  </afSwitcher>
</af:forEach> Note that chances are that the table doesn't like the switcher as it expects a column. However, I didn't try it ;-)
The alternative would be to use
<af:forEach items="#{valueTable.paises}" var="cvalue" varStatus="teste">  
             <af:column sortable="false" headerText="#{status.count > 1?  cvalue2 : cvalue}" align="start" id="c7">
                <af:outputText value="#{cvalue2}#{fn:length(valueTable.paises2)}" id="ot6" rendered=#{status.count > 1}/>
                <af:outputText value="#{cvalue}#{fn:length(valueTable.paises)}" id="ot7" rendered=#{!status.count > 1}/>
            </af:column>
</af:forEach> Frank
Edited by: Frank Nimphius on May 14, 2010 5:13 PM
Edited by: Frank Nimphius on May 14, 2010 5:14 PM

Similar Messages

  • XMLGEN: Produce XML dump of a table WITH tags for null column values

    I am new to generating XML so bear with me....
    We have a customer who needs an XML extract of data, including tags for any column that is null.
    I created a simple test case below using DBMS_XMLGEN.getXML. The first row (A1) has no null values and thus tags for columns A, BEE and CEE are produced. The second row (A2) has null in column BEE and thus tags for only columns A and CEE are produced.
    Is there a way to force a tag for null column BEE in the second row?
    create table foo (A varchar2(10), BEE number, CEE date);
    insert into foo values ('A1',1,sysdate);
    insert into foo values ('A2',null,sysdate);
    SELECT DBMS_XMLGEN.getXML('SELECT * FROM foo') FROM dual;
    <ROWSET>
    <ROW>
    <A>A1</A>
    <BEE>1</BEE>
    <CEE>27-SEP-12</CEE>
    </ROW>
    <ROW>
    <A>A2</A>
    <CEE>27-SEP-12</CEE>
    </ROW>
    </ROWSET>

    What's the database version? (SELECT * FROM v$version)
    Could you use this instead :
    SQL> select xmlserialize(document
      2           xmlelement("ROWSET",
      3             xmlagg(
      4               xmlelement("ROW",
      5                 xmlelement("A", a)
      6               , xmlelement("BEE", bee)
      7               , xmlelement("CEE", cee)
      8               )
      9             )
    10           )
    11         -- for display purpose only :
    12         as clob indent
    13         )
    14  from foo
    15  ;
    XMLSERIALIZE(DOCUMENTXMLELEMEN
    <ROWSET>
      <ROW>
        <A>A1</A>
        <BEE>1</BEE>
        <CEE>2012-09-27</CEE>
      </ROW>
      <ROW>
        <A>A2</A>
        <BEE/>
        <CEE>2012-09-27</CEE>
      </ROW>
    </ROWSET>
    Or,
    SQL> select xmlserialize(document
      2           xmlquery(
      3             '(#ora:view_on_null empty #)
      4             {
      5               <ROWSET>{fn:collection("oradb:/DEV/FOO")}</ROWSET>
      6             }'
      7             returning content
      8           )
      9           as clob indent
    10         )
    11  from dual;
    XMLSERIALIZE(DOCUMENTXMLQUERY(
    <ROWSET>
      <ROW>
        <A>A1</A>
        <BEE>1</BEE>
        <CEE>2012-09-27</CEE>
      </ROW>
      <ROW>
        <A>A2</A>
        <BEE/>
        <CEE>2012-09-27</CEE>
      </ROW>
    </ROWSET>
    (where "DEV" is my test schema)
    If you want to stick with DBMS_XMLGEN, you're gonna have to use PL/SQL and setNullHandling procedure.
    Edited by: odie_63 on 27 sept. 2012 17:14

  • Text in internal table with HTML tags.

    Hi ,
    I have Text in internal table with HTML tags.
    The text has to be shown in output of smartform as formatted text.
    That is the smartform should READ the HTML TAGS , convert the text accordingly and show in the output as formatted text.
    I dont want to make a webform . This is for NORMAL SPOOL output and NOT for WEB OUTPUT.
    IN SHORT
    :- the text in the internal table is like this ( please ignore the dot in the HTML TAG )--
    <html><.U>this is heading</.U>Line with no break<.br>some content text</.br>
    </html>
    OUTPUT
    <U>this is heading</U>Line with no break<br>some content text</br>
    1)  Can I can get the output and store it as text in a string variable and show in the smartform  ?
    In this case I want to know how to convert  and store in a variable  in sap .
    OR
    2) Can the text element convert the text with HTML TAGS to html formatted output and show it ?
    Regards,
    Jagat

    Hi,
    Use the FM SCP_REPLACE_STRANGE_CHARS and check
    See the
    Converting html special characters to plain characters (e.g. u00FC to u00FC)

  • Pb with tag x:parse... JSTL

    Hello,
    I am begining in JSTL, I went to parse documents xml with the tags JSTL, but it doesn't work ...
    I have a version of tomcat 5.0.25 and JDK 1.4.2
    my Pb is as follows: that one I use the tags jstl for parser xml, according to the code below: essai.jsp
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <c:import url="essai.xml" var="xml" />
    <HTML>
    <BODY>
    <x:parse doc="${xml}" var="test" scope="application" />
    </BODY>
    </HTML>
    in the execution, I have the following error: "the attribute "doc". is incorrect for the tag parse according to the TLD indicated"
    the same error when I change the attribute "doc" by "xml":
    <x:parse xml="${xml}" var="test" scope="application" />
    thank you for your help.

    There is no attribute "doc" for <x:parse> in JSTL. The correct attribute name is "xml".
    If you still get the error after you make the change, try restarting the servlet/JSP engine again. Perhaps it's hanging onto a cached version of the page.

  • Re: Announce: J2EE MVC training using Struts with Standard Tags (JSTL)   8/2 in NYC

    Standard J2EE MVC training using Struts with Standard Tags (JSTL)
    -We have done more Struts training than anyone. This class adds Standard Tag Libs (JSTL) with MVC and a portal discussion.
    Full Syllabus is at :
    http://www.basebeans.com/syllabus.jsp
    NYC on 8/2.
    This is the last week to sign up :
    http://www.basebeans.com/classReservation.jsp
    More dates(tentative):
    8/9 - Chicago downtown Marriott
    8/16 - Atlanta downtown Marriott
    8/23 - Austin downtown Marriott
    To keep up on upcoming MVC training sign up at:
    http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers
    Hope to see you,
    Thanks,
    Vic
    Ps. 1: Set your newsreader such as Outlook Express or Netscape to news.basebeans.com for Open Standard news groups like JDO, Apache, SOAP, etc.
    Ps 2: The sample app will be available end of next week at:
    http://www.basebeans.com/downloads.jsp

    i have same problem with
    CLI130 Could not create domain, domain1
    then i try these things with PATH stuff but it haven't worked for me...
    then i tried to search windows registry for string domain1 and nothing found...
    then i searched my profile directory (on windowsxp c:\Documents and Settings\user on linux /home/user) for files that containd string domain1 and i found some .adadmin* files (as i remember there were 3 files) then i deleted them, try to install sun app server and it works for me... there are still some warnings but at least installation finishes and files were not deleted...
    i hope this help...
    for me it does

  • Best Practice loading Dimension Table with Surrogate Keys for Levels

    Hi Experts,
    how would you load an Oracle dimension table with a hierarchy of at least 5 levels with surrogate keys in each level and a unique dimension key for the dimension table.
    With OWB it is an integrated feature to use surrogate keys in every level of a hierarchy. You don't have to care about
    the parent child relation. The load process of the mapping generates the right keys and cares about the relation between the parent and child inside the dimension key.
    I tried to use one interface per Level and created a surrogate key with a native Oracle sequence.
    After that I put all the interfaces in to one big Interface with a union data set per level and added look ups for the right parent child relation.
    I think it is a bit too complicated making the interface like that.
    I will be more than happy for any suggestions? Thank you in advance!
    negib
    Edited by: nmarhoul on Jun 14, 2012 2:26 AM

    Hi,
    I do like the level keys feature of OWB - It makes aggregate tables very easy to implement if your sticking with a star schema.
    Sadly there is nothing off the shelf with the built in knowledge modules with ODI , It doesnt support creating dimension objects in the database by default but there is nothing stopping you coding up your own knowledge module (use flex fields maybe on the datastore to tag column attributes as needed)
    Your approach is what I would have done, possibly use a view (if you dont mind having it external to ODI) to make the interface simpler.

  • Generate XML with tag names generated dynamically.

    Hi Mark,
    I want to generate xml in the following way using SQLXoperators.
    But only problem is when i use the operator, the tag name should be supplied before in hand as parameter.
    So it works well when the data for the tags are stored in seperate columns then its pretty simple.
    But lets say the whole hierarchy of the nodes is stored in one table with ID-->PARENTID relationship and the text is stored in a column called description.
    Now using CONNECT BY PRIOR i get the hierarchy and now based on the description value i have to generate the tags and then fill in the other details.
    This is just a summary of what i want. the below sample has much more than that and actual data comes from more than one table.
    But if i get the solution for what i asked before i think i can build the test of the thing.
    <?xml version="1.0" encoding="UTF-8"?>
    <SequenceData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SequenceData.xsd">
         <Header>
              <TemplateName>Template(XML)</TemplateName>
              <TemplateVersion>1.1</TemplateVersion>
              <CreatedUser>rsh2kor</CreatedUser>
              <CreatedDate>17-06-2005 12.12.22</CreatedDate>
         </Header>
         <List>
              <LoadPoints>
                   <LoadPoint description="Loadpoint1_in_list(level one)">
                        <SetPhase>
                             <SetPhaseVariables>
                                  <SetPhaseVariable>
                                       <Name>pRail</Name>
                                       <Unit>bar</Unit>
                                       <Value>100</Value>
                                       <SettlingTime>0.0</SettlingTime>
                                  </SetPhaseVariable>
                             </SetPhaseVariables>
                             <MonitoredVariables>
                                  <MonitoredVariable>
                                       <ID>12344<ID>
                                       <Name>MeasPoint</Name>
                                       <Unit>pascal</Unit>
                                       <Limit>10</Limit>
                                       <Tolerance>0.0</Tolerance>
                                       <Operator>&gt;</Operator>
                                       <AlertType>STOP</AlertType>
                                  </MonitoredVariable>
                             </MonitoredVariables>
                        </SetPhase>
                        <WaitPhase>
                             <WaitingTime>10</WaitingTime>
                             <MonitoredVariables>
                                  <MonitoredVariable>
                                       <Name>MeasPoint</Name>
                                       <Unit>pascal</Unit>
                                       <Limit>10</Limit>
                                       <Tolerance>0.0</Tolerance>
                                       <Operator>&gt;</Operator>
                                       <AlertType>STOP</AlertType>
                                  </MonitoredVariable>
                             </MonitoredVariables>
                        </WaitPhase>
                        <MeasPhase>
                             <MeasPhaseVariables>
                                  <MeasPhaseVariable>
                                       <Name>MeasPoint</Name>
                                       <Unit>pascal</Unit>
                                       <Result>0</Result>
                                  </MeasPhaseVariable>
                             </MeasPhaseVariables>
                        </MeasPhase>
                   </LoadPoint>
              </LoadPoints>
         </List>
         <Loop Iteration="5">
              <LoadPoints>
                   <LoadPoint description="Loadpoint2_in_Loop">
                        <SetPhase>
                             <SetPhaseVariables>
                                  <SetPhaseVariable LoopCount="1">
                                       <Name>pRail</Name>
                                       <Unit>bar</Unit>
                                       <Value>10</Value>
                                       <SettlingTime>0.0</SettlingTime>
                                  </SetPhaseVariable>
                                  <SetPhaseVariable LoopCount="2">
                                       <Name>pRail</Name>
                                       <Unit>bar</Unit>
                                       <Value>20</Value>
                                       <SettlingTime>0.0</SettlingTime>
                                  </SetPhaseVariable>
                                  <SetPhaseVariable LoopCount="3">
                                       <Name>pRail</Name>
                                       <Unit>bar</Unit>
                                       <Value>30</Value>
                                       <SettlingTime>0.0</SettlingTime>
                                  </SetPhaseVariable>
                                  <SetPhaseVariable LoopCount="4">
                                       <Name>pRail</Name>
                                       <Unit>bar</Unit>
                                       <Value>40</Value>
                                       <SettlingTime>0.0</SettlingTime>
                                  </SetPhaseVariable>
                                  <SetPhaseVariable LoopCount="5">
                                       <Name>pRail</Name>
                                       <Unit>bar</Unit>
                                       <Value>50</Value>
                                       <SettlingTime>0.0</SettlingTime>
                                  </SetPhaseVariable>
                             </SetPhaseVariables>
                             <MonitoredVariables>
                                  <MonitoredVariable>
                                       <Name>MeasPoint</Name>
                                       <Unit>pascal</Unit>
                                       <Limit>10</Limit>
                                       <Tolerance>0.0</Tolerance>
                                       <Operator>&gt;</Operator>
                                       <AlertType>STOP</AlertType>
                                  </MonitoredVariable>
                             </MonitoredVariables>
                        </SetPhase>
                        <WaitPhase>
                             <WaitingTime>10</WaitingTime>
                             <MonitoredVariables>
                                  <MonitoredVariable>
                                       <Name>MeasPoint</Name>
                                       <Unit>pascal</Unit>
                                       <Limit>10</Limit>
                                       <Tolerance>0.0</Tolerance>
                                       <Operator>&gt;</Operator>
                                       <AlertType>STOP</AlertType>
                                  </MonitoredVariable>
                             </MonitoredVariables>
                        </WaitPhase>
                        <MeasPhase>
                             <MeasPhaseVariables>
                                  <MeasPhaseVariable>
                                       <Name>MeasPoint</Name>
                                       <Unit>pascal</Unit>
                                       <Result>0</Result>
                                  </MeasPhaseVariable>
                             </MeasPhaseVariables>
                        </MeasPhase>
                   </LoadPoint>
              </LoadPoints>
              <List>
                   <LoadPoints>
                        <LoadPoint description="Loadpoint3_in_list(level two)">
                             <MonitoredVariables/>
                             <SetPhase>
                                  <SetPhaseVariables>
                                       <SetPhaseVariable>
                                            <Name>pRail</Name>
                                            <Unit>bar</Unit>
                                            <Value>100</Value>
                                            <SettlingTime>0.0</SettlingTime>
                                       </SetPhaseVariable>
                                  </SetPhaseVariables>
                                  <MonitoredVariables>
                                       <MonitoredVariable>
                                            <Name>MeasPoint</Name>
                                            <Unit>pascal</Unit>
                                            <Limit>10</Limit>
                                            <Tolerance>0.0</Tolerance>
                                            <Operator>&gt;</Operator>
                                            <AlertType>STOP</AlertType>
                                       </MonitoredVariable>
                                  </MonitoredVariables>
                             </SetPhase>
                             <WaitPhase>
                                  <WaitingTime>10</WaitingTime>
                                  <MonitoredVariables>
                                       <MonitoredVariable>
                                            <Name>MeasPoint</Name>
                                            <Unit>pascal</Unit>
                                            <Limit>10</Limit>
                                            <Tolerance>0.0</Tolerance>
                                            <Operator>&gt;</Operator>
                                            <AlertType>STOP</AlertType>
                                       </MonitoredVariable>
                                  </MonitoredVariables>
                             </WaitPhase>
                             <MeasPhase>
                                  <MeasPhaseVariables>
                                       <MeasPhaseVariable>
                                            <Name>MeasPoint</Name>
                                            <Unit>pascal</Unit>
                                            <Result>0</Result>
                                       </MeasPhaseVariable>
                                  </MeasPhaseVariables>
                             </MeasPhase>
                        </LoadPoint>
                   </LoadPoints>
              </List>
         </Loop>
    </SequenceData>
    Pls help as soon as possible.
    Thanks.

    I'm not Mark, but check out this article it may be helpful.
    http://www.oracle.com/technology/oramag/oracle/05-may/o35asktom.html
    In 10g there are other SQL statements besides connect by prior for parent child relationships.
    such as:
    CONNECT_BY_ROOT—returns the root of the hierarchy for the current row; this greatly simplifies our query. (See below for an example).
    CONNECT_BY_ISLEAF—is a flag to tell you if the current row has child rows.
    CONNECT_BY_ISCYCLE—is a flag to tell you if the current row is the beginning of an infinite loop in your hierarchy. For example, if A is the parent of B, B is the parent of C, and C is the parent of A, you would have an infinite loop. You can use this flag to see which row or rows are the beginning of an infinite loop in your data.
    NOCYCLE—lets the CONNECT BY query recognize that an infinite loop is occurring and stop without error (instead of returning a CONNECT BY loop error).

  • How can I represent a table with JSF ?

    Hi,
    I want to replace my (html) table with a JSF representation..
    I found the tag <h:dataTable>, and this defines <h:column> but there is no <h:row> !!
    There is an attribute rows to represent the number of rows to display, but how can I add these rows ?
    Thank you

    <h:panelGrid columns="2">
    </h:panelGrid>will produce table with 2 columns and if provided, the next 2 columns will appear in the next row and so forth...

  • Convert Catalog (PSE 5 to PSE 7) Issue with Tags!

    Upon installing PSE7 and attempting to convert my PSE5 catalog I ran into a problem that I had not seen described anywhere else. The information obtained from the various other discussions/forums helped point me in the right direction (conversion logs, etc.) for performing a root-cause analysis and eventually correcting the problem. I wanted to share this info with others to hopefully help prevent somebody else from dealing with this same frustration.
    After installing PSE7 and attempting to execute the conversion process it would fail immediately. I attempted all the normal documented corrections (repair catalog, reconnect photos, backup/restore) with no luck. Upon reviewing the conversion logs I noticed that the failure appeared to occur while the conversion was attempting to process the tags! Interesting, as none of the online items I read had mentioned any problems with tags during the conversion process. I opened the suspect catalog in Microsoft Access 2007 and focused on the table named "FolderTable" which appeared to contain the information pertaining to the tags. Comparing the offending tag (identified as the last tag attempted by the conversion process) with the other entries I noticed two columns appeared to have invalid entries.
    fFolderLongitude
    fFolderLatitude
    Both columns contained the value "1.#QNAN". No idea where those values came from but the rest of the rows had valid numeric values. Within Access I modified the values of these columns to "-181" and "-91" respectfully as these appeared to be the default values for many of the other rows/entries. I exited Access and re-attempted the catalog conversion. Success.......the catalog converted without any problems after making these modifications. Hope this helps others....
    One final note, I've been in IT developing software for computers for over 20 years and can say without queston that after dealing with this situation and reading some of the issues encountered by others that Adobe has done a pathetic job on the code for the conversion process!

    Thanks much for providing such great detail. I haven't heard of the conversion failing before during tag conversion.

  • Form on a Table with Report, 2 Pages

    I have a view and i am using this to create a page as follows for insert/update/delete .
    (1) create application from scratch
    (2) on page 1 using wizard choice "Form on a Table with Report, 2 Pages"
    (3) Follows the screens and create the 2 page where first page is a report and when i click on edit(in my case) it goes to next page for insert/update/delete.Everything like insert/update/delete works fine .
    Now this view has say three columns
    (1) element_type_id
    (2) element_name
    (3) yesnoflag
    changing element_name and yesnoflag column is ok but then i need to have element_type_id corresponding to the element_name from some other table.
    Question1
    How should i get the element_type_id corresponding to the element_name .so when i create a new record it goes to page 2 and i can provide LOV for element_name and enter into yesnoflag, how can i get the element_type_id populated corresponding to the element_name entered.
    Question2
    Also in my application i have name element_type_id as primary key .I am not sure if thats a good idea or should i make element_name as primary key ?
    please help.
    Thanks,
    Sachin

    hey rui--
    by "adjust your html", i simply meant that you should look at your page, think about the html that's being used, and adjust it as necessary to make your data wrap as desired. now that i'm pretty sure i understand your issue, i can tell you the adjustment. you're saying that your form shows your long column "correctly" with data broken up onto separate lines by carriage returns or linefeeds. when you display that same data in your report, those carriage returns ( chr(13) ) and/or linefeeds ( chr(10) ) aren't observed. that's because they don't mean much in regular html. two ways to approach this would be:
    a) replace your carriage returns with explicit <br> tags to get the breaks that you want...
    select test_id, replace(test_description,chr(13)) test_desc from my_table;
    b) wrap your column with <pre> tags to preserve all the original formatting of your data...
    select test_id, '<pre>'||test_description||'</pre>' test_desc from my_table;
    ...and you could, of course, do option B in your report row template if you'd like.
    hope this helps,
    raj

  • Table with fixed header and scroll bar

    Was able to use Dreamweaver 2004 to set up a table to display
    data from a MySQL table. But then the customer wanted to have a
    scroll bar on one side and fixed headers at the top "like Excel",
    because the number of rows retrieved were too long to fit on a
    page. This was harder than I thought. I had to use CSS and
    Javascript with a lot of help to make this happen. Then it didn't
    work in IE7, so I had to use a different approach for IE. I got it
    to almost work perfectly in IE7. It just has a tiny bit of the
    table visible scrolling by above the header rows.
    http://www.ykfp.org/php/lyletrap/tabletotalscss13.php
    Why does Microsoft make this so difficult? Why aren't web standards
    good enough for Microsoft? Is there a better approach to tables
    with scroll bars?

    When things go sour in any browser, validate your code.  I see you have some unclosed <table> tags which could effect page rendering.
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.ykfp.org%2Fphp%2Flyletrap%2Ft abletotalscss09.php
    If you still have problems with IE8 after fixing the code errors, try adding this meta tag to your <head>.  It forces IE8 into IE7 mode.
    <meta http-equiv="X-UA-Compatible" content="IE=7">
    Hope that helps,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Tables with varying columns imported from XML

    Hi,
    I have an XML file for a product catalog. Each product has Name, SKU, Image, Description and a Table with some data in it. Each table is different is size, varying number of columns and rows.
    I have anchored objects for some of the elements like Image or SKU in my template.
    When I load the XML I check 'Clone repeating elements' upon import so I can maintain the various anchored frames for my elements. However it breaks the tables. It appears that each new table is trying to copy the previous table's exact number of rows and columns. If I uncheck this option then I get the tables in right but I lose the rest of the formatting.
    Any idea how I can handle this?
    Thanks,
    Luke

    Luke,
    We had the same problem doing a table of data that had varying columns and rows. For us, this was handled by adding table information such as cell width and cellstyle on the incoming XML (generated through a backend system that was also gathering the data into XML files, through using xml templates). We found that placeholder tables were not an option if you wanted the columns to be flexible, so instead the tables were being built by the XML.
    If you are not using a backend system or don't have a way to customize the incoming data, I think you may be able to use XSLT as an intermediate way to apply more information to the XML (cell widths, etc) I am copying dummy tables below to show how the XML we used looked coming into the Indesign document. This code would all be contained within opening and closing "Root" tags in the XML. There are 3 separate tables (one called Summary, one actually called Table and one called Legend), each with its own cell widths and number of rows. The data container holds all tables, and a table growing in length will push the next table down on the page (or to the next page).
    Note that each table has a different tag (name), but is described as a table through the information contained in its opening tag's attributes. We also used both namespaces (4.0 and 5.0) to take advantage of cellstyle as well as pstyle tags in the table body, allowing each cell and copy block to be styled differently when needed.
    <data>
            <Summary xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/" aid:table="table" aid:trows="1" aid:tcols="2">
                <Cell aid:table="cell" aid:ccolwidth="200" aid:theader="" aid:ccols="1" aid:crows="1" aid5:cellstyle="myHighlightCellstyle" aid:pstyle="myBoldParagraphStyle">A brand<superScript>®</superScript> statement</Cell>
                <Cell aid:table="cell" aid:ccolwidth="130" aid:ccols="1" aid:crows="1" aid5:cellstyle="myHighlightCellstyle" aid:pstyle="myTextParagraphStyle">More info beside the brand</Cell>
            </Summary>
            <Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/" aid:table="table" aid:trows="3" aid:tcols="4">
                <Cell aid:table="cell" aid:ccolwidth="95" aid:theader="" aid:crows="1" aid:ccols="1" aid5:cellstyle="headerCell" aid:pstyle="headerCellP">Brand</Cell>
                <Cell aid:table="cell" aid:ccolwidth="95" aid:theader="" aid:crows="1" aid:ccols="1" aid5:cellstyle="headerCell" aid:pstyle="headerCellP">Product Name</Cell>
                <Cell aid:table="cell" aid:ccolwidth="70" aid:theader="" aid:crows="1" aid:ccols="1" aid5:cellstyle="headerCell" aid:pstyle="headerCellP">Price</Cell>
                <Cell aid:table="cell" aid:ccolwidth="70" aid:theader="" aid:crows="1" aid:ccols="1" aid5:cellstyle="headerCell" aid:pstyle="headerCellP">Details</Cell>
                <Cell aid:table="cell" aid:ccolwidth="95" aid:crows="1" aid:ccols="1" aid5:cellstyle="regularCell" aid:pstyle="regularCellP">Acme</Cell>
                <Cell aid:table="cell" aid:ccolwidth="95" aid:crows="1" aid:ccols="1" aid5:cellstyle="regularCell" aid:pstyle="regularCellP">Widget</Cell>
                <Cell aid:table="cell" aid:ccolwidth="70" aid:crows="1" aid:ccols="1" aid5:cellstyle="regularCell" aid:pstyle="regularCellP">$9.99</Cell>
                <Cell aid:table="cell" aid:ccolwidth="70" aid:crows="1" aid:ccols="1" aid5:cellstyle="regularCell" aid:pstyle="regularCellP"><Image href="file:///Users/administrator/Desktop/images/widget.tif"></Image></Cell>
                <Cell aid:table="cell" aid:ccolwidth="95" aid:crows="1" aid:ccols="1" aid5:cellstyle="accentCell" aid:pstyle="accentCellP">Smiles Inc</Cell>
                <Cell aid:table="cell" aid:ccolwidth="95" aid:crows="1" aid:ccols="1" aid5:cellstyle="accentCell" aid:pstyle="accentCellP">Happy Widget</Cell>
                <Cell aid:table="cell" aid:ccolwidth="70" aid:crows="1" aid:ccols="1" aid5:cellstyle="accentCell" aid:pstyle="accentCellP">$11.99</Cell>
                <Cell aid:table="cell" aid:ccolwidth="70" aid:crows="1" aid:ccols="1" aid5:cellstyle="accentCell" aid:pstyle="accentCellP"><Image href="file:///Users/administrator/Desktop/images/widget.tif"></Cell>
            </Table>
            <Legend xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/" aid:table="table" aid:trows="1" aid:tcols="1">
                <Cell aid:table="cell" aid:ccolwidth="330.0" aid:crows="1" aid:ccols="1" aid5:cellstyle="legendCell" aid:pstyle="legendCellP">Table legend, or other instruction/info below the table go here.</Cell>
            </Legend>
        </data>

  • How to setup a gridPane/Table with a customer header/footer

    Hello -
    I'm going crazy trying to figure this one out and any help would be greatly appreciated!
    I'd like to create a table with a custom 4 column header and footer, but with a single cell as the "main" section holding a child table(another gridPanel, I presume). I've been using the headerClass property on the gridPanel, but not sure what this actually DOES. Do I need to use the "facet" tags manually to set up a header row? Basically, I'd like the effect of using graphics to create a "framed" effect for another table. I hope I've explained this okay :) Any thoughts/help would be so appreciated!
    Thanks,
    Tom

    Hello -
    I'm going crazy trying to figure this one out and any
    help would be greatly appreciated!
    I'd like to create a table with a custom 4 column
    header and footer, but with a single cell as the
    "main" section holding a child table(another
    gridPanel, I presume). I've been using the
    headerClass property on the gridPanel, but not sure
    what this actually DOES. Do I need to use the
    "facet" tags manually to set up a header row?
    Basically, I'd like the effect of using graphics
    ics to create a "framed" effect for another table.
    I hope I've explained this okay :) Any
    ny thoughts/help would be so appreciated!
    Thanks,
    TomIn JSF terms, using a Panel Grid component, you can specify a header that goes across the top of the entire grid using a "header" facet. Likewise, the "footer" facet can set a footer that goes across the entire bottom of the grid. You might want something like this:
    <h:panelGrid ... columns="3">
      <f:facet name="header">
        <h:outputText value="This Is The Entire Header"/>
      </f:facet>
      <f:facet>
        <!-- An image across the bottom of the grid -->
        <h:graphicImage .../>
      </f:facet>
      <h:outputText value="Row 1 Column 1"/>
      <h:outputText value="Row 1 Column 2"/>
      <h:outputText value="Row 1 Column 3"/>
      <h:outputText value="Row 2 Column 1"/>
      <h:outputText value="Row 2 Column 2"/>
      <h:outputText value="Row 2 Column 3"/>
    </h:panelGrid>So, the "headerClass" attribute on a PanelGrid sets the CSS style class that will be used; it does not define the content of the header. Instead, you do that by embedding a component inside the facet.
    Creator doesn't currently have any GUI to help you set up the header and footer facets, but you can still add them in the JSP source mode.
    Craig

  • Copying a table with rollover images & links

    Need help...
    Using Dreamweaver CS4.
    I have a table with rollover images and links from those rollovers"
    I now want to copy and paste the table into other pages, but when I do, my links are broken and the rollovers don't work.
    I have my Site Def preferences set to "Links relative to: Document"
    Is there an easy way to copy & paste a table with rollover graphics and links?
    I've tried dragging the table from the page with the working links onto the different page.  The graphics show up, but the second state of the rollovers soesn't show up, and I get some weird link error:
    Can anyone help?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    <title>Phyllis Bramson</title> 
    <style type="text/css"> 
    <!-- 
    body { 
        background-color: #CCC; 
    --> 
    </style> 
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script> 
    <script type="text/javascript"> 
    <!-- 
    function MM_preloadImages() { //v3.0 
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); 
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) 
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} 
    function MM_swapImgRestore() { //v3.0 
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; 
    function MM_findObj(n, d) { //v4.01 
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { 
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} 
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; 
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); 
      if(!x && d.getElementById) x=d.getElementById(n); return x; 
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    <meta name="Keywords" content="Bramson, artist, Chicago, painter" />
    <meta name="Description" content="Phyllis Bramson is an established Chicago painter and educator." />
    </head> 
    <body onload="MM_preloadImages('common_graphics/menu_paintings1990_rollwhite.gif','common_graph ics/menu_paintings2000_rollwhite.gif','common_graphics/menu_paintings1980_rollwhite.gif',' common_graphics/menu_paintings1970_rollwhite.gif','common_graphics/menu_worksonpaper2000_r ollwhite.gif','common_graphics/menu_worksonpaper1990_rollwhite.gif','common_graphics/menu_ worksonpaper1980_rollwhite.gif','common_graphics/menu_worksonpaper1970_rollwhite.gif','com mon_graphics/menu_scrolldrawings_rollwhite.gif','common_graphics/menu_statement_rollwhite. gif','common_graphics/menu_resume_rollwhite.gif','common_graphics/menu_collections_rollwhi te.gif','common_graphics/menu_exhibitionsnews_rollwhite.gif','common_graphics/menu_links_r ollwhite.gif')">
    <table width="900" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="#666699" scope="col"> </td>
        <td height="30" scope="col"><img src="common_graphics/mast_namebanner.gif" alt="" width="740" height="36" border="0" usemap="#Map2Map2" />
          <map name="Map2Map2" id="Map2Map2">
            <area shape="rect" coords="562,8,719,32" href="mailto:[email protected]" target="_blank" alt="email" />
        </map></td>
      </tr>
      <tr>
        <td width="160" valign="top" bgcolor="#666699" scope="col"><table width="190" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><img src="common_graphics/menu_paintingssculpture_rollnorm.gif" alt="" width="190" height="34" border="0" /></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><a href="/paintings_sculpture/paintings_2000/paintings_2000.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image22','','common_graphics/menu_paintings2000_rollwhite.gif' ,1)"><img src="common_graphics/menu_paintings2000_rollnorm.gif" alt="" name="Image22" width="190" height="20" border="0" id="Image22" /></a></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><a href="/paintings_sculpture/paintings_1990/paintings_1990.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image21','','common_graphics/menu_paintings1990_rollwhite.gif' ,1)"><img src="common_graphics/menu_paintings1990_rollnorm.gif" alt="" name="Image21" width="190" height="21" border="0" id="Image21" /></a></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><a href="/paintings_sculpture/paintings_1980/paintings_1980.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image20','','common_graphics/menu_paintings1980_rollwhite.gif' ,1)"><img src="common_graphics/menu_paintings1980_rollnorm.gif" alt="" name="Image20" width="190" height="21" border="0" id="Image20" /></a></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><a href="paintings_sculpture/paintings_1970/paintings_1970.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image23','','common_graphics/menu_paintings1970_rollwhite.gif' ,1)"><img src="common_graphics/menu_paintings1970_rollnorm.gif" alt="" name="Image23" width="190" height="24" border="0" id="Image23" /></a></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><img src="common_graphics/menu_worksonpaper_rollnorm.gif" alt="" width="190" height="28" border="0" /></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><a href="/works_on_paper/works_on_paper_2000/works_on_paper_2000.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image24','','common_graphics/menu_worksonpaper2000_rollwhite.g if',1)"><img src="common_graphics/menu_worksonpaper2000_rollnorm.gif" alt="" name="Image24" width="190" height="19" border="0" id="Image24" /></a></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><a href="/works_on_paper/works_on_paper_1990/works_on_paper_1990.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image25','','common_graphics/menu_worksonpaper1990_rollwhite.g if',1)"><img src="common_graphics/menu_worksonpaper1990_rollnorm.gif" alt="" name="Image25" width="190" height="22" border="0" id="Image25" /></a></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><a href="/works_on_paper/works_on_paper_1980/works_on_paper_1980.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image26','','common_graphics/menu_worksonpaper1980_rollwhite.g if',1)"><img src="common_graphics/menu_worksonpaper1980_rollnorm.gif" alt="" name="Image26" width="190" height="21" border="0" id="Image26" /></a></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><a href="/works_on_paper/works_on_paper_1970/works_on_paper_1970.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image27','','common_graphics/menu_worksonpaper1970_rollwhite.g if',1)"><img src="common_graphics/menu_worksonpaper1970_rollnorm.gif" alt="" name="Image27" width="190" height="30" border="0" id="Image27" /></a></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><a href="scroll_drawings/scroll_drawings.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image28','','common_graphics/menu_scrolldrawings_rollwhite.gif ',1)"><img src="common_graphics/menu_scrolldrawings_rollnorm.gif" alt="" name="Image28" width="190" height="41" border="0" id="Image28" /></a></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><a href="statement/statement.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image29','','common_graphics/menu_statement_rollwhite.gif',1)" ><img src="common_graphics/menu_statement_rollnorm.gif" alt="" name="Image29" width="190" height="43" border="0" id="Image29" /></a></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><a href="resume/resume1.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image30','','common_graphics/menu_resume_rollwhite.gif',1)"><i mg src="common_graphics/menu_resume_rollnorm.gif" alt="" name="Image30" width="190" height="41" border="0" id="Image30" /></a></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><a href="collections/collections.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image31','','common_graphics/menu_collections_rollwhite.gif',1 )"><img src="common_graphics/menu_collections_rollnorm.gif" alt="" name="Image31" width="190" height="42" border="0" id="Image31" /></a></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#666699" scope="col"><a href="exhibitions_news/exhibitions_news.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image32','','common_graphics/menu_exhibitionsnews_rollwhite.gi f',1)"><img src="common_graphics/menu_exhibitionsnews_rollnorm.gif" alt="" name="Image32" width="190" height="42" border="0" id="Image32" /></a></td>
          </tr>
          <tr>
            <td height="42" valign="top" bgcolor="#666699" scope="col"><a href="links/links.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image33','','common_graphics/menu_links_rollwhite.gif',1)"><im g src="common_graphics/menu_links_rollnorm.gif" alt="" name="Image33" width="190" height="42" border="0" id="Image33" /></a></td>
          </tr>
        </table>      <p> </p></td>
        <td align="left" valign="top"><table border="0" align="left" cellpadding="0" cellspacing="0">
          <tr>
            <td width="30" height="97" scope="col"> </td>
            <td width="330" scope="col"> </td>
            <td width="20" scope="col"> </td>
            <td scope="col"> </td>
          </tr>
          <tr>
            <td scope="col"> </td>
            <td scope="col"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="400" id="FlashID" title="slideshow">
              <param name="movie" value="home/homepage.swf" />
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="8.0.35.0" />
              <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
              <param name="expressinstall" value="Scripts/expressInstall.swf" />
              <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
              <!--[if !IE]>-->
              <object type="application/x-shockwave-flash" data="home/homepage.swf" width="400" height="400">
                <!--<![endif]-->
                <param name="quality" value="high" />
                <param name="wmode" value="opaque" />
                <param name="swfversion" value="8.0.35.0" />
                <param name="expressinstall" value="Scripts/expressInstall.swf" />
                <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                <div>
                  <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                  <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                </div>
                <!--[if !IE]>-->
              </object>
              <!--<![endif]-->
            </object></td>
            <td scope="col"> </td>
            <td valign="bottom" scope="col"><img src="home/homepage_quote.gif" alt="Quote" width="282" height="192" border="0" /></td>
          </tr>
        </table></td>
      </tr>
    </table>
    <map name="Map2Map" id="Map2Map">
      <area shape="rect" coords="562,26,719,50" href="mailto:[email protected]" target="_blank" alt="email" />
    </map> 
    <map name="Map2" id="Map2">
      <area shape="rect" coords="562,26,719,50" href="mailto:[email protected]" target="_blank" alt="email" />
    </map>
    <!-- Start of Google Analytics Code -->
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-12139148-3");
    pageTracker._trackPageview();
    } catch(err) {}
    swfobject.registerObject("FlashID");
    </script>
    <!-- End of Google Analytics Code --></body>
    </html>

  • Scrollable table with fixed header (tutorial? also IE9)

    Hi,
    Does someone know of a tutorial about scrollable tables with a fixed header. Is there one on the adobe site. I found some on the net, but those didn't work for IE9. I favour the simple solutions.
    I tried one, using only a few lines of CSS and the use of the thead and tbody tags in the table, but it didn't work on IE9.
    Here is an example, of what I ment:
    http://rcswebsolutions.wordpress.com/2007/01/02/scrolling-html-table-with-fixed-header/
    I thank those, who red this.

    Thanks, that is a very cool way to divide a layout of a web-page!
    Can I also use this to split up a header and table body region inside a large table you want to present compact inside a webpage?
    html:
    <body>
    <table>
         <thead>
              <th>
              </th>
         </thead>
         <tbody>
              <td>
              </td>
         </tbody>
    </table>
    </body>

Maybe you are looking for

  • Problem installing flash 9 (nothing new I'm sure)

    cuttin to the chase, bought a mac secondhand off a friend with mac os x 10.2.8 on it (explains why such an old version of os x). been trying to upgrade the flash player (which is currently...6 i believe) to 9. have gone through the adobe site and fol

  • Macbook pro (version 10.9.5) crashed

    Hi, My macbook pro crashed quite often recently. i am thinking if anyone could know the reasons. Here is the crash log file. i hope it could help. Thank you. Anonymous UUID:       C31AC9E5-C73D-352D-6370-55C77CC5AE6D Sat Feb  7 17:58:21 2015 panic(cp

  • Wierd files in user preferences folder

    I found several folders in user preferences with names such as: 7ıêê◊8øˇÀ‡†~a|êŸlè¿ö(ø They all showed nothing in them so I deleted them all, but they have come back again. Is this normal? TIA

  • Results displayed b4 click of search button

    I have defined parameters in my read only vo query which has a join condition on multiple tables Declared bind variables for that with the same name I have dragged and dropped my params on to th jspx from datacontrol execute with params section and m

  • Flash movie has border on rollover and 'disabled'

    Hi, I have a html page with a flash movie in it. When the page loads, the movie displays, but when moused over a dotted border (others note an orange border) appears around the movie. As a result the user has to click on the movie to remove the borde