Problem in Directory Selection

Though this is not a java problem, I hope anybody may
know the solution.
I have a HTML form, through which we need to select a directory (not file. input type=file selects files only).
Any help is much appreciated.
Thanks in advance.

Bathra,
There is no way to do that with HTML only. You'd better use an applet to do it, or an ActiveX component.
There are lotsa to download for free, just look through google.
greetings,
maesj

Similar Messages

  • Prompt for Directory Selection when deploying in WEB

    I have created a Java code to prompt for directory selection and it works when alone. When I get the code with the JavaBean in the forms 6i application, no dialog prompt appears when clicking the "Get_directory" button. The Java code is listed below.
    (A) File DDialog.java
    package oracle.forms.intex;
    import java.awt.*;
    import javax.swing.*;
    import java.beans.*;
    import java.io.File;
    public class DDialog extends Canvas {
    private String directory_name ;
    private PropertyChangeSupport pcs;
    public DDialog() {
    directory_name = "";
    pcs = new PropertyChangeSupport(this);
    public void set_directory_name() {
    JFrame frame = new JFrame("Get Directory");
    javax.swing.JFileChooser OpenDlg = new JFileChooser();
    OpenDlg.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    int returnVal=OpenDlg.showOpenDialog(frame);
    String old_directory_name = directory_name;
    if(returnVal == JFileChooser.APPROVE_OPTION)
    File selectedFile = OpenDlg.getSelectedFile();
    if (selectedFile.isDirectory())
    directory_name=selectedFile.getPath();
    pcs.firePropertyChange("directory_name", old_directory_name, directory_name);
    public void addPropertyChangeListener(PropertyChangeListener pcl) {
    pcs.addPropertyChangeListener(pcl);
    public void removePropertyChangeListener(PropertyChangeListener pcl) {
    pcs.removePropertyChangeListener(pcl);
    public static void main(String args[]) {
    new DDialog();
    (B) File DDialogPJC.java
    package oracle.forms.intex;
    import java.awt.*;
    import java.awt.event.*;
    import java.beans.*;
    import oracle.forms.properties.ID;
    import oracle.forms.handler.IHandler;
    import oracle.forms.ui.CustomEvent;
    import oracle.forms.ui.VBean;
    public class DDialogPJC extends VBean implements PropertyChangeListener{
    private Component mComp;
    private IHandler mHandler;
    private static final ID SHOWDIRECTORYDIALOG = ID.registerProperty("showdirectorydialog");
    private static final ID DIRECTORYNAME = ID.registerProperty("directoryvalue");
    private static final ID DIRECTORYCHANGEEVENT = ID.registerProperty("directorychangeevent");
    public DDialogPJC() {
    super();
    try{
    ClassLoader cl = getClass().getClassLoader();
    Object obj = Beans.instantiate(cl,"oracle.forms.intex.DDialog");
    mComp = (Component)obj;
    mComp.setVisible(true);
    mComp.setEnabled(true);
    ((oracle.forms.intex.DDialog)mComp).addPropertyChangeListener(this);
    // add the component to this
    add("Center",mComp);
    catch(Exception e){
    e.printStackTrace();
    public void init(IHandler handler)
    super.init(handler);
    mHandler = handler;
    public boolean setProperty(ID pid, Object value)
    if(pid ==SHOWDIRECTORYDIALOG) {
    ((oracle.forms.intex.DDialog)mComp).set_directory_name();
    return true;
    else
    return super.setProperty(pid,value);
    public void propertyChange(PropertyChangeEvent pce) {
    String new_directory_name=(String)pce.getNewValue();
    try {
    mHandler.setProperty(DIRECTORYNAME, new_directory_name);
    catch(Exception e) {}
    CustomEvent ce = new CustomEvent(mHandler, DIRECTORYCHANGEEVENT );
    dispatchCustomEvent(ce);
    (C) In the form, there is the button "GET_DIRECTORY" with code in WHEN_BUTTON_PRESSED trigger.
    declare
    DDialog_Bean Item;
    begin
    DDialog_Bean:=find_item('DDIALOG_BEAN');
    if not id_null(DDialog_Bean) then
    set_custom_item_property(DDialog_Bean,'showdirectorydialog',1);
    end if;
    end;
    (D) In the same form, there is the javabean area "DDIALOG_BEAN" with code in WHEN_CUSTOM_ITEM_EVENT trigger.
    declare
    DDialog_Bean Item;
    BeanValListHdl ParamList;
    paramType Number;
    EventName varchar2(20);
    directory_name varchar2(255);
    begin
    DDialog_Bean:=find_item('DDIALOG_BEAN');
    BeanValListHdl:=get_parameter_list(:system.custom_item_event_parameters);
    EventName:=:system.custom_item_event;
    if (EventName='directorychangeevent') then
    get_parameter_attr(BeanValListHdl,'directoryvalue',ParamType,directory_name);
    :directory_name:=directory_name;
    end if;
    end;
    Please advise where the problem is and fix it, much thanks.
    SK

    Hello there SK. actually i have same problem with you. i am only new to Forms6i. Itried your code DDialog.java and the DDialogPJC.java
    Ive got an error when i compile the DDialogPJC.java using the java complier.
    here is the err:
    package oracle.forms.properties does not exist
    package oracle.forms.handler does not exist
    package oracle.forms.ui does not exist
    package oracle.forms.handler does not exist
    how can i solve this problem. you said that it works properly in your machine.
    please help me on this, i also want to try fixing your problem, but i need this to be fixed first. thank you and more power

  • Problem in multiple selections in a jList

    I have two jLists. Now I have to select some items from one jlist and have to transfer in the other one. But while trying to do it in the runtime I am getting some unexpected runtime errors including "Exception occurred during event dispatching". When I try to transfer only one item it works fine but shows problem in multiple selections. Pleast give your suggestions.

    [_First suggestion_|http://catb.org/~esr/faqs/smart-questions.html]
    [_Second suggestion_|http://mindprod.com/jgloss/sscce.html]
    db

  • Problem in AT selection screen validation

    Hi,
    I am having problem in AT SELECTION SCREEN Validation.
    I have 2 radiobutton and 6 parameter. if i click first radio button  all the 6 radiobutton should enable and take the user input, that is working fine for me.
    if i click second radiobutton , out of 6 , 3 parameter should disable and remaining 3 should enable. thats also working fine.
    My problem is program has written the validation for this 3 parameter in the AT SELECTION SCREEN.
    For first radioutton all the validation working  fine, for second validation as soon as i press the radiobutton it will display error message. Based on 2 parameter user is filling value for 3 rd parameter.
    I want the same validation to be done for second radio button after user pressing enter.
    PARAMETER: p_single RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND f1,
               p_multi RADIOBUTTON GROUP rad1.
    PARAMETERS: s_pwwrk LIKE plaf-pwwrk.          
    PARAMETERS: p_lgort LIKE plaf-lgort.
    PARAMETERS: p_kostl LIKE cobl-kostl.
    here is my code:
    AT SELECTION SCREEN.
    CLEAR t001w.
      CLEAR t001k.
      CLEAR marv.
      SELECT SINGLE * FROM t001w WHERE werks EQ s_pwwrk.
      IF sy-subrc NE 0.
        MESSAGE e999 WITH 'Plant' s_pwwrk 'does not exist'.
      ELSE.
        SELECT SINGLE * FROM t001k WHERE bwkey EQ t001w-bwkey.
        SELECT SINGLE * FROM marv WHERE bukrs EQ t001k-bukrs.
        IF p_budat0(4) NE marv-lfgja OR p_budat4(2) NE marv-lfmon
    IF marv-xruem IS NOT INITIAL.
            IF p_budat0(4) NE marv-vmgja OR p_budat4(2) NE marv-vmmon.
    MESSAGE e999 WITH p_budat4(2) p_budat0(4)
                                'is closed.
                                            Please try again.'.
            ENDIF.
          ELSE.
            MESSAGE e999 WITH p_budat4(2) p_budat0(4)
                              'is closed.
                                          Please try again.'.
          ENDIF.
        ENDIF.
      ENDIF.

    For your Case ,
    If i understand clearly,You can do the validation when you want on AT SELECTION SCREEN ON WP_FIELD.
    If you say your validation to be done only for Selection of Second Radio Button, then..
    AT SELECTION SCREEN.
    if p_multi  eq 'X'. "<- Make Validation to be done only if user select Second Button
    CLEAR t001w.
    CLEAR t001k.
    CLEAR marv.
    SELECT SINGLE * FROM t001w WHERE werks EQ s_pwwrk.
    IF sy-subrc NE 0.
    MESSAGE e999 WITH 'Plant' s_pwwrk 'does not exist'.
    ELSE.
    SELECT SINGLE * FROM t001k WHERE bwkey EQ t001w-bwkey.
    SELECT SINGLE * FROM marv WHERE bukrs EQ t001k-bukrs.
    IF p_budat+0(4) NE marv-lfgja OR p_budat+4(2) NE marv-lfmon
    IF marv-xruem IS NOT INITIAL.
    IF p_budat+0(4) NE marv-vmgja OR p_budat+4(2) NE marv-vmmon.
    MESSAGE e999 WITH p_budat+4(2) p_budat+0(4)
    'is closed.
    Please try again.'.
    ENDIF.
    ELSE.
    MESSAGE e999 WITH p_budat+4(2) p_budat+0(4)
    'is closed.
    Please try again.'.
    ENDIF.
    ENDIF.
    ENDIF.
    endif.

  • Problem in my Select query

    Hi Experts,
    I need a clarification in my Select query.
    Have created a custom search help and my requirement is I have Request ID, Last and First Name as my search parameters. I need to fetch the values from my Ztable on search with the above said search parameters, where its workflow status = 30.
       * Get Request ID
      lv_pattern = <ls_query_params>-request_id.
      IF lv_pattern CA '*'.
        REPLACE ALL OCCURRENCES OF '*' IN lv_pattern WITH '%'.
      ENDIF. " IF lv_pattern CA '*'
      IF lv_pattern IS INITIAL.
        lv_pattern = '%'.
      ENDIF. " IF lv_pattern IS INITIAL
    ** Get NACHN - Lastname
        lv_last_name = <ls_query_params>-nachn.
        IF lv_last_name CA '*'.
          REPLACE ALL OCCURRENCES OF '*' IN lv_last_name WITH '%'.
        ENDIF. " IF lv_pattern CA '*'
        IF lv_last_name IS INITIAL.
          lv_last_name = '%'.
        ENDIF. " IF lv_pattern IS INITIAL
    ** Get VORNA - First Name
        lv_first_name = <ls_query_params>-vorna.
        IF lv_first_name CA '*'.
          REPLACE ALL OCCURRENCES OF '*' IN lv_first_name WITH '%'.
        ENDIF. " IF lv_pattern CA '*'
        IF lv_first_name IS INITIAL.
          lv_first_name = '%'.
        ENDIF. " IF lv_pattern IS INITIAL
    *Selecting the RequestID/Last and First Name values with workflow status as 30.
    SELECT zzreq_id " Internal number for appropriation request
                nachn
               vorna
      INTO TABLE lt_select_list
      FROM ZTABLE
      WHERE (  ( zzreq_id LIKE lv_pattern ) and
                     ( nachn like lv_last_name ) or
                      ( vorna LIKE lv_first_name ) )
           AND zzstatus = lv_workflow_status.
    My problem is, ofcourse this query is selecting all the records where status = 30 and even it works correctly, If I searches with Request ID(* or *3*).
    But am not able to select the records, if I searches with Last or First Name. Guess I did some thing wrong in select query.
    Please advice me.
    With Regards,
    Ram.

    Re: Problem in my Select query
    Krishna kumar Jun 9, 2014 7:52 AM (in response to Ramakrishnan Murugan)
    Hi Ramakrishnan,
                         Can you just try the below Select Query,
    SELECT zzreq_id
                nachn
               vorna
      INTO TABLE lt_select_list
      FROM ZTABLE
      WHERE ( zzreq_id     LIKE    lv_pattern                and
                         nachn         LIKE    lv_last_name         and
                         vorna          LIKE     lv_first_name )    and
                          zzstatus = lv_workflow_status.
    Cheers,
    Krishnakumar B.
    I think the above suggested query is same as your solution.

  • Problem in standard select query in fagll03

    Good Morning frndz,
    I m facing a problem while runnin fagll03. when executed it gives timeout error.
    When I debug it  , it gets stuck in a select query
    SELECT SINGLE * FROM t800m INTO CORRESPONDING FIELDS OF ls_b
    WHERE totable = ls_t800a-ntable
    AND fromtable = 'ACCIT_GLX'
    AND tofield = id_glflex_fieldname
    AND seqnr = space.
    The content in variable ls_t800a-ntable was FAGLFLEXA  and in id_glflex_fieldname was USNAM.
    When I cheked in table t800m, the entry could not be found. But in the report instead of setting
    sy-subrc = 0 , it is stuck in the select query itself....kindly suggest y it is happening so
    Regards,
    Vincy

    Re: Problem in my Select query
    Krishna kumar Jun 9, 2014 7:52 AM (in response to Ramakrishnan Murugan)
    Hi Ramakrishnan,
                         Can you just try the below Select Query,
    SELECT zzreq_id
                nachn
               vorna
      INTO TABLE lt_select_list
      FROM ZTABLE
      WHERE ( zzreq_id     LIKE    lv_pattern                and
                         nachn         LIKE    lv_last_name         and
                         vorna          LIKE     lv_first_name )    and
                          zzstatus = lv_workflow_status.
    Cheers,
    Krishnakumar B.
    I think the above suggested query is same as your solution.

  • Problem in displaying selected page items in the title in Graph

    Hi There;
    I have a problem in displaying selected value of named page item in the graphs.
    Eg. I have in my worksheet a page item named "Location"; when I use "&WorksheetName &Location" in the title of worksheet it is displaying both the worksheet title and value of selected page item "Location" in my example.
    But when I use the same (&WorksheetName &Location) in the title of graph or Axis of the graph, it would show up only the name of the worksheet but not the value of page item "Location", instead it would print "&Location"
    Any idea why it is not able to reference the select page item in Discoverer graph? I am using Oracle BI Discoverer 10.1.2.1.
    Thanks in Advance,
    Regards,
    Nidhi Jethoo

    Hi Michael;
    Thanks a lot. It might not have been considered necessary but you do require, e.g in my case I am plotting Average value of a Parameter and it does make sense in including the name/value of Parameter(surface water temp/bottom watter temp) as an Axis instead of just a constant Parameter or say Average Parameter. So that user can plot the variation of different parameters by changing the page items and when user changes the value of parameter and export the graph he/she has the parameter name(actual value) in the graph.
    But I can include all the parameters (&Parameters) or all the page items(using &PageItems) in graph then why not individual page-item and individual parameter.
    I would log a SR and see what they say.
    Thanks again,
    Nidhi

  • Problem in passing selection screen values using CALL TRANSACTION.

    Hi All
    I am facing problem in transfering selection screen values to the called transaction. I am trying to pass the path of the transaction filer but to no avail. The variable for filepath is not empty.
    Below is my code:
    DATA: lt_bdcdata TYPE TABLE OF bdcdata,
           wa_bdcdata TYPE bdcdata,
           opt TYPE ctu_params.
    CLEAR wa_bdcdata.
    wa_bdcdata-program  = 'RFBASM00'.
    wa_bdcdata-dynpro   = '1000'.
    wa_bdcdata-dynbegin = 'X'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'BDC_CURSOR'.
    wa_bdcdata-fval = 'RFPDO1-FEBUMSF'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'RFPDO1-FEBUMSF'.
    wa_bdcdata-fval = gv_filepath.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'BDC_OKCODE'.
    wa_bdcdata-fval = 'PASS'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    opt-dismode = 'E'.
    opt-updmode = 'S'.
    CALL TRANSACTION 'FF_5' USING lt_bdcdata OPTIONS FROM opt.
    Please help.
    Harsh

    Hi Harsh,
    I think you have entered wrong main program for tcode 'FF_5' and wrong screen field for the file name. Use the below code instead of yours.
    DATA: lt_bdcdata TYPE TABLE OF bdcdata,
           wa_bdcdata TYPE bdcdata,
           opt TYPE ctu_params,
           gv_filepath type char128 value 'C:\testfile.txt'.
    CLEAR wa_bdcdata.
    wa_bdcdata-program  = 'RFEBKA00'.
    wa_bdcdata-dynpro   = '1000'.
    wa_bdcdata-dynbegin = 'X'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'BDC_CURSOR'.
    wa_bdcdata-fval = 'UMSFILE'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'UMSFILE'.
    wa_bdcdata-fval = gv_filepath.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    *wa_bdcdata-fnam = 'BDC_OKCODE'.
    *wa_bdcdata-fval = 'PASS'.
    *APPEND wa_bdcdata TO lt_bdcdata.
    *CLEAR wa_bdcdata.
    opt-dismode = 'A'.
    opt-updmode = 'S'.
    CALL TRANSACTION 'FF_5' USING lt_bdcdata OPTIONS FROM opt.
    Thanks.
    Regards,
    Jey

  • Problem with the selection screen in submit program

    Hi Friends,
    i am facing the problem wih the selection screen in submit program. in my Module pool program i am using the submit program statement, When i execute the program , The module program display the submit program selections creen.
    I have implemented the code same as below.
    submit ztest with tknum =p_tknum and  return.
    Can you pleaes help me how to avoid the submit program selection screen.
    Thanks,
    Charan

    Hi Charan,
    You have to give the selection screen values when you submit a job.
    Press F1 on submit and you will see more details.
    Here is an example from ABAP Documentation.
    Program accessed
    REPORT report1.
    DATA text(10) TYPE c.
    SELECTION-SCREEN BEGIN OF SCREEN 1100.
      SELECT-OPTIONS: selcrit1 FOR text,
                      selcrit2 FOR text.
    SELECTION-SCREEN END OF SCREEN 1100.
    Calling program
    REPORT report2.
         DATA: text(10)   TYPE c,
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
          range_tab  LIKE RANGE OF text,
          range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind    = 'S'.
    rspar_line-sign    = 'I'.
    rspar_line-option  = 'EQ'.
    rspar_line-low     = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    Regards,
    Jovito.

  • Big problem with a select using remote database

    Hi Guy.
    I have a big problem with a simple query, but this is a scenario.
    Actuallly I'm in Alexandria - Egypt with a server with Oracle 10.2.0.4 database 32 bit on linux Red Hat as 4.8. the server can connect to another database oracle but 9.2.0.6 installed on Red Hat As 4.5 placed in Milano Italy . Ttwo networks are connected via two adsl cisco router with firewall and Vpn functions. In Egypt there isn't a very good adsl.
    In Alexandria, I'm trying to connect to database in Italy with sqlplus. The sqlplus connected I write.. select * from addetti and all work fine.
    My problem is that when I try to make the same select on a table with many columns oracle database kill me a session.
    My table (ic_lav) is long 174 colums 1924 byte for row. Well when I write a query with select * from ic_lav all oracle close my session.
    So I began to change my query I start to
    select field1 from ic_lav... and work
    select field1,field2,field3,..........field50 from ic_lav and work
    select field1,field2,field3,..........field70 from ic_lav and doesn't work
    the select work with 68 columns
    problem: the query with more then 1064 byte for row doesn't work.
    I've tryed with anoter big table with the same problem, but the select fwork with 65 columns...
    Iit is obvious that there is any problem with the limit of the query.
    The same query (select * from ic_lav) in localMilano)l work fine.
    The same query (select * from ic_lav) in vpn with a better adsl line and openvpn software (NO CISCO firewall) WORK FINE.
    The same query connectetd in Milano with a vpn make with analogic modem and remote access by windows work fine.
    the query (make on my laptop connectet with vpn by cisco doesn't work.
    In cisco firewall we haven't any error (cisco man tell me so)
    on database 9 I found :
    *** 2009-06-12 09:49:45.509
    *** SESSION ID:(66.44406) 2009-06-12 09:49:45.497
    FATAL ERROR IN TWO-TASK SERVER: error = 12152
    *** 2009-06-12 09:49:45.509
    ksedmp: internal or fatal error
    Current SQL statement for this session:
    select * from ic_lis where ditta
    ----- Call Stack Trace -----
    but I don't understand why the lost connection problem (bug 3816595 A processstate dump is produced for a lost connection (12152) ) is caused by len of row
    Anybody have some idea ?
    Thank you

    My table (ic_lav) is long 174 colums 1924 byte for row. Well when I write a query with select * from ic_lav all oracle close my session.Do you get any error?
    If the query length is a problem, you could create a view and query the view instead to see if this problem is resolved.

  • Probleme avec outil selection fleche noire

    bonjour a tous
    je suis novice sur illustrator
    je n'arrive plus à redimensionner mes objets avec l'outil selection fleche noire ,cela ne fait que deplacer les objets.
    quelle mauvaise manipulation ai je faite ?

    merci . mais cela ne marche toujours pas avec la fleche noire .je me sers donc de l'outil mise a l'echelle .y a t'il un moyen pour reinitialiser les fonctions ?merci
    je ne comprend pas ce que j'ai pu faire .au debut cela marchait bien ????
    Message du 01/01/11 17:35
    De : "Benoit Pennecot"
    A : "jean pierre charles"
    Copie à :
    Objet : probleme avec outil selection fleche noire
    Pour Redimensionner des objets, vous pouvez soit utiliser l'outil MISE À L'ÉCHELLE (Raccourci clavier S), soit utiliser l'outil de sélection (la flèche noire).
    Pour utiliser L'OUTIL DE SÉLECTION, survolez une poignée de redimensionnement (un des 8 petits carrés blancs qui apparaissent autour de votre objet sélectionné) jusqu'à ce que votre pointeur se transforme en double flèche. Cliquez et glissez.
    >

  • Extension not recognizing custom user directory selection

    A while back I created a Dreamweaver plugin called Blackbaud Sphere CMS (http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=2430523).  Anyhow during install it provides the user with the options select a custom save directory for KDF files. This directory is referenced when creating template files later on. It was working perfectly fine in Dreamweaver CS4-CS5.5 on OSX and in CS6 it doesn't remember the users directory selection. Haven't checked to see if this was occuring in Windows yet. For now I'm trying to resolve the OSX 10.7.4 with CS6 issue.
    See how the token is written below:
    <token name="KDF" prompt="Descriptor Files (Save all .KDF files here)" default="$dreamweaver/configuration/Blackbaud/Templates/KDF" />
    I should note that it does crete the default directory however it is also not recognized.

    Bump, still having this issue.

  • JComboBox selection and highlight problem of the selected item

    Hi,
    I have a question how can I make my newly added item to the combo-box selectable and highlighted. I am adding new items to my custom comboBox dynamically and I want whatever item I add to be selected by default. I am using my own custom ComboBoxModel that extends AbstractListModel and implements ComboBoxModel and TreeModelListener, and my custom Renderer that extends JLabel and implements ListCellRenderer. Because I am trying to get a tree structure in my comboBox model and that's why I have my own custom model and renderer. Now when I add a new node or item to my comboBox it is being added and shown in the combo-box textField, but as soon I pull down the combo-box my parent directory is selected though my current selection is the last node added. That's how I am adding new nodes and making it selectable
    treeModel.insertNodeInto(tempNode, (DefaultMutableTreeNode)nodeCollection.lastElement(), 0);
    int nodeTotal =((CMRGlobals.myTreeGlobals).getModel()).getSize();
    Object lastNode = CMRGlobals.myTreeGlobals).getModel()).getElementAt(nodeTotal - 1);
    ((CMRGlobals.myTreeGlobals).getModel()).setSelectedItem(lastNode);
    when I do this my node is added under my parentNode and is shown in the comboBox but when I try to pull down the combo my parent node is high lighted and when I move out of the combo-box my parent node gets selected and show in the combo-box though I haven't selected it,and the contents of my last node are shown. I am just writing my own custom model that simulates the effect of JTree. I am using these......
    DefaultMutableTreeNode and
    DefaultTreeModel
    and in my JComboBox I am setting my model as
    this.setModel(new myModel(treemodel));
    this.setRenderer(new myRenderer());
    I am building my own FileDialog that just works like FileDialog I have all the functionality except this problem.Thanks for any help. I know I have posted this same thread yesterday but I didn't get any response hoping now may somebody can help me.Thanks again

    never mind I got it
    Thanks

  • Authentication problem in Directory Utility (Standard Mode)

    I misposted this in the 10.4-and-earlier section...I have Leopard.
    Okay, I suppose I am in over my head as I am not a NA but just had so many macs I thought it would be fun to see if I can make OS X Server work.
    I have at the moment 3 users set up: 1 admin and 2 Standard users. When one of the remote Macs tries to use Directory Utility to authenticate, it insists that "The name and password you entered for the user account on the server do not match." Well, I have reset the passwords on the server several times and I am darn sure I have them right. I can connect to the server and use folders and whatnot; i just can't use any of the services.
    I suspect this is a permissions issue, because I also get errors if I try to "Allow (one of the standard users) to administer this server" in the Server Preferences/Users pane. I get "Error '-14120' occurred while processing a command of type 'setMembership' in plug-in 'servermgr_accounts'. That's very descriptive and helpful except that I do NOT know what I am doing.
    Uh, little help? Did I just do something very stupid that is making everyone chuckle?

    I've been at this for eight days myself. Lots of problems. So don't feel bad if things don't sort of "click" into place - they haven't been for me.
    First off - I noticed that you have server_name.local. I'll say something right here about that. I had no end of grief when I configured my server with a .local extension. All my machines are named after Kellogg's cereals - so I decided to name this one honeycomb. So during installation I named it honeycomb.local.
    Now before I explain this - understand this is my understanding .. I could be dead wrong - but this is how I understand it. Apple uses Bonjour technology to locate network resources. In a network environment there will no doubt already be conventional methods for locating computers - such as DNS, Directory Services, etc. Bonjour is designed to happily coexist with all of those. It essentially uses multicast technology to find other devices on the network and configure it. When a device is using Bonjour - it utilizes the .local suffix. You can see where I am going with this.
    So I had some issues and decided to pull the plug. Reinstalled the OS and used honeycomb.private. I STILL see honeycomb.local being referenced throughout - so I feel good now that I made the right choice. Things have been going a lot better since.
    I am going to use mymachine.private as the computer, and jdoe as the username in the next bit. Replace them with your own info.
    +From my own experiences, here are some things to check+
    *_1) Server must respond to the Client's Requests _*
    On the Server:
    -Use 'ipfw flush' and clear out firewall rules while you are testing.
    -Does 'ping mymachine' work?
    -Does 'ping mymachine.private' work?
    _*2) Client must be able to find the data in Open Directory:*_
    -Is Open Directory running in Server Admin.
    -In Server Admin, under Open Directory, under Overview - do you have everything running? Is there an LDAP search base and a Kerberos Realm? Are they correct?
    -Connect with an LDAP client if you must, and manually verify that the user information is in there. I love Apache Directory Studio (http://directory.apache.org/studio/)
    -Perhaps there are certificate or identity issues - turn off the SSL options during testing.
    -In Workgroup Manager->User jdoe->Home ensure the information is correct.
    *_3) Client must be able to mount the home directory:_*
    -Can you manually mount /Users/ on the client, and read / write everything in the jdoe folder ?
    In Server Admin, under File Sharing
    -/Users/ share point - Automount should be enabled (AFP, Home Folders)
    -/Users/ permissions - others should be at least read-only
    This is my preference .. but...
    -/Users/jdoe permissions should be:
    ACL: jdoe - Allow, +Full Control+
    POSIX:
    jdoe - Allow, +Read & Write+
    admin - Allow, +Read & Write+
    Others - Allow, None
    Select jdoe folder, click on the Cog and Propagate Permissions. Check all permission boxes and click OK.
    _On the Client_
    I usually start off, by verifying:
    -Does the client have a DHCP address from my server?
    -Can my client ping the shortname and fullname of my server?
    -Can I manually connect to the server and mount a share?
    -Did I do an *ipfw /flush* on the client too?
    If all that is correct, then I will go into Directory Utility and click the + to add a directory server. I will select type "Open Directory", type in the server name (mymachine.private), and leave SSL unchecked. Click OK. When done it should say:
    mymachine.private(Open Directory Server) - This server is responding normally
    Once you get this far, try logging out and logging in as a user - ie. jdoe
    If it won't let you log in then answer this - did it do its shAkE at you or did it give you an error message?
    Kerberos shouldn't be rearing its ugly head at this stage of the game - its more for single sign on .. but if you see any authentication windows with the words "REALM" or "PRINCIPLE" - those words should set off little Kerberos alarm bells in your head. Like I said - at this stage in the game I don't think those have anything to do with it.
    _*Few other notes:*_
    #1) In Workgroup Manager - you could add the client computer. Enter its full name and short name (you can get them from the sharing option in the client's system preferences). Once the computer is added, you can go into the preferences for the computer, click on Login Preferences and set it to always manage. Put a message in the message box such as "Directory has been consulted" and check the "Show Network Users" box. This way - when you log out .. you will have an indication as to whether the open directory is working at all on the client, or if the problem is more focused with the user account.
    #2) I have been getting
    +Error of type Not a known DirStatus (-1) on line 2075 of SourceCache/ WorkgroupManager/WorkgroupManager-319/Plugins/UserAccounts/UserAdvancedPluginVi ew.mm+
    when creating a user in Workgroup Manager. I just close out of the user and then it allows me back in.
    Drop a post if you manage to solve the problem.

  • Problem active directory importing users at ix4-300d sw ver 4.1.108.32627

    Installed new ix4-300d onto network, added to SBS 2008 domain and can log into NAS with domain\administrator account . In users & groups can see domain\administrator account along with local admin account. Click on sync with AD, no errors, but never get any users in the list
    Whats the problem ? I need to get users from AD imported to get shares working.
    Please help as customer is not happy.
    regards
    Peter

    Hello blue256
    If you entered a Organisational Unit in the Domain Management page,  please try clearing the OU field and try re-adding the unit to the domain.  
    After that is done, please try checking if the domain user and groups are accessible from User and Groups page. 
    LenovoEMC Contact Information is region specific. Please select the correct link then access the Contact Us at the top right:
    US and Canada: https://lenovo-na-en.custhelp.com/
    Latin America and Mexico: https://lenovo-la-es.custhelp.com/
    EU: https://lenovo-eu-en.custhelp.com/
    India/Asia Pacific: https://lenovo-ap-en.custhelp.com/
    http://support.lenovoemc.com/

Maybe you are looking for

  • How to pass the javascript variable value to a jsp

    Hi I am trying to set a javascript variable with onClick event of a radio button in jsp and I am assigning this variable to a hidden property in JSP whic has the corresponding getter an setter method in form. But I am not able to retrtieve the value

  • Itunes causing desktop crash/restart

    Just did a sizable Java and iTunes update to 10.7 (21) a little earlier today. For some reason, the finder keeps crashing or restarting every 30 seconds or so. Its not a big issue, it's just really annoying.

  • Ipod touch screen flicker

    it looks like the 4th Gen iPod touch is starting to all have similar issue. Some call it white screen of death and for some it is not completely white but partial white or random static images or half negative colored screen of death. My Daughter's i

  • Do I have to have a Website URL to publish a paid book using ibooks author?

    Is it required to have a website url to publish a paid book using ibooks author?

  • No names or addresses in my address book

    When I opened "mail" and opened my address book there were no names or addresses there any longer. How do I restore my address book? Where did everything go and why?