Adding components to Pages based on conditionals

2009-04-17 Thread Subramanian Murali
Hi, I am a new wicket user. How do we include / exclude content or components in pages based on conditions. What is the equivalent in Wicket to the if tag in the JSTL tag library? The reason i ask this question is because irrespective of whether i add the component in the page, i need to have the

Re: Adding components to Pages based on conditionals

2009-04-17 Thread Vladimir K
Try EmptyPanel component which is shipped with Wicket. if (condition) add(new YourVisibleComponent(componentId)); else add(new EmptyPanel(componentId)); Do not forget about OOD. You can introduce createYourVisibleComponent() method which creates empty panel in base class and some certain

Re: [OT] Wicket spirited conference?

2009-04-17 Thread Linda van der Pal
Well we could just set a date somewhere in the future and just organize something. I have no idea how large the Wicket community in the Netherlands is (I'm guessing the numbers were a bit skewed at the one meeting I was at, due to international guests who attended ApacheCon). But if the group

Re: Adding components to Pages based on conditionals

2009-04-17 Thread Emond Papegaaij
Personally, I think, it is much more elegant to call setVisible on the component you want to display or hide, or, when the outcome of the condition can change on each render, override isVisible to return the outcome of the condition. Emond Papegaaij On Friday 17 April 2009 08:50:21 Vladimir K

Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread Peter Gardfjäll
Thanks Igor, the suggested workaround seems to work fine. However, it is not enough to just override the attachFocusEvent function -- you also need to deregister the previously registered function. I did as follows (I apologize for the lack of elegance, I'm not a js expert): if (typeof(Wicket)

Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread Johan Compagner
Buttons and links dont make much sense yes. Dont remember why we should do this. Will check the code On 16/04/2009, Igor Vaynberg igor.vaynb...@gmail.com wrote: this code is there so we can track focus and properly restore it after ajax modifies the dom. i am not sure why we need to track and

Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread Matej Knopp
Well, it kinda does. You can submit the links and buttons with keyboard - and when you do it does make sense to preserve focus when you replace the submitting button or link. -Matej On Fri, Apr 17, 2009 at 9:48 AM, Johan Compagner jcompag...@gmail.com wrote: Buttons and links dont make much

Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread Peter Gardfjäll
I have written a simple WicketAjaxJsPatch Behavior which simply adds the aforementioned javascript to the page. In our application, we have several pages that suffer from the same problem. It would be tedious to have to update all of these pages one-by-one. So is there any way for me to add this

Re: [OT] Wicket spirited conference?

2009-04-17 Thread nino martinez wael
For me it had to have some sessions etc, I'll be happy to on something. But otherwise it's hard to justify.. regadrs Nino 2009/4/17 Linda van der Pal lvd...@heritageagenturen.nl: Well we could just set a date somewhere in the future and just organize something. I have no idea how large the

AbstractAjaxTimerBehavior start

2009-04-17 Thread Vladimir Zavada
Hi, is there a way to start AbstractAjaxTimerBehavior after onSubmit event of AjaxButton, which is on the same page? Thx in advance. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: [OT] Wicket spirited conference?

2009-04-17 Thread Linda van der Pal
If you want sessions, a sponsor will have to be found for a room (and a beamer). nino martinez wael wrote: For me it had to have some sessions etc, I'll be happy to on something. But otherwise it's hard to justify.. regadrs Nino 2009/4/17 Linda van der Pal lvd...@heritageagenturen.nl:

Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread James Carman
Did that code actually work for you? I tried adding this js, but i couldn't get it to show up in the correct place. And, when I did, it didn't seem to improve much. Care to share your code? 2009/4/17 Peter Gardfjäll peter.gardfj...@gmail.com: I have written a simple WicketAjaxJsPatch Behavior

Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread Peter Gardfjäll
Sure, here goes. I have added both the java and the js file to the same Java package: WicketAjaxJsPatch.java == /** * {...@link IBehavior} that should be added to {...@link Page}s that need to prevent * the page load performance penalty incurred when wicket-ajax.js traverses

Re: [OT] Wicket spirited conference?

2009-04-17 Thread nino martinez wael
True.. 2009/4/17 Linda van der Pal lvd...@heritageagenturen.nl: If you want sessions, a sponsor will have to be found for a room (and a beamer). nino martinez wael wrote: For me it had to have some sessions etc, I'll be happy to on something. But otherwise it's hard to justify.. regadrs

Re: [OT] Wicket spirited conference?

2009-04-17 Thread nino martinez wael
Yup.. So anyways, in order to justify the trip for the company (I do not know at current time if the budget will be approved). There has to be a minimum of serious content :) regarding dates it has to be after summer in my case. regards Nino 2009/4/17 Linda van der Pal

Re: jboss + ear + wicket

2009-04-17 Thread Francis De Brabandere
application.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN http://java.sun.com/dtd/application_1_3.dtd; application display-nameupdater-ear/display-name description.../description module web

Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread James Carman
2009/4/17 Peter Gardfjäll peter.gardfj...@gmail.com: Sure, here goes. I have added both the java and the js file to the same Java package: You da man! Thank you very much! That's a pretty slick trick you did by extending the ajax behavior superclass so that the ajax javascript files get

nesting table problem

2009-04-17 Thread Jeroen Verhagen
Hi all, I'm new to Wicket and there's a problem to which I have not found a solution yet: I want to nest tables. So add a table to a cell of a table. When I add a dynamically generated DataTable to a cell in its populateItem() method Wicket does render a table in the cell but its surrounding

Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread James Carman
Okay, since this code does show that the problem is with the focus stuff and we have conflicting goals here, what are we going to do to move forward? Obviously, the IE JS engine is way too darn slow to handle this code. Is there some optimization we can do here? Should we file a JIRA? Is there

[poll] Interest in regular Deventer Wicket meetup?

2009-04-17 Thread Martijn Dashorst
I want to poll if there is an interest in a regular Wicket meetup in Deventer, the Netherlands. We can only host at most ~20 people, so I expect this to be much lower key than the Amsterdam meetups. If there is an interest, I'll prod my employer to see if they are willing to help with space,

Re: [OT] Wicket spirited conference?

2009-04-17 Thread John Armstrong
Somewhat on this topic, are there any gatherings of wicket folk in the Bay Area (San Francisco)? John- On Fri, Apr 17, 2009 at 4:31 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Yup.. So anyways, in order to justify the trip for the company (I do not know at current time if the

Re: [poll] Interest in regular Deventer Wicket meetup?

2009-04-17 Thread Linda van der Pal
-1 I'd love to come, but I live near Amsterdam, so it would be two hours by train for me. Not quite feasible. Linda. Martijn Dashorst wrote: I want to poll if there is an interest in a regular Wicket meetup in Deventer, the Netherlands. We can only host at most ~20 people, so I expect this

Re: [poll] Interest in regular Deventer Wicket meetup?

2009-04-17 Thread Yiannis Mavroukakis
Sounds grand, some of us in the UK might even make it, seeing as you didn't bring in any of that wonderful beer, or your pgp key to sign our PDF editions of Wicket in Action :-P :-P Ioannis. Martijn Dashorst wrote: I want to poll if there is an interest in a regular Wicket meetup in

Re: Checkbox tree component

2009-04-17 Thread CrocodileShoes
Hi guys, I've been fighting with trees for a week now and nearly have it doing what I require. However there is one thing I can't figure out. -My tree is build using data from an external source. -When I click a checkbox in the tree my tree model is completely restructured based upon data from

Re: AbstractAjaxTimerBehavior start

2009-04-17 Thread Tom Wollert
Hi there, Couldn't you just add the AbstractAjaxTimerBehavior to the page/component after you receive the ajax call from the onSubmit event and then update the component using the ajax request target? (untested, but I don't see a reason why it wouldn't work. could imagine that this solution might

@SSLRequired

2009-04-17 Thread Douglas Ferguson
I'm implement an SSL scheme using annotations and I'm having some issues with redirecting properly. The issue is when I have non-secured page that redirects to a secured page. I'm doing the https/http redirecting inside of a WebRequestCycleProcessor, which works well unless there is a redirect

Re: @SSLRequired

2009-04-17 Thread Ryan Gravener
maybe this is of use: http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson doug...@douglasferguson.us wrote: I'm implement an SSL scheme using annotations

RE: @SSLRequired

2009-04-17 Thread Douglas Ferguson
That's where I got my code.. I'm hitting 2 issues 1) The ssl detection/redirect isn't happening till the end of the chain and when it redirects it redirects back to the top. Ie. Page 1 is not secure, Page 2 is secure. Page one redirects to Page 2. If you go to page 1 then it

Re: @SSLRequired

2009-04-17 Thread Ryan Gravener
How about just having apache httpd rewrite the http(s) for the pages you need? I haven't yet did our ssl implementation, but I know that I don't want the logic in wicket. Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Fri, Apr 17, 2009 at 11:27 AM, Douglas

Re: AbstractAjaxTimerBehavior start

2009-04-17 Thread Vladimir Zavada
Thanks for reply. I am just newbie to wicket. I tried this solution but it did not work. Probably its because AbstractAjaxTimerBehavior is not a component and I am not able to set setOutputMarkupId to true. Vlado Tom Wollert wrote / napísal(a): Hi there, Couldn't you just add the

Wicketstuff artwork..

2009-04-17 Thread nino martinez wael
I've idle for some time so my hands are itching to code again. I'll be implementing Nifty Corners Cube soon.. If you have further suggestions or improvements, please come with them now, i'll consider them and possibly implement it :) regards Nino

Re: @SSLRequired

2009-04-17 Thread Igor Vaynberg
i just checked in org.apache.wicekt.protocol.https package that should help with this. its in 1.4 only. -igor On Fri, Apr 17, 2009 at 8:52 AM, Ryan Gravener r...@ryangravener.com wrote: How about just having apache httpd rewrite the http(s) for the pages you need?  I haven't yet did our ssl

Resuming a request cycle

2009-04-17 Thread Adam Wenocur
Is it possible to resume a request cycle by submitting a web request using only a URL? Ideally, we would like retrieve a unique identifier from the session or request cycle and include this value in a web request from a remote client in order to gain access to session parameters. Thanks,

Re: nesting table problem

2009-04-17 Thread Igor Vaynberg
put it into a panel and add the panel to the item -igor On Fri, Apr 17, 2009 at 6:04 AM, Jeroen Verhagen jeroenverha...@gmail.com wrote: Hi all, I'm new to Wicket and there's a problem to which I have not found a solution yet: I want to nest tables. So add a table to a cell of a table. When

Re: Validation of multiple textfield in a dynamic ListView

2009-04-17 Thread Igor Vaynberg
override form.onvalidate() -igor On Fri, Apr 17, 2009 at 7:05 AM, Thierry Leveque tleve...@gmail.com wrote: Hi I have a validation problem that I can figure out how to do: I have build a dynamic table for the user to enter data into text fields. I am using the ListView component and some

Re: Resuming a request cycle

2009-04-17 Thread nino martinez wael
should be just give state a uuid and save it.. Then when the request comes in load it again... But how do you know when to save it? Just all the time? And what will the session contain? 2009/4/17 Adam Wenocur weno...@genome.chop.edu: Is it possible to resume a request cycle by submitting a web

RE: @SSLRequired

2009-04-17 Thread Douglas Ferguson
Is 1.4 ready for prime-time? If not, is there anything I could cull from that code for 1.3.5? Or any other thoughts that might help? Douglas -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Friday, April 17, 2009 12:38 PM To: users@wicket.apache.org

RE: @SSLRequired

2009-04-17 Thread Douglas Ferguson
Would rewrite work with the wicket's ability to forward to a instantiated Page? Douglas -Original Message- From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of Ryan Gravener Sent: Friday, April 17, 2009 10:52 AM To: users@wicket.apache.org Subject: Re: @SSLRequired How

Re: @SSLRequired

2009-04-17 Thread Igor Vaynberg
see org.apache.wicket.protocol.https package -igor On Fri, Apr 17, 2009 at 11:40 AM, Douglas Ferguson doug...@douglasferguson.us wrote: Is 1.4 ready for prime-time? If not, is there anything I could cull from that code for 1.3.5? Or any other thoughts that might help? Douglas

Re: Resuming a request cycle

2009-04-17 Thread Adam Wenocur
The session contains a stored query to which we'd like the user to have access from a second location, within a few seconds of establishing the initial request cycle. How would I go about saving the state and assigning it a uuid? This might work, as there is a particular WebPage that is

Re: AbstractAjaxTimerBehavior start

2009-04-17 Thread Daniel Toffetti
Vladimir Zavada zavadav at gmail.com writes: Thanks for reply. I am just newbie to wicket. I tried this solution but it did not work. Probably its because AbstractAjaxTimerBehavior is not a component and I am not able to set setOutputMarkupId to true. Vlado Tom Wollert wrote /

Re: @SSLRequired

2009-04-17 Thread Jeremy Thomerson
Yes - 1.4 is stable enough for production. It is getting very near a final release. Many are already using it in production (I am on numerous apps) and have been for some time now. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Apr 17, 2009 at 1:40 PM, Douglas Ferguson

Re: @SSLRequired

2009-04-17 Thread Igor Vaynberg
there are a couple of api-breaking refactors coming though, like the generics thing for listview. -igor On Fri, Apr 17, 2009 at 12:08 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Yes - 1.4 is stable enough for production.  It is getting very near a final release.  Many are already

Re: @SSLRequired

2009-04-17 Thread Douglas Ferguson
Where cab I view it online I don't see it in the javadoc Douglas Ferguson 512-293-7279 Sent from my iPhone On Apr 17, 2009, at 1:52 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: see org.apache.wicket.protocol.https package -igor On Fri, Apr 17, 2009 at 11:40 AM, Douglas Ferguson

Re: Validation of multiple textfield in a dynamic ListView

2009-04-17 Thread Thierry Leveque
Ok, that is a good start. Now how do I access the form data within that method? Is there any documentation on that or any example? Thanks! Thierry Sent from Montreal, Quebec, Canada On Fri, Apr 17, 2009 at 14:22, Igor Vaynberg igor.vaynb...@gmail.comwrote: override form.onvalidate() -igor

Re: Resuming a request cycle

2009-04-17 Thread nino martinez wael
Make a custom request cycle, or make a special filestore..The thing to think about are how do you know if you need to save the state. It has a impact on system scalability todo this... However this are so far I can go, I havent played much with request cycles or filestores... regards Nino

Re: @SSLRequired

2009-04-17 Thread Jeremy Thomerson
Go to wicket.apache.org - in the left bar near the bottom there are links to the source repo and to the fisheye view. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Apr 17, 2009 at 2:30 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Where cab I view it online I don't see

Re: Validation of multiple textfield in a dynamic ListView

2009-04-17 Thread Igor Vaynberg
however you want. you have the object graph. you can either use a visitor to locate whatever components you want, or you can keep direct references, or you can use a visitor to broadcast an event. completely up to you. -igor On Fri, Apr 17, 2009 at 12:44 PM, Thierry Leveque tleve...@gmail.com

Re: jboss + ear + wicket

2009-04-17 Thread nino martinez wael
Hi Francis, I think I know the problem.. Remember what igor wrote a few days ago about the new maven eclipse:eclipse plugin not allowing html resources along in main java or test only in resources.. Anyway that seems the issue I've run into now on my ubuntu box. I get the exact same thing as you

Re: jboss + ear + wicket

2009-04-17 Thread nino martinez wael
Ahh I think it was Martijn.. and just a general maven thing perhaps.. 2009/4/17 nino martinez wael nino.martinez.w...@gmail.com: Hi Francis, I think I know the problem.. Remember what igor wrote a few days ago about the new maven eclipse:eclipse plugin not allowing html resources along in

Re: jboss + ear + wicket

2009-04-17 Thread nino martinez wael
anyhow applying Krasnays fix or was it Bill solved it : build plugins plugin artifactIdmaven-eclipse-plugin/artifactId version2.5.1/version /plugin /plugins /build 2009/4/17 nino martinez wael nino.martinez.w...@gmail.com: Ahh I think it was Martijn.. and just a

Re: jboss + ear + wicket

2009-04-17 Thread nino martinez wael
Nope not general.. However if you use a eclipse plugin to publish/deploy with It might be the case anyhow.. 2009/4/17 nino martinez wael nino.martinez.w...@gmail.com: Ahh I think it was Martijn.. and just a general maven thing perhaps.. 2009/4/17 nino martinez wael

Re: Lazy loading via AJAX on stateless pages?

2009-04-17 Thread Martin Grotzke
Hello, can somebody help with this? Thanx cheers, Martin On Mon, 2009-04-13 at 12:16 +0200, martin.grot...@javakaffee.de wrote: Hi, I'm currently evaluating how it's possible to have stateless pages with some information loaded asynchronously via AJAX. I found these postings that are

Google Analytics and Wicket

2009-04-17 Thread Mariana Bustamante
Hello, I'm trying to use Google Analytics with my web application made using Wicket. The layout of my application is like this: I have a global plage called homePage that contains some panels inside. One of the panels is a menu which is completely made in java code using Wicket, the other

Re: Lazy loading via AJAX on stateless pages?

2009-04-17 Thread Igor Vaynberg
you cannot use wicket ajax facilities as they are designed for stateful pages - the link that wicket uses for ajax callback is inherently stateful. what you can do is write javascript yourself using jquery, or something else to perform an ajax callback to some url you control and then replace

Re: Google Analytics and Wicket

2009-04-17 Thread nino martinez wael
If you use markup inheritance just drop it in the parent page.. And there you go.. :) If not.. Well this is a good reason to start :) Works like a snug for my applications 2009/4/17 Mariana Bustamante marian...@gmail.com: Hello, I'm trying to use Google Analytics with my web application made

Re: Lazy loading via AJAX on stateless pages?

2009-04-17 Thread Martin Grotzke
Wow, very fast response! Is it possible to use wicket concepts like RequestTarget and Behavior on the serverside? I'd like to have this integrated with wicket as much as possible. Cheers, Martin On Fri, 2009-04-17 at 14:55 -0700, Igor Vaynberg wrote: you cannot use wicket ajax facilities as

Re: Google Analytics and Wicket

2009-04-17 Thread Mariana Bustamante
Is there any other method that doesn't mean many changes in my application?? Everything is already working fine and adding Google Analytics was supposed to be one the final details.. I was thinking of something like adding the javascript manually into my panels, I tried this on the panel to test

RE: @SSLRequired

2009-04-17 Thread Douglas Ferguson
Ok.. I had a chance to look at the code. It will have the same problem as my code. 1) Page1 (doesn't require https) Page2 (requires https) I load Page1 and it detects a situation that requires it to load Page2. The redirect is done inside wicket using setResponsePage(page2) The

Re: Lazy loading via AJAX on stateless pages?

2009-04-17 Thread Igor Vaynberg
sure, you can use behaviors and requesttargets of whatever kind. just make sure nothing on your page calls urlfor(component, interface) - this is what causes the page to be stateful. -igor On Fri, Apr 17, 2009 at 3:14 PM, Martin Grotzke martin.grot...@javakaffee.de wrote: Wow, very fast

Re: @SSLRequired

2009-04-17 Thread Igor Vaynberg
huh? if you call setresponsepage(new page2()) this will not create a bookmarkable page request target, if it did then these kinds of links wouldnt work regardless of http or https. -igor On Fri, Apr 17, 2009 at 3:35 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Ok.. I had a chance to

changing style of ajax link

2009-04-17 Thread Jason Novotny
Hi, I have code to create an ajax link and I want it to dynamically adjust its css class when clicked. This doesn't work since I don't think the onComponentTag is being called. final AjaxLink link = new AjaxLink(navlink) { @Override public void

Re: Google Analytics and Wicket

2009-04-17 Thread Brill Pappin
I'm not sure its going to work like that because as far as the browser is concerned (where google analytics runs) it's one seamless page. in other words your panels are only separate as a means to easy development and maintenance but not as visible http requests. That would be true of pretty

Re: Google Analytics and Wicket

2009-04-17 Thread Janos Cserep
Hi Mariana, Yes, with __trackPageview you can pretty much achieve what you want to do. In your menu component you probably change the panels by instantiating and replacing a main panel inside your page, right? If yes, do something like this: public void onClick(AjaxRequestTarget target) { //

Re: sessionsize of requestlogger

2009-04-17 Thread Bernard
It is tempting to use references of previous pages. But I understand that passing references between pages and page serialization don't mix nicely http://mail-archives.apache.org/mod_mbox/wicket-dev/200903.mbox/%3c2e1ce7cd0903030143h4a525b8cu46915c799061a...@mail.gmail.com%3e What would be the

Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread Jason Lea
Wicket.Focus.attachFocusEvent is very slow in IE compared to FireFox. At first I thought attaching an event was slow, but it seems to be just iterating over the list of elements returned by document.getElementsByTagName takes forever. FF would take 17 ms, IE 900ms for a test page with 1200

Re: sessionsize of requestlogger

2009-04-17 Thread Igor Vaynberg
On Fri, Apr 17, 2009 at 5:49 PM, Bernard b...@actrix.gen.nz wrote: I prefer not to instantiate a page with a non-default constructor because it breaks if the user reloads it. How do we pass parameters between pages except via query strings which I try to avoid for various reasons? can you

Re: changing style of ajax link

2009-04-17 Thread Jeremy Thomerson
try something like this: onClick(AjaxRequestTarget art) { art.appendJavascript(document.getElementById(' + getMarkupId() + ').className='yourcssclass'); } -- Jeremy Thomerson http://www.wickettraining.com On Fri, Apr 17, 2009 at 5:57 PM, Jason Novotny novo...@gridsphere.orgwrote: Hi, I

Re: changing style of ajax link

2009-04-17 Thread James Carman
Couldn't you use an AttributeModifier behavior? The value of the attribute can be obtained from a model. Just make sure you update the link itself inside the onClick() On Fri, Apr 17, 2009 at 11:30 PM, Jeremy Thomerson jer...@wickettraining.com wrote: try something like this:

Re: Checkbox tree component

2009-04-17 Thread Edi
Hello Doug, I am not able to configure the above example Doug. Could you give me .war file. please thanks and regards, edi -- View this message in context: http://www.nabble.com/Checkbox-tree-component-tp13433102p23109331.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: changing style of ajax link

2009-04-17 Thread James Carman
By the way, I tested this out and it works. Just use a model that you can change (perhaps a property model) in your onClick() method. On Fri, Apr 17, 2009 at 11:41 PM, James Carman jcar...@carmanconsulting.com wrote: Couldn't you use an AttributeModifier behavior?  The value of the attribute