uh, to finish my explanation... you would practically never use IResource directly unless you were implementing some new kind of resource.
WebResource's getResource() returns an IResource (any old streamable resource), which is what makes it so general.
Johan Compagner wrote:
that can be but for example FileResource has a InputStream variable that is not transient.
So every Resource implementation should be looked at.
And then are the WebResources (a webresource like images is not an IResource!)
i have to see an example where IResources and WebResources are used and how they are used
It is a bit confusing currently
Eelco how do you use IResource and WebResource implementation currently?
johan
Jonathan Locke wrote:
can anyone think of a reason that IResource shouldn't extend Serializable?
Jonathan Locke wrote:
also noticed that RenderedDynamicImageResource needs to be optionally serializable (interesting case!).
if your dynamic image resource is say DefaultButtonImageResource, then it's completely regenerable and should be transient.
but if it's something like a picture of something at a particular time of day, then you cannot regenerate it and it has to be serializable.
i think we'll have to use a serializable field, but null it out if the user says the object is regenerable... i suppose this may be true for
DynamicImageResources in general...
Jonathan Locke wrote:
actually, shouldn't it be IResource extends Serializable?
that way nested implementations would be serialiable too...
i think we need to make resources smarter about serializing... StaticImageResource for example should definitely have a transient IResource field in the end... ;-)
Johan Compagner wrote:
Our clone by serialize did encounter a few serialization exceptions for example
all the Resources (like image). Should we make AbstractResource serializeable?
those can be in the session..
johan
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
