[Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Otan

having my code refactored to use ResourceStreamFactory (from using
ResourceStreamLocator before), my program no longer works and I now receive
a MarkupNotFoundException. Could someone clarify to me how is the proper use
of ResourceStreamFactory and what new things to understand regarding custom
markup loading.

Thanks.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Juergen Donnerstag
Please see CustomResourceStreamFactory in the custom resource loading
examples for how it works, or OsgiResourceStreamFactory as another
example. You simply extend ResourceStreamFactory, subclass the
appropriate locate() method (you usually must not forget to call
super.locate()) and register your factory with the resource settings.
Thats it.

Just out of curiosity, what are you using it for? How and why did you
change/extend the default behavior?

Juergen

On 1/14/07, Otan [EMAIL PROTECTED] wrote:
 having my code refactored to use ResourceStreamFactory (from using
 ResourceStreamLocator before), my program no longer works and I now receive
 a MarkupNotFoundException. Could someone clarify to me how is the proper use
 of ResourceStreamFactory and what new things to understand regarding custom
 markup loading.

 Thanks.

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] API break for 1.3 and 2.0: Session constructor

2007-01-14 Thread Martijn Dashorst
On 1/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 * Method WebApplication#newSession is made final and will be removed
 in the near future. Instead, use WebApplication#newSession.

So don't use WebApplication#newSession, but use WebApplication#newSession?

Martijn
-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] API break for 1.3 and 2.0: Session constructor

2007-01-14 Thread Frank Bille

On 1/14/07, Martijn Dashorst [EMAIL PROTECTED] wrote:


On 1/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 * Method WebApplication#newSession is made final and will be removed
 in the near future. Instead, use WebApplication#newSession.

So don't use WebApplication#newSession, but use WebApplication#newSession?



Yeah, whats so difficult to understand? It makes sense. And it's easy to
migrate.

Frank
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] TextFilteredPropertyColumn and a date value

2007-01-14 Thread kurt heston
I'm trying to create a filter that allows the user to enter a date on 
which to filter.  It works fine when a valid date string is input.  
However, invalid dates generate a conversion exception.

Do I need to create a brand new class that overrides 
FilteredPropertyColumn to get this to work?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] API break for 1.3 and 2.0: Session constructor

2007-01-14 Thread Johan Compagner

Yeah that doesn't look to difficult ;)

On 1/14/07, Martijn Dashorst [EMAIL PROTECTED] wrote:


On 1/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 * Method WebApplication#newSession is made final and will be removed
 in the near future. Instead, use WebApplication#newSession.

So don't use WebApplication#newSession, but use WebApplication#newSession?

Martijn
--
Vote for Wicket at the
http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] API break for 1.3 and 2.0: Session constructor

2007-01-14 Thread Korbinian Bachl
Sorry, I dont understand either.
 
We are told not to use a but use a instead???
 
I dont get this


  _  

Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Frank
Bille
Gesendet: Sonntag, 14. Januar 2007 13:06
An: wicket-user@lists.sourceforge.net
Betreff: Re: [Wicket-user] API break for 1.3 and 2.0: Session constructor


On 1/14/07, Martijn Dashorst [EMAIL PROTECTED] wrote: 


On 1/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 * Method WebApplication#newSession is made final and will be removed
 in the near future. Instead, use WebApplication#newSession. 

So don't use WebApplication#newSession, but use WebApplication#newSession?



Yeah, whats so difficult to understand? It makes sense. And it's easy to
migrate.

Frank


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] API break for 1.3 and 2.0: Session constructor

2007-01-14 Thread Martijn Dashorst
On 1/14/07, Frank Bille [EMAIL PROTECTED] wrote:
 Yeah, whats so difficult to understand? It makes sense. And it's easy to
 migrate.

Yeah stupid me... I just feel sympathy for the compiler. Has to
generate a warning and then discard it immediately. This is what
creates serial killer compilers.

Martijn

-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How to do a table with cell specific background image and image ?

2007-01-14 Thread ZedroS Schwart
Hi all

I'm new to wicket and I'm looking for creating a table where each cell
would have a specific background image and, as a content, a specific
image with a link upon it.

What's the best way to do it in Wicket ? I've started looking at
SimpleViewList but I'm not so sure it's the right thing to do !

Thanks in advance
ZedroS

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Jonathan Locke


juergen, if it's a factory, shouldn't it be newResourceStream?


