1 Reply Latest reply on Jan 6, 2010 5:58 AM by nschweig

    Button not triggered in IE7

    nschweig

      Hi,

       

      I created a little JSF application. it works without problems in firefox but not in the internet explorer (7).

      Nothing happens if I press a button. I never saw that strange behaviour before, any ideas?

      Here is the code.

       

      <!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">
      <head>
          <base href="#{facesContext.externalContext.request.scheme}:#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.requestContextPath}/" />
          <link rel="stylesheet" type="text/css" href="webshop.css" />
          <title>
              <h:outputText value="Seitentitel" />
          </title>
      </head>
      <body>
      <h1>Webshop Login</h1>

      <h:form>           
          Benutzername:
          <h:inputText value="#{loginBean.enteredUserName}">
              <f:validateLength minimum="4" />
          </h:inputText>
          <br />

          Passwort:
          <h:inputSecret value="#{loginBean.enteredPassWord}" id="pw" required="true" />
          <h:message for="pw" />
          <br />
          <br />
          <h:commandButton id="submit" action="#{loginBean.login}" value="Einloggen" />
      </h:form>


      </body>
      </html>

       

      Thank you very much for your help!

      NSchweig

        • 1. Re: Button not triggered in IE7, base-tag
          nschweig

          Hi,

           

          arrg it is always the same - the moment I post it I find the solution...

          if i delete

          <base href="#{facesContext.externalContext.request.scheme}:#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.requestContextPath}/" />

          it works.... but the thing I don´t understand is that I got this in another application and it works.


          I need it to get access to my resources in a relative way.

          Is there another way to do this, a better way?

           

          Thanks

          NSchweig