Re: Old Tapestry Validation JavaScript in 5.3.6

2013-04-26 Thread Szemere Szemere
The offender is **tapestry-bootstrap** as it rolls it's own version of validation.js which is out-of-date (compared to 5.3.6). We've patched it (will try to get that into tapestry-bootstrap lib) and it works. Szemere

Old Tapestry Validation JavaScript in 5.3.6

2013-04-26 Thread Szemere Szemere
We have two web apps, both on Tapestry 5.3.6. One (app A) came through prior Tapestry versions from ~5.0.x maven archetype. The other (app B) started with 5.3.6. The problem is number validation doesn't work in App A. It appears to be because the numerifformat definition in the validation.js file

Re: Greenfield development: Tapestry or Grails for Groovy dev?

2012-10-10 Thread Szemere Szemere
I've used both Tapestry (nearly 5 years) and Grails (1 year before junking application). Grails has some really nice features, such as url mapping and the built-in MVC framework. I didn't like: 1) Lack of type-safety. Many errors would present themselves only at runtime, which slowed productivity

Grid cast class exception

2012-02-03 Thread Szemere Szemere
I'm getting a strange cast class exception with the grid component, along the lines of: Render queue error in BeginRender[admin/WidgetList:grid.rows.gridcell]: com.companyname.data.Widget cannot be cast to com.companyname.data.Widget_$$_javassist_0 The code is simple and clean and I don't get it e

Grid now displays public static fields of object

2011-12-20 Thread Szemere Szemere
I recently upgraded from 5.2.5 to 5.3, which I must say was very straightforward. :) A minor issue we've just noticed is, that Grid now shows as columns any public static fields of the objects listed by the grid. Is this by design (a change in spec) or a bug? The workaround is simple, simply u

Re: Input string 'login;jsessionid=082793EE9A197CEB7F7750090DD0423D' is not valid; the character ';' at position 6 is not valid.

2011-10-29 Thread Szemere Szemere
I see the too in development. Version 5.1.2? Szemere On 27 Oct 2011, at 16:43, Muhammad Gelbana wrote: > Please specify the exact scenario to reproduce this issue and state the > version you are using > > On Thu, Oct 27, 2011 at 12:17 PM, Leon Derks > wrote: > >> >> Hello >> >> I see this

Re: [ANN] JumpStart 5.4.8 gets @EJB and a better PageProtectionFilter

2011-09-13 Thread Szemere Szemere
oss" in: >> >>http://wiki.apache.org/tapestry/Tapestry5HowTos >> >> Cheers, >> >> Geoff >> >> On 13/09/2011, at 10:49 PM, Szemere Szemere wrote: >> >>> Has anyone got a tapestry app working successfully on JBoss7? >>> &g

Tapestry 5.2.5 on JBoss7

2011-09-13 Thread Szemere Szemere
Has anyone got a tapestry app working successfully on JBoss7? We've been trying to port our Tapestry app that works nicely on JBoss4. Or current issue is that browser request seem to make it through to Tapestry (we can see TimingFilter results in the log) but nevertheless we get a JBoss style 4

GridPager sometimes fails to jump to chosen page

2010-04-23 Thread Szemere Szemere
We're getting occasional reports from users that the grid pager does not allow them to jump to particular pages. For example, after the page loads, user clicks on page 5 (out of 6 pages), but then clicking on page 4 keeps them on page 5. Has anyone else experienced this, or have a suggestion as to

Re: problem with "Secure" configuration

2009-11-18 Thread Szemere Szemere
Resurrecting an old thread. We recently upgraded from 5.0.18 to 5.1.0.x and have unsuspectingly got hammered by this feature (bug). When making application breaking changes like this between versions, it would be nice if there was a warning or error message for it. The docs are also out of date o

Re: Hibernate question

2009-11-13 Thread Szemere Szemere
Afaik any Hibernate object stored in the HTTPSession will be Hibernate-detached between HTTP requests. It is not refreshed/merged automatically on a new HTTP request, so it will be outside the Hibernate session on the second request which is probably not what you want. It is generally a much bette

Re: Dictionary ordering in Grid

2009-10-29 Thread Szemere Szemere
> I guess you're using a List or a Collection as the grid's source. Yes. Thanks for the suggestion, I will take a look at it. I think however that it would be natural to use dictionary order as the default ordering. Do others agree? Szemere

Dictionary ordering in Grid

2009-10-29 Thread Szemere Szemere
The ordering in Grid sorts by character value (uppercase before lowercase), not by dictionary order e.g. ADrian Aardvark Adrian Is there an easy way to change this? Szemere

Re: T51.0.5: Persistent fields may not be up dated until after the page has finished loading.

