Re: [Wicket-user] Dynamic Markup
* Tim Fletcher: I'm having a problem however with dynamically creating markups. While most of the components in my app have associated markup, I'm also creating an other component that should construct itself (markup and model) from a database. I use VelocityPanel for that. See http://wicket-stuff.sourceforge.net/wicket-velocity-panel/index.html -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic Markup
ok found it on the mailing list http://sourceforge.net/mailarchive/message.php?msg_id=36314114 sorry for the noise Tim On 20/08/06, Tim Fletcher [EMAIL PROTECTED] wrote: Hi, I've been playing around with wicket for only a few days, and have done (and particularly, learnt) so much, I'm amazed. Why did i spend so long being obsessed with PHP and content management systems, when i could just have used Wicket :) I'm having a problem however with dynamically creating markups. While most of the components in my app have associated markup, I'm also creating an other component that should construct itself (markup and model) from a database. any hints on how to go about this? I have now read most of the doc, but haven't spotted a relevant bit. Thanks in advance Tim - 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic Markup
Note, Nabble (http://www.nabble.com/Wicket---User-f13976.html) is an alternative (and IMO better) way to view the same archive... /Gwyn On 20/08/06, Tim Fletcher [EMAIL PROTECTED] wrote: ok found it on the mailing list http://sourceforge.net/mailarchive/message.php?msg_id=36314114 sorry for the noise Tim On 20/08/06, Tim Fletcher [EMAIL PROTECTED] wrote: Hi, I've been playing around with wicket for only a few days, and have done (and particularly, learnt) so much, I'm amazed. Why did i spend so long being obsessed with PHP and content management systems, when i could just have used Wicket :) I'm having a problem however with dynamically creating markups. While most of the components in my app have associated markup, I'm also creating an other component that should construct itself (markup and model) from a database. any hints on how to go about this? I have now read most of the doc, but haven't spotted a relevant bit. Thanks in advance Tim - 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.1 now! - http://wicketframework.org - 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic Markup
dont push component resolvers to much because i think we need to drop that or greatly change it in 2.0johanOn 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote:On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: 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.Or rather some factory that ensures you map the right ids etc. Unlessyou use component resolvers which is something I don't know much aboutmyself currently. Eelco-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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-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=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic Markup
Okay, let's forget about this feature in that case. Eelco On 8/9/06, Johan Compagner [EMAIL PROTECTED] wrote: dont push component resolvers to much because i think we need to drop that or greatly change it in 2.0 johan On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: 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. Or rather some factory that ensures you map the right ids etc. Unless you use component resolvers which is something I don't know much about myself currently. Eelco - 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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic Markup
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 SetComponent components; public RealWickiPanel(String id, String html, SetComponent 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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic Markup
On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: 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. Or rather some factory that ensures you map the right ids etc. Unless you use component resolvers which is something I don't know much about myself currently. Eelco - 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic Markup
On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: markup is cached, but you can tweak that by tweaking MarkupResourceStreamLookupResult, setCacheKey and setDisableCaching specifically. Thanks for the hints. I'll give that a try! Furthermore, instead of adding your components in that for loop, you should rather use a ListView or repeater. Well my content is completely free form and unstructured. So repeaters won't work. 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic Markup
On 8/8/06, Stefan Arentz [EMAIL PROTECTED] wrote: On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: markup is cached, but you can tweak that by tweaking MarkupResourceStreamLookupResult, setCacheKey and setDisableCaching specifically. Thanks for the hints. I'll give that a try! Hmm. Can't find that class or those methods in 1.2.1. Is it 2.0 specfic? 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic Markup
Hmmm, yeah. I'm afraid it looks like that. Maybe we can put that on the list for 1.3 Eelco On 8/8/06, Stefan Arentz [EMAIL PROTECTED] wrote: On 8/8/06, Stefan Arentz [EMAIL PROTECTED] wrote: On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: markup is cached, but you can tweak that by tweaking MarkupResourceStreamLookupResult, setCacheKey and setDisableCaching specifically. Thanks for the hints. I'll give that a try! Hmm. Can't find that class or those methods in 1.2.1. Is it 2.0 specfic? 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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user