Re: How do I get a change in my tree model to be displayed?

2008-03-31 Thread Thomas Kappler
Hi, first of all, in the first line of the loop, shouldn't node be nextNode? Then, you're directly calling listener methods, which are supposed to be callbacks, i.e., they are called by the framework when, and after, a selection or expansion happens. You should use the methods offered by ITreeSta

Ajax update works from second time on

2008-03-31 Thread Thomas Kappler
Hi, I'm seeing a strange behavior on one of my pages. Using wicketstuff-scriptaculous, users drag a row from a ListView to another component. This triggers an association between the two model objects, which is also persisted via Hibernate. Relevant code: protected void onDrop(Comp

Re: Wicket group on linkedin

2008-03-31 Thread Thomas Kappler
On Mon, Mar 31, 2008 at 4:37 PM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > This is the group invitation url, I believe.. > > http://www.linkedin.com/e/gis/80181/73AB8A016DFF Seems to work. I registered, approval is pending. Thomas --

Re: Ajax update works from second time on

2008-04-02 Thread Thomas Kappler
is not called the first time at all? (you have debugged > that?) > > Then it seems that it is a javascript issue. Look in the browser why > > it isnt called. > > > > On 3/31/08, Thomas Kappler <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > &g

Re: How to Create a link in a treeview

2008-04-09 Thread Thomas Kappler
Hi, you should base your tree on BaseTree, as it implements a lot of things for you. Then, you implement newNodeComponent(), where you can create any component (e.g. a link) to represent a tree node. The component you create there is not tree-specific. Cheers, Thomas On Wed, Apr 9, 2008 at 7:

Re: Hibernate with wicket

2008-04-10 Thread Thomas Kappler
Hi, you should ask databinder-related questions in its forum at http://databinder.net/forum/viewforum.php?f=1&st=0&sk=t&sd=d&start=0. As to your questions, are you not using maven? If not, you could still have a look at the Maven pom.xml file of the baseball project to figure out the dependencie

Re: Tree redrawing

2008-04-15 Thread Thomas Kappler
They don't redraw themselves on mouseover. Must be an IE issue. Thomas On Tue, Apr 15, 2008 at 1:30 PM, rzsolt <[EMAIL PROTECTED]> wrote: > > It seems that wicket Tree items always redraw themself when I drag the mouse > over them. Why? I have a page with two panels on it: a menu tree on the

Re: Clicking a tree leaf and confirmation

2008-04-24 Thread Thomas Kappler
Hi Federico, you gain a lot of flexibility when overriding newNodeComponent() instead. There, you return a custom Panel where you can do what you want, i.e., add the link with all desired functionality. And you can of course give your Panel any constructor you like. An example from our project:

Pageless component at AjaxRequestTarget detach

2008-04-24 Thread Thomas Kappler
Hi, we have a BaseTree where we implemented reordering of tree nodes via drag and drop, using wicketstuff-scriptaculous. Everything seems to work, i.e., you can work with the page as intended. In the logs we see an error on each drop event, however: org.apache.wicket.RequestCycle detach SEVERE:

Re: How to open a popup in onSubmit() of a Form

2007-12-21 Thread Thomas Kappler
Do you know about org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow? It seems to do almost what you want, or at least you can look at the source. Cheers, Thomas On Dec 21, 2007 9:56 AM, thomas jaeckle <[EMAIL PROTECTED]> wrote: > > Hi again. > I found a solution, but it isn't very

Re: Dynamically adding text fields

2007-12-27 Thread Thomas Kappler
On Dec 26, 2007 11:32 PM, Ken Anderson <[EMAIL PROTECTED]> wrote: > > I have a use case that will require the user to add multiple text fields to a > form using an add button. See this wiki page: http://cwiki.apache.org/WICKET/forms-with-dynamic-elements.html Have a list of text fields, create a

Get from input from a ModalWindow

2008-01-22 Thread Thomas Kappler
Hi, I have a ModalWindow with a form, having some dropdown choices and text fields. It should be simple, but I can't get the user input when the window is closed. There is no domain model object behind the form, I just need a list of Strings from the form, although I could, of course, make up a

Re: listView sorting question

2008-01-24 Thread Thomas Kappler
On Jan 23, 2008 10:35 PM, Beyonder Unknown <[EMAIL PROTECTED]> wrote: > The use case is that, I have a page that renders a listview, and I need to > add a link that sorts the list when clicked. My listView uses > LoadableDetachableModel that retrieves data using hibernate backend. In my current

Re: Get from input from a ModalWindow

2008-01-24 Thread Thomas Kappler
Hi Stefan, it was indeed a problem with the models involved there. It looked fine to me, so I suspected the modal window, and that wiki page I linked also gave me the impression that there was something with modal windows in that regard, but I should have checked first in an ordinary page. Thank

Override external .properties for localization

2008-02-12 Thread Thomas Kappler
Hi, my question seems trivial, but I just can't find anything: how to localize a page or panel that's not my own, but is in a referenced library (like Wicket itself)? For instance, I'd like to have a German version of UserAdminPage in databinder (which provides String resources), so I would write

Re: Can i add multiple lines to a node-link in tree?

2008-02-22 Thread Thomas Kappler
Hi Per, did you try using a wicket.markup.html.basic.MultiLineLabel? If your tree nodes have more than one component, encapsulate them into a Panel and return instances of that from BaseTree.newNodeComponent(String id, IModel model). Cheers, Thomas --

Re: Can i add multiple lines to a node-link in tree?

2008-02-27 Thread Thomas Kappler
On Wed, Feb 27, 2008 at 2:55 PM, Newgro <[EMAIL PROTECTED]> wrote: > i got it now with the multilinelabel. The text i add to a node contains an > \n. But i only see one row. I experimented a bit with the css, but i can't > get the tree node to show me 2 lines. I just tried it, it works for me.

Re: Mounting dynamic URLs

2008-02-27 Thread Thomas Kappler
Hi Martjin, Nathan has implemented that in his "Recipe Book" example app: http://databinder.net/recipe. Have a look at the first constructor of RecipeBook. Thomas On Wed, Feb 27, 2008 at 4:31 PM, Martijn Lindhout <[EMAIL PROTECTED]> wrote: > Hi All, > > How do I mount a friendly URL with a d

Re: Can i add multiple lines to a node-link in tree?

2008-02-28 Thread Thomas Kappler
On Thu, Feb 28, 2008 at 10:54 AM, Newgro <[EMAIL PROTECTED]> wrote: > firstly sorry if i brought you to the wrong way - i use a treetable, not a > tree. My effects on code below is that the nodes are diplayed only in one > row. The second row is not visible. OK, I have never used TreeTable, an

Re: Can i add multiple lines to a node-link in tree?

2008-02-29 Thread Thomas Kappler
On Fri, Feb 29, 2008 at 12:25 PM, Newgro <[EMAIL PROTECTED]> wrote: > > I exchanged the tree-table by tree and have the same problem. > Can you please provide me a little example how you did this? Extend BaseTree and let newNodeComponent() return a MultiLineLabel. My code here is more complex an

Re: How to view Set like ListView uses List

2008-03-01 Thread Thomas Kappler
Hi, you need a repeater. See http://wicketstuff.org/wicket13/repeater/ for examples. Thomas On Sat, Mar 1, 2008 at 2:01 PM, wiki <[EMAIL PROTECTED]> wrote: > > Hi I have a set of questionaires > I know how to display List of Quesitonaires > { > List a=user.getQuestionaire(); > ListView

Re: Dynamically adding component and associated markup

2008-03-03 Thread Thomas Kappler
Hi, can't you just add the popup to the page, set it to invisible, and let the onmouseover behaviour trigger setVisible()? If parts of the pop up are dynamic, you could solve this with encapsulating the variable part in a panel and replace that when handling the event. Cheers, Thomas On Mon, Ma

Re: Sorting a list

2008-03-06 Thread Thomas Kappler
databinder has MoveUpButton and MoveDownButton, which do the job in ListViews. If you don't use databinder, you can still have a look at the source. databinder.net Cheers, Thomas On Thu, Mar 6, 2008 at 6:35 PM, jeredm <[EMAIL PROTECTED]> wrote: > > I should have been more clear that I need to

Re: A link-o-label needed

2008-03-14 Thread Thomas Kappler
On Fri, Mar 14, 2008 at 3:26 PM, James Carman <[EMAIL PROTECTED]> wrote: > Yeah, the output would be something like: > > > > off the top of my head. You might want to tell the "label" to just > render its body, also. What do you mean with the last sentence? I add labels to links all the time

Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread Thomas Kappler
+1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

MultiFileUpload: Update page for each file

2008-03-17 Thread Thomas Kappler
Hi all, I'm using the MultiFileUploadField on a page derived from the example one http://wicketstuff.org/wicket13/upload/multi. Now I'd like to show the progress, but not of the upload itself, as the files are not that big. Instead, the time consuming part is some processing that is done for eac

Enable ghosting in wicketstuff-scriptaculous

