Re: [5.4.25] Ajax submit with Radiogroup submits all values

2013-11-22 Thread Magnus Kvalheim
Just verified again with a simple form like this one: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Radio.html =tml= h2Selected type: ${type}/h2 t:zone t:id=formZone t:form t:zone=^ t:id=radioForm t:label for=type /: t:radiogroup t:id=type t:radio

Re: [5.4.25] Ajax submit with Radiogroup submits all values

2013-11-22 Thread Magnus Kvalheim
JIRA is here: https://issues.apache.org/jira/browse/TAP5-2231 On Fri, Nov 22, 2013 at 9:10 AM, Magnus Kvalheim mag...@kvalheim.eu wrote: Just verified again with a simple form like this one: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Radio.html =tml=

Re: The Rise and Fall of Tapestry

2013-11-22 Thread Lance Java
7. Why Howard finally embraced Wicket and started using it in his clients' projects. Drink a shot! 8. When Tapestry became Wicketstry Drink a shot! or Tapwickstry. ... and another!

Re: The Rise and Fall of Tapestry

2013-11-22 Thread Taha Siddiqi
I came to Tapestry from Wicket after reading such a trolling email but I could never thank the guy. If it were you Emmanuel, then thank you. On Nov 22, 2013, at 3:05 PM, Lance Java wrote: 7. Why Howard finally embraced Wicket and started using it in his clients' projects. Drink a shot!

Re: [5.4.25] Ajax submit with Radiogroup submits all values

2013-11-22 Thread Magnus Kvalheim
So, was looking into fixing this myself as a temporary workaround. I think the fix is quite clean, and of interest for others in similar situation, so I'll briefly post it. -- What I wanted to do was to make a modified version of forms.coffee and contribute/override that somehow. The

Re: [5.4.25] Ajax submit with Radiogroup submits all values

2013-11-22 Thread Chris Poulsen
Why not submit a patch, now that you've spent the time figuring it out? On Fri, Nov 22, 2013 at 12:07 PM, Magnus Kvalheim mag...@kvalheim.euwrote: So, was looking into fixing this myself as a temporary workaround. I think the fix is quite clean, and of interest for others in similar

Re: [5.4.25] Ajax submit with Radiogroup submits all values

2013-11-22 Thread Magnus Kvalheim
Hi Chris, yes sure - will do that in the Jira. I think also the solution is interesting because it shows what's possible now with more flexible requirejs config on Tapestry side. One obvious use case for paths is to configure 'local' paths for thirdparty amd modules which themselves express

Re: Web frameworks

2013-11-22 Thread Matheus Eduardo Machado Moreira
Good Lord, I did't know that Tapestry list had a let's have fun topic like this one! :-) Emmanuel, it is not that you *(...) won't cite anything about that interview (...)*. You just *can't* because it just exists in your head. You call Howard coward and Thiago (who is my personal friend

Re: [5.4.25] Ajax submit with Radiogroup submits all values

2013-11-22 Thread Chris Poulsen
Cool! Seems like the right way to go, now that you did almost all the work anyway :) On Fri, Nov 22, 2013 at 12:31 PM, Magnus Kvalheim mag...@movellas.comwrote: Hi Chris, yes sure - will do that in the Jira. I think also the solution is interesting because it shows what's possible now with

Re: 5.4 Bug with select nested inside form loop.

2013-11-22 Thread Lance Java
Probably best to see some code before calling it a bug. Perhaps you are initializing a variable in its declaration (instead of @SetupRender) or possibly a @Persist issue?

Tapetsry IoC starting a class with background task that uses an injected service

2013-11-22 Thread John
I have a utility class that recieves emails with a background TimerTask that needs to invoke a method on one of my injected DAOs to store the messages in the db. How do I get this class to load when I start my app and make sure the injected services are set? With EagerLoad the class gets

Re: Tapetsry IoC starting a class with background task that uses an injected service

2013-11-22 Thread Dmitry Gusev
Put it to ParallelExecutor? http://tapestry.apache.org/parallel-execution.html http://blog.tapestry5.de/index.php/2011/09/18/scheduling-jobs-with-tapestry/ There's also Quartz scheduler support: https://github.com/anjlab/anjlab-tapestry-commons/tree/master/anjlab-tapestry-quartz On Fri, Nov

Re: Tapetsry IoC starting a class with background task that uses an injected service

2013-11-22 Thread Muhammad Gelbana
I don't believe eager loading loads a service without it's dependencies injected. Try starting your background service in a @Startup annotation method in your module's class. Starting your service just means calling one of it's methods. *-* *Muhammad Gelbana*

Re: 5.4 Bug with select nested inside form loop.

2013-11-22 Thread George Christman
I would like to share some additional details related to this issue. I'm finding after removing a row and refreshing the page the selected option is marked selected in the html correctly, however the option displayed in the select menu is the former select option from the previously deleted row.

Re: Tapetsry IoC starting a class with background task that uses an injected service

2013-11-22 Thread Thiago H de Paula Figueiredo
On Fri, 22 Nov 2013 14:03:10 -0200, John j...@quivinco.com wrote: How do I get this class to load when I start my app and make sure the injected services are set? With EagerLoad the class gets instantiated but of course the services are null. This statement is not correct as far as I know.

Re: The Rise and Fall of Tapestry

2013-11-22 Thread Thiago H de Paula Figueiredo
On Fri, 22 Nov 2013 05:37:11 -0200, Peter Hvass p.hv...@albourne.com wrote: demon enclosure that is Tapestry with its patron lord of darkness Howard. I also want a cool title like that! :D -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer

Re: Tapetsry IoC starting a class with background task that uses an injected service

2013-11-22 Thread John
I need my setup method to run when this class is instantiated but log is null so mailDAO will also be null. John public class EmailReceiverUtil { public static final int SHOW_MESSAGES = 1; public static final int CLEAR_MESSAGES = 2; public static final int SHOW_AND_CLEAR =

Re: Tapetsry IoC starting a class with background task that uses an injected service

2013-11-22 Thread Thiago H de Paula Figueiredo
On Fri, 22 Nov 2013 15:47:10 -0200, John j...@quivinco.com wrote: I need my setup method to run when this class is instantiated but log is null so mailDAO will also be null. Weird. Maybe the @EagerLoad-annotated method is being called before the field injection is done. If that's really

Re: Tapetsry IoC starting a class with background task that uses an injected service

2013-11-22 Thread Dmitry Gusev
@EagerLoad is for service builder methods: http://tapestry.apache.org/5.3.7/apidocs/org/apache/tapestry5/ioc/annotations/EagerLoad.html Don't use TimeTask, use Tapestry's PeriodicExecutor with http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/annotations/Startup.html On Fri,

Re: The Rise and Fall of Tapestry

2013-11-22 Thread Borut Bolčina
You need professional help. That's my contribution. 2013/11/21 Emmanuel Sowah eso...@gmail.com Hi guys, Tapestry did not make it to a recent Web frameworks report released by Zeroturnaround found here:

Re: The Rise and Fall of Tapestry

2013-11-22 Thread Muhammad Gelbana
LOOOL @ Thiago :D *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Fri, Nov 22, 2013 at 8:20 PM, Borut Bolčina borut.bolc...@gmail.comwrote: You need professional help. That's my contribution. 2013/11/21 Emmanuel Sowah eso...@gmail.com Hi guys,

Re: Tapetsry IoC starting a class with background task that uses an injected service

2013-11-22 Thread Muhammad Gelbana
That's my preferred way to do injection in services and it avoids problems like you're having If you do that, you'll have to refactor your constructor parameters and assignment statement if you remove\add a new service. It should be a lot easier to use @Inject private MyService svc; If using

Re: The Rise and Fall of Tapestry

2013-11-22 Thread Emmanuel Sowah
Hi guys, To my huge surprise, I've received many contributions to my upcoming blog post and I want to thank all of you that did that. Of course I welcome some more. So if you haven't sent a contribution please do so. Like the others did, send them to my email address. I'll keep it confidential

Re: The Rise and Fall of Tapestry

2013-11-22 Thread Jon Williams
Great. Let's hear what all your Anonymous Cowards have to say. On Fri, Nov 22, 2013 at 1:03 PM, Emmanuel Sowah eso...@gmail.com wrote: Hi guys, To my huge surprise, I've received many contributions to my upcoming blog post and I want to thank all of you that did that. Of course I welcome

Re: The Rise and Fall of Tapestry

2013-11-22 Thread Boris Horvat
Well I am sure his imaginary friend this he is cool On Fri, Nov 22, 2013 at 8:10 PM, Jon Williams williams.jonat...@gmail.comwrote: Great. Let's hear what all your Anonymous Cowards have to say. On Fri, Nov 22, 2013 at 1:03 PM, Emmanuel Sowah eso...@gmail.com wrote: Hi guys, To my

Re: 5.4 Bug with select nested inside form loop.

2013-11-22 Thread Lance Java
Why is your encoder calling person.getPhones().add(phone)??? That looks totally dodgy!

Re: 5.4 Bug with select nested inside form loop.

2013-11-22 Thread George Christman
Without that line the phone object never gets added to the person object prior to commit. Do you know of a better approach? On Fri, Nov 22, 2013 at 2:20 PM, Lance Java lance.j...@googlemail.comwrote: Why is your encoder calling person.getPhones().add(phone)??? That looks totally dodgy!

Re: Web frameworks

2013-11-22 Thread Emmanuel Sowah
Hi Matheus, Well, I didn't call Thiago a liar. I personally don't know him but I won't doubt that he's a nice guy. At least one can sense that from the way he composes his mails. What I know, for sure, is that Howard is a coward. He has a double agenda. He doesn't practise what he preaches. He

Re: Web frameworks

2013-11-22 Thread George Christman
Emmanuel Sowah, please provide me with a side by side comparison of the code, some basic tapestry stuff and the equivalent in wicket. Maybe throw a component into the mix such as the AjaxFormLoop, I'd like to see how you would code it up in Tapestry5.4 and the equivalent in wicket. I'd like to

Re: 5.4 Bug with select nested inside form loop.

2013-11-22 Thread Lance Java
I didn't take the time to fully understand your code but a ValueEncoder's role is solely to serialize between clientside string and serverside object. Nothing more.

Re: The Rise and Fall of Tapestry

2013-11-22 Thread Matheus Eduardo Machado Moreira
+1 :-) Atenciosamente, Matheus Eduardo Machado Moreira matheus@gmail.com 2013/11/22 Borut Bolčina borut.bolc...@gmail.com You need professional help. That's my contribution. 2013/11/21 Emmanuel Sowah eso...@gmail.com Hi guys, Tapestry did not make it to a recent Web

