Re: browser resolution info .. ClientProperties question

2012-05-02 Thread Dan Retzlaff
If you look into the extended browser info detection, you'll see the results of some JavaScript tests being submitted as a form, and saved in a session-scoped object for server-side use. Instead of using these results, you can use your own session-scoped information, and your own Wicket behavior

Status of wicketstuff jquery integration

2012-05-02 Thread Jesse Long
Hi All, I'm interested in using features of the jquery integration in wicketstuff, but it seems it is not being maintained. The version of jquery packaged with the wicketstuff-jquery jar seems to be 1.3.2, which is quite old already. Am I missing something? Is there a preferred way of

Re: Status of wicketstuff jquery integration

2012-05-02 Thread Josh Kamau
Hi Jesse? Add this to your list of options http://www.7thweb.net/ http://www.7thweb.net/jquery-ui-samples/ Josh. On Wed, May 2, 2012 at 11:48 AM, Jesse Long j...@unknown.za.net wrote: Hi All, I'm interested in using features of the jquery integration in wicketstuff, but it seems it is

Re: Status of wicketstuff jquery integration

2012-05-02 Thread Istvan Jozsa
Try this: http://code.google.com/p/jqwicket/ Allow high/low level jQuery/UI access. (sometimes low level JavaScripting is required). Tried all libraries you mentioned but JqWicket looks to be the most promising. To make my life easier I modified it, JQBehavior extends AbstractDefaultAjaxBehavior

Re: Status of wicketstuff jquery integration

2012-05-02 Thread Tom Eugelink
As a fairly newbie to Wicket I also found the JQuery integration most confusing (and have abandoned it for now). Too many projects trying to do the same, with only half a documentation and half of the components. IMHO, with Wicket 6 ready using jquery for its Ajax (as I understand it), it

Re: Inputing string instead of a double value in junit test case throws NumberFormatException

2012-05-02 Thread Andrea Del Bene
At first sight I would say that your problem could be related to a different Locale used during unit test. You should compare the output of 'myData.getAmount()' when is called during testing and when is called running on Jetty server. I have a integration test case: FormTester

generics

2012-05-02 Thread Tom Eugelink
I would like to suggest an API improvement in the fluent interface, which should not break backwards compatibility. Currently if you create, say, a mandatory FileUploadField, you cannot do this. /FileUploadField lFileUploadField = new FileUploadField(fileInput, ...).setRequired(true); /

constant strings

2012-05-02 Thread Tom Eugelink
The Wicket application I'm developing is an internal app which will only be available in English. In order to not unnecessarily bloat the code and the project, I'm often use hardcoded labels. I know this is not convention, but there is no reason for me to introduce a resource file and use the

Re: JsessionID breaking my DropDownChoice#onSelectionChanged

2012-05-02 Thread Fergal Keating
Hi, I havn't been able to recreate with a quickstart. Not sure why its appending the sessionID. #getContextRelativeUrl() is getting called correctly. So it must be elsewhere in application. I'll keep looking. Fergal. On 1 May 2012 18:21, Sven Meier s...@meiers.net wrote: Hi, I just verified

Form having error cannot be modified via Ajax

2012-05-02 Thread theAnthony
Hi, In my application, I'm developing a dynamic page with a table of currencies per dates and on the side I have a form with a 'from' date and 'to' date. Clicking on a cell of the table changes the value of the dates in the form. This works all fine as long as the form is valid. But if the form

pivot table in wicket

2012-05-02 Thread Decebal Suiu
Hi Has anybody implemented a (simple) pivot table in wicket? How can I store the pivot data (maybe a java library)? I want to create a simple pivot table in wicket with data retrieved from a database query. Any advice is welcome. Thanks, Decebal -- View this message in context:

Wicket ListMultipleChoice or DropDownChoice with code/decode

2012-05-02 Thread Brian Mulholland
For some reason I am finding that most Wicket examples have select box examples that offer single dimension arrays. But most lookup selection use cases I've ever encountered use a short key or 'code' that the user does not see, and then a longer descriptive 'decode' for the user. The classic

Re: Wicket ListMultipleChoice or DropDownChoice with code/decode

2012-05-02 Thread Sven Meier
Hi, take a look at FormInput.LocaleDropDownChoice or DropDownChoicePage in wicket-examples Sven On 05/02/2012 02:17 PM, Brian Mulholland wrote: For some reason I am finding that most Wicket examples have select box examples that offer single dimension arrays. But most lookup selection use

Re: Form having error cannot be modified via Ajax

2012-05-02 Thread Andrea Del Bene
Hi, what are you using to change form's values when user clicks on table (an Ajax behavior ?) ? Hi, In my application, I'm developing a dynamic page with a table of currencies per dates and on the side I have a form with a 'from' date and 'to' date. Clicking on a cell of the table changes the

Re: Form having error cannot be modified via Ajax

2012-05-02 Thread theAnthony
Indeed, I'm using an AjaxEventBehavior listening for onclick, in the onEvent method, I send an event which is intercepted by the form where the model of the form is changed and the elements to be refreshed are added to the AjaxRequestTarget. -- View this message in context:

Include Component

2012-05-02 Thread Bruce Pease
Good Morning: I am using the Wicket 1.4.14 release in a Tomcat 7 windows server. I am using the Include class to render a navigation panel. I would like to protect this call on the off chance that the file/url does not exist. Right now, the framework throws a file io exception, and the page

Re: constant strings

