10.4.10: moving cursor with arrows in the password field of Login Window
Since installing 10.4.10 update, I cannot correct the arbitrary character in the login window which I mistakenly entered. It was quite useful to correct the typo. Now arrow keys simply don't move the cursor. Weird, but this edit field allows only deleting the whole password with backspace key and entering it again from the start.
I checked, to see if the issue is not unique to me, a few Intel iMacs and minis in office and my home Mac, and it can be replicated everywhere.
Does anybody know, what was behind this "very smart" Apple developers' solution? They didn't even bother to mention this in release note.
today, after I had switched off my Mac over night and started it this morning, the Help Search Field works as expected ... (but why didn't it after the installation yesterday/restart?)
Similar Messages
-
Artifacts when moving object with arrow keys.
Hi all
hope this is the right place to post this question.
I want to to write simple arkanoid game in Flash (AC3). I've managed to write code that moves my paddle with arrow keys. The code looks like this:
function OnNewFrame(event:Event):void
if (input.IsLeftHeld)
if (paddle.x > 0)
paddle.x -= 10;
else
if (input.IsRightHeld)
if (paddle.x < stage.stageWidth - paddle.width)
paddle.x += 10;
It works but the result is ugly. The animation is not fluent, there are times when paddle stops for a moment . Also when speed of translation is high (here it is 10) you can see that paddle is flickering at the ends, it looks like single buffering problem. You can see both of those effects here: http://www.flash-game-design.com/flash-tutorials/movOb.html , hovewer flickering is less visible due to small translation amount.
How to fix this? How can i enable double buffering (or maybe it is enabled by default)? Any help will be appreciated.
P.S. sorry for bad englishThanks for samples, this is very kind ; p
Hovewer you are doing everything almost exactly as I'am doing. Tou are using mySymbol.x++ which means your translation speed is 1. Also I'am aware that rising frame rate will result in smoother animations, but this is not the point. So once again, my flash applications suffer from two problems:
1) Animations are not smooth. You can see this crealrly in here: http://www.kirupa.com/developer/actionscript/hittest.htm , go back to the very bottom of the page, there is an animation window, look at the smallest circle. It looks like its blinking.
2) Moving symbols with arrow keys with the method i've presnted in the first post (the same method that infeter uses ). Moved symbol is randomly stopping for the very (very very) short amount of time. You can easily spot this in infeter sample.
Many sample applications i've seen suffer from those issues. and nobody seems to see the problem, so maybe I am delusional? ; p
cheers and thank for help -
Tiger & Safari 2.0 - Can't Use Arrow Keys in Password Fields
Since installing Tiger and using the new Safari 2.0, password fields in online forms are not allowing the use of arrow keys. I can't go back one character or to the beginning of the typed in the password field. In fact I can't even use the mouse to click anywhere other than the end of this field. It's forcing me to type it straight through, which is not how I type or re-type passwords (* See Example Below). I need to be able go back and edit sometimes, and the arrow keys helped in previous versions, but not now. All form text fields should allow the use of the arrow keys and the mouse to change the cursor's insertion point. Internet Explorer does not do this. But to my dismay the Mac OS X Login Window does! So maybe this is part of the OS rather than just Safari. I hope Apple is listening and fixes this issue in future versions of Safari & Tiger
* Example of how to make secure passwords via the Arrow Keys:
Take two or three easy to remember words or numbers. For example I'll use "steve" "jobs" and the date Apple Computer was formed 4/1/1976 or "4176" for our purposes here. First you type in the first word...
steve
Second you move the cursor with the arrow keys (which you can't do in Safari 2.0) to the beginning using the up-arrow, then alternate typing the second word "jobs" with a right-arrow key interspersed between each letter. So you would then type "j right-arrow o right-arrow b right-arrow s", which combined with what we already typed in step one should look like this...
jsotbesve
Things are looking secure, no one would think of typing that. But we'll go to a third step and just repeat what we did before adding "4176" to the mix, which would then look like this...
4j1s7o6tbesve
No one or thing would guess that password. but it's so easy to remember with the help of Arrow Keys. Now this is just one method. You could use the left-arrow key to go backwards with it, using two left-arrow key clicks...
stsebv6o7e1j4
maybe use 1, 2, and 3 right-arrow clicks...
4j1so7teb6ves
Simple, easy to remember words or numbers made into secure unguessable passwords with the simple help of the Arrow Keys. Please Apple, make them usable in the password fields again.Still looking for help here.
And now in addition the above-listed issue, this browser has bogged down and is loading pages so slowly it just grinds to a halt.
At this point, I'd settle for instructions on how to fully uninstall Safari and re-install it and start over. This is flat unacceptable, and at this point I'm wondering why in the world I elected to pay for Tiger, only to be "blessed" with this disaster.
Please don't tell me to go back and reinstall the entire operating system. Not unless Apple would like a bill for the hours of my time it will take to do that, re-port all my files and re-install all my other software. -
Help! How do I get the cursor to start at the first field of my form?
I've just built a dozen forms fo rour business with Acrobat 9 Extended and would like the cursor to start on the first field of the forms when the PDF is first pulled up. I've looked everywhere, read all the Helps but can't find anything on how to make this happen. Is this so easy I'm missing it or what?
You're right, its not a big deal but its the little things that make life
more interesting.
Hey, thanks a lot for your help. You're making me look smart and that
really is a big deal.
Regards, -
Cursor not focusing in the text field after Object tag load in IE
Hi,
We have an applets class "ABC.class" in our application. To include this class in a jsp page we are using OBJECT tag. This tag is written inside a if block in the jsp page. Based on the if condition this OBJECT tag has to be loaded. Below is the code we are using:
<%
if(testCondition)
%>
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" NAME="applet" width="0" height="0">
<PARAM NAME="CODE" VALUE="ABC.class" >
<input type="hidden" id='myText' value="Please configure the jinitiator version to Oracle applicaitons Jinitiator version." >
No JDK 1.3 support for APPLET!!
</OBJECT>
<%
%>
In the above code if the "if condition" is satisfying, then cursor is not focusing on the required field. The code to focus on the field is written in the javascript function which is called onLoading the page.
we are using IE 7 and IE8. In IE 7 sometimes working fine but in IE 8 we are getting this issue.
Can anyone please help us how to focus the cursor on the required field even in the case of the Object tag loading.
Thanks,
EswariHi Nicky,
Thanks for your reply.
We are not using JQuery.
Actually the code to focus is written in the function which is called onLoad of the page that will be executed after the page loading. If we keep alerts in the onLoad function then the cursor is focusing to the required field.
Thanks,
Eshwari -
When I sync my iPhone 4s with my itunes, the notes/fields in contacts do not sync. Any ideas?
In iTunes I go to iPhone --> Info --> Synch Contacts --> All contacts
-
Moving Cursor with More Than One Finger?
Hi. I have been considering getting the Magic Trackpad. I went to the Apple store today to try it out. I was a little disappointed. My problem with it is that it requires controlling the cursor with only one finger. With a mouse, you move the cursor with a few fingers, which to me is more natural. With the Magic Trackpad, I kept accidentally resting another finger on the trackpad causing the cursor control to greatly diminish.
I looked in the System Preferences pane for the Magic Trackpad to see if I could change the cursor behavior to move the cursor using more than one finger at a time. I realized later today that I forgot to look at the options for three-finger scrolling. I won't be able to go to the Apple store again for a little while, which is why I'm posting here. I just want to find out whether or not it's possible to control the cursor with three fingers. Can someone who owns the Magic Trackpad look at the Systems Preferences pane to see if three fingers can be used for general cursor control? I'd appreciate it.
I also just did a search online for software that enhances the capabilities of the trackpad. One software enhancement is called BetterTouchTool but I didn't see an option for changing the number of fingers required for moving the cursor.
I haven't read or seen video of anyone with a similar complaint about the trackpad so maybe I'm unique in having the cursor control problem.
Thanks,
MirskyThere are only two options available with three fingers - Swipe to Navigate (back and forward in Safari) and Dragging. Sorry...
-
Whenever I try and change my master password I can not manage to. I got a new hard drive and the person at the apple store told me that the password was to just press enter (with nothing in password blank), and that I would be able to change it. Everytime I try and change the master password it says, "incorrect password" under the current master password blank. It has been awhile since then and I have moved so I can not go back there and get them to figure it out. So the question is, Is there anyway to change it without wiping my entire hard drive and starting over?
Welcome to the Apple Support Communities
See > http://support.apple.com/kb/HT1274 -
Issue with fill in the blank field and back button.
I am working in CP4 AS2. I have create a page of fill in the blank fields to simulate filling in a form. On the next slide, I show the answers by extracting the variables into text boxes. I have a back and a next button and instruct the user to review their answers and if incorrect, to select the back button in order to reenter the data. I have the back button set to jump to the previous slide by number (i've tried previous, last slide, etc...)
The flash movie freezes when I select the back button. I think flash is having trouble going back to the fill in the blank fields from the displayed variables. Any ideas? or work arounds for this. The idea solution would take them back to the page with the data already in the fields so they could correct the errors only and then return to the review page.
Thanks
ScottHi there
Is scoring enabled on these? If so, perhaps your quiz settings are preventing backward movement.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Data with "," overflows to the next field when importing data with DTW
Dear all,
When I tried to import data with DTW, for the data that includes ",", the data after "," all jumps into the next field after import.
E.g. Column A(memo): bank, United state
Column B(project code): blank
Result in SBO: Memo field : bank
Project code: United state
I have tried 2 ways.
1. Save the file as csv, and adding double quote(") at the beginning and ending of the data. However, it didn't work. It didn't work with single quote as well.
2. Save the file as txt, without amending the data at all.
It worked, however, in SBO, double quote is auto added, it becomes "bank, United state".
Please kindly advise how to handle such case.
Thank you.
Regards,
JulieHi,
Check this if it is useful :
Upload of BP Data using DTW
Rgds,
Jitin -
Problems with links and the "advanced" field
Has anyone else had problems with the advanced field when
making a new link? It seems I have to edit it three or four times
before it will actually take the link I put in ("
http://www.blah.com/" instead of
"../../"). Anyone else?I am having the same problem... although I am only trying to link between "One of My Pages" i.e navigation menus.
It is pretty random which links work and which don't as far as I can tell anyway.
The links work fine when I activate hyperlinks in iWeb but as soon as I publish to a folder some of them don't.
I will post if I find a solution, but I have read and tried just about everything.
Best
PowerBook G4 Mac OS X (10.4.9) 1.25 GB RAM -
Hello,
How would I click on one of the circles I've created and move them using the arrow keys. The circles move just fine with the drag of the mouse but now I want to use the arrow keys. Can somebody help me please? I would really appreciate the assistance.
Michael
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class DragBallPanel extends JPanel implements MouseListener, MouseMotionListener, KeyListener
private static final int BALL_DIAMETER = 50; // Diameter of ball
private static final int BALL_DIAMETER2 = 50;
//--- instance variables
/** Ball coords. Changed by mouse listeners. Used by paintComponent. */
private int _ballX = 50; // x coord - set from drag
private int _ballY = 50; // y coord - set from drag
private int x2 = 200; // starting x coord for 2nd ball
private int y2 = 200; //starting y coord for 2nd ball
private int x3 = 75;
private int y3 = 150;
/** Position in ball of mouse press to make dragging look better. */
private int _dragFromX = 0; // pressed this far inside ball's
private int _dragFromY = 0; // bounding box.
private int xInsideBall = 0; //coordinates of where the mouse is pressed inside second ball
private int yInsideBall = 0; //is pressed inside second ball
private int x3InsideBall = 0; //coordinates of where the mouse is pressed inside second ball
private int y3InsideBall = 0; //is pressed inside second ball
/** true means mouse was pressed in ball and still in panel.*/
private boolean _canDrag = false;
private boolean _canDrag2 = false;
private boolean _canDrag3 = false;
/** Constructor sets size, colors, and adds mouse listeners.*/
public DragBallPanel()
setPreferredSize(new Dimension(400, 400));
setBackground(Color.ORANGE);
setForeground(Color.BLUE);
//--- Add the mouse listeners.
this.addMouseListener(this);
this.addMouseMotionListener(this);
}//endconstructor
/** Ball is drawn at the last recorded mouse listener coordinates. */
public void paintComponent(Graphics g)
super.paintComponent(g); // Required for background.
g.fillOval(_ballX, ballY, BALLDIAMETER, BALL_DIAMETER);
g.setColor(Color.RED);
g.fillOval(x2, y2, BALL_DIAMETER2, BALL_DIAMETER2);
g.setColor(Color.BLACK);
g.fillOval(x3, y3, BALL_DIAMETER2, BALL_DIAMETER2);
}//end paintComponent
public void mousePressed(MouseEvent e)
int x = e.getX(); // Save the x coord of the click
int y = e.getY(); // Save the y coord of the click
if (x >= ballX && x <= (ballX + BALL_DIAMETER)
&& y >= ballY && y <= (ballY + BALL_DIAMETER))
_canDrag = true;
dragFromX = x - ballX; // how far from left
dragFromY = y - ballY; // how far from top
else
_canDrag = false;
//clicked on 2nd ball
if(x >= x2 && x <= (x2 + BALL_DIAMETER2)
&& y >= y2 && y <= (y2 + BALL_DIAMETER2) )
_canDrag2 = true;
xInsideBall = x - x2;
yInsideBall = y - y2;
else
_canDrag2 = false;
if(x >= x3 && x <= (x3 + BALL_DIAMETER2)
&& y >= y3 && y <= (y3 + BALL_DIAMETER2) )
_canDrag3 = true;
x3InsideBall = x - x3;
y3InsideBall = y - y3;
else
_canDrag3 = false;
}//end mousePressed
public void mouseDragged(MouseEvent e)
// True only if button was pressed inside ball.
//--- Ball pos from mouse and original click displacement
if (_canDrag)
ballX = e.getX() - dragFromX;
ballY = e.getY() - dragFromY;
//--- Don't move the ball off the screen sides
ballX = Math.max(ballX, 0);
ballX = Math.min(ballX, getWidth() - BALL_DIAMETER);
//--- Don't move the ball off top or bottom
ballY = Math.max(ballY, 0);
ballY = Math.min(ballY, getHeight() - BALL_DIAMETER);
this.repaint(); // Repaint because position changed.
if (_canDrag2)
x2 = e.getX() - xInsideBall;
y2 = e.getY() - yInsideBall;
x2 = Math.max(x2, 0);
x2 = Math.min(x2, getWidth() - BALL_DIAMETER2);
y2 = Math.max(y2, 0);
y2 = Math.min(y2, getHeight() - BALL_DIAMETER2);
this.repaint(); // Repaint because position changed.
if (_canDrag3)
x3 = e.getX() - x3InsideBall;
y3 = e.getY() - y3InsideBall;
x3 = Math.max(x3, 0);
x3 = Math.min(x3, getWidth() - BALL_DIAMETER2);
y3 = Math.max(y3, 0);
y3 = Math.min(y3, getHeight() - BALL_DIAMETER2);
this.repaint(); // Repaint because position changed.
}//end mouseDragged
public void keyPressed(KeyEvent ke)
//int x = e.getX(); // Save the x coord of the click
//int y = e.getY(); // Save the y coord of the click
int dx = 10;
switch (ke.getKeyCode())
case KeyEvent.VK_LEFT: // move x coordinate left
_ballX -= dx;
ballX = Math.max(ballX, 0);
break;
case KeyEvent.VK_RIGHT: // move x coordinate right
_ballX += dx;
ballX = Math.min(ballX, getWidth() - BALL_DIAMETER);
this.repaint();
public void mouseMoved (MouseEvent e) {} // ignore these events
public void mouseEntered (MouseEvent e) {} // ignore these events
public void mouseClicked (MouseEvent e) {} // ignore these events
public void mouseReleased(MouseEvent e) {} // ignore these events
public void mouseExited (MouseEvent e) {} // ignore these events
public void keyReleased (KeyEvent ke) {} // ignore this junk
public void keyTyped (KeyEvent ke) {} // ignore this junk
}//endclass DragBallPanelA couple of notes:
- That code did not add the keyListener to anything.
- At the moment (in the altered code below), only the blue circle moves, and only left/right. It is left as an exercise to the OP to 'take it from there'.
- It only took four more lines of code to turn that code into an SSCCE*, which will generally get more help.
- Please use code indentation, and the code formatting delimiters, when posting code. It makes code a lot easier to read and understand.
* The SSCCE is described at..
<http://www.physci.org/codes/sscce.html>
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class DragBallPanel extends JPanel
implements MouseListener, MouseMotionListener, KeyListener
private static final int BALL_DIAMETER = 50; // Diameter of ball
private static final int BALL_DIAMETER2 = 50;
//--- instance variables
/** Ball coords. Changed by mouse listeners. Used by paintComponent. */
private int _ballX = 50; // x coord - set from drag
private int _ballY = 50; // y coord - set from drag
private int x2 = 200; // starting x coord for 2nd ball
private int y2 = 200; //starting y coord for 2nd ball
private int x3 = 75;
private int y3 = 150;
/** Position in ball of mouse press to make dragging look better. */
private int _dragFromX = 0; // pressed this far inside ball's
private int _dragFromY = 0; // bounding box.
private int xInsideBall = 0; //coordinates of where the mouse is pressed inside second ball
private int yInsideBall = 0; //is pressed inside second ball
private int x3InsideBall = 0; //coordinates of where the mouse is pressed inside second ball
private int y3InsideBall = 0; //is pressed inside second ball
/** true means mouse was pressed in ball and still in panel.*/
private boolean _canDrag = false;
private boolean _canDrag2 = false;
private boolean _canDrag3 = false;
/** Constructor sets size, colors, and adds mouse listeners.*/
public DragBallPanel()
setPreferredSize(new Dimension(400, 400));
setBackground(Color.ORANGE);
setForeground(Color.BLUE);
//--- Add the mouse listeners.
this.addMouseListener(this);
this.addMouseMotionListener(this);
// add the keylistener!
this.addKeyListener(this);
// make sure the panel is focusable
setFocusable(true);
}//endconstructor
/** Ball is drawn at the last recorded mouse listener coordinates. */
public void paintComponent(Graphics g)
super.paintComponent(g); // Required for background.
g.fillOval(_ballX, _ballY, BALL_DIAMETER, BALL_DIAMETER);
g.setColor(Color.RED);
g.fillOval(x2, y2, BALL_DIAMETER2, BALL_DIAMETER2);
g.setColor(Color.BLACK);
g.fillOval(x3, y3, BALL_DIAMETER2, BALL_DIAMETER2);
}//end paintComponent
public void mousePressed(MouseEvent e)
int x = e.getX(); // Save the x coord of the click
int y = e.getY(); // Save the y coord of the click
if (x >= _ballX && x <= (_ballX + BALL_DIAMETER)
&& y >= _ballY && y <= (_ballY + BALL_DIAMETER))
_canDrag = true;
_dragFromX = x - _ballX; // how far from left
_dragFromY = y - _ballY; // how far from top
else
_canDrag = false;
//clicked on 2nd ball
if(x >= x2 && x <= (x2 + BALL_DIAMETER2)
&& y >= y2 && y <= (y2 + BALL_DIAMETER2) )
_canDrag2 = true;
xInsideBall = x - x2;
yInsideBall = y - y2;
else
_canDrag2 = false;
if(x >= x3 && x <= (x3 + BALL_DIAMETER2)
&& y >= y3 && y <= (y3 + BALL_DIAMETER2) )
_canDrag3 = true;
x3InsideBall = x - x3;
y3InsideBall = y - y3;
else
_canDrag3 = false;
}//end mousePressed
public void mouseDragged(MouseEvent e)
// True only if button was pressed inside ball.
//--- Ball pos from mouse and original click displacement
if (_canDrag)
_ballX = e.getX() - _dragFromX;
_ballY = e.getY() - _dragFromY;
//--- Don't move the ball off the screen sides
_ballX = Math.max(_ballX, 0);
_ballX = Math.min(_ballX, getWidth() - BALL_DIAMETER);
//--- Don't move the ball off top or bottom
_ballY = Math.max(_ballY, 0);
_ballY = Math.min(_ballY, getHeight() - BALL_DIAMETER);
this.repaint(); // Repaint because position changed.
if (_canDrag2)
x2 = e.getX() - xInsideBall;
y2 = e.getY() - yInsideBall;
x2 = Math.max(x2, 0);
x2 = Math.min(x2, getWidth() - BALL_DIAMETER2);
y2 = Math.max(y2, 0);
y2 = Math.min(y2, getHeight() - BALL_DIAMETER2);
this.repaint(); // Repaint because position changed.
if (_canDrag3)
x3 = e.getX() - x3InsideBall;
y3 = e.getY() - y3InsideBall;
x3 = Math.max(x3, 0);
x3 = Math.min(x3, getWidth() - BALL_DIAMETER2);
y3 = Math.max(y3, 0);
y3 = Math.min(y3, getHeight() - BALL_DIAMETER2);
this.repaint(); // Repaint because position changed.
}//end mouseDragged
public void keyPressed(KeyEvent ke)
System.out.println("key PRESSED");
//int x = e.getX(); // Save the x coord of the click
//int y = e.getY(); // Save the y coord of the click
int dx = 10;
switch (ke.getKeyCode())
case KeyEvent.VK_LEFT: // move x coordinate left
_ballX -= dx;
_ballX = Math.max(_ballX, 0);
break;
case KeyEvent.VK_RIGHT: // move x coordinate right
_ballX += dx;
_ballX = Math.min(_ballX, getWidth() - BALL_DIAMETER);
this.repaint();
public void mouseMoved (MouseEvent e) {} // ignore these events
public void mouseEntered (MouseEvent e) {} // ignore these events
public void mouseClicked (MouseEvent e) {} // ignore these events
public void mouseReleased(MouseEvent e) {} // ignore these events
public void mouseExited (MouseEvent e) {} // ignore these events
public void keyReleased (KeyEvent ke) {} // ignore this junk
public void keyTyped (KeyEvent ke) {} // ignore this junk
/** Add a main(), to make this an SSCCE. */
public static void main(String[] args) {
DragBallPanel dbp = new DragBallPanel();
JOptionPane.showMessageDialog(null, dbp);
}//endclass DragBallPanel -
Moving Sprite with arrow keys, simultaneous directions
Hi everyone.
I'm trying to create a small arcade style game, you control a
small ship, shoot at incoming targets, try to dogde their shots,
etc. I'm working on the ship's movement right now, using the arrow
keys to control it. Getting it to move one direction at a time is
easy, but sometimes I need to move it diagonally, otherwise I think
gameplay will suffer considerably.
I have tried several things but I never seem to be able to
tell Flash that two keys are being pressed simultaneously. Can
anyone tell me how I might achieve this?
Thank you.This format should allow detection of multiple keys at once:
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
function keyPressed(ev:KeyboardEvent):void {
var pressedKey:uint = ev.keyCode;
if(pressedKey == Keyboard.LEFT) {
leftDown = true;
if(pressedKey == Keyboard.RIGHT) {
rightDown = true;
if(pressedKey == Keyboard.UP) {
upDown = true;
if(pressedKey == Keyboard.DOWN) {
downDown = true;
ship.addEventListener(Event.EnterFrame, moveShip);
} -
How do I delete an old iCloud account with out knowing the password in order to make a new one
i recently sent my phone to my aunt and she reset the phone but my own iCloud is still on the phone how can she change it with out me giving her my password
That is Activation Lock. The only way around it is to log in with your credentials. Go to Settings/iCloud. Turn off Find my iPhone, and then uncheck iCloud. At some point you will have to put in your Apple id credentials (the one you use for app purchases). Then go to Settings/General/Reset and click on Reset All Settings. I would suggest you select Erase All Contents and Settings. That will set the phone back to factory defaults. She can then set the phone up as hers and download the apps she wants with her own Apple id.
Have a nice day. -
Using LOV with Validation on the Numeric Fields results in Error
Dear JHeadstart Team,
During my work with lov I encountered another problem. I defined a lov and attached the lov to a numeric field and check the LOV for validation. Now when I use LOV using the LOV button it works fine but when I enter some numbers and then press tab the LOV was not shown correctly and resulted in the following errors and the worst thing is that you can not navigate to any other pages and all try to navigate to other pages results in errors too. When we put the same LOV on a string field (which is not desirable for us) it worked fine.
It seems to me like a bug. Am I right? Is ther any solution or workaround for this problem?
Thanks in advance,
Navid
16:31:29 DEBUG (LovItemBean) -Cleared value of item HrTrainingCourseSchedulesTitle
16:31:29 DEBUG (LovItemBean) -Cleared value binding #{bindings.HrTrainingCourseSchedulesTitle.inputValue} of item HrTrainingCourseSchedulesTitle
16:31:29 ERROR (ApplyRequestValuesPhase) -java.lang.ClassCastException: java.lang.Long
javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.Long
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1079)
at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)
at oracle.adf.view.faces.component.UIXSelectInput.broadcast(UIXSelectInput.java:215)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:249)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:307)
at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at com.pooya.controller.jsf.PooyaAuthenticationFilter.doFilter(PooyaAuthenticationFilter.java:256)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassCastException: java.lang.Long
at oracle.jheadstart.controller.jsf.bean.LovItemBean.validateWithLov(LovItemBean.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
... 31 moreHi Navid,
We ran into the same bug and have the next workaround for it:
We extended the JHeadstart class 'LovItemBean' and we have overridden the method 'validateWithLov(...)' with:
public void validateWithLov(ValueChangeEvent valueChangeEvent)
Object newValue = valueChangeEvent.getNewValue();
if(newValue != null && !(newValue instanceof String))
newValue = newValue.toString();
ValueChangeEvent newEvent = new ValueChangeEvent(valueChangeEvent.getComponent(), valueChangeEvent.getOldValue(), newValue);
newEvent.setPhaseId(valueChangeEvent.getPhaseId());
super.validateWithLov(newEvent);
else
super.validateWithLov(valueChangeEvent);
}Next step is to use a custom template in your JHeaedstart Application Structure file for 'LOV_ITEM_BEAN'. In this custom template you should use your own class as 'managed-bean-class' instead of the default JHeadstart one.
Now you can safely generate LOV with validation of number fields.
Maybe something the JHeadstart can pcik up in the next release of JHeadstart :-)
Hope this helps.
Pascal
Maybe you are looking for
-
Error 2203 installing Adobe Reader. How do I fix?
Error 2203.Database: C:\Windows\Installer\61cd5.ipi. Cannot open database file. System error -2147287035. I am running Windows 7 and continue to get this error when attempting to install Adobe Reader. I have run the CleanUp tool and removed all previ
-
InDesign 2014 seems not to be recognized by Windows 7 anyone have this problem?
All my InDesign files show the unrecognized file icon. I can open the file if I drag and drop but not if I double click the icon. I tried open with and selected browse and InDesign but it did nothing as did properties for the file association. Any
-
Hi everyone, I'm trying to execute a CDP process but I get this error: 02070E ERROR: Missing required field names in the input DDL. Occurred in Customer Data Parser - (CCDParser::CheckInputFieldNames). Does anyone knows what the problem could be? Tha
-
Can I use my iPad in France and Italy with the proper adapter?
I'm going to Europe in five months and trying to prepare. Can I use my iPad there with the proper adapter? I know my iPhone needs the proper SIM card so I'm curious about my iPad.
-
Illustrator CS3 can't open eps files
I can't seem open any eps files. It won't open in Photoshop either. Both of them I get this message: "Parser module cannot parse the file." Am I missing a vital component to install in CS3?