Re: [Wicket-user] update from beta2 to beta3 broke in context of

2006-04-04 Thread Juergen Donnerstag
Thanks. I'll check it out. Juergen On 4/5/06, Ari Suutari <[EMAIL PROTECTED]> wrote: > There is a simple example in > http://download.syncrontech.com/public/wicketheadproblem.zip > > Ari S. > > - Original Message - > From: "Juergen Donnerstag" <[EMAIL PROTECTED]> > To: > Sent: Tuesda

Re: [Wicket-user] update from beta2 to beta3 broke in context of

2006-04-04 Thread Ari Suutari
There is a simple example in http://download.syncrontech.com/public/wicketheadproblem.zip Ari S. - Original Message - From: "Juergen Donnerstag" <[EMAIL PROTECTED]> To: Sent: Tuesday, April 04, 2006 3:02 PM Subject: Re: [Wicket-user] update from beta2 to beta3 broke in context of

Re: [Wicket-user] starting jetty with 1.2 beta3

2006-04-04 Thread Igor Vaynberg
from experience :) -Igor On 4/4/06, Scott Swank <[EMAIL PROTECTED]> wrote: Tomcat 4.1.31 -- that got it.  Thanks so much Alexandre.  Now just howdid y'all know that jasper was missing from the exception I posted?:)ScottOn 4/4/06, Alexandre Bairos < [EMAIL PROTECTED]> wrote:> The jars are in %tomca

Re: [Wicket-user] starting jetty with 1.2 beta3

2006-04-04 Thread Scott Swank
And of course thanks to Eelco for the initial catch. On 4/4/06, Scott Swank <[EMAIL PROTECTED]> wrote: > Tomcat 4.1.31 -- that got it. Thanks so much Alexandre. Now just how > did y'all know that jasper was missing from the exception I posted? > :) > > Scott > > > On 4/4/06, Alexandre Bairos <[E

Re: [Wicket-user] starting jetty with 1.2 beta3

2006-04-04 Thread Scott Swank
Tomcat 4.1.31 -- that got it. Thanks so much Alexandre. Now just how did y'all know that jasper was missing from the exception I posted? :) Scott On 4/4/06, Alexandre Bairos <[EMAIL PROTECTED]> wrote: > The jars are in %tomcat%/common/lib. Jasper-runtime.jar and > jasper-compile.jar. Use the

Re: [Wicket-user] starting jetty with 1.2 beta3

2006-04-04 Thread Alexandre Bairos
The jars are in %tomcat%/common/lib. Jasper-runtime.jar and jasper-compile.jar. Use the ones from tomcat 4.x.On 4/4/06, Scott Swank < [EMAIL PROTECTED]> wrote:Eelco -- I can't find either of those jars in the latest tomcat, nor via google, nor do I see them in wicket 1.2 beta3.  Where do thosejaspe

Re: [Wicket-user] starting jetty with 1.2 beta3

2006-04-04 Thread Scott Swank
Eelco -- I can't find either of those jars in the latest tomcat, nor via google, nor do I see them in wicket 1.2 beta3. Where do those jasper jars originate? Igor -- I don't have maven installed, are there other options for me here? Thanks again, Scott On 4/4/06, Igor Vaynberg <[EMAIL PROTECTE

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

2006-04-04 Thread Igor Vaynberg
On 4/4/06, Frank Silbermann <[EMAIL PROTECTED]> wrote: If the value of "count" in "Iterator IDataProvider.iterate(first,count)" depends upon the results returned by "int IDataProvider.size()"  that would explain my problem, because the value of "count" would have been based on obsole

[Wicket-user] Re: WicketAjaxIndicatorAppender

2006-04-04 Thread Nathan Hamblen
Steve Knight wrote: > Not easily. I am using Databinder which I think is tied to beta2. Not anymore! http://technically.us/n8/articles/2006/04/04/databinder-snapshot-for-wicket-1-2-beta3 Nathan --- This SF.Net email is sponsored by xPML, a g

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

2006-04-04 Thread Igor Vaynberg
If so, I would ask _which_ framework method _should_ trigger the retrieval of database information needed by both IDataProvider methods?  If I knew which of the two methods were called first – I could put the database query there.  Or, perhaps the database query should be triggered by some other f

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

2006-04-04 Thread Igor Vaynberg
you dont need to hide/cache anything. instead of trying to "push" your formstate into the idataprovider, PULL it by letting the dataprovider have a reference to the form's model.-Igor On 4/4/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Therefore, for each post-back, I'll need to query the datab

Re: [Wicket-user] Re:Set default value for DropDownChoice (Was can't get rid of "Choose One" in DropDownChoice)

2006-04-04 Thread Igor Vaynberg
there is no "default" value. the value selected in the dropdown will be the one that is set in the model that the drop down uses. so when you submit, the selected object is pushed into the model, when dropdown renders the selected object is the one that is pulled from the model. ie:public Page exte

Re: [Wicket-user] Question about DataTable and IDataProvider restated

2006-04-04 Thread Igor Vaynberg
there is nothing to "trigger" for idataprovider. whenever the datatable renders it will call the appropriate methods. simply make your dataprovide have a reference to your form model and then use that as the criteria for quieries in both size and iterator. -IgorOn 4/4/06, Frank Silbermann <[EMAIL P

RE: [Wicket-user] Question about DataTable and IDataProvider restated

2006-04-04 Thread Frank Silbermann
I suppose the usual approach is to trigger the download of IDataProvider’s data via the event handler of the submit button.  That way, the data would be available for both “Iterator IDataProvider.iterate(first, count)” and “int IDataProvider.size()”.   However, I do not have a single subm

Re: [Wicket-user] getting localized error messages associated with validators

2006-04-04 Thread Johan Compagner
the form component has just a list of messages 'attached' to itthe localizer is used to get the message depending on the key the validator is giving.And looking at the code i believe there will be olny one message (the first validator that fails) johanOn 4/3/06, karthik Guru <[EMAIL PROTECTED]> wro

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

2006-04-04 Thread Eelco Hillenius
> Therefore, for each post-back, I'll need to query the database before > _either_ of these methods return. > > If both methods query the database independently, intervening CRUD > operations may cause them to return inconsistent results (a size that is too > small or too large). I can and should

[Wicket-user] Re:Set default value for DropDownChoice (Was can't get rid of "Choose One" in DropDownChoice)

2006-04-04 Thread Stefan Lindner
-igor writes "initialize the drop down choice' model to the default value when you first render the page." Does that really mean, that I can't create a subclass of DropDownChoice that konws of it's default value by itself? Only when the page gets rendered I have to add code for the default value?

Re: [Wicket-user] Question about DataTable and IDataProvider restated

2006-04-04 Thread Eelco Hillenius
> I suppose the usual approach is to trigger the download of IDataProvider's > data via the event handler of the submit button. That way, the data would > be available for both "Iterator IDataProvider.iterate(first, count)" and > "int IDataProvider.size()". It's the responsibility of the model(s)

Re: [Wicket-user] starting jetty with 1.2 beta3

2006-04-04 Thread Eelco Hillenius
It seems that it wants the jasper libs too (jasper-runtime-x.jar and probably jasper-compiler-x.jar). Eelco On 4/4/06, Scott Swank <[EMAIL PROTECTED]> wrote: > I just downloaded the beta3 wicket-examples and created a new Java > project for it in Eclipse 3.1. When I try to run StartExamples I >

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

2006-04-04 Thread Frank Silbermann
Assuming that the database query depends upon whatever page-component selections prompted the post-back, both “int IDataProvider.size()” and “Iterator IDataProvider.iterator(first,count)”  require information that can only be gotten by a database query.:   Therefore, for each post-back, I

Re: [Wicket-user] starting jetty with 1.2 beta3

2006-04-04 Thread Igor Vaynberg
wicket-examples already comes with a configured eclipse project doesnt it?also if you have maven 2 installed and run mvn eclipse:eclipse it will download all the deps and build the eclipse project files for you. -IgorOn 4/4/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: It seems that it wants the j

[Wicket-user] starting jetty with 1.2 beta3

2006-04-04 Thread Scott Swank
I just downloaded the beta3 wicket-examples and created a new Java project for it in Eclipse 3.1. When I try to run StartExamples I receive the following -- which is rather odd since this jar (org.mortbay.jetty-4.2.24.jar) is visible under project properties: Java Build Path > Libraries. Have I j

Re: [Wicket-user] WicketAjaxIndicatorAppender

2006-04-04 Thread Igor Vaynberg
hrm. ok. can you make me a quickstart project that reproduces the problem? and then i will try it against trunk and tell  you if its been fixed or not.-IgorOn 4/4/06, Steve Knight <[EMAIL PROTECTED]> wrote: Not easily.  I am using Databinder which I think is tied to beta2.Steve On 4/4/06, Igor Vay

Re: [Wicket-user] Set default value for DropDownChoice (Was can't get rid of "Choose One" in DropDownChoice)

2006-04-04 Thread Igor Vaynberg
initialize the drop down choice' model to the default value when you first render the page.-IgorOn 4/4/06, Stefan Lindner < [EMAIL PROTECTED]> wrote:I'm glad that I don't see "Choose One" anymore. But how can I really set the default value for a DropDownChoice? It doesn't matter which value Ireturn

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

2006-04-04 Thread Igor Vaynberg
the iterator() and size() are not meant to be used "together" and there is no, nor ever be, a contract that guarantees any ordering of invocations between these two methods.size() is meant to return the total number of rows iterator() is used to return a window that will be displayedthose are the o

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

2006-04-04 Thread Frank Silbermann
I have a question about the intended use of the DataTable components provided in Wicket Extensions.  The DataTable relies upon an IDataProvider to provide the data.  To do this, we implement: “Iterator iterate(first, count)” Lacking any advice to the contrary, I assumed that

[Wicket-user] Set default value for DropDownChoice (Was can't get rid of "Choose One" in DropDownChoice)

2006-04-04 Thread Stefan Lindner
I'm glad that I don't see "Choose One" anymore. But how can I really set the default value for a DropDownChoice? It doesn't matter which value I return in the "getDefaultChoice" method. It's always the first item of the DropDownChoice that is displayed. The only way I found to set a default value w

Re: [Wicket-user] WicketAjaxIndicatorAppender

2006-04-04 Thread Igor Vaynberg
indicator is really any div/span that can be anywhere on the page. if you dont like how the WicketAjaxIndicatorAppender is working, dont use it. create a div somewhere in the markup, give it an id, and return that id in the getIndicatorMarkupId(). -IgorOn 4/4/06, Steve Knight <[EMAIL PROTECTED]> wr

Re: [Wicket-user] WicketAjaxIndicatorAppender

2006-04-04 Thread Steve Knight
I will try and make a quickstart project tonight.  Another question...is there anyway to define in the markup where the indicator should go?  For example, I don't want it to show up right next to the button. SteveOn 4/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: hrm. ok. can you make me a quickst

Re: [Wicket-user] links problems again

2006-04-04 Thread Igor Vaynberg
wicket:link has always worked like this and we did not intend to change it in 1.2. wicket:link is a convinience, if it doesnt fit your usecase use regular link components or subclass WicketLinkTagHandler and implement any behavior you want. i tested tabbed panels here and they work fine. if you wan

Re: [Wicket-user] Weird problem with AJAX and crypted url...

2006-04-04 Thread Juergen Donnerstag
I need to look at the code. May be urlencode == base64. But than that error shouldn't happen provided all base64 chars are allowed within urls? Based on wikipedia there are at least two different "encodings" for base64. One using '+' and '/' and the other (RC 3548) one not, because + and / may caus

Re: [Wicket-user] WicketAjaxIndicatorAppender

2006-04-04 Thread Steve Knight
Not easily.  I am using Databinder which I think is tied to beta2.SteveOn 4/4/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:can you try against trunk or beta3? -IgorOn 4/4/06, Steve Knight <[EMAIL PROTECTED]> wrote: I am trying to make an AjaxSubmitButton that uses WicketAjaxIndicatorAppender to di

[Wicket-user] links problems again

2006-04-04 Thread Potje rode kool
Just updated to wicket 1.2 beta 3 but I still have link problems all over the place.If I use the links work only correctly if the pages where they point to are in the same package.I also got problems with working with tabs (using the TabbedPanel from wicket extensions), if I put links on a panel o

Re: [Wicket-user] WicketAjaxIndicatorAppender

2006-04-04 Thread Igor Vaynberg
can you try against trunk or beta3?-IgorOn 4/4/06, Steve Knight <[EMAIL PROTECTED]> wrote: I am trying to make an AjaxSubmitButton that uses WicketAjaxIndicatorAppender to display a busy indicator, but it's not quite working.  I used the IndicatingAjaxLink as a guideline, and everything seems to wo

[Wicket-user] WicketAjaxIndicatorAppender

2006-04-04 Thread Steve Knight
I am trying to make an AjaxSubmitButton that uses WicketAjaxIndicatorAppender to display a busy indicator, but it's not quite working.  I used the IndicatingAjaxLink as a guideline, and everything seems to work except that the indicator does not disappear after the Ajax call is completed. Here is

Re: [Wicket-user] Weird problem with AJAX and crypted url...

2006-04-04 Thread Igor Vaynberg
if we are base64 encoding the string why do we need to urlencode it? it should be safe already.-IgorOn 4/4/06, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:I think we are doing it already, but haven't checked the code. JuergenOn 4/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> we might have to ba

Re: [Wicket-user] Weird problem with AJAX and crypted url...

2006-04-04 Thread Igor Vaynberg
please file a bug so this doesnt slip through the cracks.-IgorOn 4/4/06, Ramnivas Laddad <[EMAIL PROTECTED] > wrote:Just a bit more information: I switched non-crypted  request andresponse. With that change, application works just fine. -RamnivasRamnivas Laddad wrote:> I have a tree with each node

Re: [Wicket-user] Weird problem with AJAX and crypted url...

2006-04-04 Thread Ramnivas Laddad
Just a bit more information: I switched non-crypted request and response. With that change, application works just fine. -Ramnivas Ramnivas Laddad wrote: I have a tree with each node containing an AjaxLink. Clicking on certain links works correctly, but others fail with a 500 error. I am us

Re: [Wicket-user] Weird problem with AJAX and crypted url...

2006-04-04 Thread Igor Vaynberg
we might have to base64 the encoded string before putting it into the url.-IGorOn 4/4/06, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:The error message means that the string to be decrypted does not have the proper/expected length (padding). The problem is the encryptedstring must be URL encoded

Re: [Wicket-user] Re: More on refreshing page contents

2006-04-04 Thread Igor Vaynberg
have you seen GridView in extensions? it wraps the listview inside listview idea and adds paging, etc.if you have a fixed set of columns for each row there is DataGridView or a higher level DataTable also in extensions. there are examples of these in wicket-examples under repeaters.-IgorOn 4/4/06,

Re: [Wicket-user] Re: More on refreshing page contents

2006-04-04 Thread Igor Vaynberg
while it is true that new Model() { getObject()  . will work, it is better to use AbstractReadOnlyModel as the base instead because it will error if you call setObject() on it by mistake.-Igor On 4/4/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Anything would have worked as long as the list t

Re: [Wicket-user] Weird problem with AJAX and crypted url...

2006-04-04 Thread Juergen Donnerstag
I think we are doing it already, but haven't checked the code. Juergen On 4/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > we might have to base64 the encoded string before putting it into the url. > > -IGor > > > > On 4/4/06, Juergen Donnerstag < [EMAIL PROTECTED]> wrote: > > > The error messa

Re: [Wicket-user] Re: More on refreshing page contents

2006-04-04 Thread Igor Vaynberg
On 4/4/06, Anders Peterson <[EMAIL PROTECTED]> wrote: That worked!I also had to move the declaration of tmpInstrument to inside thepopulateItem method (otherwise all rows were the same).not really sure what you mean here  Thanks!(I feel this was a bit more complicated than it should be.)Could this

[Wicket-user] Re: More on refreshing page contents

2006-04-04 Thread Anders Peterson
That worked! I also had to move the declaration of tmpInstrument to inside the populateItem method (otherwise all rows were the same). Thanks! (I feel this was a bit more complicated than it should be.) Could this have been done with a CompoundPropertyModel and Loop:s instead of ListView:s

Re: [Wicket-user] Weird problem with AJAX and crypted url...

2006-04-04 Thread Juergen Donnerstag
The error message means that the string to be decrypted does not have the proper/expected length (padding). The problem is the encrypted string must be URL encoded to make sure that only chars are use which are allowed in URLs. The only reason I can think of: The following equation should be true:

Re: [Wicket-user] Re: More on refreshing page contents

2006-04-04 Thread Eelco Hillenius
Anything would have worked as long as the list that you return is fresh by either using a detachable model, or one of the models that re-evaluate on every call, like PropertyModels or e.g. a model like: IModel listViewModel = new Model() { Object getObject(Component c) { return tmpInstrument

[Wicket-user] Re: More on refreshing page contents

2006-04-04 Thread Anders Peterson
Igor Vaynberg wrote: On 4/4/06, Anders Peterson <[EMAIL PROTECTED]> wrote: That worked! I also had to move the declaration of tmpInstrument to inside the populateItem method (otherwise all rows were the same). not really sure what you mean here I have two ListViews - one for the rows and on

Re: [Wicket-user] Extra markup while creating listview

2006-04-04 Thread Eelco Hillenius
And so am I :) Eelco On 4/4/06, Steve Knight <[EMAIL PROTECTED]> wrote: > Ramnivas, > > Did you get the DOJO-based tree working? If so, I'd be very interested in > it. > > Steve > > > > On 3/29/06, Ramnivas Laddad < [EMAIL PROTECTED]> wrote: > > Hi, > > > > I am continuing my attempt to create a

Re: [Wicket-user] How to remove an AttributeModifier

2006-04-04 Thread karthik Guru
just for information sake - Any idea why we have the ability to switch off only AttributeModifier behaviour and not others? as in remove(IBehaviour ) On 4/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > another way would be to override isEnabled() on the attribute modifier to > return false in ce

Re: [Wicket-user] How to remove an AttributeModifier

2006-04-04 Thread Igor Vaynberg
another way would be to override isEnabled() on the attribute modifier to return false in certain conditions. this will give you a more fine grained control.-IgorOn 4/4/06, Johannes Fahrenkrug <[EMAIL PROTECTED]> wrote: That's it! Thanks a lot! :)- Johannes.karthik Guru wrote:>can you try componen

Re: [Wicket-user] More on refreshing page contents

2006-04-04 Thread Igor Vaynberg
actually, the string in the label is fine because the listview rebuilds its items on every request so new labels will be created. the problem is here:ListView tmpCorrList = new ListView(ID_CORRELATIONS,tmpInstrument.getCorrelations ())this is making listview use the same list w/out updating it on e

Re: [Wicket-user] How to remove an AttributeModifier

2006-04-04 Thread karthik Guru
can you try component.setIgnoreAttributeModifier(false); On 4/4/06, Johannes Fahrenkrug <[EMAIL PROTECTED]> wrote: > Hi, > > how do I remove an AttributeModifier? I know how to change the value, > but how to I remove it completely? > The context: I have a DropDownChoice, and I want to set > disabl

Re: [Wicket-user] How to remove an AttributeModifier

2006-04-04 Thread Johannes Fahrenkrug
That's it! Thanks a lot! :) - Johannes. karthik Guru wrote: can you try component.setIgnoreAttributeModifier(false); On 4/4/06, Johannes Fahrenkrug <[EMAIL PROTECTED]> wrote: Hi, how do I remove an AttributeModifier? I know how to change the value, but how to I remove it completely? The

[Wicket-user] How to remove an AttributeModifier

2006-04-04 Thread Johannes Fahrenkrug
Hi, how do I remove an AttributeModifier? I know how to change the value, but how to I remove it completely? The context: I have a DropDownChoice, and I want to set disabled="disabled" which works fine. But now I want to completely remove disabled="disabled" from the tag. - Johannes --

Re: [Wicket-user] More on refreshing page contents

2006-04-04 Thread Maurice Marrink
Hi, I am also wrestling with the matrix beast and am still exploring my options. However i might be able to help you out. In your code the label is given a string as diplay value. This string is not updated when the item model is. So you should give the label the model of the item. If you want som

[Wicket-user] More on refreshing page contents

2006-04-04 Thread Anders Peterson
Hi All, With one page I'm displaying a matrix of numbers and I have a problem updating/refreshing it. I roughly understand why it doesn't work, but I don't know what the best/correct way to make it work is. Basically I have a ListView of rows and the last column in each row is in turn a List

Re: [Wicket-user] Extra markup while creating listview

2006-04-04 Thread Steve Knight
Ramnivas,Did you get the DOJO-based tree working?  If so, I'd be very interested in it.SteveOn 3/29/06, Ramnivas Laddad < [EMAIL PROTECTED]> wrote:Hi,I am continuing my attempt to create a DOJO-based tree (Thanks Igor for the urlFor() tip).Currently, I am facing a problem of extra markup emitted in

Re: [Wicket-user] update from beta2 to beta3 broke in context of

2006-04-04 Thread Juergen Donnerstag
Note that MUST be before , , , and . Unfortunately no error message is thrown yet. Its currently only my laptop. I need to test it further before committing. If that is not the case in your example, please send me a stripped down version of the page and panels etc preferably as junit test case l

Re: [Wicket-user] setting required on multiple form components

2006-04-04 Thread jeiess
thanks Johan, i got it resolved in the end. not sure what i was doing wrong, but after some refactoring it all worked. js -- View this message in context: http://www.nabble.com/setting-required-on-multiple-form-components-t1368127.html#a3742644 Sent from the Wicket - User forum at Nabble.com.

Re: [Wicket-user] PageLink called request two times

2006-04-04 Thread R.A
Hi Johan. This log was output when NonbookmarkablePage was opened. [06/04/04 17:13:31:875 JST] 16bd736 SystemOut O === doGet [06/04/04 17:13:31:875 JST] 16bd736 SystemOut O === sessionId: aUaEk1GTIg6WGjZE-Iiu1dE [06/04/04 17:13:31:875 JST] 16bd736 SystemOut O === queryString: wicke

[Wicket-user] update from beta2 to beta3 broke in context of

2006-04-04 Thread Ari Suutari
Hi, We just updates from 1.2 beta2 to beta3 and noticted that some our components using stuff to add things to page's head no longer work. Closer examination shows that those components are also using tags. Things work if we put an empty to base panel's html file - after that stuff from deriv

Re: [Wicket-user] PageLink called request two times

2006-04-04 Thread Johan Compagner
please give me more information thenBecause the output of youre logging tells me different things.There the first time the page is rendered and the second time only the buffered response is served.And nothing more. put an output after the buffered response (where we make the request cycle) does it