2009-10-20 Thread Szemere Szemere
The method you used in 5.0.14 is no longer allowed. If you search through the archives you will find out why; though as far as I recall, it is due to the method being insecure or causing potential sharing of variables across user sesssions. So you have to replace it with something else. Personall

Re: Tapestry5.1 upgrade

2009-10-13 Thread Szemere Szemere
It may not be related but when I upgraded from Tapestry 5.0.18 to 5.1.0.5 at the beginning of this week, I found that while createPageLink would accept a null context, createPageRenderLinkWithContext would not. Szemere

Re: Multiple onActivate() methods ...

2009-09-24 Thread Szemere Szemere
All this renewed talk about OnActivate, has finally piqued my interest in digging down into EventContext. i should get to it next week. I never looked at it before because there wasn't any documentation (18 months ago). If EventContext is easy to use, then it should really be the only way to acces

Re: multiple onActivate methods in page handler

2009-09-17 Thread Szemere Szemere
I have to say this feature nearly killed me when I started using Tapestry. I just couldn't get the logic of how it's supposed to work. I don't think the EventContext method is in the spirit of quick and easy programming, whilst the onActivate doesn't seem very robust. I solved the above issue by us

Testify and Tapestry 5.0.18

2009-08-27 Thread Szemere Szemere
Excuse my ignorance, does Testify work with Tapestry 5.0.18? The current version of Testify seems to require Tapestry 5.1.05. Is there a version that works with 5.0.18> Szemere

Numeric validator doesn't recognise scientific numbers (5.0.18)

2009-08-19 Thread Szemere Szemere
Using the BeanEditForm, my object has a numeric value (e.g. 120,000,000.00) which gets displayed in scientific notation (e.g. 1.2E8). That's fine, except when I try to save the validator complains that 1.2E8 is not a valid number. Is this a known issue (searching the mailing lists proved blank)?

Re: Organisation of Tapestry documentation

2009-08-12 Thread Szemere Szemere
+1

Re: t5: turning off logging for jetty

2009-06-29 Thread Szemere Szemere
If found this Jetty Q affected my Tapestry experience. To fix it, I commented out, the requestLog tag in the standard Tapestry POM, which starts: HTH, Szemere

Re: [OT] Problem using eclipse+maven+jetty

2009-03-04 Thread Szemere Szemere
Just to complete my story, I've got JNDI working again by reverting to a prior version of the maven-jetty-plugin. I forced maven to use version 6.1.7 (by adding a version tag), viz: org.mortbay.jetty maven-jetty-plugin 6.1.7

Re: [OT] Problem using eclipse+maven+jetty

2009-03-02 Thread Szemere Szemere
Tapestry Infodea explains it nicely. That was my working setup in T5 5.0.11. But I've just upgraded to 5.0.18, which has a newer version of Jetty and so as per Jetty website, I changed the jetty.env-xml configuration to add an extra scoping parameter: *[scope]* * *

Re: T5: Timers/Schedulers

2009-02-27 Thread Szemere Szemere
Quartz is an effective way of scheduling things. I've used the Quartz servlet before - search the mailing list for my notes. Szemere

Re: [DISCUSS] Should the quickstart archetype include tapestry-hibernate?

2009-01-23 Thread Szemere Szemere
Why not include the config needed for tapestry-hibernate in the pom, but comment it out. That way you don't automatically get the cruft if you don't want hibernate, but if you do it's really easy to figure out how to include it. Szemere

Re: T5 and hibernate slowing with more records

2009-01-15 Thread Szemere Szemere
Feels like a Hibernate question, not Tapestry. Does your table have the right index, do you need to have 10k transactions in a single web-request? Szemere

Re: [T5] improve documentation

2009-01-15 Thread Szemere Szemere
Completely agree with the sentiments expressed. Too often I've had to use Google or similar to find what I'm looking for in the Tapestry documentation. Having it split across at least 4 different places and in some places confused with Tapestry4 is awkward. Szemere

Re: [T5] Auto-load / Auto-request start page on Tapestry startup

2008-11-11 Thread Szemere Szemere
Thanks Howard. Works and goes a long way! Saves about 70% of the start-up time. Szemere

[T5] UploadedFile - Persist/default filename

2008-11-10 Thread Szemere Szemere
I want to persist on a form the filename used in the file upload component. Is there an appropriate way to do that? I'm worried about writing: @Persist private UploadedFile uploadfile; because I think that could clutter memory with a lot of file streams (within the UploadedFile). Szemere

Re: [T5] Auto-load / Auto-request start page on Tapestry startup

2008-11-10 Thread Szemere Szemere
Thanks for the suggestion, thought I couldn't get that quite to work. I'm on Tapestry 5.0.11 and got the following. Upgraded to 5.0.15 to see if that made any difference (a better error message ensues), but it hasn't done the trick. 5.0.11 [INFO] Starting jetty 6.1.7 ... 2008-11-10 21:24:14.344::I

[T5] Auto-load / Auto-request start page on Tapestry startup

2008-11-07 Thread Szemere Szemere
Is there an easy way to have Tapestry auto-load or auto-request the start page when the core Tapestry servlet loads up? The first page to load when we restart Tapestry takes over 10seconds (mostly because of Hibernate and number of linked pages), which we only get to when making the first request

Re: [T5] Grid default sort column

2008-10-26 Thread Szemere Szemere
I've got to say, I prefer the low-tech way of just sorting the collection before I give it to the Tapestry grid - it's a lot simpler than the above. This doesn't explain why you have the above issue, but it does give you a workaround. Szemere

Re: T5: Using with hibernate and Mysql

2008-10-26 Thread Szemere Szemere
You're on the right track. Tapestry-hibernate essentially provides the "session per request" paradigm in an easy to use way within Tapestry pages. In the java file for a page you can now add: @Inject private Session session; And any of the methods can use the session to pull data from your databas

Re: so much useless logging

2008-10-24 Thread Szemere Szemere
+1 for t5.enhanced I read that as category "com.company.webapp.Page" --> "t5.enhanced.com.company.webapp.Page" Szemere

Re: Rendering messages in template

2008-10-24 Thread Szemere Szemere
I don't think so, at least not in ordinary Tapestry. For your example, I'm not sure that even OGNL would help out.

Loops in Form - where are my serialized

2008-10-08 Thread Szemere Szemere
I'm using a Loop in a Form to create a list of checkboxes. I'm having trouble getting hold of the list after it has been submitted. How is it possible to get hold of the collection of objects associated with the loop? The individual checkBoxItems get serialised fine, but a persisted list of them (

Re: T5: How to use Quartz with T5?

2008-10-08 Thread Szemere Szemere
Sorry you also need, step: 5. In pom.xml add quartz quartz 1.5.2 :) Szemere

Re: T5: How to use Quartz with T5?

2008-10-08 Thread Szemere Szemere
We got Quartz working with: 1. In src/main/webapp/WEB-INF/web.xml, we add: QuartzInitializer org.quartz.ee.servlet.QuartzInitializerServlet 1 2. Put quartz.properties at: src/main/resources/quartz.properties 3. Out job file at: src/main/resources/quartz.jobs.xml 4. T

Re: Integration with GWT

2008-10-01 Thread Szemere Szemere
To integrate GWT and Tapestry, we're using separate projects in Eclipse. One for GWT code (uses Ant as build tool) and the other for Tapestry (Maven based). I looked at maven-gwt a few months back and I decided against using it, because it didn't seem easy to use, give a big enough benefit for lea

Re: Integration with GWT

2008-09-23 Thread Szemere Szemere
We integrated GWT in Tapestry in a basic but effective fashion. Tapestry does the "single click then display page" stuff and GWT does the interactive application functionality. We treat GWT and Tapestry as separate projects, so the integration is light. Tapestry has a template page wrapper around

Re: T5.0.14 - OnActivate problem and coercion error

2008-08-29 Thread Szemere Szemere
This is a classic problem. The path to your assets is shifted by one level because of the parameter you are passing. Not sure of the fix for your specific case, but if you referenced an asset like this in a .tml, you would use href="${asset:context:org/atlog/mjweb/components/xfade2.css}" HTH, Sz

Re: Multiple file upload

2008-08-28 Thread Szemere Szemere
I don't have a solution to this, but would also be interested to hear of one.

Re: t5's version?

2008-05-22 Thread Szemere Szemere
I can certainly recommend JBoss as a wrapper around Tomcat to solve the classloader issues. It's auto-deploy feature is really effective. You could say it's a little like taking a sledgehammer to crack a nut, but you can slim the sledgehammer (JBoss) down and it does the job effectively and so muc

Re: [T5] JavaScript in template files

2008-05-21 Thread Szemere Szemere
Take a look at http://wiki.apache.org/tapestry/Tapestry5HowToIncludeJavaScript This explains how to do it. Szemere On Wed, May 21, 2008 at 6:23 AM, Ken <[EMAIL PROTECTED]> wrote: > Hi, > > I wrote a template file like below: > > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > >

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-20 Thread Szemere Szemere
+1 for org.apache.tapestry5 Tapestry 5 is fundamentally separate as a product from tapestry 4. tapestry.v5 gains nothing extra. V6 is far off and marketing-wise it would not be much of an issue to keep the package name at that time (under the hood item, post sale). Szemere

