Re: help constructing a page activation context

2013-05-21 Thread Dmitry Gusev
Hi Ken, On Tue, May 21, 2013 at 7:25 AM, Ken in Nashua kcola...@live.com wrote: tHANKS gEOFF... bUT it tell sme I have a serious problem onmy hands the output is not matching the input I dont know what to do Just make the output match the input: Here's your output:

Re: best way to integrate a page or component to keep modular

2013-05-21 Thread Dmitry Gusev
On Tue, May 21, 2013 at 7:29 AM, Ken in Nashua kcola...@live.com wrote: ok good answers guys... thanks... I cant say I am happy about it. I have to write a component just to embed a page ? No, you don't have to. You can use HTML FRAME or IFRAME to embed pages. Shouldn't there be a

Re: Annoying scroll when a zone is updated

2013-05-21 Thread Peter Hvass
Hi Ben, Check http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Form.html autofocus parameter. Thanks, Peter - Original Message - From: Peter Hvass p.hv...@albourne.com To: Tapestry users users@tapestry.apache.org Sent: Monday, 20 May, 2013

Re: Merits of Tapestry-IOC

2013-05-21 Thread Inge Solvoll
I love Tapestry IOC. When used in a very basic way, it's almost indistinguishable from Guice. Actually it's less intrusive since you don't need annotations for injection. Tapestry is very powerful when you do more advanced stuff, and I just love that the power's there even though I don't use it

Re: best way to integrate a page or component to keep modular

2013-05-21 Thread Thiago H de Paula Figueiredo
On Tue, 21 May 2013 01:31:54 -0300, Ken in Nashua kcola...@live.com wrote: cant I use the t:delegate to:myPageBlock /? Why do you keep trying to do things in Tapestry in a very non-Tapestry way? In Tapestry, pages are not meant for reuse, components are, so write components and be a

RE: Annoying scroll when a zone is updated

2013-05-21 Thread Ben Titmarsh
Thanks for the replies, that was exactly what I needed! Date: Tue, 21 May 2013 07:14:12 + From: p.hv...@albourne.com To: users@tapestry.apache.org Subject: Re: Annoying scroll when a zone is updated Hi Ben, Check

Re: Merits of Tapestry-IOC

2013-05-21 Thread Taha Hafeez Siddiqi
Couldn't agree more with Inge I have worked with tapestry-Guice tapestry-Spring IOC and I think one of the merits of Tapestry IOC is how easily you can integrate it with any IOC. Any web framework needs some build-in IOC, It may be a couple of Java classes but it is there. In Tapestry, we

Re: best way to integrate a page or component to keep modular

2013-05-21 Thread Taha Hafeez Siddiqi
Hi Ken Tapestry is a wonderful tool. I keep reading your questions and wondering why would somebody do that.. My humble suggestion would be to go through Igor's book and jumpstart examples and once you are done with them, checkout the tests in tapestry-core and tapestry-ioc source. I have

Re: Is there will be any Tapestry5 + AngularJS integration?

2013-05-21 Thread Thiago H de Paula Figueiredo
On Tue, 21 May 2013 09:56:53 -0300, Dmitry Gusev dmitry.gu...@gmail.com wrote: Hi, Hi! just curious if there is any plans integrating AngularJS with tapestry5? What do you mean by integration in this case? -- Thiago H. de Paula Figueiredo

RE: FormFragment checkbox not working

2013-05-21 Thread Nomen Nomanum
OK, remove completely annotation @Persist, since you don't need it, if you want that behavior.

RE: help constructing a page activation context

2013-05-21 Thread Ken in Nashua
Thanks Dimitri : ) I didnt think I physically had to make the match happen in code. I thought the formal parameter spec was optional. I will give that a shot. So it seems signature counts. Thanks a bunch !!!

RE: Is there will be any Tapestry5 + AngularJS integration?

2013-05-21 Thread Nomen Nomanum
To: users@tapestry.apache.org Subject: Re: Is there will be any Tapestry5 + AngularJS integration? Date: Tue, 21 May 2013 10:41:20 -0300 From: thiag...@gmail.com On Tue, 21 May 2013 09:56:53 -0300, Dmitry Gusev dmitry.gu...@gmail.com wrote: Hi, Hi! Hi! ^^ just curious if

Re: Is there will be any Tapestry5 + AngularJS integration?

2013-05-21 Thread Dmitry Gusev
On Tue, May 21, 2013 at 5:57 PM, Nomen Nomanum getibi...@outlook.comwrote: To: users@tapestry.apache.org Subject: Re: Is there will be any Tapestry5 + AngularJS integration? Date: Tue, 21 May 2013 10:41:20 -0300 From: thiag...@gmail.com On Tue, 21 May 2013 09:56:53 -0300, Dmitry Gusev

RE: Is there will be any Tapestry5 + AngularJS integration?

2013-05-21 Thread Nomen Nomanum
I don't understand. Do you mean we should compensate our Tap5 services, components with AngularJS behavior or what, as built-in support? From: dmitry.gu...@gmail.com Date: Tue, 21 May 2013 18:09:12 +0400 Subject: Re: Is there will be any Tapestry5 + AngularJS integration? To:

Re: Is there will be any Tapestry5 + AngularJS integration?

2013-05-21 Thread Dmitry Gusev
I don't have any ideas of integration, yet. I was actually asking to know if somebody has any ideas on providing better support for angularjs. On Tue, May 21, 2013 at 6:50 PM, Nomen Nomanum getibi...@outlook.comwrote: I don't understand. Do you mean we should compensate our Tap5 services,

Re: Is there will be any Tapestry5 + AngularJS integration?

2013-05-21 Thread Dmitry Gusev
Or they will stay completely independent forever :) On Tue, May 21, 2013 at 6:53 PM, Dmitry Gusev dmitry.gu...@gmail.comwrote: I don't have any ideas of integration, yet. I was actually asking to know if somebody has any ideas on providing better support for angularjs. On Tue, May 21, 2013

RE: FormFragment checkbox not working

2013-05-21 Thread Nomen Nomanum
Here is the code to see how this could be achieve t:actionlink t:id=first h2dgdgdgdg/h2 /t:actionlink t:actionlink t:id=second !--or in your case put here checker trigger-- h2fsfsf/h2 /t:actionlink t:zone t:id=zone t:delegate to=choosenOne/ t:block id=firstdgdgde/t:block

Re: Is there will be any Tapestry5 + AngularJS integration?

2013-05-21 Thread Thiago H de Paula Figueiredo
On Tue, 21 May 2013 11:09:12 -0300, Dmitry Gusev dmitry.gu...@gmail.com wrote: What do you mean by integration in this case? Anything? :) Please be more specific, otherwise you'll get very generic answers.. ;) AngularJS can be implemented in plain HTML, I know this. I was just hope

Re: Is there will be any Tapestry5 + AngularJS integration?

2013-05-21 Thread Thiago H de Paula Figueiredo
On Tue, 21 May 2013 11:53:40 -0300, Dmitry Gusev dmitry.gu...@gmail.com wrote: I don't have any ideas of integration, yet. I was actually asking to know if somebody has any ideas on providing better support for angularjs. What exactly is missing right now? I'm still struggling to

Re: FormFragment checkbox not working

2013-05-21 Thread Thiago H de Paula Figueiredo
On Tue, 21 May 2013 12:02:01 -0300, Nomen Nomanum getibi...@outlook.com wrote: Here is the code to see how this could be achieve public Object getChoosenOne() { if(first==true){ zona.getBody(); return firstBlock; } else if(second== true)

RE: FormFragment checkbox not working

2013-05-21 Thread Lance Java
You have many @Persist annotations which I think are unnecessary. As a rule, if it's in the database, you don't need to store it in the session. Instead, pass an id (or ids) in the URL via the page activation context and look up the entities each time. There's a caveat to this rule that you often

RE: best way to integrate a page or component to keep modular

2013-05-21 Thread Ken in Nashua
Thanks Dimitri, Exactly... you hit the nail right on the head. I dont think i should have to write a component for every tab on a tab control just to reduce code bloat. Does anyone disagree with Dimitri ? If so i would like to hear it. There is no religion here... just common sense. : )

Re: Tapestry Jquery Bind

2013-05-21 Thread Boris Horvat
Yea your example works, but mine does not and I cant see any difference. Do you have any idea? On Tue, May 21, 2013 at 4:34 AM, Barry Books trs...@gmail.com wrote: Here is my old test case t:zone t:id=clickZone visible=false click OK /t:zone

Re: Tapestry Jquery Bind

2013-05-21 Thread Dmitry Gusev
Is it zone=testzone vs t:zone=testzone ? the same for these attributes: event=onchange eventType=onfocus looks like you forget to add t: prefix Also make sure you've specified correct zone client id, try the same as in Barry's example, using ${zoneSlideChange.clientId}. On Tue, May 21, 2013

Re: Tapestry Jquery Bind

