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

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

Re: How to set the page title?

2013-11-13 Thread mike.hua
Here is the related codes: Child page html: ?xml version=1.0 encoding=utf-8 ? !DOCTYPE html PUBLIC quot;-//W3C//DTD XHTML 1.0 Transitional//ENquot; quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdquot; html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.apache.org;

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

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.

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 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:

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:

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 browser

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:

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 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't

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! --

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

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:

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

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:

Re: Why does my HelloWorldPage not work?

2013-02-18 Thread mike.hua
http://apache-wicket.1842946.n4.nabble.com/file/n4656497/WicketError.png 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

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

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

2013-02-17 Thread mike.hua
Message- 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-tp4656451p4656452

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: http://apache-wicket.1842946.n4.nabble.com/file/n4656455/WicketError.png -- View this message in context: