Re: dynamic forms concept & possible solutions

2014-04-14 Thread Ville Virtanen
I think Thiago means onSubmit() (If there are errors, it will never reach on success, right?) This also means that client side validation must be disabled, or then a bit of JS must be used to disable it for the hidden button. (Js interface also exists to submit the form iirc, but for these bit

VS: tapestry + maven + jboss tools + hot deploying ?

2014-03-14 Thread Ville Virtanen
Live class reloading works in JBoss too, at least the last time I used it. (7.x.x) You have to make your IDE to compile directly to the web container exploded directory structure. This is specific to your IDE / web container, and not really Tapestry. First of all read this: https://tapestry.apach

VS: Persist object fails

2014-03-07 Thread Ville Virtanen
I can also report 4 production systems running on Server Java 7 (The new option, server jdk) and tomcats. Ville -Alkuperäinen viesti- Lähettäjä: Bob Harner [mailto:bobhar...@gmail.com] Lähetetty: 7. maaliskuuta 2014 15:34 Vastaanottaja: Tapestry users Aihe: Re: Persist object fails I kn

VS: How to use grid with large data sets.

2014-01-17 Thread Ville Virtanen
repare? I'm wondering if I'm going about this the right way. > >> > > >> > Example I'm working from > >> > > >> > > >> > http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/gridd > atasources &g

VS: How to use grid with large data sets.

2014-01-16 Thread Ville Virtanen
Hi, here is one example: http://jumpstart.doublenegative.com.au/jumpstart7/examples/tables/griddataso urces Ville -Alkuperäinen viesti- Lähettäjä: George Christman [mailto:gchrist...@cardaddy.com] Lähetetty: 16. tammikuuta 2014 18:34 Vastaanottaja: Tapestry users Aihe: How to use grid

VS: BaseURLSource with access to current request

2013-09-23 Thread Ville Virtanen
Thanks! Multiple simple an efficient options, just what Tapestry is all about ;) Ville -Alkuperäinen viesti- Lähettäjä: Lance Java [mailto:lance.j...@googlemail.com] Lähetetty: 23. syyskuuta 2013 12:21 Vastaanottaja: Tapestry users Aihe: Re: BaseURLSource with access to current request

VS: BaseURLSource with access to current request

2013-09-23 Thread Ville Virtanen
deImpl.java:31) via org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at TapestryIOCModule.java:49) for references to another service that is itself dependent on service 'ServiceOverride'. … ... Am 22.09.2013 um 20:05 schrieb "Ville Virtanen" : > >public

VS: BaseURLSource with access to current request

