Re: Wicket Visibility vs. CSS visibility

2008-05-17 Thread Johan Compagner
Many people expect that is the component is not visible also the models and the data ias not called or touched. Because there state cant be resolved correctly. Als security is depending on it, it can never be that some thing where security says it is not visible/cant render that is still renders

Re: Wicket tags and IE6

2008-05-17 Thread Frank Bille
What happens if you add the wicket namespace to the html tag? html xmlns:wicket=http://wicket.apache.org; Frank On Fri, May 16, 2008 at 7:33 PM, John Krasnay [EMAIL PROTECTED] wrote: I've just noticed a specific problem with Wicket tags interfering with IE6. I have a page that uses the

Re: Javascript + wicket

2008-05-17 Thread Timo Rantalaiho
On Fri, 16 May 2008, nanotech wrote: I want to know what are the different approaches that I can take in Wicket to solve this simple problem. Consider there are two radio buttons and they both have corresponding text fields in front of them. I want to enable /disable the other text fields

Re: after render using a behavior vs. override in the component

2008-05-17 Thread Eyal Golan
Isn't this is what I did? Anyway, here's an example of what I get. First: the Java code: public final class TestButtonPage extends WebPage { public TestButtonPage() { add(new ExtendingButton(extendingButton)); Button other = new Button(behavioralButton); other.add(new

Re: Nested form submission quirk/anomaly

2008-05-17 Thread Timo Rantalaiho
On Fri, 16 May 2008, Ritz123 wrote: I have a submit button on the main form and have a debug statement printed to indicate the form was submitted. Surprisingly there is no output both on onsubmit of the button as well as on the form, indicating neither I getting called. I put debug statements

Re: after render using a behavior vs. override in the component

2008-05-17 Thread Johan Compagner
No the after render of a component is called after the page render to clean up stuff. Just as onBeforeRender is called before the page is starting to render On 5/17/08, Eyal Golan [EMAIL PROTECTED] wrote: Isn't this is what I did? Anyway, here's an example of what I get. First: the Java code:

Controlling PagingNavigation

2008-05-17 Thread Mathias P.W Nilsson
Hi! I have subclassed PagingNavigator to delete the last and first element of the pager. Now I need some way of setVisible( false ) on prev and next if it is the first or last page. How can this be done. Altso. the current page is renderered em. Is it possible to have a current_page or

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-05-17 Thread Iman Rahmatizadeh
Or just copy WicketFilter into your source, and fix it there, it'll override the default. Its a quick fix until the release comes out. Iman On Fri, May 16, 2008 at 10:25 AM, Johan Compagner [EMAIL PROTECTED] wrote: Or get the snapshot build from or wicketstuff maven repo On 5/16/08, Erik van

Re: Wicket tags and IE6

2008-05-17 Thread John Krasnay
On Sat, May 17, 2008 at 09:57:13AM +0200, Frank Bille wrote: What happens if you add the wicket namespace to the html tag? html xmlns:wicket=http://wicket.apache.org; Frank I thought about that, but the page already has the declaration. jk On Fri, May 16, 2008 at 7:33 PM, John Krasnay

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-05-17 Thread Martijn Dashorst
I see a lot of folks recommending this, but nobody confirming this actually helps. Martijn On 5/17/08, Iman Rahmatizadeh [EMAIL PROTECTED] wrote: Or just copy WicketFilter into your source, and fix it there, it'll override the default. Its a quick fix until the release comes out. Iman

Re: Thread safety for components

2008-05-17 Thread Michael Allan
Brill Pappin wrote: Does that mean that under heavy load, hitting the index page for instance, I can expect clients to block as each request is processed? Let me guess... The answer is no? Each session will have its own instance of the index page. Threads of other sessions (other users) will

Re: Thread safety for components

2008-05-17 Thread Michael Allan
Jonathan Locke wrote: ... the overall design is single-threaded, meaning you should not need to provide synchronization ... Is there some specific problem you have run into? No, nothing specific yet - just a general foreboding of future problems - having been bitten, before. Johan Compagner

Re: Zip files containing ready to deploy wicketstuff examples

2008-05-17 Thread Erik van Oosten
Hi Blackbird, You can create a quickstart (http://wicket.apache.org/quickstart.html). A quickstart is the absolute minimal Wicket application. You'll need maven 2 installed. Regards, Erik. Blackbird schreef: Hi, are there zip files of each example available at wicketstuff? Some

Re: Wicket Visibility vs. CSS visibility

2008-05-17 Thread Kirk Israel
On Sat, May 17, 2008 at 2:46 AM, Johan Compagner [EMAIL PROTECTED] wrote: Many people expect that is the component is not visible also the models and the data ias not called or touched. Because there state cant be resolved correctly. Still seems a little odd to me. We're adding a component,

Re: Controlling PagingNavigation

2008-05-17 Thread Jeremy Thomerson
As far as the em, just call setAfterDisabledLink(final String afterDisabledLink) and setBeforeDisabledLink(final String beforeDisabledLink) to override the markup for a disabled link. Do it like this inside your overridden PagingNavigator: new PagingNavigator(null, null) {

Re: Controlling PagingNavigation

2008-05-17 Thread Jeremy Thomerson
Looking at the super.newPagingNavigationLink implementation, you could actually do this to address the handling first / last pages differently: new PagingNavigator(null, null) { private static final long serialVersionUID = 1L; @Override protected Link

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-05-17 Thread Martin Makundi
The workaround definitely catches some erroneous situations. Nevertheless, it is a workaround (does not solve the root problem). 2008/5/17 Martijn Dashorst [EMAIL PROTECTED]: I see a lot of folks recommending this, but nobody confirming this actually helps. Martijn On 5/17/08, Iman

Wicket java.lang.IllegalAccessError bug?

2008-05-17 Thread Martin Makundi
Hi! I just upgraded from 1.3.1 to 1.4-m1 and I received the strangest of errors. Has anyone had the same experience below? This occurs only with the ternary operator, probably because both elements get initialized at runtime: public class AnyPage extends WebPage { public AnyPage() { // I

Unnecessary exception?

2008-05-17 Thread Martin Makundi
Hi! Again, from ugrading 1.3.1 - 1.4-m1; I agree with another thread that the mode object contents should be allowed to change (the implementation survives both situations): http://mail-archives.apache.org/mod_mbox/wicket-dev/200704.mbox/[EMAIL PROTECTED] There is a setter anyways:

SqlDateConverter Wicket-735

2008-05-17 Thread Martin Makundi
Hi! There is a fixed version of the SqlDateConverter in the trunk, https://issues.apache.org/jira/browse/WICKET-735 This fix appars to be only in 1.3.0-beta4. Is there a reason why this has not been included in the latest builds? ** Martin

Re: SqlDateConverter Wicket-735

2008-05-17 Thread Martin Makundi
Ok. Now I know, it still has a bug ;) 2008-05-17 17:33:35,034 93204 [btpool0-8] ERROR RequestCycle - java.util.Date cannot be cast to java.sql.Date java.lang.ClassCastException: java.util.Date cannot be cast to java.sql.Date at

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-05-17 Thread Johan Compagner
It is not a workaround! The wicketfilter fix is a real fix for that situation. There is no root cause or real cause that i need to fix, at least not that i know of On 5/17/08, Martin Makundi [EMAIL PROTECTED] wrote: The workaround definitely catches some erroneous situations. Nevertheless, it

Re: SWARM Login

2008-05-17 Thread Maurice Marrink
Let me see if i understand you correct. If a user logs in to your site and then navigates away to a site/page not handled by your domain without logging off and thus keeping the session on the server. And then after a little while comes back to your domain (maybe he types the url again in the

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-05-17 Thread Martin Makundi
Ok. I meant the WicketServlet fix. Haven't seen the wicketFilter fix. ** Martin 2008/5/17 Johan Compagner [EMAIL PROTECTED]: It is not a workaround! The wicketfilter fix is a real fix for that situation. There is no root cause or real cause that i need to fix, at least not that i know of

Re: Wicket Visibility vs. CSS visibility

2008-05-17 Thread Maurice Marrink
I think everybody is missing the point that listview was intended to refresh itself entirely (all the items) on each render not just after a hide/show cycle. The reason for this is that you always want an up-to-date list. If you don't want this this behavior you can use setReuseItems(true); Or am

Re: Javascript + wicket

2008-05-17 Thread nanotech
thanks timo. Timo Rantalaiho wrote: On Fri, 16 May 2008, nanotech wrote: I want to know what are the different approaches that I can take in Wicket to solve this simple problem. Consider there are two radio buttons and they both have corresponding text fields in front of them. I

Re: SWARM Login

2008-05-17 Thread Jonathan Locke
I didn't understand this post either... maybe he's talking about automatic sign in with cookies? Mr Mean wrote: Let me see if i understand you correct. If a user logs in to your site and then navigates away to a site/page not handled by your domain without logging off and thus keeping

Re: Wicket Visibility vs. CSS visibility

2008-05-17 Thread Eelco Hillenius
On Sat, May 17, 2008 at 5:28 AM, Kirk Israel [EMAIL PROTECTED] wrote: On Sat, May 17, 2008 at 2:46 AM, Johan Compagner [EMAIL PROTECTED] wrote: Many people expect that is the component is not visible also the models and the data ias not called or touched. Because there state cant be resolved

Re: SWARM Login

2008-05-17 Thread greeklinux
Hello, you are right, Application.getHomePage() is not the user home. every user has a user home page. When user types the URL e.g. simpleurl.com, then he will see getHomePage(). If he logs in to his account, then he gets redirected to his user home. I only want that, if a user session is still

Re: Wicket Visibility vs. CSS visibility

2008-05-17 Thread Igor Vaynberg
why is this such a huge discussion? wicket works on markup level - it is a markup generator, so of course visible means whether or not something is visible in the markup. you are free to add whatever it is you want for css/javascript/etc, but it will not be part of core. we give you enough

Re: Wicket tags and IE6

2008-05-17 Thread Frank Bille
Then I don't really know. Perhaps file a bug report with Microsoft ;-) Frank On Sat, May 17, 2008 at 12:47 PM, John Krasnay [EMAIL PROTECTED] wrote: On Sat, May 17, 2008 at 09:57:13AM +0200, Frank Bille wrote: What happens if you add the wicket namespace to the html tag? html

Re: Nested form submission quirk/anomaly

2008-05-17 Thread Ritz123
I do have component filtered feedback panel and it does display the errors. But I guess I will put no filter feedback panel and see if that is the case. Timo Rantalaiho wrote: On Fri, 16 May 2008, Ritz123 wrote: I have a submit button on the main form and have a debug statement printed

Re: SWARM Login

2008-05-17 Thread Johan Compagner
But that is simple,just check in your real/default home page if the user is logged in. So yes throw a redirect exception to his homepage On 5/17/08, greeklinux [EMAIL PROTECTED] wrote: Hello, you are right, Application.getHomePage() is not the user home. every user has a user home page. When

RE: Thread safety for components

2008-05-17 Thread Brill Pappin
You don't need to convince me :) It even saves time between the designers and the programmers... My only complaint so far is that it hides a bit to much of the basic http stack which makes a bit harder to understand (for an old fart like me anyway) but I'm not experienced enough with it yet to

RE: Thread safety for components

2008-05-17 Thread Brill Pappin
I didn't know people were even following it :) I can tell you now that I only *wish* we had used something like Wicket for LobbyThem... Ruby on Rails was the biggest mistake we made as I can attest to 8 months after the event. In fact I think we'd be a lot further along now if we had used Wicket

RE: Thread safety for components

2008-05-17 Thread Brill Pappin
I was trying to think of a use-case for that problem... Do you have a specific use-case or is that just a potential issue you can think of? -Original Message- From: Michael Allan [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 9:00 PM To: users@wicket.apache.org Subject: Re:

RE: SWARM Login

2008-05-17 Thread Brill Pappin
I don't see what the problem is... If getHomePage detects that the user is already authenticated, why can't you simply issue a redirect to user_home? - Brill -Original Message- From: greeklinux [mailto:[EMAIL PROTECTED] Sent: Saturday, May 17, 2008 2:02 PM To: users@wicket.apache.org