SV: Removing jsessionid from URl

2010-09-22 Thread Wilhelmsen Tor Iver
I have been tryin to figure out what to do to remove jsessionid from the URL The web container will add that to the first response URL when a session is created in case cookies are not supported. What is corny is that this is not further maintained (in a non-cookie situation) without the

SV: Using WicketTester to verify table content refreshed by AJAX event

2010-09-22 Thread Wilhelmsen Tor Iver
I remember reading somewhere that using AJAX to refresh a component generated using repeater may cause some problems. Is this what I am against here with WicketTester? (Keep in mind that the table does get refreshed correctly in production.) Repeaters are special in the sense that they take

Re: announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-22 Thread Thomas Kappler
On 09/22/10 03:41, Sam Stainsby wrote: Today we officially announced our project to provide a Wicket-DB4O-Scala web application stack: http://sustainablesoftware.com.au/blog/?p=77 I’m pleased to announce a new web application framework, called Granite, and an associated set of reusable

Wicket and Apache Felix

2010-09-22 Thread Joseph Brunner
Hello, I've been trying to port a pre-existing web application built on Wicket 1.3 to run in an OSGi environment. Specifically, I'm running Apache Servicemix 4.2.0. I have tried to run the webapp with the Springsource pre-bundled version of Wicket 1.3.3 and bundling my own version of Wicket

Re: Wicket and Apache Felix

2010-09-22 Thread Alexander Morozov
Hi, I have similar question sometime ago and found only PAX Wicket Integration... Concerning to springframework - I guess that 3.0.x is OSGI-ready. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-Apache-Felix-tp2549800p2549822.html Sent from the Users

Re: Wicket and Apache Felix

2010-09-22 Thread David Leangen
For various reasons, integration is pretty tricky. Is there any particular reason why pax-wicket won't do? =David On Sep 22, 2010, at 4:27 PM, Alexander Morozov wrote: Hi, I have similar question sometime ago and found only PAX Wicket Integration... Concerning to springframework - I

Wicket and Spring Security question

2010-09-22 Thread nimmy
Hi All, I'm playing with a very basic 'hello world' type project to test Wicket and Spring Security (https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html). I'm new to both Wicket and Spring Security. I keep having the below error:

Re: Wicket and Spring Security question

2010-09-22 Thread Arjun Dhar
I have not gone too deep but @ a superficial level, following observations: 1. I dont see a ClassNotFound Exception. The Exception is NOT saying it Cannot find it in your Classpath! spring-security-web classes are not available dot not mean ClassNotFound. Unfortunately I dont know what it

Re: FeedbackPanel does not clean up after displaying error messages using Ajax

2010-09-22 Thread droitbarg
I found the source of my problem. In the session I had this piece of code: @Override public void cleanupFeedbackMessages() { //throw new UnsupportedOperationException(Not supported yet.); } This was the reason the feedback panel never cleaned up. Thanks for the help! -- View

wicket ajax timeout(?) problem with IE8

2010-09-22 Thread raphi
Hi, i am having a problem with an ajaxcall-response on IE8. i have a modal overlay (jquery dialog) on which a fileupload is taking place. my intention was that the modal overlay would close when the fileupload finished. On firefox everything is working fine, i open the overlay, upload a file

modalWindow and modelObject

2010-09-22 Thread cabra
Hi. I am newbie in wicket and I have a question about modalWindow and modelObject. As I understood there must be a panel in modalwindow with form. But why I can't put form directly to modalwindow? My task is: I have list generated from my database. Listitem item has name description and at

Wicket 1.5m2.1 forms / buttons ?

2010-09-22 Thread nino martinez wael
Hi Should'nt this work? My onsubmits are never triggered..? I've tried various options, submitlink, onchangenotification on ddc. HTML: form wicket:id=configurationForm fieldset class=blueBorder legendWallboard Configuration/legend fieldset

Re: Wicket 1.5m2.1 forms / buttons ?

2010-09-22 Thread Martin Grigorov
Override onError() methods and add some debug. Maybe the validation didn't pass. On Wed, Sep 22, 2010 at 3:17 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Should'nt this work? My onsubmits are never triggered..? I've tried various options, submitlink, onchangenotification

Re: Wicket 1.5m2.1 forms / buttons ?

2010-09-22 Thread nino martinez wael
Martin I owe you a beer or similar! 2010/9/22 Martin Grigorov mgrigo...@apache.org: Override onError() methods and add some debug. Maybe the validation didn't pass. On Wed, Sep 22, 2010 at 3:17 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Should'nt this work? My

Re: FeedbackPanel does not clean up after displaying error messages using Ajax

2010-09-22 Thread Jeremy Thomerson
On Wed, Sep 22, 2010 at 4:58 AM, droitbarg droitb...@gmail.com wrote: I found the source of my problem. In the session I had this piece of code: @Override public void cleanupFeedbackMessages() { //throw new UnsupportedOperationException(Not supported yet.); } This was the

Re: Wicket 1.5m2.1 forms / buttons ?

2010-09-22 Thread nino martinez wael
But still there are something nagging me, if I setDefaultFormProcessing to false should'nt the ddc's model be updated? I can see that some of it are updated (the selected option in the ddc are correct), but apparently the model are still null. Very strange.. I guess I should provide log info ?

Re: announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-22 Thread Erik van Oosten
I have looked at the example and it looks very promising. However, if you want more attention there should at the absolute minimum be a bunch of links somewhere that give starting points for someone to understand the project. E.g. links to important classes, important examples. Either an

Re: Wicket 1.5m2.1 forms / buttons ?

2010-09-22 Thread nino martinez wael
hmm just found out that if I switch declaration of this around: HTML: input type=submit value=select configuration class=submit wicket:id=select/ input type=submit value=add class=submit wicket:id=add/ it's the button with select where the onclick works, etc..

Re: Wicket 1.5m2.1 forms / buttons ?

2010-09-22 Thread nino martinez wael
Changing the java to this seems to fix the issue (eg change from submitlink to button): displayContainerForm.add(new Button(add) { @Override public void onSubmit() { super.onSubmit();

dynamic template page

2010-09-22 Thread hermanhorsten
I want to dynamically create a template page consisting of some parts stored in eg a DB or CMS which can dynamically change and a fixed wicket template part. Take for example 2 parts and a fixed part in wicket: Part 1 somewere stored in DB or CMS header headerstuff /header body bodystuff at

Re: announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-22 Thread Sam Stainsby
On Wed, 22 Sep 2010 08:42:20 +0200, Thomas Kappler wrote: On 09/22/10 03:41, Sam Stainsby wrote: Today we officially announced our project to provide a Wicket-DB4O-Scala web application stack: Now that you've done the hard work of fitting a non-relational store into a Wicket-based

Re: dynamic template page

2010-09-22 Thread Alexander Morozov
Hi, have you check wicket-velocity project ? Also look at IResourceStreamLocator and IMarkupResourceStreamProvider interfaces. Hopes it help :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/dynamic-template-page-tp2550354p2550385.html Sent from the Users forum

Re: announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-22 Thread Sam Stainsby
On Wed, 22 Sep 2010 15:34:15 +0200, Erik van Oosten wrote: I have looked at the example and it looks very promising. However, if you want more attention there should at the absolute minimum be a bunch of links somewhere that give starting points for someone to understand the project. E.g.

noob question

2010-09-22 Thread sonoerin
I am very new to Wicket, but I have worked thru a few basic tutorials and am currently reading Wicket In Action. I like most every thing I have seen about Wicket, but I have a particular design problem that I cannot tell if Wicket supports. Here is my problem: My application is a hosted

Re: dynamic template page

2010-09-22 Thread Igor Vaynberg
you can let your page implement IMarkupResourceStreamProvider -igor On Wed, Sep 22, 2010 at 6:59 AM, hermanhorsten s...@hermanhorsten.be wrote: I want to dynamically create a template page consisting of some parts stored in eg a DB or CMS which can dynamically change and a fixed wicket

Re: Wicket 1.5m2.1 forms / buttons ?

2010-09-22 Thread Igor Vaynberg
no. what if its an integer field and the user entered abc, how do you expect to stick that into the model with validation turned off? -igor On Wed, Sep 22, 2010 at 6:33 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: But still there are something nagging me, if I

Page Expired after WebResponse

2010-09-22 Thread Altuğ Bilgin Altıntaş
Hi, Here is code to export excel; Link linkExcel = new Link(linkExcel) { public void onClick() { getRequestCycle().setRequestTarget( new ComponentRequestTarget(tableContainer) { @Override public void

Re: Wicket 1.5m2.1 forms / buttons ?

2010-09-22 Thread nino martinez wael
true.. But the other issue with swapping components was strange 2010/9/22 Igor Vaynberg igor.vaynb...@gmail.com: no. what if its an integer field and the user entered abc, how do you expect to stick that into the model with validation turned off? -igor On Wed, Sep 22, 2010 at 6:33 AM, nino

Re: Page Expired after WebResponse

2010-09-22 Thread Rodolfo Hansen
Use an AjaxLink (or extends abstractlink), this way the page version is not expected to increment. On Wed, 2010-09-22 at 18:27 +0300, Altuğ Bilgin Altıntaş wrote: Hi, Here is code to export excel; Link linkExcel = new Link(linkExcel) { public void onClick() {

Re: setDefaultButton works in all browsers?

2010-09-22 Thread Istvan Jozsa
Had/have problems on IE7. Never worked in a form being in a modal window (panel). Stefan On Tue, Sep 21, 2010 at 4:54 PM, Anna Simbirtsev asimbirt...@gmail.comwrote: I am using setDefaultButton to submit the form using enter key. It seems to be working ok, but I have read on the internet

Re: Using WicketTester to verify table content refreshed by AJAX event

2010-09-22 Thread Alec Swan
Well, the table gets correctly refreshed through an AJAX event, it's just that WicketTester can't find any rows in the table after that. Is this a known WicketTester bug? On Wed, Sep 22, 2010 at 12:41 AM, Wilhelmsen Tor Iver toriv...@arrive.nowrote: I remember reading somewhere that using

Inter-Component Validation (or how to marry two strangers)

2010-09-22 Thread splitshade
Hi, this seems a rather simple question on the first sight, but I can't seem to find a clean solution to this. Image you have a Panel A that allows the User to input his Passport-Data, further image you have another Panel B, that allows you to input the Personal Data (like Birthday), now image

Re: Inter-Component Validation (or how to marry two strangers)

2010-09-22 Thread Igor Vaynberg
something has to know that both fields are related, so what is that in your code? -igor On Wed, Sep 22, 2010 at 9:51 AM, splitshade martin.dil...@googlemail.com wrote: Hi, this seems a rather simple question on the first sight, but I can't seem to find a clean solution to this. Image you

Re: Inter-Component Validation (or how to marry two strangers)

2010-09-22 Thread nino martinez wael
I had something similar, I can look it up tomorrow(in 15 hours or so). I think it was something like making the validators aware of each other or something. 2010/9/22 splitshade martin.dil...@googlemail.com: Hi, this seems a rather simple question on the first sight, but I can't seem to

Re: Page Expired after WebResponse

2010-09-22 Thread Altuğ Bilgin Altıntaş
AjaxLink doesn't throw an Excel file to user. Also I changed the code like that : WebResponse wr = (WebResponse)*target.getHeaderResponse().getResponse() ;* wr.setContentType(application/vnd.ms-excel; charset=windows-1254 );

Re: Inter-Component Validation (or how to marry two strangers)

2010-09-22 Thread splitshade
Hi, thanks for the reply, well.. good question, this would propably be the validator, i need to check the validity of the personal data fields before the form gets submitted. -- View this message in context:

Re: Inter-Component Validation (or how to marry two strangers)

2010-09-22 Thread Igor Vaynberg
validator on which field? or on a form? in either case something has to be aware of both fields. a clean way may be to let your data model validate itself for consistency and propagate any exceptions to the ui layer as errors. -igor On Wed, Sep 22, 2010 at 10:34 AM, splitshade

Re: Inter-Component Validation (or how to marry two strangers)

2010-09-22 Thread splitshade
Hi again, well, i think the validator would be applied to the form, to which both panels are added, but you are right, there is nothing that is aware of both components (or more exactly on the inner components of the panels). Model-Validation sounds good, but the Model itself is updated after

Re: Inter-Component Validation (or how to marry two strangers)

2010-09-22 Thread Michael O'Cleirigh
Hi, You could look at creating a custom subclass of FormComponentPanel that would contain both panel A and panel B. Then for its validation you would process the checks that depend on the valid values from A and B. This way you don't need any type of hack and the data is naturally

Re: Inter-Component Validation (or how to marry two strangers)

2010-09-22 Thread Igor Vaynberg
no, it is not that common because you still have not defined what the common object that knows about both values is. usually this is the model, and it is not that uncommon to do this: new form() { onsubmit() { if (!getmodel().validate()) { error(something went bad); } } } ie validate

Re: Inter-Component Validation (or how to marry two strangers)

2010-09-22 Thread splitshade
Hi, ok, that sounds pretty good... If that is not uncommon to do, I'll try that. I'm really impressed, how fast you helped me here, thank you very much! -- View this message in context:

RE: announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-22 Thread Chris Colman
You could abstract the datastore in the stack using JDO/DataNucleus. It supports DB40. In fact as it also supports RDBMS you could easily create a datastore agnostic Wicket/Scala stack - that would be most awesome! -Original Message- From: Sam Stainsby

Setting Checked Boxes in CheckGroup

2010-09-22 Thread Shelli Orton
Hi, I am trying to use a CheckGroup to manage which columns are used in a datatable. I've set up my columns as per the code below. The getColumnCheckBoxes method creates the check boxes that will be part of the group. The getDefaultColumns defines which columns should be checked by default.

Re: Page Expired after WebResponse

2010-09-22 Thread Rodolfo Hansen
Have you thought about using simply using a ResourceStremRequestTarget ? On Wed, 2010-09-22 at 20:26 +0300, Altuğ Bilgin Altıntaş wrote: AjaxLink doesn't throw an Excel file to user. Also I changed the code like that : WebResponse wr =

dynamic crumb trail

2010-09-22 Thread Luther Baker
I have a default template page that contains a ul implementation of a crumb trail. Therefore, the base class template has both the open and close tags of the list element. A few links in the crumb trail are manage by the template class - but I'd like to be able to add a few from the child pages.

PropertyModel getObject returns null

2010-09-22 Thread Shelli Orton
Hi, I followed the example on this page https://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html to create a SortableDataProvider. I am running into a NullPointerException when my Comparator class' compare method is invoked at int result =

RE: Dynamic Column Datatable - Example

2010-09-22 Thread Shelli Orton
I have found a solution, based mainly on this example: https://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html. However, I set up the columns and create the table in a separate method that is called on the form submit to recreate the table with the new columns. Note that this code

Re: dynamic crumb trail

2010-09-22 Thread Igor Vaynberg
create a wrapper that can instantiate pages lazily interface Crumb { IModel getLabel(); Page gePage(); } put your lazy logic into getPage() impl. -igor On Wed, Sep 22, 2010 at 1:01 PM, Luther Baker lutherba...@gmail.com wrote: I have a default template page that contains a ul implementation of

RE: PropertyModel getObject returns null

2010-09-22 Thread Shelli Orton
I figured out what was happening. The object returned by getObject is the property value, not the model object (I'm still wrapping my head around Wicket terminology/architecture). I found this example of a compare method that deals with nulls: class DataRecordComparator implements

Re: StackOverFlowError

2010-09-22 Thread Andreas Petersson
i had a very similar problem occuring in production when where was a cluster failover. i could never reproduce it. did something strange happen to you like, the filesystem was partially wiped during writing? - To unsubscribe,

Create wicket form on demand

2010-09-22 Thread d2marcelo
Hello, Is there a way to generate a form based on an event. For example. I have a listbox with a few items , if the user selects an item. a form gets created with some textfields. I want to set an AjaxEventBehavior(onchange) on the listbox to trigger the form creation. Thanks for the help;

Re: Create wicket form on demand

2010-09-22 Thread Igor Vaynberg
sure, you can replace a placeholder component with a fragment/panel that contains the form. -igor On Wed, Sep 22, 2010 at 4:37 PM, d2marcelo d2olive...@gmail.com wrote: Hello, Is there a way to generate a form based on an event. For example. I have a listbox with a few items , if the user

Re: announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-22 Thread Sam Stainsby
On Thu, 23 Sep 2010 04:47:24 +1000, Chris Colman wrote: You could abstract the datastore in the stack using JDO/DataNucleus. It supports DB40. In fact as it also supports RDBMS you could easily create a datastore agnostic Wicket/Scala stack - that would be most awesome! That's one path that

Wicket on GAE

2010-09-22 Thread Josh Kamau
Is there anyone running a significantly large application on GAE? I would like to know if a database driven wicket application is working on GAE and how much resources it consumes. I need this information to decide on whether GAE is a deployment option, or i need a servlet hosting service.