Re: BigDecimal on Tapestry pages

2012-07-04 Thread Steve Eynon
As I'm aware, BigDecimal's are not treated any differently to other Java Number objects. It's the NumericTranslator that handles the conversion, which palms most of it's work to NumericTranslatorSupportImpl which sets the following JavaScript symbols (your values may be different) which are used

Re: Tapestry 5.3.4-rc-9

2012-07-04 Thread Felix Gonschorek
howard, i encountered problems with yuicompressor too (in the rc5 release i think). i deactivated the yuicompressor tap5 module to fix it. the problem for me was this: http://yuilibrary.com/projects/yuicompressor/ticket/2528056 the yuicompressor has its own version of the rhino classes, but in

Re: Tapestry 5.3.4-rc-9

2012-07-04 Thread Lenny Primak
I have solved this problem by repackaging yuicompressor, rhino and tap-yuicompressor into a single .jar file using jarjar, which solves all problems. I don't think there is a 'clean' solution. --- Combine yucompressor-2.4.6 and rhino-1.6R7 into src file (via jar) $ mkdir work; cd work

Re: Is tapestry tools supposed to work with Eclipse Juno?

2012-07-04 Thread Nicolas Barrera
Ok, Thanks for your responses..., Then I 'll stick to Indigo for the moment. Cheers! Nicolás.- On Mon, Jul 2, 2012 at 10:42 AM, Igor Drobiazko igor.drobia...@gmail.comwrote: The support of Eclipse Juno has a low priority. As soon as planned features are finished for Indigo, Gavin will

Re: Tapestry 5.3.4-rc-9

2012-07-04 Thread Jochen Berger
Am 04.07.2012 10:55, schrieb Lenny Primak: I don't think there is a 'clean' solution. Hopefully, requirejs/uglifyjs will be able to make all this obsolete by the end of this year. :-) - To unsubscribe, e-mail:

Re: BigDecimal on Tapestry pages

2012-07-04 Thread ICE Ernesto Arteaga Zavala
2012/7/4 Steve Eynon steve.ey...@alienfactory.co.uk As I'm aware, BigDecimal's are not treated any differently to other Java Number objects. It's the NumericTranslator that handles the conversion, which palms most of it's work to NumericTranslatorSupportImpl which sets the following

Progress on Tapestry 5 Book

2012-07-04 Thread Igor Drobiazko
Hi all, i wrote a blog post about the progress on the Tapestry 5 book: http://blog.tapestry5.de/index.php/2012/07/04/progress-on-tapestry-5-book/ -- Best regards, Igor Drobiazko http://tapestry5.de http://twitter.com/drobiazko

Re: Progress on Tapestry 5 Book

2012-07-04 Thread Taha Siddiqi
Hi Igor Nice cover. Couldn't see the underwear that a superhero, Java is supposed to wear. I hope it is wearing one :) Taha On Jul 4, 2012, at 8:39 PM, Igor Drobiazko wrote: Hi all, i wrote a blog post about the progress on the Tapestry 5 book:

Re: BigDecimal on Tapestry pages

2012-07-04 Thread Steve Eynon
tapestry js are handling decimalSeparator as coma So, how I can change this? That's set from NumericTranslatorSupportImpl#createJSONDecimalFormatSymbols() which looks it up from the Locale of the browser. - To unsubscribe,

How to have every second value in the t:loop different

2012-07-04 Thread bhorvat
So here is the annoying problem, I have a loop and I need to make every even rows different then odd rows. So the way I do this is I have a index and a methods isEvenRow that returns if the row is even. Then based on that I have one if withe else section. The only difference between content of

Re: How to have every second value in the t:loop different

2012-07-04 Thread Kristian Marinkovic
it would be easier to give you an advice if you'd outline the problem you are having a little more. but if you ask me i'd put a delegate inside the loop and let the to binding decide what component/block to render. i use this approach to render a list of item (types) that may have completely

Re: How to have every second value in the t:loop different

2012-07-04 Thread Neil Pierson
how about Java: public String getRowClass() { return (index % 2 == 0) ? evenRow : oddRow; } tml: t:loop t:source=selectedModule.settings t:value=currentSetting t:index=index ... tr class=${rowClass} css: .oddRow { background: etc... }

Re: How to have every second value in the t:loop different

2012-07-04 Thread Dusko Jovanovski
Hello there If the change you want to apply to those elements is purely visual, I would suggest the :nth-child(even) pseudo selector [1]. On the other hand, if you still want to apply that particular class to the div, I would suggest this approach: t:loop t:source=selectedModule.settings

