Re: SinglePage app design thoughts

2012-11-27 Thread bigcache1
*derkoe*, what are the other benefits that I will miss? Also, I didn't get the problem with the partials, could you provide more details? MVC. I think that, as application client-side will gain its complexity, I will have to build there some kind of Model, from MVC. I agree with that approach, tha

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread George Christman
So I was able to get everything working without an issue. I created a method on the backend which allowed me to pass back my field and then append a sequence number to the field label. t:clientId="prop:getGenerateFieldId(orgKey)" In order to get the ValidationTracker to record the input properly

Override MessagesImpl

2012-11-27 Thread StrongSteve
Hello, Is it possible to override Tapestrys MessagesImpl? What we are trying to achieve is to use placeholders inside the message*.properties files. So for example the global_message.properties contains an entry like "keyA = valueA". Inside a component property file we want to reuse this key in a

Re: [5.3.6] Date picker flickers

2012-11-27 Thread Muhammad Gelbana
Its rather a silly mistake, I had the t:datefield component within it's t:label component Relocating the t:datefield component outside the t:label component fixed the problem. Thank you for your help :) On Tue, Nov 27, 2012 at 5:39 PM, Lenny Primak wrote: > I have seen this with SmartClient J

Re: Add icon to a t:submit

2012-11-27 Thread arterzatij
I done it with <${button}> ${button}: asset on tapestry page -- View this message in context: http://tapestry.1045711.n5.nabble.com/Add-icon-to-a-t-submit-tp5718324p5718347.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread George Christman
Excellent, Thanks Nourredine. I think I have enough now to finish figuring this out. -- View this message in context: http://tapestry.1045711.n5.nabble.com/AjaxFormLoop-validation-not-working-properly-tp5718326p5718345.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Jquery Tooltip on production mode