Juergen Donnerstag wrote:
 
 Please see CustomResourceStreamFactory in the custom resource loading
 examples for how it works, or OsgiResourceStreamFactory as another
 example. You simply extend ResourceStreamFactory, subclass the
 appropriate locate() method (you usually must not forget to call
 super.locate()) and register your factory with the resource settings.
 Thats it.
 
 Just out of curiosity, what are you using it for? How and why did you
 change/extend the default behavior?
 
 Juergen
 
 On 1/14/07, Otan [EMAIL PROTECTED] wrote:
 having my code refactored to use ResourceStreamFactory (from using
 ResourceStreamLocator before), my program no longer works and I now
 receive
 a MarkupNotFoundException. Could someone clarify to me how is the proper
 use
 of ResourceStreamFactory and what new things to understand regarding
 custom
 markup loading.

 Thanks.

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/from-ResourceStreamLocator-to-ResourceStreamFactory-in-Wicket-trunk-tf2992367.html#a8359550
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Jonathan Locke


juergen, if it's a factory, shouldn't it be newResourceStream?


Juergen Donnerstag wrote:
 
 Please see CustomResourceStreamFactory in the custom resource loading
 examples for how it works, or OsgiResourceStreamFactory as another
 example. You simply extend ResourceStreamFactory, subclass the
 appropriate locate() method (you usually must not forget to call
 super.locate()) and register your factory with the resource settings.
 Thats it.
 
 Just out of curiosity, what are you using it for? How and why did you
 change/extend the default behavior?
 
 Juergen
 
 On 1/14/07, Otan [EMAIL PROTECTED] wrote:
 having my code refactored to use ResourceStreamFactory (from using
 ResourceStreamLocator before), my program no longer works and I now
 receive
 a MarkupNotFoundException. Could someone clarify to me how is the proper
 use
 of ResourceStreamFactory and what new things to understand regarding
 custom
 markup loading.

 Thanks.

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/from-ResourceStreamLocator-to-ResourceStreamFactory-in-Wicket-trunk-tf2992367.html#a8359551
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Juergen Donnerstag
May be. The reason why I didnt change it is because we are still
searching for the resource by iterating over (component hierarchy),
class hierarchy, style, variation, locale and sometime extensions and
only if the find the resource we create a resource stream for it. Not
sure which I like better newResourceStream() or locate(). Should, from
a convention point of view, all factories should have newXXX methods?
Or maybe I shouldnt have changed the class name from xxxLocator to
xxxFactory.

Juergen

On 1/14/07, Jonathan Locke [EMAIL PROTECTED] wrote:


 juergen, if it's a factory, shouldn't it be newResourceStream?


 Juergen Donnerstag wrote:
 
  Please see CustomResourceStreamFactory in the custom resource loading
  examples for how it works, or OsgiResourceStreamFactory as another
  example. You simply extend ResourceStreamFactory, subclass the
  appropriate locate() method (you usually must not forget to call
  super.locate()) and register your factory with the resource settings.
  Thats it.
 
  Just out of curiosity, what are you using it for? How and why did you
  change/extend the default behavior?
 
  Juergen
 
  On 1/14/07, Otan [EMAIL PROTECTED] wrote:
  having my code refactored to use ResourceStreamFactory (from using
  ResourceStreamLocator before), my program no longer works and I now
  receive
  a MarkupNotFoundException. Could someone clarify to me how is the proper
  use
  of ResourceStreamFactory and what new things to understand regarding
  custom
  markup loading.
 
  Thanks.
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context: 
 http://www.nabble.com/from-ResourceStreamLocator-to-ResourceStreamFactory-in-Wicket-trunk-tf2992367.html#a8359551
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Jonathan Locke


juergen, if it's a factory, shouldn't it be newResourceStream?


Juergen Donnerstag wrote:
 
 Please see CustomResourceStreamFactory in the custom resource loading
 examples for how it works, or OsgiResourceStreamFactory as another
 example. You simply extend ResourceStreamFactory, subclass the
 appropriate locate() method (you usually must not forget to call
 super.locate()) and register your factory with the resource settings.
 Thats it.
 
 Just out of curiosity, what are you using it for? How and why did you
 change/extend the default behavior?
 
 Juergen
 
 On 1/14/07, Otan [EMAIL PROTECTED] wrote:
 having my code refactored to use ResourceStreamFactory (from using
 ResourceStreamLocator before), my program no longer works and I now
 receive
 a MarkupNotFoundException. Could someone clarify to me how is the proper
 use
 of ResourceStreamFactory and what new things to understand regarding
 custom
 markup loading.

 Thanks.

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/from-ResourceStreamLocator-to-ResourceStreamFactory-in-Wicket-trunk-tf2992367.html#a8359799
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket-spring-examples 2.0 seem to be broken

2007-01-14 Thread De Soca

Hello,

I don't seem to be able to get wicket spring examples in 2.0 to run with the
latest from svn.

In addition the example does not use the WicketFilter.

Just wonder if no one has gotten around to it as yet or am I doing something
wrong.

I receive the following on startup:

2007-01-14 13:12:32,122 INFO wicket.protocol.http.WicketServlet -