2013-05-21 Thread Boris Horvat
I have tried with prefix t: and it has nothing to do with that (it is not really mandatory as far as I know). But I stilled tried it. The zone name is also correct. The thing is that when I try to debug it the even it never triggered, so it cant be the zone related problem that is for sure. On

Re: Tapestry Jquery Bind

2013-05-21 Thread Jan Fryblik
I'm just guessing, but try to put there also attribute id. Its often worked for me. t:zone t:id=zoneSlideChange id=zoneSlideChange div id=status${textZone}/div /t:zone t:form t:textfield t:id=textZone t:mixins=jquery/bind event=onchange eventType=onfocus

Re: Tapestry Jquery Bind

2013-05-21 Thread Boris Horvat
Nah that is not the problem. When I have changed from onchange to change it triggered the ajax request. So I guess I should remove 'on' from my events. Thanks for help your example shad light on this :D Cheers On Tue, May 21, 2013 at 8:55 PM, Jan Fryblik jan.fryb...@ebrothers.czwrote: I'm

Re: Tapestry Jquery Bind

2013-05-21 Thread Boris Horvat
Well spoke too soon t:zone t:id=zone id=zone div id=status${textZone}/div /t:zone t:form t:textfield class=${selector:this} t:id=textZone t:mixins=jquery/bind t:event=change t:eventType=change t:zone=zone / /t:form -- @Property @Persist private String textZone;

Re: Customize autocomplete mixin match list?

2013-05-21 Thread George Ludwig
Thanks for the replies...still working on this @Lance: Did you mean override protected JSONArray generateResponseJSON(List matches)? This method already works as I'd like it to...it calls the toString() method on every element of the list: protected JSONArray generateResponseJSON(List

Re: best way to integrate a page or component to keep modular

2013-05-21 Thread Geoff Callender
??? Here some tabs. There's nothing to it. http://jumpstart.doublenegative.com.au/jumpstart/together/withlayout/helloworld Here are some more tabs. Again, nothing to it. http://tapestry-stitch.uklance.cloudbees.net/tabgroupdemo I hope this helps. Geoff On 22/05/2013, at

Jan Fryblik jan.fryb...@ebrothers.cz

2013-05-21 Thread Jeshurun Daniel
Not sure if this helps you, but here is how I have it in one of my pages for a slider with min and max:     @OnEvent(value=EventConstants.ACTION, component=sliderRangeZone)     Object updateRange() {         min= Integer.parseInt(request.getParameter(min));         max=

Re: Jan Fryblik jan.fryb...@ebrothers.cz

2013-05-21 Thread Boris Horvat
I dont see bind mixin in your example so I dont think it can help me :( tnx though On Tue, May 21, 2013 at 11:43 PM, Jeshurun Daniel sjeshu...@yahoo.cawrote: Not sure if this helps you, but here is how I have it in one of my pages for a slider with min and max:

Re: best way to integrate a page or component to keep modular

2013-05-21 Thread George Ludwig
Dmitry, Thanks for that, I didn't realize you could delegate to blocks from other pages! -George On Mon, May 20, 2013 at 11:30 PM, Dmitry Gusev dmitry.gu...@gmail.comwrote: But, if implement my pages with blocks, like: Page1.tml: t:layout t:delegate to=block:mainBlock / t:block

Re: best way to integrate a page or component to keep modular

2013-05-21 Thread Thiago H de Paula Figueiredo
On Tue, 21 May 2013 19:33:02 -0300, George Ludwig georgelud...@gmail.com wrote: Dmitry, Thanks for that, I didn't realize you could delegate to blocks from other pages! The BeanModel-based components (Grid, BeanEditor, etc) are based on exactly that. -- Thiago H. de Paula Figueiredo

Re: best way to integrate a page or component to keep modular

2013-05-21 Thread George Ludwig
I should probably look at more Tapestry source :) On Tue, May 21, 2013 at 4:02 PM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 21 May 2013 19:33:02 -0300, George Ludwig georgelud...@gmail.com wrote: Dmitry, Thanks for that, I didn't realize you could delegate to

Extend a mixin class as a component?

2013-05-21 Thread George Ludwig
If I wanted to extend the Autocomplete mixin, can I extend it as a component? I.e., my new class would extend autocomplete, but it would be in the components package. Just wondering if this is good Tapestry form or not...

Re: Merits of Tapestry-IOC

2013-05-21 Thread Lenny Primak
You are missing my point. This is not about how bad / great tapestry-ioc is. This is about having to learn yet another DI system before you can truly use tapestry to its full potential. If it used an existing IOC, the barrier to entry would be lower. On May 21, 2013, at 6:01 AM, Inge Solvoll

Re: Merits of Tapestry-IOC

2013-05-21 Thread Howard Lewis Ship
Well, yes, your screwdriver is great I guess, but I already know how to use a hammer. On Wed, May 22, 2013 at 12:28 AM, Lenny Primak lpri...@hope.nyc.ny.uswrote: You are missing my point. This is not about how bad / great tapestry-ioc is. This is about having to learn yet another DI system

Re: Is there will be any Tapestry5 + AngularJS integration?

2013-05-21 Thread Howard Lewis Ship
Having a better story for creating an API accessible to the client browser would help. I have previously done some work where I've used Backbone to handle more complex UIs than I can reasonably accomplish in Tapestry (using Zones and FormFragments etc.). In the future, I'll likely use Angular for

Re: best way to integrate a page or component to keep modular

2013-05-21 Thread Thiago H de Paula Figueiredo
On Tue, 21 May 2013 20:16:39 -0300, George Ludwig georgelud...@gmail.com wrote: I should probably look at more Tapestry source :) I've learned a lot from reading it. Very, very well architected and well written. -- Thiago H. de Paula Figueiredo