2012-11-27 Thread arterzatij
Doesn't work... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Jquery-Tooltip-on-production-mode-tp5718174p5718344.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread Nourredine
The ValidationTracker stores also the value (see ValidationTrackerImpl#recordInput() and ValidationTrackerImpl#getInput()). Again, the key used to store the field's input is based on the "controlName". That's why the value is not rendered after the first submission (the key used to store the input

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread George Christman
So last question, where is the field value stored? example I put alpha in a numeric field and a validation error occurs, the field should return decorated but with the alpha character still within it. I'm able to return a decorated field, but the field is returned blank. I'm not sure if the value i

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread Nourredine
Hi George, The "t:id" is a server-side id (used when you @InjectComponent the field in your class) while the "t:clientId" is used by the TextField component to generate its client-side id. They are not interdependent. Also, the TextField 's "controlName" is used by the "ValidationTracker" to stor

Re: tml if statements: unique id components

2012-11-27 Thread Howard Lewis Ship
This is the exact reason for the EventLink component. On Tue, Nov 27, 2012 at 8:46 AM, sommeralex wrote: > Hi! > > I have in some of my .tml pages several IF statements, which should show > some - depending on the if clause - actionlinks. > > if A > actionlink 1 > actionlink 2 > if B > actionlin

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread George Christman
Hi Nourredine, Thanks for the explanation, makes perfect sense. I'm a little confused with the id generation sample your using though. Is the field suppose to read the t:id="label" and append the id from t:clientId="prop:row.id" ? I'm not sure I follow this logic just yet. Would you mind elaborat

Re: [Bug] [T5.3.6] @Startup service contributions executed more than once

2012-11-27 Thread Christian Riedel
I was not 100% precise: it's happening if the services interface extends "Runnable", rather than just implementing it. This is ok: public interface AnyService { void anything(); } public class AnyServiceImpl implements AnyService, Runnable { // .. } This will cause the bug: public inte

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread Thiago H de Paula Figueiredo
On Tue, 27 Nov 2012 14:14:54 -0200, Nourredine wrote: yes, I saw that, but don't know how to make it visible in the mailing list from nabble (I edited my previous post to add a link to nabble). As a general suggestion, I'd say don't post from Nabble. And don't forget that editing posts i

[Bug] [T5.3.6] @Startup service contributions executed more than once

2012-11-27 Thread Christian Riedel
Hi everyone, I wrote about this bug a while ago already, but can't find the original post. After lots of debugging I found the reason for a bug in our app. The symptoms were that all contributions annotated with @Startup (also the ones from Tapestry internal modules) were executed a second time

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread Khadri Nourredine
Code eaten by Nabble : your page : @Persist(PersistenceConstants.FLASH) @Property(read=false) private ValidationFieldTracker myTracker; public ValidationFieldTracker getMyTracker() { if (myTracker == null) { myTracker = new ValidationFieldTracker(new ValidationTrackerIm

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread Nourredine
yes, I saw that, but don't know how to make it visible in the mailing list from nabble (I edited my previous post to add a link to nabble). -- View this message in context: http://tapestry.1045711.n5.nabble.com/AjaxFormLoop-validation-not-working-properly-tp5718326p5718334.html Sent from the Ta

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread Lenny Primak
Nabble ate your code. On Nov 27, 2012, at 10:54 AM, Nourredine wrote: > Hi, > > It is a side effect of the zone refresh and IdAllocator. Ajax requests use > IdAllocator to generate unique ids. but when the page is rendered after > submission, the original ids are used. While the ValidationTrac

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread Nourredine
Hi, It is a side effect of the zone refresh and IdAllocator. Ajax requests use IdAllocator to generate unique ids. but when the page is rendered after submission, the original ids are used. While the ValidationTracker stores the "ajaxified" ids. as a workaround, you will have to implement your ow

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread Lenny Primak
Just a guess but have you specified t:id for your new row? On Nov 27, 2012, at 10:44 AM, George Christman wrote: > Another update, I'm thinking I'm getting closer to understanding the problem, > but not sure of the cause. > > What I'm finding is when I add a new row, tapestry generates an id f

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread George Christman
Another update, I'm thinking I'm getting closer to understanding the problem, but not sure of the cause. What I'm finding is when I add a new row, tapestry generates an id for my fields, example quantity_13b4286fcf5 When I submit the form and it returns with a validation error, I'm noticing th

Re: Add icon to a t:submit

2012-11-27 Thread Thiago H de Paula Figueiredo
On Tue, 27 Nov 2012 11:45:49 -0200, membersound wrote: Hi, Hi! I want to add icons to my buttons. For a link I do it like <${context:layout/icon.png}> But how can I apply this to a ? How to I get the icon into the value field? CSS, nothing Tapestry-specific. -- Thiago H. de Paula Figu

Re: [5.3.6] Date picker flickers

2012-11-27 Thread Lenny Primak
I have seen this with SmartClient JS libraries and only on safari iOS. But this was an old version of both so the problem doesn't exist now. I never found out what exactly it was but I bet some JS library you are Using is doing this. On Nov 27, 2012, at 8:55 AM, Muhammad Gelbana wrote: > I re

Re: AjaxFormLoop validation not working properly.

2012-11-27 Thread George Christman
I'd also like to add I'm applying my field validation within the tml using t:validate="...". -- View this message in context: http://tapestry.1045711.n5.nabble.com/AjaxFormLoop-validation-not-working-properly-tp5718326p5718327.html Sent from the Tapestry - User mailing list archive at Nabble.co

AjaxFormLoop validation not working properly.

2012-11-27 Thread George Christman
Hello, I'm using the AjaxFormLoop component throughout my app. I'm not using clientside validation, but rather serverside validation. Lastly I'm using flash persist to rebuild the objects within the AjaxFormLoop when a serverside validation occurs. This all seems to work perfectly well with the exc

[5.3.6] Date picker flickers

2012-11-27 Thread Muhammad Gelbana
I recently changed my app's design and I'm currently porting pages from the old templates to new ones. Now everything is almost done but when I click the date picker image to popup the date picker control, it flickers and vanishes right away ! I noticed it's css properties, it changes and then "di

Add icon to a t:submit

2012-11-27 Thread membersound
Hi, I want to add icons to my buttons. For a link I do it like <${context:layout/icon.png}> But how can I apply this to a ? How to I get the icon into the value field? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Add-icon-to-a-t-submit-tp5718324.html Sent from the

Re: TapestryCayenneModule - register listener on startup

2012-11-27 Thread devnull2000
> 1) You didn't specify whether you're using the "server" or the "client" tapestry5-cayenne-server, 0.5-SNAPSHOT > sense that the Request is null. But that suggests the problem is in your > code because neither implementation of ObjectContextProvider references > the Request service. You're ab

Re: How to give the link to the select component value.

2012-11-27 Thread Emmanuel DEMEY
You can also use the zone parameter of the select component, it will send an ajax request when the user will select a value. Manu 2012/11/27 Anbazhagan > r your valuable reply. Its working. > > > > -- Emmanuel DEMEY Ingénieur Etude et Développement ATOS Worldline +33 (0)6 47 47 42 02 demey.em

Re: How to give the link to the select component value.

2012-11-27 Thread Anbazhagan
Hi Taha really thanks for your valuable reply. Its working. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-give-the-link-to-the-select-component-value-tp5718309p5718320.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: [plastic] adding fields to pages

2012-11-27 Thread Lance Java
Since the UnclaimedFieldWorker is configured "after:*" it will be applied after all other ComponentClassTransformWorker2's. This means that your new field will be ThreadLocalized and won't be a singleton. -- View this message in context: http://tapestry.1045711.n5.nabble.com/plastic-adding-fiel

Re: TapestryCayenneModule - register listener on startup

2012-11-27 Thread Robert Zeigler
A few notes. 1) You didn't specify whether you're using the "server" or the "client" t5-cayenne module. I will assume you are using the "server" module (since you mentioned DataContext). 2) The exception noted doesn't seem to be caused by t5cayenne code. It looks like it's a problem in your co

[plastic] adding fields to pages

2012-11-27 Thread antalk
Hi all, I've a question about dynamically adding fields to a page using 'plasticClass.introduceField' methods. As pages are in effect singletons (except for mutable fields) is this newly added field also added to the other mutable fields ? Or does it become a singleton, just like the page and is i

Re: tml if statements: unique id components

2012-11-27 Thread Lance Java
You can also avoid the if component all together using this pattern: http://tapestry.apache.org/switching-cases.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/tml-if-statements-unique-id-components-tp5718312p5718315.html Sent from the Tapestry - User mailing list ar

Re: tml if statements: unique id components

2012-11-27 Thread Lance Java
Declare your shared content in a ... Then use when you want to include the "foo" block in your logic. -- View this message in context: http://tapestry.1045711.n5.nabble.com/tml-if-statements-unique-id-components-tp5718312p5718314.html Sent from the Tapestry - User mailing list archive at Nab

Re: Getting the target Page of a Link from a Mixin

2012-11-27 Thread Peter Liljenberg
True - maybe I'll do that instead, just subclassing PageLink and adding my custom behaviour. /Peter On Tuesday, November 27, 2012 at 06:55 , Howard Lewis Ship wrote: > Instead of a mixin on PageLink, I would just write a custom component. What > PageLink does is quite straightforward. > > On