Trying to do a simple prototype

I'm trying to do a simple prototype that uses Templates. I've taken the code from the Developer's Guide chapter 10 and modified it a bit, but don't really know enough to implement the SingleSelectionTemplate (and the MetadateState and SourceGenerator classes for it) and the Context class. Is there some source code for these? Or is there code for another Template example somewhere?
thanks,
Jake

Hi Jake,
We have the SingleSelectionTemplate and Context classes that were used to develop the example that is in the Developer's Guide. I could make those classes available to you.
The Context class includes the code for connecting to the database. The Context uses the 9.2 connection methods.
What version of Oracle9i are you using? If it is 9.2, the examples, which use the Sales History schema, will not work until 9.2.01.0a OLAP or 9.2.0.2 RDBMS patch sets release which fix the metadata reader problem. 9.2.0.1.0a should be available within days for 32-bit Solaris and about week for Windows on OTN. 9.2.0.2 should be available around the second week of Oct on MetaLink.
Anthony

Similar Messages

  • I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different p

    I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different place than where it is on frame 2. Confused!

    Hi Melissa - thanks for your interest. Here's the first frame, the second frame and the tween frame. I don't understand why the tween is changing the position of the object in frame 2, was expecting it to just fade from one frame to the next.

  • Trying to do the simple HelloWorld java application for portal

    Hi:
    i've been trying to do the simple java application HelloWorld so that i can get a view of how will it be to integrate a pure java application that we have in a later step. The fact is that i've been following "how to build a java portlet" and "packaging and deploying your provider" documents.
    i've taken the code from that document:
    public class HelloWorldApp {
    public static void main (string[] args){
    //Display "Hello World!"
    System.out.println("Hello World!");
    That's my java code. (in fact i want to do this as a trial, 'cause later i will
    do the same with a java application of our own).
    So i compiled it, taken the .class, jar it and packaged it as told in the
    second document.
    I've deployed it in OC4J_portal and when i try to access the URL i get an
    error:
    500 Internal Server Error
    java.lang.NoSuchMethodException
         at java.lang.Class.getMethod0(Native Method)
         at java.lang.Class.getMethod(Class.java:888)
         at oracle.portal.provider.v2.render.http.JavaRenderer.postInitialize(Unknown Source)
         at oracle.portal.utils.xml.v2.DefaultNodeHandler.invokePostInitialize(Unknown Source)
         at oracle.portal.utils.xml.v2.DefaultNodeHandler.processNode(Unknown Source)
         at oracle.portal.utils.xml.v2.DefaultNodeHandler.processNode(Unknown Source)
         at oracle.portal.utils.xml.v2.DefaultNodeHandler.processNode(Unknown Source)
         at oracle.portal.provider.v2.http.DefaultProviderLoader.getProviderDefinition(Unknown Source)
         at oracle.portal.provider.v2.http.DefaultProviderLoader.init(Unknown Source)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.init(Unknown Source)
         at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.locateService(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    does anybody know how to solve this problem?
    Thx.
    Regards. Urko.

    Hi Urko,
    Such an application as you have quoted will not have much luck as a Portlet - the code you supplied simply writes "Hello World" to standard out!
    Think of a portlet more like a servlet - you have an output stream to write to which, under the covers, is wired back up to the Portal Server which assembles the content into the page seen in the browser.
    Take a look at the extensive range of sample Java Portlets available with the PDK download.
    Anyway, from the stack trace it looks like you're using JavaRenderer. JavaRenderer invokes an arbitrarily named method on an arbitrary class **provided** that method takes a single argument of type PortletRenderRequest. So you would need something like:-
    public class MyApp
    // A bunch of app-specific code.
    public void renderPortlet(PortletRenderRequest pr)
    PrintWriter out = pr.getWriter();
    out.println("<b>Hello World</b>");
    Then, the relevant provider.xml section would look something like this....
    <showPage class="oracle.portal.provider.v2.render.http.JavaRenderer>
    <className>MyApp</className>
    <renderMethod>renderPortlet</renderMethod>
    </showPage>
    Hope this helps.....
    Regards,
    Gareth
    PDK-Java Development Team

  • Trying to add a simple applet to a web page

    Well, I was trying to add a simple applet to a web page(php nuke Home section), it didn't fin my applet, so I changed it and added it to a simple html file to make it as simple as I could get it.
    This is the code in the html file:
    <applet code="usblock.class" width="400" height="400">The browser doesn't support applets...</applet>The directory: www/usblock.html & www/usblock.java & www/usblock.class - As you can see the files are all in the same directory/folder.
    usblock.java code:
    import javax.swing.*;
    import java.awt.*;
    public class usblock extends JApplet
         public void init()
              JPanel p = new JPanel(new BorderLayout());
              p.add(new JLabel("Heisann"));
              add(p, BorderLayout.CENTER);
    }now as I open the html local on my computer, it workes. As soon as I open the usblock.html from my website, it doesn't.
    It gives me this error here:
    load: class usblock.class not found.
    java.lang.ClassNotFoundException: usblock.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 moreSo I thought it was that it couldn't find the .class file. Well, I went through the How To add applets that I found somewhere on sun.com. It had exactly the same as I had.
    Im figuring the problem is something easy and not hard to detect. But my eyes can't find it somehow. This is my second time trying applets, and I kinda forgot how I got it to work the first time.
    Im just glad for all the help I can get.
    Thanks a lot.
    LordSvae
    PS: Sry for the size of the post, but I'm not sure how much info I was supposed to put in here, so I thought the more the better, right? :S

    Hii,
    I doesn't know the solution but same kind of problem is come with me & I found that the problem is of Path i.e. you need to set a codebase attribute . For tempory solution what i do i simply copy the .class file in to html file dir.

  • Trying to optimize this simple query

    Hi,
    I am trying to optimize this simple query but the two methods I am trying actually make things worse.
    The original query is:
    SELECT customer_number, customer_name
    FROM bsc_pdt_account_mv
    where rownum <= 100
    AND Upper(customer_name) like '%SP%'
    AND customer_id IN
    SELECT cust_id FROM bsc_pdt_assoc_sales_force_mv
    WHERE area_identifier IN (
    SELECT area_identifier FROM bsc_pdt_assoc_sales_force_mv
    WHERE ad_identifier = '90004918' or rm_identifier = '90004918' or tm_identifier = '90004918'
    The result set of this query returns me the first 100 rows in 88 seconds and they are all distinct by default (don't know why they are distinct).
    My first attempt was to try to use table joins instead of the IN conditions:
    SELECT
    distinct -- A: I need to use distinct now
    customer_number, customer_name
    FROM bsc_pdt_account_mv pdt,
    bsc_pdt_assoc_sales_force_mv asf,
    SELECT distinct area_identifier FROM bsc_pdt_assoc_sales_force_mv
    WHERE ad_identifier = '90004918' or rm_identifier = '90004918' or tm_identifier = '90004918'
    ) area
    where
    area.area_identifier = asf.area_identifier
    AND asf.cust_id = pdt.customer_id
    AND Upper(customer_name) like '%SP%'
    AND rownum <= 100 -- B: strange when I comment this out
    order by 1
    I dont understand two things with this query. First issue, I now need to put in the distinct because the result set is not distinct by default. Second issue (very strange), when I put the rownum condition (<100) I get two rows in 1.5 seconds. If I remove the condition, I get 354 rows (whole result set) in 326 seconds.
    My second attempt was to use EXISTS instead of IN:
    SELECT
    customer_number, customer_name
    FROM bsc_pdt_account_mv pdt
    where Upper(customer_name) like '%SP%'
    AND rownum <= 100
    AND EXISTS
    select 1 from
    bsc_pdt_assoc_sales_force_mv asf,
    SELECT distinct area_identifier FROM bsc_pdt_assoc_sales_force_mv
    WHERE ad_identifier = '90004918' or rm_identifier = '90004918' or tm_identifier = '90004918'
    ) area
    where
    area.area_identifier = asf.area_identifier
    AND asf.cust_id = pdt.customer_id
    This query returns a similar distinct result set as teh original one but takes pretty much the same time (87 seconds).

    The query below hangs when run in TOAD or PL/SQL Dev. I noticed there is no rows returned from the inner table for this condition.
    SELECT customer_number, customer_name
    FROM
    bsc_pdt_account_mv pdt_account
    where rownum <= 100
    AND exists (
    SELECT pdt_sales_force.cust_id
    FROM bsc_pdt_assoc_sales_force_mv pdt_sales_force
    WHERE pdt_account.customer_id = pdt_sales_force.cust_id
    AND (pdt_sales_force.rm_identifier = '90007761' or pdt_sales_force.tm_identifier = '90007761') )
    ORDER BY customer_name
    -- No rows returned by this query
    SELECT pdt_sales_force.cust_id
    FROM bsc_pdt_assoc_sales_force_mv pdt_sales_force
    WHERE pdt_sales_force.rm_identifier = '90007761' or pdt_sales_force.tm_identifier = '90007761'

  • Have been trying to get a simple rollover tooltip going but haven't had any success...need some help

    Have been trying to get a simple rollover tooltip going but haven't had any success...need some help please

    start watching at 11min
    http://www.youtube.com/watch?v=6_FJYN36_94
    hope this helps

  • Im trying to make a simple 360 rotation for a 3d logo in CC 2014 but when i tried to create the 1st key frame the image when out axis

    im trying to make a simple 360 rotation for a 3d logo in CC 2014 but when i tried to create the 1st key frame the image when out axis

    I find that if you have multiple 3d object  they must be merged into a single 3d layer their positions reset to align to the same axises then sized and positioned along them. The layer should then be able to be animated well around an axis like the y axis. Here a Sphere, Cylinder and ring. http://www.mouseprints.net/old/dpr/McAssey-CC.mp4

  • Desesperatly trying to deploy a simple standalone application...

    Hi,
    i've been trying to deploy a simple application but i have a problem when using the command line "java -jar myarchive.jar"...i have a "java.lang.NoClassDefFoundError" !
    I make the archive via Jdev, by using "Making a simple Jar archive", i let the default arguments but i don't really know what to put in the field "Main class".
    I only have a class which is in a package :
    My class is in c:\jdev\mywork\myproject\classes\mypackage1
    I try different things in the "Main class" field :
    1) c:\jdev\mywork\myproject\classes\mypackage\myclass
    2)c:\jdev\mywork\myproject\classes\mypackage.myclass
    but it does not work...
    thanks you for helping me...

    If you've taken the defaults and have something like Class1.java in the package mypackage1. Then the value you put in the Main Class field of the deployment profile is: (without the quotes) "mypackage1.Class1"
    Note:
    The case of the package and class names must be correct
    There is no .class extension mentioned

  • Why does this site have online chat when you can never actually chat - always "not available"?  I was trying to get a simple question answered without calling and being on hold for 10 minutes?

    Why does this site have online chat when you can never actually chat - always "not available"?  I was trying to get a simple question answered without calling and being on hold for 10 minutes?

        Hello flabucki,
    Help is just a post away for you my friend! I can help with your questions right here. May I ask what question do you have? Both myself and the community would love to assist in any way that we can.
    Thank you…
    ArnettH_VZW
    Follow us on Twitter @VZWSupport

  • Trying to create a simple example. Need Help!

    I'm trying to create a very simlpe examlpe using Swing components to illustrate a MVC architecture.
    I have a JFrame containing a JTree and a JButton.
    What I'd like to happen is when I click the JButton the JTree model is changed in some fashion and the the view is refreshed due to the models change.
    If anyone out there has a simple example of any MVC architecture involving Swing components I'd love to see it.
    Thx

    Sure, look at any of the Sun tutorials. For example, look in your API documentation for JTree; it has a link to a tutorial about how to use JTree.

  • Problem trying to develop a simple ADF Application

    Hi all,
    I am using Jdev 11.1.1.0 and webLogic 10.3.1
    I have a simple application with only a welcome message and a table.
    I am trying to deploy it, but I am a little confused.
    I have created the Application Server Connection succesfully.
    What have I to do now? I suppose, I have to create a deployment profile.
    If I right click on myApplication-->New-->Deployment profiles--> I can choose only EAR file or MAR file (not WAR file, like described in the manual 35.3.2). What I have to do?
    Instead, if I right click on ViewController-->New-->Deployment profiles--> I can choose more files (ADF Library JAR file, Client JAR File, JAR File, RAR File, Taglib JAR File, WAR File).
    If I choose this way, have I anything to do with the Model? if I right click on Model-->New-->Deployment profiles--> I can choose more files (ADF Library JAR file, Business Components Archive, Business Components EJB Session Bean, Business Components Service Interface, Client JAR File, JAR File, RAR File).
    Please help.
    Thanks

    The deploy seems to works, in fact Jdevelepor gives to me:
    Building...
    Deploying 2 profiles...
    Wrote Web Application Module to myFolder\ViewController\deploy\webapp1profile.war
    Wrote Enterprise Application Module to myFolder\deploy\application1EARProject.ear
    Deploying Application...
    The task cannot be processed further until the current edit session is activated. When this occurs, task processing will continue. The user can exit the deployer tool without affecting the task.
    Operation 'deploy' on application 'application1EARProject' has succeeded on 'AdminServer'
    Application Deployed Successfully.
    Elapsed time for deployment: 15 seconds
    But when I go to the URL: http://<host>:port/<context root>/faces/<page> I have the same problem: I can not see the page correctly, I continue to see only the welcome message, but not the table
    Any other suggestions?
    thanks again

  • Trying to do something simple... help?

    Hey guys,
    I am relatively new at flash cs3 & action script, and as
    you would imagine I am hitting a big roadblock in trying to make a
    clickable banner. I can get the animation down just fine, but when
    it comes to getting some of my invisible buttons to work, I am out
    of answers... But I'm sure the answer is something I am just not
    seeing.
    OK heres the problem...
    I am trying to make a banner that fades in and out text
    (links)... The text in the first layer fades out and the text in
    the second layer fades in. The text on both layers is occupying the
    same spot. Simple animation. Now the problem occurs when i try to
    add invisible linkable buttons to both layers... What winds up
    happening is that the first layer fading in no longer is clickable,
    but second layer works fine (everything clicks and links fine.) If
    I delete the second layer fade, then my buttons on the first layer
    start working again. Any ideas?
    here is the AS I am using for my buttons:
    Please, any help would be well appreciated!

    Fading (using _alpha) won't remove the object from the stage,
    so if they are in the same spot it's obviously choosing to carry
    out the action of the object on top.
    Bit hacky but you try using swapDepths on the butt's each
    time you want the action to change, thereby bringing the correct
    one to the top.
    butt1.swapDepths(butt2);

  • Help : Lost in Code - Trying to make a simple Click-Through

    Hey Everyone -
    I've come in search of some help and expertise. I've found a
    website which I would like to copy in functionality - in hopes of
    creating a simple slideshow of images. They are using the MOOTOOLS
    framework for the Slide animation - i've gotten that to work
    - but i can't figure out how to replicate the clickthrough-
    SO - what i'm trying to do is copy this page exactly -
    http://www.thegraphicgraphic.com/
    you'll see that it's just three lines of text ( rollovers )
    and the last line opens up a javascript slider window - now i've
    managed to copy most of it by taking the code and figuring out the
    urls for the javascript and such .
    check out my version here :
    http://www.nontype.com/beograd.html
    i've got the css and java stuff working okay - but what i
    can't seem to figure out at all is how they are getting the
    rollover links to link to the NEXT IMAGE - they're using some tags
    that i don't understand : it looks something like this : : :
    <div id="header">
    <ul>
    <li>
    <a href=""
    onmouseover="this.innerHTML = 'NEXT'"
    onmouseout="this.innerHTML = 'THE'">
    THE</a>
    </li>
    <li>
    <a href=""
    onmouseover="this.innerHTML = 'PREVIOUS'"
    onmouseout="this.innerHTML = 'GRAPHIC'">
    GRAPHIC</a>
    </li>
    <li>
    <a href="#" id="button" onmouseover="this.innerHTML =
    'INFORMATION'"
    onmouseout="this.innerHTML = 'GRAPHIC'">
    GRAPHIC</a>
    </li>
    </ul>
    </div>
    AND The JAVASCRIPT Used for both the sliders ( and I assume
    the click-through functionality ) is :
    window.addEvent('domready', function() {
    var Slider = new Fx.Slide('about',{mode: 'horizontal',
    duration: 100}).hide();
    $('button').addEvent('click', function() {
    Slider.toggle('horizontal');
    function noSpam(user,domain) {
    locationstring = "mailto:" + user + "@" + domain;
    window.location = locationstring;
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    I just want to click NEXT to progress to the next background
    image / and PREVIOUS for the prev. image . . . . . . . . Could
    anyone here tell me how to do this as in the first site ? ? ? Would
    I be able to simply create multiple HTML Pages - use an Embed tag -
    and then link the PREV and NEXT buttons with tags ?
    I'm just trying to make this work by any means but am finding
    the code impossible to crack -
    I tried asking this question in the mootools forum but was
    told to look elsewhere - I'm more than willing to use
    any other means in order to make this work .
    MANY THANKS IN ADVANCE FOR YOU HELP . . .

    Have you asked the authors?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "aerolex" <[email protected]> wrote in
    message
    news:f2naeu$q66$[email protected]..
    > Hello - would anyone have any advice - or should i
    somehow reword the
    > question ?
    >
    > or could some provide some insight as to where i might
    look to resolve
    > this question ?
    >
    > THANKS AGAIN

  • Trying to do a simple List

    I have just inherited Siebel On Demand in my Sales Unit after Integration with another company. All my accounts and previous contact activity is held in SOD.
    I am trying to create what I thought would be a simple List but am failing miserably.
    I just want to see a list of accounts that have not had any completed contact activity in the last 3 months.
    All activity is either an appointment or a task.
    This is driving me mad please help!
    Edited by: 870163 on 04-Jul-2011 12:45

    If you can access your ftp server via any ftp client like Filezilla then you will be able to list directories via ColdFusion as well. Share the stack trace as well.
    Sample Code
    <cfftp 
         port="21"
        action = "open"
        username = "username"
        connection = "ftp"
        password = "password"
        server = "abc.xyz.com"
        stopOnError = "Yes">
    <!--- Confirmation of Open --->   
    <cfoutput> Connection Open :#cfftp.succeeded# </cfoutput>
    <p>List the files in a directory:
    <cfftp
    action = "LISTDIR"
        stopOnError = "Yes"
        name = "ListFiles"
        directory = "/"
        connection = "ftp">
        <cfdump var="#ListFiles#">
    <cfftp
    action="close"
    connection="ftp"
    stopOnError = "Yes">
            <!--- Confirmation of Close --->   
    <cfoutput> Connection Closed :#cfftp.succeeded# </cfoutput>
    HTH
    Thanks
    VJ

  • Trying to do a simple analog out in LabView8 imported form LV7

    I have a PCI-6733 DAQ board and I can set it's analog outputs in
    'Measurement and Aquisition' so I know the hardware is working
    correctly.  I can also create a simple VI in labview 7 to set
    those analog outputs.  However, I dont' see any of the same
    components in my LV 8 installation.  I cannot figure out how to do
    an analog output in version 8 and if I try to simply import my LV 7 vi
    I get an error when it tries to load 'AO Update Channel.' 
    Specifically, it says, 'AO Update Channel is not a valid Labview file.'
    ANy idea what is going wrong?

    You may have 7.4.1 installed but if you installed LabVIEW 8 after you installed it, you probably don't have the VIs in the LabVIEW 8 folder. If you re-install 7.4.1, then you should be able to proceed.
    To set an analog output to a fixed value, it's just a DAQmx Write (analog DBL 1Chan, 1Samp), with a DBL wired to the data input.
    Message Edited by Dennis Knutson on 04-28-2006 08:32 AM
    Attachments:
    Analog Out.JPG ‏8 KB

Maybe you are looking for