We should. Because now what's probably going on is that the 
CopyOnWriteValueMap of component contains reference to map from old markup.

-Matej

Igor Vaynberg wrote:
> we load the attrs into a copy-on-write map - we need to reset the map 
> when the markup is reloaded i guess, right johan?
> 
> -Igor
> 
> 
> On 8/19/06, *Matej Knopp * <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 
> wrote:
> 
>     I didn't add any attribute modifier.
> 
>     <input style="abc"/>
> 
>     new TextField(...
> 
>     then I changed markup to
> 
>     <input style="xyz"....
> 
>     the markup reloaded but until I created new instance of page (and thus
>     new instance of the TextField), the rendered style was "abc".
> 
>     -Matej
> 
>     Juergen Donnerstag wrote:
>      > Sorry, I don't understand it. Can you be a bit more explicit
>      > <input style="xxx" ....>
>      > TextField field = new ....
>      > field.add(new AttributeModifier("style", ...)
>      > or are you talking about Component.setStyle()?
>      >
>      > Juergen
>      >
>      > On 8/19/06, Matej Knopp < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>     wrote:
>      >> My current use case is that I have an input with a style attribute
>      >> (attached to a TextField). When I change the content of the style
>      >> attribute, markup is reloaded but new style is not displayed,
>     because
>      >> TextField remembers old attribute.
>      >>
>      >> Why is that? Shouldn't it only remember the attributes after I
>     change it
>      >> in code (using getMarkupAttributes)?
>      >>
>      >> -Matej
>      >>
>      >>
>      >>
>      >>
>      >>
>      >> Juergen Donnerstag wrote:
>      >>> What is the use case for changing Component attributes due to the
>      >>> associate Markup being re-loaded? Which component attributes
>     should be
>      >>> reset? To which value? In V2 you may call
>      >>> MarkupCache.addAfterLoadListener() to register a listener
>     though not
>      >>> invented for this purpose.
>      >>>
>      >>> Juergen
>      >>>
>      >>> On 8/19/06, Matej Knopp <[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>> wrote:
>      >>>> Is this a feature or a bug?
>      >>>>
>      >>>> -Matej
>      >>>>
>      >>>>
>     -------------------------------------------------------------------------
>      >>>> Using Tomcat but need to do more? Need to support web
>     services, security?
>      >>>> Get stuff done quickly with pre-integrated technology to make
>     your job easier
>      >>>> Download IBM WebSphere Application Server v.1.0.1 based on
>     Apache Geronimo
>      >>>>
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>      >>>> _______________________________________________
>      >>>> Wicket-develop mailing list
>      >>>> Wicket-develop@lists.sourceforge.net
>     <mailto:Wicket-develop@lists.sourceforge.net>
>      >>>> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>     <https://lists.sourceforge.net/lists/listinfo/wicket-develop>
>      >>>>
>      >>>
>     -------------------------------------------------------------------------
>      >>> Using Tomcat but need to do more? Need to support web services,
>     security?
>      >>> Get stuff done quickly with pre-integrated technology to make
>     your job easier
>      >>> Download IBM WebSphere Application Server v.1.0.1 based on
>     Apache Geronimo
>      >>>
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>      >>> _______________________________________________
>      >>> Wicket-develop mailing list
>      >>> Wicket-develop@lists.sourceforge.net
>     <mailto:Wicket-develop@lists.sourceforge.net>
>      >>> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>      >>>
>      >>
>      >>
>     -------------------------------------------------------------------------
> 
>      >> Using Tomcat but need to do more? Need to support web services,
>     security?
>      >> Get stuff done quickly with pre-integrated technology to make
>     your job easier
>      >> Download IBM WebSphere Application Server v.1.0.1 based on
>     Apache Geronimo
>      >>
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>      >> _______________________________________________
>      >> Wicket-develop mailing list
>      >> Wicket-develop@lists.sourceforge.net
>     <mailto:Wicket-develop@lists.sourceforge.net>
>      >> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>      >>
>      >
>      >
>     -------------------------------------------------------------------------
> 
>      > Using Tomcat but need to do more? Need to support web services,
>     security?
>      > Get stuff done quickly with pre-integrated technology to make
>     your job easier
>      > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>     Geronimo
>      >
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>      > _______________________________________________
>      > Wicket-develop mailing list
>      > Wicket-develop@lists.sourceforge.net
>     <mailto:Wicket-develop@lists.sourceforge.net>
>      > https://lists.sourceforge.net/lists/listinfo/wicket-develop
>      >
> 
> 
>     -------------------------------------------------------------------------
>     Using Tomcat but need to do more? Need to support web services,
>     security?
>     Get stuff done quickly with pre-integrated technology to make your
>     job easier
>     Download IBM WebSphere Application Server v.1.0.1 based on Apache
>     Geronimo
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>     _______________________________________________
>     Wicket-develop mailing list
>     Wicket-develop@lists.sourceforge.net
>     <mailto:Wicket-develop@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/wicket-develop
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Wicket-develop mailing list
> Wicket-develop@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-develop


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to