Re: [Announce] Introducing Wicked Charts

2013-01-18 Thread Matthias Gasser
Hi Tom,

Great work! Thanks.

Best regards,
Matthias

On 18.01.2013, at 23:30, tom.hombergs tom.hombe...@gmail.com wrote:

 Hi Wicket users,
 
 i would like to introduce to you the Wicked Charts library, consisting of a
 java wrapper for the Highcharts javascript charting library and a component
 for Wicket (and for JSF as a by-product). Wicked Charts supports most of the
 features Highcharts supports, including many different chart types,
 drilldown, ajax interaction between charts and Wicket and more.
 
 If you ever need fancy charts in your Wicket application, have a look at the
 project site at http://wicked-charts.org or the showcase at
 http://wicked-charts.appspot.com. We'd love to hear your feedback.
 
 Best Regards,
 Tom
 
 
 
 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Announce-Introducing-Wicked-Charts-tp4655519.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
 


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



Re: Can't build wicket from updated trunk

2012-01-01 Thread Matthias Gasser
You need to increase the heap space for maven.

Just run the following line prior building:

 snip 
set MAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=128m
 snap 

That should bring you through.

-matthias

Am 02.01.2012 um 05:43 schrieb Chris Colman:

 I cloned the wicket git repos and then checked out branch wicket-1.5.x branch 
 and the build broke in a different place (it got a bit further this time :)  )
 
 The build was done on a Windows XP box with 4GB RAM so I wouldn't have 
 thought it would have run out of memory.
 
 [INFO] 1 error
 [INFO] -
 [INFO] 
 
 [ERROR] BUILD FAILURE
 [INFO] 
 
 [INFO] Compilation failure
 Failure executing javac, but could not parse the error:
 
 
 The system is out of resources.
 Consult the following stack trace for details.
 java.lang.OutOfMemoryError: Java heap space
at com.sun.tools.javac.code.Scope$ImportScope.makeEntry(Scope.java:385)
at com.sun.tools.javac.code.Scope.enter(Scope.java:196)
at com.sun.tools.javac.code.Scope.enter(Scope.java:183)
at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:132)
at 
 com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:509)
at 
 com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446)
at 
 com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:819)
at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
at 
 com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758)
at com.sun.tools.javac.comp.Enter.complete(Enter.java:451)
at com.sun.tools.javac.comp.Enter.main(Enter.java:429)
at 
 com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
at com.sun.tools.javac.main.Main.compile(Main.java:353)
at com.sun.tools.javac.main.Main.compile(Main.java:279)
at com.sun.tools.javac.main.Main.compile(Main.java:270)
at com.sun.tools.javac.Main.compile(Main.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
 org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:554)
at 
 org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:161)
at 
 org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:605)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
 
 -Original Message-
 From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
 Sent: Monday, 2 January 2012 2:50 PM
 To: users@wicket.apache.org
 Subject: Re: Can't build wicket from updated trunk
 
 already moved.
 
 -igor
 
 On Sun, Jan 1, 2012 at 7:31 PM, Chris Colman
 chr...@stepaheadsoftware.com wrote:
 Is Wicket moving to git?
 
 Chris
 
 -Original Message-
 From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
 Sent: Monday, 2 January 2012 2:24 PM
 To: users@wicket.apache.org
 Subject: Re: Can't build wicket from updated trunk
 
 clone the project from here:
 http://git-wip-us.apache.org/repos/asf/wicket
 
 -igor
 
 On Sun, Jan 1, 2012 at 6:09 PM, Chris Colman
 chr...@stepaheadsoftware.comwrote:
 
 ** **
 
 I have done a recent update on my working copy of the trunk and mvn
 clean
 install yields:
 
 ** **
 
 Project ID: org.apache.wicket:wicket-ioc
 
 POM Location: C:\dev\libs\wicket\trunk\wicket-ioc\pom.xml
 
 Validation Messages:
 
 ** **
 
 [0]  'dependencies.dependency.version' is missing for
 javax.inject:javax.inject:jar
 
 ** **
 
 ** **
 
 Have I done something wrong or do I need to upgrade to a later JDK
 (currently 1.6.0_29-b11)?
 
 ** **
 
 Yours sincerely,
 
 ** **
 
 

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Matthias Gasser
Hello,

Your wicket version is fairly old. Please try the latest 1.5 release... Have a 
look at the wicket examples they provide a very good starting point.

Cheers, Matthias

--
iPhone Mail


On 19.10.2011, at 18:17, Filipe Sousa nat...@gmail.com wrote:

 Hi,
 
 I'm doing my first experiments with wicket. I'm testing the example in
 chapter 3 (Wicket in Action) with eclipse and embedded jetty. The
 wicket version I'm using is 1.3.7. The example provided works quite
 well except when I make a change and redeploy it to jetty. Then I get
 an unexpected RuntimeException. The only way to get the changes
 working is with a server restart.
 
 Wicket is running in DEVELOPMENT mode.
 
 ERROR o.a.w.RequestCycle Error calling method: public
 wicket.in.action.Cart wicket.in.action.CheesrPage.getCart() on object:
 [Page class = wicket.in.action.Index, id = 0, version = 4, ajax = 0]
 org.apache.wicket.WicketRuntimeException: Error calling method: public
 wicket.in.action.Cart wicket.in.action.CheesrPage.getCart() on object:
 [Page class = wicket.in.action.Index, id = 0, version = 4, ajax = 0]
at 
 org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.getValue(PropertyResolver.java:1066)
 ~[wicket-1.3.7.jar:1.3.7]
at 
 org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:252)
 ~[wicket-1.3.7.jar:1.3.7]
at 
 org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:91)
 ~[wicket-1.3.7.jar:1.3.7]
at 
 org.apache.wicket.model.AbstractPropertyModel.getObject(AbstractPropertyModel.java:113)
 ~[wicket-1.3.7.jar:1.3.7]
at org.apache.wicket.Component.getModelObject(Component.java:1565)
 ~[wicket-1.3.7.jar:1.3.7]
at 
 org.apache.wicket.markup.html.list.ListView.getViewSize(ListView.java:217)
 ~[wicket-1.3.7.jar:1.3.7]
at 
 org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:524)
 ~[wicket-1.3.7.jar:1.3.7]
at 
 org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:127)
 ~[wicket-1.3.7.jar:1.3.7]
at org.apache.wicket.Component.internalBeforeRender(Component.java:1009)
 ~[wicket-1.3.7.jar:1.3.7]
at org.apache.wicket.Component.beforeRender(Component.java:1041)
 ~[wicket-1.3.7.jar:1.3.7]
at 
 org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1590)
 ~[wicket-1.3.7.jar:1.3.7]
at org.apache.wicket.Component.onBeforeRender(Component.java:3727)
 ~[wicket-1.3.7.jar:1.3.7]
at org.apache.wicket.Page.onBeforeRender(Page.java:1458)
 ~[wicket-1.3.7.jar:1.3.7]
at org.apache.wicket.Component.internalBeforeRender(Component.java:1009)
 ~[wicket-1.3.7.jar:1.3.7]
at org.apache.wicket.Component.beforeRender(Component.java:1041)
 ~[wicket-1.3.7.jar:1.3.7]
at org.apache.wicket.Component.prepareForRender(Component.java:2167)
 ~[wicket-1.3.7.jar:1.3.7]
at org.apache.wicket.Page.renderPage(Page.java:892) 
 ~[wicket-1.3.7.jar:1.3.7]
at 
 org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63)
 ~[wicket-1.3.7.jar:1.3.7]
at 
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
 ~[wicket-1.3.7.jar:1.3.7]
at 
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1245)
 [wicket-1.3.7.jar:1.3.7]
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1316)
 [wicket-1.3.7.jar:1.3.7]
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418)
 [wicket-1.3.7.jar:1.3.7]
at org.apache.wicket.RequestCycle.request(RequestCycle.java:532)
 [wicket-1.3.7.jar:1.3.7]
at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)
 [wicket-1.3.7.jar:1.3.7]
at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201)
 [wicket-1.3.7.jar:1.3.7]
at 
 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329)
 [jetty-servlet-7.5.3.v20111011.jar:7.5.3.v20111011]
at 
 org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)
 [jetty-servlet-7.5.3.v20111011.jar:7.5.3.v20111011]
at 
 org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
 [jetty-server-7.5.3.v20111011.jar:7.5.3.v20111011]
at 
 org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
 [jetty-security-7.5.3.v20111011.jar:7.5.3.v20111011]
at 
 org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
 [jetty-server-7.5.3.v20111011.jar:7.5.3.v20111011]
at 
 org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
 [jetty-server-7.5.3.v20111011.jar:7.5.3.v20111011]
at 
 org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
 [jetty-servlet-7.5.3.v20111011.jar:7.5.3.v20111011]
at 
 org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
 [jetty-server-7.5.3.v20111011.jar:7.5.3.v20111011]
at 
 

Re: IStringResourceLoader database implementation

2011-05-18 Thread Matthias Gasser
I've used a second level cache, works like a charm.

- matt

--
iPhone Mail


On 18.05.2011, at 20:22, andrea del bene andrea.on@libero.it wrote:

 Hi,
 
 I've just finished to implement a custom string resource loader which checks 
 for existing resource bundle in database. For now i've  used a simple HashMap 
 to store loaded entries and to retrieve them without reading again from 
 database. I've choose HashMap over HashTable because I need to store null 
 values.
 Hi,
 
 Has anyone successfully implemented IStringResourceLoader to get text via 
 database without to much load for the database? Any suggestion?
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: IStringResourceLoader database implementation

2011-05-18 Thread Matthias Gasser
Used hibernate+ehcache.

- matt

Am 18.05.2011 um 21:21 schrieb andrea del bene:

 Did you implemented this cache using some framework (ehcache, terracotta, 
 spring cache, )?
 I've used a second level cache, works like a charm.
 
 - matt
 
 --
 iPhone Mail
 
 
 On 18.05.2011, at 20:22, andrea del beneandrea.on@libero.it  wrote:
 
 Hi,
 
 I've just finished to implement a custom string resource loader which 
 checks for existing resource bundle in database. For now i've  used a 
 simple HashMap to store loaded entries and to retrieve them without reading 
 again from database. I've choose HashMap over HashTable because I need to 
 store null values.
 Hi,
 
 Has anyone successfully implemented IStringResourceLoader to get text via 
 database without to much load for the database? Any suggestion?
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



Re: post request with wicket

2011-05-13 Thread Matthias Gasser
Or use a javascript to trigger (and create) the POST request.

Or the way you proposed, will also work. Depending on what you're trying to 
achieve.

Matthias

Am 13.05.2011 um 20:59 schrieb wmike1...@gmail.com:

 Thanks Igor. Just so I have this clear:
 
 There's no way to make the POST request straight from the client's browser?
 
 I need to have the client browser hit the wicket server which will then use
 straight java to create the POST request. Is this what you're thinking Igor?
 
 -mike
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/post-request-with-wicket-tp3520861p3520920.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
 


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



Re: Apache Wicket Cookbook Published!

2011-03-25 Thread Matthias Gasser
Thx!

Got it, and it is well done.

Cheers,
Matthias
--
http://matthiasgasser.com


Am 25.03.2011 um 22:17 schrieb Bertrand Guay-Paquet:

 Looking forward to reading it! My copy is in the mail.
 
 On 25/03/2011 1:44 PM, Igor Vaynberg wrote:
 For the past nine months I have been quietly working on a book about
 Wicket. Unlike other books on the market this one does not attempt to
 teach you Wicket from the ground up. Instead, it is for developers who
 already know the basics and want to learn how to implement some of the
 more advanced use cases. Essentially, it contains recipes that show
 the reader how to implement solutions to some of, what I think are,
 the most commonly asked questions and stumbling blocks. This morning I
 was informed that the book has been published! You can read more about
 it and pick up a copy on PACKT's Site[1]. I hope you enjoy it, more
 details below...
 
 [1] https://www.packtpub.com/apache-wicket-cookbook/book
 
 ## Description ##
 
 Apache Wicket is one of the most famous Java web application
 frameworks. Wicket simplifies web development and makes it fun. Are
 you bored of going through countless pages of theory to find out how
 to get your web development done? With this book in hand, you don't
 need to go through hundreds of pages to figure out how you will
 actually build a web application. You will get practical solutions to
 your common everyday development tasks to pace up your development
 activities.
 
 Apache Wicket Cookbook provides you with information that gets your
 problems solved quickly without beating around the bush. This book is
 perfect for you if you are ready to take the next step from tutorials
 and step into the practical world. It will take you beyond the basics
 of using Apache Wicket and show you how to leverage Wicket's advanced
 features to create simpler and more maintainable solutions to what at
 first may seem complex problems.
 
 You will learn how to integrate with client-side technologies such as
 JavaScript libraries or Flash components, which will help you to build
 your application faster. You will discover how to use Wicket paradigms
 to factor out commonly used code into custom Components, which will
 reduce the maintenance cost of your application, and how to leverage
 the existing Wicket Components to make your own code simpler.
 
 A straightforward Cookbook with highly focused practical recipes to
 make your web application development easier with the Wicket web
 framework
 
 ## What you will learn from this book ##
 
 * Leverage Wicket to implement a wide variety of both simple and
 advanced use cases in a narrative that gets straight to the point
 * Make forms work in the crazy world of the Web by learning the ways
 of Wicket's form processing
 * Simplify localizing your Wicket applications
 * Take the boring out of your forms by discovering how to improve the
 user experience while simplifying your code at the same time
 * Leverage the built-in Table component to make displaying tabular data a 
 snap
 * Think Wicket's Borders are not very useful? Learn to use them in
 unexpected places to simplify things
 * See how to integrate with Flash components and create interactive
 charts at the same time
 * Web 1.0 too boring? Learn how to tame Wicket's AJAX support and
 bring your application into Web 2.0
 * Simplify your security code by learning various security techniques
 * An application cannot be built with Wicket alone; see how to make it
 play nice with other frameworks
 
 ## Approach ##
 
 This is a hands-on practical guide to a large variety of topics and
 use cases. This book tries to use real-world examples when possible,
 but is not afraid to come up with a contrived pretext if it makes
 explaining the problem simpler. Unlike a lot of other books, this one
 does not try to maintain a continuous theme from chapter to chapter,
 such as demonstrating solutions on the same fictional application;
 doing so would be almost impossible given the wide variety of recipes
 presented here. Instead, this book concentrates on focused problems
 users are likely to encounter and shows clear solutions in a
 step-by-step manner. This book tries to teach by example and is not
 afraid to show a lot of code because, after all, it is for coders.
 
 ## Who this book is written for ##
 
 This book is for current users of the Apache Wicket framework; it is
 not an introduction to Wicket that will bore you with tons of theory.
 You are expected to have built or maintained a simple Wicket
 application in the past and to be looking to learn new and better ways
 of using Wicket. If you are ready to take your Wicket skills to the
 next level this book is for you.
 
 Cheers, and I hope you enjoy the book!
 -Igor
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

Re: Getting Javascript function return value in Wicket

2011-02-28 Thread Matthias Gasser
Maybe this wiki entry is helpful:

Generate a JS within Wicket:
https://cwiki.apache.org/WICKET/adding-javascript-from-wicket.html


the other way round:
https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html

HTH


Am 28.02.2011 um 12:34 schrieb drf:

 Does anyone have any simple and clear examples as to how to call a javascript
 function within Wicket AND to then retrieve the output of the function?
 
 I see a few people trying to do the same thing but cannot find and clear
 examples.
 
 Any help is truly appreciated!
 
 
 -- 
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Getting-Javascript-function-return-value-in-Wicket-tp3327794p3327794.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: wicket-ajax.js header contribution with script that includes a less than character

2011-02-03 Thread Matthias Gasser
A time ago I faced a similar problem, but not with wicket...

I needed to escape the  character somehow, or try to reverse the arguments

like: 0  someVariable.


see http://www.informit.com/articles/article.aspx?p=1193471seqNum=9



Am 03.02.2011 um 08:56 schrieb Randy S.:

 Hi all.  I have narrowed a problem down to the following scenario:
 
 I have a panel with this:
 
wicket:head
 script
 if (someVariable  0) {
 someVariable = 0;
 }
 /script
/wicket:head
 
 This script fails to execute when the panel is loaded by ajax.  If I replace
 the less than character  with equals ==, then it executes (but of
 course, this is not what I need).
 
 I tested this in Firefox 4.0b10 and Chrome 8.
 
 I have searched a lot for others facing this issue, and also tried to dig
 through wicket-ajax.js, but it is time to ask here in case it is a known
 issue.
 
 I 'm sure I can put the code into a separate JS file as a workaround but I
 wanted to save another network hop. Another solution would be to embed the
 script in wicket:panel rather than wicket:head, but that has the
 disadvantage of re-sending the script with the panel content when the panel
 is re-used on the same page.
 
 Thanks for any help/info.


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



Re: Why is my css variant not used in markup?

2011-01-25 Thread Matthias Gasser
Hello,

First you talk of branda, then brenda. Maybe a shot in the dark, but recheck 
your spelling and watch out for case sensitivity.

Brgds,
Matthias

--
iPhone Mail


On 25.01.2011, at 09:02, Mike Mander wicket-m...@gmx.de wrote:

 Hi all,
 
 i try to load a variant of my main css file (wicket 1.4.15).
 
 The file is located in a webapp-subfolder (src/main/webapp/_css).
 So i set the style of session to branda.  In the page i load the css like 
 this
 code
 add(CSSPackageResource.getHeaderContribution(/_css/main.css, screen));
 /code
 
 I expected to get css-file /_css/main_brenda.css but it's /_css/main.css.
 The session style attribute is really branda. I've checked that already.
 
 Can i do something else to get that working?
 
 Thanks
 Mike
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: wicket:message inside html title

2011-01-17 Thread Matthias Gasser
Hello Patrick,

I guess the following will do the Job:

https://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html

BRGDS
Matthias

Am 17.01.2011 um 12:06 schrieb Patrick Petermair:

 Hi!
 
 We are using wicket:message for i18n of our html pages. It all works fine 
 except for the html title. I have the following html:
 
 head
  title
wicket:message key=page.titlemyTitle/wicket:message
  /title
 /head
 
 In the properties files I have page.title set to German Title and English 
 Title for example.
 The output from wicket to the browser is:
 
 head
  title
wicket:message key=page.titleGerman Title/wicket:message
  /title
 /head
 
 The localization worked, but wicket leaves the wicket:message tag in the 
 title which looks ugly and wrong.
 
 Am I doing something wrong? What's the correct way of i18n html titles?
 
 I could probably treat the page title as a simple label as shown in this 
 blogpost:
 http://th1rty7.blogspot.com/2009/08/page-title-in-wicket.html
 But I would much rather do it with wicket:message since I don't have to touch 
 any Java code this way.
 
 Cheers,
 Patrick
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



Re: problem with changing css while application is running

2010-12-16 Thread Matthias Gasser
Do you know firebug, or the safari / chrome developer tools?

Especially firebug is quite convenient, changing styles on the fly...



