pointer to null when using af.form

Hi am a NPE everytime I try to use af.form

the code is

<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html">
  <af:form id="f1">
    <af:panelStretchLayout id="psl1" topHeight="33%" bottomHeight="33%">
      <f:facet name="bottom">
        <af:panelGroupLayout id="pgl2"/>
      </f:facet>
      <f:facet name="center">
        <af:panelGroupLayout id="pgl1" layout="vertical" halign="center">
          <af:panelFormLayout id="pfl1">
            <f:facet name="footer"/>
          </af:panelFormLayout>
        </af:panelGroupLayout>
      </f:facet>
      <f:facet name="start"/>
      <f:facet name="end"/>
      <f:facet name="top"/>
    </af:panelStretchLayout>
  </af:form>
</jsp:root>

am in jdeveloper 11.1.1.9.0

Add an empty af:panelGroupLayout to the superior facet of the panelStretchLayout (source code for .jsff fragment).

Exactly as you did for the inferior facet

Tags: Java

Similar Questions

  • Getting context object null when using the custom menu item.

    Hi all

    I implemented a sample application to add menu item custom to the list of messages and we test this build on 9000 os 5.0.0.41 Blackberryy 1

    On BB 9000, we have 2 message inbox, A like Blackberry by default message inbox and B as long as the Inbox for the e-mail account, I have set up on BB 900.
    I implemented the menu custom application to add menu on the message list option.
    I see this option on both my inbox, the question that I am facing is when I click on the menu item by selecting the email in the message of default A Blackberry inbox I can get the context object were like when I click on the same message next to the Inbox B I'm always get the context as a NULL object.

    Below is the code I used to add the custom menu item.

    Public Shared Sub main (String [] args)
    {
    If (args! = null & args.length > 0) {}
    call from another entry point. Add menu items mark as Spam and mark as suspects.
    {if(args[0].) (Equals ("GUI"))}
    try {}
                            
    create menu items.

    MyMenu ApplicationMenuItem = new EmailFile();
    Add the menu item in the list view and send by e-mail.
    Amir ApplicationMenuItemRepository = ApplicationMenuItemRepository.getInstance ();
    amir.addMenuItem (ApplicationMenuItemRepository.MENUITEM_MESSAGE_LIST, mymenu);
    } catch (Exception e) {}
    Utility.debugLog (try (), CLASSNAME, 'hand', Utility.EXCEPTION_INFO);
    System.out.println("Error:"+e.ToString());)
    }
    } else {}
    show on the application of spam...
    AppMain _theApp = new AppMain();
    _theApp.enterEventDispatcher ();
    }
    } else {}
    show on the application of spam...
    AppMain _theApp = new AppMain();
    _theApp.enterEventDispatcher ();
    }
    }

    Can we know what is the problem in my code or something I'm missing.

    Thanks in advance.

    Navneet Gupta.

    application menu items have been bugged for ages. There is nothing you can do except change your workflow. in some cases, you can recover the app screen and trying to extract something of these fields, but becomes more difficult in the new OS versions because of custom fields used by rim.

  • The mouse pointer (still) disappears when using the color picker

    Someone suggested to start a new discussion, since the old writing is a couple of years now. Thanks for the tip!

    Whenever I select a color using the eyedropper icon small (used to be a magnifying glass) in the color picker, the cursor goes away after I made the choice of colors.

    I have that experience under El Capitan, but I had the same problem in Yosemite as well as Mavericks and on Mac computers. I've seen this behaviour being reported in the forum for older versions, such as the Mountain Lion, but never with a real solution (workaround has been on creating a new user and delete the old).

    I hope someone has a solution for now.

    The eyedropper tool worked very well for me and still does (I just checked).

    If creating a new user solves the problem then, you have some corrupted in your account settings, or, less likely, you run an application (possibly a connection point) which is the origin of the problem.

    Hold down the option key, and then use

    Finder > go > library

    menu item. You have a folder 'ColorPickers? If so, is it empty?

    C.

  • When a PDF form and reopen it are empty

    When I fill out a form using XI Acrobat pro and then save it with the same name or a different name and try opening it again, it is empty.  I can't us the quick print function, and it will actually show the information I thought I saved.  But if I open it up it still shows once empty.  Any ideas?

    RebeccaFlameLily,

    This problem occurs when the application Preview on a Mac is used to complete the forms. It is well known preview corrupt PDF files in a number of ways, and absolutely avoid when using PDF Forms. The damage it does to a document cannot be repaired, but you can open the form in Acrobat corrupted, export the form data (in FDF or XFDF file) and import back into a blank form. Then inform your users to use Adobe Reader and not preview.

  • Exception pointer null when locking areas

    DM, version 4.0.2.840

    I tried to find a way to lock the domain files. So I chose the areas directory in the browser and press team > Lock. This gives a null pointer exception:

    java.lang.NullPointerException

    at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:281)

    at oracle.jdeveloper.vcs.spi.VCSController.invokeCommand(VCSController.java:205)

    at oracle.jdeveloper.vcs.spi.VCSController.handleEventImpl(VCSController.java:160)

    to oracle.jdeveloper.vcs.spi.VCSController$ 1.run(VCSController.java:87)

    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)

    at $200 (EventQueue.java:103) java.awt.EventQueue.access

    in java.awt.EventQueue$ 3.run(EventQueue.java:694)

    in java.awt.EventQueue$ 3.run(EventQueue.java:692)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)

    at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)

    at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

    How is it planned to lock a file of domain?

    Best regards

    Joop

    Hello Philippe,

    It works in version 4.0.3.

    18901557 - no support for lock on domains when using svn

    Thank you

    Joop

  • Receive the 25 (Null) error when using Flightsimulator FSX

    Receive the 25 (Null) error when using Flightsimulator FSX

    Hello

    Try to open the it to start - all programs - Games - Games Explorer, and then clicking the icon FSX.

    A disk error of 25 means that the program cannot read your disk reading.  Either the disc is scratch, dirty or defective.  If you need another drive, or you can try it on another computer. The message of Visual elements of Vista is not serious.  Vista will automatically your screen to a basic compatible mode when the application is launched.  However, it seems that your game is a failure due to the disk error and not the Vista display problem. Try to clean the disc and see if that helps.

    Last resort, it seems you'd have to do a complete uninstall and reinstall FSX.

    Cheers!

  • I have problem with value NULL when the use CASE statement please help this question

    I have problem with value NULL when the use CASE statement please help this question


    Table: digital_val

    SNO cl C2

    1 San1 11

    2 22 San2

    Actual result: expected to A         B

    A            B                                                                           11        22

    11 NULL

    22 NULL



    query:

    Select case when c1 = "san1" then c2,.

    case If c1 = "san2" then c2 B

    of digital_val

    I'm more curious why, when you select 2 rows, you expect a result of row?

    WITH digital_val

    AS (SELECT 1 AS 'Sno', 'San1"C1, c2 FROM DUAL 11)

    UNION ALL

    2 SELECT AS 'Sno', 'San2"C1, c2 FROM DUAL 22)

    SELECT CASE WHEN c1 is "San1" THEN END AS A c2.

    CASE WHEN c1 = "San2" THEN END AS B c2

    OF digital_val;

    With no other input, if you select 2 rows, you get 2 rows.  One of the other solutions use a max function, but is this really what you want, does not specify?

  • Move the point of origin when you use the scale tool

    Hello

    Can someone tell me if it is possible to move the point of origin when you use the scale tool? By default, when I change by dragging an anchor of the corner, the opposite corner is used as the origin. Ideally, I would like to to scale using an origin that is biased, I can specify sort. I know that you can do during the rotation, but I was not able to determine if this goal is achievable during the measurement. I use Illustrator CC 2015.3.1 and Mac.

    Any help would be appreciated.

    Thanks in advance

    Jason

    Click where you want the origin to be. Or move the reticle. Exactly the same as with the rotation tool.

  • Why information from individual PDF files that were created by using the form to fill out is changing when I try to combine the files?

    I have several pdf documents created using a form to fill out.  When I try to create a combined PDF information either is removed from all pages after the first page or all the pages after the fact look page 1 as duplicate page 1.  what I am doing wrong?

    The problem is that these files have fields with the same name in them, thus

    When you merge them they become copies of each other and of all their

    the values are the same.

    To avoid it you must either rename the fields before you merge the files

    or flatten, converting them to static content.

    The game, March 24, 2016 at 22:00, peggyp13342216, [email protected]>

  • What happened to the point of VIEW when I use the CROP tool?

    What happened to the point of VIEW when I use the CROP tool?

    Hold the crop tool in the toolbar - you will find culture seen as a tool of void

  • I have a problem when using Google Maps, at a certain point my custards computer window and says there is a problem with the display drivers and he recovered, but it is not. Problem does not occur with Int Explorrer, so I don't think it's the computer

    When using google maps via Firefox, after asking a place which is not the General section of North America who comes up regularly, the firefox screen becomes white with a narrow banner at the top. A message appears in the lower right corner that says something on display drivers having had a problem, but now have been recovered. However, the display is not recover and the message of the banner is that Firefox is not responding. When I go to restart Firefox if I'm about to restore, the page is still frozen.
    I don't think there is a problem with my computer because it doesn't happen if I used to go to google maps, then G-cards works normally.
    This phenomenon didn't happen before the last update Google or Firefox. I used Fiefox for some years and also Google Maps on previous computers and on this one and not had it before.
    It is a relatively young computer (Asus EeSlate 121) less than a year. I have used Firefox since I bought it and until recently had no problem with Google Maps.

    I solved it myself, after the 'note' that was FF/Mozilla, just as I finished my message, commenting on what it was that my system was, I wnnt back to check my plug-ins, etc. I downloaded the latest Java, the TWO 32-bit AND 64-bit versions and latest Firefox.
    Now everything works.
    Thank you
    B.

  • Take the backup of the user database using oracle forms 6i

    I need backup user database using oracle forms 6i. Is this possible?

    Yes.

    Try

    When press the button trigger

    DECLARE
        un                VARCHAR2(30);
        pw                VARCHAR2(30);
        db                VARCHAR2(30);
        con_str        VARCHAR2(100);
        --
        data_file    VARCHAR2(100);
        log_file    VARCHAR2(100);
        cmd_line    VARCHAR2(200);
        ALT NUMBER;
    BEGIN
        IF :CONTROL.file_name IS NULL THEN --- take a file location
            IF SHOW_ALERT('FILE_NAME') = ALERT_BUTTON1 THEN
                RAISE FORM_TRIGGER_FAILURE;
            END IF;
        END IF;
        --
        un    := GET_APPLICATION_PROPERTY(USERNAME);
        pw    := GET_APPLICATION_PROPERTY(PASSWORD);
        db    := GET_APPLICATION_PROPERTY(CONNECT_STRING);
        con_str    := un||'/'||pw||'@'||db;
        --
        data_file    := :CONTROL.file_name||'\'||un||
                                 TO_CHAR(SYSDATE, 'DDMMYYYY')||'.dmp';
    
        cmd_line    := 'exp userid='||con_str||' file='||data_file;
        HOST(cmd_line);
        --
    
        ALT:=SHOW_ALERT('MULTI_BACKUP');
        IF ALT=ALERT_BUTTON1 THEN
            RAISE FORM_TRIGGER_FAILURE;
        ELSE
            EXIT_FORM;
        END IF;
    
    END;
    
  • Unable to see video when using JavaFX JFXPanel in a JDialog

    I'm trying to embed a video in a JDialog box . Finally, I need to integrate three separate videos and so I implemented the functionality to define my own implementation of JFXPanel for re-use. I am able to run the application and when I debug in the createScene is running, but I don't see any visible video and I don't get any errors. Also I tried to text output and which was not visible either. I was able to get the video I want to incorporate to display in a pure implementation of JavaFX, so I know that's not encoding or something. Can I please someone to look at the following code and give me some suggestions. I use Netbeans as IDE if it is important. Thank you!


    /*

    * To change this template, choose Tools | Templates

    * and open the template in the editor.

    */

    package swingjavafxtest;

    Import javafx.embed.swing.JFXPanel;

    /**

    *

    * @author acarnes

    */

    SerializableAttribute public class SwingJavaFXTestDialog extends javax.swing.JDialog

    {

    private static final String BURST_OPTION_1_VIDEO = "file:///c:/vids/burst_option1.MP4";

    /**

    * Creates the form SwingJavaFXTestDialog

    */

    public SwingJavaFXTestDialog (java.awt.Frame parent, boolean modal)

    {

    Super (parent, modal);

    initComponents();

    }

    /**

    * This method is called in the constructor to initialize the

    * form. WARNING: Do NOT change this code. The contents of this method is

    * always regenerated by the form editor.

    */

    @SuppressWarnings ("unchecked")

    < Publisher-fold defaultstate = "collapsed" desc = "Generated Code" >

    Private Sub initComponents()

    {

    setDefaultCloseOperation (javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    setModalityType (java.awt.Dialog.ModalityType.APPLICATION_MODAL);

    layout = new javax.swing.GroupLayout javax.swing.GroupLayout (getContentPane ());

    getContentPane () .setLayout (layout);

    () layout.setHorizontalGroup

    layout.createParallelGroup (javax.swing.GroupLayout.Alignment.LEADING)

    .addGap (0, 400, Short.MAX_VALUE)

    );

    () layout.setVerticalGroup

    layout.createParallelGroup (javax.swing.GroupLayout.Alignment.LEADING)

    .addGap (0, 300, Short.MAX_VALUE)

    );

    Pack();

    } / / < / Publisher-trick >

    /**

    @param args command-line arguments

    */

    Public Shared Sub main (string args [])

    {

    / * Define the look and feel of Nimbus * /.

    ' < editor-fold defaultstate = "collapsed" desc = "Look and feel (optional) code definition ' > '.

    / * Si Nimbus (introduced in Java SE 6) is not available, stay with the default appearance.

    * For details see http://download.Oracle.com/javase/tutorial/uiswing/LookAndFeel/plaf.html

    */

    Try

    {

    for (javax.swing.UIManager.LookAndFeelInfo info: javax.swing.UIManager.getInstalledLookAndFeels ())

    {

    If ("Nimbus".equals (info.getName ()) ")

    {

    javax.swing.UIManager.setLookAndFeel (info.getClassName ());

    break;

    }

    }

    } catch (ClassNotFoundException ex)

    {

    java.util.logging.Logger.getLogger (SwingJavaFXTestDialog.class.getName ()) .log (java.util.logging.Level.SEVERE, null, ex);

    } catch (InstantiationException ex)

    {

    java.util.logging.Logger.getLogger (SwingJavaFXTestDialog.class.getName ()) .log (java.util.logging.Level.SEVERE, null, ex);

    } catch (IllegalAccessException ex)

    {

    java.util.logging.Logger.getLogger (SwingJavaFXTestDialog.class.getName ()) .log (java.util.logging.Level.SEVERE, null, ex);

    } catch (javax.swing.UnsupportedLookAndFeelException ex)

    {

    java.util.logging.Logger.getLogger (SwingJavaFXTestDialog.class.getName ()) .log (java.util.logging.Level.SEVERE, null, ex);

    }

    < / Publisher-trick >

    / * Create and display the dialog box * /.

    java.awt.EventQueue.invokeLater (new Runnable()

    {

    public void run()

    {

    Dialogue SwingJavaFXTestDialog = new SwingJavaFXTestDialog (new javax.swing.JFrame (), true);

    JavaFXVideoPanel bo1VideoPanel = new JavaFXVideoPanel (BURST_OPTION_1_VIDEO);

    Dialog.Add (bo1VideoPanel);

    dialog.addWindowListener (new java.awt.event.WindowAdapter)

    {

    @Override

    public void windowClosing (e java.awt.event.WindowEvent)

    {

    System.Exit (0);

    }

    });

    dialog.setVisible (true);

    }

    });

    }

    Declaration of variables - do not modify

    End of variables declaration

    }

    /*

    * To change this template, choose Tools | Templates

    * and open the template in the editor.

    */

    package swingjavafxtest;

    Import javafx.application.Platform;

    Import javafx.embed.swing.JFXPanel;

    Import javafx.scene.Group;

    Import javafx.scene.Scene;

    Import javafx.scene.media.Media;

    Import javafx.scene.media.MediaPlayer;

    Import javafx.scene.media.MediaView;

    Import javafx.scene.media.Track;

    Import javafx.stage.Stage;

    Import javafx.scene.text.Text;

    Import javafx.scene.text.Font;

    Import javafx.scene.paint.Color;

    /**

    *

    * @author acarnes

    */

    SerializableAttribute public class JavaFXVideoPanel extends JFXPanel

    {

    public JavaFXVideoPanel (String url)

    {

    Super();

    final String videoURL = url;

    Platform.setImplicitExit (false);

    Platform.runLater (new Runnable() {}

    @Override

    public void run() {}

    createScene (videoURL);

    }

    });

    }

    Private Sub createScene (String url)

    {

    / * Media bo1Media = new Media (url);

    Bo1MediaPlayer MediaPlayer = new MediaPlayer (bo1Media);

    bo1MediaPlayer.setAutoPlay (true);

    bo1MediaPlayer.setCycleCount (javafx.scene.media.MediaPlayer.INDEFINITE);

    MediaView bo1MediaView = new MediaView (bo1MediaPlayer);

    Root of group = new Group();

    Scene = new Scene (root, 400, 400);

    root.getChildren () .add (bo1MediaView);

    */

    Root of group = new Group();

    Scene = new Scene (root, Color.ALICEBLUE);

    Text = new Text();

    text.setX (40);

    text.setY (100);

    text.setFont (new do (25));

    text.setText ("welcome JAVAFX!");

    root.getChildren () .add (text);

    this.setScene (scene);

    this.setVisible (true);

    }

    }

    See the solution of the sample to: can not see the video when using JavaFX JFXPanel less a JDialog (JavaFX forum at the JavaRanch)

  • Levels of the different point of view to a PDF form

    Levels of the different point of view to a PDF form: I have a PDF form that requires the intervention of different people. However, I need to hide certain sections of the form to be used only to specific people. How?

    You define the fields to be hidden by default. You can add code to show and unlock these fields by the user to enter a password, but it is a very weak control.

    Another approach is to use the ID of system connection. The only place that acrobat/Reader sees this information is in the identity object and to access this object in a form requires a special encoding because when you open a form it is not initializing the application, an event console. or a batch. You will need to add a special user folder script to each special user or all users to be able to access these data in a form. This may require the assistance of your IT support form.

    The folder level script could be:

    var MyLoginID = identity.loginID;

    You can access the MyLoginID in open a PDF file to get the ID of the connection. You can change the variable name for security reasons.

  • How to combine two conditions: there is and point not null?

    Hello!

    I have a flash chart area I would like to show only if two conditions are true.

    The first condition is the following:

    There are (at least a line returns the SQL query):
    select 1
    from    observatoire.fiche aa, observatoire.activite_faite bb
    where   aa.fiche_id = bb.fiche_id
    and     bb.fiche_id = aa.fiche_id
    AND     bb.activites_id = TO_NUMBER(:P23_ACTIVITES_ID)
    AND     TRUNC(aa.date_activite, 'YYYY') = TRUNC(TO_DATE(:P23_ANNEE, 'YYYY'), 'YYYY')
    And the second condition would be:

    Point not null:
    P23_ACTIVITES_ID
    How to combine these two conditions in one display condition?

    Thank you.

    Christian

    Hello

    The problem is that you do-

    TO_NUMBER(:P23_ACTIVITES_ID)

    When you leave the value of Null return like this, you will see "null %" generally used in session state (i.e., it is not actually null). Of course 'null %' cannot be converted to a number, from which the error you see.

    A simple solution would be to make your value null return value-1 or another value that is guaranteed not to be a piece of identification (and alternative is to convert the real null null % thanks to a process of App/Page etc (if you search this forum you will find a few examples on how to do this).) Another alternative is to use a DECODING to detect the '% null' etc.

    Hope this helps,

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

Maybe you are looking for