[html-formfu] ExtJS::REST

Mario Minati mario.minati at googlemail.com
Mon May 11 14:22:22 GMT 2009


Am Montag 11 Mai 2009 11:34:01 schrieb Moritz Onken:
> Am 11.05.2009 um 01:24 schrieb Mario Minati:
> >> OK I see. I think we can make this the default behaviour. This will
> >> cause a
> >> database roundtrip but I think it's the best way to make sure that
> >> the
> >> data
> >> we give back is the same as the data the user will get when he
> >> requests
> >> that item.
> >
> > You are right, but FF itself doesn't take db changes into account by
> > default.
> > And the db processing for more complex forms with repeatables and so
> > one takes
> > quite some time.
> > I could accept to copy FF's default behaviour.
>
> Hi,
>
> I was trying to tell you that respond_with_model_values = 1 should be
> the default :-)
> and remove it altogether. I think that database round trip wouldn't
> hurt anyone.

Doing so the test suite fails in user.t line 50. We expect PUT to return 
success == '1', but it sends 'true'. That is because we set it once as '\1' 
and the other time as '1' in ExtJS.

Do you know if ExtJS makes a difference between those two values?


Greets,

Mario Minati



More information about the HTML-FormFu mailing list