Re: Component ID

2014-04-26 Thread Thiago H de Paula Figueiredo
On Sat, 26 Apr 2014 15:29:39 -0300, Boris Horvat wrote: I guess in my mind it is like creating 5 instance of the same component and then each instance will have their own version of the property that is persisted. But this appears to be my wrong interpretation Yeah, that's a wrong inter

Re: Loop with component inside a zone: parameter is bound to null

2014-04-26 Thread Lance Java
You can attach the onevent mixin to any field, including select. The mixin supports passing the clientside field value(s) and an optional context. http://tapestry-stitch.uklance.cloudbees.net/oneventdemo

Re: Component ID

2014-04-26 Thread Boris Horvat
On Sat, Apr 26, 2014 at 8:25 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Sat, 26 Apr 2014 13:33:03 -0300, Boris Horvat > wrote: > > But is it expected for the things that are @Persist-ed to be shared in >> each iteration? >> > > What do you mean by shared? If you overwrite

Re: Component ID

2014-04-26 Thread Thiago H de Paula Figueiredo
On Sat, 26 Apr 2014 13:33:03 -0300, Boris Horvat wrote: But is it expected for the things that are @Persist-ed to be shared in each iteration? What do you mean by shared? If you overwrite a @Persist'ed value, anything that reads it later, regardless of being in inside a loop or not, will

Re: Why is my tap5.4beta3 Alerts Component rendering all alerts twice?

2014-04-26 Thread Jon Williams
Thanks for having a look at this. As per Thiago's request for code I'm using the latest 3.1.1 bootstrap... from AppModule class @Contribute(SymbolProvider.class) @ApplicationDefaults public static void setupEnvironment(MappedConfiguration configuration) { configuration.add(Symb

Re: Loop with component inside a zone: parameter is bound to null

2014-04-26 Thread Semen Vishniakov
> The solution for your specific case would be to pass the current loop > variable value in the event context, but I don't think this was implemented > yet. Until then, you'll need to write some JavaScript and not use the > valueChanged event of Select. Bad news. Thank you for reply!

Re: Loop with component inside a zone: parameter is bound to null

2014-04-26 Thread Thiago H de Paula Figueiredo
On Sat, 26 Apr 2014 09:17:10 -0300, Semen Vishniakov wrote: Hi all! Hi! I have a loop within zone: value="csAnswerCurrent"> Remember: the value property of the Loop component is only valid while rendering. Events are done in a different request, so t

Re: Why is my tap5.4beta3 Alerts Component rendering all alerts twice?

2014-04-26 Thread Thiago H de Paula Figueiredo
Code could be a factor here, so please post it. On Fri, 25 Apr 2014 15:05:46 -0300, Jon Williams wrote: Nope, just 1. This is a very simple SPA. So there's only 1 page template involved, doesn't even use a Layout component. There's 1 page, 1 zone, 1 form & 1 alerts component. I thought abo

Re: Component ID

2014-04-26 Thread Boris Horvat
But is it expected for the things that are @Persist-ed to be shared in each iteration? I will try to pass the client zone id to the context and to use it back to refresh the proper zone (I did come up with same idea but I was thinking that it is wrong path to follow) On Sat, Apr 26, 2014 at 6:29

Re: Component ID

2014-04-26 Thread Thiago H de Paula Figueiredo
On Sat, 26 Apr 2014 12:36:26 -0300, Boris Horvat wrote: Hi, Hi! I believe that I am doing something wrong but just wanted to confirm if that is the case. I have a component that I pass in the loop. So, very important, you have a single component instance which is rendered many tim

Component ID

2014-04-26 Thread Boris Horvat
Hi, I believe that I am doing something wrong but just wanted to confirm if that is the case. I have a component that I pass in the loop. Inside that I component I have a a zone and ajaxUpload component (from jquery but I dont think that plays any role here) Now the idea is that once someone

Re: T5.4 Bootstrap Carousel / JQuery load at top of page

2014-04-26 Thread Chris Mylonas
Hello again, Adding @Import(library = "context:js/carousel.js") to my Layout.java seems to have loaded up after jquery down the bottom of the page - which is what I was after (rather than within the template's head tag). My carousel still doesn't work. Being late in the evening, I will tidy up

T5.4 Bootstrap Carousel / JQuery load at top of page

2014-04-26 Thread Chris Mylonas
Hi Tapestry Users, I'm porting one of the default bootstrap themes as a T5.4 exercise. Looking at the rendered page source, jquery gets added at the end of the page with 5.4. I think this is making my js script for document.ready in the head not being executed. Firebug is telling me there is no

Loop with component inside a zone: parameter is bound to null

2014-04-26 Thread Semen Vishniakov
Hi all! I have a loop within zone: Also I have a selector, that changes csCustomerSurvey.csAnswers and rerenders this zone. When selected value is changed, I set csAnswers of csCustomerSurvey and return body of the zone: @OnEvent(value = EventConstants.VALUE_