Re: T5 cluster PropertyAdapterImpl not serializable error
You are right Kris, we store a list of property adapter in session, to retrieve back dinamically information from our back bean. So we need to make them serializable to use all in cluster I suppose. Thanks a lot. Riccardo kristian.marinkovic wrote: > > hi, > > do you push an instance of PropertyAdapterImpl onto the http session (or > ApplicationStateObject)? > directly or indirectly? > > g, > kris > > > > > Riccardo Ruffilli > 16.12.2008 11:39 > Bitte antworten an > "Tapestry users" > > > An > users@tapestry.apache.org > Kopie > > Thema > T5 cluster PropertyAdapterImpl not serializable error > > > > > > > > > Hi everybody, > I'm trying to test our tapestry based application in a jboss cluster > behind > an apache web server with ajp protocol enabled. The application works fine > in a single server mode but in cluster mode it gives me a > > java.io.NotSerializableException: > org.apache.tapestry.ioc.internal.services.PropertyAdapterImpl. > > I use 5.11 t5 lib. > Any idea ? > thanks in advance > > Riccardo. > > here the complete stacktrace of the exception > > 2008-12-16 11:01:31,468 ERROR > [org.jboss.web.tomcat.tc5.session.JBossCacheService] externalizeSession(): > exception occurred externalizing session SessionBasedClusteredSession[id: > E2679A8FF80A712634518F4B38F107BA.warehouse_n1 lastAccessedTime: > 1229421680609 version: 20 lastOutdated: 0] > > java.io.NotSerializableException: > org.apache.tapestry.ioc.internal.services.PropertyAdapterImpl > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081) > at > java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) > at java.util.ArrayList.writeObject(ArrayList.java:569) > at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown > Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) > at > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339) > at > java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) > at > java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) > at > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) > at > java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) > at > java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) > at > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) > at > java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) > at > java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) > at java.util.Hashtable.writeObject(Hashtable.java:813) > at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown > Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) > at > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339) > at > java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) > at > java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) > at > org.jboss.web.tomcat.tc5.session.SessionBasedClusteredSession.writeExternal(SessionBasedClusteredSession.java:175) > at > org.jboss.web.tomcat.tc5.session.JBossCacheService.externalizeSession(JBossCacheService.java:1023) > at > org.jboss.web.tomcat.tc5.session.JBossCacheService.putSession(JBossCacheService.java:312) > at > org.jboss.web.tomcat.tc5.session.JBossCacheClusteredSession.processSession
T5 cluster PropertyAdapterImpl not serializable error
Hi everybody, I'm trying to test our tapestry based application in a jboss cluster behind an apache web server with ajp protocol enabled. The application works fine in a single server mode but in cluster mode it gives me a java.io.NotSerializableException: org.apache.tapestry.ioc.internal.services.PropertyAdapterImpl. I use 5.11 t5 lib. Any idea ? thanks in advance Riccardo. here the complete stacktrace of the exception 2008-12-16 11:01:31,468 ERROR [org.jboss.web.tomcat.tc5.session.JBossCacheService] externalizeSession(): exception occurred externalizing session SessionBasedClusteredSession[id: E2679A8FF80A712634518F4B38F107BA.warehouse_n1 lastAccessedTime: 1229421680609 version: 20 lastOutdated: 0] java.io.NotSerializableException: org.apache.tapestry.ioc.internal.services.PropertyAdapterImpl at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at java.util.ArrayList.writeObject(ArrayList.java:569) at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at java.util.Hashtable.writeObject(Hashtable.java:813) at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at org.jboss.web.tomcat.tc5.session.SessionBasedClusteredSession.writeExternal(SessionBasedClusteredSession.java:175) at org.jboss.web.tomcat.tc5.session.JBossCacheService.externalizeSession(JBossCacheService.java:1023) at org.jboss.web.tomcat.tc5.session.JBossCacheService.putSession(JBossCacheService.java:312) at org.jboss.web.tomcat.tc5.session.JBossCacheClusteredSession.processSessionRepl(JBossCacheClusteredSession.java:121) at org.jboss.web.tomcat.tc5.session.JBossCacheManager.processSessionRepl(JBossCacheManager.java:1093) at org.jboss.web.tomcat.tc5.session.JBossCacheManager.storeSession(JBossCacheManager.java:648) at org.jboss.web.tomcat.tc5.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.java:49) at org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:98) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnab
T5 id component render in version 5.0.15
Hi everybody, I've worked with the 5.0.11 version of tapestry creating js code that works looking for anchor id. After installing the latest t5 lib, I've noticed that all my action link rendered anchor don't have any id. I've a look at the new AbstractLink class and the older Element e = writer.element("a", "href", buildHref(link), "id", clientId); has been modified with element = writer.element("a", "href", buildHref(link)); In the same way for the relative caller class AbstractComponentEvent where the new code writeLink(writer, link); instead of writeLink(writer, clientId, link); can anyone explain me why ? is there a new way to generate che component id render that I probably miss? thanks in advance Riccardo -- View this message in context: http://www.nabble.com/T5-id-component-render-in-version-5.0.15-tp20262130p20262130.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 component-action-not-serializable context
Hi everybody, could anybody explain me the correct context of component action not serializable exeption that it's not so clear for me? thanks in advance -Rick -- View this message in context: http://www.nabble.com/T5-component-action-not-serializable-context-tp16723764p16723764.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 Tapestry.onDOMLoaded internet explorer 7
It seems to be a well known problem: http://dean.edwards.name/weblog/2006/06/again/ cheers -Rick Riccardo Ruffilli wrote: > > > Hi Josh, thanks again for your answer. > Unfortunatly I don't see any kind of js error. > I've noticed this strange things that may be you can clarify to me, > if I save the page in a static way, and then I reload it the > js should be loaded correctly. > The same things seems to be if I load the page from my local jetty server, > (with no js correct loading (no alert popup comes out)) > and then from the browser address line I refresh the page simply pressing > enter button... > If I use the browser refresh page button nothing happen :( > > I've finally made all the code changes to pass to the newest lib 5.0.11, > ff > and safari works > fine ie not. :(( > > Thanks again. > > -Rick > > > > > > joshcanfield wrote: >> >> You don't mention seeing javascript errors in IE, are there any when >> you load the page and nothing displays? >> >> If there is a syntax error in your javascript (so that IE can't parse >> it) then the whole script block is ignored. >> >> One debugging technique that I use is to view the source of the >> misbehaving page and copy it to a static file on your machine. Then >> you can view the local page and edit out parts of the page until you >> find the culprit, without modifying your source in unwanted ways. I'd >> start by removing everything from the block except >> >> <script type="text/javascript"> >> <!-- >> Tapestry.onDOMLoaded(function() { >> alert('test!'); >> Tapestry.registerForm('sailingForm', {}); >> }); >> // --> >> >> >> and see what happens. >> >> Josh >> >> On Fri, Apr 4, 2008 at 2:12 AM, Riccardo Ruffilli >> <[EMAIL PROTECTED]> wrote: >>> >>> Hi josh, >>> I've checked again the html generated by IE7 and it's exactly the same >>> of the code generated by ff (I make a mistake because I delete a CR >>> sorry! >>> :( ) >>> and this is what I see >>> >>> >>> <!-- >>> Tapestry.onDOMLoaded(function() { >>> alert('test!'); >>> ... >>> Tapestry.registerForm('sailingForm', {}); >>> }); >>> // --> >>> >>> >>> so the browser must execute this like a script and not interpret like a >>> comment! >>> But It doesn't seem to be the troth:( >>> >>> Unfortunatly I've no time to make all the changes needed to my classes >>> to >>> pass at the >>> new versions (5.0.11) from my actual working version 5.0.10, so I need >>> to >>> continue with this one. >>> >>> any other tips ? >>> >>> thanks again. >>> >>> -Rick >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> joshcanfield wrote: >>> > >>> > The problem is that IE doesn't see javascript on the same line as the >>> > opening html comment. What version of tapestry are you using? I see >>> > the space added correctly in 5.0.11. >>> > >>> > >> > Tapestry.onDOMLoaded(function() { >>> > >>> > You said that you were using support.addScript("alert('test!');"); but >>> > not where or how. If you have it in a component/method that is >>> > rendered/called multiple times then it will get output each time. >>> > >>> > If you are creating your own blocks one trick is to add >>> > something to the comment to force the space to be there. >>> > >>> > <script> >>> > <!-- This is a comment >>> > alert('hello'); >>> > //--> >>> > >>> > >>> > On Thu, Apr 3, 2008 at 3:55 AM, Riccardo Ruffilli >>> > <[EMAIL PROTECTED]> wrote: >>> >> >>> >> Hi Everybody, >>> >> >>> >> I've got a problem on loading the Tapestry.onDOMLoaded content in i.e >>> and >>> >> I >>> >> can't understand >>> >> in anyways what it's happening...:( >>> >> >>> >> I've put a simple alert with the >>> >> >>> >> support.addScript("alert('test!');
Re: T5 Tapestry.onDOMLoaded internet explorer 7
Hi Josh, thanks again for your answer. Unfortunatly I don't see any kind of js error. I've noticed this strange things that may be you can clarify to me, if I save the page in a static way, and then I reload it the js should be loaded correctly. The same things seems to be if I load the page from my local jetty server, (with no js correct loading (no alert popup comes out)) and then from the browser address line I refresh the page simply pressing enter button... If I use the browser refresh page button nothing happen :( I've finally made all the code changes to pass to the newest lib 5.0.11, ff and safari works fine ie not. :(( Thanks again. -Rick joshcanfield wrote: > > You don't mention seeing javascript errors in IE, are there any when > you load the page and nothing displays? > > If there is a syntax error in your javascript (so that IE can't parse > it) then the whole script block is ignored. > > One debugging technique that I use is to view the source of the > misbehaving page and copy it to a static file on your machine. Then > you can view the local page and edit out parts of the page until you > find the culprit, without modifying your source in unwanted ways. I'd > start by removing everything from the block except > > <script type="text/javascript"> > <!-- > Tapestry.onDOMLoaded(function() { > alert('test!'); > Tapestry.registerForm('sailingForm', {}); > }); > // --> > > > and see what happens. > > Josh > > On Fri, Apr 4, 2008 at 2:12 AM, Riccardo Ruffilli > <[EMAIL PROTECTED]> wrote: >> >> Hi josh, >> I've checked again the html generated by IE7 and it's exactly the same >> of the code generated by ff (I make a mistake because I delete a CR >> sorry! >> :( ) >> and this is what I see >> >> >> <!-- >> Tapestry.onDOMLoaded(function() { >> alert('test!'); >> ... >> Tapestry.registerForm('sailingForm', {}); >> }); >> // --> >> >> >> so the browser must execute this like a script and not interpret like a >> comment! >> But It doesn't seem to be the troth:( >> >> Unfortunatly I've no time to make all the changes needed to my classes to >> pass at the >> new versions (5.0.11) from my actual working version 5.0.10, so I need to >> continue with this one. >> >> any other tips ? >> >> thanks again. >> >> -Rick >> >> >> >> >> >> >> >> >> >> >> joshcanfield wrote: >> > >> > The problem is that IE doesn't see javascript on the same line as the >> > opening html comment. What version of tapestry are you using? I see >> > the space added correctly in 5.0.11. >> > >> > > > Tapestry.onDOMLoaded(function() { >> > >> > You said that you were using support.addScript("alert('test!');"); but >> > not where or how. If you have it in a component/method that is >> > rendered/called multiple times then it will get output each time. >> > >> > If you are creating your own blocks one trick is to add >> > something to the comment to force the space to be there. >> > >> > <script> >> > <!-- This is a comment >> > alert('hello'); >> > //--> >> > >> > >> > On Thu, Apr 3, 2008 at 3:55 AM, Riccardo Ruffilli >> > <[EMAIL PROTECTED]> wrote: >> >> >> >> Hi Everybody, >> >> >> >> I've got a problem on loading the Tapestry.onDOMLoaded content in i.e >> and >> >> I >> >> can't understand >> >> in anyways what it's happening...:( >> >> >> >> I've put a simple alert with the >> >> >> >> support.addScript("alert('test!');"); >> >> >> >> so I've got something like this (I miss I've got the right context >> >> menu... >> >> but I think it's not the problem) >> >> in the bottom of my page >> >> >> >> >> >> >> >> <!--Tapestry.onDOMLoaded(function() { >> >> alert('test!'); >> >> alert('test!'); // twice (but I don't know why) >> >> >> >> /* this is for right context... */ >> >> var menu = { attributes: 'a,b,c',items: >> [{type:RightContext.TYPE_MENU, >> >>
Re: T5 Tapestry.onDOMLoaded internet explorer 7
Hi Josh, thanks again for your answer. Unfortunatly I don't see any kind of js error. I've noticed this strange things that may be you can clarify to me, if I save the page in a static way, and then I reload it the js should be loaded correctly. The same things seems to be if I load the page from my local jetty server, (with no js correct loading (no alert popup comes out)) and then from the browser address line I refresh the page simply pressing enter button... If I use the browser refresh page button nothing happen :( I've finally made all the code changes to pass to the newest lib 5.0.11, ff and safari works fine ie not. :(( Thanks again. -Rick joshcanfield wrote: > > You don't mention seeing javascript errors in IE, are there any when > you load the page and nothing displays? > > If there is a syntax error in your javascript (so that IE can't parse > it) then the whole script block is ignored. > > One debugging technique that I use is to view the source of the > misbehaving page and copy it to a static file on your machine. Then > you can view the local page and edit out parts of the page until you > find the culprit, without modifying your source in unwanted ways. I'd > start by removing everything from the block except > > <script type="text/javascript"> > <!-- > Tapestry.onDOMLoaded(function() { > alert('test!'); > Tapestry.registerForm('sailingForm', {}); > }); > // --> > > > and see what happens. > > Josh > > On Fri, Apr 4, 2008 at 2:12 AM, Riccardo Ruffilli > <[EMAIL PROTECTED]> wrote: >> >> Hi josh, >> I've checked again the html generated by IE7 and it's exactly the same >> of the code generated by ff (I make a mistake because I delete a CR >> sorry! >> :( ) >> and this is what I see >> >> >> <!-- >> Tapestry.onDOMLoaded(function() { >> alert('test!'); >> ... >> Tapestry.registerForm('sailingForm', {}); >> }); >> // --> >> >> >> so the browser must execute this like a script and not interpret like a >> comment! >> But It doesn't seem to be the troth:( >> >> Unfortunatly I've no time to make all the changes needed to my classes to >> pass at the >> new versions (5.0.11) from my actual working version 5.0.10, so I need to >> continue with this one. >> >> any other tips ? >> >> thanks again. >> >> -Rick >> >> >> >> >> >> >> >> >> >> >> joshcanfield wrote: >> > >> > The problem is that IE doesn't see javascript on the same line as the >> > opening html comment. What version of tapestry are you using? I see >> > the space added correctly in 5.0.11. >> > >> > > > Tapestry.onDOMLoaded(function() { >> > >> > You said that you were using support.addScript("alert('test!');"); but >> > not where or how. If you have it in a component/method that is >> > rendered/called multiple times then it will get output each time. >> > >> > If you are creating your own blocks one trick is to add >> > something to the comment to force the space to be there. >> > >> > <script> >> > <!-- This is a comment >> > alert('hello'); >> > //--> >> > >> > >> > On Thu, Apr 3, 2008 at 3:55 AM, Riccardo Ruffilli >> > <[EMAIL PROTECTED]> wrote: >> >> >> >> Hi Everybody, >> >> >> >> I've got a problem on loading the Tapestry.onDOMLoaded content in i.e >> and >> >> I >> >> can't understand >> >> in anyways what it's happening...:( >> >> >> >> I've put a simple alert with the >> >> >> >> support.addScript("alert('test!');"); >> >> >> >> so I've got something like this (I miss I've got the right context >> >> menu... >> >> but I think it's not the problem) >> >> in the bottom of my page >> >> >> >> >> >> >> >> <!--Tapestry.onDOMLoaded(function() { >> >> alert('test!'); >> >> alert('test!'); // twice (but I don't know why) >> >> >> >> /* this is for right context... */ >> >> var menu = { attributes: 'a,b,c',items: >> [{type:RightContext.TYPE_MENU, >> >>
Re: T5 Tapestry.onDOMLoaded internet explorer 7
Hi Josh, thanks again for your answer. Unfortunatly I don't see any kind of js error. I've noticed this strange things that may be you can clarify to me, if I save the page in a static way, and then I reload it the js should be loaded correctly. The same things seems to be if I load the page from my local jetty server, (with no js correct loading (no alert popup comes out)) and then from the browser address line I refresh the page simply pressing enter button... If I use the browser refresh page button nothing happen :( I've finally made all the code changes to pass to the newest lib 5.0.11, ff and safari works fine ie not. :(( Thanks again. -Rick joshcanfield wrote: > > You don't mention seeing javascript errors in IE, are there any when > you load the page and nothing displays? > > If there is a syntax error in your javascript (so that IE can't parse > it) then the whole script block is ignored. > > One debugging technique that I use is to view the source of the > misbehaving page and copy it to a static file on your machine. Then > you can view the local page and edit out parts of the page until you > find the culprit, without modifying your source in unwanted ways. I'd > start by removing everything from the block except > > <script type="text/javascript"> > <!-- > Tapestry.onDOMLoaded(function() { > alert('test!'); > Tapestry.registerForm('sailingForm', {}); > }); > // --> > > > and see what happens. > > Josh > > On Fri, Apr 4, 2008 at 2:12 AM, Riccardo Ruffilli > <[EMAIL PROTECTED]> wrote: >> >> Hi josh, >> I've checked again the html generated by IE7 and it's exactly the same >> of the code generated by ff (I make a mistake because I delete a CR >> sorry! >> :( ) >> and this is what I see >> >> >> <!-- >> Tapestry.onDOMLoaded(function() { >> alert('test!'); >> ... >> Tapestry.registerForm('sailingForm', {}); >> }); >> // --> >> >> >> so the browser must execute this like a script and not interpret like a >> comment! >> But It doesn't seem to be the troth:( >> >> Unfortunatly I've no time to make all the changes needed to my classes to >> pass at the >> new versions (5.0.11) from my actual working version 5.0.10, so I need to >> continue with this one. >> >> any other tips ? >> >> thanks again. >> >> -Rick >> >> >> >> >> >> >> >> >> >> >> joshcanfield wrote: >> > >> > The problem is that IE doesn't see javascript on the same line as the >> > opening html comment. What version of tapestry are you using? I see >> > the space added correctly in 5.0.11. >> > >> > > > Tapestry.onDOMLoaded(function() { >> > >> > You said that you were using support.addScript("alert('test!');"); but >> > not where or how. If you have it in a component/method that is >> > rendered/called multiple times then it will get output each time. >> > >> > If you are creating your own blocks one trick is to add >> > something to the comment to force the space to be there. >> > >> > <script> >> > <!-- This is a comment >> > alert('hello'); >> > //--> >> > >> > >> > On Thu, Apr 3, 2008 at 3:55 AM, Riccardo Ruffilli >> > <[EMAIL PROTECTED]> wrote: >> >> >> >> Hi Everybody, >> >> >> >> I've got a problem on loading the Tapestry.onDOMLoaded content in i.e >> and >> >> I >> >> can't understand >> >> in anyways what it's happening...:( >> >> >> >> I've put a simple alert with the >> >> >> >> support.addScript("alert('test!');"); >> >> >> >> so I've got something like this (I miss I've got the right context >> >> menu... >> >> but I think it's not the problem) >> >> in the bottom of my page >> >> >> >> >> >> >> >> <!--Tapestry.onDOMLoaded(function() { >> >> alert('test!'); >> >> alert('test!'); // twice (but I don't know why) >> >> >> >> /* this is for right context... */ >> >> var menu = { attributes: 'a,b,c',items: >> [{type:RightContext.TYPE_MENU, >> >>
Re: T5 Tapestry.onDOMLoaded internet explorer 7
Hi josh, I've checked again the html generated by IE7 and it's exactly the same of the code generated by ff (I make a mistake because I delete a CR sorry! :( ) and this is what I see <!-- Tapestry.onDOMLoaded(function() { alert('test!'); ... Tapestry.registerForm('sailingForm', {}); }); // --> so the browser must execute this like a script and not interpret like a comment! But It doesn't seem to be the troth:( Unfortunatly I've no time to make all the changes needed to my classes to pass at the new versions (5.0.11) from my actual working version 5.0.10, so I need to continue with this one. any other tips ? thanks again. -Rick joshcanfield wrote: > > The problem is that IE doesn't see javascript on the same line as the > opening html comment. What version of tapestry are you using? I see > the space added correctly in 5.0.11. > > Tapestry.onDOMLoaded(function() { > > You said that you were using support.addScript("alert('test!');"); but > not where or how. If you have it in a component/method that is > rendered/called multiple times then it will get output each time. > > If you are creating your own blocks one trick is to add > something to the comment to force the space to be there. > > <script> > <!-- This is a comment > alert('hello'); > //--> > > > On Thu, Apr 3, 2008 at 3:55 AM, Riccardo Ruffilli > <[EMAIL PROTECTED]> wrote: >> >> Hi Everybody, >> >> I've got a problem on loading the Tapestry.onDOMLoaded content in i.e and >> I >> can't understand >> in anyways what it's happening...:( >> >> I've put a simple alert with the >> >> support.addScript("alert('test!');"); >> >> so I've got something like this (I miss I've got the right context >> menu... >> but I think it's not the problem) >> in the bottom of my page >> >> >> >> <!--Tapestry.onDOMLoaded(function() { >> alert('test!'); >> alert('test!'); // twice (but I don't know why) >> >> /* this is for right context... */ >> var menu = { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, >> text:' Submit della form', >> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >> RightContext.addMenu('actions', menu); RightContext.initialize();var menu >> = >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >> Submit >> della form', >> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >> RightContext.addMenu('actions', menu); RightContext.initialize();var menu >> = >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >> Submit >> della form', >> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >> RightContext.addMenu('actions', menu); RightContext.initialize();var menu >> = >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >> Submit >> della form', >> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >> RightContext.addMenu('actions', menu); RightContext.initialize();var menu >> = >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >> Submit >> della form', >> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >> RightContext.add
Re: T5 Tapestry.onDOMLoaded internet explorer 7
Many many thanks for your quick response! Yes we are using 5.0.10 so I'm going to try the latest release just now then I let you know. Bye -Rick joshcanfield wrote: > > The problem is that IE doesn't see javascript on the same line as the > opening html comment. What version of tapestry are you using? I see > the space added correctly in 5.0.11. > > Tapestry.onDOMLoaded(function() { > > You said that you were using support.addScript("alert('test!');"); but > not where or how. If you have it in a component/method that is > rendered/called multiple times then it will get output each time. > > If you are creating your own blocks one trick is to add > something to the comment to force the space to be there. > > <script> > <!-- This is a comment > alert('hello'); > //--> > > > On Thu, Apr 3, 2008 at 3:55 AM, Riccardo Ruffilli > <[EMAIL PROTECTED]> wrote: >> >> Hi Everybody, >> >> I've got a problem on loading the Tapestry.onDOMLoaded content in i.e and >> I >> can't understand >> in anyways what it's happening...:( >> >> I've put a simple alert with the >> >> support.addScript("alert('test!');"); >> >> so I've got something like this (I miss I've got the right context >> menu... >> but I think it's not the problem) >> in the bottom of my page >> >> >> >> <!--Tapestry.onDOMLoaded(function() { >> alert('test!'); >> alert('test!'); // twice (but I don't know why) >> >> /* this is for right context... */ >> var menu = { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, >> text:' Submit della form', >> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >> RightContext.addMenu('actions', menu); RightContext.initialize();var menu >> = >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >> Submit >> della form', >> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >> RightContext.addMenu('actions', menu); RightContext.initialize();var menu >> = >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >> Submit >> della form', >> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >> RightContext.addMenu('actions', menu); RightContext.initialize();var menu >> = >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >> Submit >> della form', >> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >> RightContext.addMenu('actions', menu); RightContext.initialize();var menu >> = >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >> Submit >> della form', >> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >> RightContext.addMenu('actions', menu); RightContext.initialize();var menu >> = >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >> Submit >> della form', >> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >> RightContext.ad
T5 Tapestry.onDOMLoaded internet explorer 7
Hi Everybody, I've got a problem on loading the Tapestry.onDOMLoaded content in i.e and I can't understand in anyways what it's happening...:( I've put a simple alert with the support.addScript("alert('test!');"); so I've got something like this (I miss I've got the right context menu... but I think it's not the problem) in the bottom of my page In firefox everything works fine as usually, in ie it seems that only after three or four page reload the alert do its job and comes out. Is it a caching problem or something else ? Any ideas ? thanks in advance -Rick -- View this message in context: http://www.nabble.com/T5-Tapestry.onDOMLoaded-internet-explorer-7-tp16467393p16467393.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 validator question
I've already found my answer in the magical @Inject private FieldValidatorSource _fieldValidatorSource; with the _fieldValidatorSource.createValidator(this, "myRegistredValidator", null); everything works fine ! Bye -Rick Riccardo Ruffilli wrote: > > Hi All, > > I'm working on validator class in my t5 application, and I've defined my > own validator > that implements Validator I've registred them like t5 > contribution in > my AppModule.java and then I can use them easily in my tag with the > parameter validator="validate:myownvalidator". > > With the validate prefix I've noticed that t5 obtain a FieldValidatorImpl > that contains myvalidator > instance like _validate internal property. > I'd like to modelize my component to make it working without any template > explicit parameter > using a model class that wrap all my tag parameter in that way > > > > instead of > > > > and at rendering time My component get all that values from the model > specified. > That works fine exept for validator parameter because I need to obtain > myown FieldValidatorImpl > instance. > > Any ideas about that ? > > Many thanks in advance. > > -Rick > > > > -- View this message in context: http://www.nabble.com/T5-validator-question-tp16001442p16001764.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 validator question
Hi All, I'm working on validator class in my t5 application, and I've defined my own validator that implements Validator I've registred them like t5 contribution in my AppModule.java and then I can use them easily in my tag with the parameter validator="validate:myownvalidator". With the validate prefix I've noticed that t5 obtain a FieldValidatorImpl that contains myvalidator instance like _validate internal property. I'd like to modelize my component to make it working without any template explicit parameter using a model class that wrap all my tag parameter in that way instead of and at rendering time My component get all that values from the model specified. That works fine exept for validator parameter because I need to obtain myown FieldValidatorImpl instance. Any ideas about that ? Many thanks in advance. -Rick -- View this message in context: http://www.nabble.com/T5-validator-question-tp16001442p16001442.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
t5: bubble up question
Hi Everybody, Like I read in the t5 doc "The event will bubble up the hierarchy, until it is aborted. The event is aborted when an event handler method returns a non-null value." I've got a toolbar inside my t5 grid column component built with action link components. Something like that http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> ${columnModel.label} ${icon} I use this component inside a component which extends the Grid component everithing inside a normal t5 page. I've noticed this kind of behaviour in events generated by t5, I'd like to have an event handler method inside mygrid component, but I've notice that I can catch only the grid column component event and not my nested toolbar action link event. So I can obtain all my information in mygrid component inside the onActionFromColumn method but I can't reach anything in the onActionFromMyLink method just I aspected. This means that I can obtain the event of the contained component in the container component but if I have 2 levels of nested component in A contains B contains C in the component A I can't capture che action event generated from component C with an onActionFromC but only whith onActionFromB. Did I miss something ? Thanks. -Rick -- View this message in context: http://www.nabble.com/t5%3A-bubble-up-question-tp15847763p15847763.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: t5 beaneditor vm lock
never mind... I'm going to try out a workaround for this and if I'll find something interesting I'll post it here. Thanks Horward and many compliments for your great job. -Rick Howard Lewis Ship wrote: > > I've seen this a couple of times just now; the debugger is having some > trouble with instrumented code. I can pass the buck and blame > Javassist, but that doesn't give you an answser. > > > On Thu, Feb 28, 2008 at 12:31 AM, riccaruf > <[EMAIL PROTECTED]> wrote: >> >> sorry Howard and thanks for your reply! I've changed my post with the >> stack >> trace but something was wrong and It was not be published.. >> here it is... >> >> [ERROR] RequestExceptionHandler Processing of request failed with >> uncaught >> exception: org.apache.tapestry.runtime.ComponentEventException >> org.apache.tapestry.runtime.ComponentEventException [at >> >> classpath:it/sailingweb/framework/web/components/template/componenti/componentigenerici/SailingForm.tml, >> line 4, column 72] >> at >> >> org.apache.tapestry.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1021) >> at >> >> org.apache.tapestry.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:62) >> at >> >> org.apache.tapestry.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42) >> at >> >> $ComponentEventRequestHandler_1185f22f59f.handle($ComponentEventRequestHandler_1185f22f59f.java) >> at >> >> org.apache.tapestry.internal.services.AjaxFilter.handle(AjaxFilter.java:42) >> at >> >> $ComponentEventRequestHandler_1185f22f59f.handle($ComponentEventRequestHandler_1185f22f59f.java) >> at >> >> org.apache.tapestry.services.TapestryModule$39.handle(TapestryModule.java:2073) >> at >> >> $ComponentEventRequestHandler_1185f22f59f.handle($ComponentEventRequestHandler_1185f22f59f.java) >> at >> >> $ComponentEventRequestHandler_1185f22f47e.handle($ComponentEventRequestHandler_1185f22f47e.java) >> at >> >> org.apache.tapestry.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:131) >> at $Dispatcher_1185f22f480.dispatch($Dispatcher_1185f22f480.java) >> at $Dispatcher_1185f22f473.dispatch($Dispatcher_1185f22f473.java) >> at >> >> org.apache.tapestry.services.TapestryModule$13.service(TapestryModule.java:911) >> at >> >> org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43) >> at >> $RequestHandler_1185f22f474.service($RequestHandler_1185f22f474.java) >> at >> >> org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:529) >> at >> $RequestHandler_1185f22f474.service($RequestHandler_1185f22f474.java) >> at >> >> org.apache.tapestry.services.TapestryModule$2.service(TapestryModule.java:504) >> at >> $RequestHandler_1185f22f474.service($RequestHandler_1185f22f474.java) >> at >> >> org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79) >> at >> $RequestHandler_1185f22f474.service($RequestHandler_1185f22f474.java) >> at >> >> org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93) >> at >> >> org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:1) >> at >> >> org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77) >> at >> >> org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106) >> at >> $RequestHandler_1185f22f474.service($RequestHandler_1185f22f474.java) >> at >> $RequestHandler_1185f22f46c.service($RequestHandler_1185f22f46c.java) >> at >> >> org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java:891) >> at >> >> org.apache.tapestry.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) >> at >> >> $HttpServletRequestFilter_1185f22f46b.service($HttpServletRequestFilter_1185f22f46b.java) >> at >> >> $HttpServletRequestHandler_1185f22f46d.service($HttpServletRequestHandler_1185f22f46d.java) >> at >> >> $HttpServletRequestHandler_1185f22f46a.service($HttpServletRequestHandler_1185f22f46a.java) >> at >> org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:164) >> at >> >> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) >> at >> >> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) >> at >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) >> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) >> at >> >> org.mortbay.jetty.servlet.WebApplicationConte
T5 informal parameters for embedded component
Hi Guys, Is there any way to pass informal parameters through two component the container and an embedded one possibly without mapping them in to formal parameters? for example I have this situation this is what I'd like to use in my page I'd like to let the user of my component free of useing informal html parameter. In my component template I have something like this any ideas on how could I pass outside informal parameters to my internal embedded t5 textfield in any way ? Thanks in advance -Rick -- View this message in context: http://www.nabble.com/T5-informal-parameters-for-embedded-component-tp15739579p15739579.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]