i like the getAttributes() approach
Because they are going to use it for getting stuff in the constructor
so if they can't set it then we get those questions again!
And i don't like the attributemodifier anyway for the simple things.
johan
On 8/19/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
we thought it would be nice to just be able to do
public MyComponent(MarkupContainer parent, String id) {
super(parent, id);
getAttributes().put("class","error");
}
instead of overriding oncomponenttag or using attributemodifier for simple situations like these.
but maybe we should ditch the idea.
-IgorOn 8/19/06, Juergen Donnerstag <[EMAIL PROTECTED] > wrote:What I haven't understood yet is why this map is modifyable? Why isn't
it just a read-only map. What is wrong with using AttributeModifier
instead.
Juergen
On 8/19/06, Johan Compagner < [EMAIL PROTECTED]> wrote:
> Yes (we, igor and me) already had this discussion sometime ago when
> discussing the copy on write map..
>
> The problem is we should merge it somehow.. because what if people just
> added, removed or updated a attribute???
>
> johan
>
>
>
> On 8/19/06, Igor Vaynberg <[EMAIL PROTECTED]> 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]> 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]> 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]> 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
> > > >>>> _______________________________________________
> > > >>>> 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
> > > >>>
> > > >>
> > > >>
> -------------------------------------------------------------------------
> > > >> 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
> > > >
> > >
> > >
> > >
> -------------------------------------------------------------------------
> > > 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
> >
> >
> >
>
>
> -------------------------------------------------------------------------
> 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
-------------------------------------------------------------------------
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