Re: [announce] Wicket 1.5-rc2 is released!

2011-02-28 Thread fstof
Martin Grigorov-4 wrote: The Wicket Team is proud to introduce the second Release Candidate in Wicket 1.5 series. It includes bug fixes and improvements reported against 1.5-RC1. See the changelog for full list. More detailed migration notes are available on our [Migrate to 1.5 Wiki

Re: [announce] Wicket 1.5-rc2 is released!

2011-02-28 Thread Andrea Del Bene
Hi fstof, maybe you meant wicket-core-1.5-rc2.jar and not wicket-1.5-rc1.jar. In full distribution still missing wicket core jar. Hi I downloaded the full distribution, but it seems that the wicket-1.5-rc1.jar jar in lib missing. I think it might be a good idea to maybe add it I'm not

Re: [announce] Wicket 1.5-rc2 is released!

2011-02-28 Thread fstof
Andrea Del Bene-2 wrote: Hi fstof, maybe you meant wicket-core-1.5-rc2.jar and not wicket-1.5-rc1.jar. In full distribution still missing wicket core jar. O crap... stupid typo... I copied from my rc1 lib folder... I ment rc2. either way there is no wicket-core-1.5-rc2.jar (or

Re: [announce] Wicket 1.5-rc2 is released!

2011-02-28 Thread Attila Király
As a workaround you can download the missing core jar from the maven repo: http://repo1.maven.org/maven2/org/apache/wicket/wicket-core/1.5-rc2/ http://repo1.maven.org/maven2/org/apache/wicket/wicket-core/1.5-rc2/There is no wicket.jar because it was sliced up into 3 smaller one: core (missing

Re: [announce] Wicket 1.5-rc2 is released!

2011-02-28 Thread fstof
Attila Király wrote: As a workaround you can download the missing core jar from the maven repo: http://repo1.maven.org/maven2/org/apache/wicket/wicket-core/1.5-rc2/ Awesome, Thanks Attila Király wrote: http://repo1.maven.org/maven2/org/apache/wicket/wicket-core/1.5-rc2/There is no

Getting Javascript function return value in Wicket

2011-02-28 Thread drf
Does anyone have any simple and clear examples as to how to call a javascript function within Wicket AND to then retrieve the output of the function? I see a few people trying to do the same thing but cannot find and clear examples. Any help is truly appreciated! -- View this message in

Re: Getting Javascript function return value in Wicket

2011-02-28 Thread Matthias Gasser
Maybe this wiki entry is helpful: Generate a JS within Wicket: https://cwiki.apache.org/WICKET/adding-javascript-from-wicket.html the other way round: https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html HTH Am 28.02.2011 um 12:34 schrieb drf: Does anyone have any simple and

Re: [announce] Wicket 1.5-rc2 is released!

2011-02-28 Thread Andrea Del Bene
I think wicket team decided to not distribute aggregate jar (that is wicket-1.5-rc2.jar.) no more. There was a thread about it on dev mailing list. Subject was [discuss] How to resolve wicket aggregate classes / sources jar issues Andrea Del Bene-2 wrote: Hi fstof, maybe you meant

Preventing session creation on abort?

2011-02-28 Thread PALMER, THOMAS C (ATTCORP)
I've got a case where I want to abort request processing and redirect before my session is constructed (since it's fairly expensive). I can trigger the abort and redirect via my RequestCycle.onBeginRequest() impl by throwing a RedirectToUrlException. However, the abort processing in RequestCycle

Re: Preventing session creation on abort?

2011-02-28 Thread Martin Grigorov
Hi Tom, Please file a ticket. On Mon, Feb 28, 2011 at 1:50 PM, PALMER, THOMAS C (ATTCORP) tp3...@att.comwrote: I've got a case where I want to abort request processing and redirect before my session is constructed (since it's fairly expensive). I can trigger the abort and redirect via my

Re: Getting Javascript function return value in Wicket

2011-02-28 Thread drf
Thanks, but what we are looking for is a fully working example of how to call a javascript function and retrieve the return value on the Java side. The examples provided are not full or clear to any of us. -- View this message in context:

Re: Getting Javascript function return value in Wicket

2011-02-28 Thread Martin Grigorov
See http://code.google.com/p/londonwicket/downloads/list LondonWicket-Paint On Mon, Feb 28, 2011 at 3:24 PM, drf davidrfi...@gmail.com wrote: Thanks, but what we are looking for is a fully working example of how to call a javascript function and retrieve the return value on the Java side.

Re: Getting Javascript function return value in Wicket

2011-02-28 Thread drf
Looked at the pdf - but there is no documentation or text and cannot see how the code addresses the problem of how to retrieve the return value from a javascript function within Wicket. -- View this message in context:

Re: Getting Javascript function return value in Wicket

2011-02-28 Thread Martin Grigorov
Look at the .zip, there is code inside. The javascript sends events to java with the current position of the mouse. On Mon, Feb 28, 2011 at 4:19 PM, drf davidrfi...@gmail.com wrote: Looked at the pdf - but there is no documentation or text and cannot see how the code addresses the problem of

Wicket philosophy, modelObject isVisible, isEnabled, CSS

2011-02-28 Thread Brown, Berlin [GCG-PFS]
Most of the backing modelObject and models are normally associated with the data that is to be displayed or edited. Isn't the CSS and visibility one aspect that is part of the display? What are your thoughts on controlling the visibility, enabled state and CSS through the model objects as

Re: Perfomance of IDataProvider

2011-02-28 Thread vov
You can simply use something like this in your realization of DataProvider: @Override public IModelEntity model(Entity entity) { return new ModelEntity(entity); } -- View this message in context:

Re: Perfomance of IDataProvider

2011-02-28 Thread James Carman
Typically, the LDM that's used to obtain each row in your result set is only called one time, you shouldn't be re-querying individually for each item in the list. LDM's constructor that takes a value will cache that value for the duration of the current request cycle. On Mon, Feb 28, 2011 at

How to prevent user from double-clicking a non-Ajax component

2011-02-28 Thread eugenebalt
How do we prevent the user from double-clicking a non-Ajax component? When the submit occurs, isEnabled is set to false for the Wicket Button. If the user does a quick double click on the button, its throws a wicket runtime excpetion saying the component is disabled. Thanks -- View this

Displaying table in a modalDialog

2011-02-28 Thread Josh Kamau
Hi there, I am trying to use a list view in a modal dialog. But all the time the modal dialog shows everything else except what is inside the table/table tags Here is the panel that am setting as the modal dialog content. Panel.html wicket:panel form wicket:id=frmProject

Wizard (updating model)

2011-02-28 Thread Bob Peterson
Greetings, I'm a newbie trying to use the wizard from the extensions package to search and update a user in a database. My first step has a single RequiredTextField where the userid is entered. When the user clicks the next button I search the database and update the User object and display

RE: Preventing session creation on abort?

2011-02-28 Thread PALMER, THOMAS C (ATTCORP)
Done: https://issues.apache.org/jira/browse/WICKET-3487 Thanks - -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Monday, February 28, 2011 7:52 AM To: users@wicket.apache.org Subject: Re: Preventing session creation on abort? Hi Tom, Please file a ticket.

Re: internationalizing page title

2011-02-28 Thread Erik van Oosten
You will need the following in your application's init: getMarkupSettings().setStripWicketTags(true); Regards, Erik. Op 27-02-11 18:26, Josh Kamau schreef: Anton, This worked. head meta http-equiv=Content-Type content=text/html; charset=UTF-8 wicket:head titleWicket

Re: Wizard (updating model)

2011-02-28 Thread Pedro Santos
Hi Bob, call Form#modelChanged in applyState to indicate the change. On Mon, Feb 28, 2011 at 2:32 PM, Bob Peterson gp...@yahoo.com wrote: Greetings, I'm a newbie trying to use the wizard from the extensions package to search and update a user in a database. My first step has a single

Re: Wizard (updating model)

2011-02-28 Thread Bob Peterson
Hi Pedro, thank you for your reply. In the applyState() of the first step (UserSearchStep) i added the following. However, my second step still displays the user info from the first search, am i correctly getting the form? Form f =

Re: Displaying table in a modalDialog

2011-02-28 Thread Josh Kamau
Has anyone else experienced this problem? Or do i need to create a quickstart? Josh. On Mon, Feb 28, 2011 at 8:19 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi there, I am trying to use a list view in a modal dialog. But all the time the modal dialog shows everything else except what is

Re: Wizard (updating model)

2011-02-28 Thread Pedro Santos
I just noticed that you have the user at 2 places: inside the model and in an instance variable. Set the searched user on those 2 places, or only use the model to keep the user object. On Mon, Feb 28, 2011 at 4:23 PM, Bob Peterson gp...@yahoo.com wrote: Hi Pedro, thank you for your reply. In

Re: Perfomance of IDataProvider

2011-02-28 Thread Juansoft
First render thanks for your replies. @vov: If i use this: public IModelEntity model(Entity entity) { return new ModelEntity(entity); } In this case the memory footprint of the session grows because you return Model object that is not a transient object(or this is what I've read in

Re: Perfomance of IDataProvider

2011-02-28 Thread MZemeck
If I understand where you are going I completely agree the example is a little misleading. Some ways to think about it differently... id is synonymous with a small sub-set of the entire result-set which can be used to rehydrate the detached model The model is the data you want to provide to

Re: Perfomance of IDataProvider

2011-02-28 Thread James Carman
You want to use this constructor: http://wicket.apache.org/apidocs/1.4/org/apache/wicket/model/LoadableDetachableModel.html#LoadableDetachableModel%28T%29 This way, the LDM will be initialized with the object pre-loaded and won't need to go to the database. However, on subsequent requests (such

RE: Perfomance of IDataProvider

2011-02-28 Thread John Owen
An example with a list would be quite useful. Regards -Original Message- From: mzem...@osc.state.ny.us [mailto:mzem...@osc.state.ny.us] Sent: Monday, February 28, 2011 3:10 PM To: users@wicket.apache.org Subject: Re: Perfomance of IDataProvider If I understand where you are going I

spring 3.1 wicket auth integration

2011-02-28 Thread wic...@geofflancaster.com
Can anyone point me to a tutorial or example on getting spring 3.x setup and working with wicket-auth-roles for an AuthenticatedWebApplication? Thanks in advance. mail2web.com – Enhanced email for the mobile individual based on

Re: How to prevent user from double-clicking a non-Ajax component

2011-02-28 Thread Martijn Dashorst
This is in the category how do we prevent the user from doing stupid things... like not clicking the log off link before closing the browser window, or to read all feedback messages, or to fill out all required fields that are marked required with an asterisk and painted with a yellow background

ajax refresh of ListItems

2011-02-28 Thread Scott Swank
I have an html table with a ListView generating the rows. Certain rows in the middle of the table are initially hidden via setVisible(false), but then displayed later when an AjaxLink is clicked. In order to effect this I have had tenclose the table in a div with wicket:id=tableContainer, and

Re: ajax refresh of ListItems

2011-02-28 Thread Igor Vaynberg
does the listitem have setoutputmarkupplaceholdertag(true)? -igor On Mon, Feb 28, 2011 at 5:01 PM, Scott Swank scott.sw...@gmail.com wrote: I have an html table with a ListView generating the rows.  Certain rows in the middle of the table are initially hidden via setVisible(false), but then

Re: Getting Javascript function return value in Wicket

2011-02-28 Thread drf
Thanks a lot, but there are no comments or notes in the code and we cannot see how to apply the example provided to our use case. Let's say we create a class like this (notes are my understanding of what each method is doing): public class JSTest extends AbstractDefaultAjaxBehavior { //