Why is MultiFileUploadField not offering protected boolean forceCloseStreamsOnDetach?
Hi guys, right now I am switching from Singe-FileUpload to MultiFileUpload so I am going to use MultiFileUploadField. But my problem is, that the InputStreams get closed after submitting the form (and refreshing the site - Its inside an wizard of many steps). This happens because of the onDetach-Method inside MultiFileUploadField. I want to use the FileUpload-Models also after the request but I cant overwrite the very useable method protected boolean forceCloseStreamsOnDetach as it exists only in FileUploadField. Any hints why this option is not also merged to MultiFileUploadField? Thanks in Advance for any answer. And please apologize my English, its not my mothers tongue. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-is-MultiFileUploadField-not-offering-protected-boolean-forceCloseStreamsOnDetach-tp4666797.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [Announce] Introducing Wicked Charts
Thanks for your hard work. But iam very sad that highchart its not free for commercial use :o/ Maybe anyone else could do such plugin with : http://www.jqplot.com/tests/ or http://code.google.com/p/flot/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-Introducing-Wicked-Charts-tp4655519p4655574.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 6+ through JSONP tunneling
Any other ideas to do this with wicket? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-through-JSONP-tunneling-tp4655501p4655575.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 6+ through JSONP tunneling
Yeah you right Martin. But, dont get it wrong, we would develop this app exactly for this purpose. So there would be no non-ajax links for example. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-through-JSONP-tunneling-tp4655501p4655505.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
What is Atmosphere doing wrong so i cant debug the websocket
Hi Folks, iam using Wicket 6.2.0 with Wicket-Atmosphere 0.4 and everything works great, but Iam not able to debug the websocket-transfer in Chrome Debug-Tools like its explained and working here : http://blog.kaazing.com/2012/05/09/inspecting-websocket-traffic-with-chrome-developer-tools/ Is there something wrong with the initialization of the WebSocket in Atmosphere so Chrome cant identify it as a WebSocket? Iam also want to know, how i could disable the window.info/.console output on every WebSocket-Pull Thanks in Advance for any Hints or Help :) - Matty -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/What-is-Atmosphere-doing-wrong-so-i-cant-debug-the-websocket-tp4654322.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What is Atmosphere doing wrong so i cant debug the websocket
How should i test this? I did no special configuration and testing it with the latest google chrome, which supports WebSockets. I think the atmosphere implementation tests on clientside which type of transfer is possible (WebSocket, SSE, Long-Polling etc.) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/What-is-Atmosphere-doing-wrong-so-i-cant-debug-the-websocket-tp4654322p4654327.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Streaming Files back to client with using Wicket Pages
Hi folks, iam ill-using a PrintPage to start my Printing progress which delivers a pdf-File back to the User by writing to the response output Stream. I have to use a Wicket-Page because in one particular case i want to show the Paths to the pdfs instead of stream them directly. Everything works fine. But when i stream the file back to client wicket throws this error (which is comprehensible). But how can i say to wicket: Hey I've sended the response before, dont care about!' ? Iam using wicket 1.4.19 Thanks in Advance for any help. And excuse my English, its not my mothers tongue. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Streaming-Files-back-to-client-with-using-Wicket-Pages-tp4649751.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Update from 1.4.8 to 1.4.19 breaks AjaxDownload FileStreaming
I was using the procedure which is described here: http://apache-wicket.1842946.n4.nabble.com/Initiating-File-Download-through-Ajax-is-not-working-td2289784.html all day.. but since Update to 1.4.19 the File Streaming is broken. The user is redirected to a new or empty wicket-page (looks like a browser refresh) and thats all. Any hints what have been Changed on the request Cylce processing or something like that? Thanks in Advance! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Update-from-1-4-8-to-1-4-19-breaks-AjaxDownload-FileStreaming-tp4176383p4176383.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Initiating File Download through Ajax is not working
I updated to Wicket 1.4.19 now but the FileDownload does not work anymore. The user get redirected to a certain URL but no Dowload-Stream starts. Any hint to fix this issue? Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Initiating-File-Download-through-Ajax-is-not-working-tp2289784p4127552.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Attribute Inheritance or Copying?
This is my updated version right know. Its very dangerous to copy wicket:id and id. On ajax updating the component get cloned and cloned and cloned... public class CopyAttributesBehavior extends AbstractBehavior { private static final long serialVersionUID = 1L; private IValueMap attributes; ListString notAllowedAttributes = Arrays.asList(wicket:id, id); @Override public void onComponentTag(Component component, ComponentTag tag) { if (attributes != null) { for(EntryString, Object entry : attributes.entrySet()){ if(!notAllowedAttributes.contains(entry.getKey())){ tag.getAttributes().put(entry.getKey(), entry.getValue()); } } } } public IValueMap getAttributes() { return attributes; } public void setAttributes(IValueMap attributes) { this.attributes = attributes; } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Attribute-Inheritance-or-Copying-tp3332828p3940229.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton
Hi community, i have a big Problem: In my application i use BookmarkabePageLinks to browse through different Pages and AjaxLinks to Open a Div box for Example. If the user now browse from Site A to B with the BookmarkablePageLink, use than the back button of the Browser and now clicked a AjaxLink on Site A a /org.apache.wicket.markup.html.pages.PageExpiredErrorPage /Error appears. Can anyone explain me why this happend and how i can prevent this issue? Its not really userfriendly in my situation to throw exception if the user used the back-button. I'm using wicket 1.4.8. Thanks in Advance for any help. Iam sorry for my English is not my mothers tongue! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924428.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton
this doesnt matter. i use the back-button on time (less than 2 seconds) and the error appears. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924451.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton
iam updating right now. i Reply again if i double checked my issue in the new version. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924456.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton
Updated and Still the Same Problem. =( This is my BookmarkableLink: linkNummer = new BookmarkablePageLinkAngebotDetailsPage(link_nummer, AngebotDetailsPage.class, new PageParameters(String.format(id=%d, modelOfAngebot.getObject().getId())) ); and this my AjaxLink AjaxLink showAngebotButton = new AjaxLink(showAngebotButton){ @Override public void onClick(AjaxRequestTarget target) { target.prependJavascript(showPrintDiv('')); } }; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924469.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton
ur guess is wrong =( But u give me a good hint. I've tested it now with two TestPages which only include Bookmarkable and AjaxLinks and this works. On the non-working Page the user did nothing before he browse to Page B but on Page A are a lot of ListViews and nested panels and more... Could this be the Problem? Thanks :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924658.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton
how can i force a reload on browser back-button? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924680.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton
Thank u so much. This helps me alot! I also figured out that my own gridView implementation cause the problem. Iam using here an own implementation of SortableDataProvider. And if i fill the Provider with data from the Database on Page A and did the browsing forward, back thing than the PageExpired Error appears. But if i use a test-array to fill the SortableDataProvider it works without PageExpired. Any hints for this? I wanted to understand the reason for this issue with my grid... Thanks :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924725.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton
is its possible to navigate through this grid via ajax. But in my testcase iam not using this possibilitiy. but there would be also no different between navigating in my grid with or without database driven data. Could there be some problem with model-persistance in PageMap or anything else? Iam clueless =( -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924789.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FileUpload + locked PageMap
Hi Martin, have u any futher informations to this topic? With Wicket Resource u mean a custom component extending from MultipartServletWebRequestImpl? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FileUpload-locked-PageMap-tp3678158p3680069.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FileUpload + locked PageMap
Okay.. and what is the way in Wicket 1.4 ;) ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FileUpload-locked-PageMap-tp3678158p3680072.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FileUpload + locked PageMap
Okay i think i understand UploadWebRequest now, but i see no reason why the user cant do anything else on the meantime while uploading. Is there anywhere in the RequestCycle-processing a blocking part which holds till the Upload is done? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FileUpload-locked-PageMap-tp3678158p3680109.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
FileUpload + locked PageMap
Hi, I've implemented the /org.apache.wicket.markup.html.form.upload.FileUpload /and /FileUploadField /components to upload big files ( 200MB). In the meantime of uploading the client (user browser) is not able to complete any other Ajax-Call even in another Tab (Firefox / InternetExplorer). This is a problem. But a bigger one is this Exception: org.apache.wicket.RequestCycle - org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is still locked which occurs, if the File is much bigger. How can i fix this problem. I think my other problem depends on it? Thanks a lot in Advance for any helpful answer. Matty -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FileUpload-locked-PageMap-tp3678158p3678158.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FileUpload + locked PageMap
Am i the first one who wants to use the FileUpload Components for uploading big files? i doubt this ;) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FileUpload-locked-PageMap-tp3678158p3680039.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: When will my panels be released?
Iam not aware that i keep some references anywhere. could it be possible, that the panels will be freed if the DataPageStore exceed? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/When-will-my-panels-be-released-tp3549632p3551705.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: When will my panels be released?
ohkaay... So i dont understand why my GridView Panels are not released immediately... I browse to site A - heap dump - GridView Panels in the Heap (Correct) to site B - heap dump - GridView Panels still in Heap (why?) to site A - heap dump - GridView Panels sometimes still in Heap (why, and why sometimes?) to site B - heap dump - GridView Panels sometimes gone .. sometimes not so i thought there is any limit which will be reached sometimes and than the heap get flushed. any idea? =( -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/When-will-my-panels-be-released-tp3549632p3551733.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: When will my panels be released?
Iam using wicket 1.4.8 Any chance to disable session keeping for certain components or to disable this feature at all? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/When-will-my-panels-be-released-tp3549632p3551758.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Development / Deployment mode problem
My first clue: Are you using wicket:container Tags in your markup? In Deployment Mode this tags could not be rendered to the markup by Application Settings. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Development-Deployment-mode-problem-tp3411737p3411751.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Attribute Inheritance or Copying?
Thanks Yves, your suggestion works really well. But i worry about copying attributes like wicket:id ... are my worries eligible? Any possibilities to exclude this special attributes from copying? Thanks :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Attribute-Inheritance-or-Copying-tp3332828p3399490.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
German umlauts in Wicket-Message Tag
Hi, We're developing Web-Applications for german customers so we also have to use German umlauts (äöüß) in wicket-markup message-Tags. (UTF-8 enconding for html and java-Files) But if we try with ' a RuntimeException occurs: WicketMessage: Tag '' (line 128, column 24) has a mismatched close tag at '' (line 128, column 67) Any Ideas how we could fix that? Thanks in Advance for any hint! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/German-umlauts-in-Wicket-Message-Tag-tp3331297p3331297.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: German umlauts in Wicket-Message Tag
Thanks for your fast reply. But we now realize that its not the umlauts which create problems. its the We was using but wicket interprets the first inside the key-Attribute as closing tag. This is a bug right? We are using wicket Version 1.4.8 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/German-umlauts-in-Wicket-Message-Tag-tp3331297p3331325.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Attribute Inheritance or Copying?
Hello, i've build my own panel-Component which includes itself a textarea. So in im Markup i wrote for example. Now my advanced question ;) Is it possbile (in any way) that i can use and inherit the cols and rows attributes to the inner textarea (which itself is a wicket-component also)? I've to access the ComponentTag of my Panel but dont know how, except iam in onComponentTag. Thanks in Advance for any Hint, Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Attribute-Inheritance-or-Copying-tp3332828p3332828.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Text after input field
Thanks a lot! Works like a charm and ashames me -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Text-after-input-field-tp3317381p3318801.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Submit form after onchange of Field
Very nice. Thanks a lot for your reply :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Submit-form-after-onchange-of-Field-tp3236003p3259960.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Submit form after onchange of Field
No one has any idea? Cant believe it -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Submit-form-after-onchange-of-Field-tp3236003p3248332.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Use Byte for CheckBox instead of Boolean
@ rolandpeng: Thanks alot. It works great! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Use-Byte-for-CheckBox-instead-of-Boolean-tp3236065p3248333.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Use Byte vor CheckBox instead of Boolean
Everyone know what i want Byte 0 = False Byte 1 = True. But unfornately getConverter is final in CheckBox so i cant place my own converter there. Any ideas? Thanks :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Use-Byte-vor-CheckBox-instead-of-Boolean-tp3236065p3236065.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Use Byte vor CheckBox instead of Boolean
Thanks for the fast reply. I thought about this also, but ... its not the wicket-way right? Martin Grigorov-4 wrote: On Tue, Jan 25, 2011 at 2:02 PM, MattyDE ufer.mar...@gmail.com wrote: Everyone know what i want Byte 0 = False Byte 1 = True. But unfornately getConverter is final in CheckBox so i cant place my own converter there. Any ideas? Copy CheckBox to MyCheckBox and hack it however you want. Thanks :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Use-Byte-vor-CheckBox-instead-of-Boolean-tp3236065p3236065.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Use-Byte-for-CheckBox-instead-of-Boolean-tp3236065p3236118.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AutoCompleteTextField - Event onSelect?!
Hi, iam using AutoCompleteTextField the first time, and it works very well for me in basics. But iam a little disappointed that there is no Method to get recognized which Item a User have been chosen. I imageing something like the dropDown Box onChange. My task is it to change a bunch of ther textFields by the user choice of a Model from the AutoCompleter... any Ideas? Thanks a lot! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-Event-onSelect-tp3215601p3215601.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Hints for creating a form-embedded Grid
Thanks thierry, but i want to extend my own component -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Hints-for-creating-a-form-embedded-Grid-tp3037298p3037377.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Hints for creating a form-embedded Grid
As i mentioned in a another thread i build my own GridView Component from Scratch (just extending Panel). But now our customer want a special, editable Grid. Its no problem on my side to add TextboxColumns, DropDownColumns and so on, but i cant figure out how to connect them to a special form. I have tried to add my whole GridView Component (which is the container of the Textbox, DropDown, any FormComponent) and submit this form. In FireBug i see that all this Components are send by Ajax-Request to the server-side. But will they end in the FormComponents automatically by Wicket-internal-Form-Processing? If this is true, iam almost done (i think ;) ) Any other hints for develop a form-embedded Grid? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Hints-for-creating-a-form-embedded-Grid-tp3037298p3037298.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to hide ListView rows the right way?
7zark7 i dont get your point. have you answered to the right thread? any other hints? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-hide-ListView-rows-the-right-way-tp3032125p3033271.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to hide ListView rows the right way?
Hi Folks, i abuse the ListView Component (2 of them nested) to iterate over a bunch of type-save objects to build my own GridView Component, which works very well. But now, i want to spare out the showing of some rows in the outer ListView component, but ALSO want to process the inner ListView:populateItem for some special object processing over ALL Items (espacially the hidden ones), but NOT showing the row to the client at all. I try setVisible(false) and this works very well... for hiding, but the inner ListView will not be processed anymore for this particular hidden row. Any ideas how to hide the row AND process/render the inner ListView? A CSS-Hiding is not a solution, i have to limit the shown items for peformance matter so i dont want to responde the hidden html-lines to the client at all. Thanks in Advance for any hint, and apologise my terrible English. Its not my mothers tongue. - Matty -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-hide-ListView-rows-the-right-way-tp3032125p3032125.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to hide ListView rows the right way?
I understand your both doubts, i would advice this to myself. But its not possible to extract this part in this stade of the application. So i need another way to force the inner-object to be rendered (= populateItem) however the outer container is setVisible(false) ... is there any possibility to do this?! ... igor... iam calling you ;) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-hide-ListView-rows-the-right-way-tp3032125p3032346.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Preventing double-clicking of Ajax-Buttons
Hi, any ideas how i could disable (client-side) an ajax-button after clicking them once? How should i process Form-Validation too? If the validation fails, the button have to be enabled again to change some values, and re-submit the form afterwards. Any hints? Thanks :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Preventing-double-clicking-of-Ajax-Buttons-tp2543415p2543415.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Preventing double-clicking of Ajax-Buttons
Mhmm okay. But how can i react on form-validation fails and hide the vail? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Preventing-double-clicking-of-Ajax-Buttons-tp2543415p2543428.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Preventing double-clicking of Ajax-Buttons
Thanks a lot you both. Works great as i see so far :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Preventing-double-clicking-of-Ajax-Buttons-tp2543415p2543462.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Best practice for component interaction
Share your genius with us ;) For serious: I'am really looking forward to see and example implementation! :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2338213.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Best Practice passing data between Bookmarkable pages
Are there any other ways? I need to pass a complex object-list to a BookmarkablePage for loading them properly, but i dont want to see them in the URI (PageParameters)... and using a Session-Variable is not multi-tasking save, i think? Any other hints? Thanks a lot! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Best-Practice-passing-data-between-Bookmarkable-pages-tp2327897p2328114.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Best Practice passing data between Bookmarkable pages
I see, i didn't explain it clearly ;) I've a Page which displays a list of objects. But in some cases i want to preselect some elements of this list by a user-choice from a formular on another site. So i want the user to choice a few objects, and than i want to redirect to my ListPage an mark this choosen objects... Sometimes the site is called WITH this initial chosen-objects... sometimes without. Sorry, English is not my mother tongue. Is not as easy as it should to explain my complicated application infrastructur in another language ;) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Best-Practice-passing-data-between-Bookmarkable-pages-tp2327897p2328211.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Problems RestartResponseAtInterceptPageException and Apache ProxyPass
Hi Folks, iam actually using a simple login strategy: getSecuritySettings().setAuthorizationStrategy(new IAuthorizationStrategy() { @Override public T extends Component boolean isInstantiationAuthorized( ClassT componentClass) { if (IAuthenticatedWebPage.class.isAssignableFrom(componentClass)) { // Is user signed in? if (MySession.get().isLoggedin()) { // okay to proceed return true; } // Force sign in throw new RestartResponseAtInterceptPageException(Login.class); } return true; } @Override public boolean isActionAuthorized(Component component, Action action) { // TODO Auto-generated method stub return true; } }); The Tomcat-Webserver is placed behind an Apache with IfModule mod_rewrite.c RewriteEngine On location /customer-A/matty-GUI ProxyPass http://matty.domain.de:8088/gui /location /IfModule So if i browse to https://213.95.x.x:8100/customer-A/matty-GUI/ i will be forwarded to http://matty.domain.de:8088/gui , the AuthorizationStrategy checks if iam logged in, and if not the Login-Page will be shown. But than my URL in the browser adresse bar has been changed to http://matty.domain.de:8088/gui/login ... so the real URL is not more hidden by the ProxyPass... if i deactivate the AuthorizationStrategy in my Application anything works fine ... than the url i see is https://213.95.x.x:8100/customer-A/matty-GUI/... I think, in RestartResponseAtInterceptPageException anywhere happens a full redirect by path .. not only with / ... Any hints for fixing this? thanks a log! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-RestartResponseAtInterceptPageException-and-Apache-ProxyPass-tp2314607p2314607.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Problems RestartResponseAtInterceptPageException and Apache ProxyPass
Iam sorry, after posting i found https://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork so i added ProxyPassReverse http://matty.domain.de:8088/gui ProxyPassReverseCookiePath /customer-A/matty-GUI / to apache-config and it works :) But now i have the Problem/issue that the jsessionid is allways appended to the url... https://213.95.x.x:8100/customer-A/matty-gui/config/packages;jsessionid=9690AA2D86E57B2033B640F3855E73CE Iam using the wicketstuff-annotation plugin. Any hints? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-RestartResponseAtInterceptPageException-and-Apache-ProxyPass-tp2314607p2314617.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxButton OnSubmit Validation Overridden
you could Try to set /** * Sets the defaultFormProcessing property. When false (default is true), all validation and * form updating is bypassed and the onSubmit method of that button is called directly, and the * onSubmit method of the parent form is not called. A common use for this is to create a cancel * button. * * @param defaultFormProcessing *defaultFormProcessing * @return This */ public final Button setDefaultFormProcessing(boolean defaultFormProcessing) to false on the AjaxButton (Button.class) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Re-AjaxButton-OnSubmit-Validation-Overridden-tp2298251p2298256.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Initiating File Download through Ajax is not working
Hi Folks, i need to write an Web-XML-Filler. So i have to generate a XML-File on-the-fly and after that i want to stream the generated File to the browser. Iam using this Example : https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow ... and it works half with the behavoir. download = new AjaxDownloadBehavoir() { @Override protected IResourceStream getResourceStream() { return new FileResourceStream(getXMLFile()); } }; add(download); After initiating the File is not streamed to the browser, no, its shown in the browser as a text-page. btw: Iam Using an AjaxButton (with a form) not an AjaxLink... does this matter? Any hints? Thanks in Advance! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Initiating-File-Download-through-Ajax-is-not-working-tp2289784p2289784.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Initiating File Download through Ajax is not working
Hey Svaen, thanks a lot. This works smoothly ;) download = new AjaxDownloadBehavoir() { @Override protected IResourceStream getResourceStream() { return new FileResourceStream(getXMLFile()); } @Override protected String getFileName() { return getXMLFile().getAbsoluteFile().getName(); } }; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Initiating-File-Download-through-Ajax-is-not-working-tp2289784p2289809.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Ajax Event on Component with Parameters
Igoor... i need your help please :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2259861.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Ajax Event on Component with Parameters
Hi Jeremy, Thanks for your reply. It looks like what i've looking for. But i need this with POST not with GET. Cause the GET-URL is to limited to internet standards and i have to transfer a bunch of more data back to the server-side. Any hint for POST? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2260352.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Ajax Event on Component with Parameters
No solution in sight yet =/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2253954.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Ajax Event on Component with Parameters
Sure i could. But there are more and more complex Parameters as they could be added to an URL ... so i need to Ajax-POST them, instead of GET .. this is my Problem. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2253965.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Ajax Event on Component with Parameters
Hi Folks, i want to add an custom Event filter to an HTML-Component. So that another plugin/function or something else, on client-side could call this event and transfer some parameters (by ajax-post) to wicket on server-side. Any Ideas for this? I Tried with gridView.add(new WiQueryAjaxEventBehavior(FilterEvent.FILTER) { @Override protected void onEvent(AjaxRequestTarget target) { Request request = RequestCycle.get().getRequest(); String[] params = request.getParameters(ids); //params is every time empty } }); this generates a $('#grid__view5').bind('filter', function() { 48 var wcall=wicketAjaxGet('?wicket:interface=:1:table_watchlist:grid_view::IBehaviorListener:2:',null,null, function() {return true}.bind(this)); 49}); in my markup. And it works, except for not transfering any parameters if i call $(#componentId).trigger(filter) Thanks in Advance for Help! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2251592.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Ajax Event on Component with Parameters
How should i do this from a client-side call? I dont know with Parameter will be submited from there. strictly speaking i want do transfer a json Object to server-side through the Event Call. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2251610.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Ajax Event on Component with Parameters
Okay, i'll try to explain what i want/have to do, with my noob-english ;) I've written my own gridview component for a big web-application. And some-one else who is responsible for the client-side thing, want to tell my gridview hey yo, filter this values i submit to you!. So i thought, implementing a Event which could be called by anonther would be the best id. He want to deliver a json-array to my server-side implementation... how should i offer this interface? Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2251637.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Ajax Event on Component with Parameters
And how could i do this? I dont want to reload the grid or anything. I just want to KNOW whats happen on client-side... in some scenarios... in My Example: the user filters the grid totally client-side. But the Filter-Plugin should tell my gridview-Component WHICH lines are still visible (ID-List)... Any hints? Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2251674.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Ajax Event on Component with Parameters
No the Grid Component doesnt know this or want to know this on client-side. Is it not possible just to implement a method, which could be called by : $(#gridview).trigger(filter, { 'ids': [1,12,355]}); totally from outside? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2251695.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket:Message DefaultValue is not working?
I try to use: thwicket:message key=Material NumberMaterialnummer/wicket:message/th but Unexpected RuntimeException: WicketMessage: Property 'Material Number' not found in property files. i thought if no property has been found the Default Materialnummer would be used? https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html tells the same. thanks in advance! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Message-DefaultValue-is-not-working-tp2132484p2132484.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket:Message DefaultValue is not working?
Thanks a lot! This works so nice ;) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Message-DefaultValue-is-not-working-tp2132484p2132553.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Any indicator for Ajax-Rendering?
Yeah you're right... but i think i have to describe my problem i another way. I have two linked DropDownBoxes and i want intially on Page-Rendering that the second (child) drop downbox is filled by the initial value of the first box. the linking is done with my own onChange handler protected void onChange(AjaxRequestTarget target, T newSelection){ }; the best would be, i could use this handler for initial rendering and ajax-onChange, cause there i've implemented the processing of filling the second drop down box By newSelection! Thanks for any Hints! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Any-indicator-for-Ajax-Rendering-tp2016955p2075498.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
VisitChildren and AjaxTabbedPanel
I have to traverse from the parent of my Tabs through all components in all tabs. As i use now visitChildren i only found the components which are visible on the active tab. Its clear why, cause the other tabs are not loaded with ajax. But are there any way to traverese through ALL Tabs to find all possible components too?. This is because i've different forms on this tabs which i want to submit with one general Save-Button. Thanks in Advance for any help! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/VisitChildren-and-AjaxTabbedPanel-tp2020105p2020105.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Any indicator for Ajax-Rendering?
Hi Folks, is there any indicator in onAfterRender() or onBeforeRender() inside a Component which tells me that this Component is now rendered (updated) through ajax (AjaxTarget.addComponent()), instead of the normal page-rendering? I need to know this, because i want to update an DropDownChoice by another DropDownChoice with on change handler. But if this second DropDownChoice has been updated, i want to update some other TextFields too... and the only indicator i have is, that the second DDC has been re-rendered Thanks for any Hints ;) -- View this message in context: http://n4.nabble.com/Any-indicator-for-Ajax-Rendering-tp2016955p2016955.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Any indicator for Ajax-Rendering?
I thought the same.. but... its not true ;) .. it returns not null -- View this message in context: http://n4.nabble.com/Any-indicator-for-Ajax-Rendering-tp2016955p2017020.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Any indicator for Ajax-Rendering?
I know. But i breakpointed there... and AjaxRequestTarget.get() is not null in onBeforeRender -- View this message in context: http://n4.nabble.com/Any-indicator-for-Ajax-Rendering-tp2016955p2017047.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownList
just override protected CharSequence getDefaultChoice(Object selected) { and return this.getChoices.get(0).toString ... but be sure what you do! -- View this message in context: http://n4.nabble.com/DropDownList-tp2015827p2015837.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Catch Wicket.Error with FireBug
Thanks a lot Perdro! This works very nice (if u using jQuery): script type=text/javascript $(document).ready( function(){ WicketAjaxDebug.originalLogError = WicketAjaxDebug.logError; WicketAjaxDebug.logError = function(msg){WicketAjaxDebug.originalLogError(msg);console.error(Wicket: + msg);}; }); /script Pedro H. O. dos Santos wrote: WicketAjaxDebug.original = WicketAjaxDebug.logError; WicketAjaxDebug.logError = function(msg){WicketAjaxDebug.original(msg);console.log(msg);}; On Tue, Mar 30, 2010 at 7:11 AM, Martin U ufer.mar...@googlemail.comwrote: Hi Folks, have everyone of you any experience in catching the wicket-ajax and js-errors with the Firebug? Easily we just need to overwrite WicketAjaxDebug.logError... but how? Thanks for any advice! -- Pedro Henrique Oliveira dos Santos -- View this message in context: http://old.nabble.com/Catch-Wicket.Error-with-FireBug-tp28080433p28092417.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Catch Wicket.Error with FireBug
Yeah i know this window. But there are all INFO outputs too and you could oversee an error very easy... And for instance if i evaluate some overlay functionality on my page, i cant open the debug window, cause any mouseclicks are catched by a overlaying layer ... Martin Funk-3 wrote: Could you elaborate on your problem a little more? What precisely do you want to do? If the Application is started in develompment mode the 'WICKET_AJAX_DEBUG window should be available on any Page containing Wicket-Ajax components. (The link in the right bottom corner) mf 2010/3/30 Martin U ufer.mar...@googlemail.com Hi Folks, have everyone of you any experience in catching the wicket-ajax and js-errors with the Firebug? Easily we just need to overwrite WicketAjaxDebug.logError... but how? Thanks for any advice! -- View this message in context: http://old.nabble.com/Catch-Wicket.Error-with-FireBug-tp28080433p28082310.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tree with invisible Nodes
Thanks igor for your Contribution. I did it now with my own TreeNode-Type and my own AbstractTree-Implementation: @Override protected void populateTreeItem(WebMarkupContainer item, int level) { super.populateTreeItem(item, level); //Is this Node visible or not? item.add( new AbstractBehavior() { @Override public void onComponentTag(Component component, ComponentTag tag) { TreeNode node = (TreeNode)component.getDefaultModelObject(); if(!node.isVisible()){ tag.put(class, ( tag.getString(class) + hidden) ); } } } ); } igor.vaynberg wrote: filter them in your TreeModel, it should work. you also have to override getChildCount() to return a count without filtered children, and adjust TreeModel#getIndexOfChild() to skip over the filtered children. -igor On Thu, Mar 18, 2010 at 6:19 AM, Martin U ufer.mar...@googlemail.com wrote: Hi Folks, i've to implement a tree in which some node are exists under a parent node but they should not be visible to the user in browser at all. I tried to overwrite getChild from TreeNode. But it dont works for me. I need this node existens either they are not visible because the tree is my data(model)-holder too for further processing Any Ideas? Thanks a lot. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Tree-with-invisible-Nodes-tp27945428p27950906.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TextField w/ bean as model object?
Iam in hope duke you will share your solution with us ... Want to know it too ;) igor.vaynberg wrote: there are two ways to do this either you do everything in the converter take the string and convert it into the area, if the zip is incorrect throw a conversion exception or you split the two have a converter that converts the string into the area and a validator that makes sure the area is valid -igor On Fri, Mar 12, 2010 at 10:03 AM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: I'd appreciate another pair of eyes on the following: I have a US ZIP Code input text field that I'd like to bind to an Area bean. The idea is that the component would prompt/display for a 5-digit zip code but getModelObject() would return an Area: class ZipInput extends RequiredTextFieldArea; where Area is: class Area{ int zipcode; UsState state; //enum String city; } there is also a AreaService service: //returns true only if zipCode is a valid US zip code boolean isValidZipCode(int zipcode); //return Area bean for given zipCode; throws exception if 'zipCode' isn't a valid US Zip Code Area getArea(int zipCode); The component needs to: - validate that input is present (RequiredValidator?) - convert input from String integer - at some pt call AreaService.isValidZipCode (again, a validation task) - call AreaService.getArea (a conversion task) My main problem is that it seems like AreaService.getArea() should be wrapped into a IConverter, but it, in turn, requires a validation step. However, conversion runs before validation (ie. first I need to convert string-int). So, I guess, I am unsure which of the above should be wrapped into a Converter and which into a Validator (trying to maintain some separation of responsibilities). Should I create a converter that chains StringInt and IntArea conversions? Which would execute AreaService.getArea(zipCode)? thanks -nikita - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/TextField-w--bean-as-model-object--tp27880787p27900904.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicketstuff-Push without Dojo?
Wow thanks for your contribution. Iam not very used to use Patches on SVN-Directories. But i'll try my best to understand how it works ;) Iam looking for a possibility to run wicketstuff-push without a Jetty instance to. Prefered Tomcat... Thanks! richardjohnwilkinson wrote: Hi again, Attached is a patch (zipped) to be applied to the push directory inside the push-parent directory under svn [1]. Any feedback or comments would be welcome. [1] - https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/push-parent - Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com On 8 March 2010 14:37, Richard Wilkinson richardjohnwilkin...@googlemail.com wrote: Hi, We have been working on the wicketstuff-push project offline; so far we have modified the code to run using jQuery (using wiQuery [1]) with the latest version of the cometd javascript, and fixed a few bugs / made some improvements. For example the current code wasn't as efficient as it could have been when you subscribe to more than one event per page. We also have added a 'push model', where when you update the contents of a components model, that component is updated as usual with wicket ajax, and some helper code for working with wiQuery. All of this code is work-in-progress, but we want to start a dialog with the main developer(s) of the push project to see if we can contribute our work back to the community. We also experimented with using atmosphere [2] which allows cometd to work on more servlet containers than just jetty, but while the integration worked fine, there is currently a bug in the atmosphere code which means that it doesn't work with the current version of the cometd servlet [3]. A version based only on wicket ajax sounds interesting, if you look at the jQuery binding, most of the actual work is done by the framework-agnostic cometd.js file, with jQuery providing the ajax mechanism and the JSON evaluation, however I know that the wicket ajax backend is being re-written in 1.5, so any work done on the 1.4 branch would be relatively short lived. I will try and get together a patch with our work in it for the push project and post it here, or I could maybe branch the main push-parent in the wicketstuff svn. [1] - http://code.google.com/p/wiquery/ [2] - https://atmosphere.dev.java.net/ [3] - http://n2.nabble.com/Bayuex-problems-tt4633855.html -- Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com On 8 March 2010 13:36, Martin U ufer.mar...@googlemail.com wrote: Hi Folks, i need some COMETD or something equal implemention in my web-application. So i found wickestuff-push. But as far as is see, it users dojo to do the client-side magic. I dont want to blow up my application more as it still is ;) so i want ask for an wicket + comet workaround with jQuery or with wicket-own javascript functionality. thanks in advance for any hint. - Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Wicketstuff-Push-without-Dojo--tp27821316p27832039.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDown where (type of model property) != (type of choices)
Great! Thanks a lot for this BeanDropDownChoice-Component ... iam a little bit dissapointed that something similiar is not include inside the standard-wicket framework One again: Great! :o) elygre wrote: elygre wrote: It seems to me that it is a fairly hard requirement that the model and the choice list have identical types. I'll investigate a bit further, to see if I can build a generic mechanism for both a Map and a bean-style object. After looking deeper into this, I created two different specialized DropDownChoices, with different properties. The class signatures (interfaces) are as follows with complete code further below Now, of all the things I did in Wicket, this is the one thing that turned out to be furthest from expectations. It wasn't the hardest, but it was the easiest thing that turned out to be hard :-). If there is interest (or at least no objections...), I'll create a jira issue and submit this code for inclusion into 1.5. Class signatures: public class MapDropDownChoiceT extends DropDownChoiceT { public MapDropDownChoice(String id, MapT, ? choices); public MapDropDownChoice(String id, IModelT model, MapT, ? choices); } public class BeanDropDownChoiceT extends MapDropDownChoiceT { public BeanDropDownChoice(String id, List choices, IChoiceRenderer renderer); public BeanDropDownChoice(String id, IModelT model, List choices, IChoiceRenderer renderer); } Full code: public class MapDropDownChoiceT extends DropDownChoiceT { public MapDropDownChoice(String id, MapT, ? choices) { super(id, new ArrayListT(choices.keySet()), new MapChoiceRenderer(choices)); } public MapDropDownChoice(String id, IModelT model, MapT, ? choices) { super(id, model, new ArrayListT(choices.keySet()), new MapChoiceRenderer(choices)); } private static class MapChoiceRenderer extends ChoiceRenderer { private final Map map; public MapChoiceRenderer(Map map) { super(value, key); this.map = map; } public Object getDisplayValue(Object object) { Object value = map.get(object); return value == null ? : value.toString(); } public String getIdValue(Object object, int index) { return object == null ? : object.toString(); } } } public class BeanDropDownChoiceT extends MapDropDownChoiceT { public BeanDropDownChoice(String id, List choices, IChoiceRenderer renderer) { super(id, createMap(choices, renderer)); } public BeanDropDownChoice(String id, IModelT model, List choices, IChoiceRenderer renderer) { super(id, model, createMap(choices, renderer)); } static Map createMap(Collection choices, IChoiceRenderer renderer) { Map map = new HashMap(); for (Object choice : choices) { map.put(renderer.getIdValue(choice, -1), renderer.getDisplayValue(choice)); } return map; } } -- View this message in context: http://old.nabble.com/DropDown-where-%28type-of-model-property%29-%21%3D-%28type-of-choices%29-tp25052893p27714412.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Delegate a Modelchange to the child components. Or using a ModalWindow for displaying different Models of a specific Type.
Ohkay.. i've found a solution.. but i thinks not simple.. or wicket-like i think... but its the only way to pass the new model to the known propertyModel =/ now iam doing this in UserEdit.java @Override protected void onModelChanged() { final IModelUser _model = (IModelUser) this.getDefaultModel(); visitChildren(new IVisitorComponent() { @Override public Object component(Component component) { PropertyModelUser cpm = ((PropertyModelUser)component.getDefaultModel()); PropertyModelUser newCpm = new PropertyModelUser(_model.getObject(), cpm.getPropertyExpression()); //cpm.setObject(_model.getObject()); component.setDefaultModel(newCpm); component.modelChanging(); return component; } }); } its to dirty i think.. or isn't it? Thanks for any Help in Advance! Martin U wrote: Its not easy to find the right topic, but i will try to explain my problem as best as i can. I want to display an user-detail View (User is an BusinessObject in my Application) inside a specific Modal window. So at the rendering of the Site i place an empty or dummy UserObject inside my UserEdit-Panel and later if the user choose one specific user from a Table i want to replace this dummy-Model with the clicked-User-Model. public class UserEdit extends Panel { /** * @param id * @param model */ private IModelUser model; CompoundPropertyModelUser cpm; public UserEdit(String id, IModelUser _model) { super(id, _model); this.model = _model; init(); } private void init(){ cpm = new CompoundPropertyModelUser(this.getDefaultModelObject()); this.add(new TextField(lastname, cpm.bind(lastName)) ); } } I dont know if its the right choice to use a cpm ... but i think its the proper way right? The UserEdit is the content of my ModalWindow implementation so i bore up the show method with a new Model-Parameter to delegate them to the Inside Content... (inside ModelOverlay.class) public void show(final AjaxRequestTarget target, IModelT model) { if (shown == false) { getContent().setVisible(true); getContent().setDefaultModel(model); // - my new Line ;o) target.addComponent(this); target.appendJavascript(getWindowOpenJavascript()); shown = true; } } The Model inside UserEdit is changed. But how can i archieve that the lastname-Textfield now displays the Value of getLastName() from the new, submitted Model? In my opinion i tried everything... tried to override the onModelChange-Event and tryed to set the new Model with an Visitor of every childfield... but than i lost my expression from the CPM and only pages.adminuserpage$u...@17eea10is shown inside the Textfield. Thanks for any help. Am i totally lost.. or am i on the right way and few steps before the solution? I hope you understand my problem... if not so tell me and i will try to explain it in another way or even better... Apologise my english, its not my mothers tongue! - Martin -- View this message in context: http://old.nabble.com/Delegate-a-Modelchange-to-the-child-components.-Or-using-a--ModalWindow-for-displaying-different-Models-of-a-specific-Type.-tp27604201p27606240.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Delegate a Modelchange to the child components. Or using a ModalWindow for displaying different Models of a specific Type.
Oh my God.. its so easy ... _ public class UserEdit extends Panel { /** * @param id * @param model */ public UserEdit(String id, CompoundPropertyModelUser _model) { super(id, _model); this.add(new TextField(lastname, _model.bind(lastName))); this.add(new TextField(firstname, _model.bind(firstName)) ); this.add(new TextField(department, _model.bind(department)) ); } } and in ModalWindow.show public void show(final AjaxRequestTarget target, IModelT model) { if (shown == false) { getContent().setVisible(true); getContent().setDefaultModelObject(model.getObject()); //- magic line target.addComponent(this); target.appendJavascript(getWindowOpenJavascript()); shown = true; } } Damn! MattyDE wrote: Ohkay.. i've found a solution.. but i thinks not simple.. or wicket-like i think... but its the only way to pass the new model to the known propertyModel =/ now iam doing this in UserEdit.java @Override protected void onModelChanged() { final IModelUser _model = (IModelUser) this.getDefaultModel(); visitChildren(new IVisitorComponent() { @Override public Object component(Component component) { PropertyModelUser cpm = ((PropertyModelUser)component.getDefaultModel()); PropertyModelUser newCpm = new PropertyModelUser(_model.getObject(), cpm.getPropertyExpression()); //cpm.setObject(_model.getObject()); component.setDefaultModel(newCpm); component.modelChanging(); return component; } }); } its to dirty i think.. or isn't it? Thanks for any Help in Advance! Martin U wrote: Its not easy to find the right topic, but i will try to explain my problem as best as i can. I want to display an user-detail View (User is an BusinessObject in my Application) inside a specific Modal window. So at the rendering of the Site i place an empty or dummy UserObject inside my UserEdit-Panel and later if the user choose one specific user from a Table i want to replace this dummy-Model with the clicked-User-Model. public class UserEdit extends Panel { /** * @param id * @param model */ private IModelUser model; CompoundPropertyModelUser cpm; public UserEdit(String id, IModelUser _model) { super(id, _model); this.model = _model; init(); } private void init(){ cpm = new CompoundPropertyModelUser(this.getDefaultModelObject()); this.add(new TextField(lastname, cpm.bind(lastName)) ); } } I dont know if its the right choice to use a cpm ... but i think its the proper way right? The UserEdit is the content of my ModalWindow implementation so i bore up the show method with a new Model-Parameter to delegate them to the Inside Content... (inside ModelOverlay.class) public void show(final AjaxRequestTarget target, IModelT model) { if (shown == false) { getContent().setVisible(true); getContent().setDefaultModel(model); // - my new Line ;o) target.addComponent(this); target.appendJavascript(getWindowOpenJavascript()); shown = true; } } The Model inside UserEdit is changed. But how can i archieve that the lastname-Textfield now displays the Value of getLastName() from the new, submitted Model? In my opinion i tried everything... tried to override the onModelChange-Event and tryed to set the new Model with an Visitor of every childfield... but than i lost my expression from the CPM and only pages.adminuserpage$u...@17eea10is shown inside the Textfield. Thanks for any help. Am i totally lost.. or am i on the right way and few steps before the solution? I hope you understand my problem... if not so tell me and i will try to explain it in another way or even better... Apologise my english, its not my mothers tongue! - Martin -- View this message in context: http://old.nabble.com/Delegate-a-Modelchange-to-the-child-components.-Or-using-a--ModalWindow-for-displaying-different-Models-of-a-specific-Type.-tp27604201p27607064.html Sent from the Wicket - User mailing list archive at Nabble.com
Re: How to add and remove css classes the right way?
Hello Martin ;) i tired indicatorFor.add(new AttributeModifier(class,new ModelString(validation_error))); inicatorFor.add(new AttributeModifier(class,new ModelString(test))); but in the markup no class attribute appears? - Martin Martin Sachs wrote: Hi Martin user the AttributeModifier or AttributeAppender classes. Martin Martin U schrieb: Hi Folks, I'am getting totally confused how to add and remove css classes to and form my text-input-fields on ajax-form-validation. At first i try to add two css classes step by step: IteratorFeedbackMessage iter = Session.get().getFeedbackMessages().messages(getFeedbackMessageFilter()).iterator(); if(iter.hasNext()){ indicatorFor.add(new SimpleAttributeModifier(class,validation_error)); indicatorFor.add(new SimpleAttributeModifier(class, test)); } But gets the Markup only with class='test' How can i add more than one value to class? And how can i remove one special css-class from an component if the validation is okay to this field? Thanks in Advance for any help. - Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/How-to-add-and-remove-css-classes-the-right-way--tp27464616p27464720.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to add and remove css classes the right way?
Ohhkay.. i see indicatorFor.add(new AttributeAppender(class,new ModelString(validation_error), )); indicatorFor.add(new AttributeAppender(class,new ModelString(test), )); did it .. but how can i remove now an attribute from class .. or how could i access the attributes to replace one? MattyDE wrote: Hello Martin ;) i tired indicatorFor.add(new AttributeModifier(class,new ModelString(validation_error))); inicatorFor.add(new AttributeModifier(class,new ModelString(test))); but in the markup no class attribute appears? - Martin Martin Sachs wrote: Hi Martin user the AttributeModifier or AttributeAppender classes. Martin Martin U schrieb: Hi Folks, I'am getting totally confused how to add and remove css classes to and form my text-input-fields on ajax-form-validation. At first i try to add two css classes step by step: IteratorFeedbackMessage iter = Session.get().getFeedbackMessages().messages(getFeedbackMessageFilter()).iterator(); if(iter.hasNext()){ indicatorFor.add(new SimpleAttributeModifier(class,validation_error)); indicatorFor.add(new SimpleAttributeModifier(class, test)); } But gets the Markup only with class='test' How can i add more than one value to class? And how can i remove one special css-class from an component if the validation is okay to this field? Thanks in Advance for any help. - Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/How-to-add-and-remove-css-classes-the-right-way--tp27464616p27464823.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to add and remove css classes the right way?
Ah i did it . but is this the best way? @Override protected void onValidate() { super.onValidate(); visitFormComponents(new FormComponent.IVisitor() { @Override public Object formComponent(IFormVisitorParticipant formComponent) { Component _c = (Component)formComponent; if(formComponent instanceof IValidatingComponent){ if(((IValidatingComponent)_c).getField().hasErrorMessage()){ AttributeAppender _attr = new AttributeAppender(class,new ModelString(validation_error), ){ @Override public boolean isTemporary() {return true; } }; ((IValidatingComponent)_c).getField().add(_attr); } } return _c; } }); } MattyDE wrote: Ohhkay.. i see indicatorFor.add(new AttributeAppender(class,new ModelString(validation_error), )); indicatorFor.add(new AttributeAppender(class,new ModelString(test), )); did it .. but how can i remove now an attribute from class .. or how could i access the attributes to replace one? MattyDE wrote: Hello Martin ;) i tired indicatorFor.add(new AttributeModifier(class,new ModelString(validation_error))); inicatorFor.add(new AttributeModifier(class,new ModelString(test))); but in the markup no class attribute appears? - Martin Martin Sachs wrote: Hi Martin user the AttributeModifier or AttributeAppender classes. Martin Martin U schrieb: Hi Folks, I'am getting totally confused how to add and remove css classes to and form my text-input-fields on ajax-form-validation. At first i try to add two css classes step by step: IteratorFeedbackMessage iter = Session.get().getFeedbackMessages().messages(getFeedbackMessageFilter()).iterator(); if(iter.hasNext()){ indicatorFor.add(new SimpleAttributeModifier(class,validation_error)); indicatorFor.add(new SimpleAttributeModifier(class, test)); } But gets the Markup only with class='test' How can i add more than one value to class? And how can i remove one special css-class from an component if the validation is okay to this field? Thanks in Advance for any help. - Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/How-to-add-and-remove-css-classes-the-right-way--tp27464616p27465079.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Submit form with ajax on enter
Any other hints for this right now? I want to submit an ajax-Form by hiting enter in Textfield, but i want wicket to call the same Method as i defiend in AjaxButton ... any ideas? Thanks a lot in Advance John Patterson wrote: It is being used indirectly through AjaxButton. Unfortunately AjaxFormSubmitBehavior cannot be used directly on the form to listen for onsubmit Emanuele Gesuato-2 wrote: Why not using AjaxFormSubmitBehavior ? -- View this message in context: http://old.nabble.com/Submit-form-with-ajax-on-enter-tp24196732p27449961.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Howto load StringResources from Database for Iternationalization?
Thanks a lot you both, it work very nice with private class DatabaseResourceLoader implements IStringResourceLoader{ ... } so i will implement a self-learning translation-database in the next days :) Have a nice weekend, Martin German Morales-3 wrote: Hoi Martin, we have a subclass of ComponentStringResourceLoader, overriding #loadStringResource methods, which we then register in our application #init method: getResourceSettings().addStringResourceLoader(new YourStringResourceLoader()); and it works well for our needs. Then you should decide if it's better to load all resources in advance (for example, on Application #init) or if you want to get them on demand (performance and memory considerations). If you wait for calls for loadStringResource to get resources individually, you will get lots of requests to the database, but then the results should be cached by wicket, so the next user asking for the resource should have it already there. On the other hand, you don't load all the stuff in advance. We prefer for the moment to load all resources first, but we must still analyze better if this is the best way. Grüsse, German 2010/1/29 Martin U ufer.mar...@googlemail.com Hello Folks, i don't know if this question was ever done, but i didn't find anything suitable for me. In a huge webapplication which is being in the first steps of implementation, we want to use a Database (table) to store there any String Resources by locale for translation. I have been jumping through the class-hierarchy for many hours but i haven't found the right point to plug-in a ResourceLoader from Database. There are some different Interface of them i could imagine This is the right place but I am not sure at all. Have i to Implement my own *IResourceSettings*? I hope not, cause the Implementation Settings looks very complicated to me. or is it enough to implement *IStringResourceLoader*? But then, where can i add my own loader to the Chain of processing? Thanks a lot for any hints. Its very urgently to know and to understand if wicket is useful for our wishes before we really decide which framework we want to use. Please apologise for my English, its not my mothers tongue. - Matty -- View this message in context: http://old.nabble.com/Howto-load-StringResources-from-Database-for-Iternationalization--tp27368172p27369874.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Updating Form Elements by Ajax with new POJO-Model
In a nutshell: I want to use this: http://cwiki.apache.org/WICKET/how-to-use-the-same-form-for-editing-and-new.html but ajax-driven... =/ -- View this message in context: http://old.nabble.com/Updating-Form-Elements-by-Ajax-with-new-POJO-Model-tp26810357p26810518.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Updating Form Elements by Ajax with new POJO-Model
This works!!! Thanks SO much. But is it the right and easiest way? Any other suggestions? Thaanks! :) Eugene Malan wrote: Try replacing the Model's object instead of the actual Model. private EditFormModel editFormModel = new CompoundPropertyModelFunctionsbereich(el); replace //f.setModel(new CompoundPropertyModelFunctionsbereich(el)); editFormModel.setObject(el); On 16 Dec 2009, at 6:27 AM, Martin U wrote: Iam totally confused. Iam using the Todo-List-Example from here : http://www.wicket-library.com/wicket-examples/ajax/todo-list.0 to play around with wicket. This example works, but i want to display a list of Entities from the Backend and edit one of them with my new-entity-Form. So i want to click on edit in a row and want to use the *same* *form *as i use to add a entity. How could i handle this? I tried sooo much but nothing works right. The addForm (showForm(target)) function works right. But in public void showForm(AjaxRequestTarget _t, Functionsbereich el) i deliver el which is my POJO and i cant figure out how to treat the Form to use now my new Model... I tried with modelChange() und mondelChanging() but nothing works =( allways the empty Form is shown ;( Thanks a lot for any help!! private final class FormContainer extends WebMarkupContainer{ private EditForm f; public FormContainer(String id) { super(id); setOutputMarkupId(true); add(f = (EditForm) new EditForm(form).setVisible(false)); add(new AjaxFallbackLink(link){ @Override public void onClick(AjaxRequestTarget target) { showForm(target); } }); } public void showForm(AjaxRequestTarget _t){ f.setVisible(true); _t.addComponent(this); } /** Shows form with entity **/ public void showForm(AjaxRequestTarget _t, Functionsbereich el){ //add(f = new EditForm(link, el)); f.modelChanging(); f.setModel(new CompoundPropertyModelFunctionsbereich(el)); f.modelChanged(); f.setVisible(true); _t.addComponent(this); } } private final class EditForm extends FormFunctionsbereich{ public EditForm(String id){ this(id, new CompoundPropertyModelFunctionsbereich(new Functionsbereich())); } public EditForm(String id, Functionsbereich _el){ super(id,new CompoundPropertyModelFunctionsbereich(_el) ); } public EditForm(String id, CompoundPropertyModelFunctionsbereich _model) { super(id, _model); setOutputMarkupId(true); add( new TextField(form_text, _model.bind(label))); //add(new Label(vendor, _model.bind(vendor.name))); } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Updating-Form-Elements-by-Ajax-with-new-POJO-Model-tp26810357p26811076.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What is the proper way to output arbitrary (non-html) response from wicket pages?
Sorry i cant help you directly, but have you ever searched for pdf in the mailing-list? http://old.nabble.com/forum/Search.jtp?forum=25133local=yquery=pdf P-( Marat Radchenko-2 wrote: Suppose i have a stateless page with a form and when user submits it, i want to respond with a dynamically-generated pdf file. What is the proper way to write him pdf without interfering (and, better, with integrating) with wicket response generation machinery? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/What-is-the-proper-way-to-output-arbitrary-%28non-html%29-response-from--wicket-pages--tp26810943p26811264.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Updating Form Elements by Ajax with new POJO-Model
Yeah Eugene, f.setModelObject(e) works too and its even better i thinks :) Thanks! Eugene Malan wrote: I think you might have to use setVisibilityAllowed(true), otherwise the html does not make it onto the page. Maybe this is better... f = new EditFormFunctionsbereich(form,new CompoundPropertyModelFunctionsbereich(el)); f.setVisible(false); f.setVisibilityAllowed(true); and then for Ajax... f.setModelObject(e); On 16 Dec 2009, at 7:09 AM, Eugene Malan wrote: Try replacing the Model's object instead of the actual Model. private EditFormModel editFormModel = new CompoundPropertyModelFunctionsbereich(el); replace //f.setModel(new CompoundPropertyModelFunctionsbereich(el)); editFormModel.setObject(el); On 16 Dec 2009, at 6:27 AM, Martin U wrote: Iam totally confused. Iam using the Todo-List-Example from here : http://www.wicket-library.com/wicket-examples/ajax/todo-list.0 to play around with wicket. This example works, but i want to display a list of Entities from the Backend and edit one of them with my new-entity-Form. So i want to click on edit in a row and want to use the *same* *form *as i use to add a entity. How could i handle this? I tried sooo much but nothing works right. The addForm (showForm(target)) function works right. But in public void showForm(AjaxRequestTarget _t, Functionsbereich el) i deliver el which is my POJO and i cant figure out how to treat the Form to use now my new Model... I tried with modelChange() und mondelChanging() but nothing works =( allways the empty Form is shown ;( Thanks a lot for any help!! private final class FormContainer extends WebMarkupContainer{ private EditForm f; public FormContainer(String id) { super(id); setOutputMarkupId(true); add(f = (EditForm) new EditForm(form).setVisible(false)); add(new AjaxFallbackLink(link){ @Override public void onClick(AjaxRequestTarget target) { showForm(target); } }); } public void showForm(AjaxRequestTarget _t){ f.setVisible(true); _t.addComponent(this); } /** Shows form with entity **/ public void showForm(AjaxRequestTarget _t, Functionsbereich el){ //add(f = new EditForm(link, el)); f.modelChanging(); f.setModel(new CompoundPropertyModelFunctionsbereich(el)); f.modelChanged(); f.setVisible(true); _t.addComponent(this); } } private final class EditForm extends FormFunctionsbereich{ public EditForm(String id){ this(id, new CompoundPropertyModelFunctionsbereich(new Functionsbereich())); } public EditForm(String id, Functionsbereich _el){ super(id,new CompoundPropertyModelFunctionsbereich(_el) ); } public EditForm(String id, CompoundPropertyModelFunctionsbereich _model) { super(id, _model); setOutputMarkupId(true); add( new TextField(form_text, _model.bind(label))); //add(new Label(vendor, _model.bind(vendor.name))); } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Updating-Form-Elements-by-Ajax-with-new-POJO-Model-tp26810357p26811726.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [newbie] Adding button - simple question
Hi Mariusz , is your HomePage.html file in the same folder as HomePage.class? marioosh.net wrote: I have template: html xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; body input type=button wicket:id=ok value=ok/ /body /html and class: public class HomePage extends WebPage { public HomePage(final PageParameters parameters) { add(new Button(ok)); } } But i get error: Unable to find component with id 'ok' . or that the hierarchy does not match. -- Pozdrawiam, Mariusz - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/-newbie--Adding-button---simple-question-tp26793576p26793696.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Markup-Edit in Eclipse = wicket:panel is not recognized
Thanks a lot, but which eclipse editor understand xmlns and will validate against it? I still got the Error :,( reiern70 wrote: html xmlns:wicket=org.apache.wicket body /body /html Best, Ernesto On Thu, Oct 22, 2009 at 12:07 PM, Martin U ufer.mar...@googlemail.comwrote: Hi Community, iam totally new to wicket and i want to use eclipse for editing my wicket-java and markup files. But the html-validator fools me with this error in the subject. Iam not able to disable the validation (Window-Preferences-Validation). Dont know why eclipse is not recognizing my configuration. Which Editor inside eclipse use you for editing the markup-pages? Thanks in Advance and apologise my english. Its not my mothers tongue. - Martin -- View this message in context: http://www.nabble.com/Markup-Edit-in-Eclipse-%3D%3E-wicket%3Apanel-is-not-recognized-tp26007708p26007931.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org