Re: partially update with another page or component
:) thanks On Fri, Jul 20, 2012 at 10:20 AM, Thiago H de Paula Figueiredo wrote: > On Thu, 19 Jul 2012 22:00:04 -0300, mu wrote: > >>> You can @Inject ComponentResource, use getPage() to retrive the page >>> instance as a Component and use Component.getBlock(). >> >> >> it works, thanks. Does this pattern i used here against Tapestry's >> philosophy and architecture? > > > Nope. I'd never suggested something that goes agains Tapestry's philosophy > and architecture. :D > > > -- > Thiago H. de Paula Figueiredo > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: partially update with another page or component
On Thu, 19 Jul 2012 22:00:04 -0300, mu wrote: You can @Inject ComponentResource, use getPage() to retrive the page instance as a Component and use Component.getBlock(). it works, thanks. Does this pattern i used here against Tapestry's philosophy and architecture? Nope. I'd never suggested something that goes agains Tapestry's philosophy and architecture. :D -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Modalbox Integration Example
Ah, you want to disable it in javascript. You will have to disable it on page-load and then enable/disable it when user clicks on grids. By enable/disable I mean to enable/disable the link/button displaying the modal box. You can use $$ prototype function to match a complex css selection. regards Taha On Jul 20, 2012, at 7:09 AM, Bob.Sky wrote: > Yes, use the disabled parameter can make effect when the page first loaded, > but when the page has been generated , I can find this code" # " in the > source view.I do not know how can I capture the disable event in the current > page. Thank you. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Modalbox-Integration-Example-tp4248936p5714631.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Modalbox Integration Example
Yes, use the disabled parameter can make effect when the page first loaded, but when the page has been generated , I can find this code" # " in the source view.I do not know how can I capture the disable event in the current page. Thank you. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Modalbox-Integration-Example-tp4248936p5714631.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: partially update with another page or component
> You can @Inject ComponentResource, use getPage() to retrive the page > instance as a Component and use Component.getBlock(). it works, thanks. Does this pattern i used here against Tapestry's philosophy and architecture? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: partially update with another page or component
On Thu, 19 Jul 2012 20:40:47 -0300, mu wrote: The question is that the quantity of block is so much, about 100. Wow, 100? Can we ask why so many different outputs? so i want to split them into different page, and dynamic load them on runtime. You can @Inject ComponentResource, use getPage() to retrive the page instance as a Component and use Component.getBlock(). -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: partially update with another page or component
On Thu, 19 Jul 2012 20:37:24 -0300, mu wrote: Exactly. Otherwise, you'd need to access part of a page's template in another page, and that's something completely against Tapestry's philosophy and architecture. The content of the zone depends on what the user selected on runtime, what is the best practice to do this? Blocks () and the Delegate component to render them. Examples here: http://tapestry.apache.org/switching-cases.html. If you have something that should be used in two or more different pages, put this something in a component and use it in that pages, as someone (I forgot who, sorry) already mentioned in this thread. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Modalbox Integration Example
If disabled parameter is true, the client scripts are not loaded. I think that should disable the modalbox. Doesn't it ? regards Taha On Jul 19, 2012, at 2:39 PM, Bob.Sky wrote: > Hi, taha. > Thank you for your code, I use it in my project, but I meet a problem now. > I use this code to popup the modal box" > > class="button"/> > " > Now I want to add the validation for the button, if I have not select a line > of the grid, I hope this button is disabled,that is to say ModalBox can not > be poped up. > I know you the modalbox component has the disabled prameter, but in the > Client it is just like " ",How to control it. > > Thank you. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Modalbox-Integration-Example-tp4248936p5714595.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: partially update with another page or component
The question is that the quantity of block is so much, about 100. so i want to split them into different page, and dynamic load them on runtime. On Thu, Jul 19, 2012 at 9:46 PM, Alex Kotchnev wrote: > You can probably use Blocks to return the partial page updates, e.g. > in your template > > Some content here > > > In your page class > @Inject > private Block fooBlock > Object onSomeEvent() { > return fooBlock > } > > Technically, it's the easiest if your blocks are defined on the same page > (as described above). However, if they're on a different page or component > template, you can use some of the ideas from Taha's blog ( > http://tawus.wordpress.com/2011/04/20/tapestry-magic-3-plugin-blocks/ ) to > retrieve the blocks from the "other" page and render them on yours in > response to the event. > > Cheers, > > Alex K > > On Thu, Jul 19, 2012 at 9:32 AM, Thiago H de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> On Thu, 19 Jul 2012 06:02:34 -0300, Lance Java >> wrote: >> >> Returning a Page class tells tapestry to redirect to that page. I think >>> that you want to extract the page logic / tml into a component and then use >>> the component in two places. >>> >> >> Exactly. Otherwise, you'd need to access part of a page's template in >> another page, and that's something completely against Tapestry's philosophy >> and architecture. >> >> -- >> Thiago H. de Paula Figueiredo >> >> >> --**--**- >> To unsubscribe, e-mail: >> users-unsubscribe@tapestry.**apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: partially update with another page or component
> Exactly. Otherwise, you'd need to access part of a page's template in > another page, and that's something completely against Tapestry's philosophy > and architecture. The content of the zone depends on what the user selected on runtime, what is the best practice to do this? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Uploading then displaying Images
:) Thanks! 2012/7/19 Thiago H de Paula Figueiredo > On Thu, 19 Jul 2012 11:50:57 -0300, arterzatij > wrote: > > Hi Thiago, how do you get the file from db? >> I mean the BLOB type of data base to a Java Type? >> > > Yep, probably to a byte array. > > -- > Thiago H. de Paula Figueiredo > > > --**--**- > To unsubscribe, e-mail: > users-unsubscribe@tapestry.**apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Saludos, --- "Nada que se consiga sin pena y sin trabajo es verdaderamente valioso." Joseph Addison --- ICE Ernesto Arteaga Zavala Ingeniero de Desarrollo
tapestry-beanvalidation and tapestry-jquery js error
I use tapestry-beanvalidation and tapestry-jquery. As a result, when I open up a page, I get a javascript error in tapestry-beanvalidator.js:15: Cannot set property 'notnull' of undefined The offending line is : Tapestry.Validator.notnull = function(field, message, spec) Uncaught TypeError: Cannot set property 'notnull' of undefined { Tapestry.Validator.required(field, message); }; This is obviously the client-side validation for beanvalidation, possibly depending on Prototype. I was going to look to see if I can exclude the JS from loading, but I was wondering if anyone else has run into the same issue and if there is a better way of dealing with it. Cheers, Alex K
Re: Tapestry 5.3.4
Stephan / George, did you figure out what the issue was with the missing bizarre missing dependency problem ? I switched the version in my POM and I see the same problem. Cheers, Alex K On Wed, Jul 18, 2012 at 6:37 PM, Angelo C. wrote: > congrats! any breaking feature from 5.3.3 to 5.3.4? > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-4-tp5714512p5714584.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Tapestry-Security extend user session time
Not sure. Are you including tapestry security and tapestry exception page modules? That might be the trouble. On Jul 19, 2012, at 2:06 PM, George Christman wrote: > lprimak, I'm getting the following exception, would you happen to know what's > going on here? Thanks > > java.lang.RuntimeException: Exception loading module(s) from manifest > jar:file:/C:/Users/gmc07/.m2/repository/com/flowlogix/flowlogix-tapestry/0.9.8/flowlogix-tapestry-0.9.8.jar!/META-INF/MANIFEST.MF: > Failure loading Tapestry IoC module class > com.flowlogix.web.services.ServicesModule: Error invoking service binder > method com.flowlogix.web.services.SecurityModule.bind(ServiceBinder) (at > SecurityModule.java:51): > org/tynamo/security/internal/SecurityExceptionHandlerAssistant >at > org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123) >at > org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77) >at > org.apache.tapestry5.internal.TapestryAppInitializer.(TapestryAppInitializer.java:124) >at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:103) >at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) >at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) >at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) >at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) >at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) >at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) >at > org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115) >at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) >at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) >at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) >at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) >at org.mortbay.jetty.Server.doStart(Server.java:224) >at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >at > org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) >at > org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454) >at > org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396) >at > org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210) >at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) >at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) >at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) >at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) >at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) >at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) >at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) >at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) >at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) >at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) >at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) >at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) >at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) >at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >at java.lang.reflect.Method.invoke(Method.java:597) >at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) >at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) >at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) >at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > 2012-07-19 14:03:07.980:INFO::Started SelectChannelConnector@0.0.0.0:8080 > Started Jetty Server > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-Security-
FireFox 13 breaks Tapestry Testing
It appears the FireFox 13 upgrade breaks the Selenium test cases with the folllowing: 13:11:15.572 INFO - Preparing Firefox profile... 13:11:37.603 ERROR - Failed to start new browser session, shutdown browser and clear all session data java.lang.RuntimeException: Firefox refused shutdown while preparing a profile I upgraded to Selenium 2.23.1 by added this to my pom file and it appears to fix it org.seleniumhq.selenium selenium-server 2.23.1 compile org.seleniumhq.selenium selenium-java 2.23.1 compile Is it time to update the Selenium version in Tapestry Test? -- View this message in context: http://tapestry.1045711.n5.nabble.com/FireFox-13-breaks-Tapestry-Testing-tp5714618.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Modalbox Integration Example
Hi, taha. Thank you for your code, I use it in my project, but I meet a problem now. I use this code to popup the modal box" " Now I want to add the validation for the button, if I have not select a line of the grid, I hope this button is disabled,that is to say ModalBox can not be poped up. I know you the modalbox component has the disabled prameter, but in the Client it is just like " ",How to control it. Thank you. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Modalbox-Integration-Example-tp4248936p5714595.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry-Security extend user session time
I believe this js library was written in prototype, is there a jquery version? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Security-extend-user-session-time-tp5714610p5714617.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry-Security extend user session time
lprimak, I'm getting the following exception, would you happen to know what's going on here? Thanks java.lang.RuntimeException: Exception loading module(s) from manifest jar:file:/C:/Users/gmc07/.m2/repository/com/flowlogix/flowlogix-tapestry/0.9.8/flowlogix-tapestry-0.9.8.jar!/META-INF/MANIFEST.MF: Failure loading Tapestry IoC module class com.flowlogix.web.services.ServicesModule: Error invoking service binder method com.flowlogix.web.services.SecurityModule.bind(ServiceBinder) (at SecurityModule.java:51): org/tynamo/security/internal/SecurityExceptionHandlerAssistant at org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123) at org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77) at org.apache.tapestry5.internal.TapestryAppInitializer.(TapestryAppInitializer.java:124) at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:103) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396) at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210) at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) 2012-07-19 14:03:07.980:INFO::Started SelectChannelConnector@0.0.0.0:8080 Started Jetty Server -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Security-extend-user-session-time-tp5714610p5714616.html Sent from the Tapestry - User mailing list archive at Nabble.com.
Re: Tapestry-Security / Javascript auto logout
Good idea, didn't even give that a thought. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Security-Javascript-auto-logout-tp5714608p5714615.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry-Security / Javascript auto logout
It doesn't necessarily have to be a completely separate page - you can generate a URL for a "logout" event and give that URL to the jquery plugin. Cheers - Alex K On Thu, Jul 19, 2012 at 12:50 PM, George Christman wrote: > Hello I'm using tapestry security and a jQuery session timeout plugin. The > plugin logs the user out through the URL, should I create a logout page > enabling logouts to be handled through the url, or is there a better way to > handle this? > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-Security-Javascript-auto-logout-tp5714608.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Tapestry-Security extend user session time
There is full documentation and examples on the site. You just have to click around. On Jul 19, 2012, at 1:33 PM, George Christman wrote: > Hi lprimak, I can't seem to figure out how to use FlowLogix. Do you know > where I might be able to find examples etc? The website link that is suppose > to link to some examples comes up with none. I don't know what it means when > it says it houses common components like shiro security etc and how it would > effect my existing code base. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-Security-extend-user-session-time-tp5714610p5714612.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry-Security extend user session time
Hi lprimak, I can't seem to figure out how to use FlowLogix. Do you know where I might be able to find examples etc? The website link that is suppose to link to some examples comes up with none. I don't know what it means when it says it houses common components like shiro security etc and how it would effect my existing code base. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Security-extend-user-session-time-tp5714610p5714612.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry-Security extend user session time
Don't know what that has I do with jquery but the FlowLogix library has a session timeout component that takes care of this requirement. On Jul 19, 2012, at 1:19 PM, George Christman wrote: > Hello, I'm using tapestry-security and a jQuery sessionTimeout plugin. One of > the options in the plugin is to stay connected when prompted your session is > going to expire. I was wondering if anybody had any ideas on how to extend > the user session with an ajax call from the jquery component. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-Security-extend-user-session-time-tp5714610.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry-Security extend user session time
Hello, I'm using tapestry-security and a jQuery sessionTimeout plugin. One of the options in the plugin is to stay connected when prompted your session is going to expire. I was wondering if anybody had any ideas on how to extend the user session with an ajax call from the jquery component. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Security-extend-user-session-time-tp5714610.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 APPLICATION_VERSION
Thanks, BTW. Not sure how I missed that one. I guess I was looking to inject a service. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jul 12, 2012, at 3:06 PM, Joost Schouten (mailing lists) wrote: > This should do the trick: > > @Inject > @Symbol(SymbolConstants.APPLICATION_VERSION) > private String appVersion; > > Cheers, > Joost > > > On Jul 12, 2012, at 8:58 PM, Norman Franke wrote: > >> I give up. How do I programmatically get the value of the >> APPLICATION_VERSION that I set in the AppModule? In my login page, I'd like >> to display the version. I'm not sure what to inject. I've tried a number of >> things, but nothing seems to work. Where is it stored? >> >> Norman Franke >> Answering Service for Directors, Inc. >> www.myasd.com >> >> >> >
Tapestry-Security / Javascript auto logout
Hello I'm using tapestry security and a jQuery session timeout plugin. The plugin logs the user out through the URL, should I create a logout page enabling logouts to be handled through the url, or is there a better way to handle this? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Security-Javascript-auto-logout-tp5714608.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Uploading then displaying Images
On Thu, 19 Jul 2012 11:50:57 -0300, arterzatij wrote: Hi Thiago, how do you get the file from db? I mean the BLOB type of data base to a Java Type? Yep, probably to a byte array. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Intercepting exceptions/errors in logic within page objects
On Thu, Jul 19, 2012 at 7:49 AM, Lenny Primak wrote: > Tynamo has a wonderful module called tapestry-exception page. > It's created just for this purpose. Tynamo.org. And in Tapestry 5.4, tapestry-exceptionpage is built-in. If the handling is specific to a particular page, I'd use onException. If the handling is the same for all exceptions of certain type regardless of the page, then tapestry-exceptionpage. Kalle > On Jul 19, 2012, at 8:53 AM, captain_rhino > wrote: > >> I have several pages that several methods within them >> >> public class Page >> public void onActivate(EventContext ec){ >>//Code >> } >> >> public void onSuccess(){ >>//code >> } >> >> void onSelectedFromAButton(){ >> //code >> } >> >> In tapestry if any of the code goes wrong within my methods, in Tapestry >> what is the best way to intercept any thing that goes wrong and then >> redirect the user to for example an error page. >> >> I do not want to put a try catch in each method and then redirect to my >> error page. >> >> >> Thx in advance. >> >> >> >> } >> >> -- >> View this message in context: >> http://tapestry.1045711.n5.nabble.com/Intercepting-exceptions-errors-in-logic-within-page-objects-tp5714597.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: beandisplay hide label if value is null?
That worked. Thank you very much. -- View this message in context: http://tapestry.1045711.n5.nabble.com/beandisplay-hide-label-if-value-is-null-tp5714585p5714605.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Uploading then displaying Images
Hi Thiago, how do you get the file from db? I mean the BLOB type of data base to a Java Type? Thanks in advance! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Uploading-then-displaying-Images-tp3423946p5714604.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Intercepting exceptions/errors in logic within page objects
Tynamo has a wonderful module called tapestry-exception page. It's created just for this purpose. Tynamo.org. On Jul 19, 2012, at 8:53 AM, captain_rhino wrote: > I have several pages that several methods within them > > public class Page > public void onActivate(EventContext ec){ >//Code > } > > public void onSuccess(){ >//code > } > > void onSelectedFromAButton(){ > //code > } > > In tapestry if any of the code goes wrong within my methods, in Tapestry > what is the best way to intercept any thing that goes wrong and then > redirect the user to for example an error page. > > I do not want to put a try catch in each method and then redirect to my > error page. > > > Thx in advance. > > > > } > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Intercepting-exceptions-errors-in-logic-within-page-objects-tp5714597.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: partially update with another page or component
You can probably use Blocks to return the partial page updates, e.g. in your template Some content here In your page class @Inject private Block fooBlock Object onSomeEvent() { return fooBlock } Technically, it's the easiest if your blocks are defined on the same page (as described above). However, if they're on a different page or component template, you can use some of the ideas from Taha's blog ( http://tawus.wordpress.com/2011/04/20/tapestry-magic-3-plugin-blocks/ ) to retrieve the blocks from the "other" page and render them on yours in response to the event. Cheers, Alex K On Thu, Jul 19, 2012 at 9:32 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 19 Jul 2012 06:02:34 -0300, Lance Java > wrote: > > Returning a Page class tells tapestry to redirect to that page. I think >> that you want to extract the page logic / tml into a component and then use >> the component in two places. >> > > Exactly. Otherwise, you'd need to access part of a page's template in > another page, and that's something completely against Tapestry's philosophy > and architecture. > > -- > Thiago H. de Paula Figueiredo > > > --**--**- > To unsubscribe, e-mail: > users-unsubscribe@tapestry.**apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Intercepting exceptions/errors in logic within page objects
On Thu, 19 Jul 2012 09:53:39 -0300, captain_rhino wrote: I have several pages that several methods within them public class Page public void onActivate(EventContext ec){ //Code } public void onSuccess(){ //code } void onSelectedFromAButton(){ //code } In tapestry if any of the code goes wrong within my methods, in Tapestry what is the best way to intercept any thing that goes wrong and then redirect the user to for example an error page. I do not want to put a try catch in each method and then redirect to my error page. AnyReturnTypeYouWant onException(Throwable throwable) { ... } Check http://tapestry.apache.org/component-events.html, section Intercepting Event Exception. What Lance suggested is the way to go for application-wide exceptions, while the method above is good for exception handling that is specific to one given page. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: partially update with another page or component
On Thu, 19 Jul 2012 06:02:34 -0300, Lance Java wrote: Returning a Page class tells tapestry to redirect to that page. I think that you want to extract the page logic / tml into a component and then use the component in two places. Exactly. Otherwise, you'd need to access part of a page's template in another page, and that's something completely against Tapestry's philosophy and architecture. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Adding a dynamic sub directory to URLĀ
On Thu, 19 Jul 2012 05:18:39 -0300, Lance Java wrote: In option 1: - The URL displayed in the user's browser will be different to the @Injected request's getPath() That's exactly the point of URL rewriting! :) - I can only assume that the HTTPServletRequest will not be cloaked so @Inject HTTPServletRequest and @Inject Request will have conflicting path values Yep, but only Tapestry itself only uses Request, not HttpServletRequest, and so should you. - If I wanted to calculate the relative location of "/mysite/" based on Request.getPath(). I would get the calculation wrong in some cases since the cloaked Request.getPath() is exactly the same for all URLs (mentioned above) Why would you need to calculate relative locations? I've been using Tapestry 5 since 5.0.4 or 5.0.5 and I never needed to do that. Let Tapestry do that for you. In option 2: - The URL displayed in the user's browser is the same as Request.getPath() So there's no URL rewriting anymore. I'm not sure that this URL calculation is a problem but I don't see a need to cloak the @Inject'ed Request. For this reason, I lean towards option 2. Option number 2 has the same problem as LinkTransformer API: you need to decorate or advise ComponentEventLinkEncoder, specifically the decode*() methods, so can't use them in your URL rewriting logic for parsing URLs and you end up doing that yourself. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Intercepting exceptions/errors in logic within page objects
Tapestry's default behaviour is to redirect to the ExceptionReport page. If you want to use your own custom page, you can override the SymbolConstants.EXCEPTION_REPORT_PAGE symbol. Make sure that your custom page implements ExceptionReporter. If you'd like to override this behaviour all together, then you will need to override the RequestExceptionHandler service with your own implementation (take a look at the DefaultRequestExceptionHandler source code for inspiration). Cheers, Lance. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Intercepting-exceptions-errors-in-logic-within-page-objects-tp5714597p5714598.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Intercepting exceptions/errors in logic within page objects
I have several pages that several methods within them public class Page public void onActivate(EventContext ec){ //Code } public void onSuccess(){ //code } void onSelectedFromAButton(){ //code } In tapestry if any of the code goes wrong within my methods, in Tapestry what is the best way to intercept any thing that goes wrong and then redirect the user to for example an error page. I do not want to put a try catch in each method and then redirect to my error page. Thx in advance. } -- View this message in context: http://tapestry.1045711.n5.nabble.com/Intercepting-exceptions-errors-in-logic-within-page-objects-tp5714597.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: partially update with another page or component
Returning a Page class tells tapestry to redirect to that page. I think that you want to extract the page logic / tml into a component and then use the component in two places. -- View this message in context: http://tapestry.1045711.n5.nabble.com/partially-update-with-another-page-or-component-tp5714593p5714594.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: beandisplay hide label if value is null?
You could use the exclude parameter public String getExcludes() { // return a comma separated list of property names based on some logic or null } -- View this message in context: http://tapestry.1045711.n5.nabble.com/beandisplay-hide-label-if-value-is-null-tp5714585p5714592.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Adding a dynamic sub directory to URLĀ
Consider a site with the following url rewriting /mysite/cars/view - view all cars /mysite/cars/bmw/view - set the Car environmental as "bmw" then invoke /mysite/cars/view /mysite/cars/porsche/view - set the Car environmental as "porsche" then invoke /mysite/cars/view /mysite/facebook/cars/view - put "facebook" into the Mode environmental (different css) then invoke /mysite/cars/view /mysite/facebook/cars/bmw/view - put "facebook" into the Mode environmental and "bmw" into the Car environmental then invoke /mysite/cars/view There's two approaches: 1. Cloak the Request in a filter, all processes further down the request processing pipeline will see a cloaked Request when the @Inject it 2. Only cloak the request when calculating ComponentEventRequestParameters and PageRenderRequestParameters (decodeComponentEventRequest() and decodePageRenderRequest()) In option 1: - The URL displayed in the user's browser will be different to the @Injected request's getPath() - I can only assume that the HTTPServletRequest will not be cloaked so @Inject HTTPServletRequest and @Inject Request will have conflicting path values - If I wanted to calculate the relative location of "/mysite/" based on Request.getPath(). I would get the calculation wrong in some cases since the cloaked Request.getPath() is exactly the same for all URLs (mentioned above) In option 2: - The URL displayed in the user's browser is the same as Request.getPath() - Request and HTTPServletRequest are not in conflict over the value of path - I will be able to accurately calculate the relative location of "/mysite/" in each URL since the URL is not cloaked. I'm not sure that this URL calculation is a problem but I don't see a need to cloak the @Inject'ed Request. For this reason, I lean towards option 2. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Adding-a-dynamic-sub-directory-to-URL-tp5714532p5714591.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org