[Wicket-user] Wicket i18n at the page level

2005-11-21 Thread David Leangen
Hello, I did some searching, but could only find info about i18n at the message level. I am interested in i18n at the page level. In other words, I have a site that needs to support more than one locale. The user should be able to switch between them from any point in the site. This is how I

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-21 Thread Sam Gendler
also, this discussion did not have much to do with spring itself, but with the fact that it isnt the greatest idea to tightly couple your persistence layer with your ui layer, because that forces your business logic to live inside the ui. i am familiar with spring so that is what i chose to

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-21 Thread Martijn Dashorst
Hi Sam, I find it unfortunate that you choose another framework, but at least you are moving away from MVC :-). I really appreciate your comments on (the structure of) the documentation. If you have other comments, please provide them, as they will enable us to make Wicket the framework you

Re: [Wicket-user] Wicket i18n at the page level

2005-11-21 Thread Juergen Donnerstag
On 11/21/05, David Leangen [EMAIL PROTECTED] wrote: Hello, I did some searching, but could only find info about i18n at the message level. I am interested in i18n at the page level. In other words, I have a site that needs to support more than one locale. The user should be able to switch

Re: [Wicket-user] Wicket i18n at the page level

2005-11-21 Thread Dorel Vaida
David Leangen wrote: Hello, I did some searching, but could only find info about i18n at the message level. I am interested in i18n at the page level. In other words, I have a site that needs to support more than one locale. The user should be able to switch between them from any point in the

Re: [Wicket-user] Getting input in a link, not in submit

2005-11-21 Thread Johan Compagner
nice!what you do in the submit link i want to do in the form itself (so the form generates a hidden input)Then everything in that form, Links, onChange listenerers will/can use that one to do the form submit but then dispatch the event) johanOn 11/21/05, Christian Essl [EMAIL PROTECTED] wrote:

Re: [Wicket-user] Wicket i18n at the page level

2005-11-21 Thread Matej Knopp
Having a component on every place localized text is, doesn't seem to be a very good solution for me. As well as not be able to localize button captions. The solution I've chosen was to translate the markup during parsing (using my own modified MarkupParser). This solution works quite well for

Re: [Wicket-user] Getting input in a link, not in submit

2005-11-21 Thread Manuel Corrales
I havent tested yet, but it seems exactly what i looking for. A submit link AND a submit button for the same form. I guess it will work, if not i will keep asking you. Thanks very much for your help. On 11/21/05, Christian Essl [EMAIL PROTECTED] wrote: Sorry I just realized that the SubmitLink

Re: [Wicket-user] Getting input in a link, not in submit

2005-11-21 Thread Christian Essl
nice! Thanks what you do in the submit link i want to do in the form itself (so the form generates a hidden input) Then everything in that form, Links, onChange listenerers will/can use that one to do the form submit but then dispatch the event) johan That's much better. Enclosed is the

Re: [Wicket-user] Wicket i18n at the page level

2005-11-21 Thread Juergen Donnerstag
On 11/21/05, Matej Knopp [EMAIL PROTECTED] wrote: Having a component on every place localized text is, doesn't seem to be a very good solution for me. As well as not be able to localize button captions. The solution I've chosen was to translate the markup during parsing (using my own

Re: [Wicket-user] wicket-contrib-jaspperreports JRResource optimalization

2005-11-21 Thread Matej Knopp
Okay, once more, without antivirus message attached to java file and one unnecessary try/catch block :) Matej Knopp wrote: Hi. There's a slight performace problem with JRResource, that it creates JasperReport in it's constructor. I've 10 resource links on one page so it means that 10

Re: [Wicket-user] Getting input in a link, not in submit

2005-11-21 Thread Johan Compagner
Will check youre code out. i hope this week.The problem now is that now always should the form completely be processed and other times is shouldfor example a Submit Link should i think process the form. But a onChange listener on a DropDownChoice shouldn't That last one shouldn't be a real submit

[Wicket-user] Wicket + Sitemesh - Page truncation problem

2005-11-21 Thread John Evans
I have never used Sitemesh or Wicket on a real project, although I've played with both and they both seem to work exactly as advertised -- now I'm trying to use them both together on a real project for the first time and I'm having a problem. The problem only happens when I'm accessing a

Re: [Wicket-user] Getting input in a link, not in submit

