Re: Stateless link usage

2008-05-08 Thread Igor Vaynberg
there are two ways to do it: a) use a bookmarkablepagelink to go to the cart page and pass in the itemid+quantity to be added. this means that the cart page is responsible for adding the item to the cart. b) use a stateless link to add the item to cart, then setResponsePage(CartPage.class) == to

Re: Wicket javascripts - reloading every one hour

2008-05-08 Thread Johan Compagner
But is it then really downloaded? Because the brower makes first a head request to it and that will say not changed On 5/8/08, Stefan Simik [EMAIL PROTECTED] wrote: Hi boys, I think, there is one problem with wicket ajax javascripts - there are reloading by browser every hour, because the

Re: behavior for onComponentTagBody

2008-05-08 Thread Johan Compagner
Or use a converter? Because it seems that is what you are doing? On 5/7/08, Eyal Golan [EMAIL PROTECTED] wrote: Hi all, I have this in several components: @Override protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { String value; if

Re: A question about partial form updates with AJAX

2008-05-08 Thread Maurice Marrink
Can you show us some code? This should work as long as the component models are updated. Maurice On Thu, May 8, 2008 at 1:22 AM, nate roe [EMAIL PROTECTED] wrote: I have a form with several items. About half of the form is wrapped in a named div attached to a WebMarkupContainer. When a

Re: behavior for onComponentTagBody

2008-05-08 Thread Eelco Hillenius
On Wed, May 7, 2008 at 8:42 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: doesnt Label do this already? Yeah, I think just using getModelValueAsString would give the same results. Also, Label is the only (or one of the few at most) class(es) where overriding onComponentTagBody makes sense. Why not

Form doesn't fire onsubmit when nested in a wizard

2008-05-08 Thread Piller Sébastien
Hello guys, I have a problem with the wizard component in Wicket 1.3.1. I have a user form panel, containing a form with several fields. I put it in a wizard, and have the following problem: FormUser public class FormPerson extends Panel { // ... public FormPerson(String formid) {

Re: behavior for onComponentTagBody

2008-05-08 Thread Martijn Dashorst
I think we miss one call into Eyan's code: Consts.getTableBody(getMarkupId(), value) seems to be the crux. Martijn On 5/8/08, Eelco Hillenius [EMAIL PROTECTED] wrote: On Wed, May 7, 2008 at 8:42 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: doesnt Label do this already? Yeah, I think

Re: Ajax and Loop

2008-05-08 Thread Stefan Lindner
Thank you! The ListView did the trick! -Ursprüngliche Nachricht- Von: Eelco Hillenius [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 8. Mai 2008 00:35 An: users@wicket.apache.org; [EMAIL PROTECTED] Betreff: Re: Ajax and Loop Have you tried using a ListView in combination with a model

Re: A question about partial form updates with AJAX

2008-05-08 Thread Johan Compagner
are you sure that all the form elements that are in that div that you replace have the AjaxFormComponentUpdatingBehavior attached? On Thu, May 8, 2008 at 1:22 AM, nate roe [EMAIL PROTECTED] wrote: I have a form with several items. About half of the form is wrapped in a named div attached to a

Problem with MultiFileUploadField and keeping rest of fields in model

2008-05-08 Thread Java Programmer
Hello, I have use MultiFileUploadField for uploading pictures, everything works fine but when I use e.g. setMaxSize(Bytes.kilobytes(1024)) on the form and try to upload larger picture or pictures than limit, I got only one message about hitting limit size, and other fildes are not checked this

Re: Problem with MultiFileUploadField and keeping rest of fields in model

2008-05-08 Thread Gerolf Seitz
when the file size exceeds the size limit, the request processing is kind of aborted and the other request params are not processed (no conversion, validation, ...). when the page is then rendered again, the formcomponents don't have an input value set, and that's why the fields are cleared and no

Re: forcing cookies to expire

2008-05-08 Thread Johan Compagner
i have no idea then what goes wrong especially if it is just one request not a redirect one. you could try to clean the cookes by directly using the httpresponseobject yes. Just that that one from the WebResponse johan On Wed, May 7, 2008 at 5:00 PM, Andrew Broderick [EMAIL PROTECTED] wrote:

RE: South African Wicket Users?

2008-05-08 Thread Arje Cahn
Hi Izak, Plenty of such companies around in the Netherlands it seems. Search through the list archives for ideas :-) Topicus, Xebia, Servoy, Hippo, Finalist to name a few. Good knowledge of Dutch is probably required, especially if you want to work outside of 'de randstad'. Hi there

Re: CometServlet and WicketFilter

2008-05-08 Thread Johan Compagner
it seems that jetty 6 really uses servlet api 2.5 yes (this is by the way very hard to find... they really should have a list just as tomcat has) so somehow you have another servlet.jar there On Thu, May 8, 2008 at 3:32 AM, freak182 [EMAIL PROTECTED] wrote: Hello Johan, I think im running on

Re: South African Wicket Users?

2008-05-08 Thread Erik van Oosten
Actually, since I changed jobs, Finalist no longer uses Wicket but now JTeam (www.jteam.nl) does :) Regards, Erik. Plenty of such companies around in the Netherlands it seems. Search through the list archives for ideas :-) Topicus, Xebia, Servoy, Hippo, Finalist to name a few. Good

Re: South African Wicket Users?

2008-05-08 Thread Johan Compagner
WHY? On Thu, May 8, 2008 at 1:34 PM, Erik van Oosten [EMAIL PROTECTED] wrote: Actually, since I changed jobs, Finalist no longer uses Wicket but now JTeam (www.jteam.nl) does :) Regards, Erik. Plenty of such companies around in the Netherlands it seems. Search through the list

Re: Wicket javascripts - reloading every one hour

2008-05-08 Thread Stefan Simik
I looked at it in detail, and it works as following: 1. You are right, when caching is too low - then browser makes request, with header If-Modified-Since. Response is 304 - that it was not modified. So the whole resource is not really downloaded, it is requested only, with short 304

Re: Label to Uppercase

2008-05-08 Thread ak
Brilliant suggestions ... Thanks Eelco and Jeremy. In our proj we attach a behavior to TextField/TextArea like this, but tied to a specifc event as onblur. public class ToUpperCaseBehavior extends AbstractBehavior { public void onComponentTag(Component component, ComponentTag tag){

Re: Wicket javascripts - reloading every one hour

2008-05-08 Thread Johan Compagner
file RFE On Thu, May 8, 2008 at 3:07 PM, Stefan Simik [EMAIL PROTECTED] wrote: I looked at it in detail, and it works as following: 1. You are right, when caching is too low - then browser makes request, with header If-Modified-Since. Response is 304 - that it was not modified. So the

IActivePageBehaviorListener exception

2008-05-08 Thread richardwilko
Hi, I have wicket running clustered and occasionally see this exception: WicketMessage: Attempt to access unknown request listener interface IActivePageBehaviorListener Root cause: org.apache.wicket.WicketRuntimeException: Attempt to access unknown request listener interface

Re: Stateless link usage

2008-05-08 Thread Ritz123
a) is what I am doing now. b) is where the problem was, which is what the original question was about. Please see my opening post. igor.vaynberg wrote: there are two ways to do it: a) use a bookmarkablepagelink to go to the cart page and pass in the itemid+quantity to be added. this

Re: CheckGroup and back Button problem