Am 16.12.2010 um 16:43 schrieb Sam Zilverberg:

 Sorry, I should have been more clear.
 I don't get any error on the application side.
 I get the error in eclipse. It can't save the css file while the application
 is running.
 It is pretty annoying because I like making changes to design and then press
 refresh in application window to see them.


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



Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread Matthias Gasser
Does the spring context startup without the wicket part?

I've integrated Wicket in an existing Spring project (following the 
same guide as you did) and it worked without any (greater) problem.

cheers,
Matthias

Am 15.12.2010 um 15:06 schrieb adam.gibbons:

 
 I thought that was the whole point of the Wicket-Spring project... That
 tutorial looked like it worked as recently as a year ago. I find it hard to
 believe that it's no longer possible or harder to integrate Wicket and
 Spring than it was a year ago.
 
 On researching that error, all I find are comments about deleting the
 session file from Tomcat, and turning off session persistance. I've done
 both and I still get the same start up error.
 
 
 
 On 15 December 2010 13:53, James Carman [via Apache Wicket] 
 ml-node+3089041-1452804699-201...@n4.nabble.comml-node%2b3089041-1452804699-201...@n4.nabble.com
 wrote:
 
 You need to be able to fire your spring context outside the context of
 Wicket.  Can it be instantiated outside your container?  Once you get
 that down, you should be good to go.
 
 On Wed, Dec 15, 2010 at 8:50 AM, adam.gibbons [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=3089041i=0
 wrote:
 
 
 Hi James,
 
 Thanks for the suggestion! However, even with your change, I still get
 the
 There is no application attached to current thread
 ContainerBackgroundProcessor[StandardEngine[Catalina]] error.
 
 Regards,
 Adam
 
 On 15 December 2010 11:17, James Carman [via Apache Wicket] 
 [hidden email] 
 http://user/SendEmail.jtp?type=nodenode=3089041i=1[hidden
 email] http://user/SendEmail.jtp?type=nodenode=3089041i=2
 wrote:
 
 @SpringBean isn't for use inside your Spring services, just Wicket
 stuff.  Just use the native Spring injection mechanisms.  Try
 @Autowired.
 
 On Wed, Dec 15, 2010 at 5:43 AM, Adam Gibbons [hidden email]
 http://user/SendEmail.jtp?type=nodenode=3088802i=0
 wrote:
 
 Hi there,
 
 For some time now I have been trying to put together a simple project
 to
 get
 me off the ground with a Wicket/Spring/Hibernate setup. I've had lots
 of
 ups
 and downs, and found this guide really useful:
 
 http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/
 However, I still seem to be having some problems and I've no idea
 where
 to
 look now.
 
 Here's the error I get in my log:
 
 org.springframework.beans.factory.BeanCreationException: Error
 creating
 bean
 with name 'userServiceImpl' defined in file
 
 
 [C:\tomcat6\webapps\ZenTemplate-0\WEB-INF\classes\uk\co\company\product\business\spring\UserServiceImpl.class]:
 
 
 Instantiation of bean failed; nested exception is
 org.springframework.beans.BeanInstantiationException: Could not
 instantiate
 bean class [uk.co.company.product.business.spring.UserServiceImpl]:
 Constructor threw exception; nested exception is
 org.apache.wicket.Wicket
 
 RuntimeException: There is no application attached to current thread
 ContainerBackgroundProcessor[StandardEngine[Catalina]]
   at
 
 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
 
 
   at
 
 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
 
 
   at
 
 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
 
 
   at
 
 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
 
 
   at java.security.AccessController.doPrivileged(Native Method)
   at
 
 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
 
 
   at
 
 
 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
 
 
   at
 
 
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 
 
   at
 
 
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
 
 
   at
 
 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
 
 
   at
 
 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
 
 
   at
 
 
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
 
 
   at
 
 
 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
 
 
   at
 
 
 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
 
 
   at
 
 
 org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
 
 
   at