Re: Confused with IDataProvider

2008-01-24 Thread beam
Thanks a lot, Igor, for detailed explanation. Now I understand. And 2 more questions: 1. Should I use DataView with DataProvider if I want only to render data without edit capability? As I understood I need models in case of update/delete data in list. 2. If I have 2 components on my page:

Re: listView sorting question

2008-01-24 Thread Thomas Kappler
On Jan 23, 2008 10:35 PM, Beyonder Unknown [EMAIL PROTECTED] wrote: The use case is that, I have a page that renders a listview, and I need to add a link that sorts the list when clicked. My listView uses LoadableDetachableModel that retrieves data using hibernate backend. In my current app,

Re: db transaction boundry

2008-01-24 Thread Johan Compagner
So you are worried about double submit, when using backbutton, of the same page that has invalid data? But if that happens then the second time has the same error as the first time. On 1/24/08, Sam Hough [EMAIL PROTECTED] wrote: Igor, Am I at least correct that we shouldn't only commit at the

Re: Confused with IDataProvider

2008-01-24 Thread Johan Compagner
1 you always use models, this has nothing to do with edit or not, it is the loading. 2 a dataview will do the query again when it renders it self. On 1/24/08, beam [EMAIL PROTECTED] wrote: Thanks a lot, Igor, for detailed explanation. Now I understand. And 2 more questions: 1. Should I use

Re: Get from input from a ModalWindow

2008-01-24 Thread Thomas Kappler
Hi Stefan, it was indeed a problem with the models involved there. It looked fine to me, so I suspected the modal window, and that wiki page I linked also gave me the impression that there was something with modal windows in that regard, but I should have checked first in an ordinary page.

Re: Nested forms problem

2008-01-24 Thread Steen Larsen
Hm, it seems like i can get the behaviour I expect by overiding the inner form button's onSubmit method and setting setDefaultFormProcessing(false) on it as in this code. public class Test extends WebPage { public Test() { MandatoryProductsForm outer = new

Re: db transaction boundry

2008-01-24 Thread Sam Hough
Hello Johan, The simplest case I can think of is the one where the user clicks to create a new record and I want to put a link in the page to that new record. As I understand it I need to be careful not to add the link to the page until after the commit was successful. If there was an error and

Re: db transaction boundry

2008-01-24 Thread Johan Compagner
so you want to have the commit cylce around the request not the response (so in onBeforeRender() of a page the commit (or rollback) should be done so that all the data that is used in the response is valid) But i guess with a filter (session in view and the sort) around what ever framework you

Re: db transaction boundry

2008-01-24 Thread Sam Hough
Johan, But isn't wicket _very_ different in that it keeps a representation of the page on the server? So in frameworks other than Wicket, Echo and Tapestry if the request cycle fails the page state can't get contaminated? Cheers Sam Johan Compagner wrote: so you want to have the commit

Re: db transaction boundry

2008-01-24 Thread Johan Compagner
if the rendering of the page (the response phase) always uses a committed transaction then that wouldn't happen But if a commit fails, shouldn't you report that to the user anyway?? johan On Jan 24, 2008 10:59 AM, Sam Hough [EMAIL PROTECTED] wrote: Johan, But isn't wicket _very_ different

Re: Helloworld Application cant be started

2008-01-24 Thread gbak1
Kent Tong wrote: gbak1 wrote: Im a newbie and am having problems with the helloworld example. I have created an ant script to create an application WAR and I can deploy this WAR to tomcat (running on fedora7). After deploy, Tomcat fails to start the application and displays the

browser-back event?

2008-01-24 Thread Jan Kriesten
hi, is there any (javascript) event fired when a user hits the browser-back-button? regards, --- jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: browser-back event?

2008-01-24 Thread Johan Compagner
some have onbeforeunload or something like that but not all browsers have that. And you dont know if that is caused by back i guess On Jan 24, 2008 1:48 PM, Jan Kriesten [EMAIL PROTECTED] wrote: hi, is there any (javascript) event fired when a user hits the browser-back-button? regards,

RE: browser-back event?

2008-01-24 Thread Thijssen, Ron
As far as I know there is no such event. Maybe you can try this... Keep a stack of visited pages (e.g. url's) in your session. Send a onload ajax event including the 'active' page. This way you notice that the state has been changed and you can take some action. Im not sure that the onload

Re: Hi, PDF Question

2008-01-24 Thread Francisco Diaz Trepat - gmail
I am not sure which headers would be necesary. I usually set the set attachment as I said but ONLY FOR FIREFOX. And it WORKS FINE. But it is not my intention. My intention is to open the pdf inside the new created tab in the same browser. Safari still not working. f(t) On Jan 23, 2008 6:29

Re: Hi, PDF Question

2008-01-24 Thread Francisco Diaz Trepat - gmail
MMmmm Could it be possible an expiration before the launch of the adobe reader plugin for the firefox tab? I'll try it out. thanks, f(t) On Jan 24, 2008 4:54 AM, severian [EMAIL PROTECTED] wrote: Something like this may work for your DynamicWebResource: @Override protected void

Re: Hi, PDF Question

2008-01-24 Thread Johan Maasing
In my experience (outside wicket) the content type matters to FF and Opera, IE mainly looks at the file ending. So make sure you set that to application/pdf or some similiar. Also, the content-dispostion can be set to inline instead of attachement (http://www.ietf.org/rfc/rfc1806.txt) which

Re: Hi, PDF Question

2008-01-24 Thread Francisco Diaz Trepat - gmail
Johan, thanks, I'll tryit out and will give a feedback. f(t) On Jan 24, 2008 11:08 AM, Johan Maasing [EMAIL PROTECTED] wrote: In my experience (outside wicket) the content type matters to FF and Opera, IE mainly looks at the file ending. So make sure you set that to application/pdf or some

Re: browser-back event?

2008-01-24 Thread Jan Kriesten
hi johan, some have onbeforeunload or something like that but not all browsers have that. And you dont know if that is caused by back i guess i'll try 'onload' for the moment and see what will happen... thanks, --- jan.

Re: Hi, PDF Question

2008-01-24 Thread Francisco Diaz Trepat - gmail
I have updated the Safari to the 3.0.4 version and now it works also. The only one that doesn't work is FireFox so I have the *attachment*Content-Disposition workarround so that it will download the file and open it latter with Adobe Acrobat Reader. f(t) On Jan 24, 2008 11:11 AM, Francisco Diaz

Re: listView sorting question

2008-01-24 Thread Beyonder Unknown
Thanks Thomas. I used the SortableDataProvider and it solved my problem. I'm think hibernate caches it. But you can always use a filter to apply second level caching using OS Cache or any third party framework. (Although I'm sure you probably have this already). Best, Wen Tong -- The only

Re: progress component?

2008-01-24 Thread Beyonder Unknown
That's correct! Thank you, Martjin! Best, Wen Tong -- The only constant in life is change. - Original Message From: Martijn Dashorst [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Wednesday, January 23, 2008 11:06:52 PM Subject: Re: progress component? I think you are looking

Re: db transaction boundry

2008-01-24 Thread Sam Hough
Johan, Definitely report the error but just ensure server side state is not updated (so that if that part of page is resent after the error it doesn't show the user rubbish). So I think I did have the transaction boundry in the wrong place (servlet filter). Presumably if I stick to the rule do

binding form to object without default constructor

2008-01-24 Thread Brad Fritz
Greetings, I am new to Wicket and having some trouble binding a Wicket Form component to an object that does not have a default constructor and does not follow the javabean pattern. I have read and re-read the wiki information on models and checked the mailing list archives but haven't made

Re: Copenhagen wicket user meeting: rescheduled

2008-01-24 Thread Nino Saturnino Martinez Vazquez Wael
29 january at jayway copenhagen office... will we start at 16:00? Guðmundur Bjarni wrote: Hey, Sounds good. Where and when exactly will it be then? :) regards, Guðmundur Bjarni Ólafsson Nino.Martinez wrote: Cancel previous message. Meeting will be held at same time next week. Nino

Re: openlayers

2008-01-24 Thread Nino Saturnino Martinez Vazquez Wael
i've begun work on this.. currently its VERY unstable and unrecommended to use.. Nino Saturnino Martinez Vazquez Wael wrote: Hi At some point someone talked about creating something around open layers. However nothing but the project structure are checked in, so I guess i'll continue on

Re: Questions for permission of using the design of wicket-example

2008-01-24 Thread Martijn Dashorst
On 1/23/08, Tsutomu Yano [EMAIL PROTECTED] wrote: I understand that the the name Apache Wicket may be under a kind of protection. So We will wait your answer about the WICKET logo. The answer was drumrol silence. This means that the way I suggested things didn't trigger a negative

Re: Questions for permission of using the design of wicket-example

2008-01-24 Thread Tsutomu Yano
OK, I understand that. We will not use the logo on our website, but only the design. However, could I use the circle image between 'Apache' and 'Wicket'? Only the simbol mark, which do not include the word 'Apache Wicket' and 'example'? - Tsutomu YANO

best practice for a wait page

2008-01-24 Thread Scott Swank
We have a page with a form and the form's onSubmit() method takes a while. After it is complete the user is re-directed to another page. We'd like to introduce a nice please wait while we process your request page in between these pages. If anyone has done this, what approach has worked well for

Re: best practice for a wait page

2008-01-24 Thread Thijs Vonk
Scott Swank wrote: We have a page with a form and the form's onSubmit() method takes a while. After it is complete the user is re-directed to another page. We'd like to introduce a nice please wait while we process your request page in between these pages. If anyone has done this, what

Re: best practice for a wait page

2008-01-24 Thread Nick Heudecker
You could set a flag in the user's session indicating the process is ongoing, then use a meta refresh to check the status of the flag and respond accordingly. On Jan 24, 2008 11:45 AM, Scott Swank [EMAIL PROTECTED] wrote: We have a page with a form and the form's onSubmit() method takes a

Re: binding form to object without default constructor

2008-01-24 Thread Igor Vaynberg
create a bean to represent the form, then in form's onsubmit create the object and populate it from the bean -igor On Jan 24, 2008 8:35 AM, Brad Fritz [EMAIL PROTECTED] wrote: Greetings, I am new to Wicket and having some trouble binding a Wicket Form component to an object that does not

Re: wicket maven archettype, SPRING-HIBERNATE-JPA?

2008-01-24 Thread Konstantin Ignatyev
I also suggest playing with Grails a little bit before you proceed http://grails.org/Quick+Start No, I do not think that Grails is better than Wicket, but I like the little conveniences provided by commands like create-domain-class and create-controller Konstantin Ignatyev - Original

Re: mounting large number of url

2008-01-24 Thread mfs
So basically we would need to mount each page seperately with a url for it ? Is there a mechanism with which one can mount a bunch of pages at the same time, where lets say the page-name itself gets attached to the url (given for that subset of pages) so as to make the url unique for each page,

Re: wicket maven archettype, SPRING-HIBERNATE-JPA?

2008-01-24 Thread Nino Saturnino Martinez Vazquez Wael
Hi Konstantin This first version will just be like, quickstart just a basic template with your company name etc... Im not sure how far we can get using archetypes... regards Nino Konstantin Ignatyev wrote: I also suggest playing with Grails a little bit before you proceed

Re: mounting large number of url

2008-01-24 Thread Igor Vaynberg
see PackageRequestTargetUrlCodingStrategy -igor On Jan 24, 2008 10:02 AM, mfs [EMAIL PROTECTED] wrote: So basically we would need to mount each page seperately with a url for it ? Is there a mechanism with which one can mount a bunch of pages at the same time, where lets say the page-name

Re: best practice for a wait page

2008-01-24 Thread Scott Swank
Sweet. http://wicketstuff.org/wicket13/ajax/lazy-loading.1 I think that we can make something like that work for us. Thank ya. On Jan 24, 2008 9:47 AM, Thijs Vonk [EMAIL PROTECTED] wrote: Scott Swank wrote: We have a page with a form and the form's onSubmit() method takes a while. After

Re: best practice for a wait page

2008-01-24 Thread Scott Swank
I'll try Thijs' suggestion first, but if the unforseen arises I might try a meta refresh. Thank Nick. On Jan 24, 2008 9:48 AM, Nick Heudecker [EMAIL PROTECTED] wrote: You could set a flag in the user's session indicating the process is ongoing, then use a meta refresh to check the status of

Re: wicket maven archettype, SPRING-HIBERNATE-JPA?

2008-01-24 Thread Martijn Dashorst
Note that maven archetypes are a bitch to maintain... Mostly because the code templates are not compiled, so you have to take another step to check whether it works or not. Martijn On 1/24/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi Konstantin This first version will

How to get a form component's value that is not a sub-node of the Form.

2008-01-24 Thread smallufo
I have a Form component : SomeCheckGroup added to a SomePanel. For screen arrangement purpose , this SomePanel is not a sub-node of the Form , it's outside of the Form . It looks like this : OutmostPanel add FormPanel FormPanel add MainForm MainForm add other form components OutmostPanel

Re: Helloworld Application cant be started

2008-01-24 Thread gbak1
As I mentioned before I have added a jode.jar, slfXXXapi.jar and slfXXXsimple.jar. However the application still fails to start and I am now getting the following error message in the Tomcat logs: SERVER: Exception starting filter HelloWorldApplication java.lang.NoClassDefFoundError:

Re: Helloworld Application cant be started

2008-01-24 Thread Igor Vaynberg
remove wicket-velocity.jar from the classpath -igor On Jan 24, 2008 11:40 AM, gbak1 [EMAIL PROTECTED] wrote: As I mentioned before I have added a jode.jar, slfXXXapi.jar and slfXXXsimple.jar. However the application still fails to start and I am now getting the following error message in

Re: Reusable component and customization

2008-01-24 Thread Timo Rantalaiho
On Tue, 22 Jan 2008, Igor Vaynberg wrote: a) read javadoc b) create subclass (1 min) c) paste example markup from javadoc into subclass.html file (1 min) c) edit subclass.html What I do is a) create Subclass (10 seconds) b) click to the Superclass in IDE c) click to Superclass.html that is

