how to upload multiple files using wicket

2011-06-14 Thread sathya
Hai, In wicket multiple files can be uploaded one by one. But i have to upload multiple files at a single browse. Any suggestions? Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-upload-multiple-files-using-wicket-tp3590498p3590498.html Sent

Re: best way to add tooltips in wicket

2011-06-14 Thread tapas.23571113
Thanks for mootipbehavior. It is awesome. But I would like to inform you that it isn't working well if I use it any component resides in a ModalWindow. In that case it is appearing behind the window. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/best-way-to-add-tool

AutoCompleteBehavior rendering question

2011-06-14 Thread Nathan Winant
Hello! I need the value of the AutoCompleteTextField's default model to be something other than the rendered value of the IAutoCompleteRenderer, and I was wondering if someone could help. I have a component that extends an AutoCompleteTextField for a list of Concept objects. Each Concept object h

Re: best way to add tooltips in wicket

2011-06-14 Thread Martin Grigorov
fix its zIndex css property use firebug to find what value to use On Sat, Jun 11, 2011 at 12:00 PM, tapas.23571113 wrote: > Thanks for mootipbehavior. It is awesome. But I would like to inform you that > it isn't working well if I use it any component resides in a ModalWindow. In > that case it i

Re: how to upload multiple files using wicket

2011-06-14 Thread Martin Grigorov
See http://www.wicket-library.com/wicket-examples/upload/multi And the third example at http://www.wicket-library.com/wicket-examples/upload/single (this one works only on HTML5 browsers) On Sat, Jun 11, 2011 at 4:48 PM, sathya wrote: > Hai, > > In wicket multiple files can be uploaded one by one

Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-14 Thread Marieke Vandamme
Hello, I'm experiencing strange behavior in wicket 1.5, which works perfect with wicket 1.4. 2 pages: - ModalWindowPage (abstract class) * this page is most of the time used in modalwindow (but not necessary) * has an abstract function to pass the value chosen on the page - HomePage * thi

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-14 Thread Andrea Del Bene
Hi Marieke, please attach the code that should modify HomePage's model. Anyway, to solve this problem you could use the new inter-component events mechanism included with Wicket 1.5: https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Intercomponentevents Just ma

AutoCompleteTextField which uses an Object, not a String

2011-06-14 Thread drf
I have a model which backs a form. One of the fields in the model is a custom object type, City. In the form I have a field defined as AutoCompleteTextField. This is populated with a list of City objects, and because City.toString() is overriden, everything displays nicely in the list. However, whe

Doubt about Pallete component

2011-06-14 Thread Vitor Granzinoli Vellozo
Wicketers, To use the Pallete component, I need use two models, first to list not-selected items, and the second to list the selected items. I need add an ajax behavior in the pallete to get the value of a certain item when it is clicked. When I use Ajax, I can get the modelObject but t

Re: AutoCompleteTextField which uses an Object, not a String

2011-06-14 Thread Martin Grigorov
maybe you need https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/objectautocomplete-parent On Tue, Jun 14, 2011 at 5:42 PM, drf wrote: > I have a model which backs a form. > One of the fields in the model is a custom object type, City. > In the form I have a field defined as AutoCom

Re: Doubt about Pallete component

2011-06-14 Thread Martin Makundi
Do you attach ajax to palette recorder? ** Martin 2011/6/14 Vitor Granzinoli Vellozo : > > > Wicketers, > > > > To use the Pallete component, I need use two models, first to list > not-selected items, and the second to list the selected items. > > > > I need add an ajax behavior in the pallete to

Re: AutoCompleteTextField which uses an Object, not a String

2011-06-14 Thread Clint Checketts
Is there a good reason (besides backwards compatiblity) that the objectautocomplete hasn't replaced the broken string based one in wicket-extensions? It seems like AutoComplete should behave as similarly to DropDownChoice as possible. As it currently is, IChoiceRenderer feels broken with it. -Cli

Re: AutoCompleteTextField which uses an Object, not a String

2011-06-14 Thread James Carman
On Tue, Jun 14, 2011 at 11:25 AM, Clint Checketts wrote: > Is there a good reason (besides backwards compatiblity) that the > objectautocomplete hasn't replaced the broken string based one in > wicket-extensions? > > It seems like AutoComplete should behave as similarly to DropDownChoice as > poss

RES: Doubt about Pallete component

2011-06-14 Thread Vitor Granzinoli Vellozo
Martin, You mentioned Palette Recorder, so I tried to use that, but it not works like I need. Imagine I have an Object called Contact (with name, age..), and a palette with a list of not-selected contacts at left side, and a list of selected contacts at right side. I just need an Ajax behavi

Re: Doubt about Pallete component

2011-06-14 Thread James Carman
Try reading the Palette javadocs. On Tue, Jun 14, 2011 at 11:38 AM, Vitor Granzinoli Vellozo wrote: > > Martin, > > You mentioned Palette Recorder, so I tried to use that, but it not works like > I need. > > Imagine I have an Object called Contact (with name, age..), and a palette > with a list

Re: Doubt about Pallete component

2011-06-14 Thread Martin Makundi
/** * @author Martin */ public class AjaxifiedPalette extends Palette { /** * */ private static final long serialVersionUID = 1L; /** * @author Martin */ public static class FriendlyAjaxFormSubmitBehavior extends AjaxFormSubmitB

Re: AutoCompleteBehavior rendering question

2011-06-14 Thread Alexander Morozov
Hi, could you try to use custom IConverter ? public class MyAutocompleteTextField extends AutoCompleteTextField { public MyAutocompleteTextField(...) { super(...); setType(MyModel.class); } protected Iterator getChoices(String input) { ... } public IConverter getConverter(...

Re: AutoCompleteBehavior rendering question

2011-06-14 Thread Sven Meier
Hi, this is exactly how we are using AutoCompleteTextField, works fine here. I wonder what's supposed to be broken about this component? Sven On 06/14/2011 06:05 PM, Alexander Morozov wrote: Hi, could you try to use custom IConverter ? public class MyAutocompleteTextField extends AutoCompl

Re: AutoCompleteTextField which uses an Object, not a String

2011-06-14 Thread Jeremy Thomerson
I'd be up for at least moving the ObjectAutoComplete into core and adding @Deprecated to the existing one before 1.5.0 if there is consensus on it. -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org* On Tue, Jun 14, 2011 at 11:27 AM, James Carman

Re: AutoCompleteTextField which uses an Object, not a String

2011-06-14 Thread Igor Vaynberg
we dont need to deprecate the existing one. it does something that object-autocomplete does not - lets you enter free-form-text with some assistance. -igor On Tue, Jun 14, 2011 at 6:55 PM, Jeremy Thomerson wrote: > I'd be up for at least moving the ObjectAutoComplete into core and adding > @Depr

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-14 Thread Marieke Vandamme
Hello, Thanks for the response ! I'm not sure if the following code is what you want. I just update the pageValue variable on the HomePage in the abstract function 'linkClicked'. Following code is inside the HomePage constructor: pageValue = "initial modal value"; final ModalWindo

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-14 Thread Marieke Vandamme
Hi, I just tried it with the inter-component events, and it's the same problem as with the abstract functions.. Please try my code: HomePage: public class HomePage extends WebPage { @Override public void onEvent(IEvent event) { super.onEvent(event); if (event.getPayload(

Users, sessions, data...

2011-06-14 Thread Zeldor
Hi, My last attempts to fix my session and advices here made me thinking if my approach is good. So I'm curious - how do you handle users and their data? In my case I have session, when user logs in entire entity gets loaded into session. Later I get user data from that session and when he changes