Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 69406 invoked from network); 28 Apr 2006 20:02:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Apr 2006 20:02:28 -0000 Received: (qmail 43249 invoked by uid 500); 28 Apr 2006 20:02:25 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 42876 invoked by uid 500); 28 Apr 2006 20:02:24 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 42850 invoked by uid 99); 28 Apr 2006 20:02:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 13:02:24 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of dcypher67@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO uproxy.gmail.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 13:02:22 -0700 Received: by uproxy.gmail.com with SMTP id j3so1774124ugf for ; Fri, 28 Apr 2006 13:02:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ZTXzIE0Qi4Lq/OewFVHMKSJ/O0JnYuO2T9187eNHCnqB4Mj67/c/gqFkIDjd2qtfCy6gM4udkFVQyp2u4zpEg8RcRWeUpSNVPC3UmNOsAxWL27xWYJ0p9sIYEta/WPhCIPjYYfMuTRqwDgQ8L2HxaoNKhxKm89MH3yGntklOdQk= Received: by 10.78.45.13 with SMTP id s13mr215869hus; Fri, 28 Apr 2006 13:02:01 -0700 (PDT) Received: by 10.78.57.19 with HTTP; Fri, 28 Apr 2006 13:02:01 -0700 (PDT) Message-ID: <54e234710604281302o7205c250v751692499f78b6b5@mail.gmail.com> Date: Fri, 28 Apr 2006 15:02:01 -0500 From: CD To: "MyFaces Discussion" Subject: Re: Problem wit textfield and commandButton In-Reply-To: <4ec2b8950604281243tefd3fb4w71d60f0837e3156c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3611_9946321.1146254521546" References: <4ec2b8950604281235p7df18cb8h106ef760aef4137b@mail.gmail.com> <54e234710604281238w15379065sf84924a9dd0f7472@mail.gmail.com> <4ec2b8950604281243tefd3fb4w71d60f0837e3156c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_3611_9946321.1146254521546 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline A few questions: 1. Since you only mention the "mainSearchButton", am I correct in assuming that this is the only button giving causing an issue? 2. What happens if you remove the "selone_menu_panelSearch" from the page? Does it work then? On 4/28/06, Hans Sowa wrote: > > Thanks for the answer. > > Here is the code. The commandButton with the id "mainSearchButton" has th= e > problem. If I click on the button with the mouse then the method is calle= d. > > > >
> > labels.suchMainMessage}" /> > >
>
>
> > >
>
>
> >
>
> search.aktuellesSuchAttribut}"> > search.moeglicheSuchAttribute}" /> > > /> > value=3D"#{labels.suche}" actionListener=3D"#{search.suche}" /> > search.inLetzterSuche}"> > >
>
> search.letzteSuche}"> > labels.inLetztemErgebnis}:" /> > >
> >
>
> value=3D"#{ labels.zurueck}" actionListener=3D"#{search.alteSuche}" > rendered=3D"#{search.alteSuche}" /> > >
>
> styleClass=3D"fehlermeldung" /> > search.inLetzterSuche}"> > >
>
> labels.gefunden}: #{search.anzahlSucheGefundene}" /> >
> >
>
> id=3D"selone_menu_panelSearch" value=3D"#{search.aktuellerStack}" onchang= e=3D" > document.forms ['mainSearch:mainSearchForm'].submit();"> > id=3D"selItemsStackSearch" value=3D"#{search.moeglicheStacks}" /> > > selectedPanel=3D"#{search.aktuellerStack}"> > > <%@include file=3D"searchListe.js= p > "%> > > > <%@include file=3D"searchTree.jsp= "%> > > > <%@include file=3D" > searchTreeServer.jsp"%> > > > id=3D"goSelektionSearchMain6" value=3D"#{labels.geheSelektion}" action=3D= "#{ > search.goSelektion}" /> >
>
> > > On 4/28/06, CD wrote: > > > > Can you post sample code here? > > > > > > On 4/28/06, Hans Sowa wrote: > > > > > > Hi > > > > > > I have following situation. I klick on a textfield, write a text and > > > press enter. What happend is that in Netscape Navigator the event beh= ind the > > > commandButton calls my method. Great. But on Internet Explorer the ev= ent > > > doesn't call my method. But on another side a similar combination wor= ks also > > > for Internet Explorer. I can't find a difference. > > > > > > Maybe someone has a similar problem and has an idea? > > > > > > Thanks in advance. > > > > > > -- > > > mfg Hans Sowa > > > mailto:hanssowa@gmail.com > > > > > > > > > > -- > mfg Hans Sowa > mailto:hanssowa@gmail.com > ------=_Part_3611_9946321.1146254521546 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
A few questions:
 
1.  Since you only mention the "mainSearchButton", am I= correct in assuming that this is the only button giving causing an issue?<= /div>
2.  What happens if you remove the "selone_menu_panelSearch&= quot; from the page?  Does it work then?

 
On 4/28/06, = Hans Sowa <hanssowa@gmail.com<= /a>> wrote:
Thanks for the answer.

Here is the cod= e. The commandButton with the id "mainSearchButton" has the probl= em. If I click on the button with the mouse then the method is called.



