READ A VERY FUNNY THING

Hi everybody,
i have something that is relly funny.. i will try to discribe it shortly
i am using JSF and JBOSS
i have a Form in my jsp with one field ... after clicking submit the request will be sent to a bean and should be valideted
the funny thing is that when i use firefox everything go OK but when i use IE :
- if i click submit with the mouse or press enter then everything is OK
- if i press enter the request will not be sent !!!!!! if i click enter with mouse goes OK...........
can some one tell me what is happening?????
P.s.: if i have a form with 2 or more fields then there is no Problem
form code:
<h:inputText  value="#{NewsLetterBean.surname}" id="firstname" size="50" />
<h:commandButton id="abon_id"      
action="#{NewsLetterBean.subscribe}" value="subscribe"></h:commandButton>thank u

I said the onsubmit event of FORM tag
Here is an example of the same situation you are facing ..
<html>
<body>
<script>
function doSubmit()
document.forms[0].action="http://msn.com";
//dont submit here else u might send 2 requests to server
</script>
<form name="rr" action="http://yahoo.com" onsubmit="doSubmit()">
<input type="text" name="sdf" value="dfg" />
<input type="button" name="" value="" onclick="doSubmit()"/>
</form>
</body>
</html>Please note that if you remove the onsubmit event of form tag then on clicking enter key it goes to yahoo.com
Cheers
-Rohit