2007-01-14 13:12:32,123 INFO wicket.protocol.http.WicketServlet -
DEPRECATED! Please use WicketFilter instead.
2007-01-14 13:12:32,123 INFO wicket.protocol.http.WicketServlet -

2007-01-14 13:12:32,123 WARN wicket.settings.Settings - A IComponentResolver
of type wicket.markup.resolver.ParentResolver has already been registered.
The new one will not be added
2007-01-14 13:12:32,124 WARN wicket.settings.Settings - A IComponentResolver
of type wicket.markup.resolver.MarkupInheritanceResolver has already been
registered. The new one will not be added
2007-01-14 13:12:32,124 WARN wicket.settings.Settings - A IComponentResolver
of type wicket.markup.resolver.WicketLinkResolver has already been
registered. The new one will not be added
2007-01-14 13:12:32,124 WARN wicket.settings.Settings - A IComponentResolver
of type wicket.markup.resolver.WicketHeaderResolver has already been
registered. The new one will not be added
2007-01-14 13:12:32,124 WARN wicket.settings.Settings - A IComponentResolver
of type wicket.markup.resolver.WicketMessageResolver has already been
registered. The new one will not be added
2007-01-14 13:12:32,124 WARN wicket.settings.Settings - A IComponentResolver
of type wicket.markup.resolver.FragmentResolver has already been registered.
The new one will not be added
2007-01-14 13:12:32,124 WARN wicket.settings.Settings - A IComponentResolver
of type wicket.markup.resolver.AutoComponentResolver has already been
registered. The new one will not be added
2007-01-14 13:12:32,125 WARN wicket.settings.Settings - A IComponentResolver
of type wicket.markup.resolver.AutoLinkResolver has already been registered.
The new one will not be added

When I attempt to load the first page I get the following:

javax.servlet.ServletException: Servlet.init() for servlet example threw
exception

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:613)
root cause

java.lang.NoClassDefFoundError
wicket.spring.common.web.AnnotApplication.init(AnnotApplication.java:27)
wicket.protocol.http.WicketFilter.init(WicketFilter.java:341)
wicket.protocol.http.WicketServlet.init(WicketServlet.java:166)
javax.servlet.GenericServlet.init(GenericServlet.java:211)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:613)

-- snip
-

And the class does not exist.

Thanks.

Cheers,
De.
-- 
View this message in context: 
http://www.nabble.com/wicket-spring-examples-2.0-seem-to-be-broken-tf3010200.html#a8360726
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Jonathan Locke


yeah, my feeling is that it should be newX if it's a factory method.
the purpose of a factory is to create something...


Juergen Donnerstag wrote:
 
 May be. The reason why I didnt change it is because we are still
 searching for the resource by iterating over (component hierarchy),
 class hierarchy, style, variation, locale and sometime extensions and
 only if the find the resource we create a resource stream for it. Not
 sure which I like better newResourceStream() or locate(). Should, from
 a convention point of view, all factories should have newXXX methods?
 Or maybe I shouldnt have changed the class name from xxxLocator to
 xxxFactory.
 
 Juergen
 
 On 1/14/07, Jonathan Locke [EMAIL PROTECTED] wrote:


 juergen, if it's a factory, shouldn't it be newResourceStream?


 Juergen Donnerstag wrote:
 
  Please see CustomResourceStreamFactory in the custom resource loading
  examples for how it works, or OsgiResourceStreamFactory as another
  example. You simply extend ResourceStreamFactory, subclass the
  appropriate locate() method (you usually must not forget to call
  super.locate()) and register your factory with the resource settings.
  Thats it.
 
  Just out of curiosity, what are you using it for? How and why did you
  change/extend the default behavior?
 
  Juergen
 
  On 1/14/07, Otan [EMAIL PROTECTED] wrote:
  having my code refactored to use ResourceStreamFactory (from using
  ResourceStreamLocator before), my program no longer works and I now
  receive
  a MarkupNotFoundException. Could someone clarify to me how is the
 proper
  use
  of ResourceStreamFactory and what new things to understand regarding
  custom
  markup loading.
 
  Thanks.
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
 share
  your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/from-ResourceStreamLocator-to-ResourceStreamFactory-in-Wicket-trunk-tf2992367.html#a8359551
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/from-ResourceStreamLocator-to-ResourceStreamFactory-in-Wicket-trunk-tf2992367.html#a8360805
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Changing localized labels after costructor

2007-01-14 Thread Igor Vaynberg

add(new Label(foo, new ResourceModel(header))) ?

-igor


On 1/14/07, Filippo Diotalevi [EMAIL PROTECTED] wrote:


Hi,
  maybe the question is a bit dumb, but I haven't found a definitive
answer.