2013-09-22 Thread Ville Virtanen
If that is not enough, you can also inject the request and us it in the contributed BaseUrlSource to sniff the host. public static void contributeServiceOverride(final MappedConfiguration configuration, final Request request) { BaseURLSource source = new BaseURLSource() {

VS: Eclipse Tapestry5 Plugin update

2013-09-12 Thread Ville Virtanen
.com/anjlab/eclipse-tapestry5-plugin On Mon, Sep 9, 2013 at 4:55 PM, Ville Virtanen < <mailto:ville.virta...@orientimport.fi> ville.virta...@orientimport.fi> wrote: > Hi, > > ** ** > > confirmed here too, I get > > ** ** &g

VS: Eclipse Tapestry5 Plugin update

2013-09-09 Thread Ville Virtanen
Hi, confirmed here too, I get ”Unable to read repository at https://dl.bintray.com/anjlab/eclipse/content.xml. Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated” Can’t wait to try this out though! Ville Lähettäjä: Nathan Quirynen [mailto:nat...@pension

VS: 5.4-alpha-15 resource exceptions

2013-08-30 Thread Ville Virtanen
one On Fri, Aug 30, 2013 at 10:28 AM, Ville Virtanen < ville.virta...@orientimport.fi> wrote: > Hi, > > thanks for the info. Should I reopen ticket > https://issues.apache.org/jira/browse/TAP5-1007 or create new one? > > (And thanks for all the hard work, 5.4 is proving t

VS: 5.4-alpha-15 resource exceptions

2013-08-30 Thread Ville Virtanen
. elokuuta 2013 11:04 Vastaanottaja: Tapestry users Aihe: Re: 5.4-alpha-15 resource exceptions Looks like the code that checks for case mismatch is broken when the path separator is different. It must be hard coded to look for "/", which is a problem on Windows. On Fri, Aug 30, 2013 at 6:55

5.4-alpha-15 resource exceptions

2013-08-29 Thread Ville Virtanen
Dear list, just tried to upgrade from 5.4-alpha-14 to 5.4-alpha-15, but the log is littered with exceptions like this: Caused by: java.lang.IllegalStateException: Resource classpath:com/orient/web/customer/base/SecureBasePage.class does not match the case of the actual file name, 'E:\projec

Re: Why would I choose JQuery?

2010-08-09 Thread Ville Virtanen
Portlet support and this Js fix are the most important new features. Especially the no-portlet support part stopped T5 in recent evaluation to build SAP front end and handling portal for multinational customer running Oracle's weblogics. - Ville Howard Lewis Ship wrote: > > jQuery and Prototy

Re: Why would I choose JQuery?

2010-08-09 Thread Ville Virtanen
Hi, there are several reasons: 1. It's widely in use and actively developed. Even endorsed by Microsoft. ("Microsoft now fully supports jQuery and distributes it with the ASP.NET Model-View Controller (MVC) framework. Furthermore, extensions have been deve..." source: http://msdn.microsoft.com/

Re: T5: How to have .tml/.properties files in the same directory as the .java files

2010-08-08 Thread Ville Virtanen
T5 application works ok as is if the files are in the same directory. If you use maven, then the maven default structure layout dictates that the non-java files must be in resources or webapp folders. (The build process copies the resources to the same directory structure from java and resources

Re: for IE

2010-08-04 Thread Ville Virtanen
On a side note: you can use the onAction(possible_context) to catch any action made by any link. Also, you can construct the context for the pagelink (or actionlink) in the java file, just return new Object[]{value1, value2...} from the java method. () - Ville Jim O'Callaghan wrote: > >

Re: for IE

2010-08-04 Thread Ville Virtanen
I rolled a component that uses the IE specific tag to render normal button if the used browser is less than IE 8. (IE 8+ handles it correctly) That wasn't the greatest solution, but it worked. Also it only matters when you have more than one button in the form, so single button forms can be imple

Re: Asset in css file?

2010-08-04 Thread Ville Virtanen
The most efficient way (cpu cycle wise) is to bypass Tapestry all together and let httpd share the images. This approach however lacks the ability to version assets using the T5 facilities. The best way IMHO is to use relative paths in css (if there are "images" and "css" folders, then the images

Re: Dynamic Type

2010-08-04 Thread Ville Virtanen
The only thing that I can think of is delegate and blocks. Is there a reason why the layout cannot be an empty component with a delegate, and then the delegate gets the block to render from java property that determines which (layout)block to use? In this model the block contains the actual compl

Re: [T5.1] No recursive component -> Howto render Beaneditor in code?

2010-07-27 Thread Ville Virtanen
Hi, @InjectComponent injects the component defined in tml, @Component injects instance that is configured by the annotation itself (and the associated tml if it is defined there also). http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/annotations/Component.html - Ville Oliv

Re: T5.1.05 always runing slowly when it handle the page requests

2010-07-27 Thread Ville Virtanen
Hi also make sure that you are NOT logging too much in production, that can REALLY kill performance. So change logging level to error and try it again. - Ville cleverpig-2 wrote: > > Oh,thanks Joachim ! > > Seem like your strange problem,my product hosts were deployed in > internal network.

Re: Using PageResponseRenderer.render() in T5.2?

2010-07-26 Thread Ville Virtanen
Hi I've always used symbol tapestry.version (org.apache.tapestry5.SymbolConstants.TAPESTRY_VERSION) and parsed it from that. Just get rid of the dots and then 5.1.0.5 becomes 5105, easy to convert to integer and perform all kinds of less than, equals or is greater than comparisons. - Ville Ka

RE: t:grid, inPlace and rowIndex

2010-07-18 Thread Ville Virtanen
Hi, you can calculate the exact index of the row by injecting the grid to the page and calculating it by using methods (getRowsPerPage() x getCurrentPage()) + index. (http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/corelib/components/Grid.html) The index of course changes when

RE: Asset protection and upgrade notes

2010-06-02 Thread Ville Virtanen
7;t work. It's a > pity no workaround seems to be available for this, unless I am missing > something. > > Regards, > Jim. > > -Original Message- > From: Ville Virtanen [mailto:ville.virta...@cerion.fi] > Sent: 31 May 2010 18:00 > To: users@tapestry.apa

Re: Asset protection and upgrade notes

2010-05-31 Thread Ville Virtanen
..), not maintainable in long run, if these dicisions will keep popping up. Also the automatic classpath asset addition works for this library only if the user who uses the library hasn't decided to use custom url for his/hers fck editor. It should not be depended on the TAG prefix? My

Asset protection and upgrade notes

2010-05-31 Thread Ville Virtanen
Hi, I've been tracking the documentation to understand the change in asset protection, but haven't found anything useful. I've checked the upgrade guide from svn (last update 4 days ago): http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/src/site/apt/upgrade.apt?revision=948226&view=markup

Re: EasyFCKEditor FileUpload with Tomcat?

2010-05-05 Thread Ville Virtanen
Hi, yeah, the configuration differs how to set up this with different app servers. (Or apache as we always use httpd to serve static files anyway.) - Ville Ps. Wish that I had time to finish CKEditor integration, I already have working version which needs polishing and documentation. The file

Re: easyfckeditor and file upload

2010-03-29 Thread Ville Virtanen
t; > > and Java class > @Persist > @Property > private String val; > > @Property > @Inject > @Path("context:fckeditor/fck.js") > private Asset2 customConf; > > I will send You my project shortly. > > Tomek > > >

Re: easyfckeditor and file upload

2010-03-29 Thread Ville Virtanen
wser/default/fckeditor?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F&uuid=1269849907986 > HTTP/1.1" 500 6094 " > http://localhost:8080/paruszynska/assets/easyfck/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=fckeditor&q

Re: easyfckeditor and file upload

2010-03-29 Thread Ville Virtanen
Filter.service(Tapestry5InterceptFckActivityFilter.java:76) > ... 22 more > 127.0.0.1 - - [29/mar/2010:08:05:08 +] "GET > /paruszynska/assets/easyfck/fckeditor/editor/filemanager/browser/default/fckeditor?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F&uui

Re: easyfckeditor and file upload

2010-03-29 Thread Ville Virtanen
cher.java:166) > at > net.fckeditor.connector.Tapestry5InterceptFckActivityFilter.service(Tapestry5InterceptFckActivityFilter.java:76) > ... 22 more > 127.0.0.1 - - [29/mar/2010:08:05:08 +] "GET > /paruszynska/assets/easyfck/fckeditor/editor/filemanager/br

Re: easyfckeditor and file upload

2010-03-28 Thread Ville Virtanen
Hi, can you attach the stack trace for further analysis? Also what servlet container are you using to run software? -Ville Tomek-28 wrote: > > Hi, > > i need to integrate a WYSIWYG editor to my website. I found only 2 > projects > that integrate fckeditor with tapestry 5 - ChenilleKit and e

Re: Pretty Printing JSON

2010-02-24 Thread Ville Virtanen
Hi, this definitely sounds something T5 should do as it is known to be developer friendly and aid in debugging whenever possible. It sounds good to enable this in non-production mode and disable in production. - Ville Ben Dotte-2 wrote: > > I put up a post on pretty printing the JSON that

Re: How to get rid of some T5 stack traces ...

2010-01-29 Thread Ville Virtanen
-4 Fahrenheit) I'm freezing! :) Thiago H. de Paula Figueiredo wrote: > > On Thu, 28 Jan 2010 14:47:08 -0200, Ville Virtanen > wrote: > >> Hi, > > Hi! > >> One way to prevent this is to contribute a T5 httprequest filter that >> just redirects t

Re: How to get rid of some T5 stack traces ...

2010-01-28 Thread Ville Virtanen
Hi, One way to prevent this is to contribute a T5 httprequest filter that just redirects to error page if it detects a post url submitted using GET. (And isn't hrx?) This is one of the T5 weaker sides I think. It produces many like these in the production for us for a site that slightly altered u

Re: [T5.1.0.4] Distinguishing Between Internal and Scripts when Combining

2010-01-21 Thread Ville Virtanen
Hi, GA works ok for us by just adding it to the tml as is instructed in GA site - No need to use T5 facilities to include the script. (Done in layout.tml in our case.) This doesn't solve the external script problems, and may not work for you but just thought to let you know. - Ville Kalle Ko

Re: Installing easyfckeditor

2010-01-11 Thread Ville Virtanen
Hi, just released 1.0.4 which uses the latest java integration library. I also updated some of the docs at http://t5-easy-fckeditor.kenai.com - Ville oskar_a wrote: > > Thx to all, > > but I solved this problem by creating a new maven-project from tapestry > quickstart archetype and addinng

RE: Advice on Tapestry5 best practise for user session data

2010-01-10 Thread Ville Virtanen
Hi, as Thiago said you can access the application state using ApplicationStateManager in services, but beware that this approach doesn't work if there is no request. So, you cannot use the service anymore if the calling code is, let's say some sort of batch job that has actually nothing to do w

Re: Installing easyfckeditor

2010-01-10 Thread Ville Virtanen
ate > dependencies. > When I start a new Project and let maven built it from tapestry-quickstart > it works but I would prefer to use my old Project (I importet just a > hello-world.war file from http://code.google.com/p/tapestrybook/ and > worked on it. Server is Tomcat6). > Do

Re: Advice on Tapestry5 best practise for user session data

2010-01-10 Thread Ville Virtanen
I would follow this guide: http://tapestry.apache.org/tapestry5/guide/appstate.html and make my own app state object, UserSession, which would contain the needed per user data. (The keys anyway.) There can be services that provide data based on these keys, and those services should also take care

Re: Installing easyfckeditor

2010-01-06 Thread Ville Virtanen
Hi, if you don't use maven you have to provide yourself also all the required dependencies. (See http://t5-easy-fckeditor.kenai.com/dependencies.html to view the list of dependencies.) The jar must be in the project libraries so that the jar is accessible to T5 during runtime, so adding it to on

Re: Number Formatting in TextField (T5)

2010-01-04 Thread Ville Virtanen
Hi, we actually made it the hard way and currently we have our own BigDecimalFieldTranslatorImpl, which takes care of the actual validation, as seen here: public class BigDecimalFieldTranslatorImpl extends FieldTranslatorImpl { private final Locale locale; private final int numberOfDeci

Re: Passing object as paramters to component

2009-12-30 Thread Ville Virtanen
Hi, define private YourObjectType param; variable to your component class and use it. Annotate it with @Parameter annotation. Then use your component like this: Or read the documentation: http://tapestry.apache.org/tapestry5/guide/parameters.html - Ville Captain Cid wrote: > > I want to p

Re: Number Formatting in TextField (T5)

2009-12-27 Thread Ville Virtanen
Hi! If you get this working please share the results. This is something I never thought when adding our number format handling. (Which is based on custom translators. I'm happy to share the current solution if you are interested?) - Ville Benny Law wrote: > > On Thu, Dec 24, 2009 at 5:41 AM,

Re: Tapestry 5 and Selenium

2009-12-14 Thread Ville Virtanen
e meaning full tests.) - Ville Howard Lewis Ship wrote: > > Identify the fields using XPath instead of id. > > On Sun, Dec 13, 2009 at 11:05 PM, Ville Virtanen > wrote: >> >> Hi, >> >> I've googled around but couldn't find solution for this one.

Tapestry 5 and Selenium

2009-12-13 Thread Ville Virtanen
Hi, I've googled around but couldn't find solution for this one. The problem is that we have to test a form that is loaded using progressive display which makes all the ids to be generated for each request. Now, how can I use selenium.type to locate the correct input, when the input name changes

Re: Tapestry 5.1.0.5 FCKEDITOR PROBLEM

2009-12-09 Thread Ville Virtanen
Hi, you can take a look at: http://kenai.com/projects/t5-easy-fckeditor The documentation lives here: http://t5-easy-fckeditor.kenai.com/ Please report any problems to http://kenai.com/jira/browse/T5_EASY_FCKEDITOR Or if you want to use the Chenillekit one then please report this problem to C

Re: collection of components within a page (Tapestry 5.1)

2009-12-03 Thread Ville Virtanen
Hi again, also forgot to mention great source to learn from: http://jumpstart.doublenegative.com.au:8080/jumpstart/ (http://jumpstart.doublenegative.com.au/home.html) - Ville Steven Tönsing wrote: > > Hi, > i'm completely new to tapestry and i got a very fundamental (for my > project) que

Re: collection of components within a page (Tapestry 5.1)

2009-12-03 Thread Ville Virtanen
Hi, Don't loop your components, loop your data. If it is the name of the component that is your data, then loop over the names and give those as parameter to your boxes. Normally it would be orders or products or users or what not that are looped through. You don't have to give unique identifier

Re: Switching between Stage & Production DB with Tapestry5 & Hibernate3

2009-11-15 Thread Ville Virtanen
Hi, we use our custom configuration file that reads everything from single file. The application reads a system property that defines the location of the conf file. This way, the jar and build process is the same for every environment and the deploy procedure is just to copy the war to the server

Re: Netbeans 6.7 tapestry 5 plugin support

2009-11-15 Thread Ville Virtanen
re the t4project was) > > Just request for the developer role if you have a java.net account - or > add the > patches to an issue at > https://nbtapestrysupport.dev.java.net/servlets/ProjectIssues > > On Thu, Nov 12, 2009 at 10:00 PM, Ville Virtanen > wrote: >> >> We u

Re: Netbeans 6.7 tapestry 5 plugin support

2009-11-12 Thread Ville Virtanen
We use it, but we have inhouse modified version of it due to problems in tml / java class change functionality. (The original version does not know how to resolve all possible template locations.) I contacted the author if he would like to get / review the changes, but I never got any reply back.

Re: t5: updating a zone during loading of page?

2009-11-05 Thread Ville Virtanen
Hi, I think this could be a framework level component, as it seems that there are many of us solving the same problem with a bit different approaches. (Everyone invents the wheel..) so +1 for this idea! :) - Ville Howard Lewis Ship wrote: > > Idea for a component: ImagePlaceholder that disp

Re: tapestry 5.1.0.5 with php

2009-10-26 Thread Ville Virtanen
Technically possible, feasibility? If you have httpd in front of tomcat or some other j2ee container that drives T5, then the session state is held in httpd and can be accessed from php also. Only scenario that comes to my mind is app that has to transition to some legacy system in some of the v

Re: t5: redirect to a page in javascript?

2009-10-17 Thread Ville Virtanen
Hi, this is not the best place to ask js questions, but my guess is 1. The window.location accepts only full urls? (Or atleast the context start /, window.location="/items") 2. Your method never gets called or the execution is halted in saveupdates() (Which should have ; at the end of the line,

Re: About T5 IoC

2009-10-17 Thread Ville Virtanen
Hi, Do you ask is it possible to know which module has done the service bind or building? What kind of problem you are trying to solve? You could guess something from the class name, but imho it sounds that there is something wrong with the logic whatever you might be trying to solve. - Ville

Re: Chenille kit Quartz

2009-10-17 Thread Ville Virtanen
Hi, You can override the used version in pom.xml like this: org.chenillekit chenillekit-quartz 1.2.0

Re: T5 NPE on service realization

2009-10-17 Thread Ville Virtanen
Hi, please share some more of the code + stack trace, without those further speculation is nearly impossible. - Ville zack1403 wrote: > > Hi all, > > I was just curious if anyone has had weird NullPointerExceptions on > service realization. I am getting this NPE when using this service for

Re: Slightly OT: Ad hoc connection pools

2009-10-17 Thread Ville Virtanen
Hi, I would probably create service that handles the connection pooling by using multiple pools that are backed up by some third party lib. Service would take care of closing pools when the registry shuts down or the pool has remained unused for certain period. Don't know how heavy it is to init

Re: [ANNOUNCEMENT] New Tapestry 5 book

2009-10-14 Thread Ville Virtanen
Hi, If this ever gets published in English we will buy one copy for sure, so plase :) - Ville Igor Drobiazko wrote: > > Not yet but I'll ask the publisher again. > > On Tue, Oct 13, 2009 at 9:02 PM, Borut Bolčina > wrote: > >> Hi, >> >> any news on when the book will be available in En

Re: [t5] upgrade to java 6 and javassist

2009-10-06 Thread Ville Virtanen
Hi, Also make 100% sure that there aren't multiple javassists (different versions in classpath) AND that the included javassist version is the right one. Check this from the produced war, do NOT trust what the ide is saying ;) Sometimes we have had problems like this, but those were because mave

Re: Announcment: T5 FCK editor integration library

2009-07-25 Thread Ville Virtanen
(I haven't tried your library > however) in that it caused problems with other Ajax components on the > same page, for reasons I didn't have time and skill to diagnose. In my > workshop, I'm starting to switch over to Yahoo's rich text editor > instead. > > O

Re: Announcment: T5 FCK editor integration library

2009-07-24 Thread Ville Virtanen
ribute the project > and share your time to create the real big one > > with regards > Sven Homburg > Founder of the Chenille Kit Project > http://www.chenillekit.org > > > > > > 2009/7/24 Ville Virtanen : >> >> Hello everyone >> >> w

Re: Announcment: T5 FCK editor integration library

2009-07-24 Thread Ville Virtanen
Hi again, I rolled new version that has 1.5 1.5 tags set in build configuration. This should do the trick, right? (Have no machine where I could verify with 1.5 java, and I'm too lazy to install one :)) - Ville Bryan Lewis-5 wrote: > > It looks good. Thanks for contributing! > > When I

Re: Announcment: T5 FCK editor integration library

2009-07-24 Thread Ville Virtanen
Damn, we're on 1.6 only... I'll roll another 1.5 compiled release tonight if I have the time after work. - Ville Bryan Lewis-5 wrote: > > It looks good. Thanks for contributing! > > When I tried it (after manually adding the jar to my web-app project), I > got: > > java.lang.Unsupporte

Announcment: T5 FCK editor integration library

2009-07-23 Thread Ville Virtanen
Hello everyone we have used FCK editor for quite some time now with file uploading capabilities, and we needed the same functionality in several clients that would have had to be kept separate due to licensing issues. Thus we agreed to make it publicly available and so we have to keep only one co

Re: [T5.1] Obtaining Messages in Service

2009-07-15 Thread Ville Virtanen
Hi, there are few possible solutions: 1. Pass the messages as parameter from the calling page or component to the service 2. Return only codes or something that you translate to human readable form in the page / component 3. If messages are errors, return your own exception that contains messa

Re: [Tapestry Central] Why chose Tapestry?

2009-06-18 Thread Ville Virtanen
Hi, First we used eclipse too, but ran in far too many problems with maven. Today we use NetBeans, which seems to do most of the things that we expect it to. At first there was _really_ much resistance to start using NetBeans which was seen as toy and not as an IDE for professional developer, but

RE: Two Menu Components

2009-06-16 Thread Ville Virtanen
Hi, this is wild guess, but take a look at the environment? You can push, pop and peek objects that are in the environment, shared by all enclosed components. http://tapestry.apache.org/tapestry5/guide/env.html http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/Environm

Re: Netbeans 6.7 tapestry 5 plugin support

2009-06-16 Thread Ville Virtanen
Thanks! This is something that looks very nice on paper, so I'll test it as soon as possible. - Ville iberck wrote: > > Hi I'm developing a netbeans plugin for tapestry 5 tested on windows xp > The supported features are: > > Initial features: > * Support on Netbeans 6.5, 6.51, 6.7 Beta

Re: [Tapestry Central] Why chose Tapestry?

2009-06-16 Thread Ville Virtanen
Don't know if I double posted but.. Indeed, if you aim to code shit, please don't use T5 :) The best case scenario would be that the compiler would detect all errors. The next best case would be that the app would point out what is wrong when it starts. The worst case is to have to click throug

Re: T5: Huge t-formdata

2009-06-08 Thread Ville Virtanen
Hi, Few suggestions: try 5.1, there are many optimizations in this release, don't know if any of those are related to this though. Also, does the size grow linearly with more objects in the row? How much by per row? (Test with 100, 200, 300, 400, 500 etc.) Include the tml and java, without thos

Next 5.1 bug fix release? (ProgressiveDisplay and chrome / ie8 woes)

2009-05-26 Thread Ville Virtanen
Hi, sometimes chrome and ie8 don't make the request when using progressive display. Symptoms: the ajax-loader.gif is displayed for the user indefinitely and the server never sees the request. This can be fixed by pressing refresh with shift. (Empty-cache-reload). So it is probably prototype issue

Re: URL pattern that causes TapestryException

2009-05-17 Thread Ville Virtanen
Hi, I also have the same problem, the app also breaks if you enter some custom character, like the % sign. java.lang.IllegalArgumentException Input string 'totalsadf%' is not valid; the character '%' at position 10 is not valid. Hide uninteresting stack frames Stack trace * org.apache.

Re: Component won't render its body

2009-05-12 Thread Ville Virtanen
Hi, check that the associated .tml is really named correctly and is part of the correct package. The case matters, it must be same in .java as it is in .tml. The tml file is not mandatory, if it is omitted then the component outputs only what the java class writes directly to the writer. - Vill

Re: t5: embed a variable in a javascript in a tml?

2009-05-05 Thread Ville Virtanen
Ofcourse one could write simple component that encapsulates the JS and outputs required script tags and comment etc. things... - Ville Ville Virtanen wrote: > > The ugly way out of this is to output the comments using > > > > and in java > > publi

Re: t5: embed a variable in a javascript in a tml?

2009-05-05 Thread Ville Virtanen
The ugly way out of this is to output the comments using and in java public String getCommentStart(){ return " html comments - > tapestry > does not evaluate markup in html/xml comments. > > felix > > Kristian Marinkovic schrieb: >> never did this myself, but i think this should work

Re: Using "futures" to parallelize rendering of components

2009-05-03 Thread Ville Virtanen
Hi, Don't really understand the question, but if you're having perfomance problems then caching would be the way to go? You can use blocks to separate what ever you wish to wrap as T5 components and place them to one central page, from which those blocks can be used. T5 caches all pages and com

Re: Solving the T5 Documentation Dilemma

2009-05-03 Thread Ville Virtanen
Is someone still using own mail to receive these :) I've used nabble for a while, and it really rocks. Try it out http://www.nabble.com/Tapestry-f302.html - Ville Piero Sartini-4 wrote: > > On Freitag, 1. Mai 2009 19:04:53 Otho wrote: >> The perfect solution and topping cream would be a for

Re: workaround for hibernate-module problem (ValueEncoderSource contribution)

2009-05-03 Thread Ville Virtanen
Provide the hibernate configuration if it is missing. If not, please attach the stack trace so we can take a look at it. - Ville aldana wrote: > > hi, > > I am facing problem described in > http://www.nabble.com/Hi-Lo-tutorial,-HIbernate-cfg-errors-td22230480.html. > > In my app I am usin

Re: t5: InjectPage and context

2009-05-03 Thread Ville Virtanen
Forgot to mention that the PageRenderLinkSource is not part of T5.0.18, It was introduced later. - Ville Ville Virtanen wrote: > > Hi, > > Two solutions: > > 1. Use PageLink in tml. (And supply the context to it from the java class) > > 2. Use Page

Re: t5: InjectPage and context

2009-05-03 Thread Ville Virtanen
Hi, Two solutions: 1. Use PageLink in tml. (And supply the context to it from the java class) 2. Use PageRenderLinkSource (return PageRenderLinkSource.createPageRenderLinkWithContext(WriteMsg.class, Object... context);) Neither requires injected page. - Ville Angelo Chen wrote: > > Hi, >

[T5] Tapestry.decimalFormatSymbols

2009-04-22 Thread Ville Virtanen
Hi, I have javascript that depends on Tapestry.decimalFormatSymbols. How can I ensure that those symbols are added to page? Could there be annotation that would trigger it? - Ville -- View this message in context: http://www.nabble.com/-T5--Tapestry.decimalFormatSymbols-tp23175562p23175562.h

Re: once-only onActivate method

2009-04-20 Thread Ville Virtanen
This probably is NOT the solution, as this method gets executed only once when the page is loaded and added to the pool. Multiple users and hundreds of requests can be served with only one call to PageLoaded, if I understand it correctly. The pageAttached and pageDetached events occur when the p

Re: Is rendering of the template done before initialization of the backing model?

2009-04-19 Thread Ville Virtanen
Could you attach a simple page that reproduces this? - Ville daniel joyce wrote: > > I find that if my template uses a field in the backing model java file > that hasn't been inited yet, it throws exceptions in when rendering. > > Is there a reason the tml file is rendered/reified before the

Re: T5.0.18: how to have variable data structures in a bean?

2009-04-19 Thread Ville Virtanen
Hi, the given tml is missing encoder for the inner loop. Without this T5 uses the default approach which is the highly inefficient serialize-whole-thing-to-form-data. This encoder can be constructed in the bean itself (resident) but imho should not be there, so the best approach (afaik) is to c

Re: [REQUEST] Live T5 web sites, quotes, marketting

2009-04-17 Thread Ville Virtanen
Hi, nice to see what others are making. We use T5 to build different kinds of systems for public and private sectors, but mainly budgeting and enterprise resource planning and monitoring software. Currently we have 4 T5 systems in production all in different client's environments, and two more p

Re: Order of rendering of page versus components in page?

2009-04-17 Thread Ville Virtanen
Hi, if you rely on onActivate, you surely have the corresponding onPassivate also? It should work if you do have the onPassivate. If not, please post some code so we can check it. - Ville daniel joyce wrote: > > I have a datagrid that is embedded in a page. Its datasource is built > by a me

Ordering of meta tags

2009-04-15 Thread Ville Virtanen
Hi, Per Microsoft documentation (http://msdn.microsoft.com/en-us/library/cc817574.aspx) "The X-UA-compatible header is not case sensitive; however, it must appear in the Web page's header (the HEAD section) before all other elements, except for the TITLE element and other META elements." T5 put

Re: T5 How to onLoad focus() to textfield in Layout component

2009-04-15 Thread Ville Virtanen
You can achieve this the T5 way by doing this in the page that contains the textbox, no need to mess with layout etc. this can even be in a component...: @Environmental private RenderSupport renderSupport; void setupRender() { renderSupport.addScript("document.getElementById('%s').fo

Re: [T5.1.0.2] / [T5.1.0.3] Combining JavaScript Libraries in IE 6

2009-04-15 Thread Ville Virtanen
I've experienced this too, and some others in the list. The underlying issue is that the combining / gzipping dies in the server side -> the page is loaded but the javascript asset is never delivered to the browser. However, tapestry includes initialization in the page which dependes to the asset

Re: Maxlength Client Validation Error

2009-04-14 Thread Ville Virtanen
Hi, definitely worth Jira issue. Many fields require (all?) maxlength validation && are not required. We aren't using any client side validation as all those balloons drove our clients crazy :) - Ville leechj wrote: > > Sorry to bring this up againbut I wasn't able to find any other topics

Re: More migration issues, 5.0.18 -> 5.1.0.2

2009-04-08 Thread Ville Virtanen
Hi, exatly the same problems we were having. I opened Jira issue because of this: https://issues.apache.org/jira/browse/TAP5-623 For us the main reason was because we had and then ${value} Now with T5.0.18 this worked fine, but now dies in 5.1.0.2 if it is readmode: (l

Re: t5: forwarding in index

2009-03-25 Thread Ville Virtanen
Two possibilities that I can see: http://tapestry.apache.org/tapestry5/guide/conf.html and tapestry.suppress-redirect-from-action-requests. Otherwise T5 will send redirect to browser and the url in the browser changes. Other is some url re-write magic. - Ville Angelo Chen wrote: > > Hi, >

Re: Binding of Boolean parameter

2009-03-24 Thread Ville Virtanen
I suggest that you create JIRA issue and attach .tml and .java files that replicate this with explanation. - Ville Łukasz Jazgar wrote: > > 5.0.18 > > 2009/3/24 Ville Virtanen : >> >> What version are you using? >> >>  - Ville >> >> >> Łuk

Re: Binding of Boolean parameter

2009-03-24 Thread Ville Virtanen
What version are you using? - Ville Łukasz Jazgar wrote: > > 2009/3/24 Ville Virtanen : >> >> Hi, >> >> double check that the boolean is not primitive _anywhere_, as then >> assigning >> null to it would coerse the value to false witch is the defa

Re: Binding of Boolean parameter

2009-03-23 Thread Ville Virtanen
Hi, double check that the boolean is not primitive _anywhere_, as then assigning null to it would coerse the value to false witch is the default in Java if it is unknown. The other option is that the type coersion system in T5 handles null values incorrectly? - Ville Łukasz Jazgar wrote: >

Re: [T5] 5.1.0.1 RC, rendering of some views produces stacktrace

2009-03-23 Thread Ville Virtanen
n I have time (if it is not solved yet) but atm my work is too crazy... - Ville Code that crashes: (AbstractMarkupModel, 94) public void encodeQuoted(String content, StringBuilder builder) { int length = content.length(); <--- Ville Virtanen wrote: > > Hi, >

Re: 5.0.18 - 5.1.0.1 upgrade problems

2009-03-23 Thread Ville Virtanen
For the exact same reason we use: String pageName = someObject.getPageName(); Class pageClass = someObject.getPageClass(); if (pageClass != null) { pageName = resolver.resolvePageClassNameToPageName(pageClass.getName()); } pageLink = linkSource.createPageRenderLink(pageName, true, new Object[

  1   2   >