Re: Component creation and initialization

2009-05-15 Thread Jeremy Thomerson
For your example (NavigationToolbar in DefaultDataTable) - just don't use DefaultDataTable. DDT is provided simply as a convenience with the most common features of a table. If it does not suit your needs, create your own subclass of DataTable that uses whatever features you want. You will see

Re: Component creation and initialization

2009-05-15 Thread Igor Vaynberg
by your own argument your own code will have to call your second-chance init constructor before invoking *any* method on the component. so instead of boolean visible=getMyComponent().isvisible(); you will have to now do Component c=getMyComponent(); if (!c.isinitted()) {c.initI(); } boolean

Re: Tree Table - Update Model

2009-05-15 Thread PDiefent
Hi Matej, is it possible to post a little example? -Peter Matej Knopp-2 wrote: In order for tree to update items your model must fire treeNodesChanged event. -Matej -- View this message in context: http://www.nabble.com/Re%3A-Tree-Table---Update-Model-tp23549640p23554149.html Sent

Re: Component creation and initialization

2009-05-15 Thread Vladimir K
I'm doing just right like you described. Probably I have to pay more attention to your comment about improper use of models. isVisible method should rely only on the component model. I some cases it is easier to delegate some calls to aggregated components. But instead I have to work with

Re: Component creation and initialization

2009-05-15 Thread Vladimir K
Igor, I didn't mean spreading this approach everywhere :) My intention was to draw your attention on that onBeforeRender probably is a good place to delay construction but should be used with extra care and some sort of simplification (more appropriate method) would be great. You turned it

Re: May be useful for projects deciding between JSF and Wicket

2009-05-15 Thread Vladimir K
Where you were two years ago? :) ptrthomas wrote: Hi, I blogged a fairly large collection of links to discussions about the issues with JSF in general. What prompted me to put this up is that I yet again failed to convince a team at work that Wicket should be chosen over JSF.

RE: May be useful for projects deciding between JSF and Wicket

2009-05-15 Thread jeroend
Hmm, Not sure if I can convince my boss (or maybe even me myself) by this blog entry. The title is subjective at best to start with and to open up with blog entries from 5 years ago is not giving it more credibility. I have worked with jsf (myfaces and icefaces) on 2 projects and to be honest I

RE: May be useful for projects deciding between JSF and Wicket

2009-05-15 Thread Vladimir K
even more ... the title sounds a bit vulgarly. But the arrangement of such links has a value itself. Especially for people who hasn't started a project yet. I would sort the list by date descending. The latest articles has more value than older. jeroend-2 wrote: ... The title is

Re: Illegal State Exception on DefaultTeeModel.removeNodeFromParent

2009-05-15 Thread Leena
Collapsing the node works :) +Leena -- View this message in context: http://www.nabble.com/Illegal-State-Exception-on-DefaultTeeModel.removeNodeFromParent-tp20185042p23556124.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Component creation and initialization

2009-05-15 Thread Vladimir K
The horse is pretty alive - https://issues.apache.org/jira/browse/WICKET-1134. Jeremy Thomerson-5 wrote: With regards to multiple wicket:extend tags - that is also an old, dead horse that doesn't need to be beat right now. The user list has a lot of discussion on it. The simplest way to

Re: Spring Security's method security and Wicket

2009-05-15 Thread James Carman
On Fri, May 15, 2009 at 5:02 AM, Kent Larsson kent.lars...@gmail.com wrote: The catching AuthenticationException and returning false is something I'm not familiar with. I don't think I've mentioned it? Please refresh my memory, maybe I have mentioned it. ;-) It would be in the authenticate

Re: Spring Security's method security and Wicket

2009-05-15 Thread Kent Larsson
The catching AuthenticationException and returning false is something I'm not familiar with. I don't think I've mentioned it? Please refresh my memory, maybe I have mentioned it. ;-) It would be in the authenticate method of mine.  If the exception is thrown, you'd need to return false. Ah,

Bookmarkable fallback ajax link

2009-05-15 Thread John
Hi, I want googlebot to be able to see content that is shown to normal browsers using ajax. I use a fallback ajax link but because googlebot does not use sessions the links need to be bookmarkable. The problem seems to be because the link contains an ajax behaviour it is considered

Re: Newbie-Problem: Wicket/Maven/Jetty: FileNotFoundException?

2009-05-15 Thread Erik van Oosten
Note that this is a maven problem. Apparently maven does not use the correct 'home' directory. You can override the home directory set by setting an environment variable. I think its called M2_REPO. Regards, Erik. Henrik schreef: I am very new to the Java-World and want to make a web