I have a custom panel MyPanel which is added to a MyPage.
The component must use internally same labels whose values are
localized, and are to be found in MyPage.properties (because MyPanel
will be reused in different pages, and with different labels)
Now in the constructor of MyPanel I cannot find out which is the page
it belongs.. in fact  getParent() and getPage() are null (obviously,
this isn't a problem with wicket 2 where I have the parent in the
constructor)
The workaround I've found is to override the getModel method of the
labels... something like:

//this is the constructor of MyPanel
public MyPanel(String id, final BeanModel beanModel)
{
..super(id, beanModel);
..add(new Label(header, mybeanModel) {
public IModel getModel() {
..String localizedHeader = getLocalizer().getString(header,
getPage(), header);
..return new Model(localizedHeader);
}
});

It's a sort of 'late binding' of the label model.
Is this solution correct? are there any 'nasty' side effects I'm not aware
of?
Are there better solutions?

Thanks a lot

--
Filippo Diotalevi
[EMAIL PROTECTED]
http://www.diotalevi.com/weblog
http://www.jugmilano.it

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] API break for 1.3 and 2.0: Session constructor

2007-01-14 Thread Eelco Hillenius
Heh, sorry. I meant #newSession(Request) instead of #newSession()

Eelco


On 1/14/07, Frank Bille [EMAIL PROTECTED] wrote:
 On 1/14/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
  On 1/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
   * Method WebApplication#newSession is made final and will be removed
   in the near future. Instead, use WebApplication#newSession.
 
  So don't use WebApplication#newSession, but use WebApplication#newSession?
 

 Yeah, whats so difficult to understand? It makes sense. And it's easy to
 migrate.

 Frank

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] TextFilteredPropertyColumn and a date value

2007-01-14 Thread Igor Vaynberg

you need to specify the type in the textfield so the the conversion
exception is caught there.

new textfield(id, model, Date.class);

-igor


On 1/13/07, kurt heston [EMAIL PROTECTED] wrote:


I'm trying to create a filter that allows the user to enter a date on
which to filter.  It works fine when a valid date string is input.
However, invalid dates generate a conversion exception.

Do I need to create a brand new class that overrides
FilteredPropertyColumn to get this to work?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to do a table with cell specific background image and image ?

2007-01-14 Thread Igor Vaynberg

take a look at repeater examples in wicket-examples

-igor


On 1/13/07, ZedroS Schwart [EMAIL PROTECTED] wrote:


Hi all

I'm new to wicket and I'm looking for creating a table where each cell
would have a specific background image and, as a content, a specific
image with a link upon it.

What's the best way to do it in Wicket ? I've started looking at
SimpleViewList but I'm not so sure it's the right thing to do !

Thanks in advance
ZedroS

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Changing localized labels after costructor

2007-01-14 Thread Filippo Diotalevi
On 1/14/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 add(new Label(foo, new ResourceModel(header))) ?


Yeah, it was really that simple!
Thanks

-- 
 filippo

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Input Field background color change on validation

2007-01-14 Thread Cliff Pereira

Hello Mailinglist again,

I tried to implement a simple input field where you can e.g. enter your
username. Now I want to let the background of the textfield be red while it
is not valid. And if it's finally valid it should change to green (during
the input). My problem is, that I always loose the focus on the input field
on correct input. I guess it has something to do with the addComponent
method. Here is my code so far

final FormComponent usernameField;
   usernameField = new TextField(username, new PropertyModel(this,
username));
   usernameField.add(new AttributeModifier(class, true, new
PropertyModel(this, usernamevalid)));
   usernameField.setOutputMarkupId(true);

   //this works aswell with AjaxFormSubmitBehavior. I do not see the
difference yet.
   usernameField.add(new AjaxFormComponentUpdatingBehavior(onkeyup){

   @Override
   protected void onUpdate(AjaxRequestTarget target) {
   System.out.println(username);
   if (username.equals(Cliff)) {
   usernameField.add(new AttributeModifier(class, true,
new Model(valid)));
   target.addComponent(usernameField);
   }else {
   if (usernamevalid.equals(valid)) {
   usernameField.add(new AttributeModifier(class,
true, new Model(invalid)));
   target.addComponent(usernameField);
   }
   }
   }

   });
   add(usernameField);

Is there a way not to loose the focus?
Thank in advance!
Cliff

P.S.: usernamevalid could also be a boolean variable. But somehow I feel it
is not so nice code I produced here...
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax Behaviour on RadioChoice

2007-01-14 Thread Cliff Pereira

Hi Igor,

I found some strange behavior extending my code. The RadioChoice works
perfect now. It changes the label beneath it depending on the selection. But
now if I additionally add a RequiredTextField it won't change until
something is written into the textfield. Is that the intention of a
RequiredTextField? Because adding a simple TextField works fine.
I mean, if I for example have a form and on top the radioButtons. Somewhere
further on there might be a RequiredTextField, the RadioChoice won't work
until the user has written something into the textfield.

