Example of Ajax DataView update

2010-11-22 Thread javax
Hi! Can you show me an example of Ajax update of a paging table (I use DataView for it)? Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Example-of-Ajax-DataView-update-tp3053204p3053204.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Example of Ajax DataView update

2010-11-22 Thread alex shubert
final DefaultDataTableGroup view; AjaxButton deleteSelected = new AjaxButton(delete-selected) { @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { target.addComponent(view); } On 22 November 2010 11:05, javax jav...@gmail.com wrote:

Re: MessageLabel vanished in Wicket 1.4.x

2010-11-22 Thread Igor Vaynberg
the label i showed you does what the old message label did. -igor On Sun, Nov 21, 2010 at 11:43 PM, andrea.castello a.castello.pronet...@gmail.com wrote: Hi Igor, thanks for your answer, but I think it doesn't fit my situation. To explain better, I post the code similar to the class that must

Re: Customizing AutoCompleteTextFeld

2010-11-22 Thread Igor Vaynberg
use css -igor On Mon, Nov 22, 2010 at 12:04 AM, javax jav...@gmail.com wrote: Hi! How can I change fonts and color of choices dropdown list in AutoCompleteTextFeld? Thank you! -- View this message in context:

Re: Customizing AutoCompleteTextFeld

2010-11-22 Thread javax
Thank you, where can I find names of corresponding CSS elements? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customizing-AutoCompleteTextFeld-tp3053200p3053236.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Example of Ajax DataView update

2010-11-22 Thread javax
Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Example-of-Ajax-DataView-update-tp3053204p3053237.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

SV: MessageLabel vanished in Wicket 1.4.x [update]

2010-11-22 Thread Wilhelmsen Tor Iver
What if I try to extend org.apache.wicket.markup.html.basic.Label? Will it work when I extended MessageLabel? Yes, except you need to be explicit about using a ResourceModel that MessageLabel did for you. If you pass in the key as before then you just use new ResourceModel(key) in the call

Re: Customizing AutoCompleteTextFeld

2010-11-22 Thread Andrea Del Bene
Hi, take a look at file DefaultCssAutocompleteTextField.css. You could find it into Wicket source code in folder src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete. This file contains css elements you need. Bye.

Re: Example of Ajax DataView update

2010-11-22 Thread javax
I have exception java.lang.IllegalArgumentException: Component org.haploblock.components.ImportsDataView has been added to the target. This component is a repeater and cannot be repainted via ajax directly. Instead add its parent or another markup container higher in the hierarchy. Which

Re: Customizing AutoCompleteTextFeld

2010-11-22 Thread javax
Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customizing-AutoCompleteTextFeld-tp3053200p3053396.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

SV: Example of Ajax DataView update

2010-11-22 Thread Wilhelmsen Tor Iver
Which container can I use to put DataView inside? A WebMarkupContainer tied to a div surrounding it is the easiest. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: ModalWindow with panel: Strange model behaviour after onError

2010-11-22 Thread Martin Grigorov
You need to call form.modelChanged() in AjaxLink#onClick() to inform the form. On Mon, Nov 22, 2010 at 8:04 AM, Marieke Vandamme marieke.vanda...@tvh.bewrote: Can someone please help me with this one? Or should I put this on the Jira? Thanks! Kind Regards, Marieke -- View this message in

Re: SV: Example of Ajax DataView update

2010-11-22 Thread javax
I added a container, but no update happens. What I'm doing wrong? I have a container and a DataView, which is binded to a SortableDataProvider. When AjaxButton is pressed I take a value from my text field, change the internal state of the provider and add to a target DataView's container

New project: constants generator for translation keys and wicket ids

2010-11-22 Thread neurolabs . de
Hi everybody, I want to announce a new project that a few of you might like: homepage: https://github.com/neurolabs/wicket-id-bindings-generator usage: see github readme synopsis: I like compile time checks, and have always been frustrated about the runtime errors when a wicket component

Forced Date Pattern on Application level

2010-11-22 Thread Bruno Borges
Is it possible to force a Date pattern to DateTextField on an application level? Thanks, Bruno Borges www.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by the means they have used to acquire it. - Francois de La Rochefoucauld

Re: Forced Date Pattern on Application level

2010-11-22 Thread Bruno Borges
Sorry for the vague question. We are having an issue where the default pattern for pt_BR is dd/MM/yy, but we'd like to set that as dd/MM/ (four digits on year field). But in an Application level, where no custom patterns should be passed to DateTextField. And we'd also like to not have to

Jetwick Twitter Search now Open Source

2010-11-22 Thread Peter Karich
Jetwick is now available under the Apache 2 license: http://www.pannous.info/2010/11/jetwick-is-now-open-source/ Regards, Peter. PS: features http://www.pannous.info/products/jetwick-twitter-search/ installation https://github.com/karussell/Jetwick/wiki for devs

Re: Forced Date Pattern on Application level

2010-11-22 Thread Jeremy Thomerson
In app unit get the converter locator, cast to concrete ConverterLocator and override the default by registering a new converter for Date.class. Be aware that this will change the formatting of all dates within the app - including labels, etc. Jeremy Thomerson http://wickettraining.com -- sent

Re: ModalWindow update size

2010-11-22 Thread Istvan Jozsa
// add to your ModalWindow constructor: setWidthUnit(em); setHeightUnit(em); setResizable(false); setOutputMarkupId(true); @Override public void show(AjaxRequestTarget target) { super.show(target); // ... int width = ...; int height = ...; target.appendJavascript(//

Whats the best way to prevent handle 404?

2010-11-22 Thread Arjun Dhar
Hi, Q1) Using mount paths can we prevent 404 by using RegEx? Is there is a better way? Q2) Instead of preventing 404, if we go reactive , how can we trap it? (I was unsuccessful playing with WebRequestCycle) Q3) Part of my application is User facing, part Admin. For exceptions depending on

Re: wicket via websocket

2010-11-22 Thread heapifyman
wicket plus atmosphere framework might also be a possibility. one tutorial here: http://jfarcand.wordpress.com/2010/10/07/writing-websocket-application-using-apache-wicket/ On Sun, Nov 21, 2010 at 5:05 PM, kamiseq kami...@gmail.com wrote: ok, thanks, I will try that pozdrawiam Paweł Kamiński

Re: wicket via websocket

2010-11-22 Thread Martin Grigorov
On Mon, Nov 22, 2010 at 4:38 PM, heapifyman heapify...@gmail.com wrote: wicket plus atmosphere framework might also be a possibility. one tutorial here: http://jfarcand.wordpress.com/2010/10/07/writing-websocket-application-using-apache-wicket/ A way more Wicket-ish version at

how to have one app at multiple root contexts

2010-11-22 Thread Jim Pinkham
I've got a wicket 1.3 app I'm refactoring to add security and more scalable 'root contexts'. I think may involve going to wicket 1.5 but I haven't found any actual examples of this to study - seems like it would be a common need. Right now, I have a dozen different maven profiles that crank out

Re: how to have one app at multiple root contexts

2010-11-22 Thread Igor Vaynberg
this would indeed be much simpler with 1.5. wicket-examples in 1.5 contains some request mapper examples you can take a look at. basically, you can use the same idea as LocaleFirstMapper to always prepend the client name into the first segment of the url - creating virtual contexts in the url

Re: how to have one app at multiple root contexts

2010-11-22 Thread Brian Topping
On Nov 22, 2010, at 12:58 PM, Jim Pinkham wrote: For the security, I found a great help herehttp://out-println.blogspot.com/2009/02/wicket-swarm-spring-security-how-to.html. Unfortunately, it doesn't work with Wicket 1.5. Anyone working on that? I Wicket-swarm was one of the first security

Re: StackOverflowError

2010-11-22 Thread Erik van Oosten
Yes, both are very wrong. Pitfalls are in earlier messages in this thread. On 22-11-10 16:36, mzem...@osc.state.ny.us wrote: By keep a reference to the session in their class do you mean something like this? Are there any pitfalls to doing this? final Session session = getSession(); add(new

Re: StackOverflowError

2010-11-22 Thread Igor Vaynberg
no. the example below doesnt hit any pitfalls because it doesnt reference the session itself. as long as objects retrieved from session do not contain references back to session he is ok. however, declaring Session instance as final is not a good idea because it makes it easy to reference it in

The inconsistency in a localization of enums (DropDownChoice vs EnumLabel)

2010-11-22 Thread Vitaly Tsaplin
Hi everyone, It seems there is an inconsistency in the way DropDownChoice (when localizeDisplayValues returns true) and EnumLabel localize they values. DropDownChoice uses toString and EnumLabel - toString + enum class name which makes me either have to keys for the same value or override

Re: wicket via websocket

2010-11-22 Thread kamiseq
thanks, I run into the first page but I was curious if I can do this depending only on wicket. but I will give it a try again pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __

Re: how to have one app at multiple root contexts

2010-11-22 Thread Jim Pinkham
I've studied the example, but I'm still not seeing how to make it work at the root. I'm trying to get URLs like this http://localhost:8080/- container should render index.html http://localhost:8080/foo - should render HomePage http://localhost:8080/bar - should render HomePage

Re: how to have one app at multiple root contexts

2010-11-22 Thread Igor Vaynberg
you would insert yours as first. if you were using the locale one IRequestMapper root=getRootRequestMapper(); LocaleFirstMapper first=new LocaleFirstMapper(root); setRootRequestMapper(first); in this way the locale first will process all urls. -igor On Mon, Nov 22, 2010 at 3:02 PM, Jim

Re: how to have one app at multiple root contexts

2010-11-22 Thread Jim Pinkham
Super - that works great! I especially like how it won't have to be a PageParameter this way. (At one point I thought I'd have to do it that way). You've saved me a lot of work! Thanks again, -- Jim. On Mon, Nov 22, 2010 at 6:29 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: you would

[announce] Pedro Santos added to Wicket PMC / Committer

2010-11-22 Thread Jeremy Thomerson
I'd just like to pass this on to everyone on the list. Pedro Santos has been added as a committer and PMC member for Apache Wicket. Pedro has been increasingly active in the Wicket community in recent months, and his patches continue to improve in quality. Additionally, Pedro is always willing

CRUD Operation on a List View or Grid View

2010-11-22 Thread Nivedan Nadaraj
Hi All, I am starting to build a component that allows to add, edit and delete items into/from a List/Grid view. The use case is where we want to add multiple phone/address items as part of adding a contact. - User enters Contact related details - User gets a list of pre-existing(if any) Phone

Re: Whats the best way to prevent handle 404?

2010-11-22 Thread Arjun Dhar
I think Q1) Q2) could have been answered by: http://apache-wicket.1842946.n4.nabble.com/How-to-catch-all-404s-Page-Not-Found-and-reroute-to-a-Page-or-strategy-td1862982.html However the link provided by the replier is not working :( Somewhere I saw the use of RegEx in mount Paths but I cant

Re: How to catch all 404s (Page Not Found) and reroute to a Page or strategy

2010-11-22 Thread Arjun Dhar
Hi that link seems to be deleted. Can you post it again if it aint too much trouble. thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-catch-all-404s-Page-Not-Found-and-reroute-to-a-Page-or-strategy-tp1862982p3054834.html Sent from the Users forum mailing

Re: StackOverflowError

2010-11-22 Thread Erik van Oosten
I have seen an application (not mine!) fail horribly and costly on the second example. The problem with getting an object from the session and passing the reference to a (Compound)PropertyModel is that the natural assumption, the session object is updated too, is wrong. So this is exactly the