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 Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 reference it in the markup (thus the component will never be
rendered), 2) if your components were added in a parent container then make
sure the markup for the child container includes them in wicket:extend.1.
[Component id = pageTitle]



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-set-the-page-title-tp4662372p4662377.html
Sent from the Users forum 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: 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;
head
*title wicket:id=pageTitleLogin Page/title*
meta http-equiv=Content-Type content=text/html; charset=UTF-8
/
meta name=viewport content=width=device-width /
/head
body
*wicket:extend
div style=margin:auto;text-align:center;width:40%;
form id=loginForm method=post
fieldset id=login
legend Login/legend
Username: input type=text id=username /br /
Password: input type=password id=password /
div
input type=submit name=login value=login
/
/div
/fieldset
/form
/div
/wicket:extend*
/body
/html

Child page code:
/*
 * To change this license header, choose License Headers in Project
Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package my_wicket;

import org.apache.wicket.markup.html.basic.Label;

/**
 *
 * @author mike
 */
public class ExtendsTemplatePage extends Template {

public ExtendsTemplatePage() {
//Label pageTitle = new Label(pageTitle, Login Page);
//this.add(pageTitle);
}

@Override
protected void onInitialize() {
super.onInitialize();
   * Label pageTitle = new Label(pageTitle, Login Page);
this.add(pageTitle);*
}
}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-set-the-page-title-tp4662372p4662380.html
Sent from the Users forum 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: 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 archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.nabble.com/How-to-add-component-without-html-wicket-id-tp4661717.html
Sent from the Users forum 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



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-website-tp4658313.html
Sent from the Users forum 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: 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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 to access the RedirectPage directly.

http://www.website.com/packageName.RedirectPage; would cause 404
exception.

I wonder what is the url in the browser!!
Thanks.




--
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-tp4658313p4658335.html
Sent from the Users forum 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: 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-from-an-external-website-tp4658313p4658336.html
Sent from the Users forum 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: 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 in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-redirect-an-external-web-site-and-where-is-the-setRequestTarget-method-tp4656924p4656963.html
Sent from the Users forum 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



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 find the method setRequestTarget under getRequestCycle().

What's the matter?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-redirect-an-external-web-site-and-where-is-setRequestTarget-method-tp4656924.html
Sent from the Users forum 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: 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!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656664.html
Sent from the Users forum 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: 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.apache.wicket.velocity.Initializer.init(Initializer.java:61)
at org.apache.wicket.Application.initInitializers(Application.java:612)
at 
org.apache.wicket.Application.initializeComponents(Application.java:521)
at org.apache.wicket.Application.initApplication(Application.java:817)
at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:409)
at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:336)
at
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:107)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException:
org.apache.velocity.app.Velocity
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)*



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656477.html
Sent from the Users forum 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: 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.html
Sent from the Users forum 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: 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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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(ResourceManagerImpl.java:161)
at
org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager(RuntimeInstance.java:730)
at
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:263)
at
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:646)
at
org.apache.velocity.runtime.RuntimeSingleton.init(RuntimeSingleton.java:226)
at org.apache.velocity.app.Velocity.init(Velocity.java:97)
at org.apache.wicket.velocity.Initializer.init(Initializer.java:61)
at org.apache.wicket.Application.initInitializers(Application.java:612)
at 
org.apache.wicket.Application.initializeComponents(Application.java:521)
at org.apache.wicket.Application.initApplication(Application.java:817)
at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:409)
at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:336)
at
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:107)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.lang.StringUtils
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)

*In GlassFish server log:*
WebModule[/MyFirstWicket]PWC1270: Exception starting filter
HelloWorldApplication
java.lang.NoSuchMethodError:
org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
at
org.apache.wicket.protocol.http.WicketFilter.clinit(WicketFilter.java:64)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:307)
at
com.sun.enterprise.web.WebContainer.createFilterInstance(WebContainer.java:745)
at
com.sun.enterprise.web.WebModule.createFilterInstance(WebModule.java:1972)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:253)
at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:120)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4685)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5377)
at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2018)
at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
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: 
http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656489.html
Sent from the Users forum 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: 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 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: 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;

public HelloWorldPage() {
add(new Label(message, Hello World using Wicket!!));
}
}

*HelloWorldApplication.java:*
package myWicket;

import org.apache.wicket.Page;
import org.apache.wicket.protocol.http.WebApplication;

public class HelloWorldApplication extends WebApplication {
public HelloWorldApplication() {
}

@Override
public Class? extends Page getHomePage() {
return HelloWorldPage.class;
}
}

*web.xml:*
?xml version=1.0 encoding=UTF-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd;
id=WebApp_ID version=3.0
display-nameMyFirstWicket/display-name
filter
filter-nameHelloWorldApplication/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name

param-valuemyWicket.HelloWorldApplication/param-value
/init-param
/filter
filter-mapping
filter-nameHelloWorldApplication/filter-name
url-pattern/*/url-pattern
/filter-mapping
welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
/welcome-file-list
/web-app



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656498.html
Sent from the Users forum 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: 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].StandardContext[/MyFirstWicket]]
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/MyFirstWicket]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 7 more
Caused by: java.lang.NoClassDefFoundError: Lorg/slf4j/Logger;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2308)
at java.lang.Class.getDeclaredFields(Class.java:1760)
at
org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
at
org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:261)
at
org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:110)
at
org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:66)
at
org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:405)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Caused by: java.lang.ClassNotFoundException: org.slf4j.Logger
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
... 21 more

http://apache-wicket.1842946.n4.nabble.com/file/n4656532/WicketError.png 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656532.html
Sent from the Users forum 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



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() {
add(new Label(message, Hello World using Wicket!!));
}
}

*HelloWorldApplication.java:*
package myWicket;

import org.apache.wicket.Page;
import org.apache.wicket.protocol.http.WebApplication;

public class HelloWorldApplication extends WebApplication {
public HelloWorldApplication() {
}

@Override
public Class? extends Page getHomePage() {
return HelloWorldPage.class;
}
}

*web.xml:*
?xml version=1.0 encoding=UTF-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd;
id=WebApp_ID version=3.0
display-nameMyFirstWicket/display-name
filter
filter-nameHelloWorldApplication/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name

param-valueorg.apache.wicket.examples.helloworld.HelloWorldApplication/param-value
/init-param
/filter
filter-mapping
filter-nameHelloWorldApplication/filter-name
url-pattern/*/url-pattern
/filter-mapping
welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
/welcome-file-list
/web-app

The Server Error:*The requested resource () is not available.*

Here is my Eclipse settings:
WicketError.png
http://apache-wicket.1842946.n4.nabble.com/file/n4656451/WicketError.png  

What's wrong with the simple wicket program?
Thanks a lot!

Note:
I'm a new wicket developer,and I'm eager for your help!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451.html
Sent from the Users forum 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: 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 unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

2013-02-17 Thread mike.hua
 SemiHidden=false
   UnhideWhenUsed=false Name=Colorful Grid Accent 6/
  w:LsdException Locked=false Priority=19 SemiHidden=false
   UnhideWhenUsed=false QFormat=true Name=Subtle Emphasis/
  w:LsdException Locked=false Priority=21 SemiHidden=false
   UnhideWhenUsed=false QFormat=true Name=Intense Emphasis/
  w:LsdException Locked=false Priority=31 SemiHidden=false
   UnhideWhenUsed=false QFormat=true Name=Subtle Reference/
  w:LsdException Locked=false Priority=32 SemiHidden=false
   UnhideWhenUsed=false QFormat=true Name=Intense Reference/
  w:LsdException Locked=false Priority=33 SemiHidden=false
   UnhideWhenUsed=false QFormat=true Name=Book Title/
  w:LsdException Locked=false Priority=37 Name=Bibliography/
  w:LsdException Locked=false Priority=39 QFormat=true Name=TOC 
Heading/
 /w:LatentStyles
![endif]--!--[if gte mso 10]

 /* Style Definitions */
 table.MsoNormalTable
{mso-style-name:表格內文;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:;
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:Times New Roman,serif;}

![endif]--I'm a new Wicket(also Java) user!Is my project short of any jar 
files?Here is my wicket project in the Eclipse Environment: - 原文 - 发件人: 
Colin Rogers [via Apache Wicket] 主 题: RE: Why does my HelloWorldPage not 
work?时 间: 2013年2月18日  09:22:09Hi Mike,
Before people/I can help you; what is the error you are getting?
Also, have you tried using the Maven Quickstart/ Wicket project archetype - 
they are incredibly useful in creating a base for a Wicket project?
Cheers,
Col.
-Original 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.htmlSent
 from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
EMAIL DISCLAIMER This email message and its attachments are confidential and 
may also contain copyright or privileged material. If you are not the intended 
recipient, you may not forward the email or disclose or use the information 
contained in it. If you have received this email message in error, please 
advise the sender immediately by replying to this email and delete the message 
and any associated attachments. Any views, opinions, conclusions, advice or 
statements expressed in this email message are those of the individual sender 
and should not be relied upon as the considered view, opinion, conclusions, 
advice or statement of this company except where the sender expressly, and with 
authority, states them to be the considered view, opinion, conclusions, advice 
or statement of this company. Every care is taken but we recommend that you 
scan any attachments for viruses.
-
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

If you reply to this email, your message will be added to the discussion below:
http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656453.html



To unsubscribe from Why does my HelloWorldPage not work?, 
click here.NAML




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/RE-Why-does-my-HelloWorldPage-not-work-tp4656454.html
Sent from the Users forum 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: 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: 
http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656455.html
Sent from the Users forum 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