Re: InMethod data grid data source query question

2009-09-16 Thread Matej Knopp
I'm afraid that is not possible. The grid gives you notification immediately when selection status changes and for that it needs to load the items. -Matej On Thu, Sep 17, 2009 at 1:24 AM, Bryce Bell wrote: > How do you keep a data grid from querying it's data source when you check > the check bo

Re: bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
OK, I think I've found it. :) getResponsePage(Class) first links to a regular wicket url and only then redirects to a bookmarkable one. This is why it didn't work when invalidating the session :) Bye On Wed, Sep 16, 2009 at 11:10 PM, Haim Ashkenazi wrote: > Hi again, > > Now I'm really confused

Re: upload file content to textarea

2009-09-16 Thread Martin Makundi
No.. the field name is "rawInput": rawInputField = FormComponent.class.getDeclaredField("rawInput"); ** Martin 2009/9/17 Sam Zilverberg : > I'd rather use some other method than mine, because with mine the validation > of input is done twice when uploading. > first on the uploaded file, and then

Re: same data set shows for all users

2009-09-16 Thread McIlwee, Craig
You do realize that there is a single instance of the Application, not one per user, right? Your application holds an OrderDatabase and whenever a user enters a new date range they are altering the contents of the Map in that OrderDatabase. So user A sets a date range and fetch is called, upda

InMethod data grid data source query question

2009-09-16 Thread Bryce Bell
How do you keep a data grid from querying it's data source when you check the check box in the header that auto checks all the rows on the page? I just need all the check boxes on the page checked, I do not need the data source queried again. Bryce

Re: upload file content to textarea

2009-09-16 Thread Sam Zilverberg
I'd rather use some other method than mine, because with mine the validation of input is done twice when uploading. first on the uploaded file, and then another time on the textarea when pressing the wizard's next button. I tried replacing my "fixup" with this one but got a big fat java.lang.NoSuc

[OT] More "Java's generic type parameters are not reified"...

2009-09-16 Thread jWeekend
Since you can NOT do class S{S(){T t = new T();}} // broken how would you create an object of type T somewhere in S? Think about this before you read on ... At the risk of reigniting the world-famous generics debates of yesteryear, just as our noble core-developers regroup to start work on mak

Re: upload file content to textarea

2009-09-16 Thread Martin Makundi
Ah.. forgot that crucial part, the reflection: public static > void fakeRawInput(T formComponent, String value) { try { rawInputField.set(formComponent, value); } catch (Exception e) { Utils.errorLog(MarkupUtils.class, "Fatal Error: Form field access failed.", e); } }

Re: upload file content to textarea

2009-09-16 Thread Martin Makundi
Hi! > I currently solved this problem by "filtering" the input from the uploaded > file and creating a correct object model (Set)  out of it, > then setting the modelObject of the textarea to be this filtered one. Good, so you got the upload part working. By reflection I mean that instead of set

Re: upload file content to textarea

2009-09-16 Thread Sam Zilverberg
thanks a lot for the help and the links! I checked them all out, the second one (upload panel) was too complicated for me atm. Maybe I'l come back to it when I'l have more experience with wicket. I liked the timed ajax behaviour example, but couldn't figure out exactly how it works so i could use

Re: HybridUrlCodingStrategy and CryptedUrlWebRequestCodingStrategy

2009-09-16 Thread jpswain
All you have to do is not put sensitive forms on bookmarkable pages. The bookmarkable pages containing forms should be things like searches, that aren't really meaningful targets for attack. The sensitive forms for things like account info, transactions, etc, should be on session-relative URLs w

Re: upload file content to textarea

2009-09-16 Thread Martin Makundi
1. You know how to upload file? http://www.wicket-library.com/wicket-examples/upload/single -> or ajax upload http://blog.demay-fr.net/index.php/2007/12/07/93-simulate-ajax-file-upload-with-wicket 2. Just put the file contents into textarea with jafa reflection. 3. AJax update the textarea: http:

Re: bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
Hi again, Now I'm really confused ... I've followed my code in the debugger and It does follow the correct path. so now I'm really confused. Did I misunderstood the book? what is the difference between setResponsePage(new HomePage()) and setResponsePage(HomePage.class)? Bye On Wed, Sep 16, 2009

Re: GMap2 GOverlay.getJSConstructor() change request

