Sources/References

I just saw/found iBooks Author.  My question or suggestion is somewhere along the development path to incorporate a way to create libraries to store sources (with reference information) for work on a book.  For example, I have been working here and there on a book related to corrections history.  In working on the book, I have collected a number of references to use in the book.  Where I want to use quotes, etc. from other sources, it would be awesome to have a place to organize contributing resources that will be used in the book.  In short, it would become an inventory of resources that are being used in writing the book.  It would allow the author to have everything located in one spot.
Just food for thought.

For Apple to see your suggestion, you need to repost it at
http://www.apple.com/feedback

Similar Messages

  • Order Source Reference Column in Sales Order Form

    Hi All,
    When copying a sales order that is imported from EDI, the order source reference column in the new order refers to the original order. Is there a way to make this field refer to the same field of the original order? Or at least make it editable/updatable?
    Thanks
    A/H

    Not sure personalization will solve this problem. Other options:
    1. Workflow
    2. Post Hook Events
    3. trigger?
    Thanks
    Nagamohan

  • Creating Product Source and Source Reference in OPM

    We are testing creating projects directly in OPM rather than uploading them from Microsoft Project.  However, the fields Product Source and Source Reference are not populated when we use this method.  We need the Source Reference to be populated with the Project# in order for the project to properly interface with our other external systems.  These fields are currently protected against changes when accessed through Financial Analyst responsibilities.  Does anyone know how we can manually (or another method) populate the Source Reference field with the Project# when creating projects directly in OPM?
    Thank you

    jschell, thanks for your suggestions.
    And caching the second is definitely wrong. Arguments are passed as local references. The reference lifetime is only guaranteed for the lifetime of the method call.In my case, it just works, because my "callback" is only called before the "handleMessageQ" returns, which means it's within the lifetime of "jobject", etc.
    Use GetEnv to get the environment.Could you please provide some sample codes?
    Create a static java method which returns the object reference. In your callback call that method to get the reference that you want to work with. I didn't really understand. Could you please show me some sample codes?
    Thanks a lot!

  • Jndi data source references at deployment time

    hi,
    i have been thinking and trying for days now, so any hint is greatly appreciated.
    we have an enterprise java application with adf faces, bc4j and jpa all in one ear which runs on weblogic 10.3. we want several instances of the same application running on the same weblogic server, with different context-root's and database connections. what I don't know how to do is how I could create an application-wide jndi link to a jdbc data source at deployment time - because the data source jndi name is listed in bc4j application modules and persistence.xml - so one global jndi link for the application would be great.
    e.g.
    jndi names of data sources installed in the weblogic server:
    jdbc/customer1
    jdbc/customer2
    deployment1:
    context-path: /app-customer1
    local data source name: java:comp/env/jdbc/customer
    deployment 2:
    context-path: /app-customer2
    local data source name: java:comp/env/jdbc/customer
    so the goal is, at deployment time, to create a link to jdbc/customer1 for the first deployment and jdbc/customer2 for the second deployment using .. ?
    thank you very much,
    matt

    hi Anand,
    thank you for your answer. It is indeed a part of the solution I would need to apply - resource references in web.xml to have the bc4j application modules reference a jndi data source under java:comp/env. The other part to it is that we have an ejb jar in our jee application, built with hibernate and a persistence.xml file (yes we are crazy enough to use both bc4j and jpa in one ear). The jndi name of the data source specified in persistence.xml would not pick up a resource reference specified in web.xml would it - actually i should just try this out. So that's the 2nd part of the solution.
    cheers,
    Matt

  • Jcreator change project data source reference

    I think it should be simple but i can't resolve the problem.
    I have a database (db_test1) and an application (testapp1) that use a DataSource (dsr1).
    I make a copy of db and application (db_test2, testapp2). I have created another datasource (dsr2 that use db_test2) that i want to use instead of dsr1 in testapp2 (i want to modify the db and use another datasource).
    When i make the copy, the reference datasource of the project testapp2 is dsr1. I add dsr2 but i cannot change the reference, i cannot delete dsr1.
    Someone can help?
    thanks
    merry christmas at all!
    marcob

    i found my way.
    It's simple. Create a new datasource, add it to the project in some way and then modify _init method of your SessionBean, ApplicationBean or RequestBean (substitute old datasaource with new one)
    bye
    marcob

  • How do I use a shared data source in my dataset in this new UI?

    I'm new to SSRS 2012 and am having trouble with the UI. All of my experience is with SSRS 2005, and this is quite different.
    So I created a shared data source in my new project. Next I added a report (non-wizard, I'm going for hand-crafted). Looking at the UI I have a report data window on the left side of VS 2010, and in it are a couple of menus and a tree navigation pane. If I
    select the new menu, and then dataset (since I want to add the data to my report first) I get the Dataset property window. After selecting 'Use a dataset embedded in my report' a new panel is displayed where I can set up a new dataset. But from what I see
    here all I can do is create a new data source, but I want to use my shared datasource. I would think it would just be in the data source drop down presented, but that is empty (I had an image that illustrated all this but I keep being told I need to 'verify
    my account', and after doing so I'm still getting that error... oh well, I don't have enough time to keep verifying my account here).
    In 2005 I could choose a shared datasource, and it doesn't seem logical that this functionality would be removed. What am I missing here?
    Any help would be much appreciated.

    First right-click on your reports' Data Sources and add a reference to the Shared Data Source, by selecting "Use Shared Data Source Reference" in the "Add Data Source" dialog.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Multiple instances of the same source clip in Project bin

    This is a strange one.
    I think its more an issue now than ever due to tapeless format editing. I edit lots of video now shot on Canon 5d. They sometimes have thousands of individual clips.
    The problem is that our project files are getting huge and premiere slows to a grinding halt.
    We copy paste lots of timelines from one project to another. When we paste, all of the source clips land in the project bin (as you would expect) However, sometimes I have already made reference to the same source files in the edit to begin with (So they are already in the project bin)
    However, when I paste a new timeline, it will make another reference to that same source clip in the project bin. Therefore double up reference to a souce clip in the project. Increasing the clips in the overall project, which bloats everything and slows premiere down.
    Can premiere be smarter? Can it see that the source file already exists in the project and link to that existing file instead of creating another reference to the same file?
    Hope that makes sence.

    I am beginning to think that there is no easy way around this issue.
    I have started to use Final Cut and am noticing lots of differences between the two platforms. I have been a Adobe Premiere user for 10 years and I concider myself a NINJA using this program. However, there are definitly differences between the two, this being one of them.
    Final cut does not double up on source references in your project bin when copying one sequence from one project into another.
    CLEVER
    Its annoying that premiere doubles files up as it gets ridiculously messy in your project bin. Double ups, triple ups, quadruple ups the list goes on.
    Its strange cause when you start a Prem project from scratch and import a source clip, you can set in and out points as many times as possible and drag onto the timeline, and it does not duplicate the original source file in the project bin. Thus keeping your project bin neat and clean. However, as soon as you paste a sequence, it goes and duplicates refeneces like its outta control, rather than looking at what you alraedy have in your project bin and saying to itself. (Hmmm well the source clip is already here, so we dont have to duplicate this one....move onto the next file)
    Prem is great at lots of things, dont get me wrong. I freaking love the program, however, things like this let it down as the program becomes unusable as it gets bogged down with way too many clip references.
    Hmmm, we shall see who wins the day in the end. Time do do some Final Cut edditing now.
    P.S. Final cut can do 16 multi clips in a real time edit. Premiere...only 4...come on Prem, pick up your game!

  • How to change the jta-data-source for projects in EJB 3

    Hi all,
    Sorry my english! :)
    I'm learning the EJB 3.0 and I'd like to change jta-data-source for projects in JDeveloper 10.1.3.1.
    I explain:
    In the same Application, I have a project with all Entitys and Session Beans. At the moment, the persistence.xml file is there with the jta-data-source tag.
    I make a new project with JUnit (Cactus) for test the EJB's that I'd like jta-data-source reference the test database.
    I make another project, with Servlet/JSP/JSF that use EJB's with interface and I'd like jta-data-source reference another database.
    What kind of changes (workaround) I could make to solve this problem?
    Thanks a lot!
    Luciano

    Hi,
    There are COOM data source which may suits your needs.
    please check data source
    0CO_OM_WBS_6
    0CO_OM_WBS_3
    Base tables are COSP and COSS.
    Check about coom data source, if not suitable then go for custom data source.
    About table cross verify with your source team.
    Thanks

  • Data Source Level SRS (SSRS) Issue - Permissions granted to user... are insufficient for performing this operation. (rsAccessDenied)

    I've inherited a bit of a security issue and would appreciate any insight.  
    The bottom line is that I have a user than can run one report from folder "X", but not the report next to it.
    Here is the problem context.  The names are changed to protect the innocent.  Sharepoint is not involved.
    The SSRS Home Folder has Security "Group or User" of "DomainX\SSRS_Browsers"   with Role(s) "Browser"
    "SSRS_Browsers" is an AD group.  The user with the issue (DomainX\UnhappyUser) is a member of this group.
    The user is able to navigate to folder "X" (one level below Home) and run Report "A" successfully.  But, when they try to run report "B", they get: 
    "An error has occurred during report processing. (rsProcessingAborted)  The permissions granted to user "DomainX\UnhappyUser" are insufficient for performing this operation. (rsAccessDenied)
    The difference between report "A" that works, and report "B" that doesn't is that report "B" references a data set from a different data source.
    Both reports reference DataSource1.  The failing report additionally references DataSource2.   The SSRS logs confirm this is where the problem is:
    ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: , Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user 'DomainX\UnhappyUser' are insufficient for performing this operation.;
    processing!ReportServer_0-34!c58!07/16/2014-16:45:41:: e ERROR: An exception has occurred in data set 'DataSource2'. blah blah blah
    Both data sources have "stored" credentials with the same AD user: "DomainX\SSRS_Reports".  Both data sources reference the same instance of SQL Server.  They do have different "Initial Catalog" values.  (DatabaseA
    and DatabaseB).  I can run both reports successfully, but I more authority.
    "SSRS_Reports" is defined as a "Login" user under "Security" in SSMS at the instance level.  The Server Role is "public".
    DatabaseA (which is behind the data source that works) has Security->Users->DomainX\DataBaseA_Readers.   This is an AD group, that includes has "SSRS_Reports" as a member.
    DataBaseA_readers (in SQL Server, at the DatabaseA level) is a member of role db_datareader.
    DataBaseB (which is behind the data source that fails) has Security->Users->DomainX\DataBaseB_Readers.  This is also an AD group, that includes "SSRS_Reports" as a member.
    DataBaseA_readers (in SQL Server, at the DatabaseB level) is a member of role db_datareader.
    Does anyone have any insights as to where my problem may be?
    Thank you.  Sorry for the verbosity.  

    Hi Steve,
    After testing the issue in my local environment, I can reproduce it. The Home Folder has Security for "DomainX\SSRS_Browsers" group with "Browser" Role, the folder “X” and Report “A” security is inherited from its parent item, but the Report “B” Item security
    is not inherited from its parent item. In this way, the DomainX\UnhappyUser has insufficient permission to render the Report “B”.
    So, please try to check the Security page of Report “B” and compare it with Report “A” security settings. If possible, we can click “Revert to Parent Security” button to replace all the defined security settings with the security settings of its parent folder
    ”X”.
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Problems setting "table reference" for TopLink relationships

    I'm trying to use TopLink to create Java objects over two tables that are linked in a many-to-many relationship. I followed the instructions on the 10g tutorial page (drag all three tables into a database diagram), then created a new field (of type Collection) in each of the tables that I'm joining. I then set them both to be many-to-many, and tried to configure the first one. On the general tab, I've set the 'Reference Descriptor' to point to the other table. I've set the 'Relation Table' to point to the associative entity, and disabled indirection.
    When I go to the 'Source Reference' tab, there's nothing in the 'Table Reference' dropdown, and there's no button to create anywhere I can find on that screen. From what I've found looking at old TopLink documentation online, there were new, add, and remove buttons off to the right on older versions of TopLink.
    What do I have to do in this version to create a table reference I can use for the join?
    If I run the 'mapping status report' for the object I'm working with (persons), I get the following:
    Mapping persons -> Table reference is invalid because of the target table chosen.
    Mapping persons -> No table reference is selected.
    Mapping persons -> No source reference is selected.
    Mapping persons -> No target reference is selected.
    I don't really know enough about TopLink to know if these error messages are pointing at something other than the fact that I can't get a table reference to show up or not.
    I'm using the JDeveloper 10g preview (build 1375).
    Thanks in advance for any ideas you might have,
    Jonathan

    I'm trying to use TopLink to create Java objects over two tables that are linked in a many-to-many relationship. I followed the instructions on the 10g tutorial page (drag all three tables into a database diagram), then created a new field (of type Collection) in each of the tables that I'm joining. I then set them both to be many-to-many, and tried to configure the first one. On the general tab, I've set the 'Reference Descriptor' to point to the other table. I've set the 'Relation Table' to point to the associative entity, and disabled indirection.
    When I go to the 'Source Reference' tab, there's nothing in the 'Table Reference' dropdown, and there's no button to create anywhere I can find on that screen. From what I've found looking at old TopLink documentation online, there were new, add, and remove buttons off to the right on older versions of TopLink.
    What do I have to do in this version to create a table reference I can use for the join?
    If I run the 'mapping status report' for the object I'm working with (persons), I get the following:
    Mapping persons -> Table reference is invalid because of the target table chosen.
    Mapping persons -> No table reference is selected.
    Mapping persons -> No source reference is selected.
    Mapping persons -> No target reference is selected.
    I don't really know enough about TopLink to know if these error messages are pointing at something other than the fact that I can't get a table reference to show up or not.
    I'm using the JDeveloper 10g preview (build 1375).
    Thanks in advance for any ideas you might have,
    Jonathan

  • Binding a data source with JBoss

    Hello,
    I want to substitute the default Hypersonic database JBoss uses with another database (PostgreSQL).
    I created the postgres-ds.xml file with the new data source and deployed it to JBoss. Then I replaced the
    hsqldb-persistence-service.xml file with the corresponding file for PostgreSQL and changed the data source references to the one I declared. However, I didn't deleted the hsqldb-ds.xml because for now I want the other JBoss services to still use it.
    Now when I try to start the server, I get a NameNotFoundException telling me that the new data source is not bound!
    Why doesn't JBoss bind the new data source?
    Thanks.

    Sujay,
    Please post the below
    What is the data source you are trying to enhance ?
    What is the source table to enhance the data source?
    Regards
    KP

  • Audio off from clip but not source vid

    I was hoping someone might know a fix for this:
    After I mark in/mark out and create a clip (command+U) and move the clip to one of my bins, if I load that clip in the viewer and pull it to the timeline the audio is 2 seconds delayed. However if I load the source video in the viewer and mark in/ mark out and pull the source reference to the timeline the audio is fine.
    This error just popped up out of no where. It is affecting all saved projects and new projects.
    Thanks!

    Howdy Sparkytastic,
    It sounds like all of a sudden the audio from your video clips is delayed in all of your projects. I would recommend taking a look at these steps specifically from the following article:
    Final Cut Express: Troubleshooting Basics
    Check compatibility and driver versions for third-party devices 
    If you're using a third-party storage system, input device, or something else, check the support area on the manufacturer's website to be sure that you're using the latest version of the relevant driver or other software for your device, if necessary. To see if your video device has been qualified for use with Final Cut Express, review: Final Cut Express: Camcorder support.
    Delete the User Preferences
    You can resolve many issues by restoring Final Cut Express back to its original settings. This will not impact your project files, but you should verify your Scratch Disk location setting after doing this. To reset your Final Cut Express user preference settings to their original state, do the following:
    In the Finder, go to ~/Library/Preferences
    Note: The tilde (~) represents your Home folder.
    Remove the "com.apple.finalcutexpress.plist" file from the Preferences folder.
    Remove the "Final Cut Express User Data" folder from the Preferences folder.
    Final Cut Express
    Another approach you might consider is reinstalling Final Cut Express. To do this effectively, you need to remove the application then install Final Cut Express and use Software Update to install additional updates. You don't have to remove everything that was installed with Final Cut Express. Follow the steps below to completely reinstall a fresh copy of Final Cut Express.
    Note: Make sure that you have your installation discs handy before starting this.
    On Mac OS X v10.5
    Open the Applications folder. Drag the Final Cut Express application to the Trash.
    Go to /Library/Receipts.
    In the Receipts folder, select the FinalCutExpress.pkg file.
    Choose View > as List to view the contents in a list.
    Click the Date Modified column header so you can easily see all of the receipts that were installed at the same time as Final Cut Express.
    Drag the FinalCutExpress.pkg receipt to the Trash, as well as any other items that have the same modification date within 3 minutes of the FinalCutExpress.pkg's modification date.
    Click the Name column header to sort the list alphabetically.
    Drag any other receipts whose names begin with "Final Cut Express" to the Trash.
    Insert your Final Cut Express installation disc and install Final Cut Express.
    When finished, choose Software Update from the Apple () menu to update your software to the latest version.
    On Mac OS X v10.6
    Open the Applications folder. Drag the Final Cut Express application to the Trash.
    Insert your Final Cut Express installation disc and install FInal Cut Express.
    When finished, choose Software Update from the Apple () menu to update your software to the latest version.
    For further information on settings or installation, please refer to the Final Cut Express documentation available on your installation discs.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Toggle a specific input source with Applescript

    Hello to all,
    I am trying to write an Applescript to toggle a specific language input source. My main input sources are two, english and greek, but in many occasions i have to enable the "Greek polytonic" keyboard. So, after some search on the internet, I wrote this:
    tell application "System Preferences"
      activate
              reveal anchor "InputMenu" of pane id "com.apple.Localization"
    end tell
    tell application "System Events" to tell process "System Preferences"
      click checkbox of row 76 of table 1 of scroll area 1 of tab group 1 of window 1
    end tell
    quit application "System Preferences"
    It compiles OK, but when I run it what happens is that the selected checkbox (the "Greek Polytonic" one) gets checked and INSTANTLY unchecked.
    Why does this happen?
    Thanks in advance
    Dimitris

    Hello
    I have confirmed the odd behaviour under 10.5.8. It seems to me the required accessibility is defective under 10.5.8. The GUI scripting code works fine under 10.6.8 but the row index of the enabled input source will change to some smaller number when you reopen the System Preferences.app.
    Anyway, I've written a simple command line utility in C, which lets you manipulate the text input source. Here's the recipe for you.
    # Recipe.
    A) To compile and test the C programme.
    A1) Copy the code listed below as main.c into new document of text editor (e.g. TextEdit) and save it as plain text named "main.c" on desktop.
    A2) In Terminal.app, run the following (type each line followed by return) to create an executable file named "textinputsource" on desktop:
    cd ~/Desktop
    gcc -framework Carbon -o textinputsource main.c
    A3) In Terminal.app, type the following and return to toggle the enabled/disabled state of the specified input source:
    ./textinputsource -t 'Greek Polytonic'
    B) To create an AppleScript wrapper to call this utility.
    B1) Create a new AppleScript script with the following contents and save it as a script bundle or an application bundle:
    set p to (path to resource "textinputsource")'s POSIX path
    do shell script p's quoted form & " -t 'Greek Polytonic'"
    B2) Show package contents (via contextual menu) of the saved bundle and put the executable file "textinputsource" loose in its Contents/Resources directory. Now you can run the script bundle or the application bundle to toggle the input source.
    # Notes.
    • The utility programme has some other options. E.g., you can select the specified source by -s option. See comments in source code for details.
    • You need to have Developer Tools installed to build the programme.
    • Tested under 10.5.8 and 10.6.8 but no warranties of any kind.
    • I noticed that System Preferences.app won't update the check box live when the enabled/disabled state is changed by this utility. You'd need to rerun the System Preferences to reflect the change in its GUI.
    • This is freeware you may use and modify as you like.
    # File
    main.c
        file
            main.c
        function
            to manipulate text input source, i.e.,
                - print currently selected source,
                - select specified source (enable it as needed)
                - enable specified source,
                - disable specified source,
                - toggle enabled/disabled state of specified source.
        compile
            gcc -framework Carbon -o textinputsource main.c
        usage e.g.
            ./textinputsource [-s|e|d|t name]
            given no arguments, it will print the current source name.
            options:
                -s : select source name (enable it as needed)
                -e : enable source name
                -d : disable source name
                -t : toggle enabled/disabled on source name
    #include <Carbon/Carbon.h>
    #include <libgen.h>    // basename
    TISInputSourceRef getInputSourceByName(char *);
    int
    main (int argc, char * argv[])
        int ret = -1;
        int c;
        TISInputSourceRef tis;
        CFStringRef name;
        OSStatus err = 0;
        while ((c = getopt(argc, argv, "s:e:d:t:h")) != -1)
            switch (c)
                case 's':
                    tis = getInputSourceByName(optarg);
                    if (tis)
                        CFBooleanRef enabled = TISGetInputSourceProperty(tis, kTISPropertyInputSourceIsEnabled);
                        if (enabled == kCFBooleanFalse)
                            TISEnableInputSource(tis);
                        err = TISSelectInputSource(tis);
                        CFRelease(tis);
                    ret = tis ? (int) err : 1;
                    break;
                case 'e':
                    tis = getInputSourceByName(optarg);
                    if (tis)
                        err = TISEnableInputSource(tis);
                        CFRelease(tis);
                    ret = tis ? (int) err : 1;
                    break;
                case 'd':
                    tis = getInputSourceByName(optarg);
                    if (tis)
                        err = TISDisableInputSource(tis);
                        CFRelease(tis);
                    ret = tis ? (int) err : 1;
                    break;
                case 't':
                    tis = getInputSourceByName(optarg);
                    if (tis)
                        CFBooleanRef enabled = TISGetInputSourceProperty(tis, kTISPropertyInputSourceIsEnabled);
                        if (enabled == kCFBooleanTrue)
                            err = TISDisableInputSource(tis);
                        else
                            err = TISEnableInputSource(tis);
                        CFRelease(tis);
                    ret = tis ? (int) err : 1;
                    break;
                case 'h':
                case '?':
                default:
                    fprintf(stderr, "Usage: %s %s\n\t\%s\n\t%s\n\t%s\n\t%s\n\t%s\n",
                        basename(argv[0]),
                        "[-s|e|d|t name]",
                        "-s : select source name (enable it as needed)",
                        "-e : enable source name",
                        "-d : disable source name",
                        "-t : toggle enabled/disabled of source name",
                        "no arguments : print current source name"
                    ret = 1;
                    break;
        if (ret == -1) // no args: print current keyboard input source
            tis = TISCopyCurrentKeyboardInputSource();
            name = TISGetInputSourceProperty(tis, kTISPropertyLocalizedName);
            int len = CFStringGetLength(name) * 4 + 1;
            char cname[len];
            bool b = CFStringGetCString(name, cname, len, kCFStringEncodingUTF8);
            printf("%s\n", b ? cname : "");
            ret = b ? 0 : 1;
        if (err != noErr)
            fprintf(stderr, "Text Input Source Services error: %d\n", (int) err);
        return ret;
    TISInputSourceRef
    getInputSourceByName(char *cname)
        //     char *cname : input source name in UTF-8 terminated by null character
        //     return TISInputSourceRef or NULL : text input source reference (retained)
        CFStringRef name = CFStringCreateWithCString(kCFAllocatorDefault, cname, kCFStringEncodingUTF8);
        CFStringRef keys[] = { kTISPropertyLocalizedName };
        CFStringRef values[] = { name };
        CFDictionaryRef dict = CFDictionaryCreate(kCFAllocatorDefault, (const void **)keys, (const void **)values, 1, NULL, NULL);
        CFArrayRef array = TISCreateInputSourceList(dict, true);
        CFRelease(dict);
        CFRelease(name);
        if (!array)
            fprintf(stderr, "No such text input source: %s\n", optarg);
            return NULL;
        TISInputSourceRef tis = (TISInputSourceRef) CFArrayGetValueAtIndex(array, 0);
        CFRetain(tis);
        CFRelease(array);
        return tis;
    Hope this may help,
    H

  • What is the difference between save as: Page Source & Web Archive.

    Hello,
    what is the difference between save as: Page Source & Web Archive.
    I want to save web pages permanently regardless if the website itself remains permanent.
    What does a Page Source save and what does a Web Archive save.
    Which would be best for my intentions?
    Thanks.

    What does a Page Source save
    Only the HTML code of the page you're looking at.
    what does a Web Archive save.
    The HTML source plus all objects such as images the source references. You may want to use the print to PDF feature.
    (56401)

  • I cannot break my java source into packages

    I would like to convert my java source in my Creator project(s) to standard package naming conventions such as com.mycompany.myapp but I'm having difficulty. After renaming the package within the Java Sources folder, and making necessary related corrections in referencing Java source files and managed-beans.xml I still cannot get the application to run. The IDE is also losing the ability to render the JSP source as well due to a broken binding reference that is not kept in sync. In general is it possible to use packages in Creator where the java source files are in sub-directory packages? I happen to be using Windows 2000. But I can use other operating systems if it will work elsewhere.

    Hello Iwan.
    Unfortunately, I was not able to find a clean workaround for implementing a multi-level package structure on an "existing" application.
    I WAS able to do it eventually knowing the desired tree structure I needed to reach (as already noted), but it required a lot of hand editing as Creator appropriately cautions.
    I even had to get into the private "project.prj" file eventually outside of creator in notepad to clean up my structure before I could finish.
    Anyway, I want to repost my prior instructions for implementing package structures on NEW projects.
    I found an error in yesterday's post and some misplaced words. This is a corrected version.
    Also, this approach was not tested exhaustively - but I think it is probably close.
    Again my environment happens to be running on Windows 2000.
    Updated/corrected notes for building a new "packaged" Creator application.
    =====================================================================
    It turns out you can avoid manual editing if you follow this sequence for new applications.
    It is helpful to understand these concepts that steer our procedure:
    1) The "Web Pages" directory and "Java Sources" directory require synchronized directory trees to accomodate the mirror relationship between packaged *****.jsp and *****.java bean backing files.
    2) The "Web pages" directory tree will not display the highest-level node - it apparently shares/references the highest-level package node immediately under the Java Sources folder.
    You will need to substitute your own names for package nodes as desired.
    This example develops the package named "com.company.division.mypackage".
    As such my project directory tree goal is:
    Project Navigator (Logical View)
    =========================
    MyProject
    -- Web Pages
    ---- Resources (ignore for this exercise)
    ---- company
    ------ division
    -------- webapplication1
    ---------- Page1.jsp
    -- Page Navigation (ignore for this exercise)
    -- Managed Beans (ignore for this exercise)
    -- Java Sources
    ---- com
    ------ company
    -------- division
    ---------- webapplication1
    ------------ ApplicationBean1.java
    ------------ Page1.java
    ------------ SessionBean1.java
    + Library References (ignore for this exercise)
    + Data Source References (ignore for this exercise)
    Steps to repackage your application without manual editing:
    ==========================================================
    1) Create a new default application - in our case my case named WebApplication1:
    Use any method you want to create a new project accepting all default naming.
    You will get a project with 3 java beans (Application, Session, and Page) and Page1.jsp.
    I had confusion because of names similar to WebApplication1 used for the Project, Context, Package, and Application.
    The following two options decouple two of these names - that may or may not be helpful for you.
    Optional: Rename project WebApplication1 to MyProject to avoid naming extension confusion:
    Select the top/main folder in the Project Navigator and right click for context menu options
    Select the Rename Project option, enter your desired name, and click OK
    Please allow several seconds for the project refactoring to rebuild your directories
    Optional: Rename project context from webapplication1 to URL context name appropriate for you:
    Select the top/main folder in Project Navigator (Just named MyProject in the preceding example)
    Enter your desired URL Context Path in the Properties window field and press Enter.
    2) Delete the Page1.jsp file and Page1.java file as follows:
    Select the Page1.jsp or Page1.java file
    Right click for a context menu and select the delete option
    Accept/Acknowledge deletion of the synchronized counterpart bean/jsp
    3) Build your new Web Pages directory tree as shown above without a "com" folder:
    Use either the context menu "New > Folder" or "New > Package" option - they both work
    As shown we need to create a 3 level sub-folder: company, then division, then webapplication1
    4) Build your new Java Sources directory tree starting by renaming your package root:
    In the Java Sources folder rename "WebApplication1" package to "com".
    This is accomplished within the context menu accessed via right-click on your mouse.
    Enter "com", press Ok, and then accept "Yes" to rename all package declaration references.
    Enter "Ok" to acknowledge the need for warning about manual editing being necessary.
    Use the context menu "New > Folder" or "New > Package" option - they both work
    to create / add the remaining sub-directory folders within the newly named "com" folder.
    As shown this is 3 more sub-folders: "company", then "division", then "webapplication1".
    5) Copy your Application Bean java file then delete it from the source:
    Right-click on your ApplicationBean1 file and select copy.
    Select (left-click) the target Java Sources > com > company > division > webapplication1
    folder and paste the file copy (Ctrl-v).
    Now delete the original application bean source in the "com" folder with the delete key.
    6) Copy your Session Bean java file then delete it from the source:
    Right-click on your SessionBean1 file and select copy.
    Select (left-click) the target Java Sources > com > company > division > webapplication1
    and paste the file copy (Ctrl-v).
    Now delete the original SessionBean1 source in the "com" folder with the delete key.
    6) Recreate your request Web Pages folder Page1.jsp - the java bean will be echoed:
    Left-click (select) the folder: Web Pages > company > division > webapplication1.
    Right-click for a context menu and select New > Page and type "Page1" and press Enter.
    You should see a new Page1.jsp file in Web Pages > company > division > webapplication1.
    You should see a new Page1.java file in Java Sources > com > company > division > webapplication1.
    You're ready to create code within your company's packaging structure!
    Regards,
    Craig Hunt

Maybe you are looking for

  • HTML links from Full Check Accessibility report do not open the corresponding PDF links

    I regularly generate full Check accessibility reports for the PDF user guides I create in MSWord. However, when I click the links in the HTML file/report generated, they are supposed to link/highlight the corresponding errors in the PDf file. Instead

  • Can't install windows xp on macbook air

    Hi, I have posted already on the forum about 1 month ago or more and no one answered me, so trying again. How can I install windows xp on my macbook air? I have an original xp sp2 disk and a generic external dvd burner with usb. I have tried many tim

  • Car kit problem HFU-5 control box

    I recently installed my car kit for my nokia 6230i and it worked great no problems.... now my radio is on constant mute and the phone is not connecting up when I put it on the cradle.........any suggestions

  • Best way to fix and install 2.0 update

    I have read a number of complaints on the 2.0 update. I am no tekkie but I do know you have to be patient with the update. It is a new os for the phone so it takes about 15 min to update. The phone disconnects a number of times you will get multiple

  • Update trigger

    I have emp table. columns ename ,emp_type ,address etc I can insert as many as record like ename 'john' and emp_type 'N'.. but i can only insert one record 'john' and emp_type 's' so my when i do insert or update i want to check if record already exi