Re: How to avoid ul turning into table?

2012-08-13 Thread TG
Thanks, works like a charm! -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-avoid-ul-turning-into-table-tp5715372p5715377.html Sent from the Tapestry - User mailing list archive at Nabble.com. - T

Re: T5: How to custome the GridPager ?

2012-08-13 Thread Bob.Sky
Thank you antalk ,the problem has been done. I use this annotation "@Component(parameters = { "source=dataSource", "rowsPerPage=rowsPerPage", "currentPage=currentPage" }) private GridPager eloqPager;" to connect the my override pager to the grid. -- View this message in context: http://

Re: How to avoid ul turning into table?

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 21:05:47 -0300, TG wrote: I am trying to create a iui list using tapestry. I used - ${SR.id} http://${hostName}/go/${SR.service} But thi

Re: How to avoid ul turning into table?

2012-08-13 Thread Pavel Vodenski
You should use http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/components/Loop.htmlwhich works similar to Grid but does not imply rows or cells. Your source and value parameters are still correct, and you no longer need the include parameter. - P On Mon, Aug 13, 2012 at 5:05 P

Re: Autocomplete with two parameters

2012-08-13 Thread Robert Zeigler
Under the hood, tapestry is using the Ajax.Autocompleter from Scriptaculous (at least for now). One of the parameters to the javascript is "parameters" (see: http://script.aculo.us/docs/Ajax.Autocompleter.html). Tapestry doesn't allow you set this by default, BUT, you could extend the autocomple

How to avoid ul turning into table?

2012-08-13 Thread TG
I am trying to create a iui list using tapestry. I used - ${SR.id} http://${hostName}/go/${SR.service} But this is still renders as a table. How do I "turned

Re: Autocomplete with two parameters

2012-08-13 Thread William Lopes
If someone to have some other idea that can to solve, I'm ready to listen. Thanks. 2012/8/13 William Lopes > Hi guys. > > I'm already for done my project, but now the things are too ugly. > > So, I need make an autocomplete, the default I already did, but don't work > of the way that I need. >

Re: BigDecimal on Tapestry pages

2012-08-13 Thread arterzatij
Hi, Currently I tested with 'en' locale and it works well, so bigdecimal is not the problem. But when I changed to 'es' locale (I live in Mexico), it gets the decimal separator as ',' ,on my regional settings of OS and browser are configured to handle '.' as decimal separator. Any suggestions? Th

Re: Why should we specify t:id and id for the zone

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 19:14:47 -0300, Paul Stanton wrote: Is there any drawback to ALWAYS setting t:id & id so they are equal? Yep. You could end up having two different HTML elements with the same id in the same page, which is forbidden in HTML. On the other hand, I do think that the id

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 18:11:48 -0300, Lenny Primak wrote: Issue created: http://code.google.com/p/flowlogix/issues/detail?id=30 Nice! Thanks! Subscribed to get notifications about this issue. :) -- Thiago H. de Paula Figueiredo ---

Re: Why should we specify t:id and id for the zone

2012-08-13 Thread Paul Stanton
great answer christian, quote: "brings another caveat: If the actionLink from my example would be specified in the template before the zone this wouldn't work. The zone's clientId would be "null" because the zone hasn't been rendered, yet… You could add some more advanced tricks with Heartbeat

Re: loading order of javascripts

2012-08-13 Thread Chris Mylonas
I had a similar problem with using the JQuery draggable component. order of js imports was important to making the component work details here: http://www.mrvoip.com.au/blog/tapestry-jqueryui-draggable-custom-pages-order-imports-important hope it's relevant to this topic :) On 13/08/2012, at 1

Re: tapestry api and documentation

2012-08-13 Thread Chris Mylonas
> > instead of providing an update with a minor performance gain, the > documentation should be simplified and extended with more examples. Hence, > I am missing "modern/social" components like a simple working OAUTH plugin > e.g integrated with tapestry for e.g facebook. > tynamo's federated ac

Re: calling some functions from javascript

2012-08-13 Thread Chris Mylonas
Interesting...Thanks Thiago For those interested in why: https://tapestry.apache.org/request-processing.html the last 3 sections of that page. The request service is a shadow of the RequestsGlobal services' request property. Methods invoked on this service are delegated to the request object

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Lenny Primak
Issue created: http://code.google.com/p/flowlogix/issues/detail?id=30 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Onno Scheffers
> That's why I said 'basically'. ;) I claim no knowledge in Vaadin besides > reading its website. > I also said 'basically' :) I'm currently working on my first Vaadin project, so I am in no way an expert. I do really like it though and I plan to also use it for an administrative section of an ex

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 16:39:24 -0300, Lenny Primak wrote: I will actually put that on my list of things to do. The only problem I have with this approach is that this will always be in catch-up mode ala mono and .net With the difference that the Tapestry public API grows slow . . . -- Thi

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Lenny Primak
I will actually put that on my list of things to do. The only problem I have with this approach is that this will always be in catch-up mode ala mono and .net On Aug 13, 2012, at 2:25 PM, "Thiago H de Paula Figueiredo" wrote: > On Mon, 13 Aug 2012 16:03:24 -0300, Lenny Primak > wrote: > >

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 16:07:39 -0300, Onno Scheffers wrote: And don't forget that Vaadin is basically GWT plus some server-side stuff. That's like saying Tapestry is basically Javassist plus some server-side stuff. That's why I said 'basically'. ;) I claim no knowledge in Vaadin besides re

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 16:03:24 -0300, Lenny Primak wrote: Also tapestry IOC is supporting and not a primary component of tapestry. The web framework is the primary. Yep, but Tapestry-IoC is amazing on its own too. :) Having worked with tapestry for almost 2 years now I can honestly say tha

