Re: wicket-bootstrap and another webjars components

2013-11-21 Thread Shengche Hsiao
i use 0.3.2 On 2013/11/21 下午 03:51, Martin Grigorov wrote: which version of wicket-webjars do you use ? there was a fix recently that may be related. Please provide a quickstart (github project) as Michael requested in the ticket and we will check it. On Thu, Nov 21, 2013 at 9:46 AM, Shengche

RE: Rendering a component into a String

2013-11-21 Thread Mateusz Mieszkowski
Hi guys, I noticed a problem with ComponentRenderer.renderComponent(). It is possible that I'm missing something but this is what I get for now: I'm using ComponenetRenderer withing CustomTooltipBehavior (wicket-jquery-ui) to generate tooltip content. I add this to about 50 rows in my table so

Re: Rendering a component into a String

2013-11-21 Thread Martin Grigorov
Please create a ticket. The page should be marked as stateless to avoid storing it. On Thu, Nov 21, 2013 at 10:40 AM, Mateusz Mieszkowski mmieszkow...@objectivity.co.uk wrote: Hi guys, I noticed a problem with ComponentRenderer.renderComponent(). It is possible that I'm missing something

RE: Rendering a component into a String

2013-11-21 Thread Mateusz Mieszkowski
Martin, Ticket created: https://issues.apache.org/jira/browse/WICKET-5422 Can you advise a workaround for now? Cheers, Mateusz -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday, November 21, 2013 9:49 AM To: users@wicket.apache.org Cc: Martin

Re: Rendering a component into a String

2013-11-21 Thread Martin Grigorov
Option 1) Override your component's onInitialize/onConfigure and call page.setStatelessHint(true) Option 2) Copy/paste ComponentRenderer.java locally and do something similar directly in RenderPage On Thu, Nov 21, 2013 at 11:29 AM, Mateusz Mieszkowski mmieszkow...@objectivity.co.uk wrote:

Visural wicket, input text hint is considered as input value.

2013-11-21 Thread cosmindumy
Hello, I don't know if here is the right place to ask this question, but visural wicket group seems to not be active anymore. I used visural wicket library to display hint into a text field. When submitting the form by an ajax button, the component is properly handled. But when I use a

Java EL for Wicket

2013-11-21 Thread Steve
This will probably horrify some of the wicket dev team. It's probably not the 'wicket way'. But I've been using wicket for years and there's plenty of thing you can do in many different ways but a few things that you just can't. An incidental but very useful part of this package in a Renderer

RE: Rendering a component into a String

2013-11-21 Thread Mateusz Mieszkowski
Just a quick update for those with the same problem: Option 1 did not work as the page is not bookmarkable. I used option 2 and override isBookmarkable() method in RenderPage to return true. Page is set to stateless on its own. It's not too clean but in my case should be enough. Martin, please

Re: Rendering a component into a String

2013-11-21 Thread Martin Grigorov
I think the fix for 6.13 will be something similar. The page should report that it is stateless no matter what components/behaviors it renders. On Thu, Nov 21, 2013 at 1:33 PM, Mateusz Mieszkowski mmieszkow...@objectivity.co.uk wrote: Just a quick update for those with the same problem:

Re: Java EL for Wicket

2013-11-21 Thread Bas Gooren
Hi Steve, Thanks for sharing! As longtime wicket users we are doing something similar. We have the notion of a page context to which components can contribute data (it's a simple mapString, Object) by implementing an interface (PageContextContributor). A component can then either: - add an

WicketTester - asserting on HTML

2013-11-21 Thread Nick Pratt
Is it possible to to make assertions on the rendered HTML of a Wicket page? Im trying to make assertions on element attributes (class contents specifically). Is this possible with WicketTester? N

Re: Using Wicket and Hibernate

2013-11-21 Thread Dan Alvizu
Here's an example of wicket spring and hibernate all working together, with an h2 database: https://github.com/dalvizu/wicket-spring-hibernate-template -Dan On Thu, Nov 21, 2013 at 8:30 AM, Gerrit Wassink gerrit.wass...@qfactors.nlwrote: Hello, I am reading Wicket in Action the part over

Using Wicket and Hibernate

2013-11-21 Thread Gerrit Wassink
Hello, I am reading Wicket in Action the part over wicket, spring and hibernate.Since i am new to concepts like wicket, spring and hibernate i want to learn about them.But also learning three new tools together is a bit much. Is it therefore a good idea to forget about Spring and make the mvc

Re: Using Wicket and Hibernate

2013-11-21 Thread Gerrit Wassink
Thanks! Dan Alvizu dalv...@pingidentity.com , 21-11-2013 14:59: Here's an example of wicket spring and hibernate all working together, with an h2 database: https://github.com/dalvizu/wicket-spring-hibernate-template -Dan On Thu, Nov 21, 2013 at 8:30 AM, Gerrit Wassink

Re: WicketTester - asserting on HTML

2013-11-21 Thread Martin Makundi
assertContains 2013/11/21 Nick Pratt nbpr...@gmail.com Is it possible to to make assertions on the rendered HTML of a Wicket page? Im trying to make assertions on element attributes (class contents specifically). Is this possible with WicketTester? N

Re: WicketTester - asserting on HTML

2013-11-21 Thread Kees van Dieren
You could use the TagTester for that. Example: // span wicket:id=myLabel class=one-class, another-classhello world/span TagTester tester = wicketTester.getTagByWicketId(myLabel); assertTrue(tester.getAttributeContains(class, one-class));

Sign to Google with Java Wicket

2013-11-21 Thread MartinoSuperman
Hi, Does someone know how to open a Google account in Java (Wicket) and how to close it again? I read several pages about it on the internet, but I cannot figure it out. I accomplished to open a connection to GoogleMail, after which a mail is being sent via the SMTP server of Google. Now, I

Re: wicket-bootstrap and another webjars components

2013-11-21 Thread Shengche Hsiao
Hello all I recreated my project with maven quickstart, it works fine. So I replaced the dependencies in my broken application with maven quickstart, and it works! Table below shows the dependencies of two applications. +--- Broken