Re: [Tapestry Central] Tapestry 5.1 and IE 8 -- Customizing Tapestry

2009-10-05 Thread Sergey Didenko
Thanks. I'm planning to make it in the future. BTW, is there a simple way to change the bundled Prototype for Google CDN's one? ( http://ajax.googleapis.com/ajax/libs/prototype/1.6.1/prototype.js ) Not a simple way, as that would defeat Tapestry's JavaScript aggegation.

Re: T5: Exception in Autocomplete mixin

2009-10-05 Thread Inge Solvoll
I've tried upgrading javassist to 3.11, it didn't help. I've run into a lot of trouble because of this javassist problem. It occurs when compiling with a 1.6 JDK, and it seems to be completely random. I've managed to overcome this so far by doing binary search debug in my classes, moving things

Re: T5: Exception in Autocomplete mixin

2009-10-05 Thread Fermin Da Costa Gomez
Did you also see the same behaviour across platform and hardware? Fair enough if it doesn't run properly on 1.6 (not ok but as long as it does it consistently). The thing that really puzzles me is the fact that *all* *is* running fine on Ubuntu on a MacBook but exactly the same situation on a

T5 / Form handling / Page property question

2009-10-05 Thread Gunnar Eketrapp
Hi! I have a form page where i try to render the result view in the same page. In my onSuccess() method I do the form processing and sets a flag to indicate to my TML that it should render the result instead of the form. E.g. Foo.java @property private boolean viewResult; Foo.tml

Re: T5 / Form handling / Page property question

2009-10-05 Thread Kristian Marinkovic
add a @Persist(flash) or just @Persist onto your property Gunnar Eketrapp gunnar.eketr...@gmail.com 05.10.2009 12:00 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema T5 / Form handling / Page property question Hi! I

Re: T5 / Form handling / Page property question

2009-10-05 Thread Gunnar Eketrapp
Thanks! That was my thought and i just read somewhere that T5 make a client side redirect for all form submissions. /Gunnar 2009/10/5 Kristian Marinkovic kristian.marinko...@porsche.co.at add a @Persist(flash) or just @Persist onto your property Gunnar Eketrapp gunnar.eketr...@gmail.com

Tapestry Security guide

2009-10-05 Thread Timo Westkämper
Hi. Is there any guide on how to use the Tapestry Security module (org.trailsframework:tapestry-security)? I managed to integrate the module, but how do hook in the login, logout, remember me etc functionality? Br, Timo Westkämper.

T5 clientIds for elements in a block/zone

2009-10-05 Thread Toby Hobson
Hello Everyone It's about 12 months since I used Tapestry but its good to be back :-) I'm currently writing an Ajax based order form for a client but I've hit a little problem. Basically I have a series of blocks which are used to represent 'pages' in the order form i.e. I have a block for

Re: T5 clientIds for elements in a block/zone

2009-10-05 Thread cordenier christophe
Hello You'd better use a RenderSupport and @AfterRender to create a javascript method call that will link your checkbox with the copyDetails() method. Something like this, i guess : In a separate JS file injected via @IncludeJavascript copyDetails : function(techFirstId) { } linkDetails:

Re: T5:hibernate @Length validator doesn't work

2009-10-05 Thread cleverpig
thanks! On Sat, Oct 3, 2009 at 2:38 AM, Valentin Yerastov xib...@gmail.com wrote: Try this project http://code.google.com/p/tapestry-validator/ cleverpig-2 wrote: hi,all! i got a trouble in hibernate @Length validator with Tapestry 5.1. i think it's a easy-meet problem for newbie(it's

T5.1 submit not working

2009-10-05 Thread formpost
I have a simple page using a form, a loop (each itema has some text and a checkbox), and submit button. If the checkbox is checked when the form is submitted it will delete that item from the list. Pretty simple stuff, but T5.1 doesn't seem to be able to do the simple stuff these days. I've

Re: Processing resttful requests

2009-10-05 Thread Alan Chaney
Thiago H. de Paula Figueiredo wrote: Very Tapestry-y. :) Don't use relative paths to CSS/JavaScript/images/anything. By the way, the recommended way of doing it is using ${asset:} expressions (${asset:context/images/image.jpg, for example). This is the most common cause for problems

Re: After Clicking on table columns table( contrib:TableView) doesn't display doesn't display rows

2009-10-05 Thread seshu babu
Hi , I tried 2 ways both are landing into exceptions. 1. Making the Persist page scoped by using client: @Persist(value = client) @InitialValue(Collections.EMPTY_LIST) public abstract List getUsers(); Its giving me this error :

Property expressions

2009-10-05 Thread Brian Long
Hi all, just a quick question, looking at the property expressions guide @ http://tapestry.apache.org/tapestry5/guide/propexp.html it looks like I should be able to evaluate whether a property has a null value (handy for if conditions) without having to use ognl, e.g. instead of t:if

Re: Property expressions

2009-10-05 Thread Howard Lewis Ship
The not operator (!) coerces the value to a boolean; nil is false, as is any kind of empty collection. Thus t:if test=! payoutTransfers ... /t:if should work. On Mon, Oct 5, 2009 at 8:39 AM, Brian Long bl...@annadaletech.com wrote: Hi all, just a quick question, looking at the property

Re: Property expressions

2009-10-05 Thread Brian Long
Thanks for the quick replay, my updated 'ognless' if condition now reads . . . t:if test=payoutTransfers t:actionlink t:id=exportButton${message:EXPORT}/t:actionlink /t:if /Brian. :-) Howard Lewis Ship wrote: The not operator (!) coerces the value to a

Re: T5 clientIds for elements in a block/zone

2009-10-05 Thread Toby Hobson
Hi Christophe Unfortunately this doesn't seem to work, although maybe I have missed something. For example @Component private TextField techFirstName; void afterRender() { logger.debug(techFirstName clientId: + techFirstName.getClientId()); } [DEBUG] pages.Order techFirstName clientId: null

Re: T5 clientIds for elements in a block/zone

2009-10-05 Thread Toby Hobson
Sorry to clarify ... I guess the problem is that the textField is nested in a block which is rendered using AJAX so although the page has completed it's rendering the textField has not yet being rendered therefore it doesn't have a clientId? 2009/10/5 Toby Hobson toby.hob...@googlemail.com Hi

Re: [t5] upgrade to java 6 and javassist

2009-10-05 Thread dcg
Hi Joost, Did you get this 'sort-off' resolved? A large method constitutes a method with 'a lot of code' or a method with a long name (fully qualified ..)? Tia, Fermin Joost Schouten (mailing lists) wrote: Thanks for the quick response, Howard Lewis Ship wrote: Look for any large

Re: [t5] upgrade to java 6 and javassist

2009-10-05 Thread Thiago H. de Paula Figueiredo
On Fri, Sep 4, 2009 at 1:09 PM, Howard Lewis Ship hls...@gmail.com wrote: Look for any large methods that are annotated or are event listeners and refactor them to be smaller; too often Javassist gets confused with large methods. I'm working full time in a Tapestry project using Java 6 without

Re: [t5] upgrade to java 6 and javassist

2009-10-05 Thread Fermin Da Costa Gomez
Hi Thiago, On Mon, Oct 5, 2009 at 7:14 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Fri, Sep 4, 2009 at 1:09 PM, Howard Lewis Ship hls...@gmail.com wrote: Look for any large methods that are annotated or are event listeners and refactor them to be smaller; too often

Re: T5 clientIds for elements in a block/zone

2009-10-05 Thread cordenier christophe
Hi As you have clearlay said id, the problem is to generate javascript initialization code once everything is rendered. I think that the AfterRender of the main page is not called in an Zone refresh. Only the block is rendered. Replacing the block by a 'component' will allow you to implement such

Re: T5 clientIds for elements in a block/zone

2009-10-05 Thread Toby Hobson
Thanks again ... I'll try that approach 2009/10/5 cordenier christophe christophe.corden...@gmail.com Hi As you have clearlay said id, the problem is to generate javascript initialization code once everything is rendered. I think that the AfterRender of the main page is not called in an Zone

Re: [T5.1] AJAX Form Validation

2009-10-05 Thread xfile80303
Thanks Josh! You helped me identify that it was an encoder issue on my end. I appreciate your help. :) Cheers, Levi Josh Canfield wrote: The only change I made was making isValid into a property and a checkbox in the form so I could switch between behaviors. Here is the complete

Re: [t5] upgrade to java 6 and javassist

2009-10-05 Thread Thiago H. de Paula Figueiredo
Em Mon, 05 Oct 2009 15:40:58 -0300, Fermin Da Costa Gomez dacostago...@dcgconsultancy.nl escreveu: Hi Thiago, Hi! Sorry if this sounds like a silly question, but what would be an example of an eventhandler method? Would that be something like the onSuccess() method .. ? Yes. Or some

Re: T5.1 submit not working

2009-10-05 Thread Thiago H. de Paula Figueiredo
Em Mon, 05 Oct 2009 11:35:24 -0300, formpost formp...@hotmail.com escreveu: The problem is that the submit button doesn't fire an event. Your form does not need the Submit component, just an ordinary input type=submit HTML tag. There seems to be no client error. but it seems to stop

Re: T5 clientIds for elements in a block/zone

2009-10-05 Thread Thiago H. de Paula Figueiredo
Em Mon, 05 Oct 2009 09:56:07 -0300, Toby Hobson toby.hob...@googlemail.com escreveu: Hello Everyone Hi! Does anyone know what is the best way to get a clientId for an element which is rendered via Ajax? In this case, provide the ids yourself. -- Thiago H. de Paula Figueiredo

Re: [t5] upgrade to java 6 and javassist

2009-10-05 Thread Fermin Da Costa Gomez
Would that be something like the onSuccess() method .. ? Sorry if this sounds like a silly question, but what would be an example of an eventhandler method? Yes. Or some method annotated with @OnEvent. Hmm, i figured as much so i did some stripping. Below the code that i end up with whilst

Re: [t5] upgrade to java 6 and javassist

2009-10-05 Thread Thiago H. de Paula Figueiredo
Em Mon, 05 Oct 2009 19:10:41 -0300, Fermin Da Costa Gomez dacostago...@dcgconsultancy.nl escreveu: Is there any chance i'm looking at a 'corrupted' class of sorts, even though the whole thing is based on the quickstart archetype from Maven. Have you tried deleting the tapestry-core JAR

t5: urlrewrite and grid pager's link

2009-10-05 Thread Angelo Chen
Hi, I use following code to rewrite http://localhost:8080/mylist to http://localhost:8080/internallist/X this works, however the page has a grid, so the pagination's link does not change, I still get: /internallist.grid.pager/2?t:ac=X any idea how to change the pager's link as well? Thanks.

Re: [t5] upgrade to java 6 and javassist

2009-10-05 Thread Fermin Da Costa Gomez
Is there any chance i'm looking at a 'corrupted' class of sorts, even though the whole thing is based on the quickstart archetype from Maven. Have you tried deleting the tapestry-core JAR from your local repository and running a Maven goal (such as compile) again, so the JAR is

Re: T5 clientIds for elements in a block/zone

2009-10-05 Thread Toby Hobson
Hi Thiago I tried that but unfortunately T5 is appending a random string at the end of the id e.g. @Component(id=techFirstName, paramaters={value=order.techFirstName, clientId=techFirstName} private TextField techFirstName; t:textField t:id=techFirstName / According to firebug the html

Re: T5 clientIds for elements in a block/zone

2009-10-05 Thread Thiago H. de Paula Figueiredo
Em Mon, 05 Oct 2009 19:38:59 -0300, Toby Hobson toby.hob...@googlemail.com escreveu: Hi Thiago Hi! I tried that but unfortunately T5 is appending a random string at the end of the id e.g. According to firebug the html generated is input type=text name=techFirstName

Re: T5 clientIds for elements in a block/zone

2009-10-05 Thread Toby Hobson
Well done Thiago ... a good example of thinking outside the box :-) Thanks! 2009/10/5 Thiago H. de Paula Figueiredo thiag...@gmail.com Em Mon, 05 Oct 2009 19:38:59 -0300, Toby Hobson toby.hob...@googlemail.com escreveu: Hi Thiago Hi! I tried that but unfortunately T5 is appending a

Re: [t5] upgrade to java 6 and javassist

2009-10-05 Thread Fermin Da Costa Gomez
Just cleaned the whole repository to no avail. The error persists as tenaciously as my headache is increasing. Any other suggestions (short of putting T5 by the side of the street ..)? On Tue, Oct 6, 2009 at 12:39 AM, Fermin Da Costa Gomez dacostago...@dcgconsultancy.nl wrote: Is there any

Re: [t5] upgrade to java 6 and javassist

2009-10-05 Thread Fermin Da Costa Gomez
It is starting to look like something 'funny' with the Autocomplete class Relevant tml code: ... input t:id=fieldName t:mixins=autocomplete t:type=TextField / ... Without the mixin i am able to create 2 exceptions, both pointing to the Autocomplete class. When i start without the

Re: T5.1 submit not working

2009-10-05 Thread Martin Strand
On Mon, 05 Oct 2009 23:24:38 +0200, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: Em Mon, 05 Oct 2009 11:35:24 -0300, formpost formp...@hotmail.com escreveu: public void onSubmit() { for(Item i : items) { System.out.println(onSubmit:+ i.isToBeDeleted()); } }

Problems using upload inside an ajax zone

2009-10-05 Thread Pete Poulos
I'm trying to create an ImageUpload component using tapestry-upload. Once the user selects a file and submits the form, I want to replace that form with the image itself. However, I have found an issue where the form starts behaving differently when I place the tapestry-upload field inside the

Re: Problems using upload inside an ajax zone

2009-10-05 Thread Toby Hobson
Its about 12 months since I used Tapestry but if I remember correctly file uploads and ajax don't play well together ... it's not specific to T5, ajax and multipart forms just don't work together. If I remember correctly I used a flash based solution to handle ajax style file uploads ... I'll dig

Re: t5: urlrewrite and grid pager's link

2009-10-05 Thread Robert Zeigler
Sure. Make your rule rewrite both inbound and outbound. The outbound refers to links created by tapestry, so you have an opportunity to rewrite the urls that go out to the client. Just make sure to properly convert them back to tapestry-understood urls when they come back in. You can

Re: t5: urlrewrite and grid pager's link

2009-10-05 Thread Angelo Chen
Hi Robert, Thanks, looking at that outbound link, I just don't know how to form a link to a grid's pager: from this: /internallist.grid.pager/2?t:ac=X change to: /mylist:grid.pager/2?t:ac=X seems not working. Robert Zeigler wrote: Sure. Make your rule rewrite both inbound and