Re: select problem render queue

2014-07-15 Thread Geoff Callender
Have you seen this example and the ones around it? http://jumpstart.doublenegative.com.au/jumpstart7/examples/select/easyobject HTH, Geoff On 16 Jul 2014, at 1:56 am, squallmat . wrote: > But I was getting the problem at page loading. I haven't been able yet to > do a form submission

Re: Wait for the triggerEvent to finish

2014-07-15 Thread Boris Horvat
In my logs I could see that method that was triggered by the triggerEvent() was still running when onSuccess event was handled. So I got the impression that triggerEvent method is not blocking...but if it is then my problem is somewhere else I guess, right? On Sun, Jul 13, 2014 at 7:02 PM, Dmitry

Re: Tapestry-csrf-protection with Tapestry-Spring-Security.

2014-07-15 Thread TNO
Thanks a lot Eugen ! Le 15/07/2014 22:12, Eugen a écrit : Yes, this is the "normal" way, another way is to make a tapestry form, f.e.: and in OnSuccess event something like: @inject AuthenticationManager authenticationManager; void onSuccess() { Authentication authentication = new Userna

Re: Tapestry-csrf-protection with Tapestry-Spring-Security.

2014-07-15 Thread Eugen
Yes, this is the "normal" way, another way is to make a tapestry form, f.e.: and in OnSuccess event something like: @inject AuthenticationManager authenticationManager; void onSuccess() { Authentication authentication = new UsernamePasswordAuthenticationToken(username, password); Authentica

Re: Tapestry-csrf-protection with Tapestry-Spring-Security.

2014-07-15 Thread TNO
Thanks, but This is a form with an action value class="line"> This is not a tapestry form (t:form), I don't think I can use the onSuccess Thomas Le 15/07/2014 18:49, Eugen a écrit : Hi, You can login programatically in onSucces function of a tapestry form. Best regards Eugen Am 15.07.2014 1

Re: Tapestry-csrf-protection with Tapestry-Spring-Security.

2014-07-15 Thread Eugen
Hi, You can login programatically in onSucces function of a tapestry form. Best regards Eugen Am 15.07.2014 16:16 schrieb "TNO" : > Hello, > > Is there anybody who already use tapestry-csrf-protection with > Tapestry-Spring-Security ? > > tapestry-csrf-protection works out of the box with t:form,

Re: select problem render queue

2014-07-15 Thread squallmat .
But I was getting the problem at page loading. I haven't been able yet to do a form submission, so setupRender should have been enough for that, right ? I probably miss something on this. But it's now working :) And thanks for your time for helping me (I'm discovering this framework). 2014-07-15

Re: select problem render queue

2014-07-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Jul 2014 10:48:02 -0300, squallmat . wrote: Ok I resolved the problem, I went from declaring the encoder with : @Property private TypeClientDtoEncoder typeClientDtoEncoder; to : public TypeClientDtoEncoder getTypeClientDtoEncoder() { return new TypeClientDtoEncoder(); } and now

Re: Tapestry-csrf-protection with Tapestry-Spring-Security.

2014-07-15 Thread TNO
The trace : |java.lang.NullPointerException: Unable to delegate method invocation to property 'request' of , because the property is null. at $Request_1ce08361bf2a.readProperty(Unknown Source) at $Request_1ce08361bf2a.getSession(Unknown Source) at $Request_1ce08361bee0.getSession(Un

Tapestry-csrf-protection with Tapestry-Spring-Security.

2014-07-15 Thread TNO
Hello, Is there anybody who already use tapestry-csrf-protection with Tapestry-Spring-Security ? tapestry-csrf-protection works out of the box with t:form, but Tapestry-Spring-Security works with is a simple html form and uses the Spring HttpServletRequestFilter. I'm using in the login fo

Re: Upgrading typeahead to the latest version.

2014-07-15 Thread George Christman
So I just took a quick peak and I'm seeing where the bootstrap library was updated, but I'm not seeing where the typeahead.js has been updated. (perhaps I'm just overlooking it too) https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=ef7f9c43ec4f8a4a7e76383c1877215e17d972a9 I beli

Re: select problem render queue

2014-07-15 Thread squallmat .
Ok I resolved the problem, I went from declaring the encoder with : @Property private TypeClientDtoEncoder typeClientDtoEncoder; to : public TypeClientDtoEncoder getTypeClientDtoEncoder() { return new TypeClientDtoEncoder(); } and now it works :pstrange 2014-07-15 14:58 GMT+02:00 Thiago H

Re: Upgrading typeahead to the latest version.

2014-07-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Jul 2014 10:03:36 -0300, George Christman wrote: Hi Howard, where are the recent commits located? https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=log -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br

Re: Upgrading typeahead to the latest version.

2014-07-15 Thread George Christman
Hi Howard, where are the recent commits located? Thanks llya, I'll have to keep your library in mind for our next project. On Mon, Jul 14, 2014 at 6:43 PM, Ilya Obshadko wrote: > You may use a replacement mixin from here: > https://github.com/xfyre/tapestry5-xtensions > It's more flexible, all

Re: select problem render queue

2014-07-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Jul 2014 07:03:32 -0300, squallmat . wrote: the null pointer exception comes from : at org.apache.tapestry5.internal.util.SelectModelRenderer. option(SelectModelRenderer.java:51) which is, in the code of tapestry this : @SuppressWarnings("unchecked") public void option(Optio

Re: select problem render queue

2014-07-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Jul 2014 06:28:46 -0300, Geoff Callender wrote: If I read Bob right, I think Bob said his problem was not due to nulls, it was due to the selected value not being one of the values in the OptionModel. This can be caused by the lack of a good implementation of equals() and ha

Re: select problem render queue

2014-07-15 Thread squallmat .
the null pointer exception comes from : at org.apache.tapestry5.internal.util.SelectModelRenderer. option(SelectModelRenderer.java:51) which is, in the code of tapestry this : @SuppressWarnings("unchecked") public void option(OptionModel optionModel) { Object optionValue = option

Re: select problem render queue

2014-07-15 Thread Geoff Callender
If I read Bob right, I think Bob said his problem was not due to nulls, it was due to the selected value not being one of the values in the OptionModel. It might also be worth trying secure="literal:false" on the Select. On 15 Jul 2014, at 5:59 pm, squallmat . wrote: > I tried to see what was

Re: select problem render queue

2014-07-15 Thread squallmat .
I tried to see what was in my selectmodel after the factory loading with this code : // initialize selectmodels selectType = selectModelFactory.create(typeClientList, "nomType"); List optionModelList = selectType.getOptions(); System.out.println("begin"); for (OptionModel optionModel : optionMod