Re: Struts2 with AngularJS

2014-11-20 Thread foo bar
Hi Lukasz, Yes indeed, JSON plugin is all I need, thanks ! In case anyone else experiencing the same issue, this is what I did In AngularJS CustomerService.save({customer:$scope.newCustomer}); You could also do $http.post('customer/add', {customer:$scope.newCustomer}).success().error(); Angu

Re: best approach to clean parameters using Jsoup

2014-11-20 Thread Lukasz Lenart
Yeah... basically conversion isn't needed in that case ;-) 2014-11-20 15:32 GMT+01:00 JOSE L MARTINEZ-AVIAL : > I jsut used the annotation: > private String parameterArray[] = null; > @TypeConversion(rule= ConversionRule.COLLECTION, type = > ConversionType.CLASS, converter = "com.xxx.y

Re: best approach to clean parameters using Jsoup

2014-11-20 Thread JOSE L MARTINEZ-AVIAL
I jsut used the annotation: private String parameterArray[] = null; @TypeConversion(rule= ConversionRule.COLLECTION, type = ConversionType.CLASS, converter = "com.xxx.yyy.util.conversion. struts2.JSoupConversor") public void setParameterArray(String parameterArray[]) { this.

Re: best approach to clean parameters using Jsoup

2014-11-20 Thread Lukasz Lenart
How did you register it? 2014-11-19 12:55 GMT+01:00 JOSE L MARTINEZ-AVIAL : > Quick question here. I'm working on the approach to use a custom conversor. > It works fine for standard parameters (Just a String), but I'm having > issues when the getter receives a String[] parameters > > private

Re: Struts2 with AngularJS

2014-11-20 Thread Lukasz Lenart
2014-11-19 11:20 GMT+01:00 foo bar : > Hi, > > Thanks for the prompt reply, I'll have a look at the Struts2 AngularJS > archetype > But I meant AngularJS interceptor ( > https://docs.angularjs.org/api/ng/service/$http) which is still client > side, AngularJS interceptor is meant to intercept {name: