Nested rowset tags

I'm trying to produce an XMLType with the following structure:
<results>
<itemlist>
<item id="1">
<itemname>item 1</itemname>
<itemdesc>item desc</itemdesc>
</item>
<item id="2">
<itemname>item 3</itemname>
<itemdesc>item desc</itemdesc>
</item>
<item id="n">
<itemname>item n</itemname>
<itemdesc>item desc</itemdesc>
</item>
</itemlist>
</results>
The problem is the double hierarchy of the the rowset tags <results><itemlist>. I can't find a way to embed the items two levels down when querying from Oracle 9i
currently my query looks like :
DECLARE
result XMLType;
BEGIN
SELECT SYS_XMLAGG(
XMLELEMENT (                
     "ITEM", XMLFOREST(
item_id as "@ITEMID",
item_name as "ITEMNAME",
item_description as "ITEMDESC"
) , xmlformat('ITEMS')
AS
"RESULT"
INTO
result
FROM
item;
END;
However I cannot determine how to further incapsulate the query in the <RESULTS> tag.
Anyone have any suggestions on how to go about that?

I'm trying to produce an XMLType with the following structure:
<results>
<itemlist>
<item id="1">
<itemname>item 1</itemname>
<itemdesc>item desc</itemdesc>
</item>
<item id="2">
<itemname>item 3</itemname>
<itemdesc>item desc</itemdesc>
</item>
<item id="n">
<itemname>item n</itemname>
<itemdesc>item desc</itemdesc>
</item>
</itemlist>
</results>
The problem is the double hierarchy of the the rowset tags <results><itemlist>. I can't find a way to embed the items two levels down when querying from Oracle 9i
currently my query looks like :
DECLARE
result XMLType;
BEGIN
SELECT SYS_XMLAGG(
XMLELEMENT (                
     "ITEM", XMLFOREST(
item_id as "@ITEMID",
item_name as "ITEMNAME",
item_description as "ITEMDESC"
) , xmlformat('ITEMS')
AS
"RESULT"
INTO
result
FROM
item;
END;
However I cannot determine how to further incapsulate the query in the <RESULTS> tag.
Anyone have any suggestions on how to go about that?

Similar Messages

  • Nested image Tag in tableview iterator

    In the past I use the tableview tag "tableViewColumn". In this tag a nested image tag inside a link tag was used.
    Now I use the tableview iterator. But I can only define one p_replacement_bee in the RENDER_CELL_START method.
    Does anyone knows a solution for my problem?
    Example:
    <htmlb:tableViewColumn columnName = "transport"
    tooltipColumnKey = "transport_tooltip"
    type = "user"
    title = "<%= otr(zinternet/tracking) %>"
    horizontalAlignment = "center" >
    <htmlb:link id = "$TVCID$"
    reference = "$TRANSPORT_LINK$"
    target = "_blank" >
    <htmlb:image src="$TVCVALUE$" />
    </htmlb:link>
    </htmlb:tableViewColumn>

    Just off hand I see one problem.  In your reference you have 'www.sap.com'.  This link wouldn't work (and might be causing your problem, because without the http:// on the front it would assume that was a relative path.
    Other than that I don't see a problem off hand.  I normally don't render my elements to BEEs and then add the BEEs to the BEE Tree. I prefer to render to elements and then use the ADD method instead of the ADD_BEE method:
            data: tag_gl       type ref to cl_htmlb_gridlayout,
                  tag_glc_if1  type ref to cl_htmlb_gridlayoutcell,
                  tag_glc_if2  type ref to cl_htmlb_gridlayoutcell,
                  tag_glc_if3  type ref to cl_htmlb_gridlayoutcell.
            tag_gl       = cl_htmlb_gridlayout=>factory(
                        columnsize  = '3' rowsize  = '1' ).
            tag_glc_if1 = cl_htmlb_gridlayoutcell=>factory(
                        columnindex = '1' rowindex = '1' ).
            tag_glc_if2  = cl_htmlb_gridlayoutcell=>factory(
                        columnindex = '2' rowindex = '1' ).
            tag_glc_if3  = cl_htmlb_gridlayoutcell=>factory(
                        columnindex = '3' rowindex = '1' ).
            data: seats_bee type ref to cl_bsp_bee_table.
            create object seats_bee.
            seats_bee->add( level = 1 element = tag_gl ).
            seats_bee->add( level = 2 element = tag_glc_if1 ).
            seats_bee->add( level = 3 element = if_first ).
            seats_bee->add( level = 2 element = tag_glc_if2 ).
            seats_bee->add( level = 3 element = if_bus ).
            seats_bee->add( level = 2 element = tag_glc_if3 ).
            seats_bee->add( level = 3 element = if_econ ).
            p_replacement_bee = seats_bee.

  • DBMS_XMLSTORE parsing with other ROWSET tag

    Hi,
    I've got XML content stored in a CLOB which I want to store in a relational format.
    I use the DBMS_XMLSTORE package to do this job.
    This works as long as my ROWSET tag is <ROWSET>. I wonder if there is a possibility to allow another tag like <USERS>. I managed to change my row tag from <ROW> to <USER> using the DBMS_XMLSTORE.setRowTag() procedure but I don't see a .setRowsetTag() procedure.
    Thanks for your help,
    Kris

    No way to do this. You'll need to set the root tag to ROWSET before invoking DBMS_XMLSTORE.

  • Loop through elements within nested:iterate tag using javascript

    Hello,
    I would like to loop through the adjustedLineItems list and set the checkbox values to true on click of a select all button.
    I am getting the error document.all['adjustedLineItems.selected'] is null or not an object
    however it works if I manually substitute values for i within the function
    document.all['adjustedLineItems[0].selected'].checked=true;
    document.all['adjustedLineItems[1].selected'].checked=true;
    document.all['adjustedLineItems[2].selected'].checked=true;
    Could someone please help me do this via a for loop?
    Thanks
    <nested:iterate name="invoiceForm" property="adjustedLineItems" id="adjli" type="com.bt.lex.common.lineItem.beans.LineItemDetailBean" indexId="idxadjli">
              <tr>
                   <td class="dataLeft"><nested:checkbox property="selected"/></td>
                   <td class="dataLeft"><nested:write property="liNumber"/></td>
              </tr>
    </nested:iterate>
    <script type="text/javascript">
    function onclick_all(ctl) {
         var checkFlag = "false";
         var count = document.all.numOfAdjustedLIs.value;
         var i = 0;
         //alert(count);
         if(ctl.checked)
              if(checkFlag=="false")
                   for (i = 0; i <count; i++)
                        document.all['adjustedLineItems[i].selected'].checked=true;
                   checkFlag = "true";
    </script>

    Its got nothing to do with nested iterate tags :). However,
    document.all['adjustedLineItems.selected'].checked=true;
    The variable 'i' is not getting evaluated as is evident from the error message - document.all['adjustedLineItems.selected'].
    The appearance of 'i' in the error message tells it all, right ? :)
    So
    document.all['adjustedLineItems[' + i + '].selected'].checked=true;should do the trick.
    ram.

  • Nested rowsets

    I'm using XSQL with MySQL and I want to know if I can achieve a nested XML rowset result without using oracle specific methods.
    A general question of mine is: what was the consinderation behind creating a result set like:
    <ROWSET>
    <ROW>
    <STREET>value</STREET>
    </ROW>
    </ROWSET>
    rather then
    <ROWSET>
    <ROW>
    <FIELD name="street">value</FIELD>
    </ROW>
    </ROWSET>
    Any help is appreciated,
    Stan

    Stan,
    Nested rowsets are a feature that only works against the Oracle database, due to the fact that Oracle supports both structured object types (to get nesting/structure) as well as the nested CURSOR() expression in SQL.
    Against other DB's it's just flat query results.
    You could do two flat queries, then "join" the data using your XSLT transformation and <xsl:key> to make the join faster.

  • Nested custom tag-jsp

    Hi,
    How can I use nested custom tags in jsp?

    Note that not all custom tags will work like this. The tag must be designed to work this way. Some tags will not accept a body, others will accept a body, but will not process it through the JSP compiler, rather handling it as text/html.
    Have you tried nesting them and you're not getting the expected results? Have you written these tags yourself and they're not working?

  • Nested Custom Tags

    Hello,
    I have a custom tag that I've written that has some
    attributes. I want to nest that tag inside of itself, and access
    the attibutes of the parent tag. However, when I try to access the
    parent tag's data from the child all I get is the child tag's data!
    If there are two of the same custom tags in the context stack, is
    it possible to access one from the other? Thanks for your help.
    Tim

    > I can't use the
    > CALLER scope, as that references the page that called
    the first custom tag, no
    > matter how deeply nested I am.
    I think you should test the advice, before you make
    assertions like this.
    The CALLER scope refers to the variables scope of the
    template that called
    the currently executing custom tag. If your calling stack is
    like this:
    index.cfm
    customTagA.cfm
    customTagB.cfm
    Then the situation is this:
    1) In index.cfm: no caller scope.
    2) In customTagA.cfm: caller scope references index.cfm's
    variables scope.
    3) custoTagB.cfm: caller scope references customTagA.cfm's
    variables scope
    (NOT index.cfm's one).
    Similarly, if your calling stack is like this:
    index.cfm
    customTag.cfm (*)
    customTag.cfm
    customTag.cfm
    customTag.cfm
    Then the caller scope in each customTag.cfm instance refers
    to the
    variables scope of the file above it. The only caller scope
    that
    references index.cfm's variables scope is the customTag
    instance marked
    with (*).
    If I understand your requirement, this is what you want. This
    is why I
    suggested it.
    Adam

  • Nested div tags "Design View" problem

    I have had ongoing problems using nested div tags to layout
    my page. The page displays correct in browser but does not display
    properly in Dreamweaver Design View. Highlighting the CSS id in
    Code View shows the correct groupings. The code also passed the
    validator test.
    I am fairly new at Dreamweaver so I could be missing
    something basic.
    Code is displayed at
    http://www.mektronix-net.campusbizcenter.com/

    I've not see this before, so can't say why it would be happening.  Would the pc be low on resources?  but then again you say it happened even after a restart of the pc.
    Maybe you could try the file cache and the personal configuration folder fix to see if it fixes any issues.
    http://forums.adobe.com/thread/417116#cache
    PS:  While I'm at it, it would be wrong for me to point out that using AP divs is not the optimum way to create a layout....  unless you know the repercussions of using them.
    Here's why:  (from the Dreamweaver FAQ)
    http://forums.adobe.com/thread/477969

  • XMLParseException Bursting with nested empty tags

    The following XML gives us this error under 5.6.2 Burster:
    oracle.apps.xdo.batch.BurstingProcessorEngine][EXCEPTION] oracle.xml.parser.v2.XMLParseException: Unexpected EOF.
    at oracle.xml.parser.v2.XMLError.flushErrors(XMLError.java:233)
    .... and so on...
    <?xml version="1.0" encoding="utf-8"?><Receipt><FileName>MAR30_11801_5316026_receipt.xml</FileName><SignatureFileName>MAR30_11801_5316026_sig.png</SignatureFileName><OracleOrderHeaderID>5316026</OracleOrderHeaderID><ReceiptType>TAX INVOICE</ReceiptType><OrderNo>3013258</OrderNo><TimeStamp>11:55:49 AM</TimeStamp><TripID>MAR30_11801</TripID><CustPONo></CustPONo><BillToNo>234075</BillToNo><BillToName>BUNNINGS BUILDING SUPPLIES P/L</BillToName><ShipToNo>1048487</ShipToNo><ShipToName>BUNNINGS BUILDING SUPPLIES - PORT KENNED</ShipToName><ShipToAddress1>STORE: 2410</ShipToAddress1><ShipToAddress2>7 SUNLIGHT DR</ShipToAddress2><City>PORT KENNEDY</City><State>WA</State><PostalCode>6172</PostalCode><LineItems><LineItem><ProdCode>24</ProdCode><ProdDesc>18KG FL LS CYL</ProdDesc><QtyDel>2</QtyDel><QtyRet>2</QtyRet><Price>77.68</Price></LineItem></LineItems><GST>7.77</GST><Total>85.45</Total><PaymentTerms>KHG 30MONTHLY</PaymentTerms></Receipt>
    The issue can be resolved by "taking out" the redundant "LineItem" nested tag as there is only one lineitem in this example. As far as I can see this XML doesn't break any specs and should be easily able to handle the above example?
    Any clues??

    The following XML gives us this error under 5.6.2 Burster:
    oracle.apps.xdo.batch.BurstingProcessorEngine][EXCEPTION] oracle.xml.parser.v2.XMLParseException: Unexpected EOF.
    at oracle.xml.parser.v2.XMLError.flushErrors(XMLError.java:233)
    .... and so on...
    <?xml version="1.0" encoding="utf-8"?><Receipt><FileName>MAR30_11801_5316026_receipt.xml</FileName><SignatureFileName>MAR30_11801_5316026_sig.png</SignatureFileName><OracleOrderHeaderID>5316026</OracleOrderHeaderID><ReceiptType>TAX INVOICE</ReceiptType><OrderNo>3013258</OrderNo><TimeStamp>11:55:49 AM</TimeStamp><TripID>MAR30_11801</TripID><CustPONo></CustPONo><BillToNo>234075</BillToNo><BillToName>BUNNINGS BUILDING SUPPLIES P/L</BillToName><ShipToNo>1048487</ShipToNo><ShipToName>BUNNINGS BUILDING SUPPLIES - PORT KENNED</ShipToName><ShipToAddress1>STORE: 2410</ShipToAddress1><ShipToAddress2>7 SUNLIGHT DR</ShipToAddress2><City>PORT KENNEDY</City><State>WA</State><PostalCode>6172</PostalCode><LineItems><LineItem><ProdCode>24</ProdCode><ProdDesc>18KG FL LS CYL</ProdDesc><QtyDel>2</QtyDel><QtyRet>2</QtyRet><Price>77.68</Price></LineItem></LineItems><GST>7.77</GST><Total>85.45</Total><PaymentTerms>KHG 30MONTHLY</PaymentTerms></Receipt>
    The issue can be resolved by "taking out" the redundant "LineItem" nested tag as there is only one lineitem in this example. As far as I can see this XML doesn't break any specs and should be easily able to handle the above example?
    Any clues??

  • Nested html-tags in JTextPane not possible?

    Hi.
    Why does JTextPane not support contents like this:
    <p align="center">
      <h2>Hello, world!</h2> <!-- nested tag -->
    </p>This code is parsed and changed into:
    <p align="center">
    </p>
    <h2>Hello, world!</h2>Is there any possibility to get around this?
    Cheers,
    kelysar

    I do not know about how to treat HTML by JTextPane.
    According to http://www.w3.org/TR/html4/sgml/dtd.html,
    <!ENTITY % block
    "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
    BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">
    So you cannot use h2 element in p element.
    Regards,

  • Nested JSP tags not working in Weblogic 8.1/6.1

    Hi,
              I have a custom JSP tag which are used to display buttons (like Submit, Cancel, Revert, Previous etc) on a web page.
              This custom tag has a structure like
              <gui:toolBar>
              <gui:toolTemplate>...</gui:toolTemplate>
              <gui:button>
              <gui:buttonImg>...</gui:buttonImg>
              <gui:buttonAlt>...</gui:buttonAlt>
              </gui:button>
              </gui:toolBar>
              The <gui:button> tag can be repeated depending on the number of buttons needed to be displayed. The body content of the <gui:button> nested tags are used to populate the values in the <gui:toolTemplate/>.
              The issue is that if I have repetitive <gui:button> tags(meaning if I want to have 2 or more buttons), the page does not get compiled in Weblogic (both 6.1 and 8.1).
              But the same works fine in Websphere 4.x and 5.1.
              There are no exceptions being thrown and hence no clue as to what is the issue.
              If I have only one <gui:button> then it works fine even in Weblogic.
              Note: A link on a similar problem(but no soluton mentioned) is
              http://forums.bea.com/bea/thread.jspa?forumID=2025&threadID=200074523&messageID=202373683&start=-1#202373683
              Please advice.
              Sriram.C.S

    You're right, your situation is very similar to the situation the other poster describes. However, the main similarity is that neither of you have given us any information about what is going wrong. We can't read minds or read what's on your screen. We need to see specific error messages, stack traces, and specific code that shows what you are trying to do.
              However, it's likely that you're running into problems with the issues with "tag reuse" and "tag pooling". You should first read the JSP specification in the areas that talk about this issue, although this will probably leave you with more questions than you started with.
              I'm guessing that your "<gui:button>" element doesn't have any attributes. It's possible that WebLogic is reusing a single "<gui:button>" tag instance for each occurrence in your page. You may have to figure out how to turn off tag pooling in the JSP compiler, but I'm not sure how to do that.
              It's possible that Websphere doesn't give you an issue with this because perhaps they didn't bother with the tag pooling optimization (it is a good thing to have it available).

  • SimpleTag nesting / classic tag caching

    Is it possible to nest tags inside SimpleTags? Specifically, I have some struts <html:*> tags inside my custom tags, which are being spit out as text instead of being run against their TLD's.
    The reason I would like to use SimpleTags is that our server is caching data from classic tags and causing incorrect information to be shown if two users access the page at the same time.
    Alternatively, instead of translating nested tags inside a SimpleTag, would it be possible to somehow disable server-side caching for classic tags in Tomcat? Thanks.

    Is it possible to nest tags inside SimpleTags?
    Specifically, I have some struts <html:*> tags
    inside my custom tags, which are being spit out as
    text instead of being run against their TLD's.
    Yes, specify the bodyContent as 'scriptless' in the tld file for your SimpleTag.
    <tag>
        //other definitions
        <body-content>scriptless</body-content>
        <attribute>
             //attribute definitions
        </attribute>
    </tag>And then in your doTag() method, you should get the body content as a JspFragment and call the invoke() method on it passing null as the argument.
    public void doTag() throws JspException {
                                              //your stuff
              try {               
                   getJspBody().invoke(null);               
              } catch (IOException e) {
                   throw new JspException(e);
    The reason I would like to use SimpleTags is that our
    server is caching data from classic tags and causing
    incorrect information to be shown if two users access
    the page at the same time.
    Alternatively, instead of translating nested tags
    inside a SimpleTag, would it be possible to somehow
    disable server-side caching for classic tags in
    Tomcat? Thanks.This is fraught with danger - but you can reset the tag attribute variables to null at the end of your doEnd() method. I have seen it implemented this way in one of our projects that runs on weblogic.
    Does that help?
    ram.

  • Nested MXML Tags of Same Type not Closed Automatically

    Suppose you have a VGroup tag, and you want to nest another VGroup inside of it. In earlier versions of FB, as soon as you typed the closing '>' character, FB completed the whole tag for you:
    <s:VGroup>
         <s:VGroup>
         </s:VGroup>
    </s:VGroup>
    However, this doesn't work anymore. This issue happens when the two tags are of the same type. An HGroup inside a VGroup, for example, autocompletes fine.

    Hi,
    This is known issue http://bugs.adobe.com/jira/browse/FB-33477.  Thanks for posting the issue.
    -Divith

  • Concatenate nested XML tags

    Hello,
    I'm looking for a solution to concatenate duplicate tags in a xml.
    I need only the tags 'tag' of 'type=keyword' in one field in a table.
    The sql statement I use I'm getting six records and I just need one record.
    Hope my English writing is not to bad to understand what I mean.
    This is a part of the XML.
    <?xml version='1.0' encoding='UTF-8'?>
    <list>
    <artikel id='25230245' title='st' publish='true' sender=''>
      <categorieen>
        <categorie naam='Staking' externalid='Economie/Staking' />
      </categorieen>
      <geoinfo latitude='52.3936' longitude='6.142065' zoom='15' />
      <tags>
        <tag name='Overijssel/Raalte/Raalte' type='location' />
        <tag name='Overijssel/Deventer/Deventer' type='location' />
        <tag name='Overijssel/Olst-Wijhe/Wijhe' type='location' />
        <tag name='cao' type='keyword' />
        <tag name='vleeswarensector' type='keyword' />
        <tag name='seniorenregeling' type='keyword' />
        <tag name='fnv bondgenoten' type='keyword' />
        <tag name='werkonderbreking' type='keyword' />
        <tag name='Zwanenburg' type='keyword' />
        <tag name='staking' type='keyword' />
        <tag name='Stegeman' type='keyword' />
        <tag name='Lüpack' type='keyword' />
        <tag name='cnv vakmensen' type='keyword' />
      </tags>
      <publicatiedatum datum='1400663902374' datumstr='2014-05-21T11:18:00+0200' />
      <wijzigingsdatum datum='1400663902374' datumstr='2014-05-21T11:18:00+0200' />
      <printdatum datumstr='22-05-2014' />
      <bestemmingen>
        <bestemming channel='web' site='ST' page='Regio/Deventer/' primary='false' />
        <bestemming channel='web' site='ST' page='Regio/Olst-Wijhe/' primary='false' />
        <bestemming channel='web' site='ST' page='Regio/Raalte/' primary='true' />
      </bestemmingen>
      <bron naam='Benny Koerhuis' />
      <beelden />
    </artikel>
    </list>
    And this is my sql statement (part of a plsql procedure).
    SELECT decode(upper(t1.publish), 'TRUE', 'Y', 'N')
                 , trunc(to_date(substr(replace(t1.pdate, 'T', ' '), 1, 19), 'YYYY-MM-DD HH24:MI:SS')) pdate
                 , to_date(substr(replace(t1.flitstijd, 'T', ' '), 1, 19), 'YYYY-MM-DD HH24:MI:SS') flitstijd
                 , t1.naam_flitser
                 , t1.sectie
                 , t1.titel
                 , t1.soort
                 , t2.trefwoorden
            FROM flits_berichten_clob t1
            , XMLTABLE('//test/artikel'
                PASSING XMLTYPE (t1.xml_file)
                COLUMNS publish         VARCHAR2(10)  PATH '@publish'
                       ,pdate           VARCHAR2(25)  PATH 'publicatiedatum/@datumstr'
                       ,flitstijd       VARCHAR2(25)  PATH 'wijzigingsdatum/@datumstr'
                       ,naam_flitser    VARCHAR2(25)  PATH 'bron/@naam'
                       ,sectie          VARCHAR2(255) PATH 'bestemmingen/bestemming[@primary="true"]/@page'
                       ,titel           VARCHAR2(10)  PATH 'bestemmingen/bestemming[@primary="true"]/@site'
                       ,soort           VARCHAR2(10)  PATH 'bestemmingen/bestemming[@primary="true"]/@channel'
                       ,tags            XMLTYPE       PATH 'tags') t1
            , XMLTABLE('/tags/tag[@type="keyword"]'
                PASSING t1.tags
                COLUMNS trefwoorden     VARCHAR2(255) PATH '@name') t2
            WHERE id = 15;
    This is the result.
    Y
    21-05-2014
    21-05-2014 11:18:00
    Benny Koerhuis
    Regio/Raalte/
    ST
    web
    werkonderbreking
    Y
    21-05-2014
    21-05-2014 11:18:00
    Benny Koerhuis
    Regio/Raalte/
    ST
    web
    Zwanenburg
    Y
    21-05-2014
    21-05-2014 11:18:00
    Benny Koerhuis
    Regio/Raalte/
    ST
    web
    staking
    Y
    21-05-2014
    21-05-2014 11:18:00
    Benny Koerhuis
    Regio/Raalte/
    ST
    web
    Stegeman
    Y
    21-05-2014
    21-05-2014 11:18:00
    Benny Koerhuis
    Regio/Raalte/
    ST
    web
    Lüpack
    Y
    21-05-2014
    21-05-2014 11:18:00
    Benny Koerhuis
    Regio/Raalte/
    ST
    web
    cnv vakmensen
    Is there a way to concatenate the results from the last column?
    It result should be 'werkonderbreking, Zwanenburg, staking, Stegeman, Lüpack, cnv vakmensen' so I get one record instead of six.
    Thanks in advance.

    Is there a way to concatenate the results from the last column?
    Yes, use string-join function :
    , titel      
    VARCHAR2(10)   PATH 'bestemmingen/bestemming[@primary="true"]/@site'
    , soort      
    VARCHAR2(10)   PATH 'bestemmingen/bestemming[@primary="true"]/@channel'
    , trefwoorden
    VARCHAR2(4000) PATH 'string-join(tags/tag[@type="keyword"]/@name, ",")'
    ) t1
    That way you don't need the second XMLTABLE anymore.

  • Rendering Querydata in nested Custom-Tags

    Hi all
    I have built two custom-tags to render the results of a query
    in a table (a bit like the display-tag-library or the datatable-tag
    of JSF). the parent tag takes the query as attributes as well as
    some other things like records per page.
    the child-tag defines a single column. the developer can
    define a query-column-name in an attribute as well as the label and
    so on.
    the typical code looks like this and this works fine:
    <tags:dataTable collection="#AddressQuery#"
    basePath="#link.list#">
    <tags:dataTableColumn column="id" label=""
    selection="true" />
    <tags:dataTableColumn column="name" label="Name"
    sortable="true" />
    <tags:dataTableColumn column="street" label="Strasse"
    sortable="true" />
    <tags:dataTableColumn column="houseNumber"
    label="Hausnummer" sortable="true" />
    <tags:dataTableColumn column="isEnabled" label="Aktiv"
    sortable="false" />
    </tags:dataTable>
    Now, I'd like to allow the developer to write custom code to
    generate the content of a table column. For example show the value
    of a bit-field with icons:
    <tags:dataTableColumn label="my bit-column">
    <cfif #columnname# gt 0>[display image
    "active"]<cfelse>display image "inactive"</cfif>
    </tags:dataTableColumn>
    Unfortunately, this throws an error because the variable of
    the querycolumnname can't be resolved when the tag-content is
    executed (the query-loop is done when the parent's end-tag is
    processed).
    Can I prevent CF to execute the tag-content, but instead save
    the code of the developer and execute it later when processing the
    endtag of the parent?
    If not can I solve this problem otherwise?
    thanks
    stefan

    Hi Jesse.
    I'm also working on something very similar to the tab pane you are talking about. Mine was inspired by the CoreJSF book (I used some of the downloadable pre-release chapters). Great book. It's at www.corejsf.com
    The basic idea behind theirs (and mine) is that the tab pane widget maintains a collection of tabs as a property. In the tag handler class you can specify the tabs themselves as either child components or facets (they used f:selectItem and f:selectItems, along with facets). I liked the f:selectItems the best.
    All of the rendering is done in the renderer class. The book has examples of how to include additional jsp content specified as a fragment.
    I would really suggest having a look at the book.
    Regards,
    Dave Haas