Re: objectautocomplete on a form with CompoundPropertyModel

2009-05-15 Thread nino martinez wael
hmm true, I think it's because it's ajax and actually get set before the form are submited. I agree it would be nice if it acted exactly like normal form, but I guess the way it are now allows much more flexibility, however it should be possible to do the other aswell. regards 2009/5/14 Brill

Re: Component creation and initialization

2009-05-15 Thread Clint Popetz
On Fri, May 15, 2009 at 12:07 AM, Jeremy Thomerson jer...@wickettraining.com wrote: Most java programmers know not to call overridable methods from the constructor as a general rule, although there are times when it could inadvertantly happen - which is why we need bug reports if you see that

Application scope vs Singleton

2009-05-15 Thread Alfredo Aleandri
Hi, I have a doubt about application-scoped objects. What's the pro and cons of setting an object instance into my WebApplication class or define that class as singleton (using a static method to access it) ? Thank you alf

wicket features security plans for next version... already ended?

2009-05-15 Thread manuelbarzi
Hi, at wicket features security there is a mention about: There are plans for the next version of Wicket to add URL encryption to support highly secure web sites. is this already ended? please, let me know asap, i am preparing an architecture documentation to justify wicket at this point.

wicket features security plans for next version... already ended?

2009-05-15 Thread manuelbarzi
Hi, at wicket features security there is a mention about: There are plans for the next version of Wicket to add URL encryption to support highly secure web sites. is this already ended? please, let me know asap, i am preparing an architecture documentation to justify wicket at this point.

wicket features scalability, clustering plans for next version... already ended?

2009-05-15 Thread manuelbarzi
hi, again regarding wicket features scalability, clustering there is a mention about: The next version of Wicket will support client-side models for zero-state scalability. is this already released? please, let me know asap. thank you.

Re: wicket features security plans for next version... already ended?

2009-05-15 Thread Johan Compagner
we already have url encryption (based on a session id as seed) On Fri, May 15, 2009 at 14:52, manuelbarzi manuelba...@gmail.com wrote: Hi, at wicket features security there is a mention about: There are plans for the next version of Wicket to add URL encryption to support highly secure

Re: wicket features scalability, clustering plans for next version... already ended?

2009-05-15 Thread Johan Compagner
nope that is dropped and isnt very likely implemented in a coming release On Fri, May 15, 2009 at 15:15, manuelbarzi manuelba...@gmail.com wrote: hi, again regarding wicket features scalability, clustering there is a mention about: The next version of Wicket will support client-side

Re: Application scope vs Singleton

2009-05-15 Thread James Carman
On Fri, May 15, 2009 at 9:01 AM, Alfredo Aleandri alfredo.alean...@logobject.ch wrote: Hi, I have a doubt about application-scoped objects. What is your doubt? What's the pro and cons of setting an object instance into my WebApplication class or define that class as singleton (using a static

Re: Application scope vs Singleton

2009-05-15 Thread Jan Torben Heuer
Alfredo Aleandri wrote: I have a doubt about application-scoped objects. What's the pro and cons of setting an object instance into my WebApplication class or define that class as singleton (using a static method to access it) ? Pro: Singletons are easy to use Contra: They make Unit tests

Re: Application scope vs Singleton

2009-05-15 Thread alf.redo
Hi James, I would like to know what is the difference between a Singleton class with a static accessor method and POJO stored into my WebApplication class (with proper getter). What is the preferred way to set an application scoped object? Thank you again... -- View this message in context:

Re: Component creation and initialization

2009-05-15 Thread Jeremy Thomerson
Documentation is always welcome. This is a very active list (one of the most active that I've seen with an open source project) where the core devs spend a lot of quality time answering questions. There's not enough hours in the day for us to also add that to documentation or provide everyone

Re: Application scope vs Singleton

2009-05-15 Thread Jeremy Thomerson
Use injection. The difference is that there is no way to override the implementation of the static accessor / singleton for testing functionality. If you instead use an IoC container (Spring / Guice) and injection, you are not statically tying yourself to a single class. Work off the interface,

Re: Bookmarkable fallback ajax link

2009-05-15 Thread Jeremy Thomerson
Is your Ajax link redirecting you to another page? Or is it swapping something out on the page? I suppose you could create a bookmarkable link and add the ajax behavior to it, but this seems counterintuitive because it is unlikely that you have an ajax link that is simply redirecting you to a

Re: Bookmarkable fallback ajax link

2009-05-15 Thread Igor Vaynberg
googlebot does not support cookies, so your container will add jsessionid into the url. so unless googlebot specifically ignores jsessionid (which doesnt look to be the case because there are plenty links in google with jsessionid) it should all work. -igor On Thu, May 14, 2009 at 9:19 AM, John

lazily loaded table structure?

2009-05-15 Thread Jan Torben Heuer
Hi, I want to display a table structure, however the data retrieving takes a certain time. Currently I use the AjaxLazyLoadPanel to display all results at once. But in future I'd like to to immediately display it on the page when it is retrieved. So I need some kind of table where I can add

Re: Bookmarkable fallback ajax link

2009-05-15 Thread Jeremy Thomerson
But you don't want URLs with jsessionid in Google's results. Multiple people can come into your site with the same session. -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 15, 2009 at 10:33 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: googlebot does not support cookies, so

Re: Application scope vs Singleton

2009-05-15 Thread James Carman
On Fri, May 15, 2009 at 11:26 AM, Jeremy Thomerson jer...@wickettraining.com wrote: Use injection.  The difference is that there is no way to override the implementation of the static accessor / singleton for testing functionality.  If you instead use an IoC container (Spring / Guice) and

Re: Component creation and initialization

2009-05-15 Thread Clint Popetz
On Fri, May 15, 2009 at 10:24 AM, Jeremy Thomerson jer...@wickettraining.com wrote:  Interestingly, in the long-standing defacto article on asking smart questions, the very first thing it says to do is to search the forums [1]. FWIW, I did search the list, before posting. I found a lot of

Re: Component creation and initialization

2009-05-15 Thread Jeremy Thomerson
I actually had to Google that one. But, yes, that is the general consensus that I've seen. If you wanted to write a page that showed the different ways that you mentioned, that would be fine. It really just depends on if you really need lazy component creation, and then how you want to

Re: Application scope vs Singleton

2009-05-15 Thread alf.redo
Thank you to all for your precious suggestions. My question is not for a real need. Supposing to discard the injection strategy, I would like to know if the cache of an object into my WebApplication class during application startup has the same result if I make this object Singleton (and not

Re: Application scope vs Singleton

2009-05-15 Thread James Carman
On Fri, May 15, 2009 at 12:18 PM, alf.redo alfredo.alean...@logobject.ch wrote: Thank you to all for your precious suggestions. My question is not for a real need. Supposing to discard the injection strategy, I would like to know if the cache of an object into my WebApplication class during

Re: Spring Security's method security and Wicket

2009-05-15 Thread James Carman
On Fri, May 15, 2009 at 8:24 AM, Kent Larsson kent.lars...@gmail.com wrote: Sounds like a nicer solution! I'll look into doing something like that myself, being a Wicket newbie it might take me a while though. Are there any examples of doing anything similar available somewhere? Well, I've

i am using weblogic 10.3

2009-05-15 Thread tubin gen
I read in previous post that if it is weblogic then its better to use wicket filter rather than wicket servlet and more over I am using open view session filter and as this filter order is important , please suggst me if I should go with wicket-servlet or wicket filter , I know

Re: i am using weblogic 10.3

2009-05-15 Thread James Carman
filter On Fri, May 15, 2009 at 3:21 PM, tubin gen fachh...@gmail.com wrote: I read in previous post that if it is weblogic then its better to use wicket filter  rather than wicket servlet   and more  over I am using open view session filter and as this   filter order is important , please

Re: error because of log4j from org.apache.wicket.Application

2009-05-15 Thread fachhoch
i updated this dependency to resolve dependency groupIdorg.slf4j/groupId artifactIdslf4j-api/artifactId version1.5.5/version /dependency previously i had 1.4 Lars Vonk wrote: You should also check your dependencies using the maven dependency plugin. Are

Re: i am using weblogic 10.3

2009-05-15 Thread fachhoch
is there an extension to wicket filter to get the application class from spring ? James Carman-3 wrote: filter On Fri, May 15, 2009 at 3:21 PM, tubin gen fachh...@gmail.com wrote: I read in previous post that if it is weblogic then its better to use wicket filter  rather than wicket

Re: i am using weblogic 10.3

2009-05-15 Thread fachhoch
sorry that wasa wrong question , my applicaqtion has the following filters 1st open-view-session-filter 2nd org.acegisecurity.util.FilterToBeanProxy 3rd wicket filter is this order proper ? fachhoch wrote: is there an extension to wicket filter to get the application class from

Re: i am using weblogic 10.3

2009-05-15 Thread James Carman
Check out my example application: http://svn.carmanconsulting.com/public/wicket-advanced/trunk That application does exactly what you are looking to do. It's got the spring security filter stuff all configured. On Fri, May 15, 2009 at 4:21 PM, fachhoch fachh...@gmail.com wrote: sorry that