Re: problems getting a session state object on start up (resend ..? )
Hi there --I have a hivemind service that loads test data into my app. I use the EagerLoad feature of hivemind to trigger this dataload. However, I get this exception:java.lang.IllegalStateException: The Infrastructure service has not yet been initialized. org.apache.tapestry.services.impl.InfrastructureImpl.getProperty(InfrastructureImpl.java:292)org.apache.tapestry.services.impl.InfrastructureImpl.getApplicationStateManager(InfrastructureImpl.java:116) $Infrastructure_10de95366c1.getApplicationStateManager($Infrastructure_10de95366c1.java) $Infrastructure_10de95366c0.getApplicationStateManager($Infrastructure_10de95366c0.java)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) The relevant hivemodule.xml snippet is: service-point id=sessionFactory interface=com.transparentpolitics.core.TransPolSessionManager invoke-factory construct class= com.transparentpolitics.core.TransPolSessionManagerImpl initialize-method=init set-object property=stateManager value=infrastructure:applicationStateManager/ set-service property=broadcastProviderManager service-id=broadcastProviderManager/ /construct /invoke-factory /service-point ( I have attached complete hivemodule.xml file)In the hivemodule.xml file, does anyone know how to inject the stateObject itself directly without going through the applicationStateManager? I know how to do it on a tapestry component/page but not in hivemind. -Pat Moore ?xml version=1.0? module id=transparentpolitics version=0.0.1 package=com.transparentpolitics contribution configuration-id=tapestry.url.ServiceEncoders direct-service-encoder id=direct stateless-extension=direct stateful-extension=sdirect/ page-service-encoder id=page extension=page service=page/ page-service-encoder id=external extension=external service=external/ asset-encoder id=asset path=/assets/ extension-encoder id=ext extension=svc after=*/ /contribution contribution configuration-id=tapestry.state.ApplicationObjects state-object name=userInformation scope=session invoke-factory object=service:sessionFactory/ /state-object /contribution !-- schema id=databaseConnectionDef element name=prop key-attribute=key attribute name=key/ attribute name=value required=true/ rules push-attribute attribute=value/ invoke-parent method=addElement/ /rules /element /schema configuration-point id=databaseConnection schema-id=databaseConnectionDef/ contribution configuration-id=databaseConnection prop key=hibernate.dialect value=org.hibernate.dialect.MySQLDialect/ prop key=hibernate.show_sql value=true/ prop key=hibernate.connection.driver_class value=com.mysql.jdbc.Driver/ prop key=hibernate.connection.url value=jdbc:mysql://localhost/rbook/ prop key=hibernate.connection.username value=rbook/ prop key=hibernate.connection.password value=cafebabe/ /contribution -- service-point id=jsonRendererRegistry interface=com.transparentpolitics.core.JSONRendererRegistry invoke-factory construct class=com.transparentpolitics.core.JSONRendererRegistryImpl initialize-method=init /construct /invoke-factory /service-point service-point id=hibernateSessionManager interface=com.transparentpolitics.core.persistence.HibernateSessionManager invoke-factory construct class=com.transparentpolitics.core.persistence.HibernateSessionManager initialize-method=init /construct /invoke-factory /service-point service-point id=callbackRegistry interface=com.transparentpolitics.core.CallbackRegistry invoke-factory construct class=com.transparentpolitics.core.CallbackRegistryImpl initialize-method=init /construct /invoke-factory /service-point service-point id=messageEndPointFactory interface=com.transparentpolitics.core.messagehandling.MessageEndPointFactory invoke-factory construct class=com.transparentpolitics.core.messagehandling.MessageEndPointFactory initialize-method=init set-service property=jsonRendererRegistry service-id=jsonRendererRegistry/ set-service property=callbackRegistry service-id=callbackRegistry/ /construct /invoke-factory /service-point service-point id=tagManager interface=com.transparentpolitics.core.TagManager invoke-factory construct class=com.transparentpolitics.core.persistence.TagManagerImpl initialize-method=init set-service property=transPolSessionManager service-id=sessionFactory/ set-service property=hibernateSessionManager service-id=hibernateSessionManager/ /construct /invoke-factory /service-point service-point id=messageSourcePointFactory interface=com.transparentpolitics.core.messagehandling.MessageSourcePointFactory invoke-factory construct class=com.transparentpolitics.core.messagehandling.MessageSourcePointFactory initialize-method=init set-service property=broadcastEnvelopeFactory
problems getting a session state object on start up
Hi there -- I have a hivemind service that loads test data into my app. I use the EagerLoad feature of hivemind to trigger this dataload. However, I get this exception: java.lang.IllegalStateException: The Infrastructure service has not yet been initialized. org.apache.tapestry.services.impl.InfrastructureImpl.getProperty( InfrastructureImpl.java:292) org.apache.tapestry.services.impl.InfrastructureImpl.getApplicationStateManager (InfrastructureImpl.java:116) $Infrastructure_10de95366c1.getApplicationStateManager($Infrastructure_10de95366c1.java) $Infrastructure_10de95366c0.getApplicationStateManager($Infrastructure_10de95366c0.java) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) The relevant hivemodule.xml snippet is: service-point id=sessionFactory interface= com.transparentpolitics.core.TransPolSessionManager invoke-factory construct class= com.transparentpolitics.core.TransPolSessionManagerImpl initialize-method=init set-object property=stateManager value=infrastructure:applicationStateManager/ set-service property=broadcastProviderManager service-id=broadcastProviderManager/ /construct /invoke-factory /service-point In the hivemodule.xml file, does anyone know how to inject the stateObject itself directly without going through the applicationStateManager? I know how to do it on a tapestry component/page but not in hivemind. -Pat Moore
Re: Ajax Double Combo example?
Thanks for the pointer Jesse. I managed to get my stuff ported over to Tapestry 4.1, but I'm still having trouble. I basically copied the code from your TimeTracker example and attempted to change the Autocompleter to instead be a PropertySelection. Somehow my listener is still not getting called. I'm sure there's something simple that I'm missing (I hope). I've included the code below, thanks again for your help. Here's my Java page class: public abstract class AjaxTest extends BasePage { private static final Log log = LogFactory.getLog(AjaxTest.class); public abstract Locale getSelectedProject(); @Component(id = projectChoose, bindings = { model=projectModel, value=selectedProject, displayName=message:choose.project, filterOnChange=true, validators=validators:required}) public abstract PropertySelection getProjectChoose(); public IPropertySelectionModel getProjectModel() { return new BeanPropertySelectionModel( Arrays.asList(Locale.getAvailableLocales()), displayCountry); } @EventListener(targets = projectChoose, events = selectOption, submitForm = profileForm) public void projectSelected(IRequestCycle cycle, BrowserEvent event) { log.debug(**); } } and here's my html: body jwcid=@border title=xxx form jwcid=[EMAIL PROTECTED] class=container clientValidationEnabled=true span jwcid=projectChoose/ /form /body Jessek wrote: You can do the same thing pretty easily in Tapestry 4.1. http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html On 9/25/06, mhelmstetter [EMAIL PROTECTED] wrote: OK, I think that got me pointed in the right direction, but I'm still having trouble. I tried the AjaxEventSubmit example: http://tacos.sourceforge.net/components/AjaxEventSubmit.html but my listener does not seem to be invoked when the list selection changes. Any ideas? Thanks, mark karthik.nar wrote: in tacos have a look at ajaxevensubmit and hook it to the onchange of your combo boxes. On 9/23/06, Mark Helmstetter [EMAIL PROTECTED] wrote: Are there any examples of how to implement an Ajax enabled double combo box? Is there a component that supports this? I was hoping for something simple for those of us who are uh, ajax-challenged... I looked through Tacos and didn't see anything. Thanks, Mark -- Thanks, Karthik -- View this message in context: http://www.nabble.com/Ajax-Double-Combo-example--tf2321902.html#a6493297 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/Ajax-Double-Combo-example--tf2321902.html#a6508199 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: DropdownDatePicker recently broken (4.1-SNAPSHOT) ?
I also tried a translator: /** * Tapestry-Komponente: Formularfeld Ankunft (Dojo Widget) */ @Component( bindings = { value=ognl:arrivalDate, validators=ognl:{beans.required, beans.arrivalDateValidator}, translator=translator:date,pattern=dd.MM. } ) public abstract DropdownDatePicker getArrivalDatePicker(); The outcome is that the displayed content changes from NaN-NaN-NaN to NaN.NaN.NaN I tried to feed the DropdownDatePicker with a String representation of the date 03.03.2007, but no luck either: DropdownDatePicker insist to recieve a java.util.Date. It worked a while ago, I am sure. Andy Andy Pahne schrieb: I am playing around with 4.1-SNAPSHOT, trying a few things. I had a DropdownDatePicker that was working just fine but recently stopped working: @Component( bindings = { value=ognl:arrivalDate, validators=ognl:{beans.required, beans.arrivalDateValidator} } ) public abstract DropdownDatePicker getArrivalDatePicker(); The corresponding page property is: @Persist public abstract Date getArrivalDate(); public abstract void setArrivalDate(Date arrivalDate); And the value of getArrivalDate is not null, because in pageBeginRender() I have: if(getArrivalDate() == null) { setArrivalDate( DateUtil.addDays(DateUtil.getTodaysMidnight(), 5); LOG.debug(Arrival Date set, is now + getArrivalDate()); } The error I see now is: The date-pickers text field says NaN undefined NaN The debugging messages says DEBUG: invalid date string: NaN-NaN-NaN I have no idea. Do you? Andy - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)
Hi there -- Please consider this a vote to roll the tacos and contrib components into the main release. Having lots of scattered component libraries around means that newbie developers like me start implementing something that has already been done before. For example, I just found the jumpstart project and am looking to use its redirect-after-post feature. Would have saved me some time I think if this was part of the main tap release. Thanks guys I hope to be able to contribute soon myself. -Pat
Re: dojo 0.3.1/tacos 4 makes ie sick
Probably not... Haven't changed my djConfig for a while. That's the problem, then? On 9/26/06, andyhot [EMAIL PROTECTED] wrote: Inge Solvoll wrote: Thanks guys! I downgraded to tacos 4 beta 1 and the dojo version included there, and my system went back to normal page load times. I'll try with a lighter profile when I get the time. My first guess was that this happens when dojo goes through all the nodes in the document to make a memory map or something. There are hundreds, maybe thousands of hidden inputs in my document. don't you have parseWidgets: false in your djConfig??? Does dojo behave differently on page load when a lighter profile is built? Maybe some widget parsing going on transparently onload when widgets are built in to dojo.js? On 9/26/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Kitchen sink? Ouch ;) Maybe the default used in the demo could be slightly lighter. On 9/25/06, andyhot [EMAIL PROTECTED] wrote: tacos includes dojo0.3.1-kitchen_sink Go to http://download.dojotoolkit.org/release-0.3.1/ and try some lighter profiles ( perhaps ajax or even minimal) Do tell us if things get better. Inge Solvoll wrote: I have a couple of html pages that contain huge amounts of hidden inputs, about 500 kb of html. This worked reasonably fine until recently. But after upgrading to tacos 4 with dojo 0.3.1, it takes Internet Explorer 6 about 1 minute to load the page, with tacos 4 beta 2 it took about 5 seconds. In Firefox it still loads fine, in about 5 seconds. The symptoms are: IE stays at 25% CPU usage during the entire page load of 60-90 seconds, and the memory usage goes crazy, increasing from 40 MB to 80 MB. The memory is released after the page has finished loading, I think. Possibly after the browser window is closed. I'll find out if anyone is wondering. This is probably more relevant on the dojo mailing list, as I guess it is dojo related, but I'm not subscribing to that one, so I was hoping that anyone here had any suggestions other than rolling back to the previous tacos beta distro? -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)
Watching with interest... On 9/26/06, Patrick Moore [EMAIL PROTECTED] wrote: Hi there -- Please consider this a vote to roll the tacos and contrib components into the main release. Having lots of scattered component libraries around means that newbie developers like me start implementing something that has already been done before. For example, I just found the jumpstart project and am looking to use its redirect-after-post feature. Would have saved me some time I think if this was part of the main tap release. Thanks guys I hope to be able to contribute soon myself. -Pat
RE: problems getting a session state object on start up (resend ..? )
Hi Pat, We ran into a similar situation and found a workable (but not pretty) solution. First, you need to contribute to the ApplicationInitializers contribution point as described in this thread: http://article.gmane.org/gmane.comp.java.tapestry.user/33013 But in this case you'll want to make sure your service is created after the ApplicationStateManager has been setup, so it should look something like this in hivemodule.xml: contribution configuration-id=tapestry.init.ApplicationInitializers command after=* id=myInitializer object=service:MyInitializer/ /contribution Then set the service you want to eager-load on MyInitializer and call something on it inside the initialize() method to ensure it gets created: public void initialize(HttpServlet servlet) { myEagerLoadedService.initializeMe(); } Maybe someone else knows a better way, but this is the best I'm come up with to deal with the issue of eager loading services that need the infrastructure. Ben From: Patrick Moore [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 10:45 AM To: users@tapestry.apache.org Subject: Re: problems getting a session state object on start up (resend ..? ) Hi there -- I have a hivemind service that loads test data into my app. I use the EagerLoad feature of hivemind to trigger this dataload. However, I get this exception: java.lang.IllegalStateException: The Infrastructure service has not yet been initialized. org.apache.tapestry.services .impl.InfrastructureImpl.getProperty(InfrastructureImpl.java:292) org.apache.tapestry.services.impl.InfrastructureImpl.getApplicationStateManager(InfrastructureImpl.java:116) $Infrastructure_10de95366c1.getApplicationStateManager($Infrastructure_10de95366c1.java) $Infrastructure_10de95366c0.getApplicationStateManager($Infrastructure_10de95366c0.java) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) The relevant hivemodule.xml snippet is: service-point id=sessionFactory interface=com.transparentpolitics.core.TransPolSessionManager invoke-factory construct class= com.transparentpolitics.core.TransPolSessionManagerImpl initialize-method=init set-object property=stateManager value=infrastructure:applicationStateManager/ set-service property=broadcastProviderManager service-id=broadcastProviderManager/ /construct /invoke-factory /service-point ( I have attached complete hivemodule.xml file) In the hivemodule.xml file, does anyone know how to inject the stateObject itself directly without going through the applicationStateManager? I know how to do it on a tapestry component/page but not in hivemind. -Pat Moore - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Equivalent of JSP Includes?
I would put in a vote for something like the Dynamic Block making it into the main tap release. I have been wondering how to do this myself!
Re: request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)
I'd like to see a few bits and pieces of different projects make their way into Tapestry directly - or as s sub-project as well. Most of them are currently waiting for Daniel's great work on getting this maven2 click through functionality working so that we can handle the varying licensing issues involved. As for individual features - like what you mentioned in JumpStart - you can vote if you'd like but it doesn't make it any easier for me to find time to look at it...A simple patch posted on JIRA would go a lot farther ;) On 9/26/06, DJ Gredler [EMAIL PROTECTED] wrote: Watching with interest... On 9/26/06, Patrick Moore [EMAIL PROTECTED] wrote: Hi there -- Please consider this a vote to roll the tacos and contrib components into the main release. Having lots of scattered component libraries around means that newbie developers like me start implementing something that has already been done before. For example, I just found the jumpstart project and am looking to use its redirect-after-post feature. Would have saved me some time I think if this was part of the main tap release. Thanks guys I hope to be able to contribute soon myself. -Pat -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Ajax Double Combo example?
I believe on a native html select element the proper event to listen for is onchange. That's why I've not hard coded any of the event names into Tapestry itself...Wayy too much potential for me f-ing things up ;) On 9/26/06, mhelmstetter [EMAIL PROTECTED] wrote: Thanks for the pointer Jesse. I managed to get my stuff ported over to Tapestry 4.1, but I'm still having trouble. I basically copied the code from your TimeTracker example and attempted to change the Autocompleter to instead be a PropertySelection. Somehow my listener is still not getting called. I'm sure there's something simple that I'm missing (I hope). I've included the code below, thanks again for your help. Here's my Java page class: public abstract class AjaxTest extends BasePage { private static final Log log = LogFactory.getLog(AjaxTest.class ); public abstract Locale getSelectedProject(); @Component(id = projectChoose, bindings = { model=projectModel, value=selectedProject, displayName=message:choose.project, filterOnChange=true, validators=validators:required}) public abstract PropertySelection getProjectChoose(); public IPropertySelectionModel getProjectModel() { return new BeanPropertySelectionModel( Arrays.asList(Locale.getAvailableLocales()), displayCountry); } @EventListener(targets = projectChoose, events = selectOption, submitForm = profileForm) public void projectSelected(IRequestCycle cycle, BrowserEvent event) { log.debug(**); } } and here's my html: body jwcid=@border title=xxx form jwcid=[EMAIL PROTECTED] class=container clientValidationEnabled=true span jwcid=projectChoose/ /form /body Jessek wrote: You can do the same thing pretty easily in Tapestry 4.1. http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html On 9/25/06, mhelmstetter [EMAIL PROTECTED] wrote: OK, I think that got me pointed in the right direction, but I'm still having trouble. I tried the AjaxEventSubmit example: http://tacos.sourceforge.net/components/AjaxEventSubmit.html but my listener does not seem to be invoked when the list selection changes. Any ideas? Thanks, mark karthik.nar wrote: in tacos have a look at ajaxevensubmit and hook it to the onchange of your combo boxes. On 9/23/06, Mark Helmstetter [EMAIL PROTECTED] wrote: Are there any examples of how to implement an Ajax enabled double combo box? Is there a component that supports this? I was hoping for something simple for those of us who are uh, ajax-challenged... I looked through Tacos and didn't see anything. Thanks, Mark -- Thanks, Karthik -- View this message in context: http://www.nabble.com/Ajax-Double-Combo-example--tf2321902.html#a6493297 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/Ajax-Double-Combo-example--tf2321902.html#a6508199 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)
oh I understand about posting a patch in JIRA... but its not my code! it is Kent's code. I figure you know him better than I. Or maybe he is on the list?
Re: Ajax Double Combo example?
Yeah, my bad, I tried that shortly after posting the message and still...no luck. And yes, it's all lower case onchange. :-) Any other ideas? Jessek wrote: I believe on a native html select element the proper event to listen for is onchange. That's why I've not hard coded any of the event names into Tapestry itself...Wayy too much potential for me f-ing things up ;) On 9/26/06, mhelmstetter [EMAIL PROTECTED] wrote: Thanks for the pointer Jesse. I managed to get my stuff ported over to Tapestry 4.1, but I'm still having trouble. I basically copied the code from your TimeTracker example and attempted to change the Autocompleter to instead be a PropertySelection. Somehow my listener is still not getting called. I'm sure there's something simple that I'm missing (I hope). I've included the code below, thanks again for your help. Here's my Java page class: public abstract class AjaxTest extends BasePage { private static final Log log = LogFactory.getLog(AjaxTest.class ); public abstract Locale getSelectedProject(); @Component(id = projectChoose, bindings = { model=projectModel, value=selectedProject, displayName=message:choose.project, filterOnChange=true, validators=validators:required}) public abstract PropertySelection getProjectChoose(); public IPropertySelectionModel getProjectModel() { return new BeanPropertySelectionModel( Arrays.asList(Locale.getAvailableLocales()), displayCountry); } @EventListener(targets = projectChoose, events = selectOption, submitForm = profileForm) public void projectSelected(IRequestCycle cycle, BrowserEvent event) { log.debug(**); } } and here's my html: body jwcid=@border title=xxx form jwcid=[EMAIL PROTECTED] class=container clientValidationEnabled=true span jwcid=projectChoose/ /form /body Jessek wrote: You can do the same thing pretty easily in Tapestry 4.1. http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html On 9/25/06, mhelmstetter [EMAIL PROTECTED] wrote: OK, I think that got me pointed in the right direction, but I'm still having trouble. I tried the AjaxEventSubmit example: http://tacos.sourceforge.net/components/AjaxEventSubmit.html but my listener does not seem to be invoked when the list selection changes. Any ideas? Thanks, mark karthik.nar wrote: in tacos have a look at ajaxevensubmit and hook it to the onchange of your combo boxes. On 9/23/06, Mark Helmstetter [EMAIL PROTECTED] wrote: Are there any examples of how to implement an Ajax enabled double combo box? Is there a component that supports this? I was hoping for something simple for those of us who are uh, ajax-challenged... I looked through Tacos and didn't see anything. Thanks, Mark -- Thanks, Karthik -- View this message in context: http://www.nabble.com/Ajax-Double-Combo-example--tf2321902.html#a6493297 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/Ajax-Double-Combo-example--tf2321902.html#a6508199 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/Ajax-Double-Combo-example--tf2321902.html#a6510795 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: Ajax Double Combo example?
Yeah, do a view source on your rendered page. You'll find a section towards the bottom that attempts to do the event connection on your html select list. Do you see any problems in this area? If you have FireBug installed you can do a lot more, even type in javascript into the console that will be executed against your current page..So, you could in theory manually type in various dojo.event.connect(dojo.byId(your rendered element id), onfoo, function(e){alert(The event fired!);}); to see which one works :) On 9/26/06, mhelmstetter [EMAIL PROTECTED] wrote: Yeah, my bad, I tried that shortly after posting the message and still...no luck. And yes, it's all lower case onchange. :-) Any other ideas? Jessek wrote: I believe on a native html select element the proper event to listen for is onchange. That's why I've not hard coded any of the event names into Tapestry itself...Wayy too much potential for me f-ing things up ;) On 9/26/06, mhelmstetter [EMAIL PROTECTED] wrote: Thanks for the pointer Jesse. I managed to get my stuff ported over to Tapestry 4.1, but I'm still having trouble. I basically copied the code from your TimeTracker example and attempted to change the Autocompleter to instead be a PropertySelection. Somehow my listener is still not getting called. I'm sure there's something simple that I'm missing (I hope). I've included the code below, thanks again for your help. Here's my Java page class: public abstract class AjaxTest extends BasePage { private static final Log log = LogFactory.getLog( AjaxTest.class ); public abstract Locale getSelectedProject(); @Component(id = projectChoose, bindings = { model=projectModel, value=selectedProject, displayName=message:choose.project, filterOnChange=true, validators=validators:required}) public abstract PropertySelection getProjectChoose(); public IPropertySelectionModel getProjectModel() { return new BeanPropertySelectionModel( Arrays.asList(Locale.getAvailableLocales()), displayCountry); } @EventListener(targets = projectChoose, events = selectOption, submitForm = profileForm) public void projectSelected(IRequestCycle cycle, BrowserEvent event) { log.debug(**); } } and here's my html: body jwcid=@border title=xxx form jwcid=[EMAIL PROTECTED] class=container clientValidationEnabled=true span jwcid=projectChoose/ /form /body Jessek wrote: You can do the same thing pretty easily in Tapestry 4.1. http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html On 9/25/06, mhelmstetter [EMAIL PROTECTED] wrote: OK, I think that got me pointed in the right direction, but I'm still having trouble. I tried the AjaxEventSubmit example: http://tacos.sourceforge.net/components/AjaxEventSubmit.html but my listener does not seem to be invoked when the list selection changes. Any ideas? Thanks, mark karthik.nar wrote: in tacos have a look at ajaxevensubmit and hook it to the onchange of your combo boxes. On 9/23/06, Mark Helmstetter [EMAIL PROTECTED] wrote: Are there any examples of how to implement an Ajax enabled double combo box? Is there a component that supports this? I was hoping for something simple for those of us who are uh, ajax-challenged... I looked through Tacos and didn't see anything. Thanks, Mark -- Thanks, Karthik -- View this message in context: http://www.nabble.com/Ajax-Double-Combo-example--tf2321902.html#a6493297 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/Ajax-Double-Combo-example--tf2321902.html#a6508199 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/Ajax-Double-Combo-example--tf2321902.html#a6510795 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:
Timing processing time of a page
Hi. I'm wondering if anyone has done any simple timing of the processing for a page? I've changed my border slightly so at the start it creates a Date, and at the end creates another and determines the difference. However, I think this only works out to be the render time of the page itself, not the processing time to get all the information for that page (eg. slow DB queries). Maybe something like this would go in a Servlet method? I'm really unsure. Anyone have any insight? This way I can work on tuning my application and have some hard numbers to see if, on average, they are getting smaller or not. Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)
The Maven2 license clickthrough functionality that Jesse mentioned will allow code that integrates with LGPL-licensed projects (like Hibernate) to be distributed under the official Tapestry moniker -- think Tapernate, Cognition, Honeycomb, BeanForm, etc. If you're interested in getting this kind of integration rolling, consider stopping by the Maven2 JIRA site and voting for issue MNG-671 at http://jira.codehaus.org/browse/MNG-671. And that's my sales pitch for the day ;-) Daniel On 9/26/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: I'd like to see a few bits and pieces of different projects make their way into Tapestry directly - or as s sub-project as well. Most of them are currently waiting for Daniel's great work on getting this maven2 click through functionality working so that we can handle the varying licensing issues involved. As for individual features - like what you mentioned in JumpStart - you can vote if you'd like but it doesn't make it any easier for me to find time to look at it...A simple patch posted on JIRA would go a lot farther ;) On 9/26/06, DJ Gredler [EMAIL PROTECTED] wrote: Watching with interest... On 9/26/06, Patrick Moore [EMAIL PROTECTED] wrote: Hi there -- Please consider this a vote to roll the tacos and contrib components into the main release. Having lots of scattered component libraries around means that newbie developers like me start implementing something that has already been done before. For example, I just found the jumpstart project and am looking to use its redirect-after-post feature. Would have saved me some time I think if this was part of the main tap release. Thanks guys I hope to be able to contribute soon myself. -Pat -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
RE: Timing processing time of a page
Look at the bottom of the generated source. It will spit out the processing time automatically for you. For example: !-- Render time: ~ 0 ms -- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:19 PM To: users@tapestry.apache.org Subject: Timing processing time of a page Hi. I'm wondering if anyone has done any simple timing of the processing for a page? I've changed my border slightly so at the start it creates a Date, and at the end creates another and determines the difference. However, I think this only works out to be the render time of the page itself, not the processing time to get all the information for that page (eg. slow DB queries). Maybe something like this would go in a Servlet method? I'm really unsure. Anyone have any insight? This way I can work on tuning my application and have some hard numbers to see if, on average, they are getting smaller or not. Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)
Yes, please everyone if you can spare the time to go there and click on the vote for it link we would all be very grateful. Having some of these items as easily accessible Tapestry sub-projects would have to be a good thing for everyone in the community. Go vote! On 9/26/06, DJ Gredler [EMAIL PROTECTED] wrote: The Maven2 license clickthrough functionality that Jesse mentioned will allow code that integrates with LGPL-licensed projects (like Hibernate) to be distributed under the official Tapestry moniker -- think Tapernate, Cognition, Honeycomb, BeanForm, etc. If you're interested in getting this kind of integration rolling, consider stopping by the Maven2 JIRA site and voting for issue MNG-671 at http://jira.codehaus.org/browse/MNG-671. And that's my sales pitch for the day ;-) Daniel On 9/26/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: I'd like to see a few bits and pieces of different projects make their way into Tapestry directly - or as s sub-project as well. Most of them are currently waiting for Daniel's great work on getting this maven2 click through functionality working so that we can handle the varying licensing issues involved. As for individual features - like what you mentioned in JumpStart - you can vote if you'd like but it doesn't make it any easier for me to find time to look at it...A simple patch posted on JIRA would go a lot farther ;) On 9/26/06, DJ Gredler [EMAIL PROTECTED] wrote: Watching with interest... On 9/26/06, Patrick Moore [EMAIL PROTECTED] wrote: Hi there -- Please consider this a vote to roll the tacos and contrib components into the main release. Having lots of scattered component libraries around means that newbie developers like me start implementing something that has already been done before. For example, I just found the jumpstart project and am looking to use its redirect-after-post feature. Would have saved me some time I think if this was part of the main tap release. Thanks guys I hope to be able to contribute soon myself. -Pat -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
RE: Timing processing time of a page
James, Does this need to be enabled somehow? I don't see it in the HTML source. tap 4. Thanks, Greg -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:25 PM To: 'Tapestry users' Subject: RE: Timing processing time of a page Look at the bottom of the generated source. It will spit out the processing time automatically for you. For example: !-- Render time: ~ 0 ms -- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:19 PM To: users@tapestry.apache.org Subject: Timing processing time of a page Hi. I'm wondering if anyone has done any simple timing of the processing for a page? I've changed my border slightly so at the start it creates a Date, and at the end creates another and determines the difference. However, I think this only works out to be the render time of the page itself, not the processing time to get all the information for that page (eg. slow DB queries). Maybe something like this would go in a Servlet method? I'm really unsure. Anyone have any insight? This way I can work on tuning my application and have some hard numbers to see if, on average, they are getting smaller or not. Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Timing processing time of a page
I believe if your set the log level for tapestry to debug, as in putting a line like log4j.logger.org.apache.tapestry=debug in your log4j.properties, it will output such information. Like 19:30:56,135 DEBUG BaseComponent:89 - Begin render Home 19:30:57,807 DEBUG BaseComponent:95 - End render Home It would probably be nicer to see the actual time amount then just the two logging timestamps... I guess you could just modify/overwrite BaseComponent.renderComponent to output that. Hth, Lutz On 9/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi. I'm wondering if anyone has done any simple timing of the processing for a page? I've changed my border slightly so at the start it creates a Date, and at the end creates another and determines the difference. However, I think this only works out to be the render time of the page itself, not the processing time to get all the information for that page (eg. slow DB queries). Maybe something like this would go in a Servlet method? I'm really unsure. Anyone have any insight? This way I can work on tuning my application and have some hard numbers to see if, on average, they are getting smaller or not. Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Timing processing time of a page
I think you just need to use the @Shell component. On 9/26/06, Lutz Hühnken [EMAIL PROTECTED] wrote: I believe if your set the log level for tapestry to debug, as in putting a line like log4j.logger.org.apache.tapestry=debug in your log4j.properties, it will output such information. Like 19:30:56,135 DEBUG BaseComponent:89 - Begin render Home 19:30:57,807 DEBUG BaseComponent:95 - End render Home It would probably be nicer to see the actual time amount then just the two logging timestamps... I guess you could just modify/overwrite BaseComponent.renderComponent to output that. Hth, Lutz On 9/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi. I'm wondering if anyone has done any simple timing of the processing for a page? I've changed my border slightly so at the start it creates a Date, and at the end creates another and determines the difference. However, I think this only works out to be the render time of the page itself, not the processing time to get all the information for that page (eg. slow DB queries). Maybe something like this would go in a Servlet method? I'm really unsure. Anyone have any insight? This way I can work on tuning my application and have some hard numbers to see if, on average, they are getting smaller or not. Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
RE: Timing processing time of a page
But I think renderComponent() would just be the rendering time of the page similar to what I'm doing in the Border component? Maybe I should put some slow down's in to double check. -Original Message- From: Lutz Hühnken [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:38 PM To: Tapestry users Subject: Re: Timing processing time of a page I believe if your set the log level for tapestry to debug, as in putting a line like log4j.logger.org.apache.tapestry=debug in your log4j.properties, it will output such information. Like 19:30:56,135 DEBUG BaseComponent:89 - Begin render Home 19:30:57,807 DEBUG BaseComponent:95 - End render Home It would probably be nicer to see the actual time amount then just the two logging timestamps... I guess you could just modify/overwrite BaseComponent.renderComponent to output that. Hth, Lutz On 9/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi. I'm wondering if anyone has done any simple timing of the processing for a page? I've changed my border slightly so at the start it creates a Date, and at the end creates another and determines the difference. However, I think this only works out to be the render time of the page itself, not the processing time to get all the information for that page (eg. slow DB queries). Maybe something like this would go in a Servlet method? I'm really unsure. Anyone have any insight? This way I can work on tuning my application and have some hard numbers to see if, on average, they are getting smaller or not. Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Timing processing time of a page
I'm on tap4, too. Maybe it's because I'm using a @Shell component? I always just thought it happened automagically. :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:32 PM To: users@tapestry.apache.org Subject: RE: Timing processing time of a page James, Does this need to be enabled somehow? I don't see it in the HTML source. tap 4. Thanks, Greg -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:25 PM To: 'Tapestry users' Subject: RE: Timing processing time of a page Look at the bottom of the generated source. It will spit out the processing time automatically for you. For example: !-- Render time: ~ 0 ms -- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:19 PM To: users@tapestry.apache.org Subject: Timing processing time of a page Hi. I'm wondering if anyone has done any simple timing of the processing for a page? I've changed my border slightly so at the start it creates a Date, and at the end creates another and determines the difference. However, I think this only works out to be the render time of the page itself, not the processing time to get all the information for that page (eg. slow DB queries). Maybe something like this would go in a Servlet method? I'm really unsure. Anyone have any insight? This way I can work on tuning my application and have some hard numbers to see if, on average, they are getting smaller or not. Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax Double Combo example?
Oh boy, do I feel stupid. Well it turns out that I did have javascript errors, dojo is not defined. Somehow I've managed to ignore the javascript errors becuase I've been getting extraneous errors lately since I started using FoxyProxy. Anyhow, it turns out that I didn't have the servlet-mapping for /assets/* in my web.xml which was causing the dojo javascript to not be loaded. DUH! No, that's wrong, Cartman. But don't worry. There are no stupid answers, just stupid people. Jessek wrote: Yeah, do a view source on your rendered page. You'll find a section towards the bottom that attempts to do the event connection on your html select list. Do you see any problems in this area? If you have FireBug installed you can do a lot more, even type in javascript into the console that will be executed against your current page..So, you could in theory manually type in various dojo.event.connect(dojo.byId(your rendered element id), onfoo, function(e){alert(The event fired!);}); to see which one works :) On 9/26/06, mhelmstetter [EMAIL PROTECTED] wrote: Yeah, my bad, I tried that shortly after posting the message and still...no luck. And yes, it's all lower case onchange. :-) Any other ideas? Jessek wrote: I believe on a native html select element the proper event to listen for is onchange. That's why I've not hard coded any of the event names into Tapestry itself...Wayy too much potential for me f-ing things up ;) On 9/26/06, mhelmstetter [EMAIL PROTECTED] wrote: Thanks for the pointer Jesse. I managed to get my stuff ported over to Tapestry 4.1, but I'm still having trouble. I basically copied the code from your TimeTracker example and attempted to change the Autocompleter to instead be a PropertySelection. Somehow my listener is still not getting called. I'm sure there's something simple that I'm missing (I hope). I've included the code below, thanks again for your help. Here's my Java page class: public abstract class AjaxTest extends BasePage { private static final Log log = LogFactory.getLog( AjaxTest.class ); public abstract Locale getSelectedProject(); @Component(id = projectChoose, bindings = { model=projectModel, value=selectedProject, displayName=message:choose.project, filterOnChange=true, validators=validators:required}) public abstract PropertySelection getProjectChoose(); public IPropertySelectionModel getProjectModel() { return new BeanPropertySelectionModel( Arrays.asList(Locale.getAvailableLocales()), displayCountry); } @EventListener(targets = projectChoose, events = selectOption, submitForm = profileForm) public void projectSelected(IRequestCycle cycle, BrowserEvent event) { log.debug(**); } } and here's my html: body jwcid=@border title=xxx form jwcid=[EMAIL PROTECTED] class=container clientValidationEnabled=true span jwcid=projectChoose/ /form /body Jessek wrote: You can do the same thing pretty easily in Tapestry 4.1. http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html On 9/25/06, mhelmstetter [EMAIL PROTECTED] wrote: OK, I think that got me pointed in the right direction, but I'm still having trouble. I tried the AjaxEventSubmit example: http://tacos.sourceforge.net/components/AjaxEventSubmit.html but my listener does not seem to be invoked when the list selection changes. Any ideas? Thanks, mark karthik.nar wrote: in tacos have a look at ajaxevensubmit and hook it to the onchange of your combo boxes. On 9/23/06, Mark Helmstetter [EMAIL PROTECTED] wrote: Are there any examples of how to implement an Ajax enabled double combo box? Is there a component that supports this? I was hoping for something simple for those of us who are uh, ajax-challenged... I looked through Tacos and didn't see anything. Thanks, Mark -- Thanks, Karthik -- View this message in context: http://www.nabble.com/Ajax-Double-Combo-example--tf2321902.html#a6493297 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/Ajax-Double-Combo-example--tf2321902.html#a6508199 Sent from the Tapestry - User
Re: Ajax Double Combo example?
Hah! I'm glad you got it working.. There was no stupidity on your part. It is my own failing...If I'm going to make dojo be such an integral part of the framework then I need to make sure I'm able to properly report situations where the library may be b0rken by something like this with warning messages or similar...Hopefully I'll get that cleaned up soon-ish. On 9/26/06, mhelmstetter [EMAIL PROTECTED] wrote: Oh boy, do I feel stupid. Well it turns out that I did have javascript errors, dojo is not defined. Somehow I've managed to ignore the javascript errors becuase I've been getting extraneous errors lately since I started using FoxyProxy. Anyhow, it turns out that I didn't have the servlet-mapping for /assets/* in my web.xml which was causing the dojo javascript to not be loaded. DUH! No, that's wrong, Cartman. But don't worry. There are no stupid answers, just stupid people. Jessek wrote: Yeah, do a view source on your rendered page. You'll find a section towards the bottom that attempts to do the event connection on your html select list. Do you see any problems in this area? If you have FireBug installed you can do a lot more, even type in javascript into the console that will be executed against your current page..So, you could in theory manually type in various dojo.event.connect(dojo.byId(your rendered element id), onfoo, function(e){alert(The event fired!);}); to see which one works :) On 9/26/06, mhelmstetter [EMAIL PROTECTED] wrote: Yeah, my bad, I tried that shortly after posting the message and still...no luck. And yes, it's all lower case onchange. :-) Any other ideas? Jessek wrote: I believe on a native html select element the proper event to listen for is onchange. That's why I've not hard coded any of the event names into Tapestry itself...Wayy too much potential for me f-ing things up ;) On 9/26/06, mhelmstetter [EMAIL PROTECTED] wrote: Thanks for the pointer Jesse. I managed to get my stuff ported over to Tapestry 4.1, but I'm still having trouble. I basically copied the code from your TimeTracker example and attempted to change the Autocompleter to instead be a PropertySelection. Somehow my listener is still not getting called. I'm sure there's something simple that I'm missing (I hope). I've included the code below, thanks again for your help. Here's my Java page class: public abstract class AjaxTest extends BasePage { private static final Log log = LogFactory.getLog( AjaxTest.class ); public abstract Locale getSelectedProject(); @Component(id = projectChoose, bindings = { model=projectModel, value=selectedProject, displayName=message:choose.project, filterOnChange=true, validators=validators:required}) public abstract PropertySelection getProjectChoose(); public IPropertySelectionModel getProjectModel() { return new BeanPropertySelectionModel( Arrays.asList(Locale.getAvailableLocales()), displayCountry); } @EventListener(targets = projectChoose, events = selectOption, submitForm = profileForm) public void projectSelected(IRequestCycle cycle, BrowserEvent event) { log.debug(**); } } and here's my html: body jwcid=@border title=xxx form jwcid=[EMAIL PROTECTED] class=container clientValidationEnabled=true span jwcid=projectChoose/ /form /body Jessek wrote: You can do the same thing pretty easily in Tapestry 4.1. http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html On 9/25/06, mhelmstetter [EMAIL PROTECTED] wrote: OK, I think that got me pointed in the right direction, but I'm still having trouble. I tried the AjaxEventSubmit example: http://tacos.sourceforge.net/components/AjaxEventSubmit.html but my listener does not seem to be invoked when the list selection changes. Any ideas? Thanks, mark karthik.nar wrote: in tacos have a look at ajaxevensubmit and hook it to the onchange of your combo boxes. On 9/23/06, Mark Helmstetter [EMAIL PROTECTED] wrote: Are there any examples of how to implement an Ajax enabled double combo box? Is there a component that supports this? I was hoping for something simple for those of us who are uh, ajax-challenged... I looked through Tacos and didn't see anything. Thanks, Mark -- Thanks, Karthik -- View this message in context: http://www.nabble.com/Ajax-Double-Combo-example--tf2321902.html#a6493297 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)
O.k. I voted ! On 9/26/06, DJ Gredler [EMAIL PROTECTED] wrote: The Maven2 license clickthrough functionality that Jesse mentioned will allow code that integrates with LGPL-licensed projects (like Hibernate) to be distributed under the official Tapestry moniker -- think Tapernate, Cognition, Honeycomb, BeanForm, etc. If you're interested in getting this kind of integration rolling, consider stopping by the Maven2 JIRA site and voting for issue MNG-671 at http://jira.codehaus.org/browse/MNG-671. And that's my sales pitch for the day ;-) Daniel On 9/26/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: I'd like to see a few bits and pieces of different projects make their way into Tapestry directly - or as s sub-project as well. Most of them are currently waiting for Daniel's great work on getting this maven2 click through functionality working so that we can handle the varying licensing issues involved. As for individual features - like what you mentioned in JumpStart - you can vote if you'd like but it doesn't make it any easier for me to find time to look at it...A simple patch posted on JIRA would go a lot farther ;) On 9/26/06, DJ Gredler [EMAIL PROTECTED] wrote: Watching with interest... On 9/26/06, Patrick Moore [EMAIL PROTECTED] wrote: Hi there -- Please consider this a vote to roll the tacos and contrib components into the main release. Having lots of scattered component libraries around means that newbie developers like me start implementing something that has already been done before. For example, I just found the jumpstart project and am looking to use its redirect-after-post feature. Would have saved me some time I think if this was part of the main tap release. Thanks guys I hope to be able to contribute soon myself. -Pat -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Timing processing time of a page
Oh, I think all the database access and other stuff you mentioned is done in between the begin render end end render. It clearly looks like it from the debugging output, there's a lot more going on than just rendering. But the whole @Shell think sounds even easier anyway, maybe we should give that a try some time. On 9/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: But I think renderComponent() would just be the rendering time of the page similar to what I'm doing in the Border component? Maybe I should put some slow down's in to double check. -Original Message- From: Lutz Hühnken [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:38 PM To: Tapestry users Subject: Re: Timing processing time of a page I believe if your set the log level for tapestry to debug, as in putting a line like log4j.logger.org.apache.tapestry=debug in your log4j.properties, it will output such information. Like 19:30:56,135 DEBUG BaseComponent:89 - Begin render Home 19:30:57,807 DEBUG BaseComponent:95 - End render Home It would probably be nicer to see the actual time amount then just the two logging timestamps... I guess you could just modify/overwrite BaseComponent.renderComponent to output that. Hth, Lutz On 9/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi. I'm wondering if anyone has done any simple timing of the processing for a page? I've changed my border slightly so at the start it creates a Date, and at the end creates another and determines the difference. However, I think this only works out to be the render time of the page itself, not the processing time to get all the information for that page (eg. slow DB queries). Maybe something like this would go in a Servlet method? I'm really unsure. Anyone have any insight? This way I can work on tuning my application and have some hard numbers to see if, on average, they are getting smaller or not. Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Timing processing time of a page
Okay I added some delays in I see what's happening. My border solution does work (although the Shell solution intrigues me, more details anyone?) The thing is, let's say you have an OK button that, per say, saves your entry. That saving wouldn't be included in the next pages render time since you do your logic, then cycle.redirect() that might be a bit tricky. Greg -Original Message- From: Lutz Hühnken [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:47 PM To: Tapestry users Subject: Re: Timing processing time of a page Oh, I think all the database access and other stuff you mentioned is done in between the begin render end end render. It clearly looks like it from the debugging output, there's a lot more going on than just rendering. But the whole @Shell think sounds even easier anyway, maybe we should give that a try some time. On 9/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: But I think renderComponent() would just be the rendering time of the page similar to what I'm doing in the Border component? Maybe I should put some slow down's in to double check. -Original Message- From: Lutz Hühnken [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:38 PM To: Tapestry users Subject: Re: Timing processing time of a page I believe if your set the log level for tapestry to debug, as in putting a line like log4j.logger.org.apache.tapestry=debug in your log4j.properties, it will output such information. Like 19:30:56,135 DEBUG BaseComponent:89 - Begin render Home 19:30:57,807 DEBUG BaseComponent:95 - End render Home It would probably be nicer to see the actual time amount then just the two logging timestamps... I guess you could just modify/overwrite BaseComponent.renderComponent to output that. Hth, Lutz On 9/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi. I'm wondering if anyone has done any simple timing of the processing for a page? I've changed my border slightly so at the start it creates a Date, and at the end creates another and determines the difference. However, I think this only works out to be the render time of the page itself, not the processing time to get all the information for that page (eg. slow DB queries). Maybe something like this would go in a Servlet method? I'm really unsure. Anyone have any insight? This way I can work on tuning my application and have some hard numbers to see if, on average, they are getting smaller or not. Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems getting a session state object on start up (resend ..? )
I ran across an email thread that just suggested to create the WebRequest/WebSession objects. So I am going to try that. If anyone has a better idea let me know. On 9/26/06, Patrick Moore [EMAIL PROTECTED] wrote: Hi Ben --- thanks for this info. I just tried what I think is your suggestion. I added the ApplicationInitializer interface to my demo.Samples service and added this method: public void initialize(HttpServlet arg0) { try { init(); } catch (IOException e) { e.printStackTrace(); } } and it doesn't seem to work quite completely. I get past the point of the infrastructure object ApplicationStateManager not being available. However, now I get a different exception. How does tapestry initialize a session? Is it possible for a background thread to initialize a tapestry session? -- java.lang.NullPointerException: Property 'webRequest' of OuterProxy for tapestry.globals.RequestGlobals( org.apache.tapestry.services.RequestGlobals) is null. at $WebRequest_10deb12def2._targetServiceProperty($WebRequest_10deb12def2.java) at $WebRequest_10deb12def2.getSession($WebRequest_10deb12def2.java) at $WebRequest_10deb12dec3.getSession($WebRequest_10deb12dec3.java) at $WebRequest_10deb12dec2.getSession($WebRequest_10deb12dec2.java) at org.apache.tapestry.engine.state.SessionScopeManager.getSession( SessionScopeManager.java:48) at org.apache.tapestry.engine.state.SessionScopeManager.get( SessionScopeManager.java:64) at $StateObjectPersistenceManager_10deb12deed.get($StateObjectPersistenceManager_10deb12deed.java) at $StateObjectPersistenceManager_10deb12deec.get($StateObjectPersistenceManager_10deb12deec.java) at org.apache.tapestry.engine.state.StateObjectManagerImpl.get( StateObjectManagerImpl.java:50) at org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get ( ApplicationStateManagerImpl.java:60) at $ApplicationStateManager_10deb12de9a.get($ApplicationStateManager_10deb12de9a.java) at $ApplicationStateManager_10deb12de9b.get($ApplicationStateManager_10deb12de9b.java) at com.transparentpolitics.core.TransPolSessionManagerImpl.getTransPolSession (TransPolSessionManagerImpl.java:46)
RE: problems getting a session state object on start up (resend ..? )
I hope that works for you, unfortunately I'm out of ideas on this one. I'm not sure what you're trying to do makes sense, if I understand this correctly. It sounds like you are trying to directly access a session-scoped ASO as your eager-loaded service gets created, correct? The problem is you aren't going to have a web session without an associated request from the user, which isn't going to be there at the point the Hivemind registry is created. In my case, I needed to eager-load a service that needed the asoManager, but I didn't actually pull any ASOs out of it until later while processing user requests. If you're trying to setup some initial state in each ASO as it is created, couldn't you add an initialize() method to the ASO class and create it using invoke-factory? Sorry I don't have a better answer for you, Ben -Original Message- From: Patrick Moore [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:10 PM To: Tapestry users Subject: Re: problems getting a session state object on start up (resend ..? ) I ran across an email thread that just suggested to create the WebRequest/WebSession objects. So I am going to try that. If anyone has a better idea let me know. On 9/26/06, Patrick Moore [EMAIL PROTECTED] wrote: Hi Ben --- thanks for this info. I just tried what I think is your suggestion. I added the ApplicationInitializer interface to my demo.Samples service and added this method: public void initialize(HttpServlet arg0) { try { init(); } catch (IOException e) { e.printStackTrace(); } } and it doesn't seem to work quite completely. I get past the point of the infrastructure object ApplicationStateManager not being available. However, now I get a different exception. How does tapestry initialize a session? Is it possible for a background thread to initialize a tapestry session? -- java.lang.NullPointerException: Property 'webRequest' of OuterProxy for tapestry.globals.RequestGlobals( org.apache.tapestry.services.RequestGlobals) is null. at $WebRequest_10deb12def2._targetServiceProperty($WebRequest_10deb12def2.j ava) at $WebRequest_10deb12def2.getSession($WebRequest_10deb12def2.java) at $WebRequest_10deb12dec3.getSession($WebRequest_10deb12dec3.java) at $WebRequest_10deb12dec2.getSession($WebRequest_10deb12dec2.java) at org.apache.tapestry.engine.state.SessionScopeManager.getSession( SessionScopeManager.java:48) at org.apache.tapestry.engine.state.SessionScopeManager.get( SessionScopeManager.java:64) at $StateObjectPersistenceManager_10deb12deed.get($StateObjectPersistenceMa nager_10deb12deed.java) at $StateObjectPersistenceManager_10deb12deec.get($StateObjectPersistenceMa nager_10deb12deec.java) at org.apache.tapestry.engine.state.StateObjectManagerImpl.get( StateObjectManagerImpl.java:50) at org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get ( ApplicationStateManagerImpl.java:60) at $ApplicationStateManager_10deb12de9a.get($ApplicationStateManager_10deb1 2de9a.java) at $ApplicationStateManager_10deb12de9b.get($ApplicationStateManager_10deb1 2de9b.java) at com.transparentpolitics.core.TransPolSessionManagerImpl.getTransPolSessi on (TransPolSessionManagerImpl.java:46) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems getting a session state object on start up (resend ..? )
Hi Ben -- What I am trying to do is preload some sample data, *as if* a user has entered it. So I want to have a Session object that I am going to programatically configure. Also I will be doing some background processing on behalf of a user so I will need to have a session object for that case as well. In neither case do I have a HttpRequest -Pat On 9/26/06, Ben Dotte [EMAIL PROTECTED] wrote: I hope that works for you, unfortunately I'm out of ideas on this one. I'm not sure what you're trying to do makes sense, if I understand this correctly. It sounds like you are trying to directly access a session-scoped ASO as your eager-loaded service gets created, correct? The problem is you aren't going to have a web session without an associated request from the user, which isn't going to be there at the point the Hivemind registry is created. In my case, I needed to eager-load a service that needed the asoManager, but I didn't actually pull any ASOs out of it until later while processing user requests. If you're trying to setup some initial state in each ASO as it is created, couldn't you add an initialize() method to the ASO class and create it using invoke-factory? Sorry I don't have a better answer for you, Ben -Original Message- From: Patrick Moore [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:10 PM To: Tapestry users Subject: Re: problems getting a session state object on start up (resend ..? ) I ran across an email thread that just suggested to create the WebRequest/WebSession objects. So I am going to try that. If anyone has a better idea let me know. On 9/26/06, Patrick Moore [EMAIL PROTECTED] wrote: Hi Ben --- thanks for this info. I just tried what I think is your suggestion. I added the ApplicationInitializer interface to my demo.Samples service and added this method: public void initialize(HttpServlet arg0) { try { init(); } catch (IOException e) { e.printStackTrace(); } } and it doesn't seem to work quite completely. I get past the point of the infrastructure object ApplicationStateManager not being available. However, now I get a different exception. How does tapestry initialize a session? Is it possible for a background thread to initialize a tapestry session? -- java.lang.NullPointerException: Property 'webRequest' of OuterProxy for tapestry.globals.RequestGlobals( org.apache.tapestry.services.RequestGlobals) is null. at $WebRequest_10deb12def2._targetServiceProperty($WebRequest_10deb12def2.j ava) at $WebRequest_10deb12def2.getSession($WebRequest_10deb12def2.java) at $WebRequest_10deb12dec3.getSession($WebRequest_10deb12dec3.java) at $WebRequest_10deb12dec2.getSession($WebRequest_10deb12dec2.java) at org.apache.tapestry.engine.state.SessionScopeManager.getSession( SessionScopeManager.java:48) at org.apache.tapestry.engine.state.SessionScopeManager.get( SessionScopeManager.java:64) at $StateObjectPersistenceManager_10deb12deed.get($StateObjectPersistenceMa nager_10deb12deed.java) at $StateObjectPersistenceManager_10deb12deec.get($StateObjectPersistenceMa nager_10deb12deec.java) at org.apache.tapestry.engine.state.StateObjectManagerImpl.get( StateObjectManagerImpl.java:50) at org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get ( ApplicationStateManagerImpl.java:60) at $ApplicationStateManager_10deb12de9a.get($ApplicationStateManager_10deb1 2de9a.java) at $ApplicationStateManager_10deb12de9b.get($ApplicationStateManager_10deb1 2de9b.java) at com.transparentpolitics.core.TransPolSessionManagerImpl.getTransPolSessi on (TransPolSessionManagerImpl.java:46) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DatePicker error
No one knows what the problem could be? Each time a restart Tomcat it seems to be fine. Maybe it is so obvious no one is responding? On 9/19/06, Hajaansh [EMAIL PROTECTED] wrote: Sorry, the error message was formatted strangely the last time. This time I hope it is better... Any ideas anyone? Could it be how I started Tomcat? I started it with: set JAVA_OPTS=-Dorg.apache.tapestry.disable-caching=true set JPDA_ADDRESS=9045 set JPDA_TRANSPORT=dt_socket C:\Tomcat\apache-tomcat-5.5.17\bin\catalina jpda start and the error I got from the DatePicker is as follows (i hope this time the formating is not as bad as the last time...) org.apache.hivemind.ApplicationRuntimeException org.apache.xerces.parsers.XML11Configuration location: classpath:/org/apache/tapestry/form/DatePicker.jwc, line 36, column 71 31 parameter name=validators/ 32 parameter name=id property=idParameter default-value=id/ 33 34 asset name=defaultIcon path=DatePickerIcon.png/ 35 36 inject property=script type=script object=DatePicker.script/ 37inject property=translatedFieldSupport object=service: tapestry.form.TranslatedFieldSupport/ 38 inject property=validatableFieldSupport object=service: tapestry.form.ValidatableFieldSupport/ 39 40/component-specification java.lang.ClassCastException org.apache.xerces.parsers.XML11Configuration Stack Trace: - org.apache.xerces.parsers.SAXParser.init(Unknown Source) - org.apache.xerces.parsers.SAXParser.init(Unknown Source) - org.apache.xerces.jaxp.SAXParserImpl.init(Unknown Source) - org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) - org.apache.tapestry.util.xml.RuleDirectedParser.constructParser( RuleDirectedParser.java:426) - org.apache.tapestry.util.xml.RuleDirectedParser.parse( RuleDirectedParser.java:155) - org.apache.tapestry.util.xml.RuleDirectedParser.parse( RuleDirectedParser.java:130) - org.apache.tapestry.script.ScriptParser.parse(ScriptParser.java:105) - org.apache.tapestry.engine.DefaultScriptSource.parse( DefaultScriptSource.java:88) - org.apache.tapestry.engine.DefaultScriptSource.getScript( DefaultScriptSource.java:74) - $IScriptSource_10dc21a16a2.getScript($IScriptSource_10dc21a16a2.java) - org.apache.tapestry.enhance.DeferredScriptImpl.getScript( DeferredScriptImpl.java:54) - $DatePicker_699.getScript($DatePicker_699.java) - org.apache.tapestry.form.DatePicker.renderFormComponent(DatePicker.java:129) - org.apache.tapestry.form.AbstractFormComponent.renderComponent( AbstractFormComponent.java:126) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.AbstractComponent.renderBody( AbstractComponent.java:434) - org.apache.tapestry.form.FormSupportImpl.render( FormSupportImpl.java:486) - org.apache.tapestry.form.Form.renderComponent(Form.java:250) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.AbstractComponent.renderBody( AbstractComponent.java:434) - org.apache.tapestry.components.RenderBody.renderComponent( RenderBody.java:44) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.AbstractComponent.renderBody( AbstractComponent.java:434) - org.apache.tapestry.html.Body.renderComponent(Body.java:129) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.AbstractComponent.renderBody( AbstractComponent.java:434) - org.apache.tapestry.html.Shell.renderComponent(Shell.java:114) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.BaseComponent.renderComponent( BaseComponent.java:92) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.BaseComponent.renderComponent( BaseComponent.java:92) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:275) - org.apache.tapestry.engine.RequestCycle.renderPage( RequestCycle.java:366) - org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse (ResponseRendererImpl.java:71) - $ResponseRenderer_10dc21a16ae.renderResponse($ResponseRenderer_10dc21a16ae.java) - org.apache.tapestry.engine.HomeService.service(HomeService.java:65) - $IEngineService_10dc21a1719.service($IEngineService_10dc21a1719.java) - org.apache.tapestry.services.impl.EngineServiceOuterProxy.service( EngineServiceOuterProxy.java:66) - org.apache.tapestry.engine.AbstractEngine.service( AbstractEngine.java:248) - org.apache.tapestry.services.impl.InvokeEngineTerminator.service( InvokeEngineTerminator.java:60) - $WebRequestServicer_10dc21a16f8.service($WebRequestServicer_10dc21a16f8.java) - org.apache.tapestry.services.impl.DisableCachingFilter.service(
RE: problems getting a session state object on start up (resend ..? )
I remember spending an afternoon with a coworker once trying to do the same thing, feed a fake request/session to Tapestry for some similar reason. After a few hours we decided it was a silly idea and gave up on it... but good luck! Ben -Original Message- From: Patrick Moore [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:29 PM To: Tapestry users Subject: Re: problems getting a session state object on start up (resend ..? ) Hi Ben -- What I am trying to do is preload some sample data, *as if* a user has entered it. So I want to have a Session object that I am going to programatically configure. Also I will be doing some background processing on behalf of a user so I will need to have a session object for that case as well. In neither case do I have a HttpRequest -Pat On 9/26/06, Ben Dotte [EMAIL PROTECTED] wrote: I hope that works for you, unfortunately I'm out of ideas on this one. I'm not sure what you're trying to do makes sense, if I understand this correctly. It sounds like you are trying to directly access a session-scoped ASO as your eager-loaded service gets created, correct? The problem is you aren't going to have a web session without an associated request from the user, which isn't going to be there at the point the Hivemind registry is created. In my case, I needed to eager-load a service that needed the asoManager, but I didn't actually pull any ASOs out of it until later while processing user requests. If you're trying to setup some initial state in each ASO as it is created, couldn't you add an initialize() method to the ASO class and create it using invoke-factory? Sorry I don't have a better answer for you, Ben -Original Message- From: Patrick Moore [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:10 PM To: Tapestry users Subject: Re: problems getting a session state object on start up (resend ..? ) I ran across an email thread that just suggested to create the WebRequest/WebSession objects. So I am going to try that. If anyone has a better idea let me know. On 9/26/06, Patrick Moore [EMAIL PROTECTED] wrote: Hi Ben --- thanks for this info. I just tried what I think is your suggestion. I added the ApplicationInitializer interface to my demo.Samples service and added this method: public void initialize(HttpServlet arg0) { try { init(); } catch (IOException e) { e.printStackTrace(); } } and it doesn't seem to work quite completely. I get past the point of the infrastructure object ApplicationStateManager not being available. However, now I get a different exception. How does tapestry initialize a session? Is it possible for a background thread to initialize a tapestry session? -- java.lang.NullPointerException: Property 'webRequest' of OuterProxy for tapestry.globals.RequestGlobals( org.apache.tapestry.services.RequestGlobals) is null. at $WebRequest_10deb12def2._targetServiceProperty($WebRequest_10deb12def2.j ava) at $WebRequest_10deb12def2.getSession($WebRequest_10deb12def2.java) at $WebRequest_10deb12dec3.getSession($WebRequest_10deb12dec3.java) at $WebRequest_10deb12dec2.getSession($WebRequest_10deb12dec2.java) at org.apache.tapestry.engine.state.SessionScopeManager.getSession( SessionScopeManager.java:48) at org.apache.tapestry.engine.state.SessionScopeManager.get( SessionScopeManager.java:64) at $StateObjectPersistenceManager_10deb12deed.get($StateObjectPersistenceMa nager_10deb12deed.java) at $StateObjectPersistenceManager_10deb12deec.get($StateObjectPersistenceMa nager_10deb12deec.java) at org.apache.tapestry.engine.state.StateObjectManagerImpl.get( StateObjectManagerImpl.java:50) at org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get ( ApplicationStateManagerImpl.java:60) at $ApplicationStateManager_10deb12de9a.get($ApplicationStateManager_10deb1 2de9a.java) at $ApplicationStateManager_10deb12de9b.get($ApplicationStateManager_10deb1 2de9b.java) at com.transparentpolitics.core.TransPolSessionManagerImpl.getTransPolSessi on (TransPolSessionManagerImpl.java:46) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Doubt about implementing Ajax request
I solved the problem. now instead of having two components that intereact each other, I have a single component. Muche easier :D Thanks everyone for the help. We shall go on to the end. We shall fight in France We shall fightover the seas and oceans. We shall fight with growing confidence and growing strength in the air. We shall defend our island whatever the cost may be We shall fight on beaches, we shall fight on the landing grounds, We shall fight in the fields and in the streets, We shall fight on the hills. We shall never surrender. Winston Churchill
Re: DatePicker error
Ah, so that is the reason that no one answered :-) That might have been a good tip from you though! I have found a Xerces 2.6.2 jar which came with hibernate and I dont really have a clue if Tapestry (4.0) is using that one. I have also found one which came with my Java 1.5 installation. Any way to find out which Tapestry is using? I am not sure if just deleting the version that came with Hibernate would be a good idea or? Thanks for your quick response! On 9/26/06, DJ Gredler [EMAIL PROTECTED] wrote: I really have no idea, but maybe you have multiple versions of Xerces running around on your classpath, or just a single (wrong) version? These kinds of errors are always hard to debug... On 9/26/06, Hajaansh [EMAIL PROTECTED] wrote: No one knows what the problem could be? Each time a restart Tomcat it seems to be fine. Maybe it is so obvious no one is responding? On 9/19/06, Hajaansh [EMAIL PROTECTED] wrote: Sorry, the error message was formatted strangely the last time. This time I hope it is better... Any ideas anyone? Could it be how I started Tomcat? I started it with: set JAVA_OPTS=-Dorg.apache.tapestry.disable-caching=true set JPDA_ADDRESS=9045 set JPDA_TRANSPORT=dt_socket C:\Tomcat\apache-tomcat-5.5.17\bin\catalina jpda start and the error I got from the DatePicker is as follows (i hope this time the formating is not as bad as the last time...) org.apache.hivemind.ApplicationRuntimeException org.apache.xerces.parsers.XML11Configuration location: classpath:/org/apache/tapestry/form/DatePicker.jwc, line 36, column 71 31 parameter name=validators/ 32 parameter name=id property=idParameter default-value=id/ 33 34 asset name=defaultIcon path=DatePickerIcon.png/ 35 36 inject property=script type=script object=DatePicker.script / 37inject property=translatedFieldSupport object=service: tapestry.form.TranslatedFieldSupport/ 38 inject property=validatableFieldSupport object=service: tapestry.form.ValidatableFieldSupport/ 39 40/component-specification java.lang.ClassCastException org.apache.xerces.parsers.XML11Configuration Stack Trace: - org.apache.xerces.parsers.SAXParser.init(Unknown Source) - org.apache.xerces.parsers.SAXParser.init(Unknown Source) - org.apache.xerces.jaxp.SAXParserImpl.init(Unknown Source) - org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) - org.apache.tapestry.util.xml.RuleDirectedParser.constructParser( RuleDirectedParser.java:426) - org.apache.tapestry.util.xml.RuleDirectedParser.parse( RuleDirectedParser.java:155) - org.apache.tapestry.util.xml.RuleDirectedParser.parse( RuleDirectedParser.java:130) - org.apache.tapestry.script.ScriptParser.parse(ScriptParser.java :105) - org.apache.tapestry.engine.DefaultScriptSource.parse( DefaultScriptSource.java:88) - org.apache.tapestry.engine.DefaultScriptSource.getScript( DefaultScriptSource.java:74) - $IScriptSource_10dc21a16a2.getScript($IScriptSource_10dc21a16a2.java) - org.apache.tapestry.enhance.DeferredScriptImpl.getScript( DeferredScriptImpl.java:54) - $DatePicker_699.getScript($DatePicker_699.java) - org.apache.tapestry.form.DatePicker.renderFormComponent( DatePicker.java:129) - org.apache.tapestry.form.AbstractFormComponent.renderComponent( AbstractFormComponent.java:126) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.AbstractComponent.renderBody( AbstractComponent.java:434) - org.apache.tapestry.form.FormSupportImpl.render( FormSupportImpl.java:486) - org.apache.tapestry.form.Form.renderComponent(Form.java:250) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.AbstractComponent.renderBody( AbstractComponent.java:434) - org.apache.tapestry.components.RenderBody.renderComponent( RenderBody.java:44) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.AbstractComponent.renderBody( AbstractComponent.java:434) - org.apache.tapestry.html.Body.renderComponent(Body.java:129) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.AbstractComponent.renderBody( AbstractComponent.java:434) - org.apache.tapestry.html.Shell.renderComponent(Shell.java:114) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.BaseComponent.renderComponent( BaseComponent.java:92) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.BaseComponent.renderComponent( BaseComponent.java:92) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) -
Re: problems getting a session state object on start up (resend ..? )
I have given myself 1 more hour before I use my fallback solution. But it is just one of those things that you say there *has* to be a way to make it work! :-) -Pat On 9/26/06, Ben Dotte [EMAIL PROTECTED] wrote: I remember spending an afternoon with a coworker once trying to do the same thing, feed a fake request/session to Tapestry for some similar reason. After a few hours we decided it was a silly idea and gave up on it... but good luck! Ben
Re: problems getting a session state object on start up (resend ..? )
o.k. so it doesn't have to work... It doesn't look like there is any way to get to the Hivemind Registry until it has completely initialized ... which is too late. So I am going to have my stateObjectFactory check to see if it can get to the registry which is a little bit hacky and if it can't then create a session object that it tracks itself rather than using the applicationStateManager. There should be a better way! On 9/26/06, Patrick Moore [EMAIL PROTECTED] wrote: I have given myself 1 more hour before I use my fallback solution. But it is just one of those things that you say there *has* to be a way to make it work! :-) -Pat On 9/26/06, Ben Dotte [EMAIL PROTECTED] wrote: I remember spending an afternoon with a coworker once trying to do the same thing, feed a fake request/session to Tapestry for some similar reason. After a few hours we decided it was a silly idea and gave up on it... but good luck! Ben
Re: DatePicker error
I'm using Tap4 with Hibernate 3.1.2 without a problem and I see the following XML-related JARS in my lib directory: dom4j 1.6.1, saxpath 1.0FCS, Xerces Impl 2.6.2, XML Parser APIs 2.2.1. Not sure how you would find out what the official dependencies are. On 9/26/06, Hajaansh [EMAIL PROTECTED] wrote: Ah, so that is the reason that no one answered :-) That might have been a good tip from you though! I have found a Xerces 2.6.2 jar which came with hibernate and I dont really have a clue if Tapestry (4.0) is using that one. I have also found one which came with my Java 1.5 installation. Any way to find out which Tapestry is using? I am not sure if just deleting the version that came with Hibernate would be a good idea or? Thanks for your quick response! On 9/26/06, DJ Gredler [EMAIL PROTECTED] wrote: I really have no idea, but maybe you have multiple versions of Xerces running around on your classpath, or just a single (wrong) version? These kinds of errors are always hard to debug... On 9/26/06, Hajaansh [EMAIL PROTECTED] wrote: No one knows what the problem could be? Each time a restart Tomcat it seems to be fine. Maybe it is so obvious no one is responding? On 9/19/06, Hajaansh [EMAIL PROTECTED] wrote: Sorry, the error message was formatted strangely the last time. This time I hope it is better... Any ideas anyone? Could it be how I started Tomcat? I started it with: set JAVA_OPTS=-Dorg.apache.tapestry.disable-caching=true set JPDA_ADDRESS=9045 set JPDA_TRANSPORT=dt_socket C:\Tomcat\apache-tomcat-5.5.17\bin\catalina jpda start and the error I got from the DatePicker is as follows (i hope this time the formating is not as bad as the last time...) org.apache.hivemind.ApplicationRuntimeException org.apache.xerces.parsers.XML11Configuration location: classpath:/org/apache/tapestry/form/DatePicker.jwc, line 36, column 71 31 parameter name=validators/ 32 parameter name=id property=idParameter default-value=id/ 33 34 asset name=defaultIcon path=DatePickerIcon.png/ 35 36 inject property=script type=script object=DatePicker.script / 37inject property=translatedFieldSupport object=service: tapestry.form.TranslatedFieldSupport/ 38 inject property=validatableFieldSupport object=service: tapestry.form.ValidatableFieldSupport/ 39 40/component-specification java.lang.ClassCastException org.apache.xerces.parsers.XML11Configuration Stack Trace: - org.apache.xerces.parsers.SAXParser.init(Unknown Source) - org.apache.xerces.parsers.SAXParser.init(Unknown Source) - org.apache.xerces.jaxp.SAXParserImpl.init(Unknown Source) - org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser (Unknown Source) - org.apache.tapestry.util.xml.RuleDirectedParser.constructParser ( RuleDirectedParser.java:426) - org.apache.tapestry.util.xml.RuleDirectedParser.parse( RuleDirectedParser.java:155) - org.apache.tapestry.util.xml.RuleDirectedParser.parse( RuleDirectedParser.java:130) - org.apache.tapestry.script.ScriptParser.parse(ScriptParser.java :105) - org.apache.tapestry.engine.DefaultScriptSource.parse( DefaultScriptSource.java:88) - org.apache.tapestry.engine.DefaultScriptSource.getScript( DefaultScriptSource.java:74) - $IScriptSource_10dc21a16a2.getScript($IScriptSource_10dc21a16a2.java) - org.apache.tapestry.enhance.DeferredScriptImpl.getScript( DeferredScriptImpl.java:54) - $DatePicker_699.getScript($DatePicker_699.java) - org.apache.tapestry.form.DatePicker.renderFormComponent( DatePicker.java:129) - org.apache.tapestry.form.AbstractFormComponent.renderComponent( AbstractFormComponent.java:126) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.AbstractComponent.renderBody( AbstractComponent.java:434) - org.apache.tapestry.form.FormSupportImpl.render( FormSupportImpl.java:486) - org.apache.tapestry.form.Form.renderComponent(Form.java:250) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.AbstractComponent.renderBody( AbstractComponent.java:434) - org.apache.tapestry.components.RenderBody.renderComponent( RenderBody.java:44) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.AbstractComponent.renderBody( AbstractComponent.java:434) - org.apache.tapestry.html.Body.renderComponent(Body.java:129) - org.apache.tapestry.AbstractComponent.render( AbstractComponent.java:617) - org.apache.tapestry.AbstractComponent.renderBody( AbstractComponent.java:434) - org.apache.tapestry.html.Shell.renderComponent(Shell.java:114) - org.apache.tapestry.AbstractComponent.render(
Calling a page with parameters from other page
Guys, help me again. I have 2 pages. The problem is to call the method activateExternalPage on page B. This is what i have done so far, but no sucess. The page B loads without the values passed on the ExternalCallback. What is missing? - Page A @InjectPage(Edit) public abstract EditarForm getEditPage(); public EditarForm edit(String id,Produto produto,DetalheDTO detalhe){ setNextPage( new ExternalCallback(getEditPage(), new Object[] { produto, detalhe })); this.getRequestCycle().activate(Edit); return getEditPage(); } Page B implements IExternalPage and has the method public void activateExternalPage(Object[] parameters, IRequestCycle cycle) The problem is that the method activateExternalPage -- We shall go on to the end. We shall fight in France We shall fightover the seas and oceans. We shall fight with growing confidence and growing strength in the air. We shall defend our island whatever the cost may be We shall fight on beaches, we shall fight on the landing grounds, We shall fight in the fields and in the streets, We shall fight on the hills. We shall never surrender. Winston Churchill
Components containing dynamic number of component
Hi, I am pritty new to tapestry and I am working with tapestry 4.0.2. I have a question about custom components. I have a side column in my application that has a few lines of html and then it should contain one or many components depending on where in the application I use it. my question is: How do I do this? My html file for left column look like this : html body jwcid=$content$ link href=/default/css/leftcolumn.css rel=stylesheet type=text/css / div id=leftColumn div id=innerLeftColumn !-- Login Component -- !-- Article list component -- /div /div /body /html Do I use a abstractComponent and use the renderComponent(IMarkupWriter writer, IRequestCycle cycle) and can the renderBody(writer, cycle) render only one or many components? Thank you for your patience with trivial questions and for any suggestions on how to solve my problems Jacob -- View this message in context: http://www.nabble.com/Components-containing-dynamic-number-of-component-tf2340643.html#a6514321 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: Calling a page with parameters from other page
If I'm understanding the question correctly, you probably want to do: @InjectObject( engine-service:external ) public abstract IEngineService getExternalService(); ExternalServiceParameter param = new ExternalServiceParameter( pageName, new Object[] { ... } ); ILink link = this.getExternalService().getLink( false, param ); return link; Returning the external link to the page redirects to the page. On 9/26/06, Daniel Castro [EMAIL PROTECTED] wrote: Guys, help me again. I have 2 pages. The problem is to call the method activateExternalPage on page B. This is what i have done so far, but no sucess. The page B loads without the values passed on the ExternalCallback. What is missing? - Page A @InjectPage(Edit) public abstract EditarForm getEditPage(); public EditarForm edit(String id,Produto produto,DetalheDTO detalhe){ setNextPage( new ExternalCallback(getEditPage(), new Object[] { produto, detalhe })); this.getRequestCycle().activate(Edit); return getEditPage(); } Page B implements IExternalPage and has the method public void activateExternalPage(Object[] parameters, IRequestCycle cycle) The problem is that the method activateExternalPage -- We shall go on to the end. We shall fight in France We shall fightover the seas and oceans. We shall fight with growing confidence and growing strength in the air. We shall defend our island whatever the cost may be We shall fight on beaches, we shall fight on the landing grounds, We shall fight in the fields and in the streets, We shall fight on the hills. We shall never surrender. Winston Churchill
Re: Calling a page with parameters from other page
The idea is to load a page to edit the informations associated with a product. So I have the search page with a link to edit each row of the result on an edit page. If i click this link I will load a page form with the actual informations filling the form. The point is, how to do that? The DTO that stores the information of the row selected I have it ready and functional. But to load a page with the values on the DTO is what I am interested. I hope that this clears any doubts concerning what I was, previously, unable to explain. :) On 9/26/06, DJ Gredler [EMAIL PROTECTED] wrote: If I'm understanding the question correctly, you probably want to do: @InjectObject( engine-service:external ) public abstract IEngineService getExternalService(); ExternalServiceParameter param = new ExternalServiceParameter( pageName, new Object[] { ... } ); ILink link = this.getExternalService().getLink( false, param ); return link; Returning the external link to the page redirects to the page. On 9/26/06, Daniel Castro [EMAIL PROTECTED] wrote: Guys, help me again. I have 2 pages. The problem is to call the method activateExternalPage on page B. This is what i have done so far, but no sucess. The page B loads without the values passed on the ExternalCallback. What is missing? - Page A @InjectPage(Edit) public abstract EditarForm getEditPage(); public EditarForm edit(String id,Produto produto,DetalheDTO detalhe){ setNextPage( new ExternalCallback(getEditPage(), new Object[] { produto, detalhe })); this.getRequestCycle().activate(Edit); return getEditPage(); } Page B implements IExternalPage and has the method public void activateExternalPage(Object[] parameters, IRequestCycle cycle) The problem is that the method activateExternalPage -- We shall go on to the end. We shall fight in France We shall fightover the seas and oceans. We shall fight with growing confidence and growing strength in the air. We shall defend our island whatever the cost may be We shall fight on beaches, we shall fight on the landing grounds, We shall fight in the fields and in the streets, We shall fight on the hills. We shall never surrender. Winston Churchill -- We shall go on to the end. We shall fight in France We shall fightover the seas and oceans. We shall fight with growing confidence and growing strength in the air. We shall defend our island whatever the cost may be We shall fight on beaches, we shall fight on the landing grounds, We shall fight in the fields and in the streets, We shall fight on the hills. We shall never surrender. Winston Churchill
Re: What does your project directory structure look like?
I have found the Sysdeo plugin works pretty well. I have found some hair pulling moments. But the key seems to have been making sure to have your project sources and projects included in the Tomcat path. In eclipse, look under Windows|Preferences...|Tomcat w.r.t maven I use it a lot but I am always finding it a hair pulling experience. For example, how come maven doesn't have a meaningful '-help' available? How come there doesn't seem to be any way of asking for a list of all plugins on all the repositories? etc..( :-P ) The learning curve and magic knowledge needed is still high with maven. If you know ant , just stick with ant for a while until you get tapestry going! -Pat
Re: Calling a page with parameters from other page
I found a solution, dont know if there is other way to do it but I get the page, set the fields and throw the page inside a PageRedirectException On 9/26/06, Daniel Castro [EMAIL PROTECTED] wrote: The idea is to load a page to edit the informations associated with a product. So I have the search page with a link to edit each row of the result on an edit page. If i click this link I will load a page form with the actual informations filling the form. The point is, how to do that? The DTO that stores the information of the row selected I have it ready and functional. But to load a page with the values on the DTO is what I am interested. I hope that this clears any doubts concerning what I was, previously, unable to explain. :) On 9/26/06, DJ Gredler [EMAIL PROTECTED] wrote: If I'm understanding the question correctly, you probably want to do: @InjectObject( engine-service:external ) public abstract IEngineService getExternalService(); ExternalServiceParameter param = new ExternalServiceParameter( pageName, new Object[] { ... } ); ILink link = this.getExternalService().getLink( false, param ); return link; Returning the external link to the page redirects to the page. On 9/26/06, Daniel Castro [EMAIL PROTECTED] wrote: Guys, help me again. I have 2 pages. The problem is to call the method activateExternalPage on page B. This is what i have done so far, but no sucess. The page B loads without the values passed on the ExternalCallback. What is missing? - Page A @InjectPage(Edit) public abstract EditarForm getEditPage(); public EditarForm edit(String id,Produto produto,DetalheDTO detalhe){ setNextPage( new ExternalCallback(getEditPage(), new Object[] { produto, detalhe })); this.getRequestCycle().activate(Edit); return getEditPage(); } Page B implements IExternalPage and has the method public void activateExternalPage(Object[] parameters, IRequestCycle cycle) The problem is that the method activateExternalPage -- We shall go on to the end. We shall fight in France We shall fightover the seas and oceans. We shall fight with growing confidence and growing strength in the air. We shall defend our island whatever the cost may be We shall fight on beaches, we shall fight on the landing grounds, We shall fight in the fields and in the streets, We shall fight on the hills. We shall never surrender. Winston Churchill -- We shall go on to the end. We shall fight in France We shall fightover the seas and oceans. We shall fight with growing confidence and growing strength in the air. We shall defend our island whatever the cost may be We shall fight on beaches, we shall fight on the landing grounds, We shall fight in the fields and in the streets, We shall fight on the hills. We shall never surrender. Winston Churchill -- We shall go on to the end. We shall fight in France We shall fightover the seas and oceans. We shall fight with growing confidence and growing strength in the air. We shall defend our island whatever the cost may be We shall fight on beaches, we shall fight on the landing grounds, We shall fight in the fields and in the streets, We shall fight on the hills. We shall never surrender. Winston Churchill
tapernate NonUniqueObjectException
Hi List Members, I am having troubles setting up an application with tapernate. When the user is logging into my application, a Page ExtPage is injected, initialized, some persistent objects are loaded and the page is returned to the user. Those persistant object are made persistant with tapernates reconnect- update strategy. This works great while the user works inside that ExtPage or correctly loggs of. If however the user just logs in, hits the back button in the browser and logs in again, the Injection of the Page fails: NonUniqueObjectException a different object with the same identifier value was already associated with the session. While I can somehow understand why this error happens, I'd like to somehow find a way to catch it. Is there maybe a way to force tapestry to inject new instances of a page ? That will not contain any persistant objects ? Thanks for any help Moritz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Components containing dynamic number of component
Hi Jacob, I Think you have to work on a model that represents better your column... With the the For Component, and a little of polymorphism applied to components and its models you can do It easily. I don't think you have to work with AbstractComponent, RenderBody, or that kind of thing... A tip... always try to work with components hierarchy... When you work with Tapestry, think on Tapestry approach... the things almost are simpler than you think... ;) Mael On 9/26/06, jake123 [EMAIL PROTECTED] wrote: Hi, I am pritty new to tapestry and I am working with tapestry 4.0.2. I have a question about custom components. I have a side column in my application that has a few lines of html and then it should contain one or many components depending on where in the application I use it. my question is: How do I do this? My html file for left column look like this : html body jwcid=$content$ link href=/default/css/leftcolumn.css rel=stylesheet type=text/css / div id=leftColumn div id=innerLeftColumn !-- Login Component -- !-- Article list component -- /div /div /body /html Do I use a abstractComponent and use the renderComponent(IMarkupWriter writer, IRequestCycle cycle) and can the renderBody(writer, cycle) render only one or many components? Thank you for your patience with trivial questions and for any suggestions on how to solve my problems Jacob -- View this message in context: http://www.nabble.com/Components-containing-dynamic-number-of-component-tf2340643.html#a6514321 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]