CommandButton does not do anything

When Login is clicked, no action takes place...
Environment: JSP TOMCAT 5.5.4
JSF: 1.1_01
index.jsp looks like this
===
<html>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>
<head>
<title> Log In </title>
</head>
<body>
<h3>Please enter your name and password.</h3>
<table>
<tr>
<td>Id:</td>
<td>
<h:inputText value="#{login.id}"/>
</td>
</tr>
<tr>
<td>Pwd:</td>
<td>
<h:inputSecret value="#{login.pwd}"/>
</td>
</tr>
<tr>
<td>Usertype:</td>
<td>
<h:inputText value="#{login.userType}"/>
</td>
</tr>
</table>
<p>
<h:commandButton value="LogIn" action="success" />
</p>
</body>
</f:view>
</html>
=========
face config file looks like this
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<navigation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/test.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>login</managed-bean-name>
<managed-bean-class>webservice.LoginBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>
=========
and LoginBean implements Serializable interface and have all associated get & set methods.
I do not understand why nothing happens...
If anyone can help me with this, it will be greatly appreciated.

You didn't post the LoginBean.java, but without seeing it I would have to recommend that you check your property types. The easiest way to tell if you are missing validation is to add messages. They will tell you if validation has failed and for what field. Check out the following alternative:
<html>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>
<head>
<title> Log In </title>
</head>
<body>
<h3>Please enter your name and password.</h3>
<table>
<tr>
<td>Id:</td>
<td><h:inputText id="id" value="#{login.id}"/></td>
<td><h:message for="id"/></td>
</tr>
<tr>
<td>Pwd:</td>
<td><h:inputSecret id="pwd" value="#{login.pwd}"/></td>
<td><h:message for="pwd"/></td>
</tr>
<tr>
<td>Usertype:</td>
<td><h:inputText id="type" value="#{login.userType}"/></td>
<td><h:message for="type"/></td>
</tr>
</table>
<p>
<h:commandButton value="LogIn" action="success" />
</p>
</body>
</f:view>
</html>Hope that helps...
Tom

Similar Messages

  • JSF 1.2 - commandbutton does not do anything

    Hello,
    My Problem is, that i want to call the methods addBohr1 and addBohr2 of the artikel bean, but neither of the 2 commandbutton calls the method.
    As well eclipse even offers me to autocomplete the methods in the action field.
    By the way the commandbutton to login (account.login) works...
    Any ideas?
    JSF-Site:
    <f:view>
        <h:form style="margin: 80 px;">
            <h:panelGrid columns="3" border="1"
                style="width: 1000px; border-left-color: Blue; border-top-color: Blue; border-right-color: Blue; border-bottom-color: Blue; border-bottom-width: thin; border-right-width: thin; border-left-width: thin; border-top-width: thin">
                <h:graphicImage id="header_logo" url="images/werkzeug.jpg"
                    style="height: 164px; width: 178px" />
                    <h1 align="center">Startseite</h1>
                <h:panelGroup>
                    <h:panelGrid columns="2" styleClass="borderTable"
                        headerClass="panelHeading" style="width: 156px; height: 149px">
                        <f:facet name="header">
                            <h:outputText value="Anmeldung zum WebShop"
                                style="background-color: #0000A0; color: White" />
                        </f:facet>
                        <h:outputLabel for="Kundennummer" value="Loginname:" />
                        <h:inputText id="Kundennummer" value="#{account.name}"
                            required="true" style="width: 126px" />
                        <h:outputLabel for="Passwort" value="Passwort:" />
                        <h:inputSecret id="Passwort" value="#{account.pass}"
                            required="true" style="width: 125px" />
                        <h:commandButton action="#{account.login}" value="Anmelden"
                            style="color: #FFFFFF; background-color: #0000A0" />
                        <h:outputText value="#{account.eingeloggt}"></h:outputText>
                    </h:panelGrid>
                    <f:verbatim>
                        <a href="persoenlicheDaten.jsf">Registrieren?</a>
                    </f:verbatim>
                </h:panelGroup>
                <h:panelGroup>
              <h:panelGrid columns="2">
                   <h:graphicImage id="side_bar" url="images/bg_blue.png"
                             style="height: 400px; width: 18px" />
                             <h:panelGrid border="0" columns="1" style="width: 68px; height: 200px; color: #FFFFFF; background-color: White;">
                                  <a href="startseite.jsf">Seite1</a>
                                  <a href="startm.jsf">Seite2</a>
                        </h:panelGrid>
              </h:panelGrid>
         </h:panelGroup>
                <h:panelGroup>
                        <h2 align="center" style="height: 43px; width: 666px">Ansicht</h2>
                        <h:panelGrid columns="2" style="width: 703px; height: 386px">
                            <h:panelGrid>
                            <h:outputLabel for="bohr1" value="Test"></h:outputLabel>
                            <h:graphicImage id="bohr1" url="images/Saege/test.jpg"
                                style="width : 199px; height : 140px;" />
                            <h:commandButton action="#{artikel.addBohr1}" value="TEST" style="color: White; background-color: #0000A0"></h:commandButton>
                            </h:panelGrid>
                            <h:panelGrid>
                            <h:outputLabel for="bohr2" value="Test"></h:outputLabel>
                            <h:graphicImage id="bohr2" url="images/Saege/test.jpg"
                                style="height: 140px; width : 199px;" />
                            <h:commandButton action="#{artikel.addBohr2}" value="TEST" style="color: White; background-color: #0000A0"></h:commandButton>
                            </h:panelGrid>
                        </h:panelGrid>
                </h:panelGroup>
                <h:panelGroup>
                    <h:outputText value="Warenkorb" style="color: White; background-color: #0000A0">
                           </h:outputText>
                    <h:panelGrid columns="1" style="width: 180px">
                    <h:outputText value="#{artikel.result}"></h:outputText>
                        <a href="checkout.jsf">Weiter zum Checkout</a>
                    </h:panelGrid>
                </h:panelGroup>
            </h:panelGrid>
        </h:form>
    </f:view>Method of the Bean:
        public String addBohr1() {
            System.out.println("TEST");
            return "access";
        }Faces-Config:
         <managed-bean>
              <managed-bean-name>artikel</managed-bean-name>
              <managed-bean-class>handler.ArtikelHandler</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>Console:
    05.05.2010 20:33:02 org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: ...
    05.05.2010 20:33:02 org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    05.05.2010 20:33:02 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 432 ms
    05.05.2010 20:33:02 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    05.05.2010 20:33:02 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
    log4j:WARN No appenders could be found for logger (org.apache.myfaces.webapp.StartupServletContextListener).
    log4j:WARN Please initialize the log4j system properly.
    05.05.2010 20:33:03 org.apache.catalina.core.StandardContext addApplicationListener
    INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
    05.05.2010 20:33:03 org.apache.catalina.core.StandardContext addApplicationListener
    INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
    05.05.2010 20:33:04 org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    05.05.2010 20:33:04 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    05.05.2010 20:33:04 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/31  config=null
    05.05.2010 20:33:04 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2285 ms
    05.05.2010 20:33:07 org.apache.catalina.core.ApplicationContext log
    INFO: No state saving method defined, assuming default server state savingSorry for my bad English, but I'm not a native speaker ;)

    Do you have a navigation rule in your faces-config.xml?
    Somehow the applicationserver needs to determine which page to display now....a navigation-rule in faces-config.xml will telle this to applicationserver.

  • IPhone black screen does not show anything, but I can hear that the device works. I hear the lock open the screen and hear the iPod but the screen remains black

    IPhone black screen does not show anything, but I can hear that the device works. I hear the lock open the screen and hear the iPod but the screen remains black!!

    It's happened to me before as well. Try holding both lock(top right) and home buttons simultaneously until u see a slight flash of wight then just reboot it normally. If that doesn't work try restoring your device from itunes

  • I have my iphone activated and working since 3days, i purchased it from ebay with 1year warranty, when i check the serial number from Apple store at Bangalore Forum mall, they say that it does not show anything and 'OUT OF WARRANTY'.

    I have my iphone4 activated and working since 3days, i purchased it from ebay with 1year warranty, when i check the serial number from Apple store at Bangalore Forum mall, they say that it does not show anything and 'OUT OF WARRANTY'.
    Now i have a problem in it, all icons just shake and system hangs, needs restarting.

    You need to go back to the person you bought it from. Sounds like they may have sold you phone that is not as described.
    Did you check the warranty status before purchasing it?

  • The "Awesome Bar" is not working. It does not recall anything from the Bookmarks

    Just updated to new Firefox. In the past, when I would start to type a site in the address bar firefox would complete it as it was already in my bookmarks. But now it does not do anything. It just sits there waiting for me to complete the address. I could start to type Netf and it automatically finish Netflix.com
    Why is this happening. Also, for the first couple days of the new version I had to go back into Tools, Options and reset things at least 3 or 4 times before they would finally stay the way I wanted them.
    I would tell it Never Remember History and after while I would look and it would say, Remember History. I wanted a Blank Start page, and it kept changing it. It's okay now but the Awesome Bar is not working at all.

    Do your bookmarks show up in the auto-suggest drop-down list?
    ''If not:'' Under Options > Privacy, in the bottom section, does it still show that Firefox should suggest Bookmarks in the Location bar?
    If auto-suggest works but the autofill isn't happening, you could double-check that it has not been disabled here:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''autof''' and pause while the list is filtered
    (3) If the '''browser.urlbar.autoFill''' preference is bold and "user set" to false, double-click it to switch its value back to the default value of true. That should work in new tabs.
    It's it already true, hmm, I wonder whether this is a private browsing issue? (I didn't test with automatic private browsing.)

  • Whenever I open the editor in Photoshop Elements 12 it does not work. When I try to click open in the application it does not do anything. None of the buttons work. When I open a photo using file at the top it opens but I cannot edit it or use any of the

    Whenever I open the editor in Photoshop Elements 12 it does not work. When I try to click open in the application it does not do anything. None of the buttons work. When I open a photo using file at the top it opens but I cannot edit it or use any of the features on the left side.

    Hi Nealeh
    Thanks i think I got it working of a fashion.
    Except the replace colour, does not seem to end up with the colour I picked using the picker tool. Its as though it hads not replaced the colour but blended in the desired colour with the old incorrect colour!
    Buy trial and error picking not the right colour but close - which when mixed with the existing colour is close.
    Sorry I can't post the pictures as the Lingerie Mfg, has me under non disclosure.
    The scenario is:-  say a blonded mainly tanned model a high cut [at the hips] corsette style basque, with an ultra low bra line.
    Our dear model, has just come back from St Barts with a fabulous Tan, and equally striking bold Tan lines!.
    So we have great tanned legs, then the 'porcelain white band' where her swimsuit was.
    Likewise we have a tanned face, and arms, shoulders etc and a great tan on the top of the cleavage, then it stops, white band to the top of the ultralow cut bra line of the basque.
    She must have lived in like the most conservative bikini on the planet [50's style], for 2 weeks!
    Had she had a normal skimpy bikini on, no problem!
    If i don't solve it, she will get fired!
    Not a lack of interest in your post, but I was out, and tried to log in to this site; which I could do, on my iPad Air / 5 [whatever its the new one]. And tried to 'sign in' - but it just hung at the
    "Join Adobe Community" adobe sign in splash screen! with he little whell spinning around continuously!!!
    I have Safari on this iPad. Guess that is all it runs.
    So technology is not my friend today!

  • Does anybody know why my ipod touch 3rd generations screen does not show anything? The screen is all black, when I try to synchronise my ipod to my library it comes up with a message saying "iTunes could not back up the ipod because a session could not be

    Does anybody know why my ipod touch 3rd generations screen does not show anything? The screen is all black constantly. When I try to synchronise my ipod with my iTunes library it comes up with a message saying " iTunes could not back up the ipod because a session could not be started with the ipod. Please help and reply if you know an answer!!!

    Try this previous discusssion:
    https://discussions.apple.com/message/12518406#12518406

  • I just purchased Export PDF to Excel and it does not export anything usable. Your terminology should not be "export" but paste image, which is of no value. Please cancel my account and refund my money. What a shame you would advertise this as a product.

    I just purchased Export PDF to Excel and it does not export anything usable. Your terminology should not be "export" but paste image, which is of no value. Please cancel my account and refund my money. What a shame you would advertise this as a product.

    Hi pgrillo,
    I'm sorry that you're disappointed with your ExportPDF subscription. I checked your account, and see that the order is still processing. As such, I'm unable to cancel it for you myself. However, a Customer Care agent can take care of your cancelation/refund quickly. Here is the contact information: Contact Customer Care. Click Still Need Help? Contact Us at the bottom of the page to find both phone and chat support options.
    Best,
    Sara

  • Calling a method in a signed applet from JavaScript does not do anything. Same functionality works in IE, Safari and Chrome. Is this a limitation of the JavaScript implementation?

    It does not seem that the JavaScript engine in FF 4 is allowing me to call inside a signed Java applet. When calling the script the browser does not do anything. The same functionality works in IE, Safari, Chrome.

    It does not seem that the JavaScript engine in FF 4 is allowing me to call inside a signed Java applet. When calling the script the browser does not do anything. The same functionality works in IE, Safari, Chrome.

  • When I click a link only an empty page opens, now the link does not open anything at all

    when I click a link only an empty page opens, now the link does not open anything at all

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • IPhone 4 does not detect anything on Bluetooth

    My iPhone 4 has appearantly a glitch in hardware...??? I turn on bluetooth and it can search for devices till the battery runs out and that's it. I don't think that this is a software error, as there are plenty of iP4's amongst my friends who don't experience this error with the same iOS version as I have.
    ANything I can do about it, or I just have to return it to my seller and ask for repairs?
    Tnx
    Lauris

    I can't pair it with anything, cause it just does not detect anything. Try to imagine... You go to settings--->bluetooth--->turn it ON and that is it! It starts the search and never finishes... The phone can search till the battery dies, but nothing. And I know that a friends iPhone can connect ot my cars bluetooth, but mine does not even find it. Finds nothing... NO apple gadgets, no other gadgets... It would be a success if it would find something and then the pairing would be a different issues, but if the search for a device never stops (not even to show that the iPhone can't find anything)...then I'm confused... and dissapointed..

  • ItemRenderer in a datagrid column   setStyle() does not do anything to the appearance

    I have a custom ItemRenderer in a datagrid column, however
    the setStyle() does not do anything to the appearance. when it is
    called. Any ideas?
    <mx:DataGridColumn dataField="area" width="50"
    headerText="Area">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Text>
    <mx:Script>
    <![CDATA[
    override public function set data( value:Object ) : void {
    super.data = value;
    setStyle("Color",0xff0000);
    if(data.area == 'G'){
    setStyle("backgroundColor",0xff0000);
    }else{
    setStyle("backgroundColor",0xff0000);
    ]]>
    </mx:Script>
    </mx:Text>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>

    Your renderer code looks a little strange. This works, and
    may get you started:

  • IPad syncing stays on step 5 of 5 "waiting for items to copy" but does not copy anything...  should I restore the iPad?

    iPad syncing stays on step 5 of 5 “waiting for items to copy” but does not copy anything...  should I restore the iPad?

    Hey, I was having the same problem,, i just got mine to work. Take off everything but your apps (meaning take off pictures, music, ringtones, movies, tv shows, etc just leave on the apps) Then go up to the top and go to Store and turn off Genius. Restore your iPhone (It'll ask you to back up, click yes.) Restore from back up, Let your apps come back then when those are done add each category one by one. (i.e. click Photos -> Sync Photos and let them finish, then click something else like music) Hope this helps!

  • Blank Disc in drive did not register as being in the drive and so I can not eject it even the ^ button does not do anything.

    Blank Disc in drive did not register as being in the drive and so I can not eject it and even the ^ button does not do anything.

    CD/DVD - Eject Stuck
    CD/DVD - Eject Stuck (2)
    CD/DVD - Eject Stuck (3)
    CD/DVD - Eject Stuck (4)
    CD/DVD - Eject Stuck (5)

  • Soundcheck on itouch 4gen does not do anything

    Soundcheck on my itouch 4gen does not do anything and if it is, it is not enough or doing it correctly. the only time that i can get it to work properly is if i turn it off and then back on while listining to a song.   it is turned on in itunes and on ipod but it does not seem to affect all the songs or does not affect them enough.   any help or suggestions would be much appreciated.
    thanks

    Sound check has limits on how much it can do and that sepends to a large degree on how loud or quiver the rest of your library is.
    You can change the volume of the track in iTunes. Do a Get Info... On the track and go to the Options tab. Adjust the volume slider there.

Maybe you are looking for

  • Upgraded Adobe LR 4.1, CS6 Beta & got the Canon 5D Mark III, WHEN is next dot release Camera Raw?

    I Purchased the Upgraded Adobe LR 4.1, CS6 Beta & got the Canon 5D Mark III, Mac Pro server update to Lion, WHEN is next dot release Camera Raw? My workflow has trippled in time because of this issue. I'm so frustrated with having to convert images i

  • Problem when switching over to a Logical Standby - RESOLVED

    I used GRID to create a logical standby. The primary and standby servers have the same OS's and are both 64-bit. I am using Oracle 10gR3 on both, and the same patches have been applied to both servers. Prior to doing the switchover, I queried switcho

  • Netflix won't stay in Fullscreen

    Hi i need help! I am so annoyed with silverlight/netflix. It won't allow me to add netflix as a permission. It never comes up as an option when it kicks me off of fullscreen after a few minutes. Is there any way to fix this or am I doomed? I hear thi

  • Very Urgent!...regarding selection criterion in Info Packages

    Hi all,      This is very urgent requirement for the project now. Is there any way to indicate a field in selection criterion of a IP as blank. Like if I want to select all the records which have a field 0WBS_element as blank from one ODS into anothe

  • Purchase requisition approvers list

    Hi Gurus, Can you please suggest how to take the report for purchase requisition approver list for particular company code reference. Best regards Rajesh Kumar