2005-11-21 Thread Christian Essl
Will check youre code out. i hope this week. The problem now is that now always should the form completely be processed and other times is should for example a Submit Link should i think process the form. But a onChange listener on a DropDownChoice shouldn't That last one shouldn't be a real

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-21 Thread Christian Essl
I think before writting a how-to doc it would be intresting for all what is a good-practice for setting up hibernate/spring/wicket. So I'd like to ask what is your best practice to for hibernate/spring/wicket? I currently first take basicly the same hibernate/spring setup as in

Re: [Wicket-user] Wicket + Sitemesh - Page truncation problem

2005-11-21 Thread Andrew Lombardi
I do believe, that Sitemesh is really not required when using Wicket... since you can inherit page markup via Border, Panel's, and the wicket:head/wicket:head wicket:extendwicket:child // wicket:extend. Doesn't negate that Sitemesh isn't working correctly with your environment though, but

Re: [Wicket-user] Wicket + Sitemesh - Page truncation problem

2005-11-21 Thread John Evans
That was the issue exactly -- we want to have several applications all branded exactly the same, but my group is only writing this one application (using wicket) On 11/21/05, Andrew Lombardi [EMAIL PROTECTED] wrote: I do believe, that Sitemesh is really not required when usingWicket... since

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-21 Thread Igor Vaynberg
Than use for all non pageable lists an OrderedRepeatingView. This is IMOthe most straight to use without much models and indirection - otherwise a DataView.dont know how useful an ordered repeating view would be for database driven lists since it doesnt refresh its children every request like

[Wicket-user] Complex (sort of) model