2009-09-16 Thread nino martinez wael
Yeah such things should be added to the gmap2 js namespace as functions or such.. should be possible and more clean.. 2009/9/16 Martin Funk : > 2009/9/16 Martin Funk > >> Hi Doug, >> >> the change of getJSconstructor() from protected to public is fine by me. >> Go ahead an commit that change. >>

Re: Wicketstuff really needs some updates

2009-09-16 Thread nino martinez wael
You've been added.. 2009/9/16 Johannes Schneider : > Hmm. you are right. That is an important information. Sorry for missing > that. > > SF.net User: > shake234 > > > Johannes > > nino martinez wael wrote: >>  Great Jeremy, I were about to ask the same, so Johannes please give >> us the sf account

Re: upload file content to textarea

2009-09-16 Thread Sam Zilverberg
sounds good, but how do I do this? :) On Wed, Sep 16, 2009 at 9:45 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > You could ajax update the textarea after upload, with the content that > you want? If you do not want to set the model object then you will > have to fake raw inpu

Re: Update Tree Model on Ajax timer. What's wrong ?

2009-09-16 Thread Sven Meier
Hi Eric, if Wicket's Swing tree model usage gives you a headache ... ... you should definitely take a look at http://code.google.com/p/wicket-tree . Regards Sven Eric Bouer wrote: Hello. Preface: Wicket Tree is very confusing since it's some kind of hybrid between swing Tree model and w

Re: Select + SelectOptions question

2009-09-16 Thread Troy Cauble
Thanks, but that wasn't my question! -troy On Wed, Sep 16, 2009 at 3:20 PM, Pedro Santos wrote: > With Select  you have more control over the markup between the tag > and its children tags > > From Select javadoc: Component that represents a box. Elements are > provided by one or more SelectC

Re: same data set shows for all users

2009-09-16 Thread jcinit
Okay. I'm reading about models, but no progress yet. Abridged code attached. http://www.nabble.com/file/p25479235/CodeSample.java CodeSample.java jthomerson wrote: > > You're not using models properly, but there's no way we can help without > seeing code. > > -- > Jeremy Thomerson > http

Re: Select + SelectOptions question

2009-09-16 Thread Pedro Santos
With Select you have more control over the markup between the tag and its children tags >From Select javadoc: Component that represents a box. Elements are provided by one or more SelectChoice or SelectOptions components in the hierarchy below the Select component. Advantages to the standard c

Re: bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
Hi MIcheal, On Wed, Sep 16, 2009 at 6:52 PM, Michael Mosmann wrote: > Hi, > > After Session.invalidate everything is cleaned up.. > change your code from > > add (new SLink("gohome", {setResponsePage(classOf[HomePage])})) > > to > > add(new BookmarkablePageLing("gohome", classOf[HomePage])); > >

Select + SelectOptions question

2009-09-16 Thread Troy Cauble
I'm having some trouble changing a DropDownChoice to a Select + SelectOptions. Do these look equivalent? Thanks, -troy // new DropDownChoice(id, rackListModel, // new ChoiceRenderer("name")); Select select = new Select(

Re: Wicketstuff really needs some updates

2009-09-16 Thread Johannes Schneider
tnx Uwe Schäfer wrote: > Pierre Goupil schrieb: >> +1 for CI since it would give confidence on health status of the various >> projects as well. > > http://wicketstuff.org/teamcity > > cu uwe > > > - > To unsubscribe, e-mail:

Re: upload file content to textarea

2009-09-16 Thread Martin Makundi
You could ajax update the textarea after upload, with the content that you want? If you do not want to set the model object then you will have to fake raw input (reflection). ** Martin 2009/9/16 Sam Zilverberg : > In one of my wizard's steps I have a upload form and a textarea. > > The textarea i

upload file content to textarea

2009-09-16 Thread Sam Zilverberg
In one of my wizard's steps I have a upload form and a textarea. The textarea is used to enter serial numbers(seperated by newline) and is connected to a object property of type Set using a propertymodel. I've written a custom converter to turn the entered input to a Set and from a Set back to sim

Re: Wicketstuff really needs some updates

2009-09-16 Thread Uwe Schäfer
Pierre Goupil schrieb: +1 for CI since it would give confidence on health status of the various projects as well. http://wicketstuff.org/teamcity cu uwe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For addit

Re: Wicketstuff really needs some updates