2012-05-02 Thread Eric Jablow
On Wed, May 2, 2012 at 7:47 AM, Tom Eugelink t...@tbee.org wrote: The Wicket application I'm developing is an internal app which will only be available in English. In order to not unnecessarily bloat the code and the project, I'm often use hardcoded labels. I know this is not convention, but

RE: Include Component

2012-05-02 Thread Bruce Pease
Sorry, that's Wicket version 4.1.15. From: Bruce Pease Sent: Wednesday, May 02, 2012 11:06 AM To: 'users@wicket.apache.org' Subject: Include Component Good Morning: I am using the Wicket 1.4.14 release in a Tomcat 7 windows server. I am using the Include class to render a navigation

Re: constant strings

2012-05-02 Thread Tom Eugelink
On 2-5-2012 17:07, Eric Jablow wrote: Actually, there are reasons to use resource files. If you use a label on more than one page, or even more than once on a single page, and if your application is changing as you develop it, you may want to change the text for a label, and you probably will

Re: constant strings

2012-05-02 Thread Igor Vaynberg
if it doesnt store anything then where would it get the value from when the second request needs to be processed? wicket components live across many requests. -igor On Wed, May 2, 2012 at 4:47 AM, Tom Eugelink t...@tbee.org wrote: The Wicket application I'm developing is an internal app which

Re: constant strings

2012-05-02 Thread Tom Eugelink
On 2012-05-02 17:16, Igor Vaynberg wrote: if it doesnt store anything then where would it get the value from when the second request needs to be processed? wicket components live across many requests. Don't know. That exactly was my question. Is it possible to not store constant values in

Re: Form having error cannot be modified via Ajax

2012-05-02 Thread Igor Vaynberg
call form.clearinput() after you change its model. otherwise form components will use their cached values instead of pulling from the form. -igor On Wed, May 2, 2012 at 7:19 AM, theAnthony anthony.ric...@gmail.com wrote: Indeed, I'm using an AjaxEventBehavior listening for onclick, in the

Re: constant strings

2012-05-02 Thread Igor Vaynberg
no. if you do not want to store the string then instead of a new Model use new AbstratReadOnlyModel(). -igor On Wed, May 2, 2012 at 8:25 AM, Tom Eugelink t...@tbee.org wrote: On 2012-05-02 17:16, Igor Vaynberg wrote: if it doesnt store anything then where would it get the value from when

Re: constant strings

2012-05-02 Thread Tom Eugelink
AH! Ok. Makes sense! Thanks. Tom On 2012-05-02 17:23, Igor Vaynberg wrote: no. if you do not want to store the string then instead of a new Model use new AbstratReadOnlyModel(). -igor - To unsubscribe, e-mail:

Re: deserialization - got nulll lastPage

2012-05-02 Thread Dan Retzlaff
Hi Dale, Wicket keeps the most recent page from each session in a deserialized state, in addition to writing it to disk. This is an optimization since most requests interact with only the most recent page. After restart, these deserialized pages will not be available, forcing Wicket to restore

Re: Include Component

2012-05-02 Thread Thomas Götz
import org.apache.wicket.markup.ComponentTag; import org.apache.wicket.markup.MarkupStream; import org.apache.wicket.markup.html.include.Include; import org.apache.wicket.model.IModel; public class MyInclude extends Include { public MyInclude(String id, IModelString model) {

Re: Unusual problem is coming in rendering component

2012-05-02 Thread Richard W. Adams
It means it's looking for a method called getPostTextField() in your model, but not finding one. From: kshitiz k.agarw...@gmail.com To: users@wicket.apache.org Date: 05/02/2012 02:08 PM Subject:Unusual problem is coming in rendering component Hi, I am trying to render a

Re: Unusual problem is coming in rendering component

2012-05-02 Thread Dan Retzlaff
I'd guess that you're using CompoundPropertyModel. This kind of confusion is common with CPM, which is why people often recommend against it. On Wed, May 2, 2012 at 12:09 PM, Richard W. Adams rwada...@up.com wrote: It means it's looking for a method called getPostTextField() in your model, but

Re: Unusual problem is coming in rendering component

2012-05-02 Thread Adam Gray
It looks that since you aren't giving the text field a model to bind to, it's walking up the component hierarchy to find a model to check for a getter getPostTextField(). I'm guessing that PostDomain does have a getPost() method, which it's finding and using. You'll either want to keep the

New book on Wicket 1.5

2012-05-02 Thread Jochen Mader
Hey, Sorry for spamming I couldn't figure out who to contact to (hopefully) get this listet in your books section: a few weeks ago my book on Wicket 1.5 got released: http://www.amazon.de/Wicket-Komponentenbasiert-objektorientiert-alternative-Java-Webframework/dp/3868020810 It's written in

RE: deserialization - got nulll lastPage

2012-05-02 Thread Dale Ogilvie
Thanks Dan, possibly this should be downgraded from WARN. -Original Message- From: Dan Retzlaff [mailto:dretzl...@gmail.com] Sent: Thursday, 3 May 2012 4:11 a.m. To: users@wicket.apache.org Subject: Re: deserialization - got nulll lastPage Hi Dale, Wicket keeps the most recent page

Re: Unusual problem is coming in rendering component

2012-05-02 Thread kshitiz
Thank you very much for the repliesI got the problem and solved it using the code: *final RequiredTextFieldString postTextField = new RequiredTextFieldString( postTextField, Model.of(postDomain.getPost())); * But please tell me one thing...the first parameter