Re: Extend a mixin class as a component?

2013-05-21 Thread Thiago H de Paula Figueiredo
As a general rule, I don't think that's a good idea. On the other hand, you can create a common superclass for both the mixin and the component and put it in the base package. On Tue, 21 May 2013 20:18:56 -0300, George Ludwig georgelud...@gmail.com wrote: If I wanted to extend the

Re: Merits of Tapestry-IOC

2013-05-21 Thread Thiago H de Paula Figueiredo
On Tue, 21 May 2013 20:28:11 -0300, Lenny Primak lpri...@hope.nyc.ny.us wrote: You are missing my point. This is not about how bad / great tapestry-ioc is. This is about having to learn yet another DI system before you can truly use tapestry to its full potential. You still need to learn

Re: Tapestry Jquery Bind

2013-05-21 Thread Barry Books
You have to pass in the context t:textfield class=${selector:this} t:id=textZone t:mixins=jquery/bind t:event=change t:eventType=change t:zone=zone t:context=myContext / On Tue, May 21, 2013 at 2:23 PM, Boris Horvat horvat.z.bo...@gmail.comwrote: Well spoke too soon t:zone t:id=zone id=zone

Re: Merits of Tapestry-IOC

2013-05-21 Thread Kalle Korhonen
On Tue, May 21, 2013 at 6:53 PM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 21 May 2013 20:28:11 -0300, Lenny Primak lpri...@hope.nyc.ny.us wrote: If Tapestry replaces T-IoC with something else, we would cause such a huge backward compatibility problem that most people

Re: Is there will be any Tapestry5 + AngularJS integration?

2013-05-21 Thread Thiago H de Paula Figueiredo
On Tue, 21 May 2013 22:18:40 -0300, Howard Lewis Ship hls...@gmail.com wrote: That's OK; that's the future direction of all web applications, 1 year in the futre? 5? 10? I don't see that coming, at least not for most of webapps. Single page webapps are good for desktop-like stuff but

Re: Merits of Tapestry-IOC

2013-05-21 Thread Thiago H de Paula Figueiredo
On Tue, 21 May 2013 23:09:29 -0300, Kalle Korhonen kalle.o.korho...@gmail.com wrote: Lance has not participated in this thread even with a single message. Thanks for correcting me, Kalle! I was talking about Lenny, not Lance. Sorry, Lance! Damn similar names . . . :P -- Thiago H. de

Re: Merits of Tapestry-IOC

2013-05-21 Thread Kalle Korhonen
On Tue, May 21, 2013 at 7:12 PM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 21 May 2013 23:09:29 -0300, Kalle Korhonen kalle.o.korho...@gmail.com wrote: Lance has not participated in this thread even with a single message. Thanks for correcting me, Kalle! I was

Re: Extend a mixin class as a component?

2013-05-21 Thread George Ludwig
Why don't you create a component which uses the mixin instead of one that extends the mixin? Well, I've already got that component. I'd like to simplify it and have better control over it, and am exploring my options. My thought would be to subclass it and apply its behavior to a textfield within

Tapestry template encoding and GAE

2013-05-21 Thread Alex Kotchnev
I have an application on Tapestry 5.3.6 that is deployed to GAE 1.8.0. The problem I have seems to be appengine specific (and not necessarily tapestry specific) as I have older versions of this application running on GAE and rendering the locale specific templates normally (whereas now the older