Regards
Cliff



2007/1/12, Cliff Pereira [EMAIL PROTECTED]:


Hi Igor,

thanks for the hint. This works perfect! I still don't no why it works
with the SubmitBehavior, because in my eyes it actually is a change and
therefore an update and not a submit, but thanks again. Can I use the same
thing for Input validation on an inputfield or something similar?

Cliff


2007/1/12, Igor Vaynberg [EMAIL PROTECTED]:

 im surprised your protected void onUpdate(AjaxRequestTarget target) is
 even called! try using AjaxFormSubmitBehavior instead of the
 formcomponentupdating one.

 -igor


 On 1/11/07, Cliff Pereira [EMAIL PROTECTED] wrote:
 
  ok, so far I managed to change the label without page reload. And
  without wantonselectionchangednotification!
  My only problem now is how do I know which of the three radio options
  is selected? Is there any way to determine that?
 
  Thanks in advance once again!
  Cliff
 
  2007/1/11, Igor Vaynberg  [EMAIL PROTECTED]:
  
   if he is using wantonselectionchangednotification he is not using
   ajax :)
  
   -igor
  
  
   On 1/11/07, Matej Knopp [EMAIL PROTECTED]  wrote:
   
I'm not wrong we don't support (yet) the ajax update on radio
selection.
   
-Matej
   
Cliff Pereira wrote:
 Hello Mailinglist,

 We just started a project using the wicket framework. It's
working so
 far and we want to add some AJAX behaviour to our project. But
nothing
 really works. I've made an example with a radio choice and a
label that
 should actually change it's content on selectionChange of the
radiochoice.
 So far I tried to solve it using different models or trying to
use DOM.
 I want to achieve that if morning is chosen the label shows
Good
 Morning, if then noon is chosen the label should switch to
Good Noon
 (or something similar) and same with evening.
 I'm really going mad by the time now. Searched the web but did
not find
 andy examples. Hopefully one of you has done this before or may
help me
 implementing it.

 Thanks alot in advance!

 Cliff







-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
to share your
 opinions on IT  business topics through brief surveys - and
earn cash


http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV





 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT  business topics through brief surveys - and earn
cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
   share your
   opinions on IT  business topics through brief surveys - and earn
   cash
  
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys - and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  

Re: [Wicket-user] Input Field background color change on validation

2007-01-14 Thread Martijn Dashorst
You make it very complicated :-)

