After clearing my browser cache the javascript errors are gone, but
there is still a problem with navigation, links and buttons.
Danny Robinson wrote:
> >> _validateAlert is not defined
>
> Clear your browser cache.
>
> On 5/24/07, *Luka Surija* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> I've just tryed to switch from
> trinidad-xxx-incubator-m1-SNAPSHOT.jar to
> trinidad-xxx-1.0.1-SNAPSHOT.jar but my web app doesn't working
any
> more
> (clicking on links nothing happends). I use also facelets
1.1.11, but
> till now everything worked fine.
>
> Now, all I've changed was replacing
> trinidad-api-incubator-m1-SNAPSHOT.jar and
> trinidad-impl-incubator-m1-SNAPSHOT.jar with
> trinidad-api-1.0.1-SNAPSHOT.jar and
> trinidad-impl-1.0.1-SNAPSHOT.jar in
> WEB-INF/lib folder.
> Starting my glassfish AS and looking into server.log I've noticed
> following error:
>
> Error configuring application listener of class
> org.apache.myfaces.trinidadinternal.webapp.TrinidadListenerImpl
> java.lang.ClassNotFoundException:
> org.apache.myfaces.trinidadinternal.webapp.TrinidadListenerImpl
> at
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1507)
> at
>
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4421)
> at
> org.apache.catalina.core.StandardContext.start
> (StandardContext.java:5140)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:302)
> at
>
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1224)
> at org.apache.catalina.core.StandardHost.start
(StandardHost.java:924)
> at
>
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1224)
> at
>
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:520)
> at org.apache.catalina.startup.Embedded.start (Embedded.java:916)
> at
com.sun.enterprise.web.WebContainer.start(WebContainer.java:853)
> at
>
com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:742)
> at
> com.sun.enterprise.web.PEWebContainerLifecycle.onStartup
> (PEWebContainerLifecycle.java:71)
> at
>
com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:332)
> at
>
com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java
> :112)
> at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
> at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at com.sun.enterprise.server.PELaunch.main (PELaunch.java:272)
>
> ... hmm, odd.
>
> OK, to workaround, I've copied all necessary jars into
glassfish/lib
> folder and restart glassfish.
>
> Now, there is no more errors in server.log but still I can't do
> anything
> (just displaying site content without clicking) .
> Using firebug I've noticed following error in console every
time I try
> to click on some tr:commandLink or tr:commandButton:
> _validateAlert is not defined
> _j_id1Validator(form#j_id1 index.xhtml, "j_id1:j_id14")
index.xhtml
> (line 221)
> _validateForm(form#j_id1 index.xhtml, "j_id1:j_id14")
Common11-m7.js
> (line 3579)
> submitForm(form#j_id1 index.xhtml , 1, Object event=show
> source=j_id1:j_id14 partial=true) Common11-m7.js (line 3830)
> _submitPartialChange(form#j_id1 index.xhtml, 1, Object event=show
> source=j_id1:j_id14 partial=true) Common11-m7.js (line 5187)
> _submitHideShow("j_id1", 1, "show", "j_id1:j_id14",
> "j_id1:j_id14__xc_",
> undefined) index.xhtml (line 130)
> onclick(click clientX=28, clientY=9) index.xhtml (line 1)
>
>
> Looking into the generated html, I've found this:
>
> <input type="hidden" name="value">
> <script>var
>
_resetj_id1Names=["event","source","partial","state","value"];</script>
>
> <script>var _j_id1_Validations=['new
> TrNumberConverter(null,\'number\',null,null)'];var
>
_j_id1_Validators=["j_id1:searchTable:edBrPonude",0,,0,[]];function
> _j_id1Validator(f,s){return
> _validateAlert(f,s,_j_id1_Validators,0,"Form validation
> failures:");}var _j_id1_Labels={};var _j_id1_Formats=['{0} -
> {1}'];var j_id1_SF={};</script>
> </span><script>_submitFormCheck();</script></form>
> </body>
>
> but there is no function called _validateAlert in Common11-m7.js.
>
> Can someone tell me what I have to do, to switch to a new
version of
> trinidad?
>
>
>
>
>
> --
> Chordiant Software Inc.
> www.chordiant.com <http://www.chordiant.com>