Re: T5: Service and thread
Angelo, Additionally, if you have a job that you want to schedule to do this download, you could use a scheduler such as Quartz to kick off the job without any intervention. Andy On Thu, 2008-01-24 at 01:45 -0800, Angelo Chen wrote: > Hi, > > I have a service which does some file download that takes quite long, I'd > like to run the service in a separate thread, possible with Tapestry Ioc? or > I have to manage the thread manually? Thanks, > > A.C. > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T 5.0.9 ClassNotFoundException
Please add an issue with all relevant code and stack traces. On Jan 24, 2008 10:34 AM, Marcelo Lotif <[EMAIL PROTECTED]> wrote: > I found the solution to the 2nd problem myself, was just a null parameter > that i was passing and tapestry seems not to allow this anymore(at least on > this case). But i still can't fix the the 1st problem... here's the stack > trace: > > An unexpected application exception has occurred. > > org.apache.tapestry.ioc.internal.util.TapestryException > java.lang.ClassNotFoundException: int[] > location > classpath:br/com/javasoftware/erp/pages/consultas/CstEstoque.tml, line 41, > column 64 > 36 Gerar PDF > 37 > 38 > 39 > 40 41 labels="pieLabels" values="pieValues" popup="popupSize" /> > 42 43 remove="iduniq,datcad,conta_pc,tipoimposto" reorder="descri, total" > > 44 > 45 46 format="literal:currency" /> > java.lang.ClassNotFoundException > int[]Stack trace > java.lang.Class.forName0(Native Method) > java.lang.Class.forName(Class.java:242) > org.apache.tapestry.internal.services.ComponentClassCacheImpl.forName( > ComponentClassCacheImpl.java:50) > org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.readParameter > (InternalComponentResourcesImpl.java:232) > br.com.javasoftware.erp.components.PieChart._$read_parameter_popup( > PieChart.java) > br.com.javasoftware.erp.components.PieChart.beginRender(PieChart.java:86) > br.com.javasoftware.erp.components.PieChart.beginRender(PieChart.java) > > org.apache.tapestry.internal.structure.ComponentPageElementImpl$10$1.run( > ComponentPageElementImpl.java:330) > org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke( > ComponentPageElementImpl.java:872) > org.apache.tapestry.internal.structure.ComponentPageElementImpl.access$100( > ComponentPageElementImpl.java:56) > org.apache.tapestry.internal.structure.ComponentPageElementImpl$10.render( > ComponentPageElementImpl.java:334) > org.apache.tapestry.internal.services.RenderQueueImpl.run( > RenderQueueImpl.java:58) > org.apache.tapestry.internal.services.PageRenderQueueImpl.render( > PageRenderQueueImpl.java:63) > org.apache.tapestry.services.TapestryModule$19.renderMarkup( > TapestryModule.java:1280) > org.apache.tapestry.services.TapestryModule$23.renderMarkup( > TapestryModule.java:1388) > org.apache.tapestry.services.TapestryModule$22.renderMarkup( > TapestryModule.java:1369) > org.apache.tapestry.services.TapestryModule$21.renderMarkup( > TapestryModule.java:1351) > org.apache.tapestry.services.TapestryModule$20.renderMarkup( > TapestryModule.java:1333) > org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarkup > (PageMarkupRendererImpl.java:55) > org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse > (PageResponseRendererImpl.java:57) > org.apache.tapestry.internal.services.PageRenderRequestHandlerImpl.handle( > PageRenderRequestHandlerImpl.java:57) > org.apache.tapestry.internal.services.PageRenderDispatcher.dispatch( > PageRenderDispatcher.java:66) > org.apache.tapestry.services.TapestryModule$13.service(TapestryModule.java > :921) > br.com.javasoftware.erp.services.AppModule$1.service(AppModule.java:83) > br.com.javasoftware.erp.services.AppModule$2.service(AppModule.java:121) > org.apache.tapestry.internal.services.LocalizationFilter.service( > LocalizationFilter.java:43) > org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java > :513) > org.apache.tapestry.services.TapestryModule$2.service(TapestryModule.java > :488) > org.apache.tapestry.internal.services.IgnoredPathsFilter.service( > IgnoredPathsFilter.java:53) > org.apache.tapestry.internal.services.StaticFilesFilter.service( > StaticFilesFilter.java:79) > org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke( > CheckForUpdatesFilter.java:93) > org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke( > CheckForUpdatesFilter.java:84) > org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead( > ConcurrentBarrier.java:77) > org.apache.tapestry.internal.services.CheckForUpdatesFilter.service( > CheckForUpdatesFilter.java:106) > org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java > :901) > org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:164) > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( > WebApplicationHandler.java:821) > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch( > WebApplicationHandler.java:471) > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) > org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > org.mortbay.jetty.servlet.WebApplicationContext.handle( > WebApplicationContext.java:633) > org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > org.mortbay.http.HttpServer.service(HttpServer.java:909) > org.mortbay.http.HttpConnection.service(HttpConnection.java:820) > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) > org.mortbay.http.HttpConnection.handle
Re: T5: Output raw values in label
On Jan 24, 2008 4:52 PM, Kevin Menard <[EMAIL PROTECTED]> wrote: > I like writing emails to the list, because most times 30 seconds after I do, > I come up with the solution. > > Anyway, for those interested, the answer was to just include the text in the > body of the Label component. Wrapping that up in an OutputRaw did the > trick. Well, I did only write that code this morning ... > > -- > Kevin > > > On 1/24/08 7:43 PM, in article [EMAIL PROTECTED], "Kevin > > Menard" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I've had the need to convert newlines into tags, much like the T4 > > Insert component can. I needed to do this in a label for a radio button, so > > I decided to write a new binding that will do the conversion for me. This > > portion works fine and I can bind the value to the label parameter of the > > radio. The problem I'm running into is that the Radio component uses > > write() rather than writeRaw(), which means my translated string still > > doesn't render correctly. > > > > Is there a straightforward way to workaround things like this? It's come up > > a few times before as well, where I needed to output raw but the component > > doesn't do so. > > > > The obvious solution is to write my own Label component, but this strikes me > > as something that might be configurable somehow. > > > > Any help would be appreciated. > > > > Thanks, > > Kevin > > > > Kevin Menard > > Servprise International, Inc. > > +1 508.892.3823 x308 > > > > > > > > - > > 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] > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Output raw values in label
I like writing emails to the list, because most times 30 seconds after I do, I come up with the solution. Anyway, for those interested, the answer was to just include the text in the body of the Label component. Wrapping that up in an OutputRaw did the trick. -- Kevin On 1/24/08 7:43 PM, in article [EMAIL PROTECTED], "Kevin Menard" <[EMAIL PROTECTED]> wrote: > Hi, > > I've had the need to convert newlines into tags, much like the T4 > Insert component can. I needed to do this in a label for a radio button, so > I decided to write a new binding that will do the conversion for me. This > portion works fine and I can bind the value to the label parameter of the > radio. The problem I'm running into is that the Radio component uses > write() rather than writeRaw(), which means my translated string still > doesn't render correctly. > > Is there a straightforward way to workaround things like this? It's come up > a few times before as well, where I needed to output raw but the component > doesn't do so. > > The obvious solution is to write my own Label component, but this strikes me > as something that might be configurable somehow. > > Any help would be appreciated. > > Thanks, > Kevin > > Kevin Menard > Servprise International, Inc. > +1 508.892.3823 x308 > > > > - > 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]
T5: Output raw values in label
Hi, I've had the need to convert newlines into tags, much like the T4 Insert component can. I needed to do this in a label for a radio button, so I decided to write a new binding that will do the conversion for me. This portion works fine and I can bind the value to the label parameter of the radio. The problem I'm running into is that the Radio component uses write() rather than writeRaw(), which means my translated string still doesn't render correctly. Is there a straightforward way to workaround things like this? It's come up a few times before as well, where I needed to output raw but the component doesn't do so. The obvious solution is to write my own Label component, but this strikes me as something that might be configurable somehow. Any help would be appreciated. Thanks, Kevin Kevin Menard Servprise International, Inc. +1 508.892.3823 x308 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Visit Object to HttpSession to access aside tapestry
Hi, I have a web application that use tapestry framework to manage sessions, and I want to setup Java Web Start. I want a servlet to create a jnlp file generator according to user, but I need know whether this user have already a tapestry session (Visit object), or not. If this user have one session, I take specific user parameters in Visit object's user to transmit to jnlp file generated, otherwise I generate a default jnlp file. In my servlet I get HttpSession's user and I need to find corresponding Visit object. How to make? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Eclipse unhappy with TML file that has DOCTYPE
I believe you just need to add the namespace to an outer element... for instance in a page you might have http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Josh On Jan 24, 2008 2:35 PM, Franz Amador <[EMAIL PROTECTED]> wrote: > I'm hoping someone can tell me how to configure Eclipse so it doesn't > complain about the "t:" items in a .tml file that has a DOCTYPE. For > example, this file (Start.tml): > > >"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > > >${message:page-title} > > >${message:page-title} >Logout > > > > If I remove the DOCTYPE block, Eclipse is happy (properly speaking, > Eclipse's XML editor), but when I add it, I get complaints about all the > "t:" entries. The "xmlns:t" attribute, for example, gets this complaint: > >Attribute "xmlns:t" must be declared for element type "html". > > Do other people see this? Is there actually something wrong with the > file, or do I have Eclipse misconfigured? Thanks! > > > -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.
T41: dojo form validation on submit problem, Firefox
Hi, I have a problem with form validation i T41. I have one simple login with username/password (required validators on them) and one simple Submit button. So, in IE, when I click Submit, I'm getting message "You must enter ... bla bla", also, when I hit Enter keyboard key when cursor is on username validators are doing their job fine. But problem is with Mozilla Firefox ... behaviour of Submit button is the same as in IE, but ENTER key doesn't work in Firefox. On ENTER form goes with request posting without any validation :-( Any suggestions or ideas ? Thanks. Marko. -- View this message in context: http://www.nabble.com/T41%3A-dojo-form-validation-on-submit-problem%2C-Firefox-tp15077505p15077505.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Drawing error with Tapestry Dojo Dialog Component
Hi, I'm having a drawing error while trying to learn how to use the Tapestry Dialog component from Dojo. http://tapestry.apache.org/tapestry4.1/components/dojo/dialog.html Basically I have an initially hidden dialog box that I'd like to show after a DirectLink component is clicked. The dialog box appearing works fine, but any content I put inside the box is drawn outside of it by browsers (tested with Firefox 2.0.0.11 and Safari 3.0.4). If I refresh the page manually, then the dialog box content appears inside correctly. I have read the above link carefully, but still can't see what I'm doing wrong. Ideally I'd like to have something simple like the "Show Dialog" DirectLink in the TimeTracker application. http://opencomponentry.com:8080/timetracker/app Below is my code, any help would be greatly appreciated thanks :) NOTE: Although I wouldn't make the boolean that decides whether or not the dialog is hidden a "HomePage" class attribute in practice, I did in this example to simplify the code. Thanks again! Home.html .dialog { background-color: white; width: 400px; height: 300px; } Show Dialog Sample dialog content HomePage.java package pages; import org.apache.tapestry.IRequestCycle; import org.apache.tapestry.html.BasePage; public abstract class HomePage extends BasePage { private boolean dialogHidden = true; public boolean getDialogHidden() { return dialogHidden; } public void setDialogHidden(boolean flag) { dialogHidden = flag; } public void onShowDialog(IRequestCycle cycle) { setDialogHidden(false); } public void onHideDialog(IRequestCycle cycle) { setDialogHidden(true); } } -- View this message in context: http://www.nabble.com/Drawing-error-with-Tapestry-Dojo-Dialog-Component-tp15076602p15076602.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxStatus
ok, thanks, work fine, but I use dojo.event.connect(tapestry, 'loadContent', function(id, node, element){xxx}); to hide the status, the problem is when the response is empty function to hide status not shoot, what you suggest to solve this... Andreas Andreou wrote: > > no direct way - however, you can get notified when the following are > executed: > tapestry.linkOnClick(url, id, isJson, eventName) > tapestry.form.submitAsync(form, content, submitName, parms) > > and use their id or the form argument > > Something like: > dojo.event.connect(tapestry,'linkOnClick', function(url, id, isJson, > eventName) { /* custom code */} ); > > > On Jan 21, 2008 7:42 PM, DR_GLoPeL_BouCa <[EMAIL PROTECTED]> wrote: >> >> Hi people, how i can get ID of component who shoot ajax request, i what >> to >> show a ajaxstatus not for all component with async=true, only for >> component >> that I specific . >> -- >> View this message in context: >> http://www.nabble.com/AjaxStatus-tp15002537p15002537.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > -- > Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr > Tapestry / Tacos developer > Open Source / JEE Consulting > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/AjaxStatus-tp15002537p15074485.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using EventListener annotation
Thank for the help. Adding @Shell and @Body components resolved the problem. Marcus Schulte wrote: > > 1. Make sure, your template includes a @Shell and a @Body component as > shown > here: http://tapestry.apache.org/tapestry4.1/ajax/basics.html > > 2. please also try to keep your page-class abstract and remove the > auto-generated stubs of methods. Tapestry generates a concrete class for > each component/page at runtime (should not be the cause of your trouble, > though). > > 2008/1/24, HBKTron <[EMAIL PROTECTED]>: >> >> >> Hi, >> >> I'm currently using Tapestry 4.1.3 and I'm trying to copy the >> EventListener >> annotation example from: >> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html. >> >> The example shows how a method can be annotated with EventListener to >> respond to DOM events. Unfortunately the EventListener method is never >> being called when I try to run it. Everything compiles ok, and I've been >> able to use other Tapestry functionality (such as submit button >> listeners) >> on this page. Below is my code, can anyone help me out? >> >> Home.html >>... >> >> Big brother is watching you. >> >>... >> >> Home.page >> >> > "-//Apache Software Foundation//Tapestry Specification 4.0//EN" >> "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";> >> >> >> >> HomePage.java >> package pages; >> >> import org.apache.tapestry.annotations.EventListener; >> import org.apache.tapestry.event.BrowserEvent; >> import org.apache.tapestry.html.BasePage; >> import org.apache.tapestry.record.PropertyChangeObserver; >> >> public class HomePage extends BasePage { >> >> @Override >> public String getClientId() { >> // TODO Auto-generated method stub >> return null; >> } >> >> @Override >> public void setClientId(String arg0) { >> // TODO Auto-generated method stub >> >> } >> >> public PropertyChangeObserver getPropertyChangeObserver() { >> // TODO Auto-generated method stub >> return null; >> } >> >> @EventListener(elements = "myFavoriteDiv", events = >> "onmouseover") >> public void watchText(BrowserEvent e) { >> System.out.println("mouseover detected"); >> System.out.println(e); >> } >> >> } >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/Problem-using-EventListener-annotation-tp15072602p15072602.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Marcus Schulte > http://marcus-schulte.blogspot.com > > -- View this message in context: http://www.nabble.com/Problem-using-EventListener-annotation-tp15072602p15074453.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using EventListener annotation
1. Make sure, your template includes a @Shell and a @Body component as shown here: http://tapestry.apache.org/tapestry4.1/ajax/basics.html 2. please also try to keep your page-class abstract and remove the auto-generated stubs of methods. Tapestry generates a concrete class for each component/page at runtime (should not be the cause of your trouble, though). 2008/1/24, HBKTron <[EMAIL PROTECTED]>: > > > Hi, > > I'm currently using Tapestry 4.1.3 and I'm trying to copy the > EventListener > annotation example from: > http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html. > > The example shows how a method can be annotated with EventListener to > respond to DOM events. Unfortunately the EventListener method is never > being called when I try to run it. Everything compiles ok, and I've been > able to use other Tapestry functionality (such as submit button listeners) > on this page. Below is my code, can anyone help me out? > > Home.html >... > > Big brother is watching you. > >... > > Home.page > >"-//Apache Software Foundation//Tapestry Specification 4.0//EN" > "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";> > > > > HomePage.java > package pages; > > import org.apache.tapestry.annotations.EventListener; > import org.apache.tapestry.event.BrowserEvent; > import org.apache.tapestry.html.BasePage; > import org.apache.tapestry.record.PropertyChangeObserver; > > public class HomePage extends BasePage { > > @Override > public String getClientId() { > // TODO Auto-generated method stub > return null; > } > > @Override > public void setClientId(String arg0) { > // TODO Auto-generated method stub > > } > > public PropertyChangeObserver getPropertyChangeObserver() { > // TODO Auto-generated method stub > return null; > } > > @EventListener(elements = "myFavoriteDiv", events = "onmouseover") > public void watchText(BrowserEvent e) { > System.out.println("mouseover detected"); > System.out.println(e); > } > > } > > > > -- > View this message in context: > http://www.nabble.com/Problem-using-EventListener-annotation-tp15072602p15072602.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Marcus Schulte http://marcus-schulte.blogspot.com
Problem using EventListener annotation
Hi, I'm currently using Tapestry 4.1.3 and I'm trying to copy the EventListener annotation example from: http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html. The example shows how a method can be annotated with EventListener to respond to DOM events. Unfortunately the EventListener method is never being called when I try to run it. Everything compiles ok, and I've been able to use other Tapestry functionality (such as submit button listeners) on this page. Below is my code, can anyone help me out? Home.html ... Big brother is watching you. ... Home.page http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";> HomePage.java package pages; import org.apache.tapestry.annotations.EventListener; import org.apache.tapestry.event.BrowserEvent; import org.apache.tapestry.html.BasePage; import org.apache.tapestry.record.PropertyChangeObserver; public class HomePage extends BasePage { @Override public String getClientId() { // TODO Auto-generated method stub return null; } @Override public void setClientId(String arg0) { // TODO Auto-generated method stub } public PropertyChangeObserver getPropertyChangeObserver() { // TODO Auto-generated method stub return null; } @EventListener(elements = "myFavoriteDiv", events = "onmouseover") public void watchText(BrowserEvent e) { System.out.println("mouseover detected"); System.out.println(e); } } -- View this message in context: http://www.nabble.com/Problem-using-EventListener-annotation-tp15072602p15072602.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: have i missed anithing ?
If you're following that closely, you may want to join the dev list ;-) 5.0.8 was a failed release. 5.0.9 is still pending outcome. That bumps trunk up to 5.0.10. -- Kevin On 1/24/08 2:31 PM, in article [EMAIL PROTECTED], "Sven Homburg" <[EMAIL PROTECTED]> wrote: > > i missing the release 5.0.8 and 5.0.9 an tapestry site > the trunk changed today to 5.0.10 !? > > - > best regards > Sven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
have i missed anithing ?
i missing the release 5.0.8 and 5.0.9 an tapestry site the trunk changed today to 5.0.10 !? - best regards Sven -- View this message in context: http://www.nabble.com/have-i-missed-anithing---tp15072509p15072509.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T 5.0.9 ClassNotFoundException
I found the solution to the 2nd problem myself, was just a null parameter that i was passing and tapestry seems not to allow this anymore(at least on this case). But i still can't fix the the 1st problem... here's the stack trace: An unexpected application exception has occurred. org.apache.tapestry.ioc.internal.util.TapestryException java.lang.ClassNotFoundException: int[] location classpath:br/com/javasoftware/erp/pages/consultas/CstEstoque.tml, line 41, column 64 36 Gerar PDF 37 38 39 40 42 44 45 java.lang.ClassNotFoundException int[]Stack trace java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:242) org.apache.tapestry.internal.services.ComponentClassCacheImpl.forName( ComponentClassCacheImpl.java:50) org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.readParameter (InternalComponentResourcesImpl.java:232) br.com.javasoftware.erp.components.PieChart._$read_parameter_popup( PieChart.java) br.com.javasoftware.erp.components.PieChart.beginRender(PieChart.java:86) br.com.javasoftware.erp.components.PieChart.beginRender(PieChart.java) org.apache.tapestry.internal.structure.ComponentPageElementImpl$10$1.run( ComponentPageElementImpl.java:330) org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke( ComponentPageElementImpl.java:872) org.apache.tapestry.internal.structure.ComponentPageElementImpl.access$100( ComponentPageElementImpl.java:56) org.apache.tapestry.internal.structure.ComponentPageElementImpl$10.render( ComponentPageElementImpl.java:334) org.apache.tapestry.internal.services.RenderQueueImpl.run( RenderQueueImpl.java:58) org.apache.tapestry.internal.services.PageRenderQueueImpl.render( PageRenderQueueImpl.java:63) org.apache.tapestry.services.TapestryModule$19.renderMarkup( TapestryModule.java:1280) org.apache.tapestry.services.TapestryModule$23.renderMarkup( TapestryModule.java:1388) org.apache.tapestry.services.TapestryModule$22.renderMarkup( TapestryModule.java:1369) org.apache.tapestry.services.TapestryModule$21.renderMarkup( TapestryModule.java:1351) org.apache.tapestry.services.TapestryModule$20.renderMarkup( TapestryModule.java:1333) org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarkup (PageMarkupRendererImpl.java:55) org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse (PageResponseRendererImpl.java:57) org.apache.tapestry.internal.services.PageRenderRequestHandlerImpl.handle( PageRenderRequestHandlerImpl.java:57) org.apache.tapestry.internal.services.PageRenderDispatcher.dispatch( PageRenderDispatcher.java:66) org.apache.tapestry.services.TapestryModule$13.service(TapestryModule.java :921) br.com.javasoftware.erp.services.AppModule$1.service(AppModule.java:83) br.com.javasoftware.erp.services.AppModule$2.service(AppModule.java:121) org.apache.tapestry.internal.services.LocalizationFilter.service( LocalizationFilter.java:43) org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java :513) org.apache.tapestry.services.TapestryModule$2.service(TapestryModule.java :488) org.apache.tapestry.internal.services.IgnoredPathsFilter.service( IgnoredPathsFilter.java:53) org.apache.tapestry.internal.services.StaticFilesFilter.service( StaticFilesFilter.java:79) org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke( CheckForUpdatesFilter.java:93) org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke( CheckForUpdatesFilter.java:84) org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead( ConcurrentBarrier.java:77) org.apache.tapestry.internal.services.CheckForUpdatesFilter.service( CheckForUpdatesFilter.java:106) org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java :901) org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:164) org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) org.mortbay.jetty.servlet.WebApplicationHandler.dispatch( WebApplicationHandler.java:471) org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) org.mortbay.http.HttpContext.handle(HttpContext.java:1530) org.mortbay.jetty.servlet.WebApplicationContext.handle( WebApplicationContext.java:633) org.mortbay.http.HttpContext.handle(HttpContext.java:1482) org.mortbay.http.HttpServer.service(HttpServer.java:909) org.mortbay.http.HttpConnection.service(HttpConnection.java:820) org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 2008/1/24, Marcelo Lotif <[EMAIL PROTECTED]>: > > And i am getting a null pointer exception too, maybe related with the > error that Geoff Callender posted few hours ago about a NPE on the TextField > Component. > > Here's the stack trace: > > An unexpected applicati
Re: T5 tapestry5-acegi salt source not overridable
Hi, On Jan 21, 2008 7:59 PM, Franz Amador <[EMAIL PROTECTED]> wrote: > It looks to me like the tapestry5-acegi module hard-codes the password salt > source to be SystemWideSaltSource. I can change the system-wide salt via > acegi.password.salt, but there is no corresponding acegi.salt.source > property. Having a system-wide salt is better than having no salt, but it > isn't as strong as having a different salt for each user. Is there a way I > can put in a request for supporting a new acegi.salt.source config property? > I didn't see a mailing list or issue tracker on the tapestry5-acegi site > (http://www.localhost.nu/java/tapestry5-acegi/). Is here an okay place to > discuss this? Sorry, so far there haven't been a need for a mailing list of an issue tracker. I'll see to your idea and make it configurable. I'm currently lagging a few Tapestry versions due to vacation, but I'll have it released soon. -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ognl constructors
Hi, I'm trying to add a DropdownDatePicker component with a custom pattern that may be changed. With this ognl expression, it works very well (with default pattern) : With this ognl expression, i have got a strange mistake : * org.apache.hivemind.ApplicationRuntimeException : Class org.apache.tapestry.form.translator.DateTranslator does not contain a property named 'hh:mm'. * With this ognl expression, i have got a simple NullPointerException You have an idea for me? :-) Thx in advance ! -- ~ | klessou | ~
Re: [T5] Spring and T5
We've been using spring since T3. That's already been ... a few years! On Jan 24, 2008 5:45 PM, Mahen Perera <[EMAIL PROTECTED]> wrote: > I have also been using T5 ,, 5.0.7 and spring 2.5.1 ,,, working fine > for me. > > > > -Original Message- > From: Fernando Padilla [mailto:[EMAIL PROTECTED] > Sent: 24 January 2008 15:32 > To: Tapestry users > Subject: Re: [T5] Spring and T5 > > Yup. I have been using T5 and Spring since I started, 5.0.5 or what not. > > Working perfectly fine. > > @Inject > @Service("beanName") > private BeanClass bean; > > > Emmanuel Sowah wrote: > > Hi, > > > > I read some time back that unlike T4, T5 would treat Spring as a first > > > citizen. > > However, I've been struggling in making T5 work smoothly with Spring. > > Anyone out there has had luck with this? > > I'm now fed up and this is for me a wake up call to go look at some of > > > the other ambitious and innovative web framework out there. Wicket > > probably? > > > > Regards, > > > > Emmanuel > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > The information contained in this email is strictly confidential and for the > use of the addressee only, unless otherwise indicated. If you are not the > intended recipient, please do not read, copy, use or disclose to others this > message or any attachment. Please also notify the sender by replying to this > email or by telephone (+44 (0)20 7896 0011) and then delete the email and any > copies of it. Opinions, conclusions (etc.) that do not relate to the official > business of this company shall be understood as neither given nor endorsed by > it. IG Index plc is a company registered in England and Wales under number > 01190902. VAT registration number 761 2978 07. Registered Office: Friars > House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by > the Financial Services Authority. FSA Register number 114059. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Spring and T5
Just work perfect, and Honestly installing spring was a matter of 3 minutes. Have a look there http://wiki.apache.org/tapestry/Tapstry5First_project_with_Tapestry5,_Spring_and_Hibernate If you're still metting problem I can send you a mavenized project with even dbunit integrated. Emmanuel Sowah a écrit : Hi, I read some time back that unlike T4, T5 would treat Spring as a first citizen. However, I've been struggling in making T5 work smoothly with Spring. Anyone out there has had luck with this? I'm now fed up and this is for me a wake up call to go look at some of the other ambitious and innovative web framework out there. Wicket probably? Regards, Emmanuel -- Michael Courcy http://courcy.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Spring and T5: A match made in heaven
Emmanuel - Spring is brain-dead simple to integrate with tapestry 5. If you need help Emmanuel, you may email me relevant bits of your code and I would be more than happy to help you. Really though, there's great documentation on the site to show you exactly how to do this, Emmanuel. I, as all the other tapestry users are more than happy to help you Emmanuel. -mike Fernando Padilla wrote: Yup. I have been using T5 and Spring since I started, 5.0.5 or what not. Working perfectly fine. @Inject @Service("beanName") private BeanClass bean; Emmanuel Sowah wrote: Hi, I read some time back that unlike T4, T5 would treat Spring as a first citizen. However, I've been struggling in making T5 work smoothly with Spring. Anyone out there has had luck with this? I'm now fed up and this is for me a wake up call to go look at some of the other ambitious and innovative web framework out there. Wicket probably? Regards, Emmanuel - 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]
Problem with DOJO generated Java scripts in tapestry 4.1.3
i want to enable/disable a button on clicking a checkbox in the screen. i am trying the below code Snippet. HTML template code snippet Java code snippet @EventListener(events = "onclick", targets = {"checkbox"}) public void updateComponents(IRequestCycle cycle, BrowserEvent event) { cycle.getResponseBuilder().updateComponent("button1"); } Issue 1: Eventlistener is not called for last checkbox and so button is not enabled. Issue 2: on clicking 2nd or subsequent checkboxes in the UI screen, Button is enabled/disabled as expected. However AJAX requests sent is equivalent to the no of checkboxes(or rows) in the screen, which cause performance issues. Note : On clicking 1st checkbox, buttons are enabled/disabled as expected with just 1 Ajax request. On further analysis found that problem is with DOJO generated Java scripts in tapestry 4.1.3, For 4th checkbox, Forms of checkbox 1- 4 are submittted asynchronously. Please let me know how this could be resolved Thanks, Kanthi. -- View this message in context: http://www.nabble.com/Problem-with-DOJO-generated-Java-scripts-in-tapestry-4.1.3-tp15067524p15067524.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [T5] Spring and T5
I have also been using T5 ,, 5.0.7 and spring 2.5.1 ,,, working fine for me. -Original Message- From: Fernando Padilla [mailto:[EMAIL PROTECTED] Sent: 24 January 2008 15:32 To: Tapestry users Subject: Re: [T5] Spring and T5 Yup. I have been using T5 and Spring since I started, 5.0.5 or what not. Working perfectly fine. @Inject @Service("beanName") private BeanClass bean; Emmanuel Sowah wrote: > Hi, > > I read some time back that unlike T4, T5 would treat Spring as a first > citizen. > However, I've been struggling in making T5 work smoothly with Spring. > Anyone out there has had luck with this? > I'm now fed up and this is for me a wake up call to go look at some of > the other ambitious and innovative web framework out there. Wicket > probably? > > Regards, > > Emmanuel > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index plc is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Iteration order on org.apache.tapestry.AbstractComponent#getComponents()
Hi there, I think it would be beneficial to be able to iterate over the components of a page in a well defined order (e.g., the order in which they occur in the template). Therefore, I would like to suggest to change the Map-Implementation of _components (and _assets) in AbstractComponent from java.util.HashMap to java.util.LinkedHashMap (see the patch to 4.1.3-final below). What do you think about such a change? Best regards, Michael Häusler Index: C:/Dokumente und Einstellungen/michael.haeusler/workspace/tapestry/tapestry-framework/src/java/org/apache/tapestry/AbstractComponent.java === --- C:/Dokumente und Einstellungen/michael.haeusler/workspace/tapestry/tapestry-framework/src/java/org/apache/tapestry/AbstractComponent.java (revision 614876) +++ C:/Dokumente und Einstellungen/michael.haeusler/workspace/tapestry/tapestry-framework/src/java/org/apache/tapestry/AbstractComponent.java (working copy) @@ -155,7 +155,7 @@ checkActiveLock(); if (_assets == null) -_assets = new HashMap(MAP_SIZE); +_assets = new LinkedHashMap(MAP_SIZE); _assets.put(name, asset); } @@ -167,7 +167,7 @@ checkActiveLock(); if (_components == null) -_components = new HashMap(MAP_SIZE); +_components = new LinkedHashMap(MAP_SIZE); _components.put(component.getId(), component); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Spring and T5
Yup. I have been using T5 and Spring since I started, 5.0.5 or what not. Working perfectly fine. @Inject @Service("beanName") private BeanClass bean; Emmanuel Sowah wrote: Hi, I read some time back that unlike T4, T5 would treat Spring as a first citizen. However, I've been struggling in making T5 work smoothly with Spring. Anyone out there has had luck with this? I'm now fed up and this is for me a wake up call to go look at some of the other ambitious and innovative web framework out there. Wicket probably? Regards, Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] Spring and T5
Hi, I read some time back that unlike T4, T5 would treat Spring as a first citizen. However, I've been struggling in making T5 work smoothly with Spring. Anyone out there has had luck with this? I'm now fed up and this is for me a wake up call to go look at some of the other ambitious and innovative web framework out there. Wicket probably? Regards, Emmanuel
Tapestry4 JUnit for Page Components
Hi, I want to write JUnit test cases for page components compatible with Tapestry4. Any examples available using HiveMindTestCase and EasyMock. Thanks, Deepak CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS***
Re: T 5.0.9 ClassNotFoundException
And i am getting a null pointer exception too, maybe related with the error that Geoff Callender posted few hours ago about a NPE on the TextField Component. Here's the stack trace: An unexpected application exception has occurred. org.apache.tapestry.ioc.internal.util.TapestryException location classpath:br/com/javasoftware/erp/pages/consultas/CstFluxoCaixa.tml, line 15, column 22 10 Fluxo de Caixa 11 12 13 16 17 18 Atenciosamente, > Marcelo Lotif -- Atenciosamente, Marcelo Lotif
addScript(), entities, CDATA...
Hello, I'm running (again) in problems with entities filtering. Since https://issues.apache.org/jira/browse/TAPESTRY-1818 is corrected, now I can add JavaScript with '<' in CDATA block but only if I set the rendering type to "text/xml" (with @Meta("tapestry.response-content-type=text/xml") so that the parser understand them. Now, I would like to also be able to use comparators in the addScript() function of pageRenderSupport. But it seems that : - entities are filtered in addScript : if I write pageRenderSupport.addScript("alert('>');"); in Java, the pop-up displays ">" ; - moreover, if I set @Meta("tapestry.response-content-type=text/xml"), scripts added by addScript() are no longer executed. So... Well, what am I doing wrong ? And how can I correct it ? At least, I need to be able to use "&&", "<" etc in addScript. Chris, I know that you have a hard time with all these questions, have you any advice ? In a perfect world, I really like to be able to define block in the template, with Javascript in them, and pass them to addScript... Or perhaps Tapestry may have a javascriptblock component, with it's content automagically added to Tapestry.onDOMLoaded... Thank in advance, -- Francois Armand Etudes & Développements J2EE Groupe Linagora - http://www.linagora.com Tél.: +33 (0)1 58 18 68 28 --- InterLDAP - http://interldap.org FederID - http://www.federid.org/ Open Source identities management and federation - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T 5.0.9 ClassNotFoundException
Hi all, I was switching an app to T5.0.9 and i found this error on the PieChart component that i took from the wiki: org.apache.tapestry.ioc.internal.util.TapestryException java.lang.ClassNotFoundException: int[] the exception occurred on the last line of this snippet from my template. And this is how the popupSize attribute is defined on the java class: public int[] getpopupSize(){ return new int[]{800,600}; } This is weird, this error does not occur on 5.0.7... If you want the stack trace too, tell me, then I'll post it. -- Atenciosamente, Marcelo Lotif
回复: problem in injecting an applicati on state object
i got the answer myself , i put the file hivemodule.xml under the wrong position, after i put it under the folder web-inf/ , that problem won't occur. --- Ying Bo <[EMAIL PROTECTED]>写道: > i got the following error: > > An exception has occurred. > > > [ +/- ] Exception: 'sessionFactoryBuilder' is not a > declared application state object. > > Stack Trace: > > * > org.apache.tapestry.engine.state.SOMRegistryImpl.get(SOMRegistryImpl.java:80) > * > $StateObjectManagerRegistry_117aa87d0af.get($StateObjectManagerRegistry_117aa87d0af.java) > * > org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(ApplicationStateManagerImpl.java:60) > * > $ApplicationStateManager_117aa87d015.get($ApplicationStateManager_117aa87d015.java) > * > $ApplicationStateManager_117aa87d016.get($ApplicationStateManager_117aa87d016.java) > * > $MsgAddPage_2.getSessionFactoryBuilder($MsgAddPage_2.java) > * > com.yingshome.msgBoard.page.MsgAddPage.getTypes(MsgAddPage.java:24) > * > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > * > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > * > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > * > java.lang.reflect.Method.invoke(Method.java:585) > * > ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:768) > * > ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1213) > * > ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:60) > * > ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:144) > * > ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1934) > * > ognl.ASTProperty.getValueBody(ASTProperty.java:109) > * > ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202) > * ognl.SimpleNode.getValue(SimpleNode.java:246) > * ognl.Ognl.getValue(Ognl.java:494) > * ognl.Ognl.getValue(Ognl.java:458) > * > org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:153) > * > ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:523) > * ognl.Ognl.compileExpression(Ognl.java:141) > * > org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(ExpressionCacheImpl.java:152) > * > org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression(ExpressionCacheImpl.java:115) > * > $ExpressionCache_117aa87d16f.getCompiledExpression($ExpressionCache_117aa87d16f.java) > * > org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:134) > * > org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:125) > * > org.apache.tapestry.components.ForBean.evaluateSourceIterator(ForBean.java:693) > * > org.apache.tapestry.components.ForBean.storeSourceData(ForBean.java:409) > * > org.apache.tapestry.components.ForBean.getData(ForBean.java:333) > * > org.apache.tapestry.components.ForBean.renderComponent(ForBean.java:130) > * > org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725) > * > org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:179) > * > org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:539) > * > org.apache.tapestry.form.Select.renderFormComponent(Select.java:143) > * > org.apache.tapestry.form.AbstractFormComponent.renderComponent(AbstractFormComponent.java:104) > * > org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725) > * > org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:179) > * > org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:539) > * > org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java:504) > * > org.apache.tapestry.form.Form.renderComponent(Form.java:217) > * > org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725) > * > org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:179) > * > org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107) > * > org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725) > * > org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:177) > * > org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:249) > * > org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:397) > * > org.apache.tapestry.services.impl.DefaultResponseBuilder.renderResponse(DefaultResponseBuilder.java:151) > * > org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(ResponseRendererImpl.java:33) > * > $ResponseRenderer_117aa87d02b.renderResponse($ResponseRenderer_117aa87d02b.java) > * > org.apache.tapestry.engine.PageService.service(PageService.java:68) > * > $IEngineService_117aa87d099.service($IEngineS
Re: T5: Service and thread
Tapestry-ioc will not generate threads for you, taopestry-ioc makes sure that some resources are unique per thread, and threads can be generated where ever. They mostly come from underlaying server for each request. If you spawn your own thread, you can freely use any threaded resource, just make sure that you call ThreadCleanupHub after thread finishes it's work so tapestry can free the resources. Davor Hrg On Jan 24, 2008 10:45 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a service which does some file download that takes quite long, I'd > like to run the service in a separate thread, possible with Tapestry Ioc? or > I have to manage the thread manually? Thanks, > > A.C. > > > -- > View this message in context: > http://www.nabble.com/T5%3A-Service-and-thread-tp15061626p15061626.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem in injecting an application state object
i got the following error: An exception has occurred. [ +/- ] Exception: 'sessionFactoryBuilder' is not a declared application state object. Stack Trace: * org.apache.tapestry.engine.state.SOMRegistryImpl.get(SOMRegistryImpl.java:80) * $StateObjectManagerRegistry_117aa87d0af.get($StateObjectManagerRegistry_117aa87d0af.java) * org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(ApplicationStateManagerImpl.java:60) * $ApplicationStateManager_117aa87d015.get($ApplicationStateManager_117aa87d015.java) * $ApplicationStateManager_117aa87d016.get($ApplicationStateManager_117aa87d016.java) * $MsgAddPage_2.getSessionFactoryBuilder($MsgAddPage_2.java) * com.yingshome.msgBoard.page.MsgAddPage.getTypes(MsgAddPage.java:24) * sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) * sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) * sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) * java.lang.reflect.Method.invoke(Method.java:585) * ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:768) * ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1213) * ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:60) * ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:144) * ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1934) * ognl.ASTProperty.getValueBody(ASTProperty.java:109) * ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202) * ognl.SimpleNode.getValue(SimpleNode.java:246) * ognl.Ognl.getValue(Ognl.java:494) * ognl.Ognl.getValue(Ognl.java:458) * org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:153) * ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:523) * ognl.Ognl.compileExpression(Ognl.java:141) * org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(ExpressionCacheImpl.java:152) * org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression(ExpressionCacheImpl.java:115) * $ExpressionCache_117aa87d16f.getCompiledExpression($ExpressionCache_117aa87d16f.java) * org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:134) * org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:125) * org.apache.tapestry.components.ForBean.evaluateSourceIterator(ForBean.java:693) * org.apache.tapestry.components.ForBean.storeSourceData(ForBean.java:409) * org.apache.tapestry.components.ForBean.getData(ForBean.java:333) * org.apache.tapestry.components.ForBean.renderComponent(ForBean.java:130) * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725) * org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:179) * org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:539) * org.apache.tapestry.form.Select.renderFormComponent(Select.java:143) * org.apache.tapestry.form.AbstractFormComponent.renderComponent(AbstractFormComponent.java:104) * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725) * org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:179) * org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:539) * org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java:504) * org.apache.tapestry.form.Form.renderComponent(Form.java:217) * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725) * org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:179) * org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107) * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725) * org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:177) * org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:249) * org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:397) * org.apache.tapestry.services.impl.DefaultResponseBuilder.renderResponse(DefaultResponseBuilder.java:151) * org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(ResponseRendererImpl.java:33) * $ResponseRenderer_117aa87d02b.renderResponse($ResponseRenderer_117aa87d02b.java) * org.apache.tapestry.engine.PageService.service(PageService.java:68) * $IEngineService_117aa87d099.service($IEngineService_117aa87d099.java) * org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:72) * org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:241) * org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:54) * $WebRequestServicer_117aa87d077.service($WebRequestServicer_117aa87d077.java) * $WebRequestService
T5: Service and thread
Hi, I have a service which does some file download that takes quite long, I'd like to run the service in a separate thread, possible with Tapestry Ioc? or I have to manage the thread manually? Thanks, A.C. -- View this message in context: http://www.nabble.com/T5%3A-Service-and-thread-tp15061626p15061626.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry 5 error page detection
I thought of using the tag, but I couldn't get it to work... it appeared as though Tapestry couldn't resolve the resource from the response and throws a 404 not found instead. Howard Lewis Ship wrote: Chances are, Tapestry is passing on the requests because there are real static HTML files present. The problem is that if you delete 505.html, you need to come up with a class named 505. That's going to be a problem :-). I'm not sure what the servlet container will do if you configure the of the to a virtual resources such as a Tapestry page. I suspect it will work in Jetty and not work in Tomcat :-) I haven't experimented with this at all, I'm afraid. On Jan 23, 2008 7:01 AM, Peter Stavrinides <[EMAIL PROTECTED]> wrote: Hi I would like to customize the various error pages for my servlet (404,500,401 etc...), I have implemented the configuration in my web.xml, but Tapestry 5 doesn't pick them up... how should I go about this? Thanks Peter - 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]