Re: Persist issue with Paging

2008-10-28 Thread Ivan Dubrov
Hi, Is that possible to refactor the Grid that currentPage, sortColumn and sortAsceding are parameters rather than @Persist-ed fields and bind them by default to internal @Persist-ed fields? So, by default Grid will use @Persist storage for saving those, but if you override the parameters it will

Re: [T5] - Using a mixin on a beaneditform to do an submit without a page reload

2008-10-28 Thread BarryDev
BarryDev wrote: > > I'm using jQuery.noConflict(); to stop JQuery stepping on the prototype > injected by using beaneditform. Is this causing the error? > Ok I removed all my JQuery code to see if this was causing the issue and it was, but than I realised I was also returning the chatroom pa

Re: [T5] - Using a mixin on a beaneditform to do an submit without a page reload

2008-10-28 Thread BarryDev
Thiago H. de Paula Figueiredo wrote: > > > What about a Zone and the BeanEditForm zone parameter? :) > > I tried this with in my .tml onSuccess() gets called the first time I click submit without reloading the page, but the form doesn't get its values reset an

Re: T5: help required: Context and PageLink

2008-10-28 Thread Howard Lewis Ship
This often happens when your template references an asset, in this case style.css, that doesn't exist (you should avoid using relative paths on pages that have an activation context). What happens is that the page renders, the client asks the server for style.css relative the page's base URL ... t

Re: validation in t5

2008-10-28 Thread Howard Lewis Ship
Not currently supported, sorry. If you don't care about the contents of the fields, you can just use an ActionLink instead of a Submit. On Tue, Oct 28, 2008 at 4:01 AM, peibel <[EMAIL PROTECTED]> wrote: > > Hi, > > I need to choose validate or not validate in the same form depending on > which bu

Re: new URLEncoder Service

2008-10-28 Thread Fernando Padilla
Just wondering if Tapestry-IOC will ever support something like "override" of services ( like alias )? Howard Lewis Ship wrote: Contribute a new implementation of URLEncoder to the Alias service configuration and Tapestry will use the contributed one instead of the default URLEncoder service.

Re: new URLEncoder Service

2008-10-28 Thread jthompson209
yes thanks for the response, the problem i am having is, i wrote some code to do a zone update from a text field 'onKeyup' event using the T5-Components mixin "OnEvent" and in the javascript they use to make the ajax call they are not encoding the context data, so when the URLEncoder goes to dec

Re: T5: Crash on messages.format()

2008-10-28 Thread Howard Lewis Ship
Use %s for strings, %d for integers (or other numbers). I'd change this to: messages.format("view.last.x", VIEW_LIMIT); On Tue, Oct 28, 2008 at 5:59 AM, Inge Solvoll <[EMAIL PROTECTED]> wrote: > I'm trying this in T 5.0.13: > > messages.format("view.last.x", Integer.toString(VIEW_LIMIT)); > > In

Re: new URLEncoder Service

2008-10-28 Thread Howard Lewis Ship
Contribute a new implementation of URLEncoder to the Alias service configuration and Tapestry will use the contributed one instead of the default URLEncoder service. Alternately, you can decorate the URLEncoder service with an alternative implementation, or a filter depending on how much of the ex

Re: JSON return from an event

2008-10-28 Thread Thiago H. de Paula Figueiredo
Em Tue, 28 Oct 2008 16:56:28 -0300, Ben Gidley <[EMAIL PROTECTED]> escreveu: I should have been clearer - this is from an AJAX request. What I have done is implement a JSON client inside a flex app that then calls the event URL directly. Is there some magic in the URL that tells tapestry it is a

Re: JSON return from an event

2008-10-28 Thread Ben Gidley
I should have been clearer - this is from an AJAX request. What I have done is implement a JSON client inside a flex app that then calls the event URL directly. Is there some magic in the URL that tells tapestry it is an AJAX request? Looking at the autocompleter there doesn't seem to be any. Tha

new URLEncoder Service

2008-10-28 Thread jthompson209
Hello I am in need of either turning off this new service or overriding it and having it do nothing, it is currently breaking some code that I have, what would be the best way of doing that, also if overriding it is the answer how would i go about doing it. thanks so much -jeff -- View this mess

RE: Persist issue with Paging

2008-10-28 Thread Russell Brown
Ooops. Excuse me. My bad. Should have read a bit more closely. As you were. Russell -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: 28 October 2008 16:22 To: Tapestry users Subject: Re: Persist issue with Paging I believe the problem is the use of the Grid, w

Re: Persist issue with Paging

2008-10-28 Thread Howard Lewis Ship
I believe the problem is the use of the Grid, which uses @Persist fields to track the paging and sort status. On Tue, Oct 28, 2008 at 7:01 AM, Russell Brown <[EMAIL PROTECTED]> wrote: > Why not use an activation context on the page to persist your parameters > between requests? > > -Original