2008-03-18 Thread Thomas Kappler
Hi, first of all, sorry if this is the wrong list, but AFAIK there's no wicketstuff ML and the JIRA doesn't list the scriptaculous component as a project. We wanted ghosting (http://wiki.script.aculo.us/scriptaculous/show/Draggable) in our wicketstuff-scriptaculous enabled drag'n'drop, but it's n

Re: Enable ghosting in wicketstuff-scriptaculous

2008-03-18 Thread Thomas Kappler
nnek <[EMAIL PROTECTED]> wrote: > > Hey, thanks for the patch. > > > > The only reason it wasn't added is that no-one had requested it. =) > > i'll be happy to apply the patch and push out a new release ASAP. > > > > Thanks again! &

Re: Trees and DnD?

2008-03-26 Thread Thomas Kappler
On Wed, Mar 26, 2008 at 1:50 AM, James Carman <[EMAIL PROTECTED]> wrote: > Is there a way to enable drag-n-drop in a Wicket tree? Our users have > a usecase where they want to be able to build a hierarchical list of > "stuff" and they want to be able to move stuff around easily and > reorder no

Re: Trees and DnD?

2008-03-26 Thread Thomas Kappler
On Wed, Mar 26, 2008 at 3:04 PM, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > > We're currently working on it. We use wicketstuff-scriptaculous, and > > so far it seems to work, but some things are still missing. > > Please let me know if you run into anything that's "missing". Sorry, I meant mis

Re: Trees and DnD?

2008-03-26 Thread Thomas Kappler
On Wed, Mar 26, 2008 at 3:27 PM, James Carman <[EMAIL PROTECTED]> wrote: > On Wed, Mar 26, 2008 at 9:04 AM, Thomas Kappler <[EMAIL PROTECTED]> wrote: > > We're currently working on it. We use wicketstuff-scriptaculous, and > > so far it seems to work, b

Getting position of elements in a ListView

2007-12-04 Thread Thomas Kappler
Hi all, I use a ListView holding Components to implement a dynamic form, i.e., where the user can add and remove DropDownChoices herself. (See http://cwiki.apache.org/WICKET/forms-with-dynamic-elements.html.) Now, a problem is the removal of elements when the user clicks the "remove" link next t

PropertyModel implementing IComponentInheritedModel

2008-07-05 Thread Thomas Kappler
Hi, if I haven't overlooked something, there's no variant of PropertyModel implementing IComponentInheritedModel. IComponentInheritedModel demands only one method, wrapOnInheritance. Looking at the implementation of CompoundPropertyModel, wrapOnInheritance does nothing but return an AttachedCompo

Re: PropertyModel implementing IComponentInheritedModel

2008-07-06 Thread Thomas Kappler
Thanks, Johan. Perhaps I wasn't clear enough about the motivation. On Sun, Jul 6, 2008 at 6:51 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > Why should the propertymodel be an inherited? Well, to have model sharing. So why not just use a CPM? Because it has another difference to PM: you don't

Re: PropertyModel implementing IComponentInheritedModel

2008-07-07 Thread Thomas Kappler
that. Thanks, Thomas > On Mon, Jul 7, 2008 at 8:59 AM, Maurice Marrink <[EMAIL PROTECTED]> wrote: > >> Have you seen BoundCompoundPropertyModel? >> >> It sounds like you are looking for that behavior. >> >> Maurice >> >> On Sun, Jul 6, 2008

Nasty problem with "component not found" and images [solved]

2010-01-27 Thread Thomas Kappler
markup is only inserted for actual images solved it. Maybe that was really dumb, but I thought I'd share it for the mailing list archive. -- Thomas -- ------- Thomas Kapplerthomas.kapp...@isb-sib.ch

Re: images not under the context root directory

2010-01-27 Thread Thomas Kappler
et.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- ------- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics Tel: +41 22 379 51 89 CMU, rue Michel Servet 1 1211

Re: Nasty problem with "component not found" and images [solved]

2010-01-28 Thread Thomas Kappler
e: Thomas, as someone who frequently likes trying "really dumb things" -- I appreciate you giving a heads up on this issue. I was likely going to run into this at some point anyway ;) On Wed, Jan 27, 2010 at 3:46 AM, Thomas Kappler wrote: Earlier this month, there was a thread [1] about

Re: know the last page user comes from

2010-01-28 Thread Thomas Kappler
about Component.continueToOriginalDestination() ? -- Thomas -- --- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics Tel: +41 22 379 51 89 CMU, rue Michel Servet 1 1211 Geneve 4 Switze

Re: know the last page user comes from

2010-01-28 Thread Thomas Kappler
d.value())) { if (!continueToOriginalDestination()) setResponsePage(getApplication().getHomePage()); ... The continueToOriginalDestination() gets the user to where the RestartResponseAtInterceptPageException was thrown. HTH, Thomas -Original Message- From: Thomas Kappler

Re: java heap space IAuthorizationStrategy

2010-01-29 Thread Thomas Kappler
ks, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- --- Thomas Kapplert

Re: Nasty problem with "component not found" and images [solved]

2010-01-29 Thread Thomas Kappler
r src="#", too. -- Thomas -- ------- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics Tel: +41 22 379 51 89 CMU, rue Michel Servet 1 1211 Geneve

Re: Trying to pass object to server side

2010-01-29 Thread Thomas Kappler
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- ------- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics

Re: component .... not found on page

2010-02-03 Thread Thomas Kappler
described a week or so ago :-) Empty image sources cause page reloads. -- --- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics Tel: +41 22 379 51 89 CMU, rue Michel Servet 1