Re: Web frameworks

2013-11-22 Thread Thiago H de Paula Figueiredo
On Fri, 22 Nov 2013 17:28:22 -0200, Emmanuel Sowah eso...@gmail.com wrote: What I know, for sure, is that Howard is a coward. He has a double agenda. He doesn't practise what he preaches. He preaches Tapestry to his cult members here but practises Wicket on his clients' projects. And admit

Re: 5.4 Bug with select nested inside form loop.

2013-11-22 Thread Lance Java
I'm assuming you know that the encoder is fired every time a conversion between clientside id and serverside object is done. This includes your delete action etc.

Re: 5.4 Bug with select nested inside form loop.

2013-11-22 Thread George Christman
Yes I'm aware and I'm also aware the encoder is fired twice while adding a row, once for the row and a second time for the remove action. The ajaxformloop has never seemed to be straight forward, I'm always interested in a simpler approach. Do you believe this may be the cause of the issue? On

Re: 5.4 Bug with select nested inside form loop.

2013-11-22 Thread George Christman
Your on :) you can just paypal me haha. Well the value encoder doesn't appear to be the issue. :( I can completely remove the encoder parameter from the component and refresh the page and it will still hold on to the wrong result despite the correct select option being selected in the select

Re: The Rise and Fall of Tapestry

2013-11-22 Thread Thai Tran
7 years of trolling and hating. Common dude, grow up and get a life On 11/23/2013 2:50 AM, Matheus Eduardo Machado Moreira wrote: +1 :-) Atenciosamente, Matheus Eduardo Machado Moreira matheus@gmail.com 2013/11/22 Borut Bolčina borut.bolc...@gmail.com You need professional help.