Re: How to have every second value in the t:loop different

2012-07-04 Thread bhorvat
My problem is that I have a lot of code duplication, also this seems to me as a simple display problem so I dont like the fact that I have to create logic in the java page for this just so that I can put one extra css class in one place. Apart from that the 2 blocks in your case would be exactly

Re: How to have every second value in the t:loop different

2012-07-04 Thread Kristian Marinkovic
if it is only visual, and just about setting an css class: - use the css selector mentioned by dusko; no duplication On Wed, Jul 4, 2012 at 10:22 PM, bhorvat horvat.z.bo...@gmail.com wrote: My problem is that I have a lot of code duplication, also this seems to me as a simple display problem so

Re: How to have every second value in the t:loop different

2012-07-04 Thread bhorvat
The css selector is what I need. But I am not sure how to use it, I have tired .itRow { display: table-row; } .itRow:nth-child(even) { background-color:#8d8b8c; } but it is not working, will continue to try it till I figure it out, but if you have an idea please let me know. Still tnx

Re: How to have every second value in the t:loop different

2012-07-04 Thread bhorvat
So this worked for me .itRow { display: table-row; } #rowId:nth-child(even) { background-color:#8d8b8c; } div id=rowId class=itRow/div If you have a neater way to do this, due tell me. But like I said thank you all for great suggestions :D -- View this message in context:

Re: How to have every second value in the t:loop different

2012-07-04 Thread Thiago H de Paula Figueiredo
On Wed, 04 Jul 2012 17:22:32 -0300, bhorvat horvat.z.bo...@gmail.com wrote: My problem is that I have a lot of code duplication, also this seems to me as a simple display problem so I dont like the fact that I have to create logic in the java page for this just so that I can put one extra

Re: How to have every second value in the t:loop different

2012-07-04 Thread bhorvat
Yea I totally agree with that. I have implemented using the css which worked for me. cheers all -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-have-every-second-value-in-the-t-loop-different-tp5714278p5714289.html Sent from the Tapestry - User mailing list archive

Re: Progress on Tapestry 5 Book

2012-07-04 Thread Stephan Windmüller
On 04.07.2012 17:09, Igor Drobiazko wrote: i wrote a blog post about the progress on the Tapestry 5 book: http://blog.tapestry5.de/index.php/2012/07/04/progress-on-tapestry-5-book/ Could you please announce the start of the Kickstarter campaign here once it has started? Regards Stephan

Re: Progress on Tapestry 5 Book

2012-07-04 Thread François Facon
Well done Igor. I look forward to reading your book. François 2012/7/4 Taha Siddiqi tawus.tapes...@gmail.com: Hi Igor Nice cover. Couldn't see the underwear that a superhero, Java is supposed to wear. I hope it is wearing one :) Taha On Jul 4, 2012, at 8:39 PM, Igor Drobiazko wrote: Hi

Re: Tapestry 5.3.4-rc-9

2012-07-04 Thread Bob Harner
I'm trying to follow what was done with YUICompressor in Tapestry 5.3.4-rc-9, somebody tell me if I have it right: To get YUICompressor to work more reliably, Tapestry 5.3.4-rc-9 includes a version of the YUICompressor that the maven-play-plugin project built (at

Re: Tapestry 5.3.4-rc-9

2012-07-04 Thread Lenny Primak
Sounds reasonable. I don't know what play project did though. On Jul 4, 2012, at 8:39 PM, Bob Harner bobhar...@gmail.com wrote: I'm trying to follow what was done with YUICompressor in Tapestry 5.3.4-rc-9, somebody tell me if I have it right: To get YUICompressor to work more reliably,

Re: How to have every second value in the t:loop different

2012-07-04 Thread Bob Harner
Remember that :nth-child() selector doesn't work in IE 8 and earlier, if that matters. On Wed, Jul 4, 2012 at 5:47 PM, bhorvat horvat.z.bo...@gmail.com wrote: Yea I totally agree with that. I have implemented using the css which worked for me. cheers all -- View this message in context:

Re: How to have every second value in the t:loop different

2012-07-04 Thread Geoff Callender
...which is why injecting EvenOdd is such a good solution. It just works, everywhere. http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/alternatingloop Cheers, Geoff On 5 July 2012 10:49, Bob Harner bobhar...@gmail.com wrote: Remember that :nth-child() selector doesn't work