Re: Questions for permission of using the design of wicket-example

2008-01-24 Thread Tsutomu Yano
However, could I use the circle image between 'Apache' and 'Wicket'? Only the simbol mark, which do not include the word 'Apache Wicket' and 'example'? Oh, sorry. You already have answered this question on your first post... If you want to go forward quickly, you could use the design,

Re: wicket maven archettype, SPRING-HIBERNATE-JPA?

2008-01-24 Thread Nino Saturnino Martinez Vazquez Wael
I think you could get very close by having a basic wicket-jpa-hibernate-spring thing(it'll mainly be copy pasting and refactorying), i'll try to see how great database migration are with this combination.. Konstantin Ignatyev wrote: I like idea of archetype and have tried creating one awhile

Re: How to get a form component's value that is not a sub-node of the Form.

2008-01-24 Thread Eelco Hillenius
You could try nested forms. Eelco On Jan 24, 2008 11:19 AM, smallufo [EMAIL PROTECTED] wrote: I have a Form component : SomeCheckGroup added to a SomePanel. For screen arrangement purpose , this SomePanel is not a sub-node of the Form , it's outside of the Form . It looks like this :

Re: Helloworld Application cant be started

2008-01-24 Thread gbak1
I found the required velocity jar file at http://velocity.apache.org website and have included it in my libs dir. Tomcat now deploys and starts the application without errors. However the text in between the span tags does not get replaced with the text that is in the HelloWorld class. I checked

Re: wicket maven archettype, SPRING-HIBERNATE-JPA?

2008-01-24 Thread Konstantin Ignatyev
Hibernate takes care DB schema (re) definition when its configuration says hibernate.hbm2ddl.auto=create so when changes are made to the entity classes H (re)generates database schema. - Original Message From: Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] To:

Re: Helloworld Application cant be started

2008-01-24 Thread Igor Vaynberg
wow, all this work...when all you had to do was run mvn war inside the package folder... -igor On Jan 24, 2008 12:30 PM, gbak1 [EMAIL PROTECTED] wrote: I found the required velocity jar file at http://velocity.apache.org website and have included it in my libs dir. Tomcat now deploys and

Re: best practice for a wait page

2008-01-24 Thread Evan Chooly
What about IndicatingAjaxButton? On Jan 24, 2008 1:16 PM, Scott Swank [EMAIL PROTECTED] wrote: I'll try Thijs' suggestion first, but if the unforseen arises I might try a meta refresh. Thank Nick. On Jan 24, 2008 9:48 AM, Nick Heudecker [EMAIL PROTECTED] wrote: You could set a flag in the

Re: Confused with IDataProvider

2008-01-24 Thread mfs
makes sense... Just one more thing which i just noticed..not sure if it has got to with the mounting of urls, but in certain instances i seet he jsession=[id] postfixed with the urls, but not for all pages, its just random..even at times it appears for one and at a different time it doesn't. Any

Re: mounting large number of url

2008-01-24 Thread mfs
Thanks igor.. Just one more thing which i just noticed..not sure if it has got to with the mounting of urls...so in certain instances i seet he jsession=[id] postfixed with the urls, but not for all pages, its just random..even at times it appears for one and at a different time it doesn't. Any

