Re: [Wicket-user] wicket + eclipse

2005-08-23 Thread Joni Suominen
On Wed, 2005-08-24 at 08:53 +0200, Juergen Donnerstag wrote: > I used to eclipse update link to install it on eclipse 3.1M3. Now > eclipse doesn't start anymore. It points me to an error log full of > exceptions. As eclipse doesn't start anymore I've no clue how to > revert back. Which eclipse vers

Re: [Wicket-user] wicket + eclipse

2005-08-23 Thread Juergen Donnerstag
I used to eclipse update link to install it on eclipse 3.1M3. Now eclipse doesn't start anymore. It points me to an error log full of exceptions. As eclipse doesn't start anymore I've no clue how to revert back. Which eclipse version are you using? Juergen On 8/24/05, Joni Suominen <[EMAIL PROTEC

[Wicket-user] What about a wicket-announce maillist?

2005-08-23 Thread Erik van Oosten
The traffic on this list is way up and above my reading capacity. Still I'd hate to miss the announcements. So, what do you think? Erik. --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Fr

Re: [Wicket-user] wicket + eclipse

2005-08-23 Thread Joni Suominen
On Wed, 2005-08-24 at 08:36 +0200, Johan Compagner wrote: > so if i am reading this right, You also do the: > > code, compile, deploy, debug/test, stop and then -> co...? > > Why is everybody doing that? It is so immensely waste of time !! > > Deploy only once or whenever the jvm really can't ha

[Wicket-user] Re: wicket + eclipse

2005-08-23 Thread Eelco Hillenius
I really like the idea of being able to look at a component on itself. Bit like a bean edit panel. Eelco On 8/24/05, Joni Suominen <[EMAIL PROTECTED]> wrote: > On Tue, 2005-08-23 at 16:44 -0500, Jonathan Carlson wrote: > > I'm sorry for the stupid question. Feel free to ignore it. I'm trying >

Re: [Wicket-user] CSS and visibility in DreamWeaver

2005-08-23 Thread Juergen Donnerstag
Another alternativ is , though the current version in CVS is flawed for none-html, but has already been fixed on my laptop. Wicket will than create the necessary Link components at runtime for you. So the css file and images remain in the directory of your java or html file, keeping previewability

Re: [Wicket-user] wicket + eclipse

2005-08-23 Thread Johan Compagner
so if i am reading this right, You also do the: code, compile, deploy, debug/test, stop and then -> co...? Why is everybody doing that? It is so immensely waste of time !! Deploy only once or whenever the jvm really can't handly the hotswap of a class (when you add or remove a instance variab

Re: [Wicket-user] IPageable

2005-08-23 Thread Johan Compagner
ok 0 vor getPageCount() and then -1 for not displaying pages What to do if PageCount > 0 and currentPage == -1 (then don't display pages but everything, because you don't want to see a page?) johan Christian Essl wrote: I think pagecount should be able to be 0 (if really no data is there.. y

[Wicket-user] Wicket in top 100 projects of SourceForge!

2005-08-23 Thread Martijn Dashorst
Date (UTC) Rank Total Pages 1 Downloads Project Web Hits Tracker opened (closed) Forum Posts 24 Aug 2005 * 93 658 43 5,642 0 (0) 0 23 Aug 2005 118 3,490 320

Re: [Wicket-user] NoSuchMethodError when setting a Model?

2005-08-23 Thread Johan Compagner
almost everytime you have this means that somehow it finds a much older wicket.jar first. If at compile everything goes ok. Then it has to be that on runtime it finds different classes. johan Gwyn Evans wrote: Hi, Just to see if anyone's got any suggestions... I've got my app working happ

Re: [Wicket-user] wicket + eclipse

2005-08-23 Thread Joni Suominen
On Tue, 2005-08-23 at 16:44 -0500, Jonathan Carlson wrote: > I'm sorry for the stupid question. Feel free to ignore it. I'm trying > to monitor the list and do real work at the same time. (Wicket is my > off-hours passion) No, problem at all, Wicket is currently my off-hours passion too. Hopef

Re: [Wicket-user] javascript and divIds

2005-08-23 Thread flemming
Thank Eelco for the suggestion...I have a look at it. /Flemming Eelco Hillenius wrote: Or, if you want to set it programatically, you can attach an AttributeModifier to it, like: WebMarkupContainer c = new WebMarkupContainer("foo"); IModel replacementModel = new Model("divId"); c.add(new A

[Wicket-user] IModel - wiki addition

2005-08-23 Thread Christian Essl
As Igor has pointed out IModels are sometimes more like model-locators and not what ie a Swing user would expect from a model. To explain more explicitly what an IModel is I've added a paragraph to http://wicket.sourceforge.net/wiki/index.php/Models. Maybe someone is intrested and can read/ed

Re: [Wicket-user] Log4j question

2005-08-23 Thread Gili
Nevermind. Got it. My brain is a bit foggy this evening. Gili Gili wrote: I'm not familiar with log4j so please enlighten me, why do we do Log.isDebugEnabled() before Log.debug() in the Wicket code? If you log a debug message and debug logging isn't enabled nothing will happen

RE: [Wicket-user] Log4j question

2005-08-23 Thread Igor Vaynberg
It's the other way around If (log.isdebugenabled()) is a lot faster then creating another stack frame for the function, passing in the arguments, etc. Besides with branch predictors its there is virtually no performance loss. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mai

[Wicket-user] Log4j question

2005-08-23 Thread Gili
I'm not familiar with log4j so please enlighten me, why do we do Log.isDebugEnabled() before Log.debug() in the Wicket code? If you log a debug message and debug logging isn't enabled nothing will happen anyway. Isn't checking a waste? Gili -- http://www.desktopbeautifier.com/ ---

Re: [Wicket-user] Kickstart Problem

2005-08-23 Thread Phil Kulak
Is that label in a form? On 8/23/05, Eric Rodriguez <[EMAIL PROTECTED]> wrote: > First of all, I apologize for the beginner question. I am fairly new to > Java and Wicket. > > I have download the Wicket Kickstart 1.0.1 today and I am having some > trouble. > The default Kickstart app worked fine

Re: [Wicket-user] CSS and visibility in DreamWeaver

2005-08-23 Thread Phil Kulak
What I've done is have all my HTML files in one folder (there was a topic on that recently) and then just copy stylesheets and images over to that folder for previewing. It's not very elegant, but the alternative is to have every single image and stylesheet handled by Wicket, which is a bit of a pa

Re: [Wicket-user] Inline error messages

2005-08-23 Thread Phil Kulak
Check out FormComponentFeedbackBorder, or you can do what I do and just make your own markup container like so (untested): public class ErrorIndicator extends WebMarkupContainer { FormComponent component; public ErrorIndicator(String id, FormComponent component) { super(id); thi

Re: [Wicket-user] IPageable

2005-08-23 Thread Christian Essl
I think pagecount should be able to be 0 (if really no data is there.. you are displaying the list yes,, but does it display a page??) Yes I think so too. if pagecount == 0 then currentPage should just be also 0 (setting it to -1 can be done in pageablelistview but it will directly be converte

[Wicket-user] Kickstart Problem

2005-08-23 Thread Eric Rodriguez
First of all, I apologize for the beginner question. I am fairly new to Java and Wicket. I have download the Wicket Kickstart 1.0.1 today and I am having some trouble. The default Kickstart app worked fine, however when I decided to add a Label to the page I got the following error:

[Wicket-user] CSS and visibility in DreamWeaver

2005-08-23 Thread Kenneth Foo
Hi Just curious, if my css files is in a web folder, but my htmls are in the same folder as my java classes, how do I make DreamWeaver apply the CSS style while editing the html? As far as I know, if I use something like this in my html Dreamweaver expects the CSS to be in the same folde

[Wicket-user] NoSuchMethodError when setting a Model?

2005-08-23 Thread Gwyn Evans
Hi, Just to see if anyone's got any suggestions... I've got my app working happily using the Jetty Start class, but now I create a WAR file & am trying it in a stand-alone Servlet Engine, I'm having a problem! What I'm seeing is a "Can't instantiate page..." because of a java.lang.NoSuchMeth

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Martijn Dashorst
Pff... this is the third time I need to send this message, my providers' smtp server has appeared on the black list of a spam blocker and no mail gets through to the sf.net mailinglist from my home account. :-S Anders, Don't get me wrong, I don't mean to be harsh, but I think you don't 'grok'

Re: [Wicket-user] IPageable

2005-08-23 Thread Johan Compagner
this still must be looked at I think pagecount should be able to be 0 (if really no data is there.. you are displaying the list yes,, but does it display a page??) You are right about that rowsPerPAge == 0, but that doesn't make any sense for PageableListView. So it is more a illegalstate if

[Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Anders Peterson
I don't know too much about the internals of Wicket, but I have opinions on how things should work. ;-) 1) Fail gracefully: I had problems with a Panel/Form today. I got a (Runtime) Exception as soon as it was rendered (which I couldn't prevent). I actually wanted to show an empty form - it w

Re: [Wicket-user] wicket + eclipse

2005-08-23 Thread Jonathan Carlson
I'm curious. What does it do? >>> [EMAIL PROTECTED] 2005-08-23 3:17:37 PM >>> Hi, I just created an experimental Wicket Eclipse plugin. Please check it out and see if it interests you. Installation instructions and a short description can be found from: http://www.laughingpanda.org/mediawiki/i

Re: [Wicket-user] wicket + eclipse

2005-08-23 Thread Jonathan Carlson
I'm sorry for the stupid question. Feel free to ignore it. I'm trying to monitor the list and do real work at the same time. (Wicket is my off-hours passion) --- I'm curious. What does it do? >>> [EMAIL PROTECTED] 2005-08-23 3:17:37 PM >>> Hi, I just created an experimental

Re: [Wicket-user] DatePicker and Wicket 1.1b3

2005-08-23 Thread Juergen Donnerstag
hopefully it does. Juergen On 8/23/05, Nick Heudecker <[EMAIL PROTECTED]> wrote: > Does beta3 fix the problems with DatePicker as well? This is > regarding the javascript not getting inserted into the head of the > rendered page. > > > --- >

Re: [Wicket-user] wicket:link problems

2005-08-23 Thread Juergen Donnerstag
please see the linkomatic example for the various links available. wicket:link is limited that the html must either be in the same directory, a subdirectory (subpackage) or you provide an absolute path like /mydir/my.html. Juergen On 8/23/05, pepone pepone <[EMAIL PROTECTED]> wrote: > Hello > >

RE: [Wicket-user] Question about DropDownChoice

2005-08-23 Thread Igor Vaynberg
I find it helps to think about wicket's Imodel hirarchy as model-locators. These classes exist to help the components locate your actual model objects. I always thought imodel was a bit of a misnomer. Hope this helps. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAI

RE: [Wicket-user] javascript and divIds

2005-08-23 Thread Igor Vaynberg
Each component also has a unique id in its relation to the page called a path, so if you don't want to bother with setting the id itself you can always use component.getpath() to get a unique id. Comes in handy in these types of situations. -Igor > -Original Message- > From: [EMAIL PROT

Re: [Wicket-user] wicket + eclipse

2005-08-23 Thread Eelco Hillenius
Woohoo! Nice to see people are picking up that as well! Unfortunately, I can't get on the net with Eclipse until this weekend. But I'm itching to try your plugin out! Cheers mate, Eelco On 8/23/05, Joni Suominen <[EMAIL PROTECTED]> wrote: > Hi, > > I just created an experimental Wicket Eclips

Re: [Wicket-user] Re: Pattern to update reusable panels

2005-08-23 Thread Eelco Hillenius
I haven't followed the whole discussion (lousy connectivity here in my hotel), but I'd like to give a note on one thing. While I started out using 'pull' models all the time, and letting all dynamic parts of the page - also heavily depending on the visible flag - I came back from that a bit. Someti

[Wicket-user] DatePicker and Wicket 1.1b3

2005-08-23 Thread Nick Heudecker
Does beta3 fix the problems with DatePicker as well? This is regarding the javascript not getting inserted into the head of the rendered page. --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Fr

Re: [Wicket-user] Question about DropDownChoice

2005-08-23 Thread Eelco Hillenius
Did you read http://wicket.sourceforge.net/wiki/index.php/Newuserguide and http://wicket.sourceforge.net/wiki/index.php/Models ? IModel is the base of all models. getObject(Component) and setObject(Component, Object) can be implemented any way you want. The Component argument is there to let you d

[Wicket-user] wicket + eclipse

2005-08-23 Thread Joni Suominen
Hi, I just created an experimental Wicket Eclipse plugin. Please check it out and see if it interests you. Installation instructions and a short description can be found from: http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench -- Joni Suominen <[EMAIL PROTECTED]> -

Re: [Wicket-user] javascript and divIds

2005-08-23 Thread Eelco Hillenius
Like I just answered (probably didn't come through yet): use an AttributeModifier. Eelco On 8/23/05, flemming <[EMAIL PROTECTED]> wrote: > Hi > > I will try with an example. > > Here is the example. and the javascript file which gets included on the > pages I want to use this panel/border. > >

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Eelco Hillenius
I actually agree we should allow nulls. We have had discussions about this in the past, but I'm definitively in the camp that wants to either fail right away if a value (null) is not allowed, or be flexible about what we support. Eelco On 8/23/05, Anders Peterson <[EMAIL PROTECTED]> wrote: > Igor

Re: [Wicket-user] javascript and divIds

2005-08-23 Thread Eelco Hillenius
Or, if you want to set it programatically, you can attach an AttributeModifier to it, like: WebMarkupContainer c = new WebMarkupContainer("foo"); IModel replacementModel = new Model("divId"); c.add(new AttributeModifier("id", true, replacementModel)); add(c); bar And, as you probably need some j

Re: [Wicket-user] javascript and divIds

2005-08-23 Thread flemming
Hi I will try with an example. Here is the example. and the javascript file which gets included on the pages I want to use this panel/border. Now the problem I have is that the Id of the DIV must match the id in the onclick in the Is there any way that I can set the id in the DIV from wick

[Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Anders Peterson
Igor Vaynberg wrote: Cant you just do new CompoundPropertyModel(new HashMap()) ? Yes Also check out the wicket.util.value.ValueMap helper class. StringValue seems useful! /Anders -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anders Peterson

Re: [Wicket-user] javascript and divIds

2005-08-23 Thread Gwyn Evans
Hi, I'm not sure I get what the issue might be, as (as I understand it) Wicket will leave the "id" tag alone, so you'd just set it in your component's HTML and it should get rendered intact? /Gwyn On 23/08/05, flemming <[EMAIL PROTECTED]> wrote: > Hi there > > First I would like to say that I

[Wicket-user] javascript and divIds

2005-08-23 Thread flemming
Hi there First I would like to say that I think Wicket Rocks. I am an old struts guy, so I can really see the advantages over struts. However some things are of course more easy to do with Struts than wicket. In struts I have made a custom tag that gives me a panel with a headline =

Re: [Wicket-user] Question about DropDownChoice

2005-08-23 Thread Gregg D Bolinger
Eelco, I've been scanning the wiki since you posted this and I just am not able to get a grasp from the doucmentation on Models in Wicket for what I want to do.  Can you explain a bit on how I would use the IModel interface to achieve what I want?  Thanks. GreggOn 8/22/05, Eelco Hillenius <[EMAIL

RE: [Wicket-user] ajax autocomplete text field

2005-08-23 Thread Ryan Sonnek
go right ahead. it belongs to wicket-stuff now, so please feel free to make changes where you see fit. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Phil Kulak Sent: Tuesday, August 23, 2005 1:28 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicke

Re: [Wicket-user] ajax autocomplete text field

2005-08-23 Thread Phil Kulak
I updated your source for the latest Wicket build and moved the stylesheet into the header. Do you mind if I commit that? On 8/22/05, Phil Kulak <[EMAIL PROTECTED]> wrote: > I would love it if you committed this somewhere or posted a formal jar > that I could play with. It would be nice if Wicket

RE: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Igor Vaynberg
Cant you just do new CompoundPropertyModel(new HashMap()) ? Also check out the wicket.util.value.ValueMap helper class. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Anders Peterson > Sent: Tuesday, August 23, 2005 10:48 AM > To: wicke

[Wicket-user] wicket:link problems

2005-08-23 Thread pepone pepone
Hello I using this code in a border component to create same bookmarkable links but i can't create links in this way to pages that are in other package because wicket only try to resove the page class in the same package ther are other way to link pages that are in a difrent java package?

[Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Anders Peterson
Hi, it's me agian... I just discovered that this works perfectly fine: Map tmpMap = new HashMap(); Ognl.setValue("testValue", tmpMap, new Integer(1)); Then couldn't CompoundProtertyModel have a Map as a default object (if allowing null objects is a problem)? /Anders Anders Peterson wrote:

[Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Anders Peterson
In case it wasn't clear... An NSDictionary instance will accept *any* ognl expression. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java Anders Peterson wrote: Hi, I have a background doing WebObjects (WO) programming. http://developer.apple.com/webobjects

[Wicket-user] Re: visible == redered

2005-08-23 Thread Anders Peterson
In my case rendering fails - throwing an excpetion - and does not allow me to continue. It seems now that the only way I can get this to work is to insert some sort of dummy object. This is really not what I was hoping for. Why can't wicket allow models with null objects? /Anders Johan Comp

Re: [Wicket-user] Re: visible == redered

2005-08-23 Thread Gili
If that's the case (rendered but goes nowhere) this sounds like a waste of cpu/memory :) Gili Johan Compagner wrote: ehmm it does get renderd.. Only the output doesn't get streamed (all rendering goes to a null output) I think we do that so that the markup advances correctly (the current

Re: [Wicket-user] Re: visible == redered

2005-08-23 Thread Johan Compagner
ehmm it does get renderd.. Only the output doesn't get streamed (all rendering goes to a null output) I think we do that so that the markup advances correctly (the current pointer) We should be able to skip a markup and set the markup stream correctly after the component that was not visible

[Wicket-user] KeyValueCoding and ProperyModel

2005-08-23 Thread Anders Peterson
Hi, I have a background doing WebObjects (WO) programming. http://developer.apple.com/webobjects/ WO contains an interface NSKeyValueCoding and a class NSDictionary that is essentially a Map that implements NSKeyValueCoding. http://developer.apple.com/documentation/WebObjects/Reference/API/c

[Wicket-user] Re: visible == redered

2005-08-23 Thread Eelco Hillenius
Yep. Also, I should do any model updates when it is part of a form, and it should not be reachable as a listener too, though I think that still is an open issue. Eelco On 8/23/05, Anders Peterson <[EMAIL PROTECTED]> wrote: > Hi, > > If I set a component to not visible "setVisible(false)" then th

[Wicket-user] visible == redered

2005-08-23 Thread Anders Peterson
Hi, If I set a component to not visible "setVisible(false)" then that component and any/all children should not get rendered - right? Just like confirmation before I submit a bug report. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java -

[Wicket-user] Re: Pattern to update reusable panels

2005-08-23 Thread Anders Peterson
Juergen Donnerstag wrote: What do you normally do? Having a panel that, in the same page, should display different things depending on what the user does must be a common design pattern. create different panels and enable/disable them. Say you have a list of Client objects displayed in one

Re: [Wicket-user] Re: Pattern to update reusable panels

2005-08-23 Thread Juergen Donnerstag
On 8/23/05, Anders Peterson <[EMAIL PROTECTED]> wrote: > Juergen Donnerstag wrote: > > > I'm not very fond of replacing the model object, but I guess sometimes > > it is the only or the better choice. > > What do you normally do? Having a panel that, in the same page, should > display different t

[Wicket-user] Re: Pattern to update reusable panels

2005-08-23 Thread Anders Peterson
Juergen Donnerstag wrote: I'm not very fond of replacing the model object, but I guess sometimes it is the only or the better choice. What do you normally do? Having a panel that, in the same page, should display different things depending on what the user does must be a common design patter

Re: [Wicket-user] Re: Pattern to update reusable panels

2005-08-23 Thread Juergen Donnerstag
I'm not very fond of replacing the model object, but I guess sometimes it is the only or the better choice. I do not know your application, but I guess I would go for a single model which contains all form component, whether set visible or not. And on submit propagate the information into proper bu

[Wicket-user] Re: Pattern to update reusable panels

2005-08-23 Thread Anders Peterson
I think it should be possible to create *PropertyModels with a null model argument - it would make things a lot easier. Getting the various properties should return null if the model is null, and corresponding labels, textfields or whatever are left empty. /Anders Anders Peterson wrote: Tha

[Wicket-user] IPageable

2005-08-23 Thread Christian Essl
Thanks Johan foor providing IPageable, it looks realy good. I just tried to implement it and had a border-line question: In case the list size is 0 should getPageCount() return 0 and getCurrentPage() return -1. Or does getPageCount() have to always return at least 1 and getCurrentPage() at leas

Re: [Wicket-user] Re: New Wicket Review/Tutorial Online

2005-08-23 Thread David Heffelfinger
I updated the tutorial based on the recommendations here and in JavaRanch. Thanks all for the feedback.  If you guys feel it is good enough to get a new Wicket user  started, I would appreciate some links to the article. The URL is http://ensode.net/wicket_first_look.html Thanks, David On 8/22/

[Wicket-user] Re: Pattern to update reusable panels

2005-08-23 Thread Anders Peterson
Thanks for answering! This is the route I've taken, but when/where/how do I create the models? Should I create the model in the initModel method - I trust it is not called as long as the component is invisible. Is replacing a model's object a "normal" thing to do? /Anders Juergen Donnerstag

Re: [Wicket-user] Re: Pattern to update reusable panels

2005-08-23 Thread Juergen Donnerstag
You could use setVisible(true/false). Create your markup and panel class with all the different data, assign a wicket:id to all tags to be either visible or not and control visibility by your java code. Juergen On 8/23/05, Anders Peterson <[EMAIL PROTECTED]> wrote: > Here's a more specific case..

[Wicket-user] Re: Pattern to update reusable panels

2005-08-23 Thread Anders Peterson
Here's a more specific case... A page conatins a panel. That panel should display different data depending on what the user does/selects in the main page, and initially there is nothing to display. How is something like this intended to be done? Is there an example of this? /Anders Anders P

Re: [Wicket-user] Multiple Sites with one wicket instance

2005-08-23 Thread Johan Compagner
don't know about style. Because then you will need different html files for the 2 sites. And i think Dan want to use the same html but slightly different text on some places (and some different urls to stylesheets and images) So it is more like a resource bundle, didn't chris make something for

Re: [Wicket-user] Wicket 1.1-beta 3 available for testing

2005-08-23 Thread Johan Compagner
PackageResourceReference and PackageResource, then added an Application parameter to each to make that explicit. Added IComponentInitializer method that is called in Application constructor for each class listed in META-INF/wicket-component-initializers.txt. This will allow component deve