Re: webapp authentication

2010-02-03 Thread Thomas Kappler
than this. What security problems do you see here? Either the database can authenticate this user/password combination, or it can't. -- Thomas -- --- Thomas Kapplerthomas.kapp...@isb-sib.ch

Re: Question about WicketTester and using my class which extends WebApplication

2010-02-25 Thread Thomas Kappler
-- --- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics Tel: +41 22 379 51 89 CMU, rue Michel Servet 1 1211 Geneve 4 Switzerland http

Re: ListView + dynamic database Model

2010-03-02 Thread Thomas Kappler
otected void populateItem(ListItem item) { item.getModelObject(); /*<- new list, and new list, and new list.. :( } }; -- --------

Re: Interaction behavior / site

2010-03-12 Thread Thomas Kappler
ltipPanel and try it out, what happens? -- Thomas -- ------- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics Tel: +41 22 379 51 89 CMU, rue Michel Servet 1 1211 Geneve

Re: Looking for a less chatty auto-complete component?

2010-03-15 Thread Thomas Kappler
urn Collections.emptyList().iterator(); } -- ----------- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics Tel: +41 22 379 51 89 CMU, rue Michel Servet 1 1211 Geneve 4 Switzerland

Re: Type Inference for Wicket 1.4

2010-04-15 Thread Thomas Kappler
unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- ----------- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics

Re: Combo Box (help!)

2010-05-06 Thread Thomas Kappler
>return (String) array; >else if(array.getClass().isArray()) >{ >String[] result = (String[]) array; >return result[0]; >} > else >throw new RuntimeException("Huh?"); >} > }); > > -- -

Re: Wicket "vendor lockin" and backwards compatibility, 1.4/1.5

2010-05-21 Thread Thomas Kappler
homas -- --- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics Tel: +41 22 379 51 89 CMU, rue Michel Servet 1 1211 Geneve 4 Switzerland http://www.unipro

Re: Docu/Examples of Models and Generics in Wicket 1.4?

2010-06-25 Thread Thomas Kappler
Model, T must be the type of the model object, for instance. Please ask some more specific questions if you have any. Cheers, Thomas -- ----------- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institu

Re: OutOfMemoryError PermGen Space...

2010-07-23 Thread Thomas Kappler
by chance using String.intern()? That is a candidate for filling up the PermGen space. As Andreas noted, the stack trace can be completely irrelevant to the reason for running out of memory. -- Thomas -- --- Thom

Re: A beginner's tutorial

2010-08-05 Thread Thomas Kappler
7;s useful. Thomas -- ----------- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics Tel: +41 22 379 51 89 CMU, rue Michel Servet 1 1211 Geneve 4 Switzerland ht

Re: announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-21 Thread Thomas Kappler
BDB for DB4O? -- Thomas -- ------- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics Tel: +41 22 379 51 89 CMU, rue Michel Servet 1 1211 Geneve 4 Switzerland

Re: The Long, Long Dependency Trail

2010-09-23 Thread Thomas Kappler
It worked without problems. Sometimes simple is better. Of course, if you need a ton of other libraries, it may get too complicated. -- Thomas -- ----------- Thomas Kapplerthomas.kapp...@isb-sib.

Re: could not serialize the page java.lang.OutOfMemoryError: PermGen space

2010-10-13 Thread Thomas Kappler
rning Strings and for loaded classes. Google for more info. If you get "Could not reserve enough space for object heap" when starting up, you don't have enough memory on the machine. -- ----------- Thomas Kappler