Re: Confused with IDataProvider

2008-01-24 Thread Igor Vaynberg
if you disable cookies it will be appended to every url. if you use cookies after the first request jsessionid migrates from urls to a cookie - so you see it on the first request of a new session, and never again for the duration of that session. -igor On Jan 24, 2008 1:10 PM, mfs [EMAIL

Re: mounting large number of url

2008-01-24 Thread Igor Vaynberg
why post the same question in two threads? its a lttle obnoxious -igor On Jan 24, 2008 1:15 PM, mfs [EMAIL PROTECTED] wrote: Thanks igor.. Just one more thing which i just noticed..not sure if it has got to with the mounting of urls...so in certain instances i seet he jsession=[id]

Re: wicket maven archettype, SPRING-HIBERNATE-JPA?

2008-01-24 Thread Nino Saturnino Martinez Vazquez Wael
Ok, noted. Im very busy now with the openlayers thing, so hoping I can start on it within february... regards Nino Martijn Dashorst wrote: Note that maven archetypes are a bitch to maintain... Mostly because the code templates are not compiled, so you have to take another step to check

linking to custom static content

2008-01-24 Thread Ryan McKinley
Hi I have an application where each object can have some files associated with it that I need to pull from various sources. I have: /mount/id//thumb.jpg /mount/id//meta.xml /mount/id//layer.lyr ... I followed the 'staticpages' example and am implementing a UrlCodingStrategy

Multiple AjaxFormSubmitBehavior's on the same form

2008-01-24 Thread Thies Edeling
Hi all, I have a Form which gets submitted by an AjaxButton. Validation of the FormComponents is triggered by AjaxFormValidationBehavior. Both add an AjaxFormSubmitBehavior to the form which bite eachother a bit. When the form is submitted by the AjaxButton the AjaxFormValidationBehavior is

Re: mounting large number of url

2008-01-24 Thread mfs
Sorry about that...actually mistakenly posted it in the other one and than had it deleted afterwords before posting it here.. igor.vaynberg wrote: why post the same question in two threads? its a lttle obnoxious -igor On Jan 24, 2008 1:15 PM, mfs [EMAIL PROTECTED] wrote: Thanks

Question About Locale

2008-01-24 Thread Steve Thompson
I have a customer who has requested the ability to view multiple locales on a page. It looks like I can do this fine with Wicket through the use of properties files, but what I would like to do is automatically detect which locales there are properties files for. Is this possible, and if so,

binding problem :(

2008-01-24 Thread Beyonder Unknown
Hi All, For some reason, my checkbox doesn't bind to my model. I have a DataView that contains the Check component, and in my button, onClick, I use form.getModelObject(), but the objects doesn't get set. (Earlier than this, I tried AjaxButton and the form.getModelObject() returns an array of

NavigatorLabel resourceKey question

2008-01-24 Thread Alex Greif
Hi, I want to display two DataTables on the same page with their own NavigatorLabel.But in the constructor of the NavigatorLabel class creates a StringResourceModel with the hardcoded resourceKey NavigatorLabel. As I undersdtand it, the .properties file may can localize only one label

Re: wicket maven archettype, SPRING-HIBERNATE-JPA?

2008-01-24 Thread Nino Saturnino Martinez Vazquez Wael
ahh not so scaffold then.. Konstantin Ignatyev wrote: http://www.hibernate.org/119.html#A10 - Original Message From: Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Thursday, January 24, 2008 2:28:11 PM Subject: Re: wicket maven archettype,

when cookies are disabled

2008-01-24 Thread mfs
Guys, When i disable the cookies on my browser (which i havent really played with before), pretty much every link i click takes me to the Session-Expired page..something i need to handle/cater too... I have created my own custom session by overriding newSession as follows public Session

Re: NavigatorLabel resourceKey question

2008-01-24 Thread Igor Vaynberg
currently it is not possible. feel free to add an rfe. you can also roll your own, it is a trivial class... -igor On Jan 24, 2008 3:18 PM, Alex Greif [EMAIL PROTECTED] wrote: Hi, I want to display two DataTables on the same page with their own NavigatorLabel.But in the constructor of the

Re: binding problem :(

2008-01-24 Thread Timo Rantalaiho
On Thu, 24 Jan 2008, Beyonder Unknown wrote: For some reason, my checkbox doesn't bind to my model. I have a DataView that contains the Check component, and in my button, onClick, I use form.getModelObject(), but the objects doesn't get set. (Earlier than this, I tried AjaxButton and the

Re: binding problem :(

2008-01-24 Thread Beyonder Unknown
Hi Timo, Thanks for the insight. I have to use CheckGroup, because i have to provide a check all/uncheck all checkbox. I got a typo there, the isSelected() is supposed to be part of Contact. And you're right, the isEmpty() is redundant if I use the for-each type loop. That's a remnant of the

Re: binding problem :(

2008-01-24 Thread Beyonder Unknown
I think for some reason, when I submit, it overrides the model in the form. and when I do form.getModelObject() it returns a wrong value. I'm suspecting that its in the bind part of my populateItem(). I don't know why though. Best, Wen Tong -- The only constant in life is change. -

Re: binding problem :(

2008-01-24 Thread Martijn Dashorst
Do you use an item reuse strategy for the repeater? Martijn On 1/25/08, Beyonder Unknown [EMAIL PROTECTED] wrote: I think for some reason, when I submit, it overrides the model in the form. and when I do form.getModelObject() it returns a wrong value. I'm suspecting that its in the bind part

Re: Localization

2008-01-24 Thread Thomas Gier
tbt wrote: Hi I tried to add a attribute to a html tag using the wicket:message tag. The code is as follows HomePage.html input type=button class=button wicket:message=value:button.label / HomePage.properties button.label=save This method didnt display the label in the html page. Then in

Re: openlayers

2008-01-24 Thread Peter Neubauer
Cool, I hope we can get this to a more stable state in the next couple of days so others can jump in and help out. Is anyone interested? The OL and GeoServer combo seems to be a very appealing combination for rolling your own mapping apps. /peter On Jan 24, 2008 5:42 PM, Nino Saturnino Martinez