Re: how to get domain name
Thx, folks. Helped a lot... Good day... On Thu, Mar 4, 2010 at 10:04 AM, Jeremy Thomerson wrote: > from the httpservletrequest > > http://www.jguru.com/faq/view.jsp?EID=734942 > > note that if you use mod_proxy with apache, this may not work > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Thu, Mar 4, 2010 at 12:01 PM, Gw wrote: > >> Hi all, >> >> I've searched around to no avail for an example on how to get the >> domain name of the server where the wicket application runs on. >> Can anybody help with this? >> Lots of thanks in advance >> >> Regards, >> >> Mike >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: image from outside web application directory
I believe so, Riyad. Anyway, you guys did a great job at Wicket. 2 thumbs up. Thx a lot, bro... Good day.. On 3/5/10, Riyad Kalla wrote: > GW, > > Good pt... at the least it should probably be in the Wiki. I think it's just > an issue of one of the leads not having time to go through it's impl and > figure out if it should go in or not? I'm sure there are probably a few > different ways to write such a component. > > -R > > On Thu, Mar 4, 2010 at 10:55 AM, Gw wrote: > >> Hi Riyad n Ernesto, >> >> Thx a lot for your help. >> I've found the solution among those search results. >> The class name is FileResource. >> Quite simple, yet I wonder why the class isn't included in Wicket, >> bcoz it's a common need. >> Many thanks for the clues... >> GBU >> >> >> On Tue, Mar 2, 2010 at 10:06 PM, Riyad Kalla wrote: >> > Mike, >> > >> > The solution is writing a wicket component that finds the image on-disk >> and >> > streams the bits back to the browser. Try these search results: >> > >> http://old.nabble.com/forum/Search.jtp?forum=13974&local=y&query=dynamic+image >> > >> > < >> http://old.nabble.com/forum/Search.jtp?forum=13974&local=y&query=dynamic+image >> >and >> > these: >> > >> http://old.nabble.com/forum/Search.jtp?query=image+on+disk&local=y&forum=13974&daterange=0&startdate=&enddate= >> > >> > < >> http://old.nabble.com/forum/Search.jtp?query=image+on+disk&local=y&forum=13974&daterange=0&startdate=&enddate= >> >Your >> > answer is in there somewhere. The thread recently (3 weeks ago?) about >> > it >> > was pretty long and someone pasted a complete impl that they were using >> that >> > folks said worked great. I just don't recall the class name otherwise >> > I'd >> > search for it :) >> > >> > -R >> > >> > On Tue, Mar 2, 2010 at 4:46 AM, Gw wrote: >> > >> >> Hi all, >> >> >> >> I'd like to know how to display an image which is located outside web >> >> application directory (eg: C:\images) . >> >> Many thanks in advance for your assists. >> >> >> >> Regards, >> >> Mike >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
how to get domain name
Hi all, I've searched around to no avail for an example on how to get the domain name of the server where the wicket application runs on. Can anybody help with this? Lots of thanks in advance Regards, Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: image from outside web application directory
Hi Riyad n Ernesto, Thx a lot for your help. I've found the solution among those search results. The class name is FileResource. Quite simple, yet I wonder why the class isn't included in Wicket, bcoz it's a common need. Many thanks for the clues... GBU On Tue, Mar 2, 2010 at 10:06 PM, Riyad Kalla wrote: > Mike, > > The solution is writing a wicket component that finds the image on-disk and > streams the bits back to the browser. Try these search results: > http://old.nabble.com/forum/Search.jtp?forum=13974&local=y&query=dynamic+image > > <http://old.nabble.com/forum/Search.jtp?forum=13974&local=y&query=dynamic+image>and > these: > http://old.nabble.com/forum/Search.jtp?query=image+on+disk&local=y&forum=13974&daterange=0&startdate=&enddate= > > <http://old.nabble.com/forum/Search.jtp?query=image+on+disk&local=y&forum=13974&daterange=0&startdate=&enddate=>Your > answer is in there somewhere. The thread recently (3 weeks ago?) about it > was pretty long and someone pasted a complete impl that they were using that > folks said worked great. I just don't recall the class name otherwise I'd > search for it :) > > -R > > On Tue, Mar 2, 2010 at 4:46 AM, Gw wrote: > >> Hi all, >> >> I'd like to know how to display an image which is located outside web >> application directory (eg: C:\images) . >> Many thanks in advance for your assists. >> >> Regards, >> Mike >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
image from outside web application directory
Hi all, I'd like to know how to display an image which is located outside web application directory (eg: C:\images) . Many thanks in advance for your assists. Regards, Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: color of message
OK, thx for your help, Cemal. Will try it right away... GBU On Tue, Feb 23, 2010 at 4:31 AM, Cemal Bayramoglu wrote: > Mike, > > Use CSS. > > eg on feedback errors, Wicket puts class="feedbackPanelERROR" > > Regards - Cemal > jWeekend > OO & Java Technologies, Wicket > Consulting, Development, Training > http://jWeekend.com > > On 23 February 2010 12:27, Gw wrote: >> Hi, folks... >> >> Does anyone know how to change the color of feedback messages, say: red for >> errors, green for info, etc... >> Many thanks before... >> >> Mike >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
color of message
Hi, folks... Does anyone know how to change the color of feedback messages, say: red for errors, green for info, etc... Many thanks before... Mike
Re: feedback messages
Thanks for ur help, Marco... :) GBU. On Mon, Nov 30, 2009 at 6:04 PM, Marco Mancini wrote: > Hi, > > Usualy i use this code: > > > .getFeedbackMessagesModel().setObject(null); > target.addComponent(); > > > but i don't know if is it the right solution > > ^_^ > > Marco > > 2009/11/30 Gw > > > Hi all, > > > > Anybody knows how to prevent feedback messages from being cleaned up when > > an > > Ajax Link (IndicatingAjaxFallbackLink) is clicked? > > Thanx for your help. > > > > Regards, > > Mike > > >
feedback messages
Hi all, Anybody knows how to prevent feedback messages from being cleaned up when an Ajax Link (IndicatingAjaxFallbackLink) is clicked? Thanx for your help. Regards, Mike
WWB and Wizard
Hi guys, I'm using Wicket Web Beans (WWB) and trying to create a wizard from it. I wonder if it's possible to use WWB's action buttons as wizard buttons (Prev, Next, etc)? Or calling WWB's validation from Wicket's Wizard, because I found that Wicket's Wizard doesn't trigger WWB's validation. Many thanks in advance. Warm Regards, Mike
Re: dynamic components
Hi, thanks for ur help, folks... I'm currently looking at the WicketWebBeans project. Seems promising on this issue. On Sun, Nov 8, 2009 at 4:35 AM, Igor Vaynberg wrote: > this should give you a very decent starting point > > > https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/attic/wicketstuff-crud/ > > -igor > > On Sat, Nov 7, 2009 at 5:38 AM, Gw wrote: > > Hi people, > > > > Does anyone know how to dynamically add components to a form? > > The types and numbers of the components are arbitrary, and will be > > determined programmatically. > > In one page, the form may contain 1 textbox, 2 buttons. In another page, > it > > may contain 2 textareas, 1 checkbox, and so on... > > > > Perhaps there's a framework over Wicket for this? > > Lots of thanks in advance for ur assist. > > > > Regards, > > Mike > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: dynamic components
Let's say... an XML file containing screen configuration file will determine the form's content. On Sat, Nov 7, 2009 at 9:30 PM, James Carman wrote: > What determines which components will be on the form? > > On Sat, Nov 7, 2009 at 8:38 AM, Gw wrote: > > Hi people, > > > > Does anyone know how to dynamically add components to a form? > > The types and numbers of the components are arbitrary, and will be > > determined programmatically. > > In one page, the form may contain 1 textbox, 2 buttons. In another page, > it > > may contain 2 textareas, 1 checkbox, and so on... > > > > Perhaps there's a framework over Wicket for this? > > Lots of thanks in advance for ur assist. > > > > Regards, > > Mike > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
dynamic components
Hi people, Does anyone know how to dynamically add components to a form? The types and numbers of the components are arbitrary, and will be determined programmatically. In one page, the form may contain 1 textbox, 2 buttons. In another page, it may contain 2 textareas, 1 checkbox, and so on... Perhaps there's a framework over Wicket for this? Lots of thanks in advance for ur assist. Regards, Mike
Re: Is wicket really compatible with Tomcat?
Hi, Jemery, thx for your sincere support. I've figured out the cause, which is because I copied all the jars to the lib folder (including source and javadoc jars). Never crossed my mind that those additional jars can be problems. Probably the HTML pages in javadoc jars conflict with the app's, if I may guess. Thx a lot for your enlightment anyway. BTW, is jetty powerful enough for production? Do I have to reRun the app (restart Jetty) to make a change effective everytime I update a class? Thx n Regards, Gw On Tue, Oct 6, 2009 at 10:52 PM, Jeremy Thomerson wrote: > Hundreds if not thousands of Wicket applications are deployed on Tomcat. > The error describes a problem in your HTML - not sure why it would only > appear in Tomcat unless the file was mangled during deployment. Please > post > the contents of the HTML file that supposedly has a mismatched tag. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Tue, Oct 6, 2009 at 10:48 AM, Gw wrote: > > > Hi, > > > > I'm a newbie in Wicket. > > I use Databinder toolkit (wicket+hibernate) to help me develop DB > > application rapidly. > > With the built-in Jetty, the development is quite smooth, however, when > > trying to run my app on Tomcat 5.5 (Java 5), I faced the following error. > I > > wonder if wicket is really compatible with Tomcat, since there's no > problem > > when running from eclipse (Jetty). > > > > > > > > HREF="../../../../../../org/apache/wicket/markup/html/pages/BrowserInfoPage.html" > > title="class in org.apache.wicket.markup.html.pages">PREV > > CLASS > > > > HREF="../../../../../../org/apache/wicket/markup/html/pages/InternalErrorPage.html" > > title="class in org.apache.wicket.markup.html.pages">NEXT > > CLASS > > > >> > HREF="../../../../../../index.html?org/apache/wicket/markup/html/pages/ExceptionErrorPage.html" > > target="_top">FRAMES > > NO > FRAMES > > > > > > <!-- > > if(window==top) { > > document.writeln('<A > > HREF="../../../../../../allclasses-noframe.html"><B>All > Classes</B></A>'); > > } > > //--> > > > > > > All > > Classes > > > > > > > > > > > > > > > > SUMMARY: > > HREF="#nested_classes_inherited_from_class_org.apache.wicket.Page">NESTED | > > HREF="#fields_inherited_from_class_org.apache.wicket.Page">FIELD | > HREF="#constructor_summary">CONSTR | > HREF="#method_summary">METHOD > > > > DETAIL: FIELD | > HREF="#constructor_detail">CONSTR | > HREF="#method_detail">METHOD > > > > > > > > > > > > > > Copyright © 2004-2008 http://apache.org";>Apache Software > > Foundation. All Rights Reserved. > > > > > > , index = 4, current = [Raw markup]] > > at > > org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:393) > > at org.apache.wicket.markup.MarkupParser.parse(MarkupParser.java:270) > > at > > > org.apache.wicket.markup.loader.SimpleMarkupLoader.loadMarkup(SimpleMarkupLoader.java:52) > > at > > > org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:62) > > at > > > org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55) > > at > > org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:458) > > at > > > org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:553) > > at > org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:319) > > at > > > org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215) > > at > > > org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:343) > > at org.apache.wicket.Page.onRender(Page.java:1463) > > at org.apache.wicket.Component.render(Component.java:2317) > > at org.apache.wicket.Page.renderPage(Page.java:904) > > at > > > org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63) > > at > > > org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) > > at org.apache.wicket.RequestCycle.respond(RequestCycle.java:1190) >
Is wicket really compatible with Tomcat?
markup.parser.filter.HeadForceTagIdHandler.nextTag(HeadForceTagIdHandler.java:77) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.OpenCloseTagExpander.nextTag(OpenCloseTagExpander.java:51) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.EnclosureHandler.nextTag(EnclosureHandler.java:76) at org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler.nextTag(RelativePathPrefixHandler.java:116) at org.apache.wicket.markup.MarkupParser.getNextTag(MarkupParser.java:302) at org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:322) ... 34 more I cut the preceeding HTML (before the stack trace) since it's really long, which to my surprise, when I saved it as an html file, it's apparently a javadoc page for class ExceptionErrorPage (attached). What's wrong actually? Lots of thanks for your help, Gw - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Hi, I'm a newbie in Wicket. I use Databinder toolkit (wicket+hibernate) to help me develop DB application rapidly. With the built-in Jetty, the development is quite smooth, however, when trying to run my app on Tomcat 5.5 (Java 5), I faced the following error. I wonder if wicket is really compatible with Tomcat, since there's no problem when run it from eclipse (Jetty). PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD Copyright © 2004-2008 http://apache.org";>Apache Software Foundation. All Rights Reserved. , index = 4, current = [Raw markup]] at org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:393) at org.apache.wicket.markup.MarkupParser.parse(MarkupParser.java:270) at org.apache.wicket.markup.loader.SimpleMarkupLoader.loadMarkup(SimpleMarkupLoader.java:52) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:62) at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55) at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:458) at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:553) at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:319) at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215) at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:343) at org.apache.wicket.Page.onRender(Page.java:1463) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.Page.renderPage(Page.java:904) at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.respond(RequestCycle.java:1190) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1257) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) Caused by: java.text.ParseException: Tag '' (line 101, column 1) has a mismatched close tag at '' (line 102, column 1) at org.apache.wicket.markup.parser.filter.HtmlHandler.nextTag(HtmlHandler.java:144) at org.apache.wicket.markup.parser.filter.WicketRemoveTagHandler.nextTag(WicketRemoveTagHandler.java:60) at org.apache.wicket.markup.parser.filter.WicketLinkTagHandler.nextTag(WicketLinkTagHandler.java:94) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.WicketNamespaceHandler.nextTag(WicketNamespaceHandler.java:72) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.WicketMessageTagHandler.nextTag(WicketMessageTagHandler.java:81) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.HtmlHeaderSectionHandler.nextTag(HtmlHeaderSectionHandler.java:77) at org.apache.wicket.markup.parser.filter.HeadForceTagIdHandler.nextTag(HeadForceTagIdHandler.java:77) at org.apache.wicket.markup.par