Re: Conditionally (IE) including javascript

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 15:57:17 -0300, Alex Kotchnev wrote: Steve - thanks a lot, this is a very clean and nice solution to this issue. Very nice ! Very nice indeed. :) It's quite nice to see how simple the solutions people find when using Tapestry. By the way, I have one suggestion: return

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Onno Scheffers
> And don't forget that Vaadin is basically GWT plus some server-side stuff. That's like saying Tapestry is basically Javassist plus some server-side stuff. Vaadin is a very mature framework that has been in development for many years and they built most of their client implementation and rich cl

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Lenny Primak
I think Thiago hit most of your points already. I would like to reiterate that the strength of Tapestry is in the server side implementation and that has everything to do with multi-page vs. single-page framework. Also tapestry IOC is supporting and not a primary component of tapestry. The web

Re: Conditionally (IE) including javascript

2012-08-13 Thread Alex Kotchnev
Steve - thanks a lot, this is a very clean and nice solution to this issue. Very nice ! Cheers, Alex K On Sun, Aug 12, 2012 at 5:34 AM, Steve Eynon wrote: > I use this little component: > > import org.apache.tapestry5.MarkupWriter; > import org.apache.tapestry5.annotations.Parameter; > > publi

Re: tapestry api and documentation

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 09:54:07 -0300, sommeralex wrote: Hi Thiago, Hi! Thank you for your help (again). :) I know how to use the radio/radiogroup component in tapestry - I'm am lucky. But i would never know how to use it just with the api docu link provided. Using a radio/radiogroup e

Re: loading order of javascripts

2012-08-13 Thread Emmanuel DEMEY
You are right. Tapestry5-jQuery have rewritten all the JavaScript Stack in jQuery. But you can still use the default Prototype implementation, byt setting the JQueryConstants.SUPPRESS_PROTOTYPE to false in your appModule. In this case all the noConflict stuff will be managed automatically. 2012/8/

Re: macbook retina support

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 13:09:03 -0300, sommeralex wrote: Hello! Hi! The apple doc describe 3 ways for supporting retina images. My question, before i start to replace everything with javascript or css, is, if there will be an update of tapestry supporting the automatic retina with this synta

Re: macbook retina support

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 13:34:16 -0300, sommeralex wrote: and where is the documentation to write custom bindings? :-) We already know that the Tapestry documentation needs to be improved. ;) Please fill a documentation JIRA when you find something like that. ;) -- Thiago H. de Paula Figuei

