Why does my "HelloWorldPage" not work?

2013-02-17 Thread mike.hua
*HelloWorldPage.html:* *HelloWorldPage.java:* package myWicket; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; public class HelloWorldPage extends WebPage { private static final long serialVersionUID = 1L; public HelloWorldPage()

Re: Why does my "HelloWorldPage" not work?

2013-02-17 Thread mike.hua
Someone can help me? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656452.html Sent from the Users forum mailing list archive at Nabble.com. - To uns

回复: RE: Why does my "HelloWorldPage" not work?

2013-02-17 Thread mike.hua
ssage- From: mike.hua [mailto:[hidden email]] Sent: 18 February 2013 11:53 To: [hidden email] Subject: Re: Why does my "HelloWorldPage" not work? Someone can help me? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp46564

RE: Why does my "HelloWorldPage" not work?

2013-02-17 Thread mike.hua
The error message:*The requested resource () is not available.* Is my wicket project short of any jar files? My wicket project in Eclipse IDE: -- View this message in context: http://apache-wicket.1842946.n4.nabble.co

Re: Why does my "HelloWorldPage" not work?

2013-02-18 Thread mike.hua
Thank you for your help! I have changed param-value to "myWicket.HelloWorldApplication",and the error appears yet! In Server log,I can see the error messages below: *Exception starting filter HelloWorldApplication java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity at org.apach

Re: Why does my "HelloWorldPage" not work?

2013-02-18 Thread mike.hua
Is there any solutions without maven? Because I've never used it,and I am a new "Java Web" developer! Before using Java, I have used ASP.NET 2.0 for about 7 years. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656480.h

Re: Why does my "HelloWorldPage" not work?

2013-02-18 Thread mike.hua
Thanks! I have tried it,and the error still happens! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656481.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Why does my "HelloWorldPage" not work?

2013-02-18 Thread mike.hua
Thanks! I have tried it,and the error still happens! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656482.html Sent from the Users forum mailing list archive at Nabble.com. ---

Re: Why does my "HelloWorldPage" not work?

2013-02-18 Thread mike.hua
Thanks a lot! But now there are some errors in Tomcat server or GlassFish server. *In Tomcat:* Exception starting filter HelloWorldApplication java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils at org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize(ResourceM

Re: Why does my "HelloWorldPage" not work?

2013-02-18 Thread mike.hua
Thank you! But the "HelloWorld" demo is very simple,and it doesn't need some extra jar files! When I added the "velocity-1.7.jar" file,the above errors has happened. So I don't know what to do. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPa

Re: Why does my "HelloWorldPage" not work?

2013-02-18 Thread mike.hua
The code is in the front of the question! Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656497.html Sent from the Users forum mailing

Re: Why does my "HelloWorldPage" not work?

2013-02-18 Thread mike.hua
Paste the source code: *HelloWorldPage.html:* *HelloWorldPage.java:* package myWicket; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; public class HelloWorldPage extends WebPage { private static final long serialVersionUID = 1L;

Re: Why does my "HelloWorldPage" not work?

2013-02-18 Thread mike.hua
Thanks for Martin and Ernesto's help! I have done that,but other Errors happened! Tomcat Server: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].Standa

Re: Why does my "HelloWorldPage" not work?

2013-02-21 Thread mike.hua
Thanks for your suggestion! The simple page has run successfully with "slf4j-api-1.7.2.jar","wicket-core-6.5.0.jar","wicket-request-6.5.0.jar" and "wicket-util-6.5.0.jar". I 've learned more from the sample! Then, I would like to appreciate each one friend who has given me hands! Thanks again!

How to redirect an external web site and where is setRequestTarget method?

2013-03-03 Thread mike.hua
According to the web site: https://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html public void onSubmit() { // Make sure no output for the current cycle is ever sent. getRequestCycle().setRequestTarget(new RedirectRequestTarget("http://www.163.com";)); } I can'

Re: How to redirect an external web site and where is setRequestTarget method?

2013-03-04 Thread mike.hua
It is good to throw the RedirectToUrlException! @Override public void onSubmit() { RedirectToUrlException objRedirect; objRedirect = new RedirectToUrlException("http://www.163.com/";); throw objRedirect; } Thanks for Vineetsemwal and Stephen's help! -- View this message

How to make the link to a wicket page from an external website?

2013-04-26 Thread mike.hua
For example,there is a hyperlink in an ASP page, and I don't know how to set the href property to redirect the target wicket page. What shoud I do? Thanks a lot! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-make-the-link-to-a-wicket-page-from-an-external-

Re: How to make the link to a wicket page from an external website?

2013-04-26 Thread mike.hua
The wicket page is not home page. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-make-the-link-to-a-wicket-page-from-an-external-website-tp4658313p4658314.html Sent from the Users forum mailing list archive at Nabble.com.

Re: How to make the link to a wicket page from an external website?

2013-04-26 Thread mike.hua
Hi Martin, I can set the href property with "http://www.website.com/xxx.asp"; to redirect the ASP page. But this method is not fit for wicket! The target wicket has several "pages": Hello.html,Hello.java---Welcome Page RedirectPage.html,RedirectPage.java .. If I need to set the url in a browse

Re: How to make the link to a wicket page from an external website?

2013-04-26 Thread mike.hua
Oh,I know! The "BookmarkablePageLink" helped me! If I want to get the wicket page access url,I can use "http://website/wicket/bookmarkable/packageName.TargetPageClass";! Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-make-the-link-to-a-wicket-page-f

How to add component without html wicket:id?

2013-10-05 Thread mike.hua
I want to add a component in wicket page without to write a wicket:id into html page. The types and numbers of the components are arbitrary, and will be determined in the program code. May I have any solutions? Thanks a lot! -- View this message in context: http://apache-wicket.1842946.n4.na

Re: How to add component without html wicket:id?

2013-10-06 Thread mike.hua
Thanks a lot for Francois & Paul's help. I'll learn about it and have a try! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-add-component-without-html-wicket-id-tp4661717p4661726.html Sent from the Users forum mailing list archive at Nabble.com.

How to set the page title?

2013-11-13 Thread mike.hua
Dear All: Can I change the page title(*set ".." between head tag*) in java code? What shoul I do? Thanks a lot!Mike -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-set-the-page-title-tp4662372.html Sent from the Users forum mailing list archive at Nabbl

Re: How to set the page title?

2013-11-13 Thread mike.hua
Dear Ernesto: *My page extends a parent container.*When I code that,the Exception happened. Sorry, I've forgotten to say that. Mike The error message is "Last cause: The component(s) below failed to render. Possible reasons could be that: 1) you have added a component in code but forgot to ref

Re: How to set the page title?

2013-11-13 Thread mike.hua
Here is the related codes: Child page html: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; xmlns:wicket="http://wicket.apache.org";> *Login Page* *

Re: How to set the page title?

2013-11-13 Thread mike.hua
*make getTitle() abstract and override it on extensions*?? Sorry, In 6.x API, I can't find *getTitle()* in WebPage's functions. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-set-the-page-title-tp4662372p4662381.html Sent from the Users forum mailing list arc

Re: How to set the page title?

2013-11-13 Thread mike.hua
OK, the problem is resolved with your opinion. Thank you for your help! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-set-the-page-title-tp4662372p4662383.html Sent from the Users forum mailing list archive at Nabble.com. ---