myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CD <dcyphe...@gmail.com>
Subject Re: Problem wit textfield and commandButton
Date Fri, 28 Apr 2006 20:02:01 GMT
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 <hanssowa@gmail.com> wrote:
>
> Thanks for the answer.
>
> Here is the code. The commandButton with the id "mainSearchButton" has the
> problem. If I click on the button with the mouse then the method is called.
>
>
>
> <div class="hori">
>                             <h:form id="mainSearchForm">
>                                 <h:outputText value="#{
> labels.suchMainMessage}" />
>                                 <f:verbatim>
>                                     <br />
>                                     <br />
>                                 </f:verbatim>
>                                 <h:outputText value="#{ labels.danke}" />
>                                 <f:verbatim>
>                                     <br />
>                                     <br />
>                                 </f:verbatim>
>                                 <f:verbatim>
>                                     <br />
>                                 </f:verbatim>
>                                 <h:selectOneMenu value="#{
> search.aktuellesSuchAttribut}">
>                                     <f:selectItems value="#{
> search.moeglicheSuchAttribute}" />
>                                 </h:selectOneMenu>
>                                 <h:inputText value="#{ search.suchLiterale}"
> />
>                                 <h:commandButton id="mainSearchButton"
> value="#{labels.suche}" actionListener="#{search.suche}" />
>                                 <h:panelGroup rendered="#{
> search.inLetzterSuche}">
>                                     <f:verbatim>
>                                         <br />
>                                     </f:verbatim>
>                                     <h:selectBooleanCheckbox value="#{
> search.letzteSuche}">
>                                         <h:outputText value="#{
> labels.inLetztemErgebnis}:" />
>                                     </h:selectBooleanCheckbox>
>                                 </h:panelGroup>
>                                 <f:verbatim>
>                                     <br />
>                                 </f:verbatim>
>                                 <h:commandButton id="coBuSearchMain5"
> value="#{ labels.zurueck}" actionListener="#{search.alteSuche}"
> rendered="#{search.alteSuche}" />
>                                 <f:verbatim>
>                                     <br />
>                                 </f:verbatim>
>                                 <h:message for="mainSearchButton"
> styleClass="fehlermeldung" />
>                                 <h:panelGroup rendered="#{
> search.inLetzterSuche}">
>                                     <f:verbatim>
>                                         <br />
>                                     </f:verbatim>
>                                     <h:outputText value="#{
> labels.gefunden}: #{search.anzahlSucheGefundene}" />
>                                 </h:panelGroup>
>                                 <f:verbatim>
>                                     <hr />
>                                 </f:verbatim>
>                                 <h:selectOneMenu
> id="selone_menu_panelSearch" value="#{search.aktuellerStack}" onchange="
> document.forms ['mainSearch:mainSearchForm'].submit();">
>                                     <f:selectItems
> id="selItemsStackSearch" value="#{search.moeglicheStacks}" />
>                                 </h:selectOneMenu>
>                                 <t:panelStack id="stackMain"
> selectedPanel="#{search.aktuellerStack}">
>                                     <h:panelGroup id="stackListe">
>                                         <%@include file="searchListe.jsp
> "%>
>                                     </h:panelGroup>
>                                     <h:panelGroup id="stackBaum">
>                                         <%@include file="searchTree.jsp"%>
>                                     </h:panelGroup>
>                                     <h:panelGroup id="stackServer">
>                                         <%@include file="
> searchTreeServer.jsp"%>
>                                     </h:panelGroup>
>                                 </t:panelStack>
>                                 <h:commandButton
> id="goSelektionSearchMain6" value="#{labels.geheSelektion}" action="#{
> search.goSelektion}" />
>                             </h:form>
>                         </div>
>
>
> On 4/28/06, CD <dcypher67@gmail.com> wrote:
> >
> > Can you post sample code here?
> >
> >
> > On 4/28/06, Hans Sowa <hanssowa@gmail.com> 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 behind the
> > > commandButton calls my method. Great. But on Internet Explorer the event
> > > doesn't call my method. But on another side a similar combination works 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
>

Mime
View raw message