Re: Noir.response and custom java object

2012-10-04 Thread arekanderu
After adding the dependencies of noir to my own project.clj, everything worked fine :) I hope that noir developers will make it a bit easier soon... On Thursday, October 4, 2012 9:26:56 PM UTC+3, arekanderu wrote: > > OK, the problem is that the custom encoders isn't merged with the master > tr

Re: Noir.response and custom java object

2012-10-04 Thread arekanderu
OK, the problem is that the custom encoders isn't merged with the master tree yet so, you need to download this branch, run *lein jar *at the root directory of the project and then use that jar file in your project dependencies. I did

Re: Noir.response and custom java object

2012-10-04 Thread arekanderu
In fact, on the latest commit, response.cljdoes not seem to use chesire.custom anymore even though this commitindicates otherwise. On Thursday

Re: Noir.response and custom java object

2012-10-04 Thread arekanderu
Hi Gaz That's exactly the part that I can't figure out. Where exactly am I supposed to do that? Inside the clj where I am going to use noir.response? My apologies if my question seems silly but I am a bit brain-blocked with this. On Thursday, October 4, 2012 8:26:29 PM UTC+3, Gaz wrote: > > It

Re: Noir.response and custom java object

2012-10-04 Thread gaz jones
It seems to be using cheshire under the covers, did you add an encoder for your class? e.g: (add-encoder java.awt.Color (fn [c jsonGenerator] (.writeString jsonGenerator (str c On Thu, Oct 4, 2012 at 12:04 PM, arekanderu wrote: > Hello, > > I am not sure if i am supposed to ask a

Noir.response and custom java object

2012-10-04 Thread arekanderu
Hello, I am not sure if i am supposed to ask a noir-related question in the group but the noir issues at github is closed so i thought someone here might know. I am trying to use a custom encoder