Re: [T5] - Using a mixin on a beaneditform to do an submit without a page reload

2008-10-28 Thread Thiago H. de Paula Figueiredo
Em Tue, 28 Oct 2008 11:38:12 -0300, BarryDev <[EMAIL PROTECTED]> escreveu: Hello everyone, Hello! Is there a mixin I can add to my beaneditform which will just tell it to make an ajax call to my page without reloading the whole page? Or is this not the correct approach? What about a Z

RE: T5: Using with hibernate and Mysql

2008-10-28 Thread BarryDev
Doh typo there, should have been @Column rather than @JoinColumn BarryDev wrote: > > Oh forgot that I'd change the field's name to match the column in that > class. If you want to explicitly join a field to a column use the > @JoinColumn(name = "whatever") annotation. > -- View this message

[T5] - Using a mixin on a beaneditform to do an submit without a page reload

2008-10-28 Thread BarryDev
Hello everyone, I'm still beavering away at getting my chatroom working in tapestry 5. I've got a proper hibernate/spring layer now instead of my singleton and I can reliably capture a user leaving the chatroom page with onbeforeunload. Now I'm trying to add a beaneditform to allow users to s

RE: Persist issue with Paging

2008-10-28 Thread Russell Brown
Why not use an activation context on the page to persist your parameters between requests? -Original Message- From: tapestry5 [mailto:[EMAIL PROTECTED] Sent: 28 October 2008 13:47 To: users@tapestry.apache.org Subject: Re: Persist issue with Paging Is there any other way to pass paramet

Re: Persist issue with Paging

2008-10-28 Thread tapestry5
Is there any other way to pass parameter without making the field @Persist. Howard Lewis Ship wrote: > > It can be innefficient, but setting the page's default persistent > strategy to "client" will do the job. The Grid component will pick up > this default. The persistent field data will end

Re: t5: choose validate or not validate the form in submit

2008-10-28 Thread Geoff Callender
Sorry but I'm not aware of a way to turn on client-side validation in one Submit and not the other. On 28/10/2008, at 11:56 PM, peibel wrote: thanks Geoff but i have only one form with two submit button and i want with one validate and with the other button not validate and if possible

T5: Crash on messages.format()

2008-10-28 Thread Inge Solvoll
I'm trying this in T 5.0.13: messages.format("view.last.x", Integer.toString(VIEW_LIMIT)); In my properties file: view.last.x = View last %d The following exception occurs: An unexpected application exception has occurred. Render queue error in Expansion[PropBinding[expansion profiles/ChangeLo

Re: t5: choose validate or not validate the form in submit

2008-10-28 Thread peibel
thanks Geoff but i have only one form with two submit button and i want with one validate and with the other button not validate and if possible can not use javascript thanks Geoff Callender-2 wrote: > > Try a combination of Submit with a t5components Button. > http://202.177.217.122:8080/j

Re: contributeClasspathAssetAliasManager not contributing

2008-10-28 Thread Denis McCarthy
Figured out my problem here - the leading forward slash before the com package on the line configuration.add("my.js.path", "/com/myco/myapp"); was tripping me up. On Fri, Oct 24, 2008 at 5:24 PM, Denis McCarthy <[EMAIL PROTECTED]> wrote: > Oops. just sent this but managed to bork the subject line!

Re: t5: choose validate or not validate the form in submit

2008-10-28 Thread Geoff Callender
Try a combination of Submit with a t5components Button. http://202.177.217.122:8080/jumpstart/examples/wizard/usingformfragments On 28/10/2008, at 11:09 PM, peibel wrote: I have two button in the form, if I press one button, I want that the textfields are validate and with the other button no

t5: choose validate or not validate the form in submit

2008-10-28 Thread peibel
I have two button in the form, if I press one button, I want that the textfields are validate and with the other button not. The validations are declared within each text field thanks -- View this message in context: http://www.nabble.com/t5%3A-choose-validate-or-not-validate-the-form-in-subm

T5: component gets access to Page Context

2008-10-28 Thread Russell Brown
Hi, If I have a component in a page and I want to get to the pages context is the ONLY way to have the page pass the pertinent context information to the context as a parameter? What if there component is nested further down the tree? Will a context info I need to be passed through parent compo

Re: T5: cannot use Grid's rowIndex in page class

2008-10-28 Thread Geoff Callender
I think that's a slightly different case. It looks like your page class is interested in the rowIndex value only when the ActionLink is clicked. Is that right? My ultimate aim is to know its value every time getPerson() is called during render, and every time setPerson() is called during for

Re: T5: cannot use Grid's rowIndex in page class

2008-10-28 Thread tapestryphoto
By chance I used one for the first time this-morning. I have: t:rowIndex="rowIndex" t:empty="There are currently no search results" t:model="mymodel" t:row="listItem"> ... >

Re: T5: Page lifecycle method called after onActivate but before event handling and page rendering methods?

2008-10-28 Thread Thiago H. de Paula Figueiredo
Em Tue, 28 Oct 2008 06:04:02 -0300, Joel Halbert <[EMAIL PROTECTED]> escreveu: Well, typically loading model data, which I would want to do from a single place, once the onActivate method(s) had been called. Well, the onActivate methods are the ones meant to load data. Take a look at this

T5: cannot use Grid's rowIndex in page class

2008-10-28 Thread Geoff Callender
Has anyone been able to use Grid's rowIndex parameter in their page class? I see that it is supposed to be available from 5.0.15 ( https://issues.apache.org/jira/browse/TAPESTRY-1310 ) but I just cannot make it work. From my template: t:rowindex="rowIndex"> and from my page clas

Re: problems with Tapestry IgnoredPaths

2008-10-28 Thread Allex Juang
Hi, Sagara Have you ever wondering your AppModule is working for other function? Like bind() or so. I did make a mistake that I define tapestry filter as following: tapestry org.apache.tapestry5.TapestryFilter But using AppModule as class name, which should be TapestryModule. Hope it wor

validation in t5

2008-10-28 Thread peibel
Hi, I need to choose validate or not validate in the same form depending on which button (submit) you press thanks -- View this message in context: http://www.nabble.com/validation-in-t5-tp20205103p20205103.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Modifying default HTML templates for form validation messages

2008-10-28 Thread Joel Halbert
OK, thanks. Ulrich Stärk wrote: There is no such thing such as a template for error messages. The validation errors come from a ValidationDecorator that writes out all HTML. You should be able to overwrite this service with your own implementation. I never digged deeper into this so there is

Re: Modifying default HTML templates for form validation messages

2008-10-28 Thread Ulrich Stärk
There is no such thing such as a template for error messages. The validation errors come from a ValidationDecorator that writes out all HTML. You should be able to overwrite this service with your own implementation. I never digged deeper into this so there is nothing more I can tell you. Uli

Re: Modifying default HTML templates for form validation messages

2008-10-28 Thread Joel Halbert
I want to change the template itself, there is only so much I can change with the css. Ulrich Stärk wrote: What exactly are you trying to achieve? Overriding the default messages is a matter of putting a properties file into the right package in your classpath, see the wiki. Formatting should

Re: Modifying default HTML templates for form validation messages

2008-10-28 Thread Ulrich Stärk
What exactly are you trying to achieve? Overriding the default messages is a matter of putting a properties file into the right package in your classpath, see the wiki. Formatting should be possible using css. Uli Joel Halbert schrieb: Is it at all possible to override the default HTML templat

Modifying default HTML templates for form validation messages

2008-10-28 Thread Joel Halbert
Is it at all possible to override the default HTML templates for form validation error messages, and if so, are there any pointers on the web? Thanks, Joel -- SU3 Analytics Ltd 61b Oxford Gardens W10 5UJ London Tel: +44 20 8960 2634 Mob: +44 75 2501 0825 www.su3analytics.com SU3 Analytics Lt

Re: T5: Page lifecycle method called after onActivate but before event handling and page rendering methods?

2008-10-28 Thread Joel Halbert
Well, typically loading model data, which I would want to do from a single place, once the onActivate method(s) had been called. Thiago H. de Paula Figueiredo wrote: Em Sun, 26 Oct 2008 11:24:52 -0300, Joel Halbert <[EMAIL PROTECTED]> escreveu: Is there a lifecycle method which is called afte

Re: T5 arguments to methods in expressions

2008-10-28 Thread Joel Halbert
Sounds good. With respect to expressions, although having a lot of logic in the page can quickly become unwieldy, the ability to use simple ternaries and evaluate functions with arguments is certainly appealing and allow for more concise code. Howard Lewis Ship wrote: On Mon, Oct 27, 2008

Re: so much useless logging

2008-10-28 Thread Francois Armand
Szemere Szemere wrote: +1 for t5.enhanced For everyone who is interested in this feature and wants it in the 5.0 finale, the most effective way is to vote on Jira for it. The bug can be find here: https://issues.apache.org/jira/browse/TAP5-119 And the registration in issues.apache.org is op

Re: T5: help required: Context and PageLink

2008-10-28 Thread tapestryphoto
Thanks Tobias! Quoting Tobias Wehrum <[EMAIL PROTECTED]>: Hi, the problem is not your pagelink, the problem is your stylesheet link. When it trys to load, it seems to search in "viewMetadata/style.css", thus being passed as an activation context which of course cannot be coerced to long. Anyw

Re: New JIRA: Tapestry does not pick pages, components and templates after application startup

2008-10-28 Thread Ville Virtanen
Hi, this is almost off topic... but atleast we have, and have always had problems with live reloading. There are less than 10 developers currently that are familiar and working with T5 here and not single one currently has working live reloading. It would be great if there would be detailed how-