2009-09-16 Thread Pierre Goupil
+1 for CI since it would give confidence on health status of the various projects as well. On Wed, Sep 16, 2009 at 7:44 PM, Johannes Schneider wrote: > By the way: What about a CI server? That will detect such errors very fast. > > > Johannes > > nino martinez wael wrote: > > Great Jeremy, I wer

Re: Wicketstuff really needs some updates

2009-09-16 Thread Johannes Schneider
By the way: What about a CI server? That will detect such errors very fast. Johannes nino martinez wael wrote: > Great Jeremy, I were about to ask the same, so Johannes please give > us the sf account and we will add you to the project. And thanks for > these updates.. :) > > regards Nino > >

Re: Displaying column totals for a DefaultDataTable

2009-09-16 Thread saahuja
Sorry, never mind my previous post. I figured it out. I just need to use the iterator() on the dataProvider to get the values. Thanks. -- View this message in context: http://www.nabble.com/Displaying-column-totals-for-a-DefaultDataTable-tp25402522p25477218.html Sent from the Wicket - User maili

Re: Wicketstuff really needs some updates

2009-09-16 Thread Johannes Schneider
Hmm. you are right. That is an important information. Sorry for missing that. SF.net User: shake234 Johannes nino martinez wael wrote: > Great Jeremy, I were about to ask the same, so Johannes please give > us the sf account and we will add you to the project. And thanks for > these updates..

filter a datatable using some range (like a date range)

2009-09-16 Thread Sam Zilverberg
Hi, I've recently had a bad experience adding this kind of filter in my project. I had filter/clear buttons and the filtering would work great until I'd press clear. on pressing clear the fields would not clear and the filter would stop working as it should. I finally solved this by ignoring the o

Re: Displaying column totals for a DefaultDataTable

2009-09-16 Thread saahuja
Ok, here is my code for the TotalsToolbar that I am adding as a BottomTooolbar to my table. public class TotalsToolbar extends AbstractToolbar { public TotalsToolbar(final DataTable table, final IDataProvider dataProvider) { super(table); RepeatingView totals = new Repea

Re: add/remove convenience functions instead of get/set

2009-09-16 Thread Troy Cauble
I don't see an advantage to putting it in the model rather than the class behind the model. It's still a get/set(list) interface and walking the lists for changes to do add/remove. -troy On Wed, Sep 16, 2009 at 11:03 AM, Igor Vaynberg wrote: > you can always create a model that uses your own ad

Re: dropdownchoice selection problem after pressing the wizard previous button

2009-09-16 Thread Sam Zilverberg
I have another DDC in the wizard that works properly, it shows the correct value when using the wizard previous button. It's connected to the "deviceType" property of Device and gets its choices from an enumeration I have. add(new DropDownChoice("deviceType", Arrays.asList(DeviceType.v

Re: bookmarkable pages from scala

2009-09-16 Thread Michael Mosmann
Hi, After Session.invalidate everything is cleaned up.. change your code from add (new SLink("gohome", {setResponsePage(classOf[HomePage])})) to add(new BookmarkablePageLing("gohome", classOf[HomePage])); and it will work.. mm:) p.s.: the javacode for SLink.. is add(new Link("gohome") {

Re: dropdownchoice selection problem after pressing the wizard previous button

2009-09-16 Thread Sam Zilverberg
deviceCreation is defined only once in the wizard class. all of the wizard steps are inner classes and, if needed, refer to deviceCreation of their outer class which is the main wizard class. so it should be the same instance. On Wed, Sep 16, 2009 at 6:26 PM, Pedro Santos wrote: > The device o

Re: dropdownchoice selection problem after pressing the wizard previous button

2009-09-16 Thread Pedro Santos
The device on wizard model need to be the same instance that was passed to the DropDownChoice? See if at some point you are working with 2 intances of Device. new PropertyModel(devicesCreation, "distributor"), private Device deviceCreation; devicesCreation != deviceCreation On Wed, Sep 16, 200

Re: add/remove convenience functions instead of get/set

2009-09-16 Thread Igor Vaynberg
you can always create a model that uses your own add/remove methods. -igor On Wed, Sep 16, 2009 at 8:00 AM, Troy Cauble wrote: > I have classes with convenience functions that manage > bidirectional associations > >  public void addFoo(Foo f) { >    foos.add(f); >    f.addBar(this); >  } > > At

add/remove convenience functions instead of get/set

2009-09-16 Thread Troy Cauble
I have classes with convenience functions that manage bidirectional associations public void addFoo(Foo f) { foos.add(f); f.addBar(this); } At one point I thought Wicket was using my add/remove convenience functions (since I'd provided no get/set), but I now realize that it's using re

dropdownchoice selection problem after pressing the wizard previous button

2009-09-16 Thread Sam Zilverberg
I'm using a wizard with a CompoundPropertyModel of some object called Device. The Device object has a distributor and company properties (and some other too...) In the first step of the wizard, the user has to choose a distributor or company(both allowed too) for this device. For the device's dis

Re: bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
Hi Michael, On Wed, Sep 16, 2009 at 4:40 PM, Michael Mosmann wrote: > Am Mittwoch, den 16.09.2009, 16:32 +0300 schrieb Haim Ashkenazi: > > Hi > > > > I'm trying to run setResponsePage with a class parameter. According to > the > > doc if I run: > > setResponsePage(MyPage.class) > > some more cod

Re: Unable to close ModalWindow 1.4.1

2009-09-16 Thread Pedro Santos
For cross (sub) domain reasons - I am adding document.domain to my page. can't you access your application with http://subdomain.domain.com:8080 at first place? if no, see if you can reach this effect with: http://wicket.apache.org/docs/1.4/org/apache/wicket/request/IRequestCodingStrategy.html at

Re: bookmarkable pages from scala

2009-09-16 Thread Michael Mosmann
Am Mittwoch, den 16.09.2009, 16:32 +0300 schrieb Haim Ashkenazi: > Hi > > I'm trying to run setResponsePage with a class parameter. According to the > doc if I run: > setResponsePage(MyPage.class) some more code? mm:) - To uns

bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
Hi I'm trying to run setResponsePage with a class parameter. According to the doc if I run: setResponsePage(MyPage.class) I should get a bookmarkable url ( http://localhost:8080/?wicket:bookmarkablePage=:com...). When trying the same from scala: setResponsePage(classOf[MyPage]) I get a regular

Re: Shall we create a menu in wicket?

2009-09-16 Thread Ernesto Reinaldo Barreiro
Do not have a life demo. But you can see the code to use it at: http://code.google.com/p/antilia/source/browse/trunk/ com.antilia.demo.manager/src/com/antilia/demo/manager/Index.java

Re: Shall we create a menu in wicket?

2009-09-16 Thread Martin Makundi
I am just trying to learn something new here.. how is your menu different from tabbedpanel? Maybe I could leverage from that.. Do you have a live demo? ** Martin 2009/9/16 Ernesto Reinaldo Barreiro : > Well, that's what Wicket is about: it's so easy to roll out components that > you end up creat

Re: Shall we create a menu in wicket?

2009-09-16 Thread Ernesto Reinaldo Barreiro
Well, that's what Wicket is about: it's so easy to roll out components that you end up creating your own stuff and using it even when there are things out there that already do that you want. I have rolled my "own" Menu because I didn't what to depend on YUI. I see Menus as something different than

Re: Non-english UTF-8 characters in POSTed data

2009-09-16 Thread Petr Fejfar
On Wed, Sep 16, 2009 at 1:35 PM, Martin Makundi wrote: > Hmm.. can't you fix this with encoding settings? > >    getMarkupSettings().setDefaultMarkupEncoding(WebPageConstants.ISO_8859_1); > > Or something? It seems it cannot. I have in my appliction's init() code: getMarkupSettings().setDef

Re: Non-english UTF-8 characters in POSTed data

2009-09-16 Thread Martin Makundi
Hmm.. can't you fix this with encoding settings? getMarkupSettings().setDefaultMarkupEncoding(WebPageConstants.ISO_8859_1); Or something? I would assume a modified version wicket-ajax can be just accomplished by creating a new one in same package. However, if there is no setup for such thing

Re: Shall we create a menu in wicket?

2009-09-16 Thread Martin Makundi
> Well, your menu might have more than one level (sub-menus) and maybe you > want those to appear and hide as your mouse rolls over selected entries... I have implemented generic N-LEVEL tabbed panels with Wicket that can hide or show given elements depending on some parameters (authorization, for

Re: Shall we create a menu in wicket?

2009-09-16 Thread Ernesto Reinaldo Barreiro
Well, your menu might have more than one level (sub-menus) and maybe you want those to appear and hide as your mouse rolls over selected entries... It seems to me that would be very difficult to achieve with tabbedpanel (unless you add a lot CSS/magic, which would not probably work for all browsers

Non-english UTF-8 characters in POSTed data

2009-09-16 Thread Petr Fejfar
Hi all, I'm probably facing the same problem as described here: http://mail-archives.apache.org/mod_mbox/wicket-users/200804.mbox/%3cdf3d7452-0ac0-4cf7-8164-87e9371d8...@signicat.com%3e I use Maven to build my applications, so I have a beginner's qustion: how to reorganize a project to work with

Re: Shall we create a menu in wicket?

2009-09-16 Thread Martin Makundi
I do not mean pure css.. I just mean that Wicket has the tabbedpanel solution with ajax and without.. What's the difference of a tabbed panel to menus if you just change the visual outlook...? ** Martin 2009/9/16 Ernesto Reinaldo Barreiro : > You mean pure CSS based menus? Well, I guess if you wa

Re: Shall we create a menu in wicket?

2009-09-16 Thread Ernesto Reinaldo Barreiro
You mean pure CSS based menus? Well, I guess if you want the Menu working for all brands/versions of browsers you might have some JavaScript as well... E.g. YUI menu allows to put an iframe behind your menu, so that it display well when it overlaps with a select on IE6. Don't think you can achieve

Re: Shall we create a menu in wicket?

2009-09-16 Thread Martin Makundi
Hi guys, what's the difference of menu and tabbed panel? Apart from the css? ** Martin 2009/9/16 Ernesto Reinaldo Barreiro : > As far as I remember there was a YUI based Menu component on this project > https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-

Re: Shall we create a menu in wicket?

2009-09-16 Thread Ernesto Reinaldo Barreiro
As far as I remember there was a YUI based Menu component on this project https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/ See for instance h

RE: Shall we create a menu in wicket?

2009-09-16 Thread Stefan Lindner
Yes, we should! I started an initial implementation for old Wicket 2.0 in wicketstuff. But this was 3 years ago. I still have a simple implementation that works with wicket 1.4. Not much documentation, not very flexible, but it works and may be suitable for a quick and dirty solution for you. -

Shall we create a menu in wicket?

2009-09-16 Thread Gerald Fernando
Shall we create a menu in wicket?if it possible , please tell me how to create menu -- Thanks®ards, Gerald A

Re: GMap2 GOverlay.getJSConstructor() change request

2009-09-16 Thread Martin Funk
2009/9/16 Martin Funk > Hi Doug, > > the change of getJSconstructor() from protected to public is fine by me. > Go ahead an commit that change. > argh... I withdraw and claim the opposite. or at least rethink it really hard. If the map you are reffering to already has a JavaSript-counterpart-ins

Re: GMap2 GOverlay.getJSConstructor() change request

2009-09-16 Thread Martin Funk
Hi Doug, the change of getJSconstructor() from protected to public is fine by me. Go ahead an commit that change. The client code you posted, I haven't analyzed in depth, but seeing all that JavaScript genereated on the Server using so many String literals would make me start to think if that cod

Re: Update Tree Model on Ajax timer. What's wrong ?

2009-09-16 Thread Matthias Keller
Hi Eric I've never used a Tree before and I don't know the AjaxSelfUpdatingTimerBehaviour, but shouldn't you add all changed elements to 'target' like in all other AJAX calls I've ever encountered before? Wicket usually updates those things that are added to the AjaxRequestTarget. Matt Eri

Update Tree Model on Ajax timer. What's wrong ?

2009-09-16 Thread Eric Bouer
Hello. Preface: Wicket Tree is very confusing since it's some kind of hybrid between swing Tree model and wicket tree so please forgive me for any stupid/irrelevant questions. I created a tree with a model based on database schema.I'm trying to refresh the tree so that it will change node name

Ajax POST stopped because of precondition check

2009-09-16 Thread Rik Overvelde
Hello, I've got a problem while integrating a JQuery Slider in a project that I'm working on. The basic idea is that when the value of the slider changes, a hidden textfield is changed as well and the value of this textfield is submitted using an AjaxFormComponentUpdatingBehavior. This is all