You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "terasaka.k" <te...@gmail.com> on 2012/03/28 03:22:44 UTC

How dataNeedsToBeWritten() be false in newReosurceResponse

How does the conditional statement 'if
(resourceResponse.dataNeedsToBeWritten(attributes))' in
PackageResource$newResourceResponse turn false?

dataNeedsToBeWritten() method internally uses its own lastModified field,
which is null (by default) and always returns true at that point.

Any useful purpose for that conditional?

Also the API document of dataNeedsToBeWritten() exclaims setLastModified be
called first.

Thank you

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-dataNeedsToBeWritten-be-false-in-newReosurceResponse-tp4510762p4510762.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How dataNeedsToBeWritten() be false in newReosurceResponse

Posted by "terasaka.k" <te...@gmail.com>.
Thank you for your quick reply.

I issued as WICKET-4480.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-dataNeedsToBeWritten-be-false-in-newReosurceResponse-tp4510762p4511705.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How dataNeedsToBeWritten() be false in newReosurceResponse

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

You are right!
It looks like a bug.
Please file a ticket about it.

On Wed, Mar 28, 2012 at 3:22 AM, terasaka.k <te...@gmail.com> wrote:
> How does the conditional statement 'if
> (resourceResponse.dataNeedsToBeWritten(attributes))' in
> PackageResource$newResourceResponse turn false?
>
> dataNeedsToBeWritten() method internally uses its own lastModified field,
> which is null (by default) and always returns true at that point.
>
> Any useful purpose for that conditional?
>
> Also the API document of dataNeedsToBeWritten() exclaims setLastModified be
> called first.
>
> Thank you
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-dataNeedsToBeWritten-be-false-in-newReosurceResponse-tp4510762p4510762.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org