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
@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
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/
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
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
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.
--
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
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
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.
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
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
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
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
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.
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:
>
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-
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
> 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
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());
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
@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
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
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
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.
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
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.
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
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
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
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
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
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
32 matches
Mail list logo