<div class=3D"hori">
    &nb= sp;               &n= bsp;       <h:form id=3D"mainSearchForm&qu= ot;>
             &= nbsp;               =    <h:outputText value=3D"#{labels.suchMainMessage}"= />
              &n= bsp;               &= nbsp; <f:verbatim>
         &n= bsp;               &= nbsp;          <br />
 &nb= sp;               &n= bsp;               &= nbsp;  <br />
         &nb= sp;               &n= bsp;      </f:verbatim>
    &nb= sp;               &n= bsp;           <h:outputText val= ue=3D"#{=20 labels.danke}" />
         &n= bsp;               &= nbsp;      <f:verbatim>
    &nb= sp;               &n= bsp;               &= lt;br />
            &nb= sp;               &n= bsp;       <br />
    &nbs= p;               &nb= sp;           </f:verbatim>= =20
              &n= bsp;               &= nbsp; <f:verbatim>
         &nb= sp;               &n= bsp;          <br />
 &nbs= p;               &nb= sp;              </f:v= erbatim>
            &nb= sp;               &n= bsp;   <h:selectOneMenu value=3D"#{=20 search.aktuellesSuchAttribut}">
      &= nbsp;               =               <f:selec= tItems value=3D"#{search.moeglicheSuchAttribute}" />
 =                 = ;               <= /h:selectOneMenu>
          &= nbsp;               =       <h:inputText value=3D"#{=20 search.suchLiterale}" />
        &= nbsp;               =         <h:commandButton id=3D"mainSe= archButton" value=3D"#{labels.suche}" actionListener=3D"= ;#{search.suche}" />
         = ;               &nbs= p;       <h:panelGroup rendered=3D"#{=20 search.inLetzterSuche}">
        &= nbsp;               =             <f:verbatim>=
              &n= bsp;               &= nbsp;         <br />
  &nb= sp;               &n= bsp;               &= nbsp; </f:verbatim>
         &n= bsp;               &= nbsp;          <h:selectBooleanCheckb= ox value=3D"#{=20 search.letzteSuche}">
        &nbs= p;               &nb= sp;               &l= t;h:outputText value=3D"#{labels.inLetztemErgebnis}:" />
&n= bsp;               &= nbsp;               =     </h:selectBooleanCheckbox>
    &= nbsp;               =             </h:panelGroup&= gt;=20
              &n= bsp;               &= nbsp; <f:verbatim>
         &nb= sp;               &n= bsp;          <br />
 &nbs= p;               &nb= sp;              </f:v= erbatim>
            &nb= sp;               &n= bsp;   <h:commandButton id=3D"coBuSearchMain5" value= =3D"#{=20 labels.zurueck}" actionListener=3D"#{search.alteSuche}" rend= ered=3D"#{search.alteSuche}" />
     &n= bsp;               &= nbsp;          <f:verbatim>
&nb= sp;               &n= bsp;               &= nbsp;   <br />=20
              &n= bsp;               &= nbsp; </f:verbatim>
         &n= bsp;               &= nbsp;      <h:message for=3D"mainSearchButton&q= uot; styleClass=3D"fehlermeldung" />
    &nb= sp;               &n= bsp;           <h:panelGroup ren= dered=3D"#{=20 search.inLetzterSuche}">
        &= nbsp;               =             <f:verbatim>=
              &n= bsp;               &= nbsp;         <br />
  &nb= sp;               &n= bsp;               &= nbsp; </f:verbatim>
         &n= bsp;               &= nbsp;          <h:outputText value=3D= "#{=20 labels.gefunden}: #{search.anzahlSucheGefundene}" />
  = ;               &nbs= p;              </h:pa= nelGroup>
            &n= bsp;               &= nbsp;   <f:verbatim>
      &nbs= p;               &nb= sp;             <hr />= =20
              &n= bsp;               &= nbsp; </f:verbatim>
         &n= bsp;               &= nbsp;      <h:selectOneMenu id=3D"selone_menu_p= anelSearch" value=3D"#{search.aktuellerStack}" onchange=3D&q= uot;document.forms ['mainSearch:mainSearchForm'].submit();">
    &n= bsp;               &= nbsp;               = <f:selectItems id=3D"selItemsStackSearch" value=3D"#{sear= ch.moeglicheStacks}" />
        &n= bsp;               &= nbsp;       </h:selectOneMenu>=20
              &n= bsp;               &= nbsp; <t:panelStack id=3D"stackMain" selectedPanel=3D"#{s= earch.aktuellerStack}">
        &n= bsp;               &= nbsp;           <h:panelGroup id= =3D"stackListe">
               =                = ;         <%@include file=3D"searchLi= ste.jsp"%>
          &nb= sp;               &n= bsp;         </h:panelGroup>
 &= nbsp;               =                 = ;   <h:panelGroup id=3D"stackBaum">=20
              &n= bsp;               &= nbsp;         <%@include file=3D"sear= chTree.jsp"%>
          =                 = ;          </h:panelGroup>
&nbs= p;               &nb= sp;               &n= bsp;   <h:panelGroup id=3D"stackServer">=20
              &n= bsp;               &= nbsp;         <%@include file=3D"sear= chTreeServer.jsp"%>
         =                 = ;           </h:panelGroup>              &nbs= p;               &nb= sp; </t:panelStack>
               =                = ; <h:commandButton id=3D"goSelektionSearchMain6" value=3D"= ;#{labels.geheSelektion}" action=3D"#{search.goSelektion}" /= >
             &nbs= p;              </h:fo= rm>=20
              &n= bsp;         </div>

------=_Part_3611_9946321.1146254521546--