2008-05-08 Thread Thomas Mäder
We seem to have a similar problem with a wizard page. We came across the following code in Check.onComponentTag(..) if (group.hasRawInput()) { final String[] input = group.getInputAsArray(); if (input != null) { for (int i = 0;

Re: CheckGroup and back Button problem

2008-05-08 Thread Steen Larsen
If I instead of item.getModel() for the Check, uses some PropertyModel that evaluates to a String identifier it works fine, but then only the identifier is saved, and not the object, which as I understand it should be the purpose. I haven't looked at the code, but I wander what uuid is exactly as

RE: DropDownChoice.onSelectionChanged() and model updating

2008-05-08 Thread Andrew Broderick
Thanks for the reply. Calling clearInput() on the form components works. It has to be done on each individual component though, it seems. Is there a way to do it on the entire form, or a way to group fields on the form and do it on the group? Thanks -Original Message- From: Igor

Re: Stateless link usage

2008-05-08 Thread Igor Vaynberg
yes i read it, but you are not being very clear. a stateless link points to the page its on, just like Link does. the trick here is like i said to call setresponsepage(class); requestcycle.setredirect(true); this way your link points to ?wicket:interface=blahblah when you hit that the onclick

Re: DropDownChoice.onSelectionChanged() and model updating

2008-05-08 Thread Igor Vaynberg
form.visitchildren(..) -igor On Thu, May 8, 2008 at 8:26 AM, Andrew Broderick [EMAIL PROTECTED] wrote: Thanks for the reply. Calling clearInput() on the form components works. It has to be done on each individual component though, it seems. Is there a way to do it on the entire form, or a

Re: South African Wicket Users?

2008-05-08 Thread Eelco Hillenius
Actually, since I changed jobs, Finalist no longer uses Wicket but now JTeam (www.jteam.nl) does :) Now it's all up to Remco then :-) Good luck with your new job though. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For

unmount sub url

2008-05-08 Thread Sebastiaan van Erk
Hi, I've got a page mounted on /path1. I've got some files in a directory in my webapp root on /path1/dir How can I tell Wicket to give control back to the servlet container for dir? Currently (even using QueryStringUrlCodingStrategy) the mount eats /path1/dir and doesn't let me access the

Bug introduced somewhere after 1.2.2 is still in 1.3.3

2008-05-08 Thread Frank Silbermann
I wrote earlier about my problems going from Wicket 1.2.2 to Wicket 1.2.6. This has to do with a RadioGroup component that I built; whenever I used it on more than one page, clicking on one RadioGroup caused the marker to disapper from all the other RadioGroups on the page. I wasn't given much

Re: Bug introduced somewhere after 1.2.2 is still in 1.3.3

2008-05-08 Thread Igor Vaynberg
On Thu, May 8, 2008 at 10:06 AM, Frank Silbermann [EMAIL PROTECTED] wrote: I wrote earlier about my problems going from Wicket 1.2.2 to Wicket 1.2.6. This has to do with a RadioGroup component that I built; whenever I used it on more than one page, clicking on one RadioGroup caused the

Re: A question about partial form updates with AJAX

2008-05-08 Thread nate roe
Hrm. I've only added the AjaxFormComponentUpdatingBehavior to the components that cause the visibility of other components to change. The idea -- and I'm new to Wicket so it may not have been a very good one -- was to limit server round-trips until a rendering change is required. I'll add the

Re: Form doesn't fire onsubmit when nested in a wizard

2008-05-08 Thread Per Newgro
Hello Piller Sébastien: do you first generate some errors, press next (errors), fix them and then press next again? Maybe error messages will not be reset. Cheers Per - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Bug introduced somewhere after 1.2.2 is still in 1.3.3

2008-05-08 Thread Frank Silbermann
Well, then, as I am a beginner who hasn't worked much with open source, could you please point me to a reference that explains what a jira issue is and how to create one? (I'm guessing that it's an entry into some sort of bug tracking database.) Also, by attaching a quickstart Project do you

Re: Bug introduced somewhere after 1.2.2 is still in 1.3.3

2008-05-08 Thread Per Newgro
Hello Frank Silbermann: Well, then, as I am a beginner who hasn't worked much with open source, could you please point me to a reference that explains what a jira issue is and how to create one? (I'm guessing that it's an entry into some sort of bug tracking database.) Sure you can. You could

Re: AutoCompleteTextField type mismatch in line 227

2008-05-08 Thread taygolf
Yes I am just starting to try and get the autocompletetextfield working on my app and I am using wicket 1.3. as well and it is doing the same thing. It is throwing a js type mismatch error. Works fine in firefox but not in IE. Did you figure out the problem? T Niels Bo wrote: Hi I just

Re: AutoCompleteTextField type mismatch in line 227

2008-05-08 Thread Gerolf Seitz
it's fixed in the upcoming 1.3.4 and the already release 1.4-M1 Gerolf On Thu, May 8, 2008 at 10:20 PM, taygolf [EMAIL PROTECTED] wrote: Yes I am just starting to try and get the autocompletetextfield working on my app and I am using wicket 1.3. as well and it is doing the same thing. It

Default choice

2008-05-08 Thread Mathias P.W Nilsson
Hi! I'm using the getDefaultChoice to have --- choose brand in my drop box. @Override protected java.lang.CharSequence getDefaultChoice(final Object selected){ return option value=\\+ getLocalizer().getString(category.select.edit, CategoryPage.this ) +/option; } This is rather

RE: Bug introduced somewhere after 1.2.2 is still in 1.3.3

2008-05-08 Thread Frank Silbermann
Here's the URL of my jira issue. https://issues.apache.org/jira/browse/WICKET-1601 The issue has attached a quickstart project and a screen print. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, May 08, 2008 12:13 PM To: users@wicket.apache.org

Detached models

2008-05-08 Thread Mathias P.W Nilsson
I have some questions on detached models for Wicket Let's say I create a detached model like this IModel detachedModel = new LoadableDetachableModel(){ protected Object load(){ return . spring injected hibernate dao lets say Categories } }; So now I'll have a detached

Re: Detached models

2008-05-08 Thread James Carman
Why do you need it detached all the way? On Thu, May 8, 2008 at 4:56 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: I have some questions on detached models for Wicket Let's say I create a detached model like this IModel detachedModel = new LoadableDetachableModel(){ protected Object

Re: Detached models

2008-05-08 Thread Igor Vaynberg
On Thu, May 8, 2008 at 1:56 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: add( new ListView( myId , detachedModel ){ public void populateItem( ListItem item) { final Category category = (Category) item.getModelObject(); item.add( new Link( link ){ public

Re: Detached models

2008-05-08 Thread Igor Vaynberg
if you want nicer code then use a dataview with a dataprovider, that really is geared much better towards database data then listview, and dataprovider.model() is a great place to wrap the entity with model, so your code can look like this: public void populateItem( tem item) { item.add(

Re: Detached models

2008-05-08 Thread Mathias P.W Nilsson
Thanks Igor! So if I use the sample code you gave me and, when getting the Object from the constructor on the response page I will have a detached object. Do I have to load the object from database here? When looking at the Phone book example I see you pass id instead of object. Is this more

Re: unmount sub url

2008-05-08 Thread Sebastiaan van Erk
Hi, I've got a page mounted on /path1. I've got some files in a directory in my webapp root on /path1/dir How can I tell Wicket to give control back to the servlet container for dir? Currently (even using QueryStringUrlCodingStrategy) the mount eats /path1/dir and doesn't let me access

Re: South African Wicket Users?

2008-05-08 Thread Thies Edeling
Plenty of such companies around in the Netherlands it seems. Search through the list archives for ideas :-) Topicus, Xebia, Servoy, Hippo, Finalist to name a few. Good knowledge of Dutch is probably required, especially if you want to work outside of 'de randstad'. Hi there from the

Re: Wicket javascripts - reloading every one hour

2008-05-08 Thread Stefan Simik
OK, thx https://issues.apache.org/jira/browse/WICKET-1602 Stefan Simik Johan Compagner wrote: file RFE -- View this message in context: http://www.nabble.com/Wicket-javascripts---reloading-every-one-hour-tp17117009p17137997.html Sent from the Wicket - User mailing list archive at

Re: unmount sub url

2008-05-08 Thread Eelco Hillenius
On Thu, May 8, 2008 at 3:15 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, I've got a page mounted on /path1. I've got some files in a directory in my webapp root on /path1/dir How can I tell Wicket to give control back to the servlet container for dir? Currently (even using

Javascript adding input

2008-05-08 Thread Dan Kaplan
Let's say that hypothetically I used javascript to add an input to a form in its onload method. How can I get wicket to become aware of that input so I can do things like validate it, etc.?

Re: unmount sub url

2008-05-08 Thread Sebastiaan van Erk
Eelco Hillenius wrote: On Thu, May 8, 2008 at 3:15 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: 2) using a special RequestCodingStrategy, i.e. UnmountedRequestCodingStrategy and tweaking isWicketRequest to return false if it detects this request coding strategy... What do you guys think?

Form onSubmit called after Page components created

2008-05-08 Thread Joel Halbert
Hi, I've noticed that when submitting a (stateless) Form page the onSubmit() method of the form is only called once all the Page components have all been created, and likewise any model objects relating to the form are only populated once the page components have been rendered. This means

RE: AutoCompleteTextField type mismatch in line 227

2008-05-08 Thread Hoover, William
Although, it still has some issues when dealing with mouseover and keyboard events combo ;o) -Original Message- From: Gerolf Seitz [mailto:[EMAIL PROTECTED] Sent: Thursday, May 08, 2008 4:23 PM To: users@wicket.apache.org Subject: Re: AutoCompleteTextField type mismatch in line 227

Re: AutoCompleteTextField type mismatch in line 227

2008-05-08 Thread Gerolf Seitz
in case you mean [0], that's going to be dealt with probably tomorrow ;) [0] https://issues.apache.org/jira/browse/WICKET-1595 On Fri, May 9, 2008 at 1:52 AM, Hoover, William [EMAIL PROTECTED] wrote: Although, it still has some issues when dealing with mouseover and keyboard events combo ;o)

Good wicket patterns

2008-05-08 Thread gurgel2
After some 6 months of wicket ive come accross some wierd scenarios Go'ol request/response 1. Sub FormComponent hierarchies that needed to be manually visited to have thier vaidate and updateModel called. It was a criteria/search panel that supplied a form with data. Just a bit awkward to

RE: AutoCompleteTextField type mismatch in line 227

2008-05-08 Thread Hoover, William
that is it :o) i'm assuming the same issue also causes the selection to be lost on occasion -Original Message- From: Gerolf Seitz [mailto:[EMAIL PROTECTED] Sent: Thursday, May 08, 2008 7:57 PM To: users@wicket.apache.org Subject: Re: AutoCompleteTextField type mismatch in line 227 in

Re: Detached models

2008-05-08 Thread James Carman
I typically don't like to have my UI code directly interact with the ORM implementation (hibernate in this case). For my applications, I pass a Repository (think DAO) object and the object's id into the LoadableDetachableModel. On Thu, May 8, 2008 at 6:33 PM, Igor Vaynberg [EMAIL PROTECTED]

DropDownChoice throws IllegalArgumentException with Integer values

2008-05-08 Thread Michael Mehrle
This is the error I'm getting: [DEBUG LoadAdDataInterceptor] Loaded AdData:[EMAIL PROTECTED] [ERROR RequestCycle] Cannot format given Object as a Number java.lang.IllegalArgumentException: Cannot format given Object as a Number at

Re: Good wicket patterns

2008-05-08 Thread Scott Swank
e.g. public class AjaxEvent { private SetComponent listeners = new HashSetComponent(); public void register(Component listener) { listeners.add(listener); } public void fire(AjaxRequestTarget request) { for

Re: CometServlet and WicketFilter

2008-05-08 Thread freak182
Hello Johan, Thanks for the advice...i will try to look at for any servlet.jar...anyway our project is big and i dont know want jars my teammate added-n-added... :-) Thanks a lot..Cheers Johan Compagner wrote: it seems that jetty 6 really uses servlet api 2.5 yes (this is by the way very

RE: DropDownChoice throws IllegalArgumentException with Integer values

2008-05-08 Thread Michael Mehrle
Okay, I just stepped through this and getting the feeling that 'somehow' the label is being passed on to the model. Now, if the label is '1' it works fine, but if it's '1 day', then I get that error. The question here is: why is the label being passed back to the model? Doesn't make any sense -

Re: Form onSubmit called after Page components created

2008-05-08 Thread Igor Vaynberg
the stateless stuff has to recreate the component hierarchy first - eg the form instance has to exist before you can call onsubmit on it :) however, inside onsubmit you can do any component replacement you want, just like in a non-stateless page. -igor On Thu, May 8, 2008 at 4:36 PM, Joel

Re: Detached models

2008-05-08 Thread Igor Vaynberg
im not that religious about this. i dont like to pass daos around or have to look them up, not when i am using a central persistence tech like hibernate/jpa. so i think of my entitymodel as a repository for a single object :) you can give it the object or the class and id and it knows how to load

Re: Detached models

2008-05-08 Thread James Carman
Well, I have a similar class called DetachableEntityModel (Entity is an interface we devised to mark something as a persistent entity): public class DetachableEntityModelT extends Entity extends LoadableDetachableModelT { private RepositoryT repository; private String id; public