Re: T5: Calling method with parameter in prop

2008-05-14 Thread Szemere Szemere
I agree with the sentiments above - the framework should provide basic services and give others the ability to extend it. However I think there is a lot of value in making it easy for folks to use popular bindings. I for one, am not a big fan of having to incorporate additional code into my project

Re: T5.0.11: onActivate() called twice, more questions

2008-05-12 Thread Szemere Szemere
Your images/pic.gif is relative to the current page url (which includes your context parameters), so will get caught as a page request by Tapestry. You should probably use src="${asset:context:images/pic.gif}" instead. Szemere On Mon, May 12, 2008 at 11:23 AM, Tomasz Dziurko <[EMAIL PROTECTED]>

Re: T5 pagelink problem

2008-05-01 Thread Szemere Szemere
It is generally wise to have your links in the form: ${asset:context:styles/style.css} Then the links will work even if you have parameters that change the relative depth of the URL path. Szemere

Re: T5: How send "/" as symbol in t:ac parameter?

2008-04-29 Thread Szemere Szemere
Not sure about this specific case, but if you upgrade your Tapestry version then even this might break. You are generally better off coding as (YMMV): t:ac="prop:specificContext()" Object[] specificContext() { Object[] context = Object[2]; context[0] = "catalog"; context[1] = "somefil

Grid - sort link context parameters

2008-04-29 Thread Szemere Szemere
I have a page that needs parameters to work e.g. http://localhost/tapestryapp/pagename/3/4 which includes a grid component with sortable columns. Even though I have an onPassivate method, when I click on the sort column link, the context (3/4) is not included. Q1. Should this work as described an

Re: T5 onActive method (multiple parameters)

2008-04-16 Thread Szemere Szemere
Mon, Apr 14, 2008 at 10:44 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Hi, > > onActivate(Object[]) is always called first because it counts as a method > having an infinite amount of parameters, so to speak. At least that's the > way I see it. > > -Filip &g

T5 onActive method (multiple parameters)

2008-04-14 Thread Szemere Szemere
I've been playing around with onActivate methods recently, that is with multiple parameters and multiple methods. I don't understand its behaviour - it does not seem to match up with the lore on the mailing lists (apologies for the lack of references). I was wondering if anyone has recent experien

Re: [T5] Jetty issues after using Tomcat

2008-03-07 Thread Szemere Szemere
Thanks - that was it. My problem; having dug deeper now and lest anyone else runs into this; was that: mvn war:inplace tomcat:inplace creates lib+classes directories under src\main\webapp\WEB-INF and mvn clean doesn't get rid of them. Deleting these 2 directories did the trick. On Thu, Mar 6,

[T5] Jetty issues after using Tomcat

2008-03-06 Thread Szemere Szemere
I experimented with Tomcat Maven plugin today and got my app working fine. However when switching back to using Jetty (mvn jetty:run), I started to get a strange error message: 2008-03-06 18:38:16.990::WARN: Failed startup of context [EMAIL PROTECTED] /appname,/home/user/appname} java.lang.Runtim

T5: XML encoding of URLs

2008-02-01 Thread Szemere Szemere
I'm having trouble including an image source URL in my .tml files. The URL has & and ? characters in it. If I use &, then the T5 XML validation complains that I have unterminated entities (not surprising). However if I replace & with & (ampersand-"amp"-semicolon) then the whole 5 character string g

Re: Need help with pom.xml for my tapestry 5 project

2008-01-29 Thread Szemere Szemere
What you posted has org.apche.commons rather than org.apache.commons Are you missing an 'a' in apache? On Jan 29, 2008 6:31 PM, Jacob Bergoo <[EMAIL PROTECTED]> wrote: > > Hi All, > I am new to Maven 2 but I am learning as fast as I can. My plan is to set > up > a project that is working with Sp

Re: Editing a collection

2008-01-29 Thread Szemere Szemere
I'm going through something similar right now. Looking at the docs: http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentstextfield it seems that your: value="user.loginUser" determines the field that gets updated when the form is submitt

Re: T5: Eclipse unhappy with TML file that has DOCTYPE

2008-01-28 Thread Szemere Szemere
I too don't have the line with: xml version="1.0" encoding="UTF-8" and it all works fine in Eclipse 3.3.1.1 (I believe I have WST or at least some of its plugins).

Loops in .tml calls Java calls components

2008-01-14 Thread Szemere Szemere
How can Tapestry 5 handle a scenario where I have a loop in a .tml file that calls method in the page.java which then calls components to render (e.g. PageLinks)? Can someone point me towards example code? Tks