Hi Carl-Eric

sorry for a delay; there was a minor issue with boolean getters starting from 'is' not recognized, fixed now. As a workaround, try replace 'is' with 'get'. To be honest, this all should be done by common beanutils, hopefully we can refactor it in time.

Cheers, Sergey

On 09/10/12 14:09, Carl-Erik Kopseng wrote:
Unfortunately, all the other
parameters (fields of the input object) were _not_ shown. If my
description seems a bit unclear, I pasted the code and resulting wadl
snippet at http://pastebin.com/zqPi7Rfd and  below. Is this a bug or a
really weird feature? Using CXF JAX-RS 2.6.2

calculateCurrencyExchange(@QueryParam("") CurrencyExchangeInput input){
       ...
}

class ExchangeableCurrenciesInput {

         private ExchangeType type;
         private boolean showExchangeRates;
         private boolean showMargins;
         private boolean showProxyCurrencies;

          ...
}
class ExchangeType {

         private Long id;
         private String name;
         private String description;

I have a test with simple and complex fields, but that may be a bit brittle,
the actual code dealing with that, may be even an ordering issue, example,
having 'private ExchangeType type' as the last field may work better, I'll
investigate

A little addendum: it seems that the case is not simply that the
parameters are not shown - they are effectively not used either. If I
invoke the function using a query like
.../getExchangeableCurrencies?type.id=1&showProxyCurrencies=true&showExchangeRate=true&showMargins=true
both showExchangeRate and showMargins are false when viewing them in
the debugger.

This is a little worse than simply not being shown in the WADL :-(

Regards
Carl-Erik


--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to