Re: SubmitLink on Firefox
Hi, this should already be fixed in trunk. -Matej On Dec 26, 2007 2:29 PM, Marco Aurélio Silva <[EMAIL PROTECTED]> wrote: > The problem was on the submitLink ID. I was using the ID "submit". Changing > the id to "submitButton" solved the problem. > > Thank you > Marco > > > On Dec 26, 2007 10:21 AM, Marco Aurélio Silva <[EMAIL PROTECTED]> wrote: > > > Hi > > I'm trying to use a SubmitLink to submit a form, but it is not working on > > Firefox. I get the follow message: > > > > f.submit is not a function > > > > Inspecting the code generated by wicket, I noticed that on firefox the > > call to line 9 ( f.submit() ) is calling the element "e", because the > > instruction on line 2. > > > > 1 var e=document.getElementById ('form:hf:0'); > > 2 e.name='submit'; > > 3 e.value='x'; > > 4 var f=document.getElementById('form'); > > 5 if (f.onsubmit != undefined) { > > 6 if (f.onsubmit()==false) > > 7 return false; > > 8 } > > 9 f.submit(); > > 10 e.value=''; > > 11 e.name='';return false;" > > > > > > Is this a know bug? Is there a way to make this work on Firefox? > > > > Thank you > > Marco > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i present a busy component
Yes...that is another way (I forgot about it) I remember I used it oncebut changed it to my previous proposal (request to change the way it was shown), it was simple to use. Rgds, Chris On 12/27/07, Michael Sparer <[EMAIL PROTECTED]> wrote: > > > what about using a IndicatingAjaxLink or IndicatingAjaxButton or a custom > implemenation using a WicketAjaxIndicatorAppender (I think it's called > like > that)? > > > Newgro wrote: > > > > Hi *, > > > > i have a page with some panels. On one panel there is a button. If this > is > > clicked a long running task is executed. The problem is that the cursor > is > > still a pointer and the browser seems to do nothing. This happens until > > the > > long running task is ended. Then the panel components will be refreshed. > > > > I would like at least to bring the little clock icon to my pointer. But > > how > > should i do that? > > Another much better solution would be if i could overlay the panel with > a > > grey > > fog. I experimented already with this but couldn't find a usable > solution. > > Maybe someone can give me a hint where i can start to search. > > > > Thanks > > Per > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > Michael Sparer > http://talk-on-tech.blogspot.com > -- > View this message in context: > http://www.nabble.com/How-can-i-present-a-busy-component-tp14462974p14515327.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Drag and Drop DataTable rows
Anyone create a drag and drop reordering component out of a DataTable? I want to reorder the rows via drag and drop. I see the scriptaculous SortableListView, but I would have to significantly change a lot of my pages. Anyone tackle this? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Style or locale in Url
Hello everybody, i have a wicket application with 2 locales. i have a change locale link that changes the locale, but after the change the url remains the same, so i assume that this is a problem regarding search engines(duplicate content, correct me if i am wrong). Is there any way that i can embed the style or locale in the url? so for example for the index page with english locale the url is http://localhost/index and for Greek locale the url could be http://localhost/gr/index or localhost/index/gr ? Should i play with url coding strategies? -- View this message in context: http://www.nabble.com/Style-or-locale-in-Url-tp14517412p14517412.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reload problem with picture upload
Great!!! It's working - Many Thanks! Sebastian -- View this message in context: http://www.nabble.com/Reload-problem-with-picture-upload-tp14513009p14515934.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i present a busy component
what about using a IndicatingAjaxLink or IndicatingAjaxButton or a custom implemenation using a WicketAjaxIndicatorAppender (I think it's called like that)? Newgro wrote: > > Hi *, > > i have a page with some panels. On one panel there is a button. If this is > clicked a long running task is executed. The problem is that the cursor is > still a pointer and the browser seems to do nothing. This happens until > the > long running task is ended. Then the panel components will be refreshed. > > I would like at least to bring the little clock icon to my pointer. But > how > should i do that? > Another much better solution would be if i could overlay the panel with a > grey > fog. I experimented already with this but couldn't find a usable solution. > Maybe someone can give me a hint where i can start to search. > > Thanks > Per > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/How-can-i-present-a-busy-component-tp14462974p14515327.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reload problem with picture upload
take a look at: org.apache.wicket.markup.html.image.NonCachingImage BatiB80 wrote: > > Hi together, > > I've a problem with a page which handles a fileupload. I took the upload > example from the wicket examples (1.2.6) as base and modified the example > in that way that's only possible to upload pictiures. Furthermore the > listview contains the real images instead os the file names. But this > causes some trouble. > > For the first time everything works fine. If I try to upload pictures > again, the pictures from the first upload will be shown instead of the new > ones. The model-values are absolutely correct and contain the new files. I > found out, that after a browser refresh (press F5) the images are shown > correctly. So it seems that the browser caches the old values. Is there > any way to force the browser to reload the images??? > > Thanks in advance for your help! > Regards, > Sebastian > - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Reload-problem-with-picture-upload-tp14513009p14515103.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reload problem with picture upload
Hi together, I've a problem with a page which handles a fileupload. I took the upload example from the wicket examples (1.2.6) as base and modified the example in that way that's only possible to upload pictiures. Furthermore the listview contains the real images instead os the file names. But this causes some trouble. For the first time everything works fine. If I try to upload pictures again, the pictures from the first upload will be shown instead of the new ones. The model-values are absolutely correct and contain the new files. I found out, that after a browser refresh (press F5) the images are shown correctly. So it seems that the browser caches the old values. Is there any way to force the browser to reload the images??? Thanks in advance for your help! Regards, Sebastian -- View this message in context: http://www.nabble.com/Reload-problem-with-picture-upload-tp14513009p14513009.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Suckerfish Dropdowns contributed to Wicketstuff
I tried this example and it worked well in navigation but I got a problem in it when one of my menus is named as AddUser which contains the form to add new user. When I fill the form and try to get the feedback after form submission I got the following error java.lang.IllegalArgumentException: A child with id 'linktext' already exists: Could you please test with the form in one of the menus and get feedback message (e.g for form validation) without any error and inform me if it works. Thanks JulianS wrote: > > I've checked in wicketstuff-suckerfish and > wicketstuff-suckerfish-examples. I've improved my original code as > follows: > > - Dropdowns are built hierarchically from fragments so in theory there's > no limit to how many levels deep you can go > - Associating a link with any menu item is optional, so for example you > can have a top-level menu bar with no links, just labels > -Tested with IE6, IE7 and FF2 > > Julian > > -- View this message in context: http://www.nabble.com/Suckerfish-Dropdowns-contributed-to-Wicketstuff-tp14408947p14512576.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getPage() throws IllegalStateException: No Page found for component
If you really are calling getPage() in your panel's constructor than it can't work. Because at that point the panel is not added to page. You can postpone your initialization by putting the code to onBeforeRender and invoke it only when onBeforeRender is called for the first time. e.g super.onBeforeRender(); if (!hasBeenRendered()) { // getPage() works here. Do the stuff you need with page instance } -Matej On Dec 27, 2007 7:46 AM, Artur W. <[EMAIL PROTECTED]> wrote: > > > Antoine Angénieux wrote: > > > > May be you should try making your panel abstract and override an > > abstract method as an anonymous inner class of your page, instead of all > > your "ifs" ? > > > > Antoine, Thanks for you reply. > > Your idea is good but it will not work in my case. > > I have a abstract page to which I add my Panel (menu). All of the other > pages extends this abstract page so I don't create/add this panel to them. > > > Best regards, > Artur > -- > View this message in context: > http://www.nabble.com/getPage%28%29-throws-IllegalStateException%3A-No-Page-found-for-component-tp14496019p14510157.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which way to go? AjaxSubmitLink or AjaxLink? Neither does the job for me :)
Yes indeed. You could open a JIRA issue with your use case and a proposal. Erik. Edvin Syse wrote: > Thanks, that's a good option :) I went with rearranging the layout and > using two forms, but I think a getDefaultFormValidation() method would > be a nice addition to the framework :) > > -- Edvin > -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which way to go? AjaxSubmitLink or AjaxLink? Neither does the job for me :)
Thanks, that's a good option :) I went with rearranging the layout and using two forms, but I think a getDefaultFormValidation() method would be a nice addition to the framework :) -- Edvin Erik van Oosten skrev: Another option is to attach onchange handlers to all components (with an ajax behavior). You can optionally do validation in the handler and contineously show validation errors as the user leaves an input field. Regards, Erik. Edvin Syse wrote: Hi, I have a form where some of the components have validators (Required, EmailValidator etc). The form uses CompoundPropertyModel for my object. Upon entering some text in one input field and clicking a button, a ModalWindow opens and shows a searchresult based on the input. The button is a AjaxSubmitLink. The problem is that this operation is performed BEFORE the rest of the form is filled out, so validation fails (since lots of fields are missing input at this stage), and the ModalWindow doesn't open. If I turn off validation everything is good, but I need the validation for when the form is complete and finally submitted :) If I change to an AjaxLink, I can get the ModalWindow to open, but then the input data isn't propagated to the model, so I can't get hold of it in the ModalWindow. I have also tried overriding getDefaultFormProcessing() and returning false, but then obviously the model isn't updated either, so I'm stuck. Maybe I'm going about this the wrong way.. Any suggestions? Should I use another form without validation just for this one textfield? Sincerely, Edvin Syse -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which way to go? AjaxSubmitLink or AjaxLink? Neither does the job for me :)
Another option is to attach onchange handlers to all components (with an ajax behavior). You can optionally do validation in the handler and contineously show validation errors as the user leaves an input field. Regards, Erik. >> >> Edvin Syse wrote: >>> Hi, >>> >>> I have a form where some of the components have validators (Required, >>> EmailValidator etc). The form uses CompoundPropertyModel for my >>> object. Upon entering some text in one input field and clicking a >>> button, >>> a ModalWindow opens and shows a searchresult based on the input. >>> >>> The button is a AjaxSubmitLink. The problem is that this operation is >>> performed BEFORE the rest of the form is filled out, so validation >>> fails (since lots of fields are missing input at this stage), and the >>> ModalWindow doesn't open. If I turn off validation everything is >>> good, but I need the validation for when the form is complete and >>> finally >>> submitted :) >>> >>> If I change to an AjaxLink, I can get the ModalWindow to open, but then >>> the input data isn't propagated to the model, so I can't get hold of >>> it in the ModalWindow. I have also tried overriding >>> getDefaultFormProcessing() and returning false, but then obviously the >>> model isn't updated either, so I'm stuck. >>> >>> Maybe I'm going about this the wrong way.. Any suggestions? Should I >>> use >>> another form without validation just for this one textfield? >>> >>> Sincerely, >>> Edvin Syse > -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which way to go? AjaxSubmitLink or AjaxLink? Neither does the job for me :)
Why not make it 2 separated forms? Beause of the layout that would mean nesting two forms, and I'm not sure how that works out in different browsers. I might have to go that way, but wouldn't it be nice/possible to skip validation but still bind the model object changes with getDefaultFormValidation() == false or something like that? -- Edvin Edvin Syse wrote: Hi, I have a form where some of the components have validators (Required, EmailValidator etc). The form uses CompoundPropertyModel for my object. Upon entering some text in one input field and clicking a button, a ModalWindow opens and shows a searchresult based on the input. The button is a AjaxSubmitLink. The problem is that this operation is performed BEFORE the rest of the form is filled out, so validation fails (since lots of fields are missing input at this stage), and the ModalWindow doesn't open. If I turn off validation everything is good, but I need the validation for when the form is complete and finally submitted :) If I change to an AjaxLink, I can get the ModalWindow to open, but then the input data isn't propagated to the model, so I can't get hold of it in the ModalWindow. I have also tried overriding getDefaultFormProcessing() and returning false, but then obviously the model isn't updated either, so I'm stuck. Maybe I'm going about this the wrong way.. Any suggestions? Should I use another form without validation just for this one textfield? Sincerely, Edvin Syse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamically adding text fields
On Dec 26, 2007 11:32 PM, Ken Anderson <[EMAIL PROTECTED]> wrote: > > I have a use case that will require the user to add multiple text fields to a > form using an add button. See this wiki page: http://cwiki.apache.org/WICKET/forms-with-dynamic-elements.html Have a list of text fields, create a ListView based on this list, and add the ListView to a WebMarkupContainer or similar. Cheers, Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]