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: t:zone t:id=answersZone id=answersZone t:loop source=csCustomerSurvey.csAnswers value=csAnswerCurrent cs:csAnswerComponent t:csAnswer=csAnswerCurrent/ /t:loop /t:zone Also I have a selector, that changes csCustomerSurvey.csAnswers

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

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

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. t:Edit t:id=image t:value=projectImage t:context=currentProject edittype=imageupload / Inside that I component I have a a zone and ajaxUpload component

Re: Component ID

2014-04-26 Thread Thiago H de Paula Figueiredo
On Sat, 26 Apr 2014 12:36:26 -0300, Boris Horvat horvat.z.bo...@gmail.com 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. t:Edit t:id=image t:value=projectImage t:context=currentProject

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

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 williams.jonat...@gmail.com 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

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 vishnyako...@gmail.com wrote: Hi all! Hi! I have a loop within zone: t:zone t:id=answersZone id=answersZone t:loop source=csCustomerSurvey.csAnswers value=csAnswerCurrent cs:csAnswerComponent

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: 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(MappedConfigurationString, Object configuration) {

Re: Component ID

2014-04-26 Thread Thiago H de Paula Figueiredo
On Sat, 26 Apr 2014 13:33:03 -0300, Boris Horvat horvat.z.bo...@gmail.com 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

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 horvat.z.bo...@gmail.com 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

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 Thiago H de Paula Figueiredo
On Sat, 26 Apr 2014 15:29:39 -0300, Boris Horvat horvat.z.bo...@gmail.com 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