Re: loading order of javascripts

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 10:28:12 -0300, Ray Nicholus wrote: Tapestry-jquery has rewritten all of Tapestry's js in jquery. That's quite a bit more then simply adding jquery to your app as a JavascriptStack. Ah, thanks for the info. :) I've never used tapestry-jquery, which is unfortunate,

Re: macbook retina support

2012-08-13 Thread Christian Riedel
A few days ago I made a little tapestry-add-on to support a json-binding. Just have a look at the sources and you'll know how to implement the equivalent for your use-case! https://github.com/criedel/tapestry-json-binding Best Christian Am 13.08.2012 um 18:09 schrieb sommeralex: > Hello! > >

Re: macbook retina support

2012-08-13 Thread sommeralex
and where is the documentation to write custom bindings? :-) 2012/8/13 Lance Java [via Tapestry] < ml-node+s1045711n5715343...@n5.nabble.com> > You could write your own custom binding prefix. > > Eg src="${retina:/foo/bar.png}" > > See here for custom binding prefix examples > wiki.apache.org/tap

Re: macbook retina support

2012-08-13 Thread Lance Java
You could write your own custom binding prefix. Eg src="${retina:/foo/bar.png}" See here for custom binding prefix examples wiki.apache.org/tapestry/Tapestry5HowTos On Monday, 13 August 2012, sommeralex wrote: > Hello! > > The apple doc describe 3 ways for supporting retina images. My question,

macbook retina support

2012-08-13 Thread sommeralex
Hello! The apple doc describe 3 ways for supporting retina images. My question, before i start to replace everything with javascript or css, is, if there will be an update of tapestry supporting the automatic retina with this syntax: src="${context:/img/img.png} because if not, i have to use java

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 10:54:26 -0300, Muhammad Gelbana wrote: I probably am. But I think tapestry's *major* contribution is into the client part. I highly expect that this is wrong so please correct me if I am. What difference does it make if tapestry is a multi-page framework or a single-pag

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Muhammad Gelbana
> > Wow, you've just said that Tapestry, which is a web framework, should drop > the web framework (which is multipage), replace it with Vaadin/GWT (which > are single page) and focus on the IoC part only. I'm sorry, but I think > you're at least very confused about the above opinion I probably a

Re: loading order of javascripts

2012-08-13 Thread Ray Nicholus
Tapestry-jquery has rewritten all of Tapestry's js in jquery. That's quite a bit more then simply adding jquery to your app as a JavascriptStack. My personal preference is to use Tapestry's existing (Prototype) js (since it has withstood the test of time and is widely used), use jQuery in no-conf

Re: Manually injecting dependencies after construction

2012-08-13 Thread Inge Solvoll
Thanks for helping me so quickly! :) As always :) I guess I would have to try to implement a service that does this then. A service that looks kind of like this: public interface SetterInjector { void injectInto(Object instance); } And an implementation like this: public class SetterInjectorI

Re: tapestry api and documentation

2012-08-13 Thread sommeralex
Hi Thiago, Thank you for your help (again). I know how to use the radio/radiogroup component in tapestry - I'm am lucky. But i would never know how to use it just with the api docu link provided. Using a radio/radiogroup element should be done in few minutes. (and IS done in few minutes also with

Re: Manually injecting dependencies after construction

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 09:45:49 -0300, Thiago H de Paula Figueiredo wrote: Good question . . . Well, for part of it, you can inject ObjectLocator and use its getService() methods to get a service from the Tapestry-IoC registry. The setter part looks like something that some reflection code

Re: Manually injecting dependencies after construction

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 09:31:55 -0300, Inge Solvoll wrote: So there doesn't exist an exposed API in tapestry for finding setters that match services by type and invoke them runtime on non-tapestry-managed instances? Good question . . . Well, for part of it, you can inject ObjectLocator and

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Thiago H de Paula Figueiredo
On Sat, 11 Aug 2012 15:30:31 -0300, Muhammad Gelbana wrote: I've never used Vaadin but what I can say about it after I visited it's website is that it's much more UI component rich when compared to tapestry but it has no IoC support. Of course the lack of UI components in t5 can be mitiga

