Templates as template parameters

In the Sun Workshop(TM) Compilers C++ 6 Readme there is a list of Standards which are not implemeted ,among them:
Template template parameters (templates as template parameters).
Is there any workaround to it instead o changing all my source code?

when will templates as template parameters be < supported?
Template template parameters are on the list of things we want to do for the release after Sun One Studio 7, Compiler Collection(formerly called Forete Developer 7). We can't promise we will be able to implement it in time for that release, but we will try. The number one priority for Forte Developer 7 is compile-time performance.
This was asked before: <http://forum.sun.com/thread.jsp?forum=5&thread=7350>
- Rose

Similar Messages

  • Freemarker template error!      parameters.templateDir is undefined

    Hi
    I have a Struts2 application and work perfectly in tomcat and glashfish. When I deploy in Sun Java System Application Server, all Struts tag broken and say:
    FreeMarker template error!
    Expression parameters.templateDir is undefined on line 23, column 15 in template/simple/form.ftl.
    The problematic instruction:
    ==> ${parameters.templateDir} [on line 23, column 13 in template/simple/form.ftl]
    in include "/${parameters.templateDir}/simple/form-common.ftl" [on line 23, column 1 in template/simple/form.ftl]
    Java backtrace for programmers:
    freemarker.core.InvalidReferenceException: Expression parameters.templateDir is undefined on line 23, column 15 in template/simple/form.ftl.
    at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
    at freemarker.core.Expression.getStringValue(Expression.java:118)
    at freemarker.core.Expression.getStringValue(Expression.java:93)
    at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.Environment.renderElementToString(Environment.java:1461)
    at freemarker.core.StringLiteral.getStringValue(StringLiteral.java:95)
    at freemarker.core.Include.accept(Include.java:110)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.Environment.process(Environment.java:176)
    at freemarker.template.Template.process(Template.java:232)
    at org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:157)
    at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:559)
    at org.apache.struts2.components.ClosingUIBean.start(ClosingUIBean.java:59)
    at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:53)
    at org.apache.jsp.index_jsp._jspx_meth_s_form_0(index_jsp.java:267)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:134)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)

    Hi Odinart,
    Please post your question in
    ASP.NET forums.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Link to PL/SQL procedure using a Template Manager template.

    Hi,
    I need to link a portal application report (report from SQL query) to a SQL procedure that uses a template manager template. The PL/SQL procedure requires parameters. I'm not be able to create a link based on a PL/SQL procedure. The only solution I found is to setup a link to a Form based on that procedure. But the form is only used to call the PL/SQL procedure by clicking the submit button and redirect to the template.
    Another question:
    Is it planed to support dynamic links based on column conditions?
    I'm using Portal release 3.0.7.6.2.
    thanks in advance
    Jens

    Jens,
    You may want to search the Oracle9iAS Portal Applications forum. It may have the answer you are looking for. This forum is for questions related to the Portal Development Kit.
    Thanks,
    Sue
    Sue

  • Report Template, Column Template, Column Template Condition

    I have a template, Standard Revenue from Standard, I have cloned for a Classic report.
    Application ###>Shared Componets>Templates>Edit Report Template
    Column Template 1 looks like:
    <td#ALIGNMENT# headers="#COLUMN_HEADER_NAME#" class="t1data_revenue">#COLUMN_VALUE#</td>
    I have set Column Template 1 Condition to:
    "Use based on PL/SQL expresiion"
    I have tried several expression in "Column Template 1 Expression" - last one is:
    case
    when #COLNUM# <= 2 then false
    when #COLUMN_VALUE# < 0 then true
    else false
    end case;
    I am trying to use the value in "Column Template 2" when to value of the #COLUMN_VALUE# < 0
    where "Column Template 2" is :
    <td#ALIGNMENT# headers="#COLUMN_HEADER_NAME#" class="t1data_revenue_negative">#COLUMN_VALUE#</td>
    I get the following error when I run the page:
    ORA-01403: no data found
    and
    ERR-1025 Error processing PLSQL expression. case when #COLNUM# <= 2 then false when #COLUMN_VALUE# < 0 then true else false end case;
    Any help will be appreciated.
    thank you,
    jwm

    Hi,
    That's actually easier. See: [http://apex.oracle.com/pls/otn/f?p=267:60]
    The SQL for both reports is:
    SELECT EMPNO, ENAME, NVL(SAL,0) SAL, NVL(COMM,0) COMM
    FROM EMP
    ORDER BY EMPNOThe SAL and COMM columns have been formatted using:
    999G999G999G999G990D00For the Row Template, the Row Template 1 setting contains an empty space (you have to have something in there otherwise Apex adds back in a default row containing five cells!). The condition for this is:
    TO_NUMBER('#COMM#','999G999G999G999G990D00') < 100The template will see the data as a string, so we use the same number format to convert that string back into a number and compare this to 100. If we didn't use formatting on the numbers and we are sure that every row contained a number (hence the use of NVL()), then you could use:
    #COMM# < 100Row Template 2 contains the format for the rows that need displaying:
    &lt;tr&gt;
    &lt;td class="t18Data"&gt;#1#&lt;/td&gt;
    &lt;td class="t18Data"&gt;#2#&lt;/td&gt;
    &lt;td class="t18Data" style="text-align:right"&gt;#3#&lt;/td&gt;
    &lt;td class="t18Data" style="text-align:right"&gt;#4#&lt;/td&gt;
    &lt;/tr&gt;and is unconditional.
    The only other settings on the Row Template are the Before Rows:
    &lt;table class="t18Standard" style="border-collapse:collapse; border:1px solid black;"&gt;
    &lt;tr&gt;
      &lt;th class="t18ReportHeader"&gt;Empno&lt;/th&gt;
      &lt;th class="t18ReportHeader"&gt;Ename&lt;/th&gt;
      &lt;th class="t18ReportHeader" style="text-align:right"&gt;Sal&lt;/th&gt;
      &lt;th class="t18ReportHeader" style="text-align:right"&gt;Comm&lt;/th&gt;
    &lt;/tr&gt;and After Rows:
    &lt;/table&gt;Of course, you will note that the record counters at the bottom still show the number of records in both reports - as the SQL still outputs the same data, this doesn't change.
    Andy

  • Assaign Mini templates to Templates

    Hi,
    Here is one Mini template type CRM_BILLING_ATTR is in system.i am trying to assaign this mini templates to templates.here i am not able to see Mini template type CRM_BILLING_ATTR in the drop down values.
    i am able to select mini tmplate types are
    CRM_BILLING_SA ; BILLING SALES AREA ASSAIGNMENT
    CRM_SALES_SA   : SALES,SALES AREA ASSAIGNMENT
    CRM-SHIPPING_SA : SHIPPING,SALES AREA ASSAIGNMENT
    CRM_STATUS_SA ; STATUS/SALES AREA,SALES AREA ASSAIGNMENT
    BUT IN DROP DOWN I AM NOT ABLETO SEE Mini template type CRM_BILLING_ATTR  FOR ASSAIGNMENT.
    here template type using CRM_SALES.
    path for spro-crm-.>master data->Buisness partner->templates->Assaign mini templates to templates
    currenly working on crm 7.0
    Please give me inputs for solving this issue
    Thanks & regards
    Kishore Kumar

    Hi,
    I assaigned  mini template of type CRM_BILLING_ATTR  to the mini template of type CRM_BILLING_SA.
    i maintained values like customer group and currency in mini template of type CRM_BILLING_ATTR  .these values are not showing in BP while assaigning template to bp.
    i am able to see onle sales org,dis channel,division
    Thanks & Regards
    Kishore Kumar

  • Output Module templates: Hidden templates?

    I'm looping through the array of outputModule templates in AE and it is listing templates that do not show up in the list of available templates. When I alert the names of the templates it displays all of the templates that you see normally and then lists additional templates that are hidden and have names like: "_HIDDEN X-Factor 16".
    Any idea what this is or why they are in the array?
    var templates = app.project.renderQueue.item(1).ourputModule(1).templates;
    alert("Templates: " + templates.length");  //tells me that there are 14 templates when there are only 8
    for(i=1; i<= templates.length; i++){
         alert("Template Name: " + templates[i]);

    I've come across those before. Not sure what internal use AE has for them, but they are internal specific. I modified my function to not include them when collecting output modules into an array. They are always at the end of the list so simply changing your loop to stop short by the total number of unwanted items will work. I believe there are 6-8 of these hidden items from what I recall. You will run into hidden stuff like this from time to time when accessing different areas of AE.
    var templates = app.project.renderQueue.item(1).ourputModule(1).templates;
    alert("Templates: " + templates.length");  //tells me that there are 14 templates when there are only 8
    var templatesLength = templates.length - 6; //Change 6 to the actual number
    for(i=1; i<= templatesLength; i++){
         alert("Template Name: " + templates[i]);

  • Generic Column Template - Column Template Conditions

    Hi,
    I have the following sql report snippet (as an example):
    select a,b,c,apex_item.checkbox(1,active_flag,DECODE (active_flag, 'Y', 'CHECKED','')) as "Active"
    from tableA
    Attached to this report, is a report template which I am trying to attach Column Template Conditions as I basically want to display all rows that have an active flag of 'N' as red or leave as default colour but unfortunately I can't seem to get this to work.
    I believe my Column Template Expressions are not correct as I have also tried "ACTIVE" = 'N' and still no luck.
    I have the following setup within the Generic Column Template, i,e:
    Column Template 1 = <td class="t12datavalue"#ALIGNMENT# style="background:red">#COLUMN_VALUE#</td>
    Column Template 1 Condition = Use based on PL/SQL Expression
    Column Template 1 Expression = '#1' = 'N'
    Column Template 1 = <td class="t12datavalue"#ALIGNMENT#>#COLUMN_VALUE#</td>
    Column Template 1 Condition = Use based on PL/SQL Expression
    Column Template 1 Expression = '#1' <> 'N'
    Any ideas what I could be missing?
    Thanks,
    Tony.

    Hi Tony,
    I think the issue here might be because the field you are trying to evaluate in the column template is a Check box. I tried this and it worked :-
    select a,b,c,apex_item.checkbox(1,active_flag,DECODE (active_flag, 'Y', 'CHECKED','')) as "Active",active_flag
    from tableA
    In the report attributes set the second active_flag column to not show (i.e. the one that is not the check box).
    In the Column Template
    Column Template 1 = <td class="t12datavalue"#ALIGNMENT# style="background:red">#COLUMN_VALUE#</td>
    Column Template 1 Condition = Use based on PL/SQL Expression
    Column Template 1 Expression = '#ACTIVE_FLAG#'='N'
    Column Template 1 = <td class="t12datavalue"#ALIGNMENT#>#COLUMN_VALUE#</td>
    Column Template 1 Condition = Use based on PL/SQL Expression
    Column Template 1 Expression = '#ACTIVE_FLAG#'='Y'
    Regards
    Paul

  • My Template in Template Chooser

    Hello,
    I installed Pages 09 and i can't see My Templates in Template Chooser. The folder in the correct location exists. I tried to save a new template in folder (after forcing permission read/write to my user), but the "My Template" folder is still invisible in Template Chooser.
    Please help.
    Thanks.

    Resolved. I installed trial version by download from Apple site, then i bought iWork09 italian version.
    This has caused a bit of confusion in "My templates"/"Miei Modelli" folder....
    Deleted all and reinstalled. It's all OK.

  • Can you have template inside templates

    hi,
    the templating is very cool but now I want one main template with buttons / pics and want a few templates which include the main template . these templates are for example a master / detail or tree /master /detail
    thanks edwin

    Maybe the declarative component concept can help your scenario.
    You create a template and a bunch of declarative components that you can use in it.

  • Multiple SQLs and templates based on parameters

    Hi,
    I am developing a report using the BI Publisher that is intergrated with EBS. It will be submitted from concurrent program submit request form. Based on the number of parameters, the report SQL and layout should change.
    (e.g. If user inputs parameter1 and 2, the output will be at summary level. If he provides parameter 2,3 and 4, detailed output should be displayed)
    Is there a way to achieve this or Do I need to go for separate data template-layout combination?
    Thanks,
    Vivek.

    There really is no need for it to be two reports....You have to watch for these Kiwis! j/k gareth
    I have done this before and it works quite well, all you really need to do is create another grouping after your beforeReport query. I've actually used it combination with bursting too.
    In your queries if you don't want to execute the query you can pass in a parameter and a join
    first query
    select 1
    from dual
    where :p_process_da_sql = 'YES'
    second query
    select 2
    from dual
    where :p_process_da_sql != 'YES'
    <BeforeReport>
    <group 1>
    </group 1>
    <group 2>
    </group 2>
    <AfterReport>
    If you don't want there to be a blank node (zero nodes) I would suggest you change the property in the data template include_null_elements to false and that will removed the empty node (could be group1 or group2 depending on the parameter)
    Also, I have not seen any real performance issues with it either but everyone else's situation is different.
    It's a simple as that!
    Ike Wiggins
    http://bipublisher.blogspot.com

  • Template as template parameters and friend

    Hi,
    The following code does not compile with "Sun C++ 5.9 SunOS_sparc Patch 124863-03 2008/03/12". Should be a compiler problem, or?
    Thanks in advance!
    template <class T>
    class A
    template <template<class> class T, class E>
    class B
    friend class T<E>;
    void f()
    B<A, int> b;
    }

    I believe the code is valid, and we have a compiler bug. Please file a bug report on the C++ compiler at
    [http://bugs.sun.com]

  • Xsl template problem generating parameterized link

    I am using an xsql query to generate a list of possible id's. When I apply this to my xsl template, I want to generate an html page with a series of links of the form:
    stylesheet code:
    This is inside of a <xsl:for-each loop.
    When I try to run this xsql query with the xsl template, I get an error saying that &id= is undefined.
    How can I force my style sheet to pass the ampersand through rather than interpreting it as indicating a variable name?

    If what you're saying is you want the &; symbol be be part of your parameter name, then I think you're going to run into trouble. You could build your href like this:
    <xsl:for-each select="XPath/id">
    </xsl:for-each>
    Which is almost exactly what Womisa said. The problem with this is your browser will interpret the &; symbol and treat 'id' as the parameter name. It will just assume that the first parameter after '?' was blank, spot the &; and treat 'id' as the second parameter.
    Following my example from yesterday you could use the concat() function inside the <xsl:value-of select""/>... call to dynamically build your href... but that will still have problems when the browser interprets the &;
    The only other suggestion I have is a bit of a hack... why not use another symbol when you build the href. Then when the href is called (assuming the URL points to an XSL transformed page) use the translate() function at the beginning of this XSL to swap your symbol back to an &;
    null

  • Complex/Multi Query Template using template builder.

    Hi Everyone!
    I'm learning BI Publisher & Template Builder for word-07. I have completed tutorials that are based on single query or single XML data. is there any tutorial that demonstrate working with multiple queries OR XML data sets.
    Best Regards.

    thanks for the suggestion. my problem is resolved.... I have studied theBI Data Modeling guide and findout that i have to create a data model that can have multiple data sets. after that i create data model in BI Publisher with mutiple data sets and then i create a template in word in online mode. and because im working in online mode i have access to all data sets of my data model. and this problem is resolved.
    Now I have another problem.... my ultimate target is to develop reports for Apex with dynamic behaviour. after developing the template i upload it to apex in Report Layout shared compnent and it work fine for hardcode query.
    I dont know how to pass parameters to Report Query at runtime. i tried to make a where clasue like WHERE REQ_ID = :REQ_ID. but it did not work. can you or anybody who reading this help me how to do this in apex.
    Best Regards.

  • Adding Description in Upload Template & Input template

    Hi experts,
    In my project i have a situation where the user wants to Upload the Description also , which is not a Master Data type which keep on changing.
    So the issue is How to Upload the description via Flat file Upload.
    Second is the same Description needs to be there in INPUT Template also which the user wants to input based on the situation so this should be a dynamic field rather than a Static Master Data field.
    I tried inserting Comments option , But here i have some doubts like,
    1. Can i get these Comments in reports as a Column against Each Row i.e
      Customer     sales Region    Order 1    Comment 1  1000
      Customer 2  Sales region 2  order 2    comment 2   2000
    2. I know that when u copy this from Version A to B comments are not copied , Is there any Standard way to copy Comments also.
    Your opinions are appreciated.

    Dear Krishna Chaithanya,
    I will try to answer your question:
    1. Can i get these Comments in reports as a Column against Each Row i.e
    Customer sales Region Order 1 Comment 1 1000
    Customer 2 Sales region 2 order 2 comment 2 2000
    ==> You could retrieve comments data in BPC Excel through EVCOMM() function. Those syntax can combine with EVDRE() function. BPC always keep a history of comment. For example: You sent one comment is "ABC" and then update it, BPC keep two data and you will see the last data into BPC Excel.
    2. I know that when u copy this from Version A to B comments are not copied , Is there any Standard way to copy Comments also.
    ==> Maybe you can find copy comment package which SAP provide it as default and you have to add it manually.
    Kind Regards,
    Wandi Sutandi

  • Can you change the language shown in templates, all templates in pages are in Spanish not English?

    Every time that I use pages it offers me templates but when I go to use them they are always displayed in Spanish and not in English.
    Does anyone know how I can change this please?

    It's pseudo-latin filler text and can't changed.  You need to create you own english content to replace the filler.
    http://en.wikipedia.org/wiki/Lorem_ipsum

Maybe you are looking for

  • Calculating Square root.

    Hi, I'm suppose to write a programme that asks the user to enter a number. Find the square root of that number. Format theoutput to 4 decimal places. Use Math.sqrt(double a). i.e. to find the square root of 9.56, use: double sq = Math.sqrt(9.56); Thi

  • I have all my photos but for some reason iphoto cannot read them?

    I recently backed up all my photos and reinstalled Mac OS X 10.5.6. iphoto would not launch so I installed the iphoto Library Manager. now I can get iphoto to run but when I try to add my photos or direct it to a iphoto library I get the error messag

  • In EBAN Table custom fields to be updated by BAPI_PR_CREATE

    Hello all, My requirement is PR creation by BAPI_PR_CREATE Function Module . for pr item level customer added 10 fields in the EBAN table append structure CI_EBANDB. . i am creating PR by using Funcation module BAPI_PR_CREATE. In this Function Module

  • List of operators in OWB mapping using OMB Plus

    Hi, I got a situation where I need to find out the list of operators names and its type that I used in a mapping. I tried to search but could not find it. Can any body help me regarding this. Thanks in advance Yeswanth

  • BADI to call SMARTFORM

    This is related to previous post regarding changing the  print data that appears on Smartforms.  Christophe provided some very helpful responses which have gotten me to this point. I have copied smartform bbp_sc and made the required changes.  I also