Re[2]: Alternative to Wicket data binding

2007-08-26 Thread Oleg Taranenko
Hi Igor and Eelco, Sorry, for interventing in your discussion :) May java annotations can help us? Say [EMAIL PROTECTED]/Write or [EMAIL PROTECTED] or ever to protect all bean. It would protect the field from accidently access in Wicket models without any assumption on set/get functions.

Re: Alternative to Wicket data binding

2007-08-26 Thread Matej Knopp
For the sake of clarity, I think this: with public getXXX and private setXXX the property is read only with public getXXX and no setXXX the property is read only So do I. I think it needs to be fixed. If there is a private setter, we should use it. Period. Johaaan?! -Matej

Re: AJAX form submit and validation

2007-08-26 Thread Gerolf Seitz
concerning one field depends on another: have you already taken a look at http://cwiki.apache.org/confluence/display/WICKET/Validating+related+fields? the code is still 1.2, but it should get you started. hth, gerolf On 8/26/07, Ian Godman [EMAIL PROTECTED] wrote: Hi I have a form that is

RepeatingView : Removing a table row

2007-08-26 Thread pokkie
I have a RepeatingView that I generate, each row is represented as a WebMarkupContainer. At the end of each row I add a checkbox. When the Delete Selected button is called, I wish to remove the selected row from the RepeatingView and update the page to reflect this status.

RepeatingView : Removing a table row

2007-08-26 Thread pokkie
I have a RepeatingView that I generate, each row is represented as a WebMarkupContainer. At the end of each row I add a checkbox. When the Delete Selected button is called, I wish to remove the selected row from the RepeatingView and update the page to reflect this status.

Re: Re[2]: Alternative to Wicket data binding

2007-08-26 Thread Igor Vaynberg
the processing impart would be nil because we cache a lot of the information. however forcing wicket annotations on middle tier objects is not a very good approach. if people really wanted to do this they can create this kind of annotation themselves and then install a security manager that would

Re: AJAX form submit and validation

2007-08-26 Thread Gerolf Seitz
have you tried AjaxFormComponentUpdatingBehavior? gerolf On 8/26/07, Ian Godman [EMAIL PROTECTED] wrote: Thanks but this does not solve my problem. I am submitting the form via ajax using an AjaxSubmitLink. If the form has errors on it then I do not get the submit, if the form has no

Re: RepeatingView : Removing a table row

2007-08-26 Thread Carlos Pita
Hi, it worked fine for me, I attach my own code so you can compare. Btw, why don't you just use a listview with a model that filters out the selected items? Imo it's simpler and more elegant. And another remark: you can bind your checkbox to a boolean (see my example). Regards, Carlos On

Re: RepeatingView : Removing a table row

2007-08-26 Thread Igor Vaynberg
that is rather peculiar, could you please reproduce this in a quickstart? -igor On 8/26/07, pokkie [EMAIL PROTECTED] wrote: I have a RepeatingView that I generate, each row is represented as a WebMarkupContainer. At the end of each row I add a checkbox. When the Delete Selected button is

Re: RepeatingView : Removing a table row

2007-08-26 Thread Carlos Pita
And now that I *really* look at this while (exerciseTable.iterator().hasNext()) { WebMarkupContainer container = (WebMarkupContainer) exerciseTable.iterator().next(); if (container.get

Re: DownloadLink hanging

2007-08-26 Thread Thomas Singer
BTW, as long as this issue is not fixed, we can't take our Wicket-based website online. This is a show-stopper bug for us. :( -- Best regards, Thomas Singer _ SyntEvo GmbH Brunnfeld 11 83404 Ainring Germany www.syntevo.com Thomas Singer wrote: Done:

Re: AJAX form submit and validation

2007-08-26 Thread Eelco Hillenius
On 8/26/07, Ian Godman [EMAIL PROTECTED] wrote: Thanks but this does not solve my problem. I am submitting the form via ajax using an AjaxSubmitLink. If the form has errors on it then I do not get the submit, if the form has no errors then the submit code runs ok. The errors are not

Dynamically created popup window, IE7 wicket 1.3

2007-08-26 Thread Wilko Hische
Hi, For a chat application I would like to display a list of chat requests that have come in. This list is updated by making use of an AbstractAjaxTimerBehavior. When the user clicks a chat request in the list, a popup window will open containing that particular chat conversation. In FF all

Re: AJAX form submit and validation

2007-08-26 Thread Ian Godman
From what I can see AjaxFormComponentUpdateingBehaviour does not help. It appears that the only way to do this is to not use component validation but to write my own validation in the submit processing code. Not the most maintainable of solutions :( Ian - Original Message From:

Re: AJAX form submit and validation

2007-08-26 Thread Ian Godman
I worked it out. Very simple solution! On the AjaxSubmitLink override the onError method and add the feedback panel to the AjaxRequestTarget ! Ian - Original Message From: Gerolf Seitz [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Sunday, 26 August, 2007 6:05:00 PM Subject:

Re: Newbie questions

2007-08-26 Thread Eelco Hillenius
On 8/26/07, Otan [EMAIL PROTECTED] wrote: I hope that chapter on Models be free to download as well for the benefits of newbies. Sorry, I'm afraid we can't do that. Only chapter 1 is free to download. Eelco - To unsubscribe,

Re: Markup of type 'html' for component 'wicket.contrib.gmap.GMap2' not found

2007-08-26 Thread Martin Funk
Hi Hung, this addition to the pom.xml of groupIdorg.wicketstuff/groupId artifactIdwicket-contrib-gmap2-examples/artifactId should not be needed since that pom inherits that setting form the pom.xml of groupIdorg.apache.wicket/groupId artifactIdwicket-parent/artifactId

DataTable with DropDownChoice to set rowsPerPage

2007-08-26 Thread Jerry Anders
I would like to be able to add a dropdown to a DataTable so that a user can change the rowsPerPage. Has anyone done this before? If not, what is the best / recommended approach? I tried the following, but I get: IllegalStateException: Attempt to set model object on null model of component:

Re: DataTable with DropDownChoice to set rowsPerPage

2007-08-26 Thread janders
The format of the Exception got munged with the example code. This should read as: IllegalStateException: Attempt to set model object on null model of component: rows final DataTable contacts = NEWDataTable(contacts, columns, contactProvider, rowsPerPage) { @Override PROTECTEDItem

RefreshingView only gets rendered when TreeTable node is opened twice

2007-08-26 Thread Gerolf Seitz
hi, i have a refreshingview in a treetable column, but it only gets rendered after opening, closing and again opening the corresponding treenode. did anyone else notice this misbehavior? thanks for any hints, gerolf

Re: DataTable with DropDownChoice to set rowsPerPage

2007-08-26 Thread Igor Vaynberg
class mypage() { static int[] pages=new int[] {10,15,20,25}; public mypage () { final DataTable dt=new datatable(..); add(new dropdownchoice(pages, new imodel() { void setObject(Object e) { dt.setrowsperpage((Integer)e); } Object getObject() { return td.getrowsperpage();

Re: RefreshingView only gets rendered when TreeTable node is opened twice

2007-08-26 Thread Gerolf Seitz
i'm using trunk (as of yesterday) 1.3.0-SNAPSHOT i'll file a jira issue later today, including a quickstart gerolf On 8/27/07, Matej Knopp [EMAIL PROTECTED] wrote: It's probably a bug, can you please fill in a JIRA entry and assign it to me? What wicket version are you using? -Matej On

Re: AJAX form submit and validation

2007-08-26 Thread Carlos Pita
On 8/26/07, Ian Godman [EMAIL PROTECTED] wrote: I worked it out. Very simple solution! On the AjaxSubmitLink override the onError method and add the feedback panel to the AjaxRequestTarget ! Ian Yes, that or setDefaultFormProcessing(false) as Eelco suggested before. That's not doing