Re: Manually injecting dependencies after construction

2012-08-13 Thread Inge Solvoll
That might work in some cases yes. The case I'm looking at right now is a service that returns a list of objects, where the objects are produced by some other framework on the fly. So I need to inject dependencies into these objects before returning them from my service method. Some code: public

Re: loading order of javascripts

2012-08-13 Thread Thiago H de Paula Figueiredo
On Sun, 12 Aug 2012 22:12:52 -0300, Ray Nicholus wrote: Jquery should really be part of a JavascriptStack. in fact, it should probably be its own stack. You can add any jquery plugins and stylesheets to this stack as well. Hasn't tapestry-jquery done this already? -- Thiago H. de Paula

Re: tapestry api and documentation

2012-08-13 Thread Thiago H de Paula Figueiredo
On Sun, 12 Aug 2012 08:02:20 -0300, sommeralex wrote: Is it true, that the tapestry api and documentation lacks in examples and actuality, or do I read the documentation in a wrong way? That's something we can always improve. :) basic example, radio group: http://tapestry.apache.org/5.3.

Re: Manually injecting dependencies after construction

2012-08-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Aug 2012 09:13:50 -0300, Inge Solvoll wrote: Hi! Hi! Why don't you declare these objects as Tapestry-IoC services using a build method in your module class? SomeClass buildSomeClass(Dependency1 dependency1, Dependency2 dependency2) { SomeClass object = ...; // get

Re: AjaxResponseRenderer help

2012-08-13 Thread Thiago H de Paula Figueiredo
On Sun, 12 Aug 2012 11:41:34 -0300, Angelo C. wrote: the template is here: < a t:type="eventLink" t:parameters="prop:{'mode':${current}}" t:id="UpdateOff" >Turn it off< /a> As Dusko already said, without a zone parameter in EventLink, the request won't be an AJAX one. --

Re: calling some functions from javascript

2012-08-13 Thread Thiago H de Paula Figueiredo
On Sun, 12 Aug 2012 09:51:16 -0300, Angelo C. wrote: Hi, Hi! public void action() { String name = requestGlobals.getRequest().getParameter("name"); } Guys, please don't @Inject RequestGlobals anymore. There's no reason for doing that (at least not in pages and com

Manually injecting dependencies after construction

2012-08-13 Thread Inge Solvoll
Hi! I'm working on some classes (using Tapestry IOC in a java non-web client environment). I have some classes that I really want to do DI style, but I'm not able to control their instantiation due to how some other framework is doing things. So, constructor-based injection is not an option. What

Re: AjaxResponseRenderer help

2012-08-13 Thread Thiago H de Paula Figueiredo
On Sun, 12 Aug 2012 11:40:31 -0300, Angelo C. wrote: I use only '@Inject Block block1, block2', then define Zone in the template to fold a block, what's the difference '@InjectComponent private Zone zone1'? Block is not a component, Zone is, so their inject is done with different anno

Re: calling some functions from javascript

2012-08-13 Thread Thiago H de Paula Figueiredo
On Sun, 12 Aug 2012 07:08:01 -0300, Angelo C. wrote: Hi, Hi! I got a page class, and in the tml I have a javascript function that will call a function in the page class, and the function will return a json object to the javascript, any tips on how to achieve this? Thanks, There should b

Re: jnlp files in tapestry

2012-08-13 Thread Thiago H de Paula Figueiredo
On Sat, 11 Aug 2012 14:49:01 -0300, gonzalomp87 wrote: Thanks. You're welcome! It's a pleasure to help! :) Right. works simply with that line of code. The problem is that this only work on pages that have no method OnActivate () / Onpasivate (). Use absolute paths (ones starting wit

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Thiago H de Paula Figueiredo
On Sun, 12 Aug 2012 10:00:53 -0300, Muhammad Gelbana wrote: I'm mainly raising this discussion because I believe tapestry could make use of the idea of using a mature UI framework (such as Vaadin or GWT) instead of reinventing the wheel on that part and rather focus on what it's REALLY grea