markup is cached, but you can tweak that by tweaking
MarkupResourceStreamLookupResult, setCacheKey and setDisableCaching
specifically.

Furthermore, instead of adding your components in that for loop, you
should rather use a ListView or repeater.

Eelco


On 8/8/06, Stefan Arentz <[EMAIL PROTECTED]> wrote:
> Is markup cached? i have a panel with a custom
> newMarkupResourceStream() that generated dynamic markup. But i see old
> values in error messages even though the markup changed.
>
> Is there any way to do something like this:
>
>     class MyPanel extends Panel
>     {
>         private String html;
>         private Set<Component> components;
>
>         public RealWickiPanel(String id, String html, Set<Component> 
> components)
>         {
>             super(id);
>
>             this.html = html;
>             this.components = components;
>
>             for (Component component : components) {
>                 add(component);
>             }
>         }
>
>         @Override
>         public IResourceStream newMarkupResourceStream(Class containerClass)
>         {
>             return new StringResourceStream("<wicket:panel>" + html +
> "</wicket:panel>");
>         }
>     }
>
> Or is this too much wickety magic?
>
>  S.
>
> -------------------------------------------------------------------------
> 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-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
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-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to