Similar Messages

  • Why do I get an error message while I am setting up iMessage that reads "could not sign in. Please check your network connection and try again." Funny thing is internet Safari works just fine.

    As the subject line. When I try to activate either iMessage or FaceTime I get this error message "Could not sign in. Please check your network connection and try again." Funny thing Safari works just fine with my network connection. The device in question is an iPhone4. iOS 7.06

    The following link has a section for dealing with that error message that may help: http://support.apple.com/kb/TS4268

  • Funny things I have seen

    You know how sometimes you see something happen and you laugh hysterically ...cause otherwise you would have to CRY ????  Or else something really funny happens that is just circumstance and harmless to everyone.. just plain funny ???  Some movies are like that.. full of skits that are so retarded and crazy it is hilarious ?
    A mad mad mad mad world comes to mind.
    Oddly enough I got started thinking about this from an article in the times today about some terrorist instructor who taught his class how to use a suicide vest of explosives.. with a LIVE VEST FULL OF EXPLOSIVES and KILLED HIMSELF AND HIS STUDENTS !!!  That made me laugh hysterically... cause otherwise I would have to cry .. no sense getting into the crying part cause that's just too full of sad things ....
    Here's the article...
    Suicide Bomb Instructor Accidentally Kills Iraqi Pupils
    http://www.nytimes.com/2014/02/11/world/middleeast/suicide-bomb-instructor-accidentally-ki lls-iraqi-pupils.html?_r=0
    I learned to throw a grenade with 150 other new army men and the first one we threw had only the detonator inside it... kinda like a cherry bomb inside the steel casing... with a hole on top so if the dentonator went off in a grenade without real explosive in the grenade " proper " ,  the little blast would just come out the top... but the steel would remain intact...
    This was a training tool.. pull pin, let handle go flying off, count to 3, throw grenade as far as you can in an accurate manner.  A REAL grenade packs a lot of punch.. so you don't wanna have it anywhere near you when it goes off...
    After HOURS AND HOURS of hearing about how to do this simple task....150 new army men ( avg age 18 ) lined up in a field at the training camp.. and the instructors hid behind some simple barricades right behind us ( no wonder they hide ... because those 150 guys are basically MORONS ! )
    On the order to go ahead and throw the grenades.... there was ONE guy who pulled the pin and then held onto the grenade and looked at it in his hand... with about as much brain power as a very small gnat ....and let it go off IN HIS HAND !
    His hand got really numb.
    149 new army men laughed their butts off .... and the stupid army man got yelled at by the instructors too !  Not a good day for the stupid army man.
    I have more stories like that.. ( but not about war stuff or blowing things up .. some are movies stories ...." the funny things behind the scenes " )
    You have any funny ones ???

    hehe.. kind of an understatment... " that was close ".. about to get his head chopped off !
    I got 2 or 3 ski stories that I find hilarious .. and all of them are where really scary stuff happens to people but they somehow miraculously survive.. ( maybe a couple of protagonists end up going down hill courtesy of ski patrol heros ( medics ).
    I had one fall at Hunter Mountain ( on the belt parkway ) that just has to do with ME.. that might be amusing... and I call it the VARNET NIGHTMARE ...
    http://vuarnet.com/
    I was wearing these cool glasses ( polarized, yellow tint for snow contrast stuff, etc ) and my first run down in the morning was on the belt parkway, historically known for ice and horrible conditions. If the rest of the hill sucked, the parkway was sure to be the worst.  I had extremely sharp edges due to being a NY ski dope... who never saw powder in his life...
    The glasses ( which had little leather things on the side to keep out light etc from the sides ... kinda like little bat wings that conformed to my face alongside the corners of my eyes ?? ).. also had an elastic BAND that was red .. and behind my head...
    This was some sort of fad at the time.. you could take off your glasses and drop them and they would now be hanging around your neck, dangling over your chest...
    Later on this became a new fad where people would put sunglasses in their HAIR .. like perch the glasses on TOP OF YOUR HEAD... but at the time of my story I was into just letting the glasses ( which cost a ton of money ) on my chest if I wasn't wearing them on my FACE.
    Keep in mind the elastic band....this becomes a big deal to me....
    So I'm going about a gazillion miles an hour down the belt parkway on SOLID ICE most of the time.. I can see it ( am wearing the glasses ON MY FACE ) really good.. the optics are great.. I can see ahead of me just fine, can see the ice, patches of snow, all that stuff ... ).. and I know this run.. been on it many times and have seen many funny things happen on it ( people shooting off the mountain out of control and over the cliff etc .. which is another funny story )... and it cold as heck.. really COLD OUT .. my face is FROZEN...
    All of a sudden I get to this one patch of ice that grabs an edge and I'm history.. Things happen really FAST on the ice ....
    I'm wearing my fancy sunglasses...  So I see EVERYTHING up to a point....
    I am leaning forward but end up having my legs ripped out from in front of me and I do a 180 and am totally out of control... both skis have released and trail me on safety ties.. I am now looking UP THE HILL..
    MY HEAD BOUNCES ON THE ICY SLOPE and a bit of snow catches one side of my fancy glasses.. ( the leather part .. which is like a horse blinder thing )... and I am now looking UP SLOPE as my glasses, attached by a cool red elastic BAND.. leave my head and STAY ON THE SLOPE .. stretching the band tighter and tighter and tighter... so now the glasses are about 15 yards UP HILL from my head... but still attached to me via the elastic BAND.. like some giant rubber band that has my COLD FREEZING FACE on one end... and my fancy VARNET glasses on the OTHER END ...and I think ( this all happens in nanoseconds ).. OMG !
    Sure enough the glasses get released as I continue flying down hill out of control and I see .... in slow motion.. these really cool VARNET SUNGLASSES rocket toward my FROZEN FACE about about 2 gazillion MPH.... and THEY HIT MY FACE !  SMACK ! OWWWWW !

  • My entire phone got hacked and now I believe there is a cloned phone number who is texting my contacts....very bad things and I don't know what to do....get a new phone?  New number?

    Within the last few months I have gotten several snap shots of conversations from friends that showed it was my phone number but the conversation was not from me.  It was someone using my information but texting frieda, family, and some co workers very obscene things.  But the person was using completely juvenile context and I don't do that at all with my texts.  The worst part was it began becoming such a huge issue when the cloned number or whatever was texting guys stuff and I wasn't the actual person texting.  I got no responses to my phone but I had some very confused friends and even at one point my boyfriend got texts from my number when I was literally sitting next to him and my phone was on the coffee table.  Anyone have any ideas on what I need to do.  I have reset my phone, deleted everything off of it, reset passwords, I don't use location services but I am still having people getting crude messages.  It's to the point now that my very own friends don't talk to me through text or my personal email because they don't know if it is truly me.  Please help!

    Your phone is not hacked however your sim card probably IS cloned.
    YOU need to contact your Mobile Network and local police right NOW !

  • I'm using Apple Mail 2.1.3 on a MacBook running OS 10.4.11. A very strange thing is happening. E-mail messages that I either sent or received months ago are showing up in my mailbox and receivers' mailboxes. Help!

    I'm using Apple Mail 2.1.3 on a MacBook running OS 10.4.11. A very strange thing is happening. E-mail messages that I either sent or received months ago are showing up in my mailbox and receivers' mailboxes. In one case, a message someone had sent to me wound up in the mailbox of a third person, who was not included in the address list!!  I have only two accounts, and have checked everything; only one account is showing the repeats Now, that account is my professional account, and it resides in three places: I use it on the laptop described here, I use it through Apple Mail on the much newer desktop Mac in my office, and I can run it through Web mail on my employer's server, which is where the professional account resides (I have a mailbox there, etc.) That program is called Zimbra.
    My personal account is with Earthlink and is not doing the repeats. I access it either through my MacBook's Apple Mail or the Web; the Apple Mail on my office Mac is not configured to access the Earthlink server.
    What IS going on here?? My friends, colleagues, and students (I teach college) are mystified by these ancient messages.
    Thanks for any help!!

    I'm using Apple Mail 2.1.3 on a MacBook running OS 10.4.11. A very strange thing is happening. E-mail messages that I either sent or received months ago are showing up in my mailbox and receivers' mailboxes. In one case, a message someone had sent to me wound up in the mailbox of a third person, who was not included in the address list!!  I have only two accounts, and have checked everything; only one account is showing the repeats Now, that account is my professional account, and it resides in three places: I use it on the laptop described here, I use it through Apple Mail on the much newer desktop Mac in my office, and I can run it through Web mail on my employer's server, which is where the professional account resides (I have a mailbox there, etc.) That program is called Zimbra.
    My personal account is with Earthlink and is not doing the repeats. I access it either through my MacBook's Apple Mail or the Web; the Apple Mail on my office Mac is not configured to access the Earthlink server.
    What IS going on here?? My friends, colleagues, and students (I teach college) are mystified by these ancient messages.
    Thanks for any help!!

  • Very strange thing happening

    I developed a spreadsheet today and had a very strange thing happen while I was working in Numbers.
    Every minute or so Stuffit Expander would open and expand a file and place it on my computer. It started out as a quick flash on the screen and would be gone in an instant. I saw that it was being made by Stuffit so I opened up Stuffit and went into Prefs and told Stuffit to ask before expanding the file. This, then, stopped the process so I could see what was going on.
    A folder was make called "[file name].numbersFolder"
    Inside the folder are two files called: "buildVersionHistory.plist" and "index.xml". Along with these files is a "QuickLook" folder that has a thumbnail of the spreadsheet I am working on inside.
    The xml file is large and has several URL's embedded including the Apple developer site (http://developer.apple.com/namespaces/sfa).
    Can anyone tell me what is going on here.
    Looks fishy to me!

    If I recall, this is StuffIt expanding what it thinks is a ZIP file. It is correct, in a way, but you don't want it to do that. I do not have StuffIt so I do not know what settings it has. Hopefully it has one along the lines of "automatically unzip zip files" and you can turn it off.

  • Very funny problem, with Swing, please tell me WHY

    Hi, guys ,
    It seems very funny to me when developog a chat application.
    when every time, user enter the text and hit the Enter (through a listener), the text shows up at the screen, and if more texts than the screen, the screen will always focus at the bottom line.
    Hwoever, if you do the same but not via a actionPerformed method,(i.e. a for loop in the main metho) the screen will always focus on the first line of the jTextPane.
    have a try:
    this code will make the focus on the first line, but if you uncomment the thing in the actionPerformed method, and comment one in the main method, if will be totally different
    Please tell me WHY
    import javax.swing.event.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.text.*;
    public class Pane extends JFrame {
    JTextPane txtOutput ;
    StyledDocument document;
    Style normalStyle;
    JTextField jf;
    public Pane()
    Container cont = getContentPane();
    cont.setLayout(new BorderLayout());
    txtOutput = new JTextPane();
    jf = new JTextField(80);
    document = txtOutput.getStyledDocument();
    // Define style for outputStyle
    normalStyle = document.addStyle("Normal", null);
    StyleConstants.setItalic(normalStyle, false);
    StyleConstants.setFontFamily(normalStyle, "Courier");
    StyleConstants.setFontSize(normalStyle, 14);
    StyleConstants.setForeground(normalStyle, Color.red);
    // Now to insert string at end
    txtOutput.setEditable(false);
    cont.add(new JScrollPane(txtOutput),BorderLayout.CENTER);
    cont.add(jf,BorderLayout.SOUTH);
    cont.setVisible(true);
    cont.setBounds(100,300,400,500);
    jf.addActionListener(
    new ActionListener() {
    public void actionPerformed (ActionEvent event)
    //int i = 50;
    //while(i>0){
    //setText1("gegegeg");
    //i--;
    public void setText1(String event) {
    String s= event;
    //s = jf.getText();
    try{
    document.insertString(document.getLength(), s+"\n\n" , normalStyle );
    catch (Exception e) {
    System.out.println("askdf "+e);
    public static void main(String args[])
    Pane p = new Pane();
    p.show();
    System.out.println("I am finish");
    int i = 50;
    while(i>0){
    setText1("gegegeg");
    i--;
    }

    I dunno why, why is it important? if you want it to focus on the last line, just always put a code that makes it focus on the last line, and that's it

  • I have my ipad notes linked to gmail and suddenly disappeared when I put the sim card into a new iphone, the funny thing is that almost all disappeared except 4 and with different dates up to two years. Why did this happen? No way to recover them?

    I have my ipad notes linked to gmail and suddenly disappeared when I put the sim card into a new iphone, the funny thing is that almost all disappeared except 4 and with different dates up to two years. Why did this happen? No way to recover them?

    Wow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum.  Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is.  Apple is not here.  It's users, like you. 
    If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off.

  • Projects doing very weird things

    This has really been driving me nuts.
    I'm on Mac 10.8.5. Just recently updated to CC 2014 v8.
    I've been working on several projects lately, and very weird things are happening every time I open a project. Usually when you save and exit a project, when you reopen it, it will open to the same sequence you were last working on, but for some reason every time I open it will load a random sequence I hadn't worked on in a long time. Sometimes when I open, the project will load slowly indexing and conforming and generating peak files. After it thinking for 5 minutes, I go to play my sequence that was fine yesterday and now some audio tracks that are still in the timeline no longer contain any audio. When I match frame, the audio clip appears in source, but has no waveform and will not play any audio. Some audio tracks do not have waveforms but DO play audio, and when I match frame on those, the clip comes up and plays audio but shows no waveform.
    Restarted computer and now all the audio loads fine, but thumbnails for all video aren't showing.
    The other day I had a similar situation with VIDEO. Clips were randomly "pending" or "offline" and I would 'link' them, but it would remain offline or pending. Eventually it fixed itself somehow.
    I'm having a hell of a time here. This is really holding me back from my work. I'm not really sure how to troubleshoot this as it is different everytime.
    I'm working from an external harddrive that is brand new, and shouldn't be having any permissions issues...
    Any insight would be appreciated!

    Some trouble shooting:
    Open Premiere while holding down shift+alt until welcome screen then
    Clear out Media Cache database and remove remaining files in that folder manually.
    See if that will help.

  • Funny thing with my ZE

    I just bought a new Zen V. After working a couple of hours to recognize it to my PC, I observed a funny thing when I plugged it to my PC. When I plug it for rechargeing, Zen V keeps turning on and off every 0-5 secs. Anyone have a clue about what's going on or have solution?

    Anyone?

  • A funny thing happened on the way to becoming a Mac owner...

    I won't bore you with more PC user gone Mac (which I am) questions. I would like to thank all of you that have unknowingly provided me with a wealth of information about the Mac world.
    A funny thing happened - I began enjoying sitting in front of a computer screen again (after 15 years in the IT industry). I bought this machine with full intentions of installing boot camp to give me the flexibility of running some of my Windows software and games - I can't bring myself to do it. I resolved myself to stick with the software and games that are available for the Mac, and see where that leads me.
    Obviously the new romance will wear off and I may yet have to revisit the boot camp solution. However, I would truly like to thank Apple and this community for bringing a smile to my face and reminding me that owning a PC doesn't always have to be about racing to the next best piece of hardware or searching for 3rd-party drivers to make peripherals work correctly.
    Thank you all, and I look forward to many years entrenched in the Mac world.
    iMac 24" Core 2 Duo   Mac OS X (10.4.8)   2gb Ram, 7600GT

    Oh, you sound a bit like me. My shiny new iMac is on it's way. Had never even touched one until a couple of weeks ago (after many months of shopping and looking for ways to have a new machine and NOT Vista). Went to an Apple store and am Mac-smitten.
    I recently invested a bunch on some Office 2007 programs, and thought I just HAD to get Parallels and XP installed, but you know what? The more I think about it, the more I think I want to just let my Mac be a Mac!!!
    So I'll just continue using the older laptop with the Office stuff for my business and give myself time to explore the Mac world. Even bought it it's own little computer desk. Sooner or later I'll be "all Mac" and make somebody happy at Christmas with the Office software (can't convert 'em all to Mac all at once).
    Intel iMac 20"   Mac OS X (10.4.9)  

  • A very strange thing . . .

    Hi all,
    A very strange thing just happened. One track in a project, which has several regions, just stopped playing back! All other tracks play fine. Even the track that stopped playing back, when selected, is still active, i. e., my midi controller still plays the software instrument associated with the track. All of the info is still there; I can see it all in the piano roll, the score . . . everything.
    One clue, which I'm not sure how to describe, is that in the problem track, all of the regions have changed color and now have a little dot in their upper left corner. So, the regions which were all green, the default color, are now gray and green, but have the little dot at the top left.
    Oh, this happened by accident while I was recording on that track. I was attempting to record a new region between two other regions, then suddenly this happened!!
    Anybody know what's going on here?
    Thanks, Joseph

    thanks for the gray tracks thing. I have worked with Performer since 1985. I am having the hardest time simply getting around on logic express. Copying, pasting, setting regions. I record and sometimes it doesn't erase the previous info. I paste a track and it goes to another track. How do I erase measures on one track? Sorry for the lack of clarity in this question but the manual has been hard to understand. COuld I call you? I know the answers are easy. I don't see the logic in logic. Any help would be appreciated. [email protected]
    fritzkersting.com

  • Very strange thing after 10.7.3 update?

    Very strange thing after 10.7.3 update?
    Everything seems to be working normal except the desk top BBC iPlayer which plays fine in a small window but when you go to full screen still plays the sound but the screen just goes black, no video?
    I thought maybe the update knocked off one of the plugins or players but reinstalled iPlayer and same problem, anyone got a workaround or suggestion as to how I can fix it, am I the only one?
    Full screen YouTube works fine.
    Everything else seems ok, maybe running a little hotter and the fans are kicking in a little sooner but does feel a little snappier.
    Thanks
    Phil

    Seems like they are on it
    http://iplayerhelp.external.bbc.co.uk/help/announcements/full_screen_mac_desktop
    I hope it doesnt take too long

  • Date popup behaving very funny

    I have a PLSQL returning SQL which returns a multi row rwport. The query is like this.....
    SELECT
    HTMLDB_ITEM.TEXT(1,EMP_NO,'7','','readOnly = "true"') EMP_NO,
    HTMLDB_ITEM.TEXT(2,EMP_NAME,'35') EMP_NAME,
    WWV_FLOW_ITEM.DATE_POPUP(3,NULL,DOB) DOB etc etc
    But when I try to use the date popup for changing the date, it doesnt put the date in the corresponding cell, but in some other cell (of the same column). I dont find any logic in which it is doing it. It looks very funny! Please help me out.

    Sure Sergio,
    The query goes like this:
    DECLARE
    q VARCHAR2(32767):= NULL;
    BEGIN
    q := ' SELECT
    HTMLDB_ITEM.TEXT(1,EMP_NO,''7'','''',''readOnly = "true"'') EMP_NO,
    HTMLDB_ITEM.TEXT(2,EMP_NAME,''35'') EMP_NAME,
    WWV_FLOW_ITEM.DATE_POPUP(3,NULL,DOB) DOB,
    HTMLDB_ITEM.SELECT_LIST_FROM_QUERY(4,DEGREE_1,''SELECT LOOKUP_VALUE FROM LOOKUPS WHERE LOOKUP_ID =''''DEGREE'''''','''',''YES'','''','''') DEGREE_1,
    HTMLDB_ITEM.TEXT(5,YOP_1,''15'') YOP_1,
    HTMLDB_ITEM.SELECT_LIST_FROM_QUERY(6,DEGREE_2,''SELECT LOOKUP_VALUE FROM LOOKUPS WHERE LOOKUP_ID =''''DEGREE'''''','''',''YES'','''','''') DEGREE_2,
    HTMLDB_ITEM.TEXT(7,YOP_2,''15'') YOP_2,
    HTMLDB_ITEM.SELECT_LIST_FROM_QUERY(8,DEGREE_3,''SELECT LOOKUP_VALUE FROM LOOKUPS WHERE LOOKUP_ID =''''DEGREE'''''','''',''YES'','''','''') DEGREE_3,
    HTMLDB_ITEM.TEXT(9,YOP_3,''15'') YOP_3
    FROM EMP_REG WHERE 1=1';
    IF :P1_RES_CNL <> 'ALL' THEN
    q := q || ' AND RES_CNL = :P1_RES_CNL';
    END IF;
    IF :P1_RES_SRC <> 'ALL' THEN
    q := q || ' AND RES_SRC = :P1_RES_SRC';
    END IF;
    RETURN q;
    END;
    Its a PLSQL returning SQL region. I have not used any order by clauses. Nor have I specified the report to be sorted using any columns in the Report Attributes.
    Thanks
    Anand

  • Iphone power block doing funny things to iphone 4

    Bought one today and when i plug it in my iphone says its fully charged but sits at 65% and also makes my iphone 4 do funny things like screens jumping around when not touched and delayed screen presses.

     How to test your iSight to ensure it is functional

Maybe you are looking for

  • Is there any documentation on how to nest IF or IFThen in Fin Reports

    I'm trying to nest now but can't find any documentation on the proper syntax. Here is my logic. I'm in column D in my grid. IF C < 0 and B = 0 then -1 ELSEIF C = 0 then 0 ELSEIF B < 0 then ( C / B ) * -1 ELSE C / B Can you help? I'm stumped and on de

  • Why, when I launch Numbers, is the last-used spreadsheet automatically opened?

    When I open Number, either by using the dock, by clicking the application icon or clicking a Numbers document, teh last document I used is always opened. Why is this? How do I prevent it? Thanks

  • Songs inside disappeared and the iPod won't appear on iTunes & Windows!

    Well, the iPod started showing this icon with a folder and an exclamation mark, so I reset it a few times. Prior to that, some of the songs didn't play properly. This hasn't happened before though. So I connected it to the computer and reset it but n

  • IPTComm 2007 Call for Participation

    Please find enclosed the Call for Participation for a new conference devoted to IP telecommunications to be held in New York, July 2007. You are encouraged to circulate this message to interested colleagues, mailing lists, forums and blogs. Greg Bond

  • Which "diagnostics.wadcfg" is used ?

    I am learning to configure diagnostics in microsoft azure. In order to configure the diagnostics we can use visual studio as suggested in this MSDN article. And whatever changes we do all gets saved to the "diagnostics.wadcfg" file present under role