On Oct 1, 2012, at 12:11 PM, Lukas Fryc wrote:
I would opt for one quickstart with both formats available
(JSON/XML)
as it was originally in AeroGear Kitchensink [2],
but it seems the sample does not support both formats anymore [1].
Kris, why you have decided to go with JSON-only sample?
I'd say that's
because no one uses XML on html apps nowadays, unless forced to do so :)
~ Lukas
[1]
https://github.com/aerogear/as-quickstarts/commit/2b31d6e9206e692b1f7fd66...
[2]
http://poh5-aerogear.rhcloud.com/
On 10/01/2012 11:38 AM, Ondrej Zizka wrote:
> Maybe. One for XML / Jettison, second for JSON / Jackson.
>
> Ondra
>
>
>
>
> On Fri, 2012-09-28 at 16:46 +0100, Pete Muir wrote:
>> Lukas, wdyt IMO better to have two quickstarts for this...
>>
>> On 25 Sep 2012, at 12:19, Ondrej Zizka wrote:
>>
>> > JBoss AS Quickstarts: Tasks JAX-RS = jboss-as-tasks-rs
>> >
>> > model/Task.java
>> >
>> > @XmlTransient
>> > // JSON: uncomment to include json support (note json is not part of the
JAX-RS standard)
>> > // @JsonIgnore
>> > public User getOwner() {
>> > return owner;
>> > }
>> >
>> >
>> >
>> > O.
>> >
>> >
>> >
>> >
>> > On Mon, 2012-09-24 at 14:41 +0100, Pete Muir wrote:
>> >> Which quickstart is this?
>> >>
>> >> On 22 Sep 2012, at 12:01, Ondřej Žižka wrote:
>> >>
>> >> > Hmm, so that wasn't exact.
>> >> > RestEasy in AS uses Jackson, but that's not in QS's
pom.xml, so JsonIgnore is the one to use, but needs (probably)
>> >> >
>> >> > <dependency>
>> >> > <groupId>org.codehaus.jackson</groupId>
>> >> > <artifactId>jackson-core-asl</artifactId>
>> >> > <version>1.9.2</version>
>> >> > <scope>provided</scope>
>> >> > </dependency>
>> >> >
>> >> > To be added.
>> >> > I wonder how to change the provider in AS - probably by removing
the respective provider's module?
>> >> >
>> >> > Ondra
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > Ondřej Žižka píše v So 22. 09. 2012 v 08:47 +0200:
>> >> >> Seems like it doesn't belong there. RestEasy relies on
JAXB's @XmlTransient and uses that for all providers, incl. Jackson.
>> >> >>
>> >> >> Ondra
>> >> >>
>> >> >>
>> >> >>
>> >> >> Ondřej Žižka píše v So 22. 09. 2012 v 04:27 +0200:
>> >> >>> Hi Pete,
>> >> >>>
>> >> >>> this is in the JAX-RS QS:
>> >> >>>
>> >> >>> @XmlTransient
>> >> >>> // JSON: uncomment to include json support (note json
is not part of the JAX-RS standard)
>> >> >>> //@JsonIgnore
>> >> >>> public User getOwner() {
>> >> >>> return owner;
>> >> >>> }
>> >> >>>
>> >> >>> I didn't find JsonIgnore anywhere else than Jackson.
It's not in Quickstart's deps.
>> >> >>> I've checked public API (wow, it's actually
useful! :) and it's not there.
>> >> >>>
>> >> >>> So - does @JsonIgnore even belong there?
>> >> >>>
>> >> >>> Thanks,
>> >> >>> Ondra
>> >> >>> _______________________________________________
>> >> >>> jdf-dev mailing list
>> >> >>>
>> >> >>>
>> >>
>> jdf-dev(a)lists.jboss.org
>>
>> >>
>> >> >>>
>> >>
>>
https://lists.jboss.org/mailman/listinfo/jdf-dev
>>
>> >>
>> >> >>
>> >> >
>> >>
>> >>
>> >
>>
>>
>
_______________________________________________
jdf-dev mailing list
jdf-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jdf-dev
-- qmx