Re: [Wicket-user] Force session invalidate after render error page ?

2006-03-24 Thread Johan Compagner
in youre constructor of that error page:setRedirect(false);getSession().invalidate();johanOn 3/24/06, Ingram Chen [EMAIL PROTECTED] wrote: Dear all, My yet another question about error handling. Is it possible to force session invalidate after render global error page ? My reasonfor this is if

Re: [Wicket-user] Deal with specific exception

2006-03-24 Thread Johan Compagner
that should work fine. except ofcourse if youre exception page also throws an exception again somehow.johanOn 3/24/06, Ingram Chen [EMAIL PROTECTED] wrote: Dear all, I want to catch a specific RuntimeException and then redirect to a special error page (not global one), I try to do this: @Override

Re: [Wicket-user] Force session invalidate after render error page ?

2006-03-24 Thread Ingram Chen
This doesn't work. I still got expired page.On 3/24/06, Johan Compagner [EMAIL PROTECTED] wrote: in youre constructor of that error page:setRedirect(false); getSession().invalidate();johan On 3/24/06, Ingram Chen [EMAIL PROTECTED] wrote: Dear all, My yet another question about error handling. Is

Re: [Wicket-user] Deal with specific exception

2006-03-24 Thread Ingram Chen
My exception page is blank, just a page with some static html.I could'nt imagine it will throw any exception...On 3/24/06, Johan Compagner [EMAIL PROTECTED] wrote:that should work fine. except ofcourse if youre exception page also throws an exception again somehow.johan On 3/24/06, Ingram Chen

Re: [Wicket-user] Force session invalidate after render error page ?

2006-03-24 Thread Johan Compagner
when does the error happen?When you are already in render mode of the page that did go wrong?If that is the case then youre case is not possible, to do it.Because we then need to redirect.What you could do maybe is this in the constructor: getSession().invalidate();throw new

Re: [Wicket-user] Deal with specific exception

2006-03-24 Thread Johan Compagner
Add a bug in our bug system with a reproduceable testcase attached.johanOn 3/24/06, Ingram Chen [EMAIL PROTECTED] wrote:My exception page is blank, just a page with some static html. I could'nt imagine it will throw any exception...On 3/24/06, Johan Compagner [EMAIL PROTECTED] wrote:that should

[Wicket-user] DropDownChoice.wantOnSelectionChangedNotifications() dosn't work on 1.2_beta2 ?

2006-03-24 Thread Martin Bednar
When I upgrading from 1.1 to 1.2beta2 roundtrip to server dosn't work. private Form getForm() { if (null == form) { form = new Form(form); getNavomaticBorder().add(form); getNavomaticBorder().add(new FeedbackPanel(feedback)); } return form;

Re: [Wicket-user] DropDownChoice.wantOnSelectionChangedNotifications() dosn't work on 1.2_beta2 ?

2006-03-24 Thread Johan Compagner
do you have anywhere in the page another navomaticBorder:form ??Because that is the id the form did get:form action="" class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

[Wicket-user] DataTable and IDataProvider question

2006-03-24 Thread Frank Silbermann
I am working with a database that is kind of strange. Someone provides a new table with each days data. Thus, the database can cause an SQLException as a normal result for the use case where the user requests data that hasnt been produced yet. When my Iterator IDataprovider.iterate(int

Re: [Wicket-user] DataTable and IDataProvider question

2006-03-24 Thread Igor Vaynberg
how did it crash? what was the output?another thing is cant you try this before the datatable is even rendering? why do the check so late in the game?-IgorOn 3/24/06, Frank Silbermann [EMAIL PROTECTED] wrote: I'm using 1.2 B2 -Original Message- From: [EMAIL

Re: [Wicket-user] ?Contract for Iterator IDataProvider.iterator(int first, int count) ???

2006-03-24 Thread Igor Vaynberg
the implementation will trim to size()-IgorOn 3/24/06, Frank Silbermann [EMAIL PROTECTED] wrote: To use the Wicket-extensions 1.2 DataTable, we must provide an implementation of IDataProvider. IDataProvider , in turn, requires that we implement "int size()" and

RE: [Wicket-user] DataTable and IDataProvider question

2006-03-24 Thread Frank Silbermann
Are we not expected to go to the database when the iterate(first, count) method is called? Thats when the database tells me (through an SQLException) that the table hasnt been created yet. I am beginning to wonder about assumed invariants that I did not take into consideration in my

Re: [Wicket-user] gnarly form model issue

2006-03-24 Thread Vincent Jenks
I've attached a screenshot of what this page does.Basically, the page you see receives a Product object in the constructor when it is called from the previous page. Each Product has a List of Configuration objects...which you see listed in the screenshot ( i.e. 1 Bone In Ham Half 7-10 lbs @

RE: [Wicket-user] ?Contract for Iterator IDataProvider.iterator(int first, int count) ???

2006-03-24 Thread Frank Silbermann
That suggests to me that the implementation might assume it always gets all the rows it asks for, and may raise an exception otherwise. Is that correct? If so, then any change in the number of rows between displays requires not merely that the DataTable page be reset to 1 (assuming page

Re: [Wicket-user] ?Contract for Iterator IDataProvider.iterator(int first, int count) ???

2006-03-24 Thread Igor Vaynberg
it doesnt assume anything, it tries to be as lenient as possibleso if your size() suggests that there should be 5 entries on this page, but your iterator only returns 3 - only 3 will be displayed w/out any errors. also if your iterator returns 7 then still only 5 are shown. -IgorOn 3/24/06, Frank

Re: [Wicket-user] DataTable and IDataProvider question

2006-03-24 Thread Igor Vaynberg
it should work just fine for varying sizes. i really dont understand where your problem is.i modified the examples DataTablePage with the following and it worked just fine, not sure what its not working for you: add(new DefaultDataTable(table, columns, new SortableDataProvider() { public

Re: [Wicket-user] gnarly form model issue

2006-03-24 Thread Igor Vaynberg
if you are using a listview there is really no way to use a compound property model. here is what you can do:on your page create a map:configid-qtythen to the dropdown choices assign a model that will read/write a key from this map. so when the form submits you endup with a filled in map in your

Re: [Wicket-user] gnarly form model issue

2006-03-24 Thread Vincent Jenks
OK, I'll try itthanks for the help! But, to answer my question - Is there a way to access each of the form fields as stand-alone variables?On 3/24/06, Igor Vaynberg [EMAIL PROTECTED] wrote: public class MyPage extends WebPage {private MapLong,Integer selection=new HashMapLong,Integer();public

Re: [Wicket-user] gnarly form model issue

2006-03-24 Thread Vincent Jenks
OK, I'll try itthanks for the help! But, to answer my question - Is there a way to access each of the form fields as stand-alone variables?On 3/24/06, Vincent Jenks [EMAIL PROTECTED] wrote: OK, I'll try itthanks for the help! But, to answer my question - Is there a way to access each of

Re: [Wicket-user] ListView containing BookmarkablePageLink items

2006-03-24 Thread Igor Vaynberg
change span wicket:id=link/ to span wicket:id=link/spanlabels work by replacing the body of the tag they are attached to, since span wicket:id=link/ doesnt have a body there is no visible output. -IgorOn 3/24/06, Matthias Albert [EMAIL PROTECTED] wrote: Trying to create a ListView that shows a

Re: [Wicket-user] DropDownChoice.wantOnSelectionChangedNotifications() dosn't work on 1.2_beta2 ?

2006-03-24 Thread Johan Compagner
then i really am out of options. Can you test what object it really is with some object _javascript_?so something like alert(document.getElementById(formsxxx):joahn On 3/24/06, Martin Bednar [EMAIL PROTECTED] wrote: No, there are only one id=navomaticBorder:form, I attach whole HTML.

Re: [Wicket-user] AjaxFormComponentUpdatingBehavior and tag modification

2006-03-24 Thread karthik Guru
I tried adding it as a separate behaviour. But since the behaviour executes during fresh page instantiation, the components show up with class attribute value 'valid'. I would rather not have any class attribute set on the html element the first time the page is viewed. component.add(new

Re: [Wicket-user] AjaxFormComponentUpdatingBehavior and tag modification

2006-03-24 Thread Igor Vaynberg
i guess we would have to add some sort of a flag to the form so that you know if it has been submitted in this request. please add an rfe and i will try to get to it this weekend maybe. -Igor On 3/24/06, karthik Guru [EMAIL PROTECTED] wrote: I tried adding it as a separate behaviour. But since

[Wicket-user] Java Web Framework Sweet Spots

2006-03-24 Thread Eelco Hillenius
FYI, Matt Raible asked me to give my opinion about Wicket and some of it's competitors. He presenting it tonight at the server side symposium, and you can find his presentation here: http://www.virtuas.com/articles/webframework-sweetspots.html Eelco

Re: [Wicket-user] AjaxFormComponentUpdatingBehavior and tag modification

2006-03-24 Thread karthik Guru
ok this works .. if (((FormComponent)component).isValid() comp.getConvertedInput() != null) { tag.getAttributes().put(class, valid); }else if (!comp.isValid()){ tag.getAttributes().put(class, invalid); } On 3/24/06, karthik Guru [EMAIL PROTECTED] wrote: I tried adding it as a