Re: 2 questions on Include
Bumped into this over one year old thread and it answered pretty much the exact question I had - SWEET. I am an experience Java developer but very new to Wicket. Just finished the Wicket-in-Action book, which was awesomely put together at least for someone like myself that loves to follow along by developing examples. I have already learn all the features I need to pull off my first web app using Wicket here at work and I am loving the experience so far! jWeekend wrote: Landry, My pleasure. Let's pass that credit on to where it's really due - the people who provide the brains and hard work behind this framework, not to mention all the support we all get here. I have yet to introduce a serious Java/OO developer to Wicket who (after spending an appropriate amount of time to understand the fundamentals) can help wanting to use it instead of their current Java web framework. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk landry soules wrote: Thanks a lot Cemal, you rock ! And please don't blame me for the dumbness of my questions ;-) Thanks again Best regards Landry 2008/8/19 jWeekend jweekend_for...@cabouge.com Landry, Component has a replaceComponentTagBody(markupStream, openTag, content) method. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk landry soules wrote: Thanks a lot for your answer, Cemal, my first problem is solved ! For the second one, i can get the content, thanks to your explanation, but can't figure out how to modify it before it's displayed. Here is what i do : add(new Include(stat, http://myurl;) { protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { super.onComponentTagBody(markupStream, openTag); String content = importAsString(); logger.debug(content); } }.setEscapeModelStrings(false)); But how can i inject my modified content back to my component ? Best regards. Landry 2008/8/19 jWeekend jweekend_for...@cabouge.com Landry, 1 - setEscapeModelStrings(false) 2 - Subclass Include. Override onComponentTagBody and use importAsString() Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk landry soules wrote: Hello, In my firm, we're currently using a homegrown component-like framework, based on cgi-perl scripts calling servlets. I would like to prove my boss how smooth the transition towards Wicket could be. I'm trying to make a first step, replacing the perl scripts with Wicket, and calling the components (here servlets), with Include. But i have 2 problems : 1/ When i call a servlet that has several parameters, for example add(*new** *Include(maxMin, http://myserver/maxminservlet?id=0001periodes=1st;1a ;)); Wicket actually replaces with amp;, as shown in the trace : DEBUG - UrlResourceStream - cannot convert url: http://myserver/maxminservlet?id=0001amp;periodes=1st;1a; to file (URI scheme is not file), falling back to the inputstream for polling This alters my servlet's behaviour, is there a mean to avoid this substitution ? 2/ Is it possible to catch the content of the include, and so possibly modify it before it is actually displayed in my Wicket page ? Thanks for your help Landry - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/2-questions-on-Include-tp19036146p19041450.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/2-questions-on-Include-tp19036146p19045669.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/2-questions-on-Include-tp19036146p23936492.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 2 questions on Include
Thanks a lot for your answer, Cemal, my first problem is solved ! For the second one, i can get the content, thanks to your explanation, but can't figure out how to modify it before it's displayed. Here is what i do : add(new Include(stat, http://myurl;) { protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { super.onComponentTagBody(markupStream, openTag); String content = importAsString(); logger.debug(content); } }.setEscapeModelStrings(false)); But how can i inject my modified content back to my component ? Best regards. Landry 2008/8/19 jWeekend [EMAIL PROTECTED] Landry, 1 - setEscapeModelStrings(false) 2 - Subclass Include. Override onComponentTagBody and use importAsString() Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk landry soules wrote: Hello, In my firm, we're currently using a homegrown component-like framework, based on cgi-perl scripts calling servlets. I would like to prove my boss how smooth the transition towards Wicket could be. I'm trying to make a first step, replacing the perl scripts with Wicket, and calling the components (here servlets), with Include. But i have 2 problems : 1/ When i call a servlet that has several parameters, for example add(*new** *Include(maxMin,http://myserver/maxminservlet?id=0001periodes=1st;1a ;)); Wicket actually replaces with amp;, as shown in the trace : DEBUG - UrlResourceStream - cannot convert url: http://myserver/maxminservlet?id=0001amp;periodes=1st;1a; to file (URI scheme is not file), falling back to the inputstream for polling This alters my servlet's behaviour, is there a mean to avoid this substitution ? 2/ Is it possible to catch the content of the include, and so possibly modify it before it is actually displayed in my Wicket page ? Thanks for your help Landry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/2-questions-on-Include-tp19036146p19041450.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 questions on Include
Landry, Component has a replaceComponentTagBody(markupStream, openTag, content) method. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk landry soules wrote: Thanks a lot for your answer, Cemal, my first problem is solved ! For the second one, i can get the content, thanks to your explanation, but can't figure out how to modify it before it's displayed. Here is what i do : add(new Include(stat, http://myurl;) { protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { super.onComponentTagBody(markupStream, openTag); String content = importAsString(); logger.debug(content); } }.setEscapeModelStrings(false)); But how can i inject my modified content back to my component ? Best regards. Landry 2008/8/19 jWeekend [EMAIL PROTECTED] Landry, 1 - setEscapeModelStrings(false) 2 - Subclass Include. Override onComponentTagBody and use importAsString() Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk landry soules wrote: Hello, In my firm, we're currently using a homegrown component-like framework, based on cgi-perl scripts calling servlets. I would like to prove my boss how smooth the transition towards Wicket could be. I'm trying to make a first step, replacing the perl scripts with Wicket, and calling the components (here servlets), with Include. But i have 2 problems : 1/ When i call a servlet that has several parameters, for example add(*new** *Include(maxMin,http://myserver/maxminservlet?id=0001periodes=1st;1a ;)); Wicket actually replaces with amp;, as shown in the trace : DEBUG - UrlResourceStream - cannot convert url: http://myserver/maxminservlet?id=0001amp;periodes=1st;1a; to file (URI scheme is not file), falling back to the inputstream for polling This alters my servlet's behaviour, is there a mean to avoid this substitution ? 2/ Is it possible to catch the content of the include, and so possibly modify it before it is actually displayed in my Wicket page ? Thanks for your help Landry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/2-questions-on-Include-tp19036146p19041450.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/2-questions-on-Include-tp19036146p19045669.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 questions on Include
Thanks a lot Cemal, you rock ! And please don't blame me for the dumbness of my questions ;-) Thanks again Best regards Landry 2008/8/19 jWeekend [EMAIL PROTECTED] Landry, Component has a replaceComponentTagBody(markupStream, openTag, content) method. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk landry soules wrote: Thanks a lot for your answer, Cemal, my first problem is solved ! For the second one, i can get the content, thanks to your explanation, but can't figure out how to modify it before it's displayed. Here is what i do : add(new Include(stat, http://myurl;) { protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { super.onComponentTagBody(markupStream, openTag); String content = importAsString(); logger.debug(content); } }.setEscapeModelStrings(false)); But how can i inject my modified content back to my component ? Best regards. Landry 2008/8/19 jWeekend [EMAIL PROTECTED] Landry, 1 - setEscapeModelStrings(false) 2 - Subclass Include. Override onComponentTagBody and use importAsString() Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk landry soules wrote: Hello, In my firm, we're currently using a homegrown component-like framework, based on cgi-perl scripts calling servlets. I would like to prove my boss how smooth the transition towards Wicket could be. I'm trying to make a first step, replacing the perl scripts with Wicket, and calling the components (here servlets), with Include. But i have 2 problems : 1/ When i call a servlet that has several parameters, for example add(*new** *Include(maxMin, http://myserver/maxminservlet?id=0001periodes=1st;1a ;)); Wicket actually replaces with amp;, as shown in the trace : DEBUG - UrlResourceStream - cannot convert url: http://myserver/maxminservlet?id=0001amp;periodes=1st;1a; to file (URI scheme is not file), falling back to the inputstream for polling This alters my servlet's behaviour, is there a mean to avoid this substitution ? 2/ Is it possible to catch the content of the include, and so possibly modify it before it is actually displayed in my Wicket page ? Thanks for your help Landry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/2-questions-on-Include-tp19036146p19041450.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/2-questions-on-Include-tp19036146p19045669.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 questions on Include
Landry, My pleasure. Let's pass that credit on to where it's really due - the people who provide the brains and hard work behind this framework, not to mention all the support we all get here. I have yet to introduce a serious Java/OO developer to Wicket who (after spending an appropriate amount of time to understand the fundamentals) can help wanting to use it instead of their current Java web framework. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk landry soules wrote: Thanks a lot Cemal, you rock ! And please don't blame me for the dumbness of my questions ;-) Thanks again Best regards Landry 2008/8/19 jWeekend [EMAIL PROTECTED] Landry, Component has a replaceComponentTagBody(markupStream, openTag, content) method. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk landry soules wrote: Thanks a lot for your answer, Cemal, my first problem is solved ! For the second one, i can get the content, thanks to your explanation, but can't figure out how to modify it before it's displayed. Here is what i do : add(new Include(stat, http://myurl;) { protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { super.onComponentTagBody(markupStream, openTag); String content = importAsString(); logger.debug(content); } }.setEscapeModelStrings(false)); But how can i inject my modified content back to my component ? Best regards. Landry 2008/8/19 jWeekend [EMAIL PROTECTED] Landry, 1 - setEscapeModelStrings(false) 2 - Subclass Include. Override onComponentTagBody and use importAsString() Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk landry soules wrote: Hello, In my firm, we're currently using a homegrown component-like framework, based on cgi-perl scripts calling servlets. I would like to prove my boss how smooth the transition towards Wicket could be. I'm trying to make a first step, replacing the perl scripts with Wicket, and calling the components (here servlets), with Include. But i have 2 problems : 1/ When i call a servlet that has several parameters, for example add(*new** *Include(maxMin, http://myserver/maxminservlet?id=0001periodes=1st;1a ;)); Wicket actually replaces with amp;, as shown in the trace : DEBUG - UrlResourceStream - cannot convert url: http://myserver/maxminservlet?id=0001amp;periodes=1st;1a; to file (URI scheme is not file), falling back to the inputstream for polling This alters my servlet's behaviour, is there a mean to avoid this substitution ? 2/ Is it possible to catch the content of the include, and so possibly modify it before it is actually displayed in my Wicket page ? Thanks for your help Landry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/2-questions-on-Include-tp19036146p19041450.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/2-questions-on-Include-tp19036146p19045669.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/2-questions-on-Include-tp19036146p19052992.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
2 questions on Include
Hello, In my firm, we're currently using a homegrown component-like framework, based on cgi-perl scripts calling servlets. I would like to prove my boss how smooth the transition towards Wicket could be. I'm trying to make a first step, replacing the perl scripts with Wicket, and calling the components (here servlets), with Include. But i have 2 problems : 1/ When i call a servlet that has several parameters, for example add(*new** *Include(maxMin,http://myserver/maxminservlet?id=0001periodes=1st;1a;;)); Wicket actually replaces with amp;, as shown in the trace : DEBUG - UrlResourceStream - cannot convert url: http://myserver/maxminservlet?id=0001amp;periodes=1st;1a; to file (URI scheme is not file), falling back to the inputstream for polling This alters my servlet's behaviour, is there a mean to avoid this substitution ? 2/ Is it possible to catch the content of the include, and so possibly modify it before it is actually displayed in my Wicket page ? Thanks for your help Landry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 questions on Include
Landry, 1 - setEscapeModelStrings(false) 2 - Subclass Include. Override onComponentTagBody and use importAsString() Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk landry soules wrote: Hello, In my firm, we're currently using a homegrown component-like framework, based on cgi-perl scripts calling servlets. I would like to prove my boss how smooth the transition towards Wicket could be. I'm trying to make a first step, replacing the perl scripts with Wicket, and calling the components (here servlets), with Include. But i have 2 problems : 1/ When i call a servlet that has several parameters, for example add(*new** *Include(maxMin,http://myserver/maxminservlet?id=0001periodes=1st;1a;;)); Wicket actually replaces with amp;, as shown in the trace : DEBUG - UrlResourceStream - cannot convert url: http://myserver/maxminservlet?id=0001amp;periodes=1st;1a; to file (URI scheme is not file), falling back to the inputstream for polling This alters my servlet's behaviour, is there a mean to avoid this substitution ? 2/ Is it possible to catch the content of the include, and so possibly modify it before it is actually displayed in my Wicket page ? Thanks for your help Landry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/2-questions-on-Include-tp19036146p19041450.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]