Maybe you are looking for

  • Defining page size in XML Publisher

    Can we define page size using XML Publisher APIs. We have a problem where a single RTF template will be used for different countries and depending upon the country, the report needs to be printed on Letter or A4 or anything. I could find a parameter

  • Customer exit for changing order quantiy and scrap quantiy in MD11?

    Hi gurus, My objective is to update the order quantity and scrap quantiy field as per some logic and overwrite the existing values in MD11 (create planned order). Can you suggest the correct exit for incorporating these changes Thanks

  • Samsung Widescreen Display

    I thinking about getting a Mac mini and I'm wondering if it would be compatible with my Samsund 940BW 19" widescreen display. I beleive the native resolution on the display is 1440x900. I'm currently using the monitor connected as second disply for m

  • Export to Blu-ray: Windows only?

    On page 464 of the CS6 PDF it states: Send to Encore for DVD, Blu-ray Disc, or SWF file creation You can send video from any sequence into Adobe Encore for output to DVD, Blu-ray Disc (Windows only), or a SWF file. That middle phrase can't be true, o

  • Webservice in Batch

    Hi, We have service and which is called in batch. But when a service is called a dialog work process is initiated and the job is failing after 30 mins (1800 secs). Could you please suggest a way so that a service can be run in batch. Your help is rea