Re: [ANNOUNCEMENT] Tapestry 5.9.0-preview 2

2024-10-31 Thread Kalle Korhonen
Looks good to me (and tapestry-security). Ready when you are. Kalle [INFO] BUILD SUCCESS [INFO] [INFO] Total time: 24.836 s [INFO] Finished at: 2024-10-31T22:53:51+02:00 [INFO] --

Re: [Informal poll] Version number for Jakarta EE-supporting Tapestry version

2024-08-01 Thread Kalle Korhonen
I would just call it Tapestry 6.x. It's not going to be compatible with any previous version, or even with previous servlet containers. I well know the history ("there will never be Tapesty 6") but past is past, there's no good reason to avoid a new major, semantic version to indicate the differenc

I'm back!

2020-04-26 Thread Kalle Korhonen
Hi all, just wanted to say hello as I'm back working on Tapestry & Tynamo, at least for a fleeting moment! It all started when I was brought to steward an unruly, JSP-based(!) codebase that used Spring ACL as its security framework. With a few tens of thousand of data rows and a complex security r

Re: Single Page Application

2018-07-02 Thread Kalle Korhonen
I've done SPAs with Tapestry but more recently, I've gone over the "dark side" to develop SPAs with Clojure. I re-implemented one Tapestry+Ember project as a functionally equivalent Clojure app, and I just posted lines-of-code comparison plus other notes about it ( http://www.tynamo.org/2018/07/02/

tapestry-security 0.7.1 and tapestry-resteasy 0.5.0 released!

2018-07-02 Thread Kalle Korhonen
It's that time of the year again. Actually, the community has been asking these to be released for a while. Thanks to @homburgs, you can now contribute chains with RegExPatternMatcher to tapestry-security ( https://github.com/tynamo/tapestry-security/pull/50). Also, 0.7.1 is now using the latest ve

Re: Access request from tml / standard servlet api role support

2018-04-27 Thread Kalle Korhonen
Tapestry-security (http://www.tynamo.org/tapestry-security+guide/) supports request.isuserInRole and provides components similar to the one suggested, i.e. SAVE DATA Kalle On Fri, Apr 27, 2018 at 3:41 PM, pico.dev wrote: > Hi, > > Maybe you can implement a new conditional component th

Re: Override BeanEditForm Submit Button

2017-12-16 Thread Kalle Korhonen
You want to use the underlying BeanEditor component that does most of the work and build your own form around it, could start by copying the BeanEditForm source: https://github.com/apache/tapestry-5/blob/master/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/BeanEditForm.tm

Re: "Detached entity passed to persist"

2017-11-28 Thread Kalle Korhonen
Surprisingly, this (re-attaching a detached entity) is not a simple problem. First of all, you need to be very careful about holding onto entities in your session. It's too easy with JPA/Hibernate to accidentally keep the whole query resultset in memory when you think you are holding onto a single

Re: Authorisation in Tapestry Applications

2017-11-26 Thread Kalle Korhonen
Attachments don't come through to the mailing list but so you have a table that describes permissions for all of the entities? Obviously, visually showing or hiding buttons on the client doesn't really enforce security but you are right, Tynamo doesn't really offer anything for this case out of the

tapestry-security 0.7.0 released!

2017-09-14 Thread Kalle Korhonen
After an extended hiatus, I figured it’s time to do some releases. First up is the old workhorse, tapestry-security. The 0.7.0 release represents a true community effort, my job was mainly to merge pull requests from multiple authors. Thank you @jochenberger, @fkretzer, @pedrocborges2, @ascandroli,

Re: Tapestry-security CacheManager

2016-12-23 Thread Kalle Korhonen
Typically, you'd set the desired cachemanager in the realm itself, e.g.: public class UserRealm extends AuthorizingRealm { public UserRealm(...) { super(new MemoryConstrainedCacheManager()); Kalle On Wed, Dec 21, 2016 at 12:47 AM, Charlouze wrote: > Hello tapestry users, > > I wan

Re: Tynamo Security Login Page

2016-11-10 Thread Kalle Korhonen
ials, instead of letting it go > to my Tapestry page, I'd like to display my own page which asks for > more information (say two factor authentication). > As Dusko said, use the symbols. Kalle > On Wed, Nov 9, 2016 at 6:54 PM, Kalle Korhonen > wrote: > > Need to sp

Re: Tynamo Security Login Page

2016-11-09 Thread Kalle Korhonen
Need to specify the library since it's not your own component - loginPage is just a local attribute name. Use or just replace the whole block with <:tsecurity.loginlink>. Kalle On Wed, Nov 9, 2016 at 9:03 AM, Adam X wrote: > I have tapestry-security integrated and working in my project. Page >

Re: Tynamo Security w/ custom Realm

2016-11-08 Thread Kalle Korhonen
Looks fine at a quick glance. As I recall, an AuthenticatingRealm uses SimpleCredentialsMatcher by so it should match plain text passwords. Are you sure it's not authenticating, or is doGetAuthenticationInfo invoked at all? Do you have any other realms configured? Get the simple, single realm use c

Re: WebSocket enpoint as a tapestry service

2016-10-26 Thread Kalle Korhonen
It's relatively simple like Cezary says. The only potential issue is with authenticating JSR 356 websockets, which may require a bit of gymnastics depending on your needs. If you are using sessions, you can fetch underlying (servlet) session from the handshake request (see http://stackoverflow.com/

Re: Tapestry 5.4.1, MessageFormatter gone?

2016-09-23 Thread Kalle Korhonen
Just the packaging has changed, add dependency to commons: org.apache.tapestry commons 5.4.1 Kalle On Fri, Sep 23, 2016 at 3:13 PM, Charles Roth wrote: > Apologies in advance if I'm posting this incorrectly (in which case I > welcome a link to any Tapestry-specific etiquette guide) -- my

Re: tapestry-hibernate + tapestry-cdi

2016-09-23 Thread Kalle Korhonen
AFAIK, tapestry-hibernate simply doesn't support it. However, is switching to JPA an option? You could still be using Hibernate as the provider. tapestry-jpa merrily supports multi tenancy (and more). If JPA is not an option, I'd look into implementing your own custom @Session - may not be too bad

Re: tapestry5.4 + hibernate + postgres + postgis

2016-08-12 Thread Kalle Korhonen
Might be enough to downgrade your JRE to 1.7, or, need to use the exact version of Hibernate that is compatible with tapestry-hibernate. If you need to use a newer Hibernate with Java 8, compile and deploy the tapestry-hibernate version from T5.5 master yourself. Kalle On Fri, Aug 12, 2016 at 7:1

Re: Tapestry launch a JEE 7 webservice?

2016-08-01 Thread Kalle Korhonen
Yes, use tapestry-resteasy (http://www.tynamo.org/tapestry-resteasy+guide/). You wouldn't need an explicit subclass of Application, but you'd configure your resources with: @Contribute(javax.ws.rs.core.Application.class) public static void configureRestResources(Configuration singletons,

Re: confused about countrycode in data-locale attribute

2016-06-27 Thread Kalle Korhonen
As a workaround, perhaps the simplest thing to do is to set your JVM language to match the webapp default (i.e. -Duser.language=de)? Kalle On Mon, Jun 27, 2016 at 8:45 AM, Carlos Montero Canabal < carlosmonterocana...@gmail.com> wrote: > I write a jira issue about this problem > https://issues.a

Re: Null pointer on sort with 5.3.8 that didn't occur with 5.3.7

2016-06-27 Thread Kalle Korhonen
I suspect the culprit is the Java upgrade rather than Tapestry. There are some internal changes in the sorting algorithm (for example, see https://bugs.openjdk.java.net/browse/JDK-8062797 although it doesn't directly match your case). But basically, you have to make sure your grid data source doesn

Re: http redirection to https port 443

2016-06-02 Thread Kalle Korhonen
No need to override BaseURLSource. You can just configure SymbolConstants.HOSTPORT_SECURE to 443. The default is 0, which means use request.serverPort. I'd say you are missing something from Jetty configuration, since you are getting that port from the request, but add a breakpoint to BaseURLSource

tapestry-security 0.6.4 release addresses a serious vulnerability

2016-05-31 Thread Kalle Korhonen
While the Apache Shiro team (me included) are still mulling over how to best fix a serious security vulnerability with Shiro's default rememberMe cookies and object deserialization [SHIRO-550]( https://issues.apache.org/jira/browse/SHIRO-550), I went ahead and implemented a fix for the vulnerabilit

Re: Overriding and translating JSR-303 validation messages

2016-05-18 Thread Kalle Korhonen
You should be able to override them by adding a ValidationMessages.properties file at the root of your classpath. See https://github.com/apache/tapestry-5/blob/master/tapestry-beanvalidator/src/test/resources/ValidationMessages_en.properties for examples. Kalle On Wed, May 18, 2016 at 4:34 AM, Ca

Re: how to define a new asset domain

2016-05-10 Thread Kalle Korhonen
10:47 PM, D.R. wrote: > Hi Kalle, > > sounds nice, how do i setup a new context and use it? > > Kind regards > David > > > On 11.05.2016 07:38, Kalle Korhonen wrote: > >> If you are serving static files but want to keep the deployment simple, >> it&#x

Re: how to define a new asset domain

2016-05-10 Thread Kalle Korhonen
If you are serving static files but want to keep the deployment simple, it's very straight forwarded to set up a new context, such as /images/ to purely serve static resources. I've done it in a few occasions and the nice thing about it is that you don't really need more than one liner in an xml fi

Re: tapestry 4.1.6 and pergmen question

2016-04-07 Thread Kalle Korhonen
d some useful tools for detecting memory leaks (see http://wiki.apache.org/tomcat/MemoryLeakProtection, and Tomcat 7 and up is even able to recover from some of them). Take a heap dump of the stressed out system and load it in your VisualVM. Kalle > Il 06/04/2016 23:24, Kalle Korhonen ha scritto:

Re: tapestry 4.1.6 and pergmen question

2016-04-06 Thread Kalle Korhonen
If you run out of permgen space very quickly, then it's indicative that the allocated permgen space is simply too small. Perhaps the new version of Tomcat requires more of it for itself, leaving less for your application. Is the webapp restarted at times? If so, that can easily cause permgen space

Re: Unable to add SecurityAssert after moving from 5.3 to 5.4

2016-04-01 Thread Kalle Korhonen
SecurityAssert is your own code right? What are you injecting into it and what does it do? Why don't you just break the circular dependency? Kalle On Fri, Apr 1, 2016 at 10:20 AM, Pavel Chernyak wrote: > Yea, i know. But there no any more info. > It's simple starts, loading pages, than shows th

Re: Tapestry 5.3.7 with Tanuki service wrapper

2016-03-30 Thread Kalle Korhonen
I've used Tanuki to wrap various versions of Tapestry webapps and I've also done plenty of embedded Jetty/Tomcat installations. Never had any major issues with Tanuki. Any problems are almost always related to classloader issues, not directly caused by Tanuki. Kalle On Wed, Mar 30, 2016 at 12:41

Re: Hibernate call returns wrong day

2016-03-29 Thread Kalle Korhonen
The same thread really reads the same value from the database every few seconds and it may come out different? I don't buy it, there must be something else going on at the same time. Are you sure it's the same value? Is there something else writing to it at the same time? Can the system default tim

Re: OAuth2 Server tapestry implementation

2016-03-23 Thread Kalle Korhonen
that. Turning the Jax-RS sample to a > servlet one, before try to migrate it to tapestry. I Guess my knowledge on > OAuth2, JAX-RS & Servlet isn't deep enough to quickly do it for now. I'll > set aside a few weekends to learn more about it in the future :) > > >

Re: OAuth2 Server tapestry implementation

2016-03-22 Thread Kalle Korhonen
Adapting the code from Oltu's integration tests (e.g. see https://github.com/apache/oltu/blob/trunk/oauth-2.0/integration-tests/src/test/java/org/apache/oltu/oauth2/integration/endpoints/AuthzEndpoint.java), it should be relatively simple to implement Oauth authorization & resource servers as JAX-R

Re: exception during bind

2016-03-20 Thread Kalle Korhonen
You have the wrong version of plastic and/or JRE. (And for the love of god, please learn to post a proper question and include at least some context, like versions of libraries you are using.) Kalle On Wed, Mar 16, 2016 at 9:19 PM, Qbyte Consulting wrote: > I added a missing dependency, still

Re: TAPESTRY-1908

2016-03-19 Thread Kalle Korhonen
I suspect you are talking about https://issues.apache.org/jira/browse/TAPESTRY-1908 instead of https://issues.apache.org/jira/browse/TAP5-1908? The actively worked T5 issues are in the TAP5 namespace. The former is a *nine years* old issue with a sample code to get it to do what you want. Furthermo

Re: Calling method after CommitAfter call

2016-02-24 Thread Kalle Korhonen
On Wed, Feb 24, 2016 at 12:27 PM, g kuczera wrote: > Sorry for not editing the post properly, I accidentally sent it by pressing > the space few times (first time using the fullscreen editing on gmail). > > So, the question is if the hibernate Interceptor is the way to go? Do you > have any other

Re: Tapestry is a sinking Ship

2016-02-12 Thread Kalle Korhonen
For Eclipse, you want to install Dmitry Gusev's excellent Tapestry plugin https://github.com/anjlab/eclipse-tapestry5-plugin. By the way, I agree with your comments about javascript documentation. It's great if you've been working with Javascript and AMD modules before, but totally lost if you hav

Re: Save File Dialog after response building

2016-02-12 Thread Kalle Korhonen
Yes, so if you respond to an ajax request with a page response, T5 will send you a json snippet {"redirectURL" : "your.redirect.url"} and handles redirecting to it from the client. In this case you are responding with a StreamResponse so T5 gets confused. If you wanted to do an ajax update, it's to

Re: Commit After not working after migrating to IntelliJ

2016-02-04 Thread Kalle Korhonen
Yes Chris is right (see https://github.com/apache/tapestry-5/blob/master/tapestry-hibernate/src/main/java/org/apache/tapestry5/internal/hibernate/CommitAfterWorker.java), you need to depend on tapestry-hibernate. tapestry-hibernate-core is for non-web projects (where you need the advisor to tell to

Tapestry-conversations 0.2.0 released!

2016-01-27 Thread Kalle Korhonen
We aim to serve. A user asked for a T5.4 compatible version of conversations module and we delivered. Upgrading the module was pure joy and it is a testament to the outstanding backwards compatibility record T5 has had throughout its existence. Note that I had written the original version for Tapes

Re: registry startup issue

2016-01-26 Thread Kalle Korhonen
You are using a version of plastic that's incompatible with the version of tapestry-core and/or JVM you are using. Check your classpath for multiple version of these libs. It's always a good idea to state upfront the versions you are using to save others from the guesswork. Kalle On Tue, Jan 26,

Re: maven build dependency problems

2016-01-20 Thread Kalle Korhonen
d it worked. I had to obtain google kaptcha 2.3 from an archive and > install it on the local repository because this also has gone off-line. > > John > > On Wed, Jan 20, 2016 at 1:40 PM, Kalle Korhonen < > kalle.o.korho...@gmail.com> > wrote: > > > No, I thin

Re: maven build dependency problems

2016-01-19 Thread Kalle Korhonen
No, I think you should remove extra repository references. Codehaus went bust more than 8 months ago. Track down where codehaus repo is being referenced and remove it. If you need the org.got5.tapestr5-jquery library, use the versions available at Maven central: http://repo1.maven.org/maven2/org/go

Re: T5.3.8 ClassNotFound error ONLY when running on a virtualized server?!

2016-01-18 Thread Kalle Korhonen
In my experience, the "weird errors" you see in virtualized production environments where JVM is unrestricted (unlike Google App Engine or RedHat OpenShift) are almost never caused by the environment itself but some small, fairly simple differences between your dev/test and production environments.

Re: T5.4 and OLD Hibernate 3x

2016-01-11 Thread Kalle Korhonen
You could try backing out the tapestry-hibernate and tapestry-hibernate-core libs to a T5.4 version before beta-17 (see http://markmail.org/message/yeqlybz6hivwwcxk#query:+page:1+mid:ahfcfibfff2t6ueu+state:results). They were not available via Maven central and the staging repos are not available a

Re: Zone Update with POST

2016-01-08 Thread Kalle Korhonen
For handling POST, I'd utilize Tynamo's tapestry-resteasy ( http://www.tynamo.org/tapestry-resteasy+guide/). JS could be something like this: $.ajax({ url: 'http://my.server.com/editor/save', data: data, error: function() { }, dataType: 'json', success: function(data) { },

Re: Where does Tapestry fit today

2015-12-26 Thread Kalle Korhonen
On Fri, Dec 25, 2015 at 1:22 PM, Alex Kotchnev wrote: > These days, HTML5 + javascript single page apps are all the rage. The whole > approach of having a rich javascript-based client (e.g. something based on > Angular) that uses REST-ful services, although not incompatible w/ > Tapestry, certain

Re: [ANNOUNCE] Apache Tapestry 5.4

2015-12-25 Thread Kalle Korhonen
No, T5.4 was still firmly headed by Howard. He created the first T5.4 branch over three years (see for example http://tapestryjava.blogspot.com/2012/10/zeroing-in-on-tapestry-54.html) and you can see the results of his mastermind everywhere in the T5.4 code. I guess you could say it was the first r

Re: tapestry-security oauth authentification

2015-12-21 Thread Kalle Korhonen
Hi Charles, hope you don't mind that I moved this discussion to the tapestry users list as it may be useful for others as well. Yes, I'm right there with you. The trick to this is to override the SubjectFactory. Shiro creates a subject for all requests, authenticated or not. The principle is roughl

Re: Tapestry-security 0.6.3 and tapestry-model 0.6.0 for T5.4 released!

2015-12-15 Thread Kalle Korhonen
Thanks for reporting Bob, fixed. Kalle On Tue, Dec 15, 2015 at 3:33 AM, Bob Harner wrote: > Great news, Kalle! > > By the way, when checking it out, I noticed that the "quick start links are > broken at http://www.tynamo.org/tapestry-model+guide/ > On Dec 14, 2015 9:28

Tapestry-security 0.6.3 and tapestry-model 0.6.0 for T5.4 released!

2015-12-14 Thread Kalle Korhonen
Hey all, at this time we have two T5.4 compatible release announcements to make. First tapestry-security 0.6.3: While working on securing an Ember frontend with Tapestry backend, I noticed that tynamo-resteasy didn't want to play well with security. I'm fairly surprised this issue surfaced only n

Re: Frontend Frameworks / Libraries

2015-09-15 Thread Kalle Korhonen
gmail.com> wrote: > > > On Mon, 14 Sep 2015 14:21:46 -0300, Kalle Korhonen < > > kalle.o.korho...@gmail.com> wrote: > > > > React and Ember Fastboot solve the SEO problem by rendering the first > load > >> on server, but Angular doesn't offer t

Re: Frontend Frameworks / Libraries

2015-09-14 Thread Kalle Korhonen
21 AM, Kalle Korhonen wrote: > React and Ember Fastboot solve the SEO problem by rendering the first load > on server, but Angular doesn't offer the same functionality natively. > There's https://prerender.io/ though, but it's another component you need > to deploy. &g

Re: Frontend Frameworks / Libraries

2015-09-14 Thread Kalle Korhonen
enough anymore to make an educated > > > decision. > > > > > > > > On Sat, Aug 8, 2015 at 5:18 AM, Taha Siddiqi < > tawus.tapes...@gmail.com > > > > > > > wrote: > > > > > > > >> For me it is om(or reactjs). I

Re: Redirect on exception

2015-09-10 Thread Kalle Korhonen
ult > exception reporting. > Anything else I have to configure? No, that should be it. Are you sure the module is loaded ? You could use @SubModule to make sure. Kalle > On 10/09/15 18:19, Kalle Korhonen wrote: > >> On Thu, Sep 10, 2015 at 8:47 AM, Nathan Quirynen < >> na

Re: Redirect on exception

2015-09-10 Thread Kalle Korhonen
/ Kalle > > > On 10/09/15 17:45, Kalle Korhonen wrote: > >> On Thu, Sep 10, 2015 at 7:56 AM, Nathan Quirynen < >> nat...@pensionarchitects.be> wrote: >> >> How can I set a redirect when an exception has been thrown? >>> But this seems to only

Re: Redirect on exception

2015-09-10 Thread Kalle Korhonen
On Thu, Sep 10, 2015 at 7:56 AM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > How can I set a redirect when an exception has been thrown? > But this seems to only work for non-XHR requests? Or did I forget > something here? > If you are on T5.4, you can simply contribute an exception t

Re: Frontend Frameworks / Libraries

2015-08-07 Thread Kalle Korhonen
27;t make sense with all the bits and pieces of Ember tooling, the CLI etc (there was an earlier thread about that and I followed Andreas Andreou's advice). Ember is more comprehensive than AngularJS and its router is incredibly useful for mapping out a structure for larger spas. Kalle >

Re: Frontend Frameworks / Libraries

2015-08-07 Thread Kalle Korhonen
It's pretty easy. Don't build component event requests but just send REST(-like) requests that are either processed by plain Tapestry pages and its EventContext. If you are building a more comprehensive spa then consider pairing the client with JAX-WS resource backend (i.e. http://www.tynamo.org/ta

Re: Multiple domains, one webapp

2015-08-06 Thread Kalle Korhonen
On Wed, Aug 5, 2015 at 4:12 PM, Stephen Nutbrown wrote: > Seems to be working for me too! Thanks. > The only issue I am having is that my code for hibernate doesn't seem to > work quite as expexted. Ideally, this should be picked up from the happylib > public static void > contributeHibernateEnti

Re: Filling some filed of a form selecting a row from a grid

2015-08-03 Thread Kalle Korhonen
On Mon, Aug 3, 2015 at 7:58 AM, Luca Arzeni wrote: > Hi, > I'm using tapestry 5.3.7 unde jboss6 (java6). > I'm developing an invoice form. > I already have a customer list, built with a grid. > While filling the invoice form, I need to show the customer grid, select > one of the customers, and re

Re: [T5.4 build 22] Exception in ExceptionReport.tml

2015-07-24 Thread Kalle Korhonen
Noticed you had asked the same question on Stackoverflow ( http://stackoverflow.com/questions/31477722/tapestry-5-4-exception-in-exceptionreport-tml/31598497) so I replied there. The problem is related to GAE's restrictions on spawning new threads. Kalle On Sat, Jul 18, 2015 at 8:00 AM, Michał Wi

Re: Advanced transaction support for tapestry JPA applications

2015-07-24 Thread Kalle Korhonen
Thanks Dmitry, looks excellent. Even so that I don't see any reason we shouldn't merge this to tapestry's core JPA integration at some point. I didn't read the code that carefully, but do the injectable JPA entitylisteners also support (totally non-spec) constructor injection? Do you know if the co

Re: [T5.4] 5.4-beta-32 on Maven Central / T5.4 Release Schedule

2015-07-14 Thread Kalle Korhonen
Not all of the preview versions were voted on and thus were not officially released. Tags were created and the latest is available via the staging repo ( https://repository.apache.org/content/repositories/orgapachetapestry-1057/). However, we are just voting on switching to a 5.4 release candidate

Re: [OT] Hosting

2015-06-10 Thread Kalle Korhonen
ww.digitalocean.com/?refcode=112272022761 :D > > > On Wed, 10 Jun 2015 20:58:15 -0300, Kalle Korhonen < > kalle.o.korho...@gmail.com> wrote: > > It's that time again. I need a cheap hosting for development & testing of >> a >> low memory profile T5 app.

[OT] Hosting

2015-06-10 Thread Kalle Korhonen
It's that time again. I need a cheap hosting for development & testing of a low memory profile T5 app. Prices of VPS plans have been dropping in recent years. I'm rather suspicious of ultra-low ($2-$5/month) shared Tomcat plans but could try out one that's found to be reliable. I've used Tektonic's

Re: T5.3.7 + Tynamo Security - User ASO creation after authc/authz

2015-04-29 Thread Kalle Korhonen
On Wed, Apr 29, 2015 at 12:41 PM, Daniel Jue wrote: > Hi, I'm getting hung up on something that's probably really simple to fix. > I have a Tomcat+LDAP configuration that is doing Authc and Authz for > me--All I have to do is look in the request header to see the user > principal and log the dude

Re: SSL/TSL for the tapestry tynamo rest

2015-04-17 Thread Kalle Korhonen
I'm not sure what you mean by "mapping the web.xml to the rest pattern" but the easiest scenario is if you want to make your application only TLS accessible. If your TLS endpoint is application container (Tomcat, Jetty, etc..) then you just need edit the server configuration files and point it to y

Re: IoC Service, call a method after instantiation/realization

2015-04-12 Thread Kalle Korhonen
Also, if you are using Hibernate or JPA, you should definitely check out http://tynamo.org/tapestry-hibernate-seedentity+guide for the entity seeding needs. Kalle On Sun, Apr 12, 2015 at 3:26 AM, Charlouze wrote: > Hey! > > The tapestry @startup annotation is to be used in modules. The annotate

Re: DefaultRequestExceptionHandler not redirect xhr request to a secure link

2015-04-10 Thread Kalle Korhonen
On Fri, Apr 10, 2015 at 5:56 AM, George Christman wrote: > I'm using relative links throughout my application and allowing our reverse > proxy to handle our secure port forwarding. > > I just discovered that DefaultRequestExceptionHandler on line 210 is > creating an absolute link for all xhr req

Re: SoftReferences to PageImpl can cause performance problems

2015-04-01 Thread Kalle Korhonen
like your test setup is just a synthetic, lightweight t5 app with no back end, is it? Kalle On Apr 1, 2015 3:44 PM, "Kalle Korhonen" wrote: > A configurable cache might be ok but what Robert is showing is a highly > typical performance degradation pattern for any sufficiently large

Re: SoftReferences to PageImpl can cause performance problems

2015-04-01 Thread Kalle Korhonen
p with my example about other infrastructure. You would not expect > e.g. > > Spring beans or a hibernate configuration to get thrown away under memory > > preasure - you would expect them to fail with OutOfMemory if they are not > > able to hold their necassary static i

Re: The active page name has not been specified

2015-04-01 Thread Kalle Korhonen
Github https://github.com/tynamo/tapestry-security, might just as well. Kalle On Wed, Apr 1, 2015 at 1:29 PM, George Christman wrote: > Should I file a bug with tynamo jira? > On Apr 1, 2015 3:40 PM, "Kalle Korhonen" > wrote: > > > On Wed, Apr 1, 2015 at 9:22 AM,

Re: The active page name has not been specified

2015-04-01 Thread Kalle Korhonen
t; > > >> > > I think I've seen the error during debugging here and there > in > >> > > >> beta-22... > >> > > >> > > We're not using tapestry security, I can't remember if it > >> happens &g

Re: Passing hibernate session from one page to the next in a wizard form

2015-03-27 Thread Kalle Korhonen
On Fri, Mar 27, 2015 at 11:50 AM, George Christman wrote: > Hi guys, I'm trying to pass my object from one page to the next without > actually saving it. I tried putting the object in a sessionstate, but I'm > getting lazy loading exceptions on my second page, any idea how to do this? > It's gen

Re: The active page name has not been specified

2015-03-25 Thread Kalle Korhonen
Sorry, I forgot to reply to your earlier post. Fundamentally, the issue is caused by tapestry-security operating as part of the httpservletrequest pipeline, before the active page is already set up. The library is internally setting up request globals etc. where needed but you may be pushing around

Re: T5 and Ember

2015-03-24 Thread Kalle Korhonen
pestry, wouldn't we? Convention over configuration is one thing, but the article you linked to is a fairly well balanced in my opinion. For me, the biggest things to like in Ember is it's router, clean urls, cleaner/simpler concepts and performance. Kalle > > > On Tue, Mar 24, 2015

T5 and Ember

2015-03-23 Thread Kalle Korhonen
As an experiment, I'm trying to migrate an existing Angular app to Ember (with T5 back-end and serving multiple other "thin" pages). There's a lot to like in Ember vs Angular but I'm wondering if there are anybody else using Ember with T5 and if so, what's your setup? I'm mainly interested in knowi

Re: HTTP/S Session Cookie

2015-03-19 Thread Kalle Korhonen
On Thu, Mar 19, 2015 at 9:41 AM, Martin Polívka wrote: > Hi, I am quite new to Tapestry, but last month I am upgrading our app from > Tapestry 5.0.14 to 5.3.8. It's working now with one problem. > We use Tomcat 7, servlet 3.0 (in the future Tomcat 8 and servlet 3.1) and > Java 7. Tomcat listens o

Re: SoftReferences to PageImpl can cause performance problems

2015-03-19 Thread Kalle Korhonen
initely. If you are adamant on this approach, you could probably convince us to add a symbol to control the cache behavior (i.e. to never purge objects from it). Guava has excellent, easily configurable cache implementations. Kalle > Robert > > Am 18.03.2015 um 18:19 schrieb Kalle Ko

Re: SoftReferences to PageImpl can cause performance problems

2015-03-18 Thread Kalle Korhonen
dump and trending cpu/memory charts of a sufficiently large system you can share with us to demonstrate the problem? Jvisualvm snapshots should work fine. And furthermore - how would you like this changed? If it's just adding a Page as a threadlocal, perhaps you can just write a patch for it. Kal

Re: SoftReferences to PageImpl can cause performance problems

2015-03-17 Thread Kalle Korhonen
In my opinion, soft referencing page objects is highly appropriate usage here. If there's pressure on the available memory, it makes sense to trade performance for memory instead of exiting with OoM. This is simple condition to detect and should be visible with any reasonable monitoring tool. If yo

Re: org.apache.tapestry5.ioc.internal.OperationException

2015-03-13 Thread Kalle Korhonen
As log message shows, you need to find out where the ArrayIndexOutOfBoundsException comes from, everything else is incidental. Kalle On Fri, Mar 13, 2015 at 9:31 AM, George Christman wrote: > *Hi I'm using 5.3.7* > > *Tapestry-Security 0.4.1* > > We had an ldap server go down this morning and f

tapestry-routing 0.1.1 released!

2015-02-08 Thread Kalle Korhonen
Bada bing bada boom! New year, new releases - and just like that tapestry-routing 0.1.1 is ready for consumption with the latest T5 beta. There were some minor API adjustments made, otherwise it's the same, trustworthy routing module. See the tapestry-routing guide ( http://tynamo.org/tapestry-rout

Re: Override hibernate.cfg.xml with QaModule hibernate config

2015-02-05 Thread Kalle Korhonen
Use different execution modes for production and testing, then contribute a custom HibernateConfigurer that supplies hibernate configuration file with mode specific name, e.g. "hibernate-production.cfg.xml" or "hibernate-test.cfg.xml". Kalle On Thu, Feb 5, 2015 at 11:09 AM, George Christman wrot

Re: Two fundamental questions.

2015-01-21 Thread Kalle Korhonen
Always worth mentioning tapestry-model ( http://tynamo.org/tapestry-model+guide) when talking about CRUD. The more you generalize your T5 CRUD implementation, the more it will start looking like tapestry-model. Kalle On Wed, Jan 21, 2015 at 5:40 AM, Geoff Callender < geoff.callender.jumpst...@gma

Re: HibernateEntityValueEncoder NullPointerException - Composite/Compund Primary Key Issue

2015-01-21 Thread Kalle Korhonen
I see Lance already answered to your question on Stackoverflow. Follow his advice and make sure you contribute the encoder. After that, you may hit another issues with tynamo not recognizing @IdClass (see an old issue https://jira.codehaus.org/browse/TYNAMO-168), whether it matters to you, I'm not

Re: PageRenderLinkSource failing in service when called by cron scheduler - Unable to delegate method invocation to property

2015-01-21 Thread Kalle Korhonen
On Wed, Jan 21, 2015 at 1:07 PM, George Christman wrote: > On Wed, Jan 21, 2015 at 3:16 PM, Kalle Korhonen > wrote: > > On Tue, Jan 20, 2015 at 1:03 PM, George Christman < > gchrist...@cardaddy.com> > > wrote: > >> So I just took a look at the tapestry co

Re: PageRenderLinkSource failing in service when called by cron scheduler - Unable to delegate method invocation to property

2015-01-21 Thread Kalle Korhonen
the cause of this > >> exception? I'm assuming your referring to me contributing those values > to my > >> appmodule. Once I contribute those values, would toAbsolute use those > values > >> instead of the request? Just trying to understand the

Re: PageRenderLinkSource failing in service when called by cron scheduler - Unable to delegate method invocation to property

2015-01-20 Thread Kalle Korhonen
On Tue, Jan 20, 2015 at 1:23 AM, George Christman wrote: > I'm using T5 beta-25 and I have the following code and I'm noticing > when the scheduler fires off my service, my PageRenderLinkSource does > not work. If I manually fire it off through the admin with an > actionlink, it works without iss

Re: How to build xml sitemap with cron job and make available publicly

2015-01-19 Thread Kalle Korhonen
On Mon, Jan 19, 2015 at 1:26 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Mon, 19 Jan 2015 19:05:49 -0200, George Christman < > gchrist...@cardaddy.com> wrote: > >> Well that is what I'm currently doing, but the problem I'm facing is >> the app generates millions of pages and

Re: Prevent Tapestry from redirecting non existing pages to index.

2015-01-05 Thread Kalle Korhonen
Tapestry-routing (http://tynamo.org/tapestry-routing+guide) explicitly doesn't allow Index pages but lets you specify context-less routes instead and gives 404 for anything else. I've always thought that's the way it should work by default. Kalle On Mon, Jan 5, 2015 at 12:27 PM, Chris Poulsen wr

Re: view http response

2014-12-22 Thread Kalle Korhonen
You could easily write a Tapestry or even a standard servlet filter to buffer the response and print it out before sending. I think Tapestry archetype still comes with a sample timer filter, instead you'd just print out the content. Kalle On Mon, Dec 22, 2014 at 8:11 PM, D.R. wrote: > Hi, > > f

Re: Tynamo Tapestry-Security - Multiple Realms - How to Change Authentication Strategy

2014-12-21 Thread Kalle Korhonen
On Sun, Dec 21, 2014 at 8:55 AM, Charles Karow wrote: > I'm using Tynamo Tapestry-Security 0.6.0 with Tapestry 5.4, and finding it > a very useful tool!! > I am implementing two realms for two different classes of users that are > stored in different tables in the database; both will use username

Re: Custom error pages with actual messages

2014-12-20 Thread Kalle Korhonen
o move to > 5.4 yet. I had forgotten about your exception page additions to 5.4, > thanks for the reminder. That's one of several new things in 5.4 that > aren't yet well explained anywhere. > > On Fri, Dec 19, 2014 at 7:39 PM, Kalle Korhonen > wrote: > > For 5.

Re: Custom error pages with actual messages

2014-12-19 Thread Kalle Korhonen
For 5.4? Use exceptions, not error codes and the new contributable DefaultExceptionHandler. 5.4 contains a built-in a version of tapestry-exceptionpage (see http://tynamo.org/tapestry-exceptionpage+guide, you can map exceptions to specific pages with context). I've written the javadocs for 5.4 but

Re: CompressionAnalyzerImpl exception

2014-12-15 Thread Kalle Korhonen
On Mon, Dec 15, 2014 at 12:35 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > > On Mon, 15 Dec 2014 12:05:52 -0200, George Christman < > gchrist...@cardaddy.com> wrote: > >> Howard, you were correct. the MIME type was null. CompressionAnalyzerImpl >> was failing on line 32 do to con

Re: Sticky Sessions

2014-12-04 Thread Kalle Korhonen
then unbinds any objects bound to it." Kalle > > On Thu, Dec 4, 2014 at 3:41 PM, Kalle Korhonen > > wrote: > > > On Thu, Dec 4, 2014 at 12:08 PM, George Christman < > gchrist...@cardaddy.com > > > > > wrote: > > > > > I'd hav

Re: Sticky Sessions

2014-12-04 Thread Kalle Korhonen
t expiration of 30 mins, I'm not sure if the spec ever said anything about it. Kalle > On Thu, Dec 4, 2014 at 1:26 PM, Kalle Korhonen > > wrote: > > > On Thu, Dec 4, 2014 at 5:54 AM, George Christman < > gchrist...@cardaddy.com> > > wrote: > > > >

Re: Sticky Sessions

2014-12-04 Thread Kalle Korhonen
On Thu, Dec 4, 2014 at 5:54 AM, George Christman wrote: > Hi guys, so I've had a slew of strange behaviors over the past few months > with a few different Tapestry components such as Tapestry Grid, Tapestry > Captcha, and writting/removing cookies. Last night I was finally able to > fix them, but

  1   2   3   4   5   6   7   8   9   10   >