Re: WicketTester and https

2010-09-01 Thread Kent Tong
is there a way to test Pages that have the @RequireHttps annotation? You can try http://wicketpagetest.sourceforge.net which should support https testing. -- Kent Tong Useful FREE software at http://www2.cpttm.org.mo/cyberlab/freeware

SV: Dynamically invoke a page object (Reflection?)

2010-09-01 Thread Wilhelmsen Tor Iver
Page page = new Wicket.createPageSomeHow(pageStr); Try reflection, e.g. Class.forName(pageStr).newInstance() for using a parameterless constructor. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Scripting language

2010-09-01 Thread james yong
Hi all, Can anyone recommends a scripting language that can be used with Wicket for productivity? Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Scripting-language-tp2402957p2402957.html Sent from the Wicket - User mailing list archive at

DropDownChoice - how to select default item

2010-09-01 Thread drf
I am having a problem that my DropDownChoice is not selecting the item I expect, only Choose one. Here is the code: ... private ListLong accountList = new ArrayListLong(); private Long selectedAccount; public AccountsDropDownChoice(String id, final Component component) { super(id);

Re: DropDownChoice - how to select default item

2010-09-01 Thread Sven Meier
Should be working fine. Are you sure you're showing the actual code, i.e. accountList vs accountsList ? BTW are you accounts really just represented as Longs? Regards Sven On 09/01/2010 01:15 PM, drf wrote: I am having a problem that my DropDownChoice is not selecting the item I expect,

Re: DropDownChoice - how to select default item

2010-09-01 Thread drf
Thanks No, it does not appear to be working I have an Account object, but for the dropdown display I am just extracting a list of Long values. Is that the correct thing to do? The accountList v accountsList is just a typing error in the email On Wed, Sep 1, 2010 at 2:26 PM, Sven Meier [via

RE: Dynamically invoke a page object (Reflection?)

2010-09-01 Thread Brown, Berlin [GCG-PFS]
So, just use reflection. OK. I thought there might have been some Wicket oriented utility. But I am OK with reflection. -Original Message- From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no] Sent: Wednesday, September 01, 2010 4:03 AM To: users@wicket.apache.org Cc: Berlin Brown

Re: Wicket Problem: Ajax request encoding

2010-09-01 Thread Altuğ Bilgin Altıntaş
I found solution for Glassfish just write sun-web.xml this ?xml version=1.0 encoding=UTF-8? !DOCTYPE sun-web-app PUBLIC -//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd; sun-web-app error-url=

Possible serialization issue on a server

2010-09-01 Thread Brown, Berlin [GCG-PFS]
We have this code working on jetty but not working on Tomcat. I was thinking there might have been a serialization issue where code is serialized on the server and the class data doesn't get updated. Is it possible that class files are serialized on the Server. How would I check where Wicket

ajax links produce too long javascript

2010-09-01 Thread Vladimir Kovalyuk
Consider this javascript generated by AjaxFallbackLink: wicketShow('overlapping-div');var wcall=wicketAjaxGet('../../?x=Gusbl7hNSWOo5OPifLRHlQ',function() { ;wicketHide('overlapping-div');}.bind(this),function() { ;wicketHide('overlapping-div');}.bind(this), function() {return Wicket.$('link8f')

Re: Dynamically invoke a page object (Reflection?)

2010-09-01 Thread Arjun Dhar
Use setResponsePage(newPageClassName(params)); params depends on the Constructor of the WebPage class extension. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamically-invoke-a-page-object-Reflection-tp2402302p2403066.html Sent from the Wicket - User mailing

Radio buttons in modal window in IE6

2010-09-01 Thread Grafas
Hi all, We have few radio buttons put in a form in a modal window. And we have a problem with them. When IN IE6 form in modal window is submitted we always get firstly added radio button to the group. ... From form = new Form(form, new CompoundPropertyModel(new SearchModel())); add(form);

Re: DropDownChoice - how to select default item

2010-09-01 Thread Michael O'Cleirigh
Hello, You should use a DropDownChoiceAccount and use the constructor that takes an IChoiceRendererAccount which allows you to define: 1. the text that is output for the account 2. the value that is output in the html for the account. This would be the place to pull out the long. I think

Re: DropDownChoice - how to select default item

2010-09-01 Thread drf
Mike Thanks - not sure if the problem is with the fact that the code is in the constructor: 1) the In Action book seems to setup dropdowns ect in the constructor - where else would I define the drop down? 2) the debugger and syout both show that selectedAccount has the correct value prior to

Re: Scripting language

2010-09-01 Thread Sigmar Muuga
It depends, what do you want to do. If you want to develop your site in some scripting language, then use php or rails instead. I have seen groovy in some projects build scripts. Sigmar On Wed, Sep 1, 2010 at 2:10 PM, james yong i_yon...@yahoo.com.sg wrote: Hi all, Can anyone recommends a

Re: DropDownChoice - how to select default item

2010-09-01 Thread Sven Meier
Hi, your dropdown accesses the selected account via a model, so it should work regardless when you initialize the selectedAccount variable. Put a breakpoint on that line and check the return value of getDefaultAccount(). BTW using ModelAccount and IChoiceRenderer gives you some advantages

session timeout notification using cometd

2010-09-01 Thread fachhoch
I want to notify clients about their session timeout.If the user is idle and his session is about to expire I want to warn users about this , can I do this with wicket-cometd ? -- View this message in context:

Re: ajax links produce too long javascript

2010-09-01 Thread Pedro Santos
https://cwiki.apache.org/WICKET/wicket-15-ajax.html On Wed, Sep 1, 2010 at 9:32 AM, Vladimir Kovalyuk koval...@gmail.com wrote: Consider this javascript generated by AjaxFallbackLink: wicketShow('overlapping-div');var wcall=wicketAjaxGet('../../?x=Gusbl7hNSWOo5OPifLRHlQ',function() {

Re: session timeout notification using cometd

2010-09-01 Thread jcgarciam
You indeed can use wicket-cometd on that, but why not setting a simple Javascript timer on the page (set to your server-timeout configuratin) which get reset on user interaction. On Wed, Sep 1, 2010 at 11:21 AM, fachhoch [via Apache Wicket]

Re: DropDownChoice - how to select default item

2010-09-01 Thread drf
have a breakpoint on that line - getDefaultAccount returns what I expect On Wed, Sep 1, 2010 at 5:21 PM, Sven Meier [via Apache Wicket] ml-node+2403250-1365512862-65...@n4.nabble.com wrote: Hi, your dropdown accesses the selected account via a model, so it should work regardless when you

Re: DropDownChoice - how to select default item

2010-09-01 Thread T Ames
Mike may have been referring to the usage of this when he was talking about the constructor. I create drop downs in constructors with no issue, I have not however used a this with a property model. Wild guess: possibly java is in the process of constructing the object, but DropDownChoice cannot

Re: session timeout notification using cometd

2010-09-01 Thread fachhoch
I can do that, do you have any examples for java script notification when session is about to timeoout ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/session-timeout-notification-using-cometd-tp2403249p2403332.html Sent from the Wicket - User mailing list archive

Re: Scripting language

2010-09-01 Thread James Carman
You might want to try Scala/Wicket. Do some googling for Scala AND Wicket. On Wed, Sep 1, 2010 at 7:10 AM, james yong i_yon...@yahoo.com.sg wrote: Hi all, Can anyone recommends a scripting language that can be used with Wicket for productivity? Regards, James -- View this message in

Re: DropDownChoice - how to select default item

2010-09-01 Thread Sven Meier
Of course you can use this inside the constructor. I've thrown together the following example and it works (of course): public class AccountPage extends WebPage { private ListLong accountList = new ArrayListLong(); private Long selectedAccount; public AccountPage() {

Re: Remove support for Portlets in Wicket 1.5

2010-09-01 Thread Paul Szulc
-1 On Wed, Aug 11, 2010 at 8:35 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, I just created a ticket (https://issues.apache.org/jira/browse/WICKET-2976 ) to remove the support for Portlets in Wicket 1.5. It is currently broken because of the re-work of WicketFilter and request

Re: Remove support for Portlets in Wicket 1.5

2010-09-01 Thread James Carman
Usually -1 votes should be accompanied by a justification if you want them to be considered seriously. Why are you voting -1? On Wed, Sep 1, 2010 at 11:06 AM, Paul Szulc paul.sz...@gmail.com wrote: -1 On Wed, Aug 11, 2010 at 8:35 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, I just

Re: session timeout notification using cometd

2010-09-01 Thread jcgarciam
Here is a very rough example, keep in mind there a several factors that can reset the timeout to happen in the server and then you need to reset your timer in the client, the most troublesome to handle are ajax interaction and iframe. So assuming you don't have any ajax component or iframe on

Re: Scripting language

2010-09-01 Thread Peter Thomas
On Wed, Sep 1, 2010 at 8:31 PM, James Carman ja...@carmanconsulting.com wrote: You might want to try Scala/Wicket.  Do some googling for Scala AND Wicket. Also, there is a Groovy + Wicket version of the hotel booking demo app here (SVN):

Re: ajax links produce too long javascript

2010-09-01 Thread Igor Vaynberg
that should be renamed to wicket-later, not happening in 1.5 -igor On Wed, Sep 1, 2010 at 7:32 AM, Pedro Santos pedros...@gmail.com wrote: https://cwiki.apache.org/WICKET/wicket-15-ajax.html On Wed, Sep 1, 2010 at 9:32 AM, Vladimir Kovalyuk koval...@gmail.com wrote: Consider this javascript

Re: Scripting language

2010-09-01 Thread James Carman
On Wed, Sep 1, 2010 at 11:34 AM, Peter Thomas ptrtho...@gmail.com wrote: Done as an experiment a long time ago though, in a big hurry. Personally, I didn't like the combination of Groovy + Wicket, for reasons mentioned in the Scala + Wicket StackOverflow link below. Others may have different

Re: Scripting language

2010-09-01 Thread Peter Thomas
On Wed, Sep 1, 2010 at 9:08 PM, James Carman ja...@carmanconsulting.com wrote: On Wed, Sep 1, 2010 at 11:34 AM, Peter Thomas ptrtho...@gmail.com wrote: Done as an experiment a long time ago though, in a big hurry. Personally, I didn't like the combination of Groovy + Wicket, for reasons

Re: Scripting language

2010-09-01 Thread Ben Tilford
It depends how much time you want to take to learn the language. With Groovy you don't have to know anything but Java to start with and can learn more about the language as needed or interested. Scala is nothing like Java or any other language. The issues Groovy had with inner classes almost all

Re: Scripting language

2010-09-01 Thread James Carman
On Wed, Sep 1, 2010 at 11:50 AM, Ben Tilford bentilf...@gmail.com wrote: Whats better is going to come down to what your  comfortable with, willing to learn, and if squeezing a couple milliseconds of performance matters or not. That's one of the key points I think folks need to think about

Re: Scripting language

2010-09-01 Thread Peter Thomas
On Wed, Sep 1, 2010 at 9:20 PM, Ben Tilford bentilf...@gmail.com wrote: It depends how much time you want to take to learn the language. With Groovy you don't have to know anything but Java to start with and can learn more about the language as needed or interested. Scala is nothing like Java

Re: Scripting language

2010-09-01 Thread Thomas Singer
Just curious: what makes you think that using a scripting language makes you more productive than using Java? Do you mean productivity in the first two days or in the long run? Tom On 01.09.2010 13:10, james yong wrote: Hi all, Can anyone recommends a scripting language that can be used

RE: Scripting language

2010-09-01 Thread Brown, Berlin [GCG-PFS]
I would like to point out that Scala is far from what one might consider a dynamic scripting language. I haven't tried it, but you may see if Clojure works with Wicket. That has some of the attributes where you can embed clojure into a java application and change code on the fly. Scala would

Re: ajax links produce too long javascript

2010-09-01 Thread Pedro Santos
https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax+rewriting On Wed, Sep 1, 2010 at 12:34 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: that should be renamed to wicket-later, not happening in 1.5 -igor On Wed, Sep 1, 2010 at 7:32 AM, Pedro Santos pedros...@gmail.com wrote:

Re: DropDownChoice - how to select default item

2010-09-01 Thread andrea del bene
Hi drf! Have you checked the generated HTML? Is there any 'selected' attribute in your option tags? I am having a problem that my DropDownChoice is not selecting the item I expect, only Choose one. Here is the code: ... private ListLong accountList = new ArrayListLong(); private Long

any examples for nexus like tabs

2010-09-01 Thread fachhoch
the nexus repository browsers has all tabs any link opens in a new tab are there any examples of that kind in wicket? here a link for nexus repossitory https://repository.jboss.org/nexus/index.html#view-repositories -- View this message in context:

RE: Scripting language

2010-09-01 Thread muhdazwa
Try scala. Some people tried and it work. -original message- Subject: Re: Scripting language From: Sigmar Muuga meedi...@gmail.com Date: 01/09/2010 10:08 PM It depends, what do you want to do. If you want to develop your site in some scripting language, then use php or rails instead. I have

How to get form submit to return to previous page?

2010-09-01 Thread Chris Colman
I have a form/page that can be invoked from different pages so I can't easily specify which page should be returned to after submit. Given that the simple javascript code: history.go(-1) takes the user 'back' to the previous page I was wondering if I could somehow set up an IRequestTarget that

Re: How to get form submit to return to previous page?

2010-09-01 Thread Igor Vaynberg
you would create one that would write out some html like htmlheadscripthistory.go(-2);/script/headbody//html -igor On Wed, Sep 1, 2010 at 4:26 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I have a form/page that can be invoked from different pages so I can't easily specify which page

Re: How to get form submit to return to previous page?

2010-09-01 Thread Chris Merrill
On 9/1/2010 7:26 PM, Chris Colman wrote: I have a form/page that can be invoked from different pages so I can't easily specify which page should be returned to after submit. When I needed to do this, I passed the original page into the page constructor where it was passed to the onSubmit()

Re: How to get form submit to return to previous page?

2010-09-01 Thread Igor Vaynberg
do not pass the page, pass the page reference, see page#getpagereference() -igor On Wed, Sep 1, 2010 at 6:21 PM, Chris Merrill ch...@webperformance.com wrote: On 9/1/2010 7:26 PM, Chris Colman wrote: I have a form/page that can be invoked from different pages so I can't easily specify which