Re: another java.lang.LinkageError (loader constraint violation in interface itable initialization)

2012-08-03 Thread Howard Lewis Ship
Absolutely, you typically have services injected into other service implementations. Sent from my iPad On Aug 3, 2012, at 10:56 PM, bigcache1 wrote: > I will try to recreate this exception on another page, with another services > injected. > > Is it right, that there is no constraints (excep

Re: another java.lang.LinkageError (loader constraint violation in interface itable initialization)

2012-08-03 Thread bigcache1
I will try to recreate this exception on another page, with another services injected. Is it right, that there is no constraints (except jvm memory) for Tapestry, for the level of injection? I mean, could we place @Inject, inside of injected service, which lives inside another injected service, an

Re: type coersion - numbers and booleans

2012-08-03 Thread Thiago H de Paula Figueiredo
On Fri, 03 Aug 2012 21:07:27 -0300, Howard Lewis Ship wrote: public boolean isNumberThree() { return numericValue == 3; } In other words, don't put logic in templates, put them in Java classes, where it can be easily debugged and tested. ;) -- Thiago H. de Paula Figueiredo

Re: Creating a linked list of pages for easy backward navigation?

2012-08-03 Thread Thiago H de Paula Figueiredo
On Fri, 03 Aug 2012 19:32:13 -0300, George Ludwig wrote: Thiago, Hi, George! Thanks, that's what I thought was going on. Off the top of my head, my thought is to create an aggregating data structure that holds all the fields I really need (including a page id, and a previous page id), and

Re: type coersion - numbers and booleans

2012-08-03 Thread Howard Lewis Ship
public boolean isNumberThree() { return numericValue == 3; } Yes, there's some leaky abstractions with method invocations and all the parameter coercion going on. However, given live class reloading, creating ad-hoc properties for these comparisons is often more comparable. Also, instead of "isNu

type coersion - numbers and booleans

2012-08-03 Thread Paul Stanton
hi all, originally have an accessor method: public int getNumericValue() { return myInteger; // auto-boxes to int } and wanted to use the following if: however '==' doesn't work, but i know method calls work so i changed to: public Integer getNumericValue() {

Re: Creating a linked list of pages for easy backward navigation?

2012-08-03 Thread George Ludwig
Thiago, Thanks, that's what I thought was going on. Off the top of my head, my thought is to create an aggregating data structure that holds all the fields I really need (including a page id, and a previous page id), and persist a list of them. Then, in my "onback" method, pass the index of the pr

Re: adding items to webpage

2012-08-03 Thread Thiago H de Paula Figueiredo
On Fri, 03 Aug 2012 16:21:16 -0300, rtl1984 wrote: Hey guys I am extremely new to tapestry and html in general so sorry if what I ask is a newb question. Okay I'm trying to create a webpage that allows you to edit information so far I got tables to show the information and buttons below

adding items to webpage

2012-08-03 Thread rtl1984
Hey guys I am extremely new to tapestry and html in general so sorry if what I ask is a newb question. Okay I'm trying to create a webpage that allows you to edit information so far I got tables to show the information and buttons below to edit them. What I want is that when the user clicks on th

Re: [5.3.4] Ordering of Actions between the TextField and Hidden components

2012-08-03 Thread Howard Lewis Ship
And, BTW, because having the server-side figure all this stuff out based on the meager flow of data possible from a HTTP Form submission is impossible (at least, once you add DHTML/Ajax to the picture) ... that's why 5.4 is looking to move away from FormFragment and a lot of the other stuff, to enc

Re: [5.3.4] Ordering of Actions between the TextField and Hidden components

2012-08-03 Thread Howard Lewis Ship
Looks odd; the Hidden field should render first, and write its ComponentActions into the Form first, and should then be processed first. Is your template really this simple, or is there more FormFragment, etc., trickiness in there? That might affect the ordering if the Hidden and the TextField we

Re: how to clear the textarea after submit

2012-08-03 Thread George Christman
Where is your feedback attribute? Your code snippet seems to be incomplete. Are you persisting it? -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-clear-the-textarea-after-submit-tp5714847p5715038.html Sent from the Tapestry - User mailing list archive at Nabble.co

Re: tapestry5-highcharts available

2012-08-03 Thread George Christman
Did this project get moved to a different repository or is the repository just unavailable? -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry5-highcharts-available-tp5606181p5715037.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: another java.lang.LinkageError (loader constraint violation in interface itable initialization)

2012-08-03 Thread bigcache1
If you mean launching application in production mode - it didn't help. Still getting the same exception. -- View this message in context: http://tapestry.1045711.n5.nabble.com/another-java-lang-LinkageError-loader-constraint-violation-in-interface-itable-initialization-tp5714993p5715036.html Se

Re: Example of overriding the default ValidationDecorator

2012-08-03 Thread Thiago H de Paula Figueiredo
On Fri, 03 Aug 2012 04:57:02 -0300, mem wrote: value has to parsed, probably ending up in the same situation as i'm now with the production mode. So i guess i'm stuck with adding the css classes just manually to the fields. Instead of implementing a ValidationDecorator, you could implemen

Re: [5.3.4] Ordering of Actions between the TextField and Hidden components

2012-08-03 Thread robert baker
It occurred to me after I typed this that my assumptions were probably wrong, so please disregard. Apologies, Les Baker On Fri, Aug 3, 2012 at 4:04 AM, robert baker wrote: > Hi, > > I've stumbled on an interesting problem in trying to upgrade to 5.3.4 > that I am stumped. I am getting a "null te

[5.3.4] Ordering of Actions between the TextField and Hidden components

2012-08-03 Thread robert baker
Hi, I've stumbled on an interesting problem in trying to upgrade to 5.3.4 that I am stumped. I am getting a "null term in property expression" exception with some template markup that looks like the following: ... ... Just to be clear: the "primaryCode" object is wired up in the page class and

Re: Example of overriding the default ValidationDecorator

2012-08-03 Thread mem
That's what i already thought of too, i was just hoping to be wrong. I tried all kinds of different approaches, a mixin can't really work as it should be applied to labels automatically and not manually adding a mixin. Using a worker i would get there but there're issues with the dynamically create