Handling dialog launch and return events

Hello guys!
I have button on tool bar with source code like this:
<af:commandToolbarButton text="Новый-2"
id="ctbNewAttrib2"
launchListener="#{Class1.handleDialogLaunch2}"
returnListener="#{Class1.handleDialogReturn2}"
actionListener="#{Class1.launchPopup}"/>
On the PopUp is Dialog with OK, Cancel buttons and some other input controls.
In java code I have functions:
public void popupCanceled(PopupCanceledEvent popupCanceledEvent) throws IOException {
public void handleDialogClose(DialogEvent dialogEvent) throws IOException {
if (dialogEvent.getOutcome().equals(DialogEvent.Outcome.ok)) {
These funcs work well.
But I can't get control in functions
public void handleDialogLaunch2(LaunchEvent launchEvent) throws IOException {
// Add event code here...
public void handleDialogReturn2(ReturnEvent returnEvent) throws IOException {
// Add event code here...
How I can walk around it and get values from controls on Dialog and otherwise set before Dialog opens?
Please, give me more details if you can, cos I came from C# Forms development.
Thanks a lot.

Here could be one approach:
On you button.. have showPopupBehaviour() -- to launch your popup.
Override Popup's : popupFetchListener --> use it to process logic before popup/dialog is displayed..
Override Dialog's: DialogEvent -- To perform actions when dialog is closed.. check for outcome .. if its yes/ok .. perform your logic.
I guess using these you will not need .. launchListener and returnListener.
Amit

Similar Messages

  • R12.2.4 Data lost after using Dialog Page and return back to calling page.(Help Please! )

    Hi Team,
    I am new to OAF and is working on a requirement to add some custom validations when the user clicks on a Button in a standard seeded page.
    The approach I took was to Extend the seeded Controller object that handled this button press event and put my custom logic in the extended controller and override the standard controller via personalization.
    The standard flow was that upon pressing the Complete Button in Page A ,user was taken to the next seeded page (Page B) to perform certain operations based on the records that were selected in Page A.
    Part of the custom validation requirement was that if certain validations were not met then the user needs to be shown a Pop-up asking if they really wanted to proceed and if they selected Yes then continue with the standard seeded flow(move to page B)  and if they selected NO then just stay on the current page.
    I was able to use OADialogPage and do this partially , the issue I am running into is that once the user selects the one or more records  using a check box from a multi-record (table) region and hits the Complete Button on page A and if the validation fails then a modal page is shown and the user makes a selection i.e.either Yes or No from the modal page and when they return to calling page (i.e. Page A) , All the Data (records ) that they selected previously is lost (Page is refreshed). Based on what I see on this forum I suspect that it is because after clicking on Yes on the modal page and while returning to the original page the processRequest fires again and VO data is queried again and all selections on the page A are lost. Since I am trying to alter the flow in seeded pages based on user intervention I am kind of lost as to how this issue can be fixed. i.e. either prevent the page refresh or preserve the selections that were made prior to navigating to the modal page. Any Help is truly appreciated !!
    My Code :
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    if (oapagecontext.getParameter("completeOps") != null) {
    if (warnCount > 0) {
      //OAException message = new OAException("Not in Sequence...", OAException.WARNING);
      //oapagecontext.putDialogMessage(message);
      OAException message = new OAException("Rule XYZ Violated .Do you want continue ?",OAException.WARNING);
      OADialogPage dialogPage = new OADialogPage(OAException.WARNING, message, null, "","");
      String yes = oapagecontext.getMessage("AK", "FWK_TBX_T_YES", null);
      String no = oapagecontext.getMessage("AK", "FWK_TBX_T_NO", null);
      dialogPage.setOkButtonItemName("ConYesButton");
      dialogPage.setNoButtonItemName("ConNoButton");
      dialogPage.setOkButtonToPost(true);
      dialogPage.setNoButtonToPost(true);
      dialogPage.setPostToCallingPage(true);
      dialogPage.setOkButtonLabel(yes);
      dialogPage.setNoButtonLabel(no);
      oapagecontext.redirectToDialogPage(dialogPage);
    if (oapagecontext.getParameter("ConYesButton") != null)   {
              // Write Action code for Yes Button
              oapagecontext.putParameter("completeOps", "Continue");
    if (oapagecontext.getParameter("ConNoButton") != null){
                // Write Action code for No Button
                String errormsg = "Rule Violations have occured ";
                throw new OAException(errormsg);
       super.processFormRequest(oapagecontext, oawebbean);

    I was able to work around this issue by adding a simple check in the processRequest method of my extended Controller to prevent the call to super.processRequest incase when the control returns to the page after the user has made a selection in the Dialog Page
    if((oapagecontext.getParameter("ConYesButton") == null) && (oapagecontext.getParameter("ConNoButton") == null)) {
      super.processRequest(oapagecontext, oawebbean);
    Thanks !

  • Everytime I open Safari or Mail, they crash at launch and return me to the Springboard. Anyone know how to help?

    I uninstalled "Rocky Racoon" in Cydia so that I could unjailbreak my iPod Touch, since it was slow and kept freezing. It runs fine, since I deleted all of the packages I installed myself first (to make sure there was no permanent damage). The only problem is that now, everytime I open Safari or Mail, they immediately crash and send me back to the homescreen. I've downloaded the Google Chrome app as a replacement for now, but I find Safari much more convenient. Anyone know how to fix this?

    - Try a reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Purchase/install any new app
    - iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    - Restore from backup
    - Restore to factory settings/new iPod

  • Cffunction - Accepting and Returning PDFs in memory

    Hello,
    This is something that I should probably know by now in my CF career, but up until now I have never thought/had to do this type of thing.
    I have defined a couple functions that I would like to handle accepting, manipulating, and returning PDFs in memory. What data types should I be using for accepting and returning the PDF in memory between functions?  I would prefer to stay away from "any" if possible, but let me know if that is the only choice.
    <cffunction name="AddMeUhWaddaMak" returntype="any" access="public" output="no">
            <cfargument name="src" type="any" required="yes">
            <cfargument name="name" type="string" required="no">
                   <cfpdf action="addWatermark"
                            source="#arguments.src#"
                            name="#arguments.name#"
                             ...>
                         <cfreturn arguments.name>
    </cffunction>

    Thanks again for the advice.  I was doing a little tinkering around with isPDFObject() just to see how it works and came to another question. See below..
    <cfdocument format="pdf" name="test2">
    test
    </cfdocument>
    <cfdump var="#isPDFObject(test2)#"><cfabort>
    The result says "NO", even though when I dump out "test2" it shows up as binary.

  • ADF Faces EA15: table update not working properly after dialog return event

    Hi,
    in my application I have a table with read-only records and an edit button for each row.
    The button triggers a dialog where one field of of the record can be edited.
    The record is a bean which is put into processScope.
    After accepting the change in the dialog the bean makes an update in the database changing the order of the records in the table on the launching page.
    The return event triggers a re-rendering of the launching page (which I can see from the output of a phase listener) and the table model gets updated but the table output is not updated visually.
    However, if I call the dialog on another record I don't get the record I see in the table but instead I get the record which I'd expected if the table re-rendered properly.
    Do I have to trigger any kind of event on the table now so that the framework knows that a change has taken place and that the table has to be re-rendered? There is no difference whether I use PPR or not. It used to work in EA14.
    Thanks,
    Achim

    In EA14, the return from the dialog required a full-page refresh (whether the dialog was launched with PPR or not didn't matter). In EA15, it's done with PPR if possible. This avoids the flash (and re-scrolling, etc.), but means you do need to tell us what's going to get changed because of the return. You can use partialTriggers on the table with the "id" of the button to make this happen.

  • Handle RETURN event of a popup

    Hello,
    I have called a popup on a ction of a button from a standard component BP_HEAD. The Popup is a view of a custom component ZTEST which is embaded through component usage of BP_HEAD.
    I have added 1 Model node BuilHeader & a value node ZSTOCK in the Pop up view context node.
    In the IF_BSP_MODEL~INIT method of value node, I have written code so that it can fetch value from table. Till now it is working fine.
    Now from BP_HEAD, I have called the popup from a view set.
    LV_POPUP = ME->COMP_CONTROLLER->WINDOW_MANAGER->CREATE_POPUP(
                              IV_INTERFACE_VIEW_NAME = '/KGO/CO_STK_EXCHG/MainWindow'
                              IV_USAGE_NAME          = 'COStockPopup'
                              IV_TITLE               = 'Stock Exchange' ).
    LV_POPUP->SET_ON_CLOSE_EVENT( IV_VIEW = ME IV_EVENT_NAME = 'RETURN').
    LV_POPUP->OPEN( ).
    The popup is displaying some fields from value context node in Edit mode.
    Now if  I want to change some field and get details on RETURN event, how can I get value node of my custom component from BP_HEAD event handler?
    How can I access the value nodes of my from here?

    Hi,
    You can get the context of your popup on the return method.
    - First you have to make a global attribute of your popup reference LV_POPUP.
    - Then in your popup component, add the context of the popup view on the ComponentInterface to make it global.
    - Now you can read it from the return method of the origin view.
    lv_cn_popup = lv_popup->get_context_node( iv_cnode_name = `POPUP_CONTEXT` ).
    Hope it helps.
    Regards.
    Isaac

  • My Facebook won't launch. It crashes and returns to the home page. What to do?

    My Faebook won't launch. It crashes and returns to the home page.

    Hi naomi118,
    If you are having issues with the Facebook app on your iPad, you may find the following article helpful:
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open
    http://support.apple.com/kb/ts1702
    Regards,
    - Brenden

  • Multiple movieclips and mutiple event handling.

    Hi All,
    I have multiple movieclips(images sequence), which I want to add mouseevent (click and drag), keyboard event(left and right arrows) and zoom event(mouse wheel).
    I have this function for only one mc(one image sequence).
    Now if I use this function, I am having problem with calling the function from the same frame.
    That is,
    If click another mc from say frame 3, and click on another function, it should continue from frame 3 only, not start from first frame again.
    Please help.
    Thanks in advance.

    I assume that shows the part where you rotete the house view in a 360degree fashion?
    if so, make a global var on your root timeline:
    var rotationframe:int = 1; //in the beginning of the app all the dirffernt images are sitting on frame 1
    you can access this var from anywehere inside any function of your app by calling:
    root.rotationframe
    now in the function that handles the rotation (lets say its your keyboard function) in the end (after you moved the playhead) you make sure to always set
    root.rotationframe  =  garage.currentFrame;
    and in the function that handles the switching between images you write sth. like
    gotoAndStop(root.rotationframe);
    Be aware, you can`t simply use that code without adapting it to your special needs.

  • [svn:cairngorm3:] 16673: Removed selectors and [ManagedEvents] tags, We are now using dispatchers and explicit event types to handle commands

    Revision: 16673
    Revision: 16673
    Author:   [email protected]
    Date:     2010-06-25 09:43:24 -0700 (Fri, 25 Jun 2010)
    Log Message:
    Removed selectors and tags, We are now using dispatchers and explicit event types to handle commands
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/InsyncContext.mxml
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/RefreshSearchAfterSav eController.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/RemoveContactCommand. as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/RemoveContactIntercep tor.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/SaveContactCommand.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/SearchEvent.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactFormPM.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactsListPM.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactsNavigatorPM. as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ToolbarPM.as
        cairngorm3/trunk/samples/insync/insync-basic/test/insync/application/RefreshSearchAfterSa veControllerTest.as
        cairngorm3/trunk/samples/insync/insync-basic/test/insync/application/RemoveContactCommand Test.as
        cairngorm3/trunk/samples/insync/insync-basic/test/insync/application/SaveContactCommandTe st.as
    Added Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/AddContactEvent.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/EditContactEvent.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/RemoveContactEvent.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/SaveContactEvent.as

    bleach wrote:
    i see these
    URxvt*background: #171717
    URxvt*foreground: #B2B2B2
    URxvt*color0: #171717
    URxvt*color1: #3D3D3D
    URxvt*color2: #ffffff
    are not commented out
    3d3d3d is for red but you have a blackish and color2 is for green but you have it white the rest should be the default colors. it uses the same colors only it changes the vairiant of the color you choice there or normally moc uses colors such as green blue and such which will call your console colors for those respective fields I know moc has /user/share/moc/themes/ that you can edit or make your own for instance copy one and edit it. I think htop uses the same color count which is 8 but with so green will be white when you use urxvt. 8 for normal colors 16 for bright dark and urxvt is 256 which is 16 but can use any of the 256 colors for 16.
    just to clarify you have commented out your colors 4-15 and your green and red is weird, and htop aswell as moc is 8 bit. moc theme_yellow_red is default for background so it will use urxvts background
    Haahaha, that is simple. And it works!!!
    I didn't bother with commenting that because i thought they are not applied. Anyway, thanks man. My urxvt terminal si grateful to you and your thorough explanation. SOLVED!

  • What is the diffrence between sap events and application events

    Hi all,
    what is the diffrence between sap events and application events.Can any one tell me with examples.
    regards,

    Hi,
    Look at this,
    <b>System Events (Default)</b>
    The event is passed to the application server, but does not trigger the PAI. If you have registered an event handler method in your ABAP program for the event (using the SET HANDLER statement), this method is executed on the application server.
    Within the event handler method, you can use the static method SET_NEW_OK_CODE of the global class CL_GUI_CFW to set a function code and trigger the PAI event yourself. After the PAI has been processed, the PBO event of the next screen is triggered.
    The advantage of using this technique is that the event handler method is executed automatically and there are no conflicts with the automatic input checks associated with the screen. The disadvantage is that the contents of the screen fields are not transported to the program, which means that obsolete values could appear on the next screen. You can work around this by using the SET_NEW_OK_CODE method to trigger field transport and the PAI event after the event handler has finished.
    <b>Application Events</b>
    The event is passed to the application server, and triggers the PAI. The function code that you pass contains an internal identifier. You do not have to evaluate this in your ABAP program. Instead, if you want to handle the event, you must include a method call in a PAI dialog module for the static method DISPATCH of the global class CL_GUI_CFW. If you have defined an event handler method in your ABAP program for the event (using the SET HANDLER statement), the DISPATCH method calls it. After the event handler has been processed, control returns to the PAI event after the DISPATCH statement and PAI processing continues.
    The advantage of this is that you can specify yourself the point at which the event is handled, and the contents of the screen fields are transported to the application server beforehand. The disadvantage is that this kind of event handling can lead to conflicts with the automatic input checks on the screen, causing events to be lost.
    Hope u understood.
    Thanks&Regards,
    Ruthra.R

  • Aperture and iPhoto Events

    Just wondering if I do decide to switch to Aperture 3, how does it handle importing all my iPhoto events? Do they become "Projects" and behave the same way? I know the app just came out but any help would be great. Thanks in advance.

    it freezes every time at the same place.
    Suggests that there's a problem in the iPhoto Library at that place, no?
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • Applescript to open the Choose Folder dialog box and close the message after moving it

    I've been trying to figure out how to get the same functionality as the Windows version of Outlook has so that the open message gets closed when it's moved to another folder.
    It seems pretty simple to move a message to a pre-defined folder, but I can't find a way to open the Choose Folder dialog so I could choose the destination folder. I've looked through the dictionary, but couldn't find any direct way to activate the Choose Folder dialog. So I decided to use keystrokes for the job. Here's what I came up with:
    on run {}
        tell application "Microsoft Outlook"
            try
                set theMessage to first item of (get current messages)
                set folderID to the folder of theMessage
            on error errMsg number errNum
                set dialogReply to display dialog "Please select one or more messages to file away before running this script." buttons {"Abort"} default button 1
                return
            end try
            -- open the Choose Folder dialog
            tell application "System Events" to keystroke "m" using {command down, shift down}
            repeat
                delay 2
                set currentID to the folder of theMessage
                if currentID is not folderID then exit repeat
            end repeat
            -- Close the active message
            tell application "System Events" to keystroke "w" using command down
        end tell
    end run
    This is my first attempt to do anything with AppleScript..
    Now in addition to using keystrokes instead of Outlook built-in commands to open the Choose Folder dialog and to close the message, I also have another problem. Everytime I run the script from AppleScript Editor, everything runs fine, the message gets moved to the folder I choose and the message also gets closed. When I move the script to "~/Library/Application Support/Microsoft/Office/Outlook Script Menu Items" and start it from inside Outlook, Outlook  gets stuck after opening the Choose Folder dialog and I have to force quit Outlook. I added some debuggin to the script and found out that the script keeps running, but I'm unable to select the folder from Outlook and cannot continue.
    Anybody have an idea why this is happening?
    Regard,
    Kris

    (For the record)
    Unchecking "Submit crash reports" in the Firefox [[Options window - Advanced panel]] General tab simply toggles the default of the "Tell Mozilla about this crash so they can fix it" check box in the Mozilla Crash Reporter dialog (upon crash). It does not turn off the Crash Reporter itself.
    Related bug report:
    * [https://bugzilla.mozilla.org/show_bug.cgi?id=577221 Bug 577221 - Firefox doesn't remember "submit crash report" check box]
    The above information has been added to
    http://kb.mozillazine.org/Breakpad#Can_I_disable_Crash_Reporter.3F

  • Creating a function and return something from an XML file

    Hi!
    I'm working with timeline actionscript. I want to create a function that loads my xmlfile and returns an xmlobject with the file's content.
    This is what I got so far:
    my_btn.addEventListener(MouseEvent.CLICK, getXML("myxml.xml")); //1067: Implicit coercion of a value of type void to an unrelated type Function.
    function getXML(fn:String):void{
         var infoLoader:URLLoader = new URLLoader();
         infoLoader.addEventListener(Event.COMPLETE, xmlLoaded);
         infoLoader.load(new URLRequest(fn));
         var myXML:XML = xmlLoaded(); //1136: Incorrect number of arguments.  Expected 1.
         trace(myXML);
    function xmlLoaded(e:Event):XML{
         return e.target.data;
         //trace(e.target.data);
    Can anyone take a look and perhaps point me in the right direction?
    Thanks

    I have never used a listcomponent, so I can only help with the steps before filling it with data.
    I think you should at start of your application load the XML with filenames and just after it's completed, e.g. in Event.COMPLETE handler, load all other XMLs looping through filenamesXML, like this
    var filenamesXML:XML;
    var XMLsToLoad:uint = 0;
    function filenamesXMLLoaded(e:Event):void
         filenamesXML = XML(e.target.data);
         XMLsToLoad =  filenamesXML.filenames.children().length();
         for (var i:uint =1; i < filenamesXML.filenames.children().length(); i++)
                  getXML( filenamesXML.filenames.children()[i] ); // the function from my previous post, don't forget to implement it
    //modify the minor xml load handler from the previous post
    function xmlLoaded(e:Event):void
         var loadedXML:XML = XML(e.target.data);   
         xmlArray.push(loadedXML);
         XMLsToLoad--;
    //assign the one click handler to all buttons, a loop here would be quite handy
    function clickHandler(e:MouseEvent):void
         if (XMLsToLoad == 0) //check if all xmls have been completely loaded
              switch (e.target.name) // swith by clicked button's instance name
                   case "button_1":
                        // here you have to implement supplying listcomponent with data, I think a loop again will be a good idea
                        break;
                   case "button_2":
                        // ibid.
                        break;
    Regards,
    gc

  • MVC �Best Practice� (handling multiple views per action/event)

    Looking for the best approach for handling multiple views for one action/event class? Background: I have a small application using a basic MVC model, one controller servlet, multiple event classes, and multiple JSP views. For performance reasons, the controller Servlet is loaded once, and each event class is an instance within it. Each event has an �eventProcess()� and an �eventForward()� method called by the controller, standard stuff.
    However, because event classes should not use instance variables, how should I communicate which view to forward to should based upon eventProcess() logic (e.g. if error, error.jsp, if success, success.sjp)? Currently, there is only one view mapped per event, and I'm having to put error handling logic in the JSP, which goes against the JSP being for just view only.
    My though was 1) A session object/variable that the eventProcess() sets, and the eventForward() reads, or 2) Have eventProcess() return a mapping key and have the conroller lookup a view page based upon that key, as opposed to 1-1 event/view mapping.
    Would like your thoughts!
    Thanks
    bRi

    Your solution seems ok to me, but maybe the Struts framework from Apache
    that implements MVC for JSP is a better solution for you:
    http://jakarta.apache.org/struts/index.html
    You should take a look at it. It has in addition some useful taglibs that makes life much easier.
    We have successfully used it in a project with about 50 pages.

  • Dialog framework and commandButton doesn't display in new window

    I'm using a af:commandButton to launch a dialog in a new windows with no luck
    I'm using EA1 and ADF EA 19, my command button is
    <af:commandButton text="dialogo"
    launchListener="#{controladorLink.launch}"
    useWindow="true"
    returnListener="#{controladorLink.regreso}"
    partialSubmit="true"
    action="#{controladorLink.accion}"
    actionListener="#{controladorLink.actionListener}"
    windowHeight="200" windowWidth="300">
    Am I doing something wrong? According to the Dialog Framework documentation you need to set an "useDialog" attribute, but it doesn't exists in commandButton, do I need to use commandLink necessarily?
    Thanks

    Did you take care of these requirements?
    The value bound to the action should return a string of the form "dialog:.....".
    Eg: <af:commandButton text="Show More Information"
    action="dialog:showDetail"/>
    And there is a navigation-case that needs to be added to the faces-config.
    <navigation-rule>
    <from-view-id>/*</from-view-id>
    <navigation-case>
    <from-outcome>dialog:showDetail</from-outcome>
    <to-view-id>/showDetail.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    Hope this helps.
    Thanks,
    Balaji

Maybe you are looking for

  • How to add comments in IP so that no multiple lines are created?

    Hi, I have a problem with adding free text in IP. I'm using this How-to guide: How to Flexibly Change Characteristic Values and Comments in BI Integrated Planning http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10d2b273-0e12-2c10-fab3-a34bde55

  • External hard disk not detecting

    Hi, I am using WD 1 TB external hard disk and it was going all good till now one day my friend asked for my hard disk as he need to back up some data and connected it to PC. Now I am trying to connect it to mac but mac is not detecting. My hard disk

  • I upgrade my Iphone 5C with IOS 8.1.1 and now I can't synchronize my iphone with my computer, it stop on level 3 (calendars synchronization)

    Problem of Iphone 5C synchronization after an upgrade 8.1.1.: I upgrade my Iphone 5C with IOS 8.1.1 and now I can't synchronize my iphone with my Apple computer, it stop on level 3 (calendars synchronization). Could you help me ? Thanks

  • How to read cluster data

    How can I read in separate paramters from a cluster? (plz see the attached VI) It could be a simple problem, but I cannot figure this out. plz help! BR, Attachments: aggressor config read.vi ‏57 KB

  • D300 & Lightroom 1.0

    Just bought the D300 but it seems as if my Lightroom 1.0 cannot import RAW images. Am I doing something wrong or do I need to upgrade or buy a different version of Lightroom? Thank you. I am using a MAC