2005-11-21 Thread Manuel Corrales
Hi, i have this issue: have a form with several inputs, that form should be mapped to a class user i have. The thing is that the class user have an instance of a class Pacient inside and the data of the form must goe half to the User class and half to de Pacient. Can i achieve this without

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-21 Thread Christian Essl
dont know how useful an ordered repeating view would be for database driven lists since it doesnt refresh its children every request like dataview, so be careful there. I have my own subclass: MyORView extends OrdereredRepeatingView{ void internalOnBeginRequest(){ removeAll();

Re: [Wicket-user] Wicket + Sitemesh - Page truncation problem

2005-11-21 Thread Eelco Hillenius
In case you have a small test project or something, I would be very interested in taking a look at that and see if there's anything we need to do to make Wicket behave better with sitemesh. There has been more interest in it, so we might setup a small project for it too (wicket-stuff). Eelco On

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-21 Thread Eelco Hillenius
Whatever. I must be starting to suffer from that famous open source fatigue; I'm getting tired of that integration stuff. I'd hope there would be more emphasis on core issues. Anyway, if there's a bunch of people that agree on method x, and at least one core developer regards that as a 'best

Re: [Wicket-user] Complex (sort of) model

2005-11-21 Thread Igor Vaynberg
why not use the object as the model itself, this is easy with property models.Form form=new Form(form, new CompoundPropertyModel(new User());form.add(new TextField(name)); === maps to user.nameform.add(new TextField(pacient.name)); === maps to pacient.name-Igor On 11/21/05, Manuel Corrales [EMAIL

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-21 Thread Igor Vaynberg
that would do it :]-IgorOn 11/21/05, Christian Essl [EMAIL PROTECTED] wrote: dont know how useful an ordered repeating view would be for database driven lists since it doesnt refresh its children every request like dataview, so be careful there.I have my own subclass:MyORView extends

Re: [Wicket-user] Complex (sort of) model

2005-11-21 Thread Manuel Corrales
Great!!! I remember now reading that can use that pacient.name notation. That solves mi issue. Thanks very very much. This list is excelent!!. Thanks againOn 11/21/05, Igor Vaynberg [EMAIL PROTECTED] wrote: why not use the object as the model itself, this is easy with property models.Form

Re: [Wicket-user] wicket-contrib-jaspperreports JRResource optimalization

2005-11-21 Thread Eelco Hillenius
Thanks. Much better now. I implemented a couple of small changes on top of it, please check out whether you agree (find the patch attached). Eelco Matej Knopp wrote: Hi. There's a slight performace problem with JRResource, that it creates JasperReport in it's constructor. I've 10

Re: [Wicket-user] Complex (sort of) model

2005-11-21 Thread Igor Vaynberg
that dot notation is only usable when a CompoundPropertyModel is present. see this for more info and examples:http://www.wicket-wiki.org.uk/wiki/index.php/Models -IgorOn 11/21/05, Manuel Corrales [EMAIL PROTECTED] wrote: Great!!! I remember now reading that can use that pacient.name notation. That

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-21 Thread Christian Essl
I like it because it always saves you one model and if you just display data from the db with some links than you do need no models at all. It is also easy to make it pageable. A question: is the ItemReuseStrategy (OIR) still needed for forms and feebackpanels, because it seems also to work

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-21 Thread Igor Vaynberg
On 11/21/05, Christian Essl [EMAIL PROTECTED] wrote: A question: is the ItemReuseStrategy (OIR) still needed for forms andfeebackpanels, because it seems also to work with removeAll()?really depends on what you are doing.the component handlers are called before the onbeginrequest of the page and

[Wicket-user] iBatis

2005-11-21 Thread Miguel
Hi, i have followed the thread about hibernate and spring support, is anyone here working with ibatis? If so, where can i find some examples? thanks --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a

Re: [Wicket-user] iBatis

2005-11-21 Thread Ali Zaid
iBatis is cool, not sure what you are looking for since iBatis itself is so simple to implement with any other framwork.On 11/21/05, Miguel [EMAIL PROTECTED] wrote:Hi, i have followed the thread about hibernate and spring support, is anyone here working with ibatis?If so, where can i find some

Re: [Wicket-user] iBatis

2005-11-21 Thread Miguel
Ali Zaid wrote: iBatis is cool, not sure what you are looking for since iBatis itself is so simple to implement with any other framwork. -- Regards, Ali Just a starting point, do you have examples on usage? --- Miguel --- This SF.Net

Re: [Wicket-user] Getting input in a link, not in submit

2005-11-21 Thread Johan Compagner
that's not what i meanShould youre SubmitLink do the normal validation of the form? Is it a normal submit?I think so.But my other example the onChange on a drop down. If that one is triggered it is not a normal submit The form shouldn't do anything, so defaultFormProcessing == false but where is

Re: [Wicket-user] Getting input in a link, not in submit

2005-11-21 Thread Christian Essl
So you mean the JavaScript should store the path to the component in the hidden field and the form reads this out (if present) looks-up the component and calls some (interface) method on the component. This would be at least JavaScript wise the best solution - I don't know how older browser

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-21 Thread Christian Essl
That clears it up thanks Christian On Mon, 21 Nov 2005 12:04:26 -0800, Igor Vaynberg [EMAIL PROTECTED] wrote: On 11/21/05, Christian Essl [EMAIL PROTECTED] wrote: A question: is the ItemReuseStrategy (OIR) still needed for forms and feebackpanels, because it seems also to work with

[Wicket-user] session management

2005-11-21 Thread Manuel Corrales
Hi, i've asked this question once but dont get a solution. So here i go again: I have some clues about stateful beans and stateless beans but not too much. What i need is that when a user logins, create an object and that that object exists during the user session (to logout). Now i think this is

Re: [Wicket-user] session management

2005-11-21 Thread Eelco Hillenius
You could best take a look at the sign-in example of wicket-examples. It has a custom session - which can be used to store information you want to keep during the whole user session - and it has an example of how to prevent access/ redirect to a login page for a non logged on user. Eelco On

Re: [Wicket-user] session management

2005-11-21 Thread Igor Vaynberg
On 11/21/05, Manuel Corrales [EMAIL PROTECTED] wrote: Hi, i've asked this question once but dont get a solution. So here i go again:Sorry, must've missed it. I have some clues about stateful beans and stateless beans but not too much. What i need is that when a user logins, create an object and

Re: [Wicket-user] Hibernate paging

2005-11-21 Thread Matej Knopp
Hi, Have a look at wicket-extensions: DataView. You implement your own IDataProvider which can use hibernate paging. -Matej Juhani K wrote: Hi, what is recommended way to create pageable ListView for 1 database items? Is it possible to utilize Hibernate paging?

Re: [Wicket-user] Hibernate paging

2005-11-21 Thread Igor Vaynberg
examples of dataview and datatable in action are available in wicket-examples project under repeater examples-IgorOn 11/21/05, Matej Knopp [EMAIL PROTECTED] wrote:Hi,Have a look at wicket-extensions: DataView. You implement your own IDataProvider which can use hibernate paging.-MatejJuhani K