Hi,

Werner, names are a little confusing, but I think Simon talks about
inputTextAjax component (validating user input on server side through
ajax), and not our inputSuggest comp.

@Simon, I have submitted a patch a week ago where the above has
changed a little bit.

Now, I would suggest to use t:message with the little extension like this:

<t:message forceSpan="true" styleClass="errorMessage" for="text1">

The inputAjax may look like this:

<s:inputTextAjax value="#{inputAjaxBean.text1}" id="text1"
                                         
validator="#{inputAjaxBean.validateText1}"
                                         errorStyle="..."/>

This should work in both browsers, like it is shown in the current
sandbox example page.
Please have also a look at it.

Problems solved?

regards,

Gerald

On 2/21/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> Try to switch to server side state saving if you do not do it currently.
> There still is an open issue with the input suggest and client side
> state saving which apparemtnyl was fixed yesterday.
>
>
> Simon Steiner schrieb:
> >> Hi Simon,
> >>
> >> if you have the latest checkout from the repo, there is no patch left, 
> >> sorry.
> >>
> >> In the latest nightly, inputTextAjax works on my machine in both
> >> browsers firefox and ie (means, error messages are displayed).
> >>
> >> What is the exactly problem occuring? Are you using a dataTable?
> >>
> >> We are currently moving inputSuggestAjax to the dojo framework, maybe
> >> this component too the next weeks. If this is the case we will have
> >> much cleaner code.
> >
> > <s:inputTextAjax id="email" value="#{employee.email}" size="20"
> > required="true" forceId="true"
> > validator="#{employee.validateEmailReg}">
> >     <t:validateEmail/>
> > </s:inputTextAjax>
> > <s:message id="emailError" for="email" styleClass="error" />
> >
> > I get on latest nightly:
> >
> > 15:14:18,403 ERROR MyFacesResourceLoader:79 - Unparsable lastModified :
> > @lastModified@
> > 15:14:22,633 ERROR AjaxDecodePhaseListener:80 - Component with id [email]
> > not found in view tree.
> > 15:14:50,297 ERROR AjaxDecodePhaseListener:80 - Component with id [email]
> > not found in view tree.
> > 15:14:50,316 ERROR [Faces Servlet]:253 - Servlet.service() for servlet Faces
> > Servlet threw exception
> > org.apache.myfaces.application.ComponentNotFoundException: Component with id
> > [email] not found in view tree.
> >     at
> > org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener.beforePhase(AjaxD
> > ecodePhaseListener.java:81)
> >     at
> > org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(Lifecy
> > cleImpl.java:551)
> >     at
> > org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.
> > java:207)
> >     at
> > org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
> >     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
> >     at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > FilterChain.java:252)
> >     at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > ain.java:173)
> >     at org.steiner.businessportal.utils.HibernateFilter.doFilter(Unknown
> > Source)
> >     at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > FilterChain.java:202)
> >     at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > ain.java:173)
> >     at
> > org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsF
> > ilter.java:124)
> >     at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > FilterChain.java:202)
> >     at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > ain.java:173)
> >     at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> > va:213)
> >     at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> > va:178)
> >     at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
> > )
> >     at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
> > )
> >     at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> > :107)
> >     at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> >     at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
> >     at
> > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
> > onnection(Http11BaseProtocol.java:663)
> >     at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
> > a:527)
> >     at
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
> > rkerThread.java:80)
> >     at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> > a:684)
> >     at java.lang.Thread.run(Thread.java:613)
> > 15:14:56,525  WARN DefaultAddResource:666 - MyFaces special javascript could
> > not be retrieved from request-map.
> > 15:15:09,216  WARN DefaultAddResource:666 - MyFaces special javascript could
> > not be retrieved from request-map.
> >
> >
> >
>
>


--
Gerald Muellan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]

Reply via email to