Re: Custom CSS for Feedback message is broken in 1.5

2012-11-01 Thread Sebastien
Hi Alec, Thanks for having taking time to write the code snippet bellow, I better understand your idea!.. I did not realized you didn't want to use getCssClass, but I think it is good solution anyway! It is easy for the user to replace message.isInfo() ? ".my-ui-info" : ".my-ui-error" by its custo

Re: Custom CSS for Feedback message is broken in 1.5

2012-11-01 Thread Alec Swan
@Sebastien The scenario you described it exactly the scenario I used to start this thread. Please read my original post. So, the solution is to change Wicket code FeedbackPanel.MessageListView#populateItem to use AttributeAppender instead of AttributeModifier as I suggested in my previous message

Charts in Wicket

2012-11-01 Thread Paul Bors
Hey guys, I am looking for a good and easy to integrate if not already integrated charting framework to work with in Wicket. Preferably open source code and stand alone since the webapp will be running behind firewalls. So far I've taken a brief look at: * Wicket Charts: http://code.google.com/p/

JQuery update policy

2012-11-01 Thread Brian Laframboise
Now that Wicket is built on top of jQuery, does the Wicket project have a stated policy on when that dependency will be updated? I found the Wicket Ajax page ( https://cwiki.apache.org/WICKET/wicket-ajax.html) but it did not address this. I'm aware that I can override the default version included

Re: What is the way to test a behavior?

2012-11-01 Thread vineet semwal
hi, this is expected behavior, AbortWithHttpErrorCodeException doesn't respond with InternalErrorPage,it merely sets HTTP error code , you can assert that by below code Assert.assertEquals( tester.getLastResponse().getStatus(), HttpServletResponse.SC_NOT_FOUND); Assert.assertEquals(tester.getLast

Re: IE8, IE7 Ajax fails with Wicket 6?

2012-11-01 Thread Jack Berg
I created a ticket: https://issues.apache.org/jira/browse/WICKET-4851 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/IE8-IE7-Ajax-fails-with-Wicket-6-tp4653503p4653545.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: How to See if a Button Goes To the Server

2012-11-01 Thread Sebastien
Hi, I think there is several ways to achieve that. You can, for instance, have your own StaticButton class that extends button, then by using #visitChildren(StaticButton.class) you get these back. A warning however, not overriding onSubmit does not prevent the button (if it's of type submit) to po

Re: Integrating Google maps with wicket web application

2012-11-01 Thread JasonKilgrow
Just search for it on the central maven repository: search.maven.org or http://search.maven.org/#search%7Cga%7C1%7Cgmap -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Integrating-Google-maps-with-wicket-web-application-tp4167839p4653531.html Sent from the Users

Re: [Wicketstuff] Google Maps 3 component

2012-11-01 Thread JasonKilgrow
What is the main difference between gmap2 and gmap3? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicketstuff-Google-Maps-3-component-tp4651103p4653533.html Sent from the Users forum mailing list archive at Nabble.com.

How to See if a Button Goes To the Server

2012-11-01 Thread eugenebalt
I appreciate the help so far. A somewhat unusual question: We need a way to identify all Buttons which don't go to the server for anything. Is there a way to identify these "client-side-only" Buttons? As an example, we have a Wicket Button constructed the usual way in our form, but its only acti

What is the way to test a behavior?

2012-11-01 Thread Per Newgro
Hi, i try to unit test a custom behavior. But i was wondering what's the right way to test it. I provide some code to explain my mind mismatch. The behavior shall interrupt the rendering of a component. I would like to answer this with a 404. Calling the behavior method directly results in t

Re: Quickly Check if a Component Contains Ajax Behaviors

2012-11-01 Thread Sebastien
Hi, Yes, by using Component#getBehaviors Sebastien. On Thu, Nov 1, 2012 at 6:13 PM, eugenebalt wrote: > Thanks for the answers so far. My latest question is, I need to check if a > cfomponent has any Ajax behaviors added to it. > > For some reason, a Component does not have visitChildren() def

Quickly Check if a Component Contains Ajax Behaviors

2012-11-01 Thread eugenebalt
Thanks for the answers so far. My latest question is, I need to check if a cfomponent has any Ajax behaviors added to it. For some reason, a Component does not have visitChildren() defined for it. I see a method called contains() but you have to have a Component reference passed to it -- all my A

Re: Unable to Traverse with IVisitor: Some Class Names Have "$1" at the end

2012-11-01 Thread eugenebalt
Thanks. Working now. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unable-to-Traverse-with-IVisitor-Some-Class-Names-Have-1-at-the-end-tp4653532p4653538.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Unable to Traverse with IVisitor: Some Class Names Have "$1" at the end

2012-11-01 Thread Alexander Cherednichenko
hi Eugene. Super class will do that for you -- when you create an anonymous subclass of a button, its parent would be a Button. So just print out parent class name if the component's class name contains $ sign it will do the trick. best wishes, alex On Nov 1, 2012 6:09 PM, "eugenebalt" wrote: >

Re: Unable to Traverse with IVisitor: Some Class Names Have "$1" at the end

2012-11-01 Thread eugenebalt
Thanks Duesen, but if I get the superclass, how can I actually get the type of *this* class? I need to find out if the anonymous class is a Button, a TextField, a Link, etc. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unable-to-Traverse-with-IVisitor-Some-Class-

Re: Custom CSS for Feedback message is broken in 1.5

2012-11-01 Thread Sebastien
Hi, @Alec, the use case is the following: Consider you are not the "owner" of the css-class(es). The css provider (a ui-framework, a designer, ...) will provide one style by message level (let's say .my-ui-warn, .my-ui-error, .my-ui-info, etc). So you will override #getCssClass in order to return

Re: Unable to Traverse with IVisitor: Some Class Names Have "$1" at the end

2012-11-01 Thread Carl-Eric Menzel
> Most of the time, the class names are right, but sometimes, I don't > get Wicket org names, I get these: > > com.mycompany.MyForm.MyPanel$1 ( <-- on a Button!) > com.mycompany.SomeForm$1 ( <-- on a Button!) > > What's going on here, why can't I get the actual > org.apache.wicket.m

Unable to Traverse with IVisitor: Some Class Names Have "$1" at the end

2012-11-01 Thread eugenebalt
I am using the IVisitor to traverse all components on the current page. I'm printing the class names on the console. visitChildren(new IVisitor() { @Override public Object component(Component arg0) { System.out.println(arg0.getClass().toString());

Re: Custom CSS for Feedback message is broken in 1.5

2012-11-01 Thread Sven Meier
If you want to group messages you can easily use multiple feedback panels, each filtering by severity. Sven Sebastien schrieb: >Hi, > >@Alec, unfortunately I think your workaround does not handle the case we do >*not* want the message-level-css-class on the SPAN, and that we still want >it on

Re: Custom CSS for Feedback message is broken in 1.5

2012-11-01 Thread Alec Swan
@Sebastien, my original post in this thread would have been satisfied with my solution which appends the CSS class instead of replacing it. And this solution is backward compatible. If there is a different scenario which required *not* having a message-level-css-class, maybe we should start a sepa

Re: Custom CSS for Feedback message is broken in 1.5

2012-11-01 Thread Sebastien
Hi, @Alec, unfortunately I think your workaround does not handle the case we do *not* want the message-level-css-class on the SPAN, and that we still want it on the LI... @Sven, well if the refactoring is planned for Wicket 7 (a question will remain about doing something, backward compatible, for

Write Out HTML without WicketId

2012-11-01 Thread eugenebalt
Is there a way to write out literal HTML from Wicket, without using a ? Example: We need to go thru all our pages, and add a component. If we were to do it the proper way we'd have to alter our HTML to add a "wicket:id" for this . But we want a one-pass-through in the common ancestor page that wi

Check if a .JS Reference Already Included in HTML

2012-11-01 Thread eugenebalt
I need to dynamically add a .js reference to the rendered result. In Wicket 1.5, I understand the way to do it is (https://cwiki.apache.org/WICKET/adding-javascript-or-css-using-a-resource.html) Question: How can I check if the .js has already been included? I don't want to include it twice.

Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-11-01 Thread vineet semwal
hi, On Thu, Nov 1, 2012 at 5:27 PM, Benedikt Schlegel wrote: > I've looked into this issue once more and it seems I solved it by.. doing > what Decebal said. > > In the update() method of the SortableUpdateCallback, after the changes are > saved to the XML data source, I call ListView.detach() di

Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-11-01 Thread Benedikt Schlegel
I've looked into this issue once more and it seems I solved it by.. doing what Decebal said. In the update() method of the SortableUpdateCallback, after the changes are saved to the XML data source, I call ListView.detach() directly. So the ListView gets a fresh, up-to-date version of the model.

Re: Call Wicket repeatedly from JQplot (Jquery based) graphing framework

2012-11-01 Thread baguahsingi
Thanks for the tips. I've decided to rethink this. I'm going to use Wicket-rest instead. So, make an ajax call from client to server for chart data for my java script to build a graph with. It will make additional requests as it needs them to get additional data (perhaps with a small delay befor

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-11-01 Thread heapifyman
Ok, got it. Thanks a lot. 2012/11/1 Martin Grigorov > Hi, > > The idea is to create MultipartWebRequest before trying to read > multi-part data from the servlet input stream. > So in your case you have to do this in your own FileUploadRequestHandler. > > On Wed, Oct 31, 2012 at 6:14 PM, heapify

Re: AjaxCheckbox javascript with onUpdate together

2012-11-01 Thread Martin Grigorov
Hi, You can provide a non-null impl of AjaxCheckBox#getAjaxCallDecorator(). This decorator can prepend/append to the JavaScript that Wicket generates for the default 'onclick' functionality. On Thu, Nov 1, 2012 at 5:53 AM, steven.li wrote: > hi al > > Is it possible to call onUpdate method and

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-11-01 Thread Martin Grigorov
Hi, The idea is to create MultipartWebRequest before trying to read multi-part data from the servlet input stream. So in your case you have to do this in your own FileUploadRequestHandler. On Wed, Oct 31, 2012 at 6:14 PM, heapifyman wrote: > Ok, now I am kind of lost again. Sorry for the stupid

Re: IE8, IE7 Ajax fails with Wicket 6?

2012-11-01 Thread Martin Grigorov
Hi, I can confirm that there is such problem with the ModalWindow. Please file a ticket. On Wed, Oct 31, 2012 at 9:41 PM, T Ames wrote: > I tried this with the example and I got the JS errors when I used the X to > close the window. When using the "Show modal dialog with a page" and then a > clo

Re: wicketstuff poms still depend on wicketstuff repo which no longer exists

2012-11-01 Thread Martin Grigorov
Hi, You better build the projects locally. On Thu, Nov 1, 2012 at 1:31 AM, Steve Swinsburg wrote: > Hi, > > Some artifacts in wicketstuff still mention the old wicketstuff repo, i.e.: > > http://repo1.maven.org/maven2/org/wicketstuff/tinymce-parent/1.4.21/tinymce-parent-1.4.21.pom > > And on Mav