Re: Grid with split rows

2012-06-14 Thread Lance Java
I don't think that is valid HTML (tr inside tr). I find that a lightbox can be a nice way of doing crud for a grid. When you click on a read only row, you show a bean editor in a lightbox http://www.opensourcehunter.com/2010/06/25/40-javascript-lightbox-scriptsincluded-jquery-and-mootools/ But

RE: Grid with split rows

2012-06-14 Thread Poder, Jacob
Continuing the pragmatic approach but still requiring valid HTML... // Component Java (no tml) // Ends current row and starts a new one @SupportsInformalParameters public class AddGridRow { void beginRender(MarkupWriter writer) { writer.writeRaw(/td/trtrtd colspan=\100\);

RE: [5.3] JSONArray Error while submitting forms

2012-06-14 Thread Poder, Jacob
Hi Bob, Thanks for commenting. I already tried this, please see earlier correspondence. (http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-td5713753.html) Best regards, Jacob -Original Message- From: Bob Harner [mailto:bobhar...@gmail.com] Sent:

RE: [5.3] JSONArray Error while submitting forms

2012-06-14 Thread Poder, Jacob
Sent Should anyone else want to try as well, please let me know... Best regards, Jacob -Original Message- From: Muhammad Gelbana [mailto:m.gelb...@gmail.com] Sent: Wednesday, June 13, 2012 4:15 PM To: Tapestry users Subject: Re: [5.3] JSONArray Error while submitting forms This is

Re: BreadCrumbsModule error

2012-06-14 Thread Lance Java
As I said before, it seems like the zbreadcrumbs MarkupRendererFilter is running before the DocumentLinker even though it should run after. I'd like you to test a theory that there is a bug in ordered configuration. I originally asked you to alter the zbreadcrumbs jar but I have found a way to

Re: BreadCrumbsModule error

2012-06-14 Thread sommeralex
I will try it in the evening! thx! hope, that it will work then. alex 2012/6/14 Lance Java [via Tapestry] ml-node+s1045711n5713870...@n5.nabble.com As I said before, it seems like the zbreadcrumbs MarkupRendererFilter is running before the DocumentLinker even though it should run after.

Re: Tapestry 5.3.4-rc-5

2012-06-14 Thread Denis Stepanov
Concurrency topic: Would it be possible to change the lazy init to check if write lock is already locked? It will eliminate the posibility of locking the write lock by more then one thread. try { readLock.lock(); if(is need to init) { boolean hasWriteLock = false; try {

Re: Problem injecting a Logger

2012-06-14 Thread Denis Stepanov
Its looked like resources are not injected when javax.inject.Inject is used. Denis Jun 14, 2012 v 2:31 AM, Howard Lewis Ship: I'm not seeing anything here. How about you put your source into a Gist ( gist.github.com) and paste the URL here? On Wed, Jun 13, 2012 at 3:12 PM, Muhammad

Re: [tynamo-user] [ANNOUNCEMENT] tapestry-security 0.4.6 released!

2012-06-14 Thread Chris Mylonas
Thanks Kalle, I really like your best ever tapestry-security release yet I think I remember reading it on 0.4.1 maybe... :P On 14/06/2012, at 3:53 PM, Kalle Korhonen wrote: More people using tapestry-security means more improvements, feature requests. We are still staying on top of it and

Re: Grid with split rows

2012-06-14 Thread Bryan Lewis
The lightbox idea is cool. So is the AddGridRow component idea, if my users can't stand the idea of a pop-up dialog. I gave it a quick try and it works well, produces valid html. (And it hides the ugly markup from the template, to preserve a facade of self-respect.) Thanks, y'all.

Re: Getting Error when do any action in my page

2012-06-14 Thread Steve Eynon
On 14 June 2012 21:20, karthick nk.karth...@gmail.com wrote: Servlet.service() for servlet ices threw exception What's the ices servlet and why is it being called? - To unsubscribe, e-mail:

Re: [tynamo-user] [ANNOUNCEMENT] tapestry-security 0.4.6 released!

2012-06-14 Thread Kalle Korhonen
I'm just using a template. Oh and this one is clearly superior to 0.4.1 :) Kalle On Thu, Jun 14, 2012 at 4:59 AM, Chris Mylonas ch...@opencsta.org wrote: Thanks Kalle, I really like your best ever tapestry-security release yet I think I remember reading it on 0.4.1 maybe... :P On

How to use StyleSheetOptions with condition

2012-06-14 Thread George Christman
Hello, I'm not finding a clear example how to use StylesheetOptions with a condition. I seen an example here, http://tapestry.apache.org/css.html But this has been deprecated in 5.3 Could someone please help me figure out how to use the condition. I only want to display a style sheet if it's

Re: How to use StyleSheetOptions with condition

2012-06-14 Thread Taha Siddiqi
Hi George @Inject @Path(ie6.css) private Asset ie6Stylesheet; @SetupRender void addIEScripts() { javaScriptSupport.importStylesheet(new StylesheetLink( ie6Stylesheet, new StylesheetOptions().withCondition(IE 6) )); } regards

Re: How to use StyleSheetOptions with condition

2012-06-14 Thread Steve Eynon
The clue is in StylesheetLink#add. Try this: void afterRender() {    js.importStylesheet(new StylesheetLink(ieOnlyStylesheet, new StylesheetOptions(null).withCondition((IE 7)|(IE 8))) ); } Only the constructor and getter are deprecated. Steve. -- Steve Eynon

Re: Problem injecting a Logger

2012-06-14 Thread Taha Siddiqi
I don't think you can use @Injected value in the constructor. The constructor is called first and then injection is done. As you are accessing the service in constructor, at this point the field injection has not been done. And as Logger has not been build by the registry, you get Service not

Re: How to use StyleSheetOptions with condition

2012-06-14 Thread George Christman
I was over thinking this, much simpler than I originally thought, Thanks Taha. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-use-StyleSheetOptions-with-condition-tp5713879p5713883.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: How to use StyleSheetOptions with condition

2012-06-14 Thread George Christman
Thanks Steven, nice to know the condition argument can handle multiple conditions. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-use-StyleSheetOptions-with-condition-tp5713879p5713885.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Problem injecting a Logger

2012-06-14 Thread Steve Eynon
Yeah, this isn't a T5 thing - it's Java! @Inject private Logger log; public My() { log.info(Logger injected in service using @javax.inject.Inject); } T5 can't do field injection until it's constructed the class. But when T5 constructs the class you access the field -- NPE!

Re: How to use StyleSheetOptions with condition

2012-06-14 Thread Steve Eynon
To be honest I've never tried it, but it says here it should be okay: http://en.wikipedia.org/wiki/Conditional_comment Steve. On 15 June 2012 00:13, George Christman gchrist...@cardaddy.com wrote: Thanks Steven, nice to know the condition argument can handle multiple conditions. -- View

Re: Checklist disabled possible bug

2012-06-14 Thread iberck
Any ideas how can I disable the checklist component ? Thanks in advance -- View this message in context: http://tapestry.1045711.n5.nabble.com/Checklist-disabled-possible-bug-tp5713681p5713888.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: How to use StyleSheetOptions with condition

2012-06-14 Thread George Christman
Works good :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-use-StyleSheetOptions-with-condition-tp5713879p5713889.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To

Re: [tynamo-user] [ANNOUNCEMENT] tapestry-security 0.4.6 released!

2012-06-14 Thread Thiago H de Paula Figueiredo
On Thu, 14 Jun 2012 11:15:18 -0300, Kalle Korhonen kalle.o.korho...@gmail.com wrote: I'm just using a template. Oh and this one is clearly superior to 0.4.1 :) If it weren't superior Kalle wouldn't release it. :) -- Thiago H. de Paula Figueiredo

What do you use to do full text search

2012-06-14 Thread Massimo Lusetti
Hi guys, what do you use to add full text capabilities to your tapestry5 web sites? Cheers -- Massimo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

Re: Problem injecting a Logger

2012-06-14 Thread Muhammad Gelbana
Well thanks, that was my mistake ! Although now I tried calling the logger in a method called in the contribute registry startup static method and still tapestry didn't resolve it: public class *AppModule* { @Inject private IMy my; public static void bind(ServiceBinder binder) {

Disable clientside x on serverside validation

2012-06-14 Thread George Christman
Is there a way to disable the clientside x from appearing when a server side error returns. I use it for clientside validation, so I don't want to completely disable it with css. -- View this message in context:

Re: Problem injecting a Logger

2012-06-14 Thread Steve Eynon
Just tried it on T5.3.3 and it worked fine with both @Inject annotations... Though I wouldn't advise injecting services into your module - that just seems... well, weird! Steve. On 15 June 2012 01:00, Muhammad Gelbana m.gelb...@gmail.com wrote: Well thanks, that was my mistake ! Although now

Re: Disable clientside x on serverside validation

2012-06-14 Thread Steve Eynon
This is only easily done in the later T5.3.x releases. You need to override the ValidationDecoratorFactory with your local service: public static void bind(ServiceBinder binder) { binder.bind(ValidationDecoratorFactory.class, MyValidationDecoratorFactory.class).withSimpleId(); }

Re: Tapestry 5.3.4-rc-5

2012-06-14 Thread Howard Lewis Ship
I'm already somewhat unhappy at the complexity of the code; I'd prefer not to make it any more complicated. I think race conditions on the write lock are going to be pretty rare and probably only occur on a somewhat saturated server at initial startup. I think twisting the code ever further. In

Re: Disable clientside x on serverside validation

2012-06-14 Thread George Christman
Excellent, I use 5.3x thanks Steve. -George - Reply message - From: Steve Eynon [via Tapestry] ml-node+s1045711n5713895...@n5.nabble.com Date: Thu, Jun 14, 2012 1:24 pm Subject: Disable clientside x on serverside validation To: George Christman gchrist...@cardaddy.com -- View this

Re: What do you use to do full text search

2012-06-14 Thread Thiago H de Paula Figueiredo
On Thu, 14 Jun 2012 13:59:26 -0300, Massimo Lusetti mluse...@gmail.com wrote: Hi guys, Hi, Massimo! what do you use to add full text capabilities to your tapestry5 web sites? The company I work for uses Apache Solr. I've talked to some friends that work at another company and they

Re: Problem injecting a Logger

2012-06-14 Thread Thiago H de Paula Figueiredo
On Thu, 14 Jun 2012 14:00:05 -0300, Muhammad Gelbana m.gelb...@gmail.com wrote: public class *AppModule* { @Inject private IMy my; Why this field exists? public static void bind(ServiceBinder binder) { binder.bind(IMy.class, My.class); } Ok. public void

Re: Problem injecting a Logger

2012-06-14 Thread Steve Eynon
My mistake, the @Inject in the My class needs to be a org.apache.tapestry5.ioc.annotations.Inject; or org.apache.tapestry5.ioc.annotations.InjectResource; Probably as (already stated - I think), the T5 @Inject uses a MasterObjectProvider whereas the javax @Inject just looks up Services - which

Re: Problem injecting a Logger

2012-06-14 Thread Howard Lewis Ship
Hm. They're supposed to operate exactly the same. On Thu, Jun 14, 2012 at 11:01 AM, Steve Eynon steve.ey...@alienfactory.co.uk wrote: My mistake, the @Inject in the My class needs to be a org.apache.tapestry5.ioc.annotations.Inject; or org.apache.tapestry5.ioc.annotations.InjectResource;

Re: Problem injecting a Logger

2012-06-14 Thread Thiago H de Paula Figueiredo
On Thu, 14 Jun 2012 15:01:49 -0300, Steve Eynon steve.ey...@alienfactory.co.uk wrote: My mistake, the @Inject in the My class needs to be a org.apache.tapestry5.ioc.annotations.Inject; or org.apache.tapestry5.ioc.annotations.InjectResource; Probably as (already stated - I think), the T5

Re: Problem injecting a Logger

2012-06-14 Thread Muhammad Gelbana
I'm injecting the service in the module class just to be able to call it in the registry-contribution method to test the service once the applications starts up. But actually in production i'm doing the same, to call some of my services methods to initialize them in a way, but since it looks weird

Re: Problem injecting a Logger

2012-06-14 Thread Thiago H de Paula Figueiredo
On Thu, 14 Jun 2012 15:41:59 -0300, Muhammad Gelbana m.gelb...@gmail.com wrote: I'm injecting the service in the module class just to be able to call it in the registry-contribution method to test the service once the applications starts up. Do you know you can use injection (no

SV: [5.3] JSONArray Error while submitting forms

2012-06-14 Thread Poder, Jacob
On the contrary, you helped med show that it is a real problem, now maybe other people will recognize this issue as well! Thank you!!! Best regards, Jacob Fra: Muhammad Gelbana [m.gelb...@gmail.com] Sendt: 14. juni 2012 19:33 Til: Poder, Jacob Emne: Re: [5.3]

Re: Problem injecting a Logger

2012-06-14 Thread Muhammad Gelbana
*- Do you know you can use injection (no annotations needed) in build, contribute and advise methods in Tapestry-IoC module classes? ;) * You mean in the method signature ? It's of course different from injecting services in the module but how is it different tapestry-wise ? *- What about its

Re: Problem injecting a Logger

2012-06-14 Thread Thiago H de Paula Figueiredo
On Thu, 14 Jun 2012 17:42:33 -0300, Muhammad Gelbana m.gelb...@gmail.com wrote: *- Do you know you can use injection (no annotations needed) in build, contribute and advise methods in Tapestry-IoC module classes? ;) * You mean in the method signature ? Yes. It's of course different from

Re: Problem injecting a Logger

2012-06-14 Thread Muhammad Gelbana
I only provided abstract proofs for what I'm trying to question, not the whole thing of course as not to distract anyone away from the main point. I guess now the only thing is left is the difference between tapestry's @Inject and java's. I know Howard disagrees with that, did anyone else notice

Adding confirmation step to form

2012-06-14 Thread David Rees
I feel like this should be something dead-simple and am missing something obvious - I'm sure you guys will have a slick solution here. :-) I'm creating a simple form which has a confirmation step. Use case goes like this: Step 1: Enter data Step 2: Validate data show confirmation page if OK

Re: Problem injecting a Logger

2012-06-14 Thread Muhammad Gelbana
Is this the method responsible for injecting instance fields within services ? *org.apache.tapestry5.ioc.internal.util.InternalUtils.injectIntoFields(Object, ObjectLocator, InjectionResources, OperationTracker)* If it is, if (ap.getAnnotation(Inject.class) != null ||

Grid pager event hander problem - Tapestry 5.2.6

2012-06-14 Thread Dongmei Cao
Hi, I have a web page that contains a Grid with multiple pages. In the same web page, we also have a search filter. Based on the filter value, the Grid will contain different number of pages. When this is tested with single user or a few users, everything worked perfectly. But in production,

Re: Checklist disabled possible bug

2012-06-14 Thread iberck
the disabled parameter doesn't work -- View this message in context: http://tapestry.1045711.n5.nabble.com/Checklist-disabled-possible-bug-tp5713681p5713913.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Adding confirmation step to form

2012-06-14 Thread Paul Stanton
The simplest way would be to save your form data into a bean, and use the @Persist annotation on your bean so you can display it and then subsequently save it 2 requests later. By default this will use your session to store the bean. Alternatively you can use the @SessionState annotation if

AutoComplete Mixin issue - Tapestry 5.2.6

2012-06-14 Thread Dongmei Cao
Hi, I keep getting the following exception on the AutoComplete Mixin when many multiple users access it in production. Since I can not reproduce it in my dev environment or just a few users, can someone please shine some light on what kind of scenario can cause t:input blank? Caused by: