Hi, there is a separate component for source - even in the current implementation. (The default image / default source)
Ok - then I am going to change the model to only contain the src information and add another method to get the models for srcset. kind regards Tobias > Am 30.11.2015 um 16:04 schrieb Sven Meier <[email protected]>: > > Hi, > > > the main model is used for "src" > > +1, IMHO this is the main usage for this component. > > > the model is not itself an array of models > > Yeah, that's strange. Why not a separate component for <source> tags? > > Regards > Sven > > > >> On 30.11.2015 15:05, Sebastien wrote: >> Hi Tobias, >> >> As I stated, I would prefer 2 different models so : >> - the main model is used for "src" >> - the model is not itself an array of models (I don't recall there is a >> such case elsewhere in Wicket) >> - it is easier to handle the CPM case >> >> As the other devs are now back from week-end, it would be nice to have some >> other opinions! :) >> >> https://github.com/klopfdreh/wicket-components-playground/blob/master/wicket-components-playground/src/main/java/org/apache/wicket/markup/html/image/ExternalImage.java >> >> Thanks & best regards, >> Sebastien. >> >> >> On Sat, Nov 28, 2015 at 8:10 AM, Tobias Soloschenko < >> [email protected]> wrote: >> >>> Hi Sebastien, >>> >>> thanks for testing :-) >>> >>> I thought it would be nice to get all models by the default WebComponent >>> method and that they are all stored as defaultmodelobject. >>> >>> WDTY? >>> >>> Anyway it would safe 2 methods. >>> >>> kind regards >>> >>> Tobias >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