final TextField uname = new TextField(username, ...).add(new
AttributeModifier(class, true, new Model() { public void
getObject(Component c) { return uname.isValid() ? valid : invalid;
} });

uname.add(new AjaxFormComponentUpdateBehavior(onblur) {
public void onUpdate(AjaxRequestTarget target) {
if(!uname.isValid()) {
target.appendJavaScript(document.getElementById(' +
uname.getMarkupId() + ').focus();); }
target.addComponent(uname);
}
});

Should do the trick. Note that this is from the top of my head, so
things might not compile completely.

Martijn

On 1/14/07, Cliff Pereira [EMAIL PROTECTED] wrote:
 Hello Mailinglist again,

 I tried to implement a simple input field where you can e.g. enter your
 username. Now I want to let the background of the textfield be red while it
 is not valid. And if it's finally valid it should change to green (during
 the input). My problem is, that I always loose the focus on the input field
 on correct input. I guess it has something to do with the addComponent
 method. Here is my code so far

 final FormComponent usernameField;
 usernameField = new TextField(username, new PropertyModel(this,
 username));
 usernameField.add(new AttributeModifier(class, true, new
 PropertyModel(this, usernamevalid)));
 usernameField.setOutputMarkupId(true);

 //this works aswell with AjaxFormSubmitBehavior. I do not see the
 difference yet.
 usernameField.add(new
 AjaxFormComponentUpdatingBehavior(onkeyup){

 @Override
 protected void onUpdate(AjaxRequestTarget target) {
 System.out.println(username);
 if (username.equals(Cliff)) {
 usernameField.add(new AttributeModifier(class, true,
 new Model(valid)));
 target.addComponent(usernameField);
 }else {
 if (usernamevalid.equals (valid)) {
 usernameField.add(new AttributeModifier(class,
 true, new Model(invalid)));
 target.addComponent(usernameField);
 }
 }
 }

 });
 add(usernameField);

 Is there a way not to loose the focus?
 Thank in advance!
 Cliff

 P.S.: usernamevalid could also be a boolean variable. But somehow I feel it
 is not so nice code I produced here...

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket 2 HEAD problem - java.lang.NoSuchMethodError: wicket.MetaDataKey.init(Ljava/lang/Class; )V

2007-01-14 Thread Mark Derricutt

Hey all,  I just updated my Wicket 2 HEAD copy and now get the following
errors:

Exception in thread main java.lang.NoSuchMethodError: wicket.MetaDataKey
.init(Ljava/lang/Class;)V
   at wicket.spring.injection.SpringComponentInjector$1.init(
SpringComponentInjector.java:67)
   at wicket.spring.injection.SpringComponentInjector.clinit(
SpringComponentInjector.java:65)
   at com.theoryinpractice.timetrackr.TimeTrackrApplication.init(
TimeTrackrApplication.java:34)
   at wicket.protocol.http.WicketFilter.init(WicketFilter.java:341)
   at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java
:162)
   at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(
WebApplicationHandler.java:145)
   at org.mortbay.jetty.servlet.WebApplicationContext.start(
WebApplicationContext.java:458)
   at org.mortbay.http.HttpServer.start(HttpServer.java:663)
   at com.theoryinpractice.timetrackr.Start.main(Start.java:57)
[EMAIL PROTECTED]:~/IdeaProjects/timetrackr$

I'm using the latest HEAD of wicket, wicket-extensions, and wicket-spring -
bug? uncommitted code?  something broken on my end?

Cheers,
Mark

--
It was not the presence of God that formed me, but his absence which broke
me.

http://www.talios.com
http://www.flickr.com/photos/talios
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 2 HEAD problem - java.lang.NoSuchMethodError: wicket.MetaDataKey.init(Ljava/lang/Class; )V

2007-01-14 Thread Caleb Land
I don't think it's something specific to your end because I get
something similar:

/Users/caleb/svn/wicket/wicket-spring/src/main/java/wicket/spring/injection/SpringComponentInjector.java:[65,75]
cannot find symbol
symbol  : constructor
MetaDataKey(java.lang.Classwicket.spring.injection.SpringComponentInjector.ApplicationContextHolder)
location: class
wicket.MetaDataKeywicket.spring.injection.SpringComponentInjector.ApplicationContextHolder

On 1/14/07, Mark Derricutt [EMAIL PROTECTED] wrote:
 Hey all,  I just updated my Wicket 2 HEAD copy and now get the following
 errors:

 Exception in thread main java.lang.NoSuchMethodError:
 wicket.MetaDataKey.init(Ljava/lang/Class;)V
 at
 wicket.spring.injection.SpringComponentInjector$1.init(SpringComponentInjector.java:67)
 at
 wicket.spring.injection.SpringComponentInjector.clinit(SpringComponentInjector.java:65)
 at
 com.theoryinpractice.timetrackr.TimeTrackrApplication.init
 (TimeTrackrApplication.java:34)
 at
 wicket.protocol.http.WicketFilter.init(WicketFilter.java:341)
 at
 org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:162)
 at
 org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets
 (WebApplicationHandler.java:145)
 at
 org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:458)
 at
 org.mortbay.http.HttpServer.start(HttpServer.java:663)
 at com.theoryinpractice.timetrackr.Start.main
 (Start.java:57)
 [EMAIL PROTECTED]:~/IdeaProjects/timetrackr$

 I'm using the latest HEAD of wicket, wicket-extensions, and wicket-spring -
 bug? uncommitted code?  something broken on my end?

 Cheers,
 Mark

 --
 It was not the presence of God that formed me, but his absence which broke
 me.

  http://www.talios.com
 http://www.flickr.com/photos/talios
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





-- 
Caleb Land
([EMAIL PROTECTED])

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax Behaviour on RadioChoice

2007-01-14 Thread Igor Vaynberg

that happens because if you dont put anything into requiredtextfield the
validation of the form fails.

like i said before, what you want is formcomponentupdatingbehavior, but
radiochoice doesnt support that because it is a quasi component (single
component representing a bunch of html components), so you have to use
formsubmitbehavior - which among other things performs validation on the
form. since you dont put anything into a required textfield, the validation
fails, and because the validation fails the models of formcomponents are not
updated - thus your label doesnt refresh.

we probably need to come up with a different component to support a radio
box and ajax.

-igor



On 1/14/07, Cliff Pereira [EMAIL PROTECTED] wrote:


Hi Igor,

I found some strange behavior extending my code. The RadioChoice works
perfect now. It changes the label beneath it depending on the selection. But
now if I additionally add a RequiredTextField it won't change until
something is written into the textfield. Is that the intention of a
RequiredTextField? Because adding a simple TextField works fine.
I mean, if I for example have a form and on top the radioButtons.
Somewhere further on there might be a RequiredTextField, the RadioChoice
won't work until the user has written something into the textfield.

Regards
Cliff



2007/1/12, Cliff Pereira [EMAIL PROTECTED]:

 Hi Igor,

 thanks for the hint. This works perfect! I still don't no why it works
 with the SubmitBehavior, because in my eyes it actually is a change and
 therefore an update and not a submit, but thanks again. Can I use the same
 thing for Input validation on an inputfield or something similar?

 Cliff


 2007/1/12, Igor Vaynberg [EMAIL PROTECTED] :
 
  im surprised your protected void onUpdate(AjaxRequestTarget target) is
  even called! try using AjaxFormSubmitBehavior instead of the
  formcomponentupdating one.
 
  -igor
 
 
  On 1/11/07, Cliff Pereira [EMAIL PROTECTED] wrote:
  
   ok, so far I managed to change the label without page reload. And
   without wantonselectionchangednotification!
   My only problem now is how do I know which of the three radio
   options is selected? Is there any way to determine that?
  
   Thanks in advance once again!
   Cliff
  
   2007/1/11, Igor Vaynberg  [EMAIL PROTECTED]:
   
if he is using wantonselectionchangednotification he is not using
ajax :)
   
-igor
   
   
On 1/11/07, Matej Knopp [EMAIL PROTECTED]  wrote:

 I'm not wrong we don't support (yet) the ajax update on radio
 selection.

 -Matej

 Cliff Pereira wrote:
  Hello Mailinglist,
 
  We just started a project using the wicket framework. It's
 working so
  far and we want to add some AJAX behaviour to our project. But
 nothing
  really works. I've made an example with a radio choice and a
 label that
  should actually change it's content on selectionChange of the
 radiochoice.
  So far I tried to solve it using different models or trying to
 use DOM.
  I want to achieve that if morning is chosen the label shows
 Good
  Morning, if then noon is chosen the label should switch to
 Good Noon
  (or something similar) and same with evening.
  I'm really going mad by the time now. Searched the web but did
 not find
  andy examples. Hopefully one of you has done this before or
 may help me
  implementing it.
 
  Thanks alot in advance!
 
  Cliff
 
 
 
 

 
 
 
-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
  opinions on IT  business topics through brief surveys - and
 earn cash
 
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 
 
 

 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user



 
-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
 opinions on IT  business topics through brief surveys - and
 earn cash
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
   

-
Take Surveys. Earn Cash. 

Re: [Wicket-user] Wicket 2 HEAD problem - java.lang.NoSuchMethodError: wicket.MetaDataKey.init(Ljava/lang/Class; )V

2007-01-14 Thread Igor Vaynberg

its because an api change was made to wicket and not synced into
wicket-spring. fixed.

-igor


On 1/14/07, Caleb Land [EMAIL PROTECTED] wrote:


I don't think it's something specific to your end because I get
something similar:


/Users/caleb/svn/wicket/wicket-spring/src/main/java/wicket/spring/injection/SpringComponentInjector.java:[65,75]
cannot find symbol
symbol  : constructor
MetaDataKey(java.lang.Class
wicket.spring.injection.SpringComponentInjector.ApplicationContextHolder)
location: class
wicket.MetaDataKey
wicket.spring.injection.SpringComponentInjector.ApplicationContextHolder

On 1/14/07, Mark Derricutt [EMAIL PROTECTED] wrote:
 Hey all,  I just updated my Wicket 2 HEAD copy and now get the following
 errors:

 Exception in thread main java.lang.NoSuchMethodError:
 wicket.MetaDataKey.init(Ljava/lang/Class;)V
 at
 wicket.spring.injection.SpringComponentInjector$1.init(
SpringComponentInjector.java:67)
 at
 wicket.spring.injection.SpringComponentInjector.clinit(
SpringComponentInjector.java:65)
 at
 com.theoryinpractice.timetrackr.TimeTrackrApplication.init
 (TimeTrackrApplication.java:34)
 at
 wicket.protocol.http.WicketFilter.init(WicketFilter.java:341)
 at
 org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:162)
 at
 org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets
 (WebApplicationHandler.java:145)
 at
 org.mortbay.jetty.servlet.WebApplicationContext.start(
WebApplicationContext.java:458)
 at
 org.mortbay.http.HttpServer.start(HttpServer.java:663)
 at com.theoryinpractice.timetrackr.Start.main
 (Start.java:57)
 [EMAIL PROTECTED]:~/IdeaProjects/timetrackr$

 I'm using the latest HEAD of wicket, wicket-extensions, and
wicket-spring -
 bug? uncommitted code?  something broken on my end?

 Cheers,
 Mark

 --
 It was not the presence of God that formed me, but his absence which
broke
 me.

  http://www.talios.com
 http://www.flickr.com/photos/talios

-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Caleb Land
([EMAIL PROTECTED])

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 2 HEAD problem - java.lang.NoSuchMethodError: wicket.MetaDataKey.init(Ljava/lang/Class; )V

2007-01-14 Thread Mark Derricutt

Cheers, thought it might be something like that.

On 1/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


its because an api change was made to wicket and not synced into
wicket-spring. fixed.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Otan

On 14/01/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:


Just out of curiosity, what are you using it for? How and why did you
change/extend the default behavior?




Sometimes, I put markups in the folder like:
/WEB-INF/wicket.html/com.mycompany.packedge/
or
/WEB-INF/wicket.html/com.mycompany.packedge.subpackedge/

and sometimes, I put markups in the root directory of the web application
outside of any folders.

My reason for going against the wicket's default markup lookup is nothing
but for the convenience of my page authors (dhtml developers) who know
nothing about java and sometimes, I want to restrict them from seeing my
java files. The time of conversation/talking with them is lessen if I give
them that convenience (eg., having them author the templates in previewable
and WYSIWYGable way, etc.). More often, being the programmer and the
developer of the system, I am the one who has to adjust because I know what
to do, and they don't.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] When the connetction must be opened and when it have to closed?

2007-01-14 Thread Ramazan Pekin
Hi everone,
I am trying to develop a structure and I want this; already opened and already 
closed the connection when my form is submitted and my forms logic finished. I 
have a BaseForm class, which overriding OnSubmit function and my other forms 
extends this BaseForm class. On Struts, when form submit I have overrided the 
dispatchaction execute method and openning my connection, and generate 
actionForward and closing connection. How can I make kind of a struture with 
wicket framework? I have controlled the user with my BaseForm, BaseApplicaiton, 
BaseSession, I want to same this thing with my connection. I have seen on every 
form class I have to override the OnSubmit function, is there any other steps 
when the OnSubmit event formed?


 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] spring integration question

2007-01-14 Thread Peter Thomas

Hi,

I was thinking that more option can be added to the official wicket-spring
integration documentation.  Something like this:

1) normal wicket servlet config in web.xml, with applicationClassName
init-param

2) Application class uses Spring API to get hold of dependency like this:

class MyApplication extends WebApplication {
  private ContactDao dao;
  public ContactDao getContactDao() { return dao; }

  public void init() {
  ServletContext sc = getWicketServlet().getServletContext();
  dao = (ContactDao)
WebApplicationContextUtils.getWebApplicationContext
(sc).getBean(contactDao);
  }
}

3) Have all pages / components extend BasePage that has a getContactDao()
method - exactly like the first option in the wicket-spring wiki
documentation here: http://www.wicket-wiki.org.uk/wiki/index.php/Spring

I understand the risk of running into the serialization problem and also
that this may be considered not-so-elegant because of using the Spring API
directly without any dependency injection.  But I want to mention my
experience, I spent a lot of time going through the existing documentation
agonizing over which option to choose.  Trying to understand all the
options, lazy proxies etc was a little daunting for a spring fan like me.

In my case I just have one clean dependency and finally it was so easy to do
it as suggested above.  I also don't need the wicket-spring jar at all.  Are
there any other compelling reasons for using the wicket-spring lib?  Is the
suggested approach fine for small projects who want to hook into Spring
quickly?

Another thing - I initially tried to use wicket-spring-annot and Maven 2
complained with this error:



[INFO] Failed to resolve artifact.

GroupId: wicket
ArtifactId: wicket-parent
Version: 1.2-SNAPSHOT

Reason: Unable to download the artifact from any repository

 wicket:wicket-parent:pom:1.2-SNAPSHOT

from the specified remote repositories:
 central ( http://repo1.maven.org/maven2)

=

I think the reason is because the wicket-spring-annot-1.2.4.pom incorrectly
refers to 1.2-SNAPSHOT version for wicket-parent.  The url of the offending
file in the maven repository is this:

http://repo1.maven.org/maven2/wicket/wicket-spring-annot/1.2.4/wicket-spring-annot-1.2.4.pom

Let me know if I need to log an issue or something.

Thanks,

Peter.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Input Field background color change on validation

2007-01-14 Thread Erik van Oosten
Hi Cliff,

If I read your requirements correctly you should use onkeypress 
instead of onblur. But I guess you already guessed that.

Regards,
Erik.

Martijn Dashorst wrote:
 You make it very complicated :-)

 final TextField uname = new TextField(username, ...).add(new
 AttributeModifier(class, true, new Model() { public void
 getObject(Component c) { return uname.isValid() ? valid : invalid;
 } });

 uname.add(new AjaxFormComponentUpdateBehavior(onblur) {
 public void onUpdate(AjaxRequestTarget target) {
 if(!uname.isValid()) {
 target.appendJavaScript(document.getElementById(' +
 uname.getMarkupId() + ').focus();); }
 target.addComponent(uname);
 }
 });

 Should do the trick. Note that this is from the top of my head, so
 things might not compile completely.

 Martijn
   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Is there any uml diagram for wicket?

2007-01-14 Thread Ramazan Pekin
Hi everyone
Is there any uml diagram for wicket framework, or is there any flowchart?


 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user