TextField setText(null) not working

Very simply put, I want a text field that when you type in it, it stores the character in a global String variable but doesn't actually display it. I know there are several ways of doing this, including a PasswordField, but this is purely for understanding purposes only.
String str = "";
private void txtLineKeyPressed(java.awt.event.KeyEvent evt) {
    char key = evt.getKeyChar();
    str = str + key;
    txtLine.setText(null);
}When typing "asdf" produces (caret is represented by |):
a|
s|
d|
f|I want to understand why txtLine.setText(null) clears the field BEFORE the letter is added to the field and possibly find out if there's a way (using TextField only) to accomplish this. I had a problem earlier with the enter key producing a line break at the end of all my lines and realized I was using a TextArea that caused the problem. Am I doing something similarly wrong?
--dorky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

I want to understand why txtLine.setText(null) clears the field BEFORE the letter is added to the field Read up on how KeyListeners work. Three events are fired. The Document is updated on keyTyped(), which is generated after the keyPressed() event.
If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.
Also, the better way to do this is to use a DocumentFilter, not a KeyListener then you wouldn't have this problem. Read the Swing tutorial which has a working example of how to use a filter.
Edited by: camickr on Feb 20, 2009 9:16 PM

Similar Messages

  • 'is null' not working in dynamic sql and SQl Query component (OBPM 10gr3)

    I'm using a SQL Query component with sql like this
    'select col1, col2 from table where col3 is null'
    for some reason this does not work.
    Has anybody faced this issue? Is there a known bug with handling nulls
    Thanks

    plz post which DB version u r working with
    dont use paramters in Procedure with : sign
    Write simply the name of the Paramters like p_userid etc etc
    this might help u as well
    http://baigsorcl.blogspot.com/2010/02/get-rid-of-addtional-quotes-with-quote.html

  • SetLocationRelativeTo(null) not working

    I'm trying to use setLocationRelativeTo(null) to center a JFrame however it's not working?
    I'm using it elsewhere to do the same and it works, but this doesn't and the only difference is that it's being run in a separate thread. Why isn't it working properly?
    I say properly, because it's not displaying it in the top left, but is to the bottom right of the center.
    Please help
    Thanks

    agehoops wrote:
    ... it's not displaying it in the top left, but is to the bottom right of the center.In other words, if you shrink the size of the frame to some extent by dragging in the lower right corner (possibly by a lot) then the frame will be centered, albeit sized too small?
    It sounds as if the frame is getting modified after setLocationRelativeTo(null) is getting called. You mention that this is getting called on a thread? Why? And if really needed, how are you doing it? It's possible that the frame is being modified in another thread before it's shown.
    Think of it this way: the frame is a certain size (really small), you then tell it to center itself (which it does properly while it still hasn't been shown yet), and then the frame gets bigger by adding components to it. What will happen is that the upper-left corner will remain in place, and the frame will grow out down and to the right.
    Of course, this is all just a guess since you didn't provide an SSCCE.

  • Android: Textfield-Cursor movement not working in Portrait

    Hi,
    I just deployed a new build of my Android apps with Air 16.0.0.272 and I noticed that while Portrait mode, I am unable to move the cursor in an Input Textfield with text by tapping at the location. Instead the cursor will pop up before the first letter, making it impossible to delete the text that is already there. If I rotate to Landscape, the Textfield will go fullscreen and I can move the cursor freely. Can anyone confirm this?

    I have seen this issue as well when first focusing the TextField, the cursor moves to the start of the text, even though the user tapped on a word later in the sentence.
    Even worse, I've noticed that tapping on the TextField sometimes does not bring up the Softkeyboard. I have to focus in and out of the TextField and eventually the softkeyboard appears.

  • TextField Rendering is not working.

    Hi friends,
    I was tring to write a textfield renderer. Even though the text field can be seen in the jtable, its containing some unwanted texts which i have pasted below. I could not understand why so. What i am doing wrong.
    Here is the renderer class :
            class TextFieldUIRenderer extends JTextField implements TableCellRenderer {
                    public TextFieldUIRenderer() {
                            super();
                            setOpaque(true);
                    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
                                                                             boolean hasFocus, int row, int column) {
                            //TODO If the component is having the focus
                            if (hasFocus) {
                                    table.editCellAt(row, column);
                            //TODO If the component is selected
                            if (isSelected) {
                            } else {
                                    //Otherwise
                            this.setText(value.toString());
                            return this;
            }Here is TextFieldCellEditor class :
            public class TextFieldCellEditor extends DefaultCellEditor {
                    public TextFieldCellEditor() {
                            super(new JTextField());
            }then i am setting
                    textField.setCellRenderer(new TextFieldUIRenderer ());
                    textField.setCellEditor(new TextFieldCellEditor ());Now when i am running the program the text box is shown the following text inside :
    javax.swing.JTextField[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=null,
    alignmentY=null,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@ae3364,flags=296,maximumSize=,
    minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource
    [r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=153,g=153,b=153],editable=true,
    margin=javax.swing.plaf.InsetsUIResource
    [top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource
    [r=0,g=0,b=0],selectionColor=javax.swing.plaf.ColorUIResource[r=204,g=204,b=255],columns=10,
    columnWidth=0,command=,horizontalAlignment=LEADING]
    Please help, thanks.
    Message was edited by:
    max25

    You are misunderstanding roles of editor, renderer
    and their relationship. Don't call editor function in
    the renderer. Default editor is text field, so you
    don' t need reimplement it.Hi Hiwa,
    Thanks for you reply. Could you please elaborate it little more. I am not understanding where i am using the editor from inside the renderer.

  • SET NULL not working in SQL*Plus

    DB Version: 10.2.0.4
    Question1.
    Won't SET NULL work with PL/SQL block?
    Question2.
    Why is <<>> appearing in several lines (one character per line) as shown below? Sorry about the "jive-quote" thing below, got that after i added code tags.
    SQL > show lines
    linesize 80
    SQL > show pages
    pagesize 14
    SQL > set null <<>>
    SQL > select null from dual;
    N
    <
    <
    >
    >
    SQL > set serveroutput on
    SQL > declare
      2  v_Val VARCHAR2(100) :='COCOJUMBO';
      3  BEGIN
      4  SELECT null INTO v_val from dual ;
      5  DBMS_output.put_line(v_val);
      6  EXCEPTION
      7  WHEN NO_DATA_FOUND THEN
      8  dbms_output.put_line('Exception:'||SQLERRM);
      9  END;
    10  /
    PL/SQL procedure successfully completed.
    SQL >

    user872043 wrote:
    DB Version: 10.2.0.4
    Question1.
    Won't SET NULL work with PL/SQL block?No. SET NULL is a SQL*Plus command, not a PL/SQL command.
    Question2.
    Why is <<>> appearing in several lines (one character per line) as shown below? Sorry about the "jive-quote" thing below, got that after i added code tags.That's due to default formatting. For example:
    SQL> SET NULL <<>>
    SQL> SELECT NULL FROM DUAL;
    N
    <
    <
    >
    >
    SQL> COLUMN col FORMAT A4
    SQL> SELECT NULL col FROM DUAL;
    COL
    <<>>

  • Left Outer Join & IS NULL Not Working

    In a Data Flow Query element I am using a Left Outer Join to correlate two tables. In order to eliminate rows in which the Left Outer Join found a match with the Right table I am using IS NULL in the Where clause. Unfortunately IS NULL doesn't seem to return true when the NULL is caused by a lack of a match on a Left Outer Join. Has anybody been able to work around this?

    Use not is NULL in next query after the join.
    A source 1 ---
                           C (join query) ----- D (filter condition IS NULL)
    B source 2 ---

  • TextField Stylesheet is not working?

    Hi,
    I guess this one i easy but i can't figure out what's the problem:
    I have a TextField which styleSheet i want to change at runtime.
    For testing I created a new .FLA  put a Textfield on stage, set it to dynamic, named it mytxt and added some AS3:
    import flash.text.StyleSheet;
    import flash.text.TextField;
    var _style = new StyleSheet();
    _style.parseCSS('p{color:#ff0000;}');
    mytxt.styleSheet = _style;
    Well - nothing changed I still have a default black text when I publish the swf.
    What am I missing?
    My goals:
    - Set a TextField in Flash IDE
    - set the font, weight, color, size etc.
    - apply a styleSheet containing colors for links
    Thanks, Booya

    Ok, everything works now. Thanks for clearing things up.
    It confused me that I couldnt change the style of font - well i still cant.
    <TEXTFORMAT LEADING="4"><P ALIGN="LEFT"><FONT
    FACE="Arial" SIZE="16" COLOR="#242424" LETTERSPACING="0"
    KERNING="1">TEXT</FONT></P></TEXTFORMAT>
    import flash.text.StyleSheet;
    import flash.text.TextField;
    var _style = new StyleSheet();
    _style.parseCSS('font{color:#00ff00}');
    mytxt.styleSheet = _style;
    The text will still be "black"
    But it is not that bad because i will add some additional HTML within the existing font tags:
    <TEXTFORMAT LEADING="4"><P ALIGN="LEFT"><FONT
    FACE="Arial" SIZE="16" COLOR="#242424" LETTERSPACING="0"
    KERNING="1"><SPAN CLASS="red">TEXT</SPAN></FONT></P></TEXTFORMAT>
    so changing the stylesheet according to my HTML and everything works like expected:
    import flash.text.StyleSheet;
    import flash.text.TextField;
    var _style = new StyleSheet();
    _style.parseCSS('.red{color:#00ff00}');
    mytxt.styleSheet = _style;

  • ForeignKeyDeleteAction=null not working with Kodo 4.1.2 and Mysql 5

    Hello,
    i am trying to use Kodo 4.1.2, together with mysql 5.0
    my kodo.properties says:
    openjpa.jdbc.MappingDefaults: jdo(ForeignKeyDeleteAction=null)
    and i am expecting an sql-statement something like:
    ALTER TABLE mytable ADD FOREIGN KEY (bar) REFERENCES othertable(foo) ON DELETE SET NULL;
    but all i got is:
    ALTER TABLE mytable ADD FOREIGN KEY (bar) REFERENCES othertable(foo);
    Kodo 4.0 didn't have any problems with that. Also, in Kodo 4.1.2 other ForeignKeyDeleteActions (like 'cascade' oder 'default') are working like expected.
    What am i doing wrong? Where can i find some upgrade instructions? Is this a bug?
    Thanks in advance,
    Markus

    If the same exact app and code works with 4.0 with the same ForeignKeyDeleteAction setting, I suggest that you open a case with support.
    This property hasn't changed since 4.0
    http://e-docs.bea.com/kodo/docs41/full/html/ref_guide_mapping_defaults.html
    Laurent

  • SetText() is not working ....please help

    hello all,
    i am really stuck at something silly in my program, my code is huge to post in here, so i will try to describe as much as i can.
    well my problem is i have a class which listen to a socket, when some data has been changed, i want it to modify a JPanel in "another" class, which is the main class of my GUI, by changing the text in that panel.
    i am using setText(Sting), but it doesnt work.
    i tried to call a method from the listen class to the main and that method have a print statment and setText() call, i checked that the statment is being printed, "which tells me that the listen class is calling that method in the main class, but the text doesnt change.. i tried repaint, revalidate... please help ..
    thx for ur time.

    i am trying to give u the closest picture of my code:
    public class SetTextTest extends JPanel{
         public JPanel updateHistory;
         private JButton updateHistoryButton;
    public JLabel updateLabel;
         public String updateStatus = "Updates: ";
         String updatesList ="";
    String updatesIds="", updatesTimes="";
         int numOfupdates = 0;
         public SetTextTest() {
              super(new BorderLayout());
              updateHistory = new JPanel();
              //Set up Updates History Panel
              updateHistory.setLayout(new BoxLayout(updateHistory,BoxLayout.Y_AXIS));//new BorderLayout());
              updateHistory.setMaximumSize(new Dimension(300,250));
              updateLabel = new JLabel(updateStatus + numOfupdates);
              updateHistoryButton = new JButton("Check Updates");
              updateHistoryButton.setPreferredSize(new Dimension(120,25));
              updateHistoryButton.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e){
                        //open a table
         updateHistory.add(updateLabel);
         updateHistory.add(updateHistoryButton);
         public void newUpdates(){
              numOfupdates++;
              java.awt.Toolkit.getDefaultToolkit().beep();
              System.out.println(updateStatus + numOfupdates);
              updateLabel.setText(updateStatus + numOfupdates);
    }

  • CustomAttributeX -ne $null not working in -RecipientFilter

    I am trying to create a dynamic distribution Group that will only return users who have CustomAttribute9 with numeric string and exclude any users who do not have that attribute populated. Here is my filter
    New-DynamicDistributionGroup -Name GCI-AaronPTest -RecipientFilter {(RecipientType -eq 'UserMailbox') -or (RecipientType -eq 'MailUser') -And (CustomAttribute9 -like '0*') -and (Customattribute9 -ne $null)}
    This is still returning users who have blank field for CustomAttribute9. Any help would be appreciated.

    Hi,
    I recommend you try the following command and check the result:
    New-DynamicDistributionGroup -Name GCI –Alias GCI -RecipientFilter {(RecipientType -eq 'UserMailbox' -or RecipientType -eq 'MailUser') –And (CustomAttribute9 -like '0*' -or Customattribute9 -ne $null)}
    Hope this helps!
    Thanks.
    Niko Cheng
    TechNet Community Support
    (RecipientType -eq 'UserMailbox' -or RecipientType -eq 'MailUser') –And (CustomAttribute9 -like '0*' -or Customattribute9 -ne $null)
    this will include  all mailbox or mail user which  have customattribute9 other than like '0*'   too .
    so , replace just    -or   with -and   in
    (CustomAttribute9 -like '0*' -or Customattribute9 -ne $null)
    to achieve the result.
    MCITP - Exchange 2010 | MCITP - Windows Server 2008 R2

  • TLF TextField - formatting issue - not working when TLF TF on stage?

    Hi,
    I have encountered formatting problems when using the TLF TextField placed on stage; I cant seem to format the textfield properly by ActionScript.
    When TLF TextField is created at runtime it works for strange reasons...
             import fl.text.TLFTextField;
          import flashx.textLayout.formats.TextLayoutFormat;
          import flashx.textLayout.elements.TextFlow;
          var myTLFTextField:TLFTextField = new TLFTextField();
          addChild(myTLFTextField);
          myTLFTextField.x = 10;
          myTLFTextField.y = 10;
          myTLFTextField.width = 200
          myTLFTextField.height = 100;
          myTLFTextField.text = "This is my text";
          var myFormat:TextLayoutFormat = new TextLayoutFormat();
          myFormat.textIndent = 8;
          myFormat.color = 0x336633;
          myFormat.fontFamily = "Arial, Helvetica, _sans";
          myFormat.fontSize = 24;
          var myTextFlow:TextFlow = myTLFTextField.textFlow;
          myTextFlow.hostFormat = myFormat;
          myTextFlow.flowComposer.updateAllControllers();
    When I set "myTLFTextField" as instance of an already existing TextField on stage no formatting is performed.
    I dont want to create all TLF TextFields by ActionScript, please help!

    I have yet to meet this beast called the TLFTextField, but I think in the forums I've more often seen recommendations to avoid it than to use it.  Did they miss a target when they invented it?

  • UITabelViewCell TextField and TextFieldShouldReturn not working

    In my .h file I have:
    UITableViewController <UITextFieldDelegate>
    In my .c file I have:
    This is under Customize the appearance of table view cell, under configure cell
    UITextField *FirstField = [UITextField alloc]initWithFrame: etc.
    FirstField.delegate = self;
    FirstField.tag = indexPath.row;
    [cell.contentView addSubview:FirstField];
    FirstField release;
    return cell;
    Then as a separate method
    -(Bool)textfieldShouldReturn:(UITextField*)textfield
    textfield resignFirstResponder;
    After putting a breakpoint at the textfieldShouldReturn and pressing the return key, I find
    that this method never gets visited? Am I missing something?

    You need to use TextFormat class to assign the alignment.  "autosize" is not what you think it is, and based on your trying to set the size of the textfield, you probably don't want to use it.  Try adding the following before you assign the text and comment out the autosize line...
    var tfFormat:TextFormat = new TextFormat();
    tfFormat.align = TextFormatAlign.RIGHT;
    tf.defaultTextFormat = tfFormat;

  • EntityManager is not null then what can be the problem?findAll not working

    Hello,
    I am just a beginner trying to learn JPA. I successfully added record to database but when i tried to display it it throws me null pointer exception. This is the code
    index.xhtml
    <?xml version='1.0' encoding='UTF-8' ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core">
        <h:head>
            <title>Facelet Title</title>
        </h:head>
        <h:body>
            <h:form>
                <h:outputLabel value="Username :"/>
                <h:inputText value="#{IndexManagedBean.userName}"/> <br />
                <h:outputLabel value="Password :"/>
                <h:inputText value="#{IndexManagedBean.password}"/> <br />
                <h:outputLabel value="Birthdate :"/>
                <h:inputText value="#{IndexManagedBean.birthdate}">
                    <f:convertDateTime dateStyle="medium" type="date"/>
                </h:inputText> <br />
                <h:commandButton value="Add User" actionListener="#{IndexManagedBean.addUser}"/>
                <br />
                <br/>
            </h:form>
        </h:body>
    </html>Users.java My Entity bean
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package BusinessFacade;
    import java.io.Serializable;
    import java.util.Date;
    import javax.persistence.Basic;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    import javax.persistence.Temporal;
    import javax.persistence.TemporalType;
    @Entity
    @Table(name = "tblusers", catalog = "ssms", schema = "")
    @NamedQueries({
        @NamedQuery(name = "Users.findAll", query = "SELECT u FROM Users u"),
        @NamedQuery(name = "Users.findByUserId", query = "SELECT u FROM Users u WHERE u.userId = :userId"),
        @NamedQuery(name = "Users.findByUserName", query = "SELECT u FROM Users u WHERE u.userName = :userName"),
        @NamedQuery(name = "Users.findByPassword", query = "SELECT u FROM Users u WHERE u.password = :password"),
        @NamedQuery(name = "Users.findByLastLoginDateTime", query = "SELECT u FROM Users u WHERE u.lastLoginDateTime = :lastLoginDateTime"),
        @NamedQuery(name = "Users.findByBirthdate", query = "SELECT u FROM Users u WHERE u.birthdate = :birthdate")})
    public class Users implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        @Basic(optional = false)
        @Column(name = "UserId", nullable = false)
        private Integer userId;
        @Basic(optional = false)
        @Column(name = "UserName", nullable = false, length = 50)
        private String userName;
        @Basic(optional = false)
        @Column(name = "Password", nullable = false, length = 50)
        private String password;
        @Basic(optional = false)
        @Column(name = "LastLoginDateTime", nullable = false)
        @Temporal(TemporalType.TIMESTAMP)
        private Date lastLoginDateTime;
        @Column(name = "Birthdate")
        @Temporal(TemporalType.TIMESTAMP)
        private Date birthdate;
        public Users() {
        public Users(Integer userId) {
            this.userId = userId;
        public Users(String userName, String password, Date birthDate) {
            this.userName = userName;
            this.password = password;
            this.lastLoginDateTime = new Date();
            this.birthdate = birthDate;
        public Integer getUserId() {
            return userId;
        public void setUserId(Integer userId) {
            this.userId = userId;
        public String getUserName() {
            return userName;
        public void setUserName(String userName) {
            this.userName = userName;
        public String getPassword() {
            return password;
        public void setPassword(String password) {
            this.password = password;
        public Date getLastLoginDateTime() {
            return lastLoginDateTime;
        public void setLastLoginDateTime(Date lastLoginDateTime) {
            this.lastLoginDateTime = lastLoginDateTime;
        public Date getBirthdate() {
            return birthdate;
        public void setBirthdate(Date birthdate) {
            this.birthdate = birthdate;
        @Override
        public int hashCode() {
            int hash = 0;
            hash += (userId != null ? userId.hashCode() : 0);
            return hash;
        @Override
        public boolean equals(Object object) {
            // TODO: Warning - this method won't work in the case the id fields are not set
            if (!(object instanceof Users)) {
                return false;
            Users other = (Users) object;
            if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {
                return false;
            return true;
        @Override
        public String toString() {
            return "BusinessFacade.Users[userId=" + userId + "]";
    }UsersFacade.java my Stateless session bean
    package BusinessFacade;
    import java.util.List;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import javax.persistence.Query;
    import javax.persistence.criteria.CriteriaQuery;
    import javax.persistence.criteria.Root;
    @Stateless
    public class UsersFacade {
        @PersistenceContext(unitName = "FirstJpaExamplePU")
        private EntityManager em;
        public void create(Users users) {
            em.persist(users);
        public void edit(Users users) {
            em.merge(users);
        public void remove(Users users) {
            em.remove(em.merge(users));
        public Users find(Object id) {
            return em.find(Users.class, id);
        public List<Users> findAll() {
            return em.createNamedQuery("Users.findAll").getResultList();
        public List<Users> findRange(int[] range) {
            CriteriaQuery cq = em.getCriteriaBuilder().createQuery();
            cq.select(cq.from(Users.class));
            Query q = em.createQuery(cq);
            q.setMaxResults(range[1] - range[0]);
            q.setFirstResult(range[0]);
            return q.getResultList();
        public int count() {
            CriteriaQuery cq = em.getCriteriaBuilder().createQuery();
            Root<Users> rt = cq.from(Users.class);
            cq.select(em.getCriteriaBuilder().count(rt));
            Query q = em.createQuery(cq);
            return ((Long) q.getSingleResult()).intValue();
    }If entitymanager is null then even create should not work, but here findall is not working, create is working perfect!

    oops, sorry about that!
    here is stack trace :
    com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: IndexManagedBean.
         at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:193)
         at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:102)
         at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:405)
         at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:267)
         at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:86)
         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
         at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:99)
         at com.sun.el.parser.AstValue.getValue(AstValue.java:158)
         at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
         at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:102)
         at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190)
         at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:178)
         at javax.faces.component.UIOutput.getValue(UIOutput.java:168)
         at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:205)
         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:338)
         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:164)
         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1620)
         at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)
         at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:380)
         at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
         at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
         at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
         at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
         at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
         at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
         at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
         at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
         at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
         at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
         at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
         at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
         at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
         at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NullPointerException
         at BusinessFacade.UsersFacade.findAll(UsersFacade.java:47)
         at IndexManagedBean.<init>(IndexManagedBean.java:23)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:188)
         ... 53 moreEventually, i found out the EntityManager is null! But how can it be null. I created a persistence context and gave it proper name in code. Then how it be null?

  • Input Textfields not working in fullscreen mode

    Input Textfields not working in fullscreen mode any one help me.

    Quotes from Adobe:
    "Users cannot enter text in text input fields while in full-screen mode. All keyboard input and key-related ActionScript is disabled while in full-screen mode, with the exception of the keyboard shortcuts that take the viewer out of full-screen mode."
    Check with this article to know more: http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html

Maybe you are looking for

  • HP OfficeJet Pro 8620 Embedded Web Server

    I'm trying to use the scan to email feature.  I enter the ISP address get a page with my printer name. I get this after selecting scan; " You cannot use this function because it has been disabled. For more information, contact your network administra

  • The "next" button of crystal report viewer does not work

    hi I use crystal report viewer control to show my crystal report on my aspx page. like: <CR:CrystalReportViewer id="CRViewer" runat="server" HasRefreshButton="False" PrintMode="ActiveX" DisplayGroupTree="False" AutoDataBind="True" SeparatePages="TRUE

  • Will Apple's 30 " Display overheat a 17" PB?

    I am about ready to purchase a 17 PowerBook and the 30" Apple Cinema Display. Can anyone tell me if they have had any overheating issues with similar setups (ie; 15" PB)??? Does the PB fan run continuously when 30" display is used? Thanks to all that

  • Asset Lines

    I have created asset Lines for Capital Projects .Asset Lines status is Pending. After that I have run Interface assets to Oracle Assets . But asset lines are not yet interfaced . Please suggest what to do ??

  • Cost Center (Actuals or Reforecast) vs. Plan

    Hello, I know this can be done because I saw it at another client.  I would like to create a Cost Center report that displays Actuals for months that have already past, and the Reforecase for months that have not already past. For example, assuming i