RE: modal window question - opening a modal window on page load
Hi, i had change the idea to do it ...my page will be left menu bar (few report links) and content page. Once click on the report link, it will load the report and Pop up a modal window at the same time. The modal window has some message and a cancel button. What i want is the report is running at the background until finish. But when user click on cancel button then it will stop the process. The main reason i need to have this feature is because the report page will be load a huge data. The modal window just facilities the user whether want to stop the backend process or not if user don't wish to wait the report page load until finish. the way i tried is 1) normal link for the left menu bar ( once link is clicked , setResponse to the report page ) 2) Once the report page is first loading, pop up a modal window at the same time with cancel button So, in this report page , i had create a modal window component final ModalWindow cancelReportModal = new ModalWindow(cancelReportModal); add(cancelReportModal); cancelReportModal.setPageMapName(cancelReportModal); cancelReportModal.setCookieName(cancelReportModal); cancelReportModal.setResizable(false); cancelReportModal.setInitialWidth(30); cancelReportModal.setInitialHeight(12); cancelReportModal.setWidthUnit(em); cancelReportModal.setHeightUnit(em); cancelReportModal.setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { return new CancelReportModalPage(reportPage.this); } }); cancelReportModal.setOutputMarkupId(true); From the wicket example, it use ajaxLink to call up the modal widow once the user click on the link ( mean onClick function is performed ) final AjaxLink ajaxLink ; ajaxLink = new AjaxLink(cancelReportModalLink){ @Override public void onClick(AjaxRequestTarget target) { cancelReportModal.show(target); } }; But in here , i don't any idea how to auto display the modal window on screen. i had tried for the solution given from this forum which talk about getBodyContainer().addOnLoadModifier( new ClickOnceOnLoadModel( modalWindowOpeningLink ), null ); put inside the page constructor. but i cant get it also... i had tried also to auto load the onClick function this way. but failed to do that too... AjaxLink link ; AjaxRequestTarget target2 = new AjaxRequestTarget(); add(link = new AjaxLink(cancelReportModalLink) { public void onClick(AjaxRequestTarget target) { System.out.println( target = + target); triggerTarget = target; System.out.println( triggerTarget = + triggerTarget); cancelReportModal.show(target); } }); link.onClick(triggerTarget); the target value all the while also return NULL value can somebody give some reference to me .. is that possible the to load the modal window automatically without to click the button? Thanks in advance kenixwong wrote: Hi, Ed i just read from the forum you sent if you don't mind, can you give more example ? because i based on the in instruction , i still cant get it. An no idea for this part getBodyContainer().addOnLoadModifier( new ClickOnceOnLoadModel( modalWindowOpeningLink ), null ); As my code structure this like this way public class LastThirtyDaysLineChart extends CommonPage{ // main contructor. Initial the page to show what public LastThirtyDaysLineChart () { // 1. display the feedback panel add(new FeedbackPanel(feedback)); // 2. display the component defined in form add(new LastThirtyDaysLineChartForm(LastThirtyDaysLineChartForm)); } // the form declare the component in order display in the web browser private class LastThirtyDaysLineChartFormextends Form{ // 3. so, is the main source to get the data from Database in order to generate the chart generate Time series chart... } } So, in which part i need to generate the
Re: [discuss] Mailing list usage...
On 1/29/08, Martijn Dashorst [EMAIL PROTECTED] wrote: I think a community@ list is preferable for ongoing community issues. But this will not eliminate the (need for) use of user@ for user group efforts, as the new community list will not be as populated as the user@ list. I've proposed this on the dev@ list. Comments/improvements should go there. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
is it possible to have concurrent page?
(first, sorry for start a new thread. The original thread was mixed-up with different top discussion) that's right, i am screwed anyway if request takes too long, but from the browser user decides to give up current search by click the stop button and fire a new search. Since the pagemap is still locked by previous request, the second request will have to wait. sounds like i will end up handle this senario by pulling. is it possible to have a page that's not single thread model? Can we have two interfaces, such as SingleThreadPage, and ConcurrentThreadPage? igor.vaynberg wrote: yeah, if it takes a while the browser will timeout and you are screwed anyways... what do you mean they cant start a new search? you mean they no longer for the results of the currently running search and just press the search button again? if they would open a new tab with the search page, and you had automultiwindowsupport option enabled that new opened page would be created in a new pagemap, and so you wouldnt have a locking problem... -igor On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED] wrote: shared resources are not synced thats one way of going round it. the other way is as igor describes. do the search in a seperate thread. If it really takes that long then you do know that browsers also can just time out after they don't get anything for a while? If it really takes that long then you should build a page where people can fire searches to the system and the page is just displayig the searches they did and then if the search is finished that page can bring them to the result johan On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote: that's nice to have but is there a way to work around this issue? Our application for customer service and they perform a lot search on a huge database, in some cases, customer service would like to start new search. Since wicket is locked by page path, there is no way for CSR to start a new request until previous one is finished. igor.vaynberg wrote: the pages are locked on the pagemap. so you cannot have two concurrent requests from the same user to the same pagemap. this is so when you are coding your pages you can use the much simpler single-threaded model. every have fields in your servlet implementation? those have to be synchronized or you will run into threading issues. this is the stuff we make sure you dont have to worry about. the trade off is that if you have long running requests you should probably process them in a different thread and let the UI poll for status. -igor On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote: So I developed my first wicket application and I kept getting exception below as soon as i point my application to production database. Can someone tell me why wicket can't handle concurrent request? to replicate this issue, i have a page with a form component and regular submit button. on the onSubmit method, protected void onSubmit() { try { Thread.sleep(3 * 60 * 1000); } catch (InterruptedException e) { } } i put the thread into sleep for 3 minutes. I hit submit, then stop the request on browser and submit another request. then result to a internal error page. Why can't wicket handle mutiple submit? i dont' get it, shouldn't wicket process the new require like how servlet works? Someone please tell me how to work around this issue. Thanks in advance. 2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] - After 1 minute the Pagemap null is still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get the page for path: 5 org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get the page for path: 5 at org.apache.wicket.Session.getPage(Session.java:734) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage (AbstractRequestCycleProcessor.java:443) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve( WebRequestCycleProcessor.java:139) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245) at
Re: [discuss] Mailing list usage...
Martijn Dashorst wrote: On 1/29/08, James Carman [EMAIL PROTECTED] wrote: Remember, these mailing lists are used by thousands of people all over the world and they're here for a specific reason, to learn about Wicket (or to help others). Remember that we are all humans, and that the social interactions between people is what makes a community thrive, as long as it is respectful and open. The occasional personal wish, note or other social interaction that happens on the list makes us remember that we are human, and a community. I think in this case the sharing was not off limits, and I hate to see our list go down a route where we take out any and all personal interactions and have to limit ourselves to the java problem du jour. What we do need to be careful of is that it transcends into mostly personal chitchat. However I don't see that happening anytime soon. The number of w00t ftw and other messages is pretty low, as are the number of personal life sharing. Yes these messages are better suited to personal blogs or private messages, however I am not willing to start a police hunt or moderation effort to remove any and all personal sharing on these lists. This is a delicate problem. I rarely ever contribute since I'm still learning and I really appreciate the complete answers I get when I ask questions; however it is very difficult for me to follow this list. Perhaps to some it doesn't seem high volume, but it easily triples all the other mail I get. To me anything that perhaps improves the signal to noise ratio helps. That said, I wouldn't want it turned into what advanced-servlets turned into. That list was basically dead quiet and whenever someone did ask a question there was a 90% chance the responses would be two page diatribes on how that question was not an advanced-servlet question. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [discuss] Mailing list usage...
If the user groups are split onto a separate thread I would like to see meeting announcements cross-posted to this list so that it's as easy as possible for new users to find the meetings. - Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dynamic DataTable columns
Well, it's not really a matter of hiding and showing table columns for convenience. It's really more a matter of having a selection panel that allows a user to select a business object (the panel puts it in a model) and and display panel that displays details for the selected business object. The business objects - we'll say a bill in this case - could have many different variations. Each type might have a lot of common information (date/time, total amount, customer name, address, etc.) but each type of bill might have fields that others don't. Normally, taking an OO approach, I would create a base display panel and have bill-specific panels that extend that base panel, adding extra columns to the details table when the DataTable is created. However, in this case, I have a selection panel and a display panel that share a model and once they are created, that's it. Staying with the bill example, the selection panel displays bills (an assortment of types) and the display panel has to show whatever is selected. Since I originally posted this message, I got around this limitation by creating a model that replaces a generic display panel with a more specialized panel as needed. But I still believe there is a need for a DataTable that is more dynamic. Ideally, a DataTable would take a java.util.List or a model wrapping a List and rather than referencing that list directly, the DataTable would use the its own getColumns() method, making it easy to add logic as needed. cblehman wrote: Can't you just create a new DataTable with the new list of columns in the ajax call when you want to add/remove a column, then repaint the container holding the Table? -Clay -Original Message- From: Timo Rantalaiho [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 10:26 PM To: users@wicket.apache.org Subject: Re: Dynamic DataTable columns On Mon, 28 Jan 2008, UPBrandon wrote: Although, in the mean time, I still have the same problem - not being able to change change the columns after the DataTable has been declared, at render time. Any suggestions? Roll your own using DataView. You can take ideas from DataTable but I doubt that the Column abstraction helps you if you want to change the columns dynamically; this is probably easier done by just changing the row Item creation. In my experience such high-level components as DataTable don't work well when you want a lot of control, then their value is more that of an example. Best wishes, Timo -- View this message in context: http://www.nabble.com/Dynamic-DataTable-columns-tp15142596p15162689.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: [discuss] Mailing list usage...
On 1/29/08, Martijn Dashorst [EMAIL PROTECTED] wrote: On 1/29/08, James Carman [EMAIL PROTECTED] wrote: There has been some concern over the proper usage of the Wicket mailing lists. Not really, just you :-) I count as some! :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable loading remote DTD
Thanks, but it turns out that I can disable it completely as well. http://www.theserverside.com/discussions/thread.tss?thread_id=46839 On Jan 29, 2008 9:18 PM, Martin Grigorov [EMAIL PROTECTED] wrote: Check http://java.sun.com/javase/6/docs/api/org/xml/sax/EntityResolver.html On Tue, 2008-01-29 at 21:01 +0800, Boon Aik Chew wrote: Little bit off topic, how do I disable transformer from loading remote DTD to do validation? DOMSource domSource = new DOMSource(doc); StreamResult streamResult = new StreamResult(result); TransformerFactory transformerFactory = TransformerFactory.newInstance (); Transformer serializer = transformerFactory.newTransformer(); serializer.transform(domSource, streamResult); When this executes, it will load the DTD file remotely. - 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: [WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.
Lan Boon Ping wrote: Hi, I didn't have a change to debug it yet, because I don't have a dedicated PC with XP IE6 installed, we are setting up a new one now. I will take a deeper look at it soon. Thanks for the link. On Jan 29, 2008 3:33 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I was taking a wild guess:) I've looked at it a bit now.. And one thing that I can see are this line in draggable.js: Element.makePositioned(element); // fix IE There are other comment about browsers aswell.. I think you are right, this line of code is suspicious of causing the problem. I got this error from browser IE7. Error :'Position' is null or not an object' Code :0 One step closer to it, thanks. Say if you have trouble with it. I'll look into it then, two pair of eyes are better than one:) Hey thats what the mailing list are for:) I learn from this too:) Regards Boon Ping. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Disable loading remote DTD
Little bit off topic, how do I disable transformer from loading remote DTD to do validation? DOMSource domSource = new DOMSource(doc); StreamResult streamResult = new StreamResult(result); TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer serializer = transformerFactory.newTransformer(); serializer.transform(domSource, streamResult); When this executes, it will load the DTD file remotely. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Copenhagen wicket user meeting: rescheduled
Lets hear about if from others, I think we should start a new thread about this, will you initiate it? regards Nino James Carman wrote: what about using the announcements list? On 1/29/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Maybe the Wicket site could have a page on the Community section listing some of the user groups around the world with information about them (website, mailing lists, etc.). Mailing lists are very easy to set up. You can start a Google Group (for free) to represent your user group and folks could subscribe to that. Also, the Wicket community already has an announcements list which might be a better place for user group meeting information. -1 , for creating seperate mailing lists it could possibly in the long run break the community into countries as I've said before. -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - 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] -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [discuss] Mailing list usage...
The way most (if not all) Wicket committers keep track of this list (and all other mailing lists for that matter) is to use gmail as their list reading platform. The threaded view of gmail is unsurpassed IMO. I have 0 unread Wicket messages on all lists I'm subscribed to: user, dev, commits, private, wicketstuff-user, wicketstuff-dev Martijn On 1/29/08, Curtis Cooley [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: On 1/29/08, James Carman [EMAIL PROTECTED] wrote: Remember, these mailing lists are used by thousands of people all over the world and they're here for a specific reason, to learn about Wicket (or to help others). Remember that we are all humans, and that the social interactions between people is what makes a community thrive, as long as it is respectful and open. The occasional personal wish, note or other social interaction that happens on the list makes us remember that we are human, and a community. I think in this case the sharing was not off limits, and I hate to see our list go down a route where we take out any and all personal interactions and have to limit ourselves to the java problem du jour. What we do need to be careful of is that it transcends into mostly personal chitchat. However I don't see that happening anytime soon. The number of w00t ftw and other messages is pretty low, as are the number of personal life sharing. Yes these messages are better suited to personal blogs or private messages, however I am not willing to start a police hunt or moderation effort to remove any and all personal sharing on these lists. This is a delicate problem. I rarely ever contribute since I'm still learning and I really appreciate the complete answers I get when I ask questions; however it is very difficult for me to follow this list. Perhaps to some it doesn't seem high volume, but it easily triples all the other mail I get. To me anything that perhaps improves the signal to noise ratio helps. That said, I wouldn't want it turned into what advanced-servlets turned into. That list was basically dead quiet and whenever someone did ask a question there was a 90% chance the responses would be two page diatribes on how that question was not an advanced-servlet question. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
Re: [discuss] Mailing list usage...
you can also use thunderbird[1], it has a similar threaded view. [1]=http://www.mozilla-europe.org/da/products/thunderbird/ Martijn Dashorst wrote: The way most (if not all) Wicket committers keep track of this list (and all other mailing lists for that matter) is to use gmail as their list reading platform. The threaded view of gmail is unsurpassed IMO. I have 0 unread Wicket messages on all lists I'm subscribed to: user, dev, commits, private, wicketstuff-user, wicketstuff-dev Martijn On 1/29/08, Curtis Cooley [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: On 1/29/08, James Carman [EMAIL PROTECTED] wrote: Remember, these mailing lists are used by thousands of people all over the world and they're here for a specific reason, to learn about Wicket (or to help others). Remember that we are all humans, and that the social interactions between people is what makes a community thrive, as long as it is respectful and open. The occasional personal wish, note or other social interaction that happens on the list makes us remember that we are human, and a community. I think in this case the sharing was not off limits, and I hate to see our list go down a route where we take out any and all personal interactions and have to limit ourselves to the java problem du jour. What we do need to be careful of is that it transcends into mostly personal chitchat. However I don't see that happening anytime soon. The number of w00t ftw and other messages is pretty low, as are the number of personal life sharing. Yes these messages are better suited to personal blogs or private messages, however I am not willing to start a police hunt or moderation effort to remove any and all personal sharing on these lists. This is a delicate problem. I rarely ever contribute since I'm still learning and I really appreciate the complete answers I get when I ask questions; however it is very difficult for me to follow this list. Perhaps to some it doesn't seem high volume, but it easily triples all the other mail I get. To me anything that perhaps improves the signal to noise ratio helps. That said, I wouldn't want it turned into what advanced-servlets turned into. That list was basically dead quiet and whenever someone did ask a question there was a 90% chance the responses would be two page diatribes on how that question was not an advanced-servlet question. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[discuss] Mailing list usage...
There has been some concern over the proper usage of the Wicket mailing lists. Here's what I propose: users - used for folks to ask/answer questions concerning the wicket framework announcements - used for announcing releases, upcoming user group meetings, etc. developers - used for the actual developers/contributors to discuss development issues As for ongoing discussions about logistics of user group meetings, I think they should have their own mailing lists for that. Some have said they feel that it would split the community into different countries if we did that. Perhaps the Wicket PMC could decided to set up a specialized groups mailing list? The messages on that list could be prefixed with the specific group's name (such as [copenhagen]) so that email filters could be set up. Any conversation that becomes personal in nature (well wishes for other people's loved ones for example) should be taken off-line, since it's just not relevant to the rest of us. Remember, these mailing lists are used by thousands of people all over the world and they're here for a specific reason, to learn about Wicket (or to help others). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dynamic DataTable columns
Can't you just create a new DataTable with the new list of columns in the ajax call when you want to add/remove a column, then repaint the container holding the Table? -Clay -Original Message- From: Timo Rantalaiho [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 10:26 PM To: users@wicket.apache.org Subject: Re: Dynamic DataTable columns On Mon, 28 Jan 2008, UPBrandon wrote: Although, in the mean time, I still have the same problem - not being able to change change the columns after the DataTable has been declared, at render time. Any suggestions? Roll your own using DataView. You can take ideas from DataTable but I doubt that the Column abstraction helps you if you want to change the columns dynamically; this is probably easier done by just changing the row Item creation. In my experience such high-level components as DataTable don't work well when you want a lot of control, then their value is more that of an example. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - 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: [discuss] Mailing list usage...
Yeah, I had a thought on that aswell... regards Nino Scott Swank wrote: If the user groups are split onto a separate thread I would like to see meeting announcements cross-posted to this list so that it's as easy as possible for new users to find the meetings. - Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [discuss] Mailing list usage...
Scott Swank wrote: If the user groups are split onto a separate thread I would like to see meeting announcements cross-posted to this list so that it's as easy as possible for new users to find the meetings. That kinds of defeats the purpose. So not splitting would be better IMHO. Erik. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Copenhagen wicket user meeting: rescheduled
what about using the announcements list? On 1/29/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Maybe the Wicket site could have a page on the Community section listing some of the user groups around the world with information about them (website, mailing lists, etc.). Mailing lists are very easy to set up. You can start a Google Group (for free) to represent your user group and folks could subscribe to that. Also, the Wicket community already has an announcements list which might be a better place for user group meeting information. -1 , for creating seperate mailing lists it could possibly in the long run break the community into countries as I've said before. -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - 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: Disable loading remote DTD
Check http://java.sun.com/javase/6/docs/api/org/xml/sax/EntityResolver.html On Tue, 2008-01-29 at 21:01 +0800, Boon Aik Chew wrote: Little bit off topic, how do I disable transformer from loading remote DTD to do validation? DOMSource domSource = new DOMSource(doc); StreamResult streamResult = new StreamResult(result); TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer serializer = transformerFactory.newTransformer(); serializer.transform(domSource, streamResult); When this executes, it will load the DTD file remotely. - 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: Article: Introducing Apache Wicket
Karthik, Thanks for the kind words. Just to put the record straight, it was one of our new developers at jWeekend, Dmitry Kandalov, that came back with the most useful parts of the feedback we gave when we reviewed your article and it's always a pleasure for us to try to help with anything that will increase awareness of how good Wicket is. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk karthikg wrote: This is really nice - covers the basics so well unlike the one that I posted :) - actually thanks to martijn, cemal, i added a little bit of context to my post. I think it makes sense to link to this article first when writing a blog post - it just clears up the basics so nicely. One nice addition to the article IMHO could be a reference of some kind to wicket behavior-s. regards, Karthik On Jan 28, 2008 1:02 PM, Nick Heudecker [EMAIL PROTECTED] wrote: It's finally up: http://www.theserverside.com/news/thread.tss?thread_id=48234 Thanks to the various reviewers that helped improve both the content and quality of the article, including Martijn, Eelco, Igor, Gerolf and Talios. -- Nick Heudecker Professional Wicket Training Consulting http://www.systemmobile.com Eventful - Intelligent Event Management http://www.eventfulhq.com -- -- karthik -- -- View this message in context: http://www.nabble.com/Article%3A-Introducing-Apache-Wicket-tp15142773p15159499.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: [discuss] Mailing list usage...
On 1/29/08, James Carman [EMAIL PROTECTED] wrote: Any conversation that becomes personal in nature (well wishes for other people's loved ones for example) should be taken off-line, since it's just not relevant to the rest of us. I agree in partial with this sentiment, however... Remember, these mailing lists are used by thousands of people all over the world and they're here for a specific reason, to learn about Wicket (or to help others). Remember that we are all humans, and that the social interactions between people is what makes a community thrive, as long as it is respectful and open. The occasional personal wish, note or other social interaction that happens on the list makes us remember that we are human, and a community. I think in this case the sharing was not off limits, and I hate to see our list go down a route where we take out any and all personal interactions and have to limit ourselves to the java problem du jour. What we do need to be careful of is that it transcends into mostly personal chitchat. However I don't see that happening anytime soon. The number of w00t ftw and other messages is pretty low, as are the number of personal life sharing. Yes these messages are better suited to personal blogs or private messages, however I am not willing to start a police hunt or moderation effort to remove any and all personal sharing on these lists. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
Re: [discuss] Mailing list usage...
On 1/29/08, James Carman [EMAIL PROTECTED] wrote: There has been some concern over the proper usage of the Wicket mailing lists. Not really, just you :-) Here's what I propose: users - used for folks to ask/answer questions concerning the wicket framework announcements - used for announcing releases, upcoming user group meetings, etc. developers - used for the actual developers/contributors to discuss development issues This is already the case. There just isn't a category for user group meetings. Perhaps the Wicket PMC could decided to set up a specialized groups mailing list? The messages on that list could be prefixed with the specific group's name (such as [copenhagen]) so that email filters could be set up. I think a community@ list is preferable for ongoing community issues. But this will not eliminate the (need for) use of user@ for user group efforts, as the new community list will not be as populated as the user@ list. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
Re: Ajax Busy Indicator
Take a look at IndicatingAjaxButton in the extensions-project and adapt it for your form. If you don't mind taking the default indicator, you can use WicketAjaxIndicatorAppender just like in the mentioned class Martin Makundi wrote: Hi! Can anyone help? I am having difficulties showing a bysy indicator besides the submit button, while the form is being submitted and processed. I have only found pieces of varying examples and I have tried to put them work together, but it just does not seem want to show the indicator. Here is my code: public class Login extends WebPage { // ... default constructor contents: final Form loginForm = new Form(LOGIN_FORM, new Model()); final AjaxIndicatorContainer indicatorContainer = new AjaxIndicatorContainer(); indicatorContainer.setOutputMarkupId(true); loginForm.add(indicatorContainer); final SubmitLink loginButton = new SubmitLink(LOGIN_BUTTON, new Model()) { /** * @see org.apache.wicket.markup.html.form.SubmitLink#onSubmit() */ @Override public void onSubmit() { super.onSubmit(); Thread.sleep(5000); // Simulate form processing } }; abstract class AjaxFormSubmitIndicator extends AjaxFormSubmitBehavior implements IAjaxIndicatorAware { /** * Constructor for TODO * */ public AjaxFormSubmitIndicator() { super(onchange); // I have tried onchange and onclick } } loginButton.add(new AjaxFormSubmitIndicator() { @Override protected void onError(AjaxRequestTarget arg0) { // TODO Auto-generated method stub } @Override protected void onSubmit(AjaxRequestTarget arg0) { loginButton.onSubmit(); } public String getAjaxIndicatorMarkupId() { return indicatorContainer.getMarkupId(); } }); loginForm.add(loginButton); // ... etc.. add(new FeedbackPanel(feedback)); add(loginForm); } public class AjaxIndicatorContainer extends WebMarkupContainer { /** * */ private static final long serialVersionUID = 5573778050703849297L; /** * */ public static final String INDICATOR_MARKUP_ID = ajaxIndicator; /** * Constructor for TODO */ public AjaxIndicatorContainer() { super(INDICATOR_MARKUP_ID); } /** * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag) */ @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(src,urlFor(AbstractDefaultAjaxBehavior.INDICATOR)); } body wicket:extend h1Login/h1 Feedback messages will be here. form wicket:id=loginForm table border=0 cellspacing=0 cellpadding=2 align=center trtd NOWRAP width=80 align=right Username: /td tdinput type=text wicket:id=userId/td/tr trtd NOWRAP align=right Password: /tdtdinput type=password wicket:id=password/td/tr trtd align=right # /tdtd NOWRAP input type=submit value=Sign in wicket:id=loginButton /td/tr /table /form /wicket:extend /body ** Martin - 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/Ajax-Busy-Indicator-tp15153150p15160382.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: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap
that's right, i am screwed anyway if request takes too long, but from the browser user decide to give up current search by click the stop button and fire a new search. Since the pagemap is still locked by previous request, the second request will have to wait. sounds like i will end up handle this senario by pulling. is it possible to have a page that's not single thread model? Can we have two interface, such as SingleThreadPage, and ConcurrentThreadPage? igor.vaynberg wrote: yeah, if it takes a while the browser will timeout and you are screwed anyways... what do you mean they cant start a new search? you mean they no longer for the results of the currently running search and just press the search button again? if they would open a new tab with the search page, and you had automultiwindowsupport option enabled that new opened page would be created in a new pagemap, and so you wouldnt have a locking problem... -igor On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED] wrote: shared resources are not synced thats one way of going round it. the other way is as igor describes. do the search in a seperate thread. If it really takes that long then you do know that browsers also can just time out after they don't get anything for a while? If it really takes that long then you should build a page where people can fire searches to the system and the page is just displayig the searches they did and then if the search is finished that page can bring them to the result johan On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote: that's nice to have but is there a way to work around this issue? Our application for customer service and they perform a lot search on a huge database, in some cases, customer service would like to start new search. Since wicket is locked by page path, there is no way for CSR to start a new request until previous one is finished. igor.vaynberg wrote: the pages are locked on the pagemap. so you cannot have two concurrent requests from the same user to the same pagemap. this is so when you are coding your pages you can use the much simpler single-threaded model. every have fields in your servlet implementation? those have to be synchronized or you will run into threading issues. this is the stuff we make sure you dont have to worry about. the trade off is that if you have long running requests you should probably process them in a different thread and let the UI poll for status. -igor On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote: So I developed my first wicket application and I kept getting exception below as soon as i point my application to production database. Can someone tell me why wicket can't handle concurrent request? to replicate this issue, i have a page with a form component and regular submit button. on the onSubmit method, protected void onSubmit() { try { Thread.sleep(3 * 60 * 1000); } catch (InterruptedException e) { } } i put the thread into sleep for 3 minutes. I hit submit, then stop the request on browser and submit another request. then result to a internal error page. Why can't wicket handle mutiple submit? i dont' get it, shouldn't wicket process the new require like how servlet works? Someone please tell me how to work around this issue. Thanks in advance. 2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] - After 1 minute the Pagemap null is still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get the page for path: 5 org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get the page for path: 5 at org.apache.wicket.Session.getPage(Session.java:734) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage (AbstractRequestCycleProcessor.java:443) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve( WebRequestCycleProcessor.java:139) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245) at org.apache.wicket.RequestCycle.request(RequestCycle.java :489) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java :354) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java :121) at javax.servlet.http.HttpServlet.service(HttpServlet.java:115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) at com.caucho.server.dispatch.ServletFilterChain.doFilter( ServletFilterChain.java:106) -- View this message
Re: Dynamic DataTable columns
the only caveat is remembering to keep the current page...but that is trivial -igor On Jan 29, 2008 5:13 AM, Clay Lehman [EMAIL PROTECTED] wrote: Can't you just create a new DataTable with the new list of columns in the ajax call when you want to add/remove a column, then repaint the container holding the Table? -Clay -Original Message- From: Timo Rantalaiho [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 10:26 PM To: users@wicket.apache.org Subject: Re: Dynamic DataTable columns On Mon, 28 Jan 2008, UPBrandon wrote: Although, in the mean time, I still have the same problem - not being able to change change the columns after the DataTable has been declared, at render time. Any suggestions? Roll your own using DataView. You can take ideas from DataTable but I doubt that the Column abstraction helps you if you want to change the columns dynamically; this is probably easier done by just changing the row Item creation. In my experience such high-level components as DataTable don't work well when you want a lot of control, then their value is more that of an example. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic DataTable columns
yes, and we have created something like this at my current work place. we have the notion of column sets, but we also have our own implementation of data table. perhaps some of this will be merged into 1.4 - but not in 1.3 becuase of api breaks. -igor On Jan 29, 2008 8:08 AM, UPBrandon [EMAIL PROTECTED] wrote: Well, it's not really a matter of hiding and showing table columns for convenience. It's really more a matter of having a selection panel that allows a user to select a business object (the panel puts it in a model) and and display panel that displays details for the selected business object. The business objects - we'll say a bill in this case - could have many different variations. Each type might have a lot of common information (date/time, total amount, customer name, address, etc.) but each type of bill might have fields that others don't. Normally, taking an OO approach, I would create a base display panel and have bill-specific panels that extend that base panel, adding extra columns to the details table when the DataTable is created. However, in this case, I have a selection panel and a display panel that share a model and once they are created, that's it. Staying with the bill example, the selection panel displays bills (an assortment of types) and the display panel has to show whatever is selected. Since I originally posted this message, I got around this limitation by creating a model that replaces a generic display panel with a more specialized panel as needed. But I still believe there is a need for a DataTable that is more dynamic. Ideally, a DataTable would take a java.util.List or a model wrapping a List and rather than referencing that list directly, the DataTable would use the its own getColumns() method, making it easy to add logic as needed. cblehman wrote: Can't you just create a new DataTable with the new list of columns in the ajax call when you want to add/remove a column, then repaint the container holding the Table? -Clay -Original Message- From: Timo Rantalaiho [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 10:26 PM To: users@wicket.apache.org Subject: Re: Dynamic DataTable columns On Mon, 28 Jan 2008, UPBrandon wrote: Although, in the mean time, I still have the same problem - not being able to change change the columns after the DataTable has been declared, at render time. Any suggestions? Roll your own using DataView. You can take ideas from DataTable but I doubt that the Column abstraction helps you if you want to change the columns dynamically; this is probably easier done by just changing the row Item creation. In my experience such high-level components as DataTable don't work well when you want a lot of control, then their value is more that of an example. Best wishes, Timo -- View this message in context: http://www.nabble.com/Dynamic-DataTable-columns-tp15142596p15162689.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: [discuss] Mailing list usage...
a big +1 from me, dont know how i would deal with all this traffic without gmail... -igor On Jan 29, 2008 8:26 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: The way most (if not all) Wicket committers keep track of this list (and all other mailing lists for that matter) is to use gmail as their list reading platform. The threaded view of gmail is unsurpassed IMO. I have 0 unread Wicket messages on all lists I'm subscribed to: user, dev, commits, private, wicketstuff-user, wicketstuff-dev Martijn On 1/29/08, Curtis Cooley [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: On 1/29/08, James Carman [EMAIL PROTECTED] wrote: Remember, these mailing lists are used by thousands of people all over the world and they're here for a specific reason, to learn about Wicket (or to help others). Remember that we are all humans, and that the social interactions between people is what makes a community thrive, as long as it is respectful and open. The occasional personal wish, note or other social interaction that happens on the list makes us remember that we are human, and a community. I think in this case the sharing was not off limits, and I hate to see our list go down a route where we take out any and all personal interactions and have to limit ourselves to the java problem du jour. What we do need to be careful of is that it transcends into mostly personal chitchat. However I don't see that happening anytime soon. The number of w00t ftw and other messages is pretty low, as are the number of personal life sharing. Yes these messages are better suited to personal blogs or private messages, however I am not willing to start a police hunt or moderation effort to remove any and all personal sharing on these lists. This is a delicate problem. I rarely ever contribute since I'm still learning and I really appreciate the complete answers I get when I ask questions; however it is very difficult for me to follow this list. Perhaps to some it doesn't seem high volume, but it easily triples all the other mail I get. To me anything that perhaps improves the signal to noise ratio helps. That said, I wouldn't want it turned into what advanced-servlets turned into. That list was basically dead quiet and whenever someone did ask a question there was a 90% chance the responses would be two page diatribes on how that question was not an advanced-servlet question. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is it possible to have concurrent page?
it might be possible, but unlikely in the 1.3 branch. it is an interesting idea however, mind adding it to the wishlist for 1.4 wiki page? the issues is not as simple as it first seems. there is serialization/versioning issues to consider, etc. -igor On Jan 29, 2008 8:26 AM, cemeterygate [EMAIL PROTECTED] wrote: (first, sorry for start a new thread. The original thread was mixed-up with different top discussion) that's right, i am screwed anyway if request takes too long, but from the browser user decides to give up current search by click the stop button and fire a new search. Since the pagemap is still locked by previous request, the second request will have to wait. sounds like i will end up handle this senario by pulling. is it possible to have a page that's not single thread model? Can we have two interfaces, such as SingleThreadPage, and ConcurrentThreadPage? igor.vaynberg wrote: yeah, if it takes a while the browser will timeout and you are screwed anyways... what do you mean they cant start a new search? you mean they no longer for the results of the currently running search and just press the search button again? if they would open a new tab with the search page, and you had automultiwindowsupport option enabled that new opened page would be created in a new pagemap, and so you wouldnt have a locking problem... -igor On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED] wrote: shared resources are not synced thats one way of going round it. the other way is as igor describes. do the search in a seperate thread. If it really takes that long then you do know that browsers also can just time out after they don't get anything for a while? If it really takes that long then you should build a page where people can fire searches to the system and the page is just displayig the searches they did and then if the search is finished that page can bring them to the result johan On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote: that's nice to have but is there a way to work around this issue? Our application for customer service and they perform a lot search on a huge database, in some cases, customer service would like to start new search. Since wicket is locked by page path, there is no way for CSR to start a new request until previous one is finished. igor.vaynberg wrote: the pages are locked on the pagemap. so you cannot have two concurrent requests from the same user to the same pagemap. this is so when you are coding your pages you can use the much simpler single-threaded model. every have fields in your servlet implementation? those have to be synchronized or you will run into threading issues. this is the stuff we make sure you dont have to worry about. the trade off is that if you have long running requests you should probably process them in a different thread and let the UI poll for status. -igor On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote: So I developed my first wicket application and I kept getting exception below as soon as i point my application to production database. Can someone tell me why wicket can't handle concurrent request? to replicate this issue, i have a page with a form component and regular submit button. on the onSubmit method, protected void onSubmit() { try { Thread.sleep(3 * 60 * 1000); } catch (InterruptedException e) { } } i put the thread into sleep for 3 minutes. I hit submit, then stop the request on browser and submit another request. then result to a internal error page. Why can't wicket handle mutiple submit? i dont' get it, shouldn't wicket process the new require like how servlet works? Someone please tell me how to work around this issue. Thanks in advance. 2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] - After 1 minute the Pagemap null is still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get the page for path: 5 org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get the page for path: 5 at org.apache.wicket.Session.getPage(Session.java:734) at
Passing list of POJOs to AutoCompleteTextField?
I have a working test page containing an AutoCompleteTextField. Thus far the data feeding it has been an Iterator of strings which is being passed to its overridden getChoices method. So far so good. What I need to do now is to pass in an Iterator of POJOs instead and have the AutoCompleteTextField render the 'name' field inside each of those beans. After some digging in the Wicket source I suspect that I need to create a custom renderer that does this - am I on the right track here or would you guys suggest a different approach? Another challenge will be to populate other form fields in the page after selecting an option from the AutoCompleteTextField. By selecting an option in the dropdown I am basically selecting an entire POJO, which is supposed to be used as the model for the other remaining fields. For instance, the POJO will contain address, zip, phone, etc. fields and by selecting the appropriate name in the AutoCompleteTextField it populates all other fields with the remaining data in the underlying POJO. Hope this makes sense - I think I have an idea of how to implement this, but would appreciate any tips/insights. Thanks!! Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax Busy Indicator
Hi! I can get the default behaviour to work. However, I do not want the ajax indicator icon to be appended after the button. Instead, I want to simply mark it elsewhere in my html file to position it suitably. I have not found a way to separate the button from the icon in the markup. I am new to Wicket, so I haven't got my mind wrapped around this the right way yet. To put it in swing, I would set the icon visible on default render. Then I would set it visible for the duration of the processing and set it invisible again after that. At least this is what it should look like, but I cannot seem to get the pieces together nicely. Anybody can help? Anyone have boilerplate code for the same problem? ** Martin 2008/1/29, Michael Sparer [EMAIL PROTECTED]: Take a look at IndicatingAjaxButton in the extensions-project and adapt it for your form. If you don't mind taking the default indicator, you can use WicketAjaxIndicatorAppender just like in the mentioned class Martin Makundi wrote: Hi! Can anyone help? I am having difficulties showing a bysy indicator besides the submit button, while the form is being submitted and processed. I have only found pieces of varying examples and I have tried to put them work together, but it just does not seem want to show the indicator. Here is my code: public class Login extends WebPage { // ... default constructor contents: final Form loginForm = new Form(LOGIN_FORM, new Model()); final AjaxIndicatorContainer indicatorContainer = new AjaxIndicatorContainer(); indicatorContainer.setOutputMarkupId(true); loginForm.add(indicatorContainer); final SubmitLink loginButton = new SubmitLink(LOGIN_BUTTON, new Model()) { /** * @see org.apache.wicket.markup.html.form.SubmitLink#onSubmit() */ @Override public void onSubmit() { super.onSubmit(); Thread.sleep(5000); // Simulate form processing } }; abstract class AjaxFormSubmitIndicator extends AjaxFormSubmitBehavior implements IAjaxIndicatorAware { /** * Constructor for TODO * */ public AjaxFormSubmitIndicator() { super(onchange); // I have tried onchange and onclick } } loginButton.add(new AjaxFormSubmitIndicator() { @Override protected void onError(AjaxRequestTarget arg0) { // TODO Auto-generated method stub } @Override protected void onSubmit(AjaxRequestTarget arg0) { loginButton.onSubmit(); } public String getAjaxIndicatorMarkupId() { return indicatorContainer.getMarkupId(); } }); loginForm.add(loginButton); // ... etc.. add(new FeedbackPanel(feedback)); add(loginForm); } public class AjaxIndicatorContainer extends WebMarkupContainer { /** * */ private static final long serialVersionUID = 5573778050703849297L; /** * */ public static final String INDICATOR_MARKUP_ID = ajaxIndicator; /** * Constructor for TODO */ public AjaxIndicatorContainer() { super(INDICATOR_MARKUP_ID); } /** * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag) */ @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(src,urlFor(AbstractDefaultAjaxBehavior.INDICATOR)); } body wicket:extend h1Login/h1 Feedback messages will be here. form wicket:id=loginForm table border=0 cellspacing=0 cellpadding=2 align=center trtd NOWRAP width=80 align=right Username: /td tdinput type=text wicket:id=userId/td/tr trtd NOWRAP align=right Password: /tdtdinput type=password wicket:id=password/td/tr trtd align=right # /tdtd NOWRAP input type=submit value=Sign in wicket:id=loginButton /td/tr /table /form /wicket:extend /body ** Martin - 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/Ajax-Busy-Indicator-tp15153150p15160382.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: [discuss] Mailing list usage...
Where do I sign up for wicketstuff-user and wicketstuff-dev? Is this mentioned on the wicketstuff wiki? -regards Nino Martijn Dashorst wrote: The way most (if not all) Wicket committers keep track of this list (and all other mailing lists for that matter) is to use gmail as their list reading platform. The threaded view of gmail is unsurpassed IMO. I have 0 unread Wicket messages on all lists I'm subscribed to: user, dev, commits, private, wicketstuff-user, wicketstuff-dev Martijn On 1/29/08, Curtis Cooley [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: On 1/29/08, James Carman [EMAIL PROTECTED] wrote: Remember, these mailing lists are used by thousands of people all over the world and they're here for a specific reason, to learn about Wicket (or to help others). Remember that we are all humans, and that the social interactions between people is what makes a community thrive, as long as it is respectful and open. The occasional personal wish, note or other social interaction that happens on the list makes us remember that we are human, and a community. I think in this case the sharing was not off limits, and I hate to see our list go down a route where we take out any and all personal interactions and have to limit ourselves to the java problem du jour. What we do need to be careful of is that it transcends into mostly personal chitchat. However I don't see that happening anytime soon. The number of w00t ftw and other messages is pretty low, as are the number of personal life sharing. Yes these messages are better suited to personal blogs or private messages, however I am not willing to start a police hunt or moderation effort to remove any and all personal sharing on these lists. This is a delicate problem. I rarely ever contribute since I'm still learning and I really appreciate the complete answers I get when I ask questions; however it is very difficult for me to follow this list. Perhaps to some it doesn't seem high volume, but it easily triples all the other mail I get. To me anything that perhaps improves the signal to noise ratio helps. That said, I wouldn't want it turned into what advanced-servlets turned into. That list was basically dead quiet and whenever someone did ask a question there was a 90% chance the responses would be two page diatribes on how that question was not an advanced-servlet question. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [discuss] Mailing list usage...
Strike that. Robby O'Connor wrote: Isn't it just a SF mailing list? I'd say via the sf project page? Nino Saturnino Martinez Vazquez Wael wrote: Where do I sign up for wicketstuff-user and wicketstuff-dev? Is this mentioned on the wicketstuff wiki? -regards Nino Martijn Dashorst wrote: The way most (if not all) Wicket committers keep track of this list (and all other mailing lists for that matter) is to use gmail as their list reading platform. The threaded view of gmail is unsurpassed IMO. I have 0 unread Wicket messages on all lists I'm subscribed to: user, dev, commits, private, wicketstuff-user, wicketstuff-dev Martijn On 1/29/08, Curtis Cooley [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: On 1/29/08, James Carman [EMAIL PROTECTED] wrote: Remember, these mailing lists are used by thousands of people all over the world and they're here for a specific reason, to learn about Wicket (or to help others). Remember that we are all humans, and that the social interactions between people is what makes a community thrive, as long as it is respectful and open. The occasional personal wish, note or other social interaction that happens on the list makes us remember that we are human, and a community. I think in this case the sharing was not off limits, and I hate to see our list go down a route where we take out any and all personal interactions and have to limit ourselves to the java problem du jour. What we do need to be careful of is that it transcends into mostly personal chitchat. However I don't see that happening anytime soon. The number of w00t ftw and other messages is pretty low, as are the number of personal life sharing. Yes these messages are better suited to personal blogs or private messages, however I am not willing to start a police hunt or moderation effort to remove any and all personal sharing on these lists. This is a delicate problem. I rarely ever contribute since I'm still learning and I really appreciate the complete answers I get when I ask questions; however it is very difficult for me to follow this list. Perhaps to some it doesn't seem high volume, but it easily triples all the other mail I get. To me anything that perhaps improves the signal to noise ratio helps. That said, I wouldn't want it turned into what advanced-servlets turned into. That list was basically dead quiet and whenever someone did ask a question there was a 90% chance the responses would be two page diatribes on how that question was not an advanced-servlet question. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [discuss] Mailing list usage...
Isn't it just a SF mailing list? I'd say via the sf project page? Nino Saturnino Martinez Vazquez Wael wrote: Where do I sign up for wicketstuff-user and wicketstuff-dev? Is this mentioned on the wicketstuff wiki? -regards Nino Martijn Dashorst wrote: The way most (if not all) Wicket committers keep track of this list (and all other mailing lists for that matter) is to use gmail as their list reading platform. The threaded view of gmail is unsurpassed IMO. I have 0 unread Wicket messages on all lists I'm subscribed to: user, dev, commits, private, wicketstuff-user, wicketstuff-dev Martijn On 1/29/08, Curtis Cooley [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: On 1/29/08, James Carman [EMAIL PROTECTED] wrote: Remember, these mailing lists are used by thousands of people all over the world and they're here for a specific reason, to learn about Wicket (or to help others). Remember that we are all humans, and that the social interactions between people is what makes a community thrive, as long as it is respectful and open. The occasional personal wish, note or other social interaction that happens on the list makes us remember that we are human, and a community. I think in this case the sharing was not off limits, and I hate to see our list go down a route where we take out any and all personal interactions and have to limit ourselves to the java problem du jour. What we do need to be careful of is that it transcends into mostly personal chitchat. However I don't see that happening anytime soon. The number of w00t ftw and other messages is pretty low, as are the number of personal life sharing. Yes these messages are better suited to personal blogs or private messages, however I am not willing to start a police hunt or moderation effort to remove any and all personal sharing on these lists. This is a delicate problem. I rarely ever contribute since I'm still learning and I really appreciate the complete answers I get when I ask questions; however it is very difficult for me to follow this list. Perhaps to some it doesn't seem high volume, but it easily triples all the other mail I get. To me anything that perhaps improves the signal to noise ratio helps. That said, I wouldn't want it turned into what advanced-servlets turned into. That list was basically dead quiet and whenever someone did ask a question there was a 90% chance the responses would be two page diatribes on how that question was not an advanced-servlet question. - 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: is it possible to have concurrent page?
we posted at the same time, lol. Thanks, i am looking at it now. igor.vaynberg wrote: see AjaxSelfUpdatingTimerBehavior, it also has a stop() method... -igor On Jan 29, 2008 11:16 AM, cemeterygate [EMAIL PROTECTED] wrote: so it's not possible for 1.3 branch. That's fine. I am on java 1.4. I am using back-ported concurrent package to handle mutiple search request. Everything is going well and i can cancel the previous request if there is new search request. Now, I am trying to figure out how to fresh search panel every few seconds after submit button is clicked, then stop if there is result ready to be displayed. Can you give me some pointer on this? much appreciated!! igor.vaynberg wrote: it might be possible, but unlikely in the 1.3 branch. it is an interesting idea however, mind adding it to the wishlist for 1.4 wiki page? the issues is not as simple as it first seems. there is serialization/versioning issues to consider, etc. -igor On Jan 29, 2008 8:26 AM, cemeterygate [EMAIL PROTECTED] wrote: (first, sorry for start a new thread. The original thread was mixed-up with different top discussion) that's right, i am screwed anyway if request takes too long, but from the browser user decides to give up current search by click the stop button and fire a new search. Since the pagemap is still locked by previous request, the second request will have to wait. sounds like i will end up handle this senario by pulling. is it possible to have a page that's not single thread model? Can we have two interfaces, such as SingleThreadPage, and ConcurrentThreadPage? igor.vaynberg wrote: yeah, if it takes a while the browser will timeout and you are screwed anyways... what do you mean they cant start a new search? you mean they no longer for the results of the currently running search and just press the search button again? if they would open a new tab with the search page, and you had automultiwindowsupport option enabled that new opened page would be created in a new pagemap, and so you wouldnt have a locking problem... -igor On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED] wrote: shared resources are not synced thats one way of going round it. the other way is as igor describes. do the search in a seperate thread. If it really takes that long then you do know that browsers also can just time out after they don't get anything for a while? If it really takes that long then you should build a page where people can fire searches to the system and the page is just displayig the searches they did and then if the search is finished that page can bring them to the result johan On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote: that's nice to have but is there a way to work around this issue? Our application for customer service and they perform a lot search on a huge database, in some cases, customer service would like to start new search. Since wicket is locked by page path, there is no way for CSR to start a new request until previous one is finished. igor.vaynberg wrote: the pages are locked on the pagemap. so you cannot have two concurrent requests from the same user to the same pagemap. this is so when you are coding your pages you can use the much simpler single-threaded model. every have fields in your servlet implementation? those have to be synchronized or you will run into threading issues. this is the stuff we make sure you dont have to worry about. the trade off is that if you have long running requests you should probably process them in a different thread and let the UI poll for status. -igor On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote: So I developed my first wicket application and I kept getting exception below as soon as i point my application to production database. Can someone tell me why wicket can't handle concurrent request? to replicate this issue, i have a page with a form component and regular submit button. on the onSubmit method, protected void onSubmit() { try { Thread.sleep(3 * 60 * 1000); } catch (InterruptedException e) { } } i put the thread into sleep for 3 minutes. I hit submit, then stop the request on browser and submit another
Re: is it possible to have concurrent page?
see AjaxSelfUpdatingTimerBehavior, it also has a stop() method... -igor On Jan 29, 2008 11:16 AM, cemeterygate [EMAIL PROTECTED] wrote: so it's not possible for 1.3 branch. That's fine. I am on java 1.4. I am using back-ported concurrent package to handle mutiple search request. Everything is going well and i can cancel the previous request if there is new search request. Now, I am trying to figure out how to fresh search panel every few seconds after submit button is clicked, then stop if there is result ready to be displayed. Can you give me some pointer on this? much appreciated!! igor.vaynberg wrote: it might be possible, but unlikely in the 1.3 branch. it is an interesting idea however, mind adding it to the wishlist for 1.4 wiki page? the issues is not as simple as it first seems. there is serialization/versioning issues to consider, etc. -igor On Jan 29, 2008 8:26 AM, cemeterygate [EMAIL PROTECTED] wrote: (first, sorry for start a new thread. The original thread was mixed-up with different top discussion) that's right, i am screwed anyway if request takes too long, but from the browser user decides to give up current search by click the stop button and fire a new search. Since the pagemap is still locked by previous request, the second request will have to wait. sounds like i will end up handle this senario by pulling. is it possible to have a page that's not single thread model? Can we have two interfaces, such as SingleThreadPage, and ConcurrentThreadPage? igor.vaynberg wrote: yeah, if it takes a while the browser will timeout and you are screwed anyways... what do you mean they cant start a new search? you mean they no longer for the results of the currently running search and just press the search button again? if they would open a new tab with the search page, and you had automultiwindowsupport option enabled that new opened page would be created in a new pagemap, and so you wouldnt have a locking problem... -igor On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED] wrote: shared resources are not synced thats one way of going round it. the other way is as igor describes. do the search in a seperate thread. If it really takes that long then you do know that browsers also can just time out after they don't get anything for a while? If it really takes that long then you should build a page where people can fire searches to the system and the page is just displayig the searches they did and then if the search is finished that page can bring them to the result johan On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote: that's nice to have but is there a way to work around this issue? Our application for customer service and they perform a lot search on a huge database, in some cases, customer service would like to start new search. Since wicket is locked by page path, there is no way for CSR to start a new request until previous one is finished. igor.vaynberg wrote: the pages are locked on the pagemap. so you cannot have two concurrent requests from the same user to the same pagemap. this is so when you are coding your pages you can use the much simpler single-threaded model. every have fields in your servlet implementation? those have to be synchronized or you will run into threading issues. this is the stuff we make sure you dont have to worry about. the trade off is that if you have long running requests you should probably process them in a different thread and let the UI poll for status. -igor On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote: So I developed my first wicket application and I kept getting exception below as soon as i point my application to production database. Can someone tell me why wicket can't handle concurrent request? to replicate this issue, i have a page with a form component and regular submit button. on the onSubmit method, protected void onSubmit() { try { Thread.sleep(3 * 60 * 1000); } catch (InterruptedException e) { } } i put the thread into sleep for 3 minutes. I hit submit, then stop the request on browser and submit another request. then result to a internal error page. Why can't wicket handle mutiple submit? i dont'
Re: Ajax Busy Indicator
IAjaxIndicatorAware simply takes the html id of the element you want to show/hide; it can be placed anywhere in html... alternatively there are clientside javascript callbacks you can hook into to create gmail-like busy indicator, see wicket-ajax.js -igor On Jan 29, 2008 11:11 AM, Martin Makundi [EMAIL PROTECTED] wrote: Hi! I can get the default behaviour to work. However, I do not want the ajax indicator icon to be appended after the button. Instead, I want to simply mark it elsewhere in my html file to position it suitably. I have not found a way to separate the button from the icon in the markup. I am new to Wicket, so I haven't got my mind wrapped around this the right way yet. To put it in swing, I would set the icon visible on default render. Then I would set it visible for the duration of the processing and set it invisible again after that. At least this is what it should look like, but I cannot seem to get the pieces together nicely. Anybody can help? Anyone have boilerplate code for the same problem? ** Martin 2008/1/29, Michael Sparer [EMAIL PROTECTED]: Take a look at IndicatingAjaxButton in the extensions-project and adapt it for your form. If you don't mind taking the default indicator, you can use WicketAjaxIndicatorAppender just like in the mentioned class Martin Makundi wrote: Hi! Can anyone help? I am having difficulties showing a bysy indicator besides the submit button, while the form is being submitted and processed. I have only found pieces of varying examples and I have tried to put them work together, but it just does not seem want to show the indicator. Here is my code: public class Login extends WebPage { // ... default constructor contents: final Form loginForm = new Form(LOGIN_FORM, new Model()); final AjaxIndicatorContainer indicatorContainer = new AjaxIndicatorContainer(); indicatorContainer.setOutputMarkupId(true); loginForm.add(indicatorContainer); final SubmitLink loginButton = new SubmitLink(LOGIN_BUTTON, new Model()) { /** * @see org.apache.wicket.markup.html.form.SubmitLink#onSubmit() */ @Override public void onSubmit() { super.onSubmit(); Thread.sleep(5000); // Simulate form processing } }; abstract class AjaxFormSubmitIndicator extends AjaxFormSubmitBehavior implements IAjaxIndicatorAware { /** * Constructor for TODO * */ public AjaxFormSubmitIndicator() { super(onchange); // I have tried onchange and onclick } } loginButton.add(new AjaxFormSubmitIndicator() { @Override protected void onError(AjaxRequestTarget arg0) { // TODO Auto-generated method stub } @Override protected void onSubmit(AjaxRequestTarget arg0) { loginButton.onSubmit(); } public String getAjaxIndicatorMarkupId() { return indicatorContainer.getMarkupId(); } }); loginForm.add(loginButton); // ... etc.. add(new FeedbackPanel(feedback)); add(loginForm); } public class AjaxIndicatorContainer extends WebMarkupContainer { /** * */ private static final long serialVersionUID = 5573778050703849297L; /** * */ public static final String INDICATOR_MARKUP_ID = ajaxIndicator; /** * Constructor for TODO */ public AjaxIndicatorContainer() { super(INDICATOR_MARKUP_ID); } /** * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag) */ @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(src,urlFor(AbstractDefaultAjaxBehavior.INDICATOR)); } body wicket:extend h1Login/h1 Feedback messages will be here. form wicket:id=loginForm table border=0 cellspacing=0 cellpadding=2 align=center trtd NOWRAP width=80 align=right Username: /td tdinput type=text wicket:id=userId/td/tr trtd NOWRAP align=right Password: /tdtdinput type=password wicket:id=password/td/tr trtd align=right # /tdtd NOWRAP input type=submit value=Sign in wicket:id=loginButton /td/tr /table /form /wicket:extend /body ** Martin - 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/Ajax-Busy-Indicator-tp15153150p15160382.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: Passing list of POJOs to AutoCompleteTextField?
can you not create an iterator adapter that takes an iterator of pojos and translates the pojo to some string? -igor On Jan 29, 2008 11:14 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a working test page containing an AutoCompleteTextField. Thus far the data feeding it has been an Iterator of strings which is being passed to its overridden getChoices method. So far so good. What I need to do now is to pass in an Iterator of POJOs instead and have the AutoCompleteTextField render the 'name' field inside each of those beans. After some digging in the Wicket source I suspect that I need to create a custom renderer that does this - am I on the right track here or would you guys suggest a different approach? Another challenge will be to populate other form fields in the page after selecting an option from the AutoCompleteTextField. By selecting an option in the dropdown I am basically selecting an entire POJO, which is supposed to be used as the model for the other remaining fields. For instance, the POJO will contain address, zip, phone, etc. fields and by selecting the appropriate name in the AutoCompleteTextField it populates all other fields with the remaining data in the underlying POJO. Hope this makes sense - I think I have an idea of how to implement this, but would appreciate any tips/insights. Thanks!! Michael - 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: is it possible to have concurrent page?
so it's not possible for 1.3 branch. That's fine. I am on java 1.4. I am using back-ported concurrent package to handle mutiple search request. Everything is going well and i can cancel the previous request if there is new search request. Now, I am trying to figure out how to fresh search panel every few seconds after submit button is clicked, then stop if there is result ready to be displayed. Can you give me some pointer on this? much appreciated!! igor.vaynberg wrote: it might be possible, but unlikely in the 1.3 branch. it is an interesting idea however, mind adding it to the wishlist for 1.4 wiki page? the issues is not as simple as it first seems. there is serialization/versioning issues to consider, etc. -igor On Jan 29, 2008 8:26 AM, cemeterygate [EMAIL PROTECTED] wrote: (first, sorry for start a new thread. The original thread was mixed-up with different top discussion) that's right, i am screwed anyway if request takes too long, but from the browser user decides to give up current search by click the stop button and fire a new search. Since the pagemap is still locked by previous request, the second request will have to wait. sounds like i will end up handle this senario by pulling. is it possible to have a page that's not single thread model? Can we have two interfaces, such as SingleThreadPage, and ConcurrentThreadPage? igor.vaynberg wrote: yeah, if it takes a while the browser will timeout and you are screwed anyways... what do you mean they cant start a new search? you mean they no longer for the results of the currently running search and just press the search button again? if they would open a new tab with the search page, and you had automultiwindowsupport option enabled that new opened page would be created in a new pagemap, and so you wouldnt have a locking problem... -igor On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED] wrote: shared resources are not synced thats one way of going round it. the other way is as igor describes. do the search in a seperate thread. If it really takes that long then you do know that browsers also can just time out after they don't get anything for a while? If it really takes that long then you should build a page where people can fire searches to the system and the page is just displayig the searches they did and then if the search is finished that page can bring them to the result johan On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote: that's nice to have but is there a way to work around this issue? Our application for customer service and they perform a lot search on a huge database, in some cases, customer service would like to start new search. Since wicket is locked by page path, there is no way for CSR to start a new request until previous one is finished. igor.vaynberg wrote: the pages are locked on the pagemap. so you cannot have two concurrent requests from the same user to the same pagemap. this is so when you are coding your pages you can use the much simpler single-threaded model. every have fields in your servlet implementation? those have to be synchronized or you will run into threading issues. this is the stuff we make sure you dont have to worry about. the trade off is that if you have long running requests you should probably process them in a different thread and let the UI poll for status. -igor On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote: So I developed my first wicket application and I kept getting exception below as soon as i point my application to production database. Can someone tell me why wicket can't handle concurrent request? to replicate this issue, i have a page with a form component and regular submit button. on the onSubmit method, protected void onSubmit() { try { Thread.sleep(3 * 60 * 1000); } catch (InterruptedException e) { } } i put the thread into sleep for 3 minutes. I hit submit, then stop the request on browser and submit another request. then result to a internal error page. Why can't wicket handle mutiple submit? i dont' get it, shouldn't wicket process the new require like how servlet works? Someone please tell me how to work around this issue. Thanks in advance. 2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] - After 1
Testing ModalWindows with Selenium
Hi all, I'm trying testing an application using modal windows with selenium but it seems I can't find a good way. Has someone ever done something like that? Basically, my problem is that I can access the ModalWindow using: selenium.selectWindow(modal-dialog-pagemap); but I can't verify if the window has been fully loaded or not, I've tried with: selenium.waitForPopUp(modal-dialog-pagemap, 3); but it fails all the time with exception message Window not found. Thanks in advance, -Roberto -- View this message in context: http://www.nabble.com/Testing-ModalWindows-with-Selenium-tp15166572p15166572.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: Ajax Busy Indicator
You can use CSS to control the positon of the busy indicating image. To place it right from the button use span.wicket-ajax-indicator img { margin:0; padding:0; padding-left: 2px; display: inline; white-space: nowrap; } Use other css code for other positioning. Stefan -Ursprüngliche Nachricht- Von: Martin Makundi [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 29. Januar 2008 20:12 An: users@wicket.apache.org Betreff: Re: Ajax Busy Indicator Hi! I can get the default behaviour to work. However, I do not want the ajax indicator icon to be appended after the button. Instead, I want to simply mark it elsewhere in my html file to position it suitably. I have not found a way to separate the button from the icon in the markup. I am new to Wicket, so I haven't got my mind wrapped around this the right way yet. To put it in swing, I would set the icon visible on default render. Then I would set it visible for the duration of the processing and set it invisible again after that. At least this is what it should look like, but I cannot seem to get the pieces together nicely. Anybody can help? Anyone have boilerplate code for the same problem? ** Martin 2008/1/29, Michael Sparer [EMAIL PROTECTED]: Take a look at IndicatingAjaxButton in the extensions-project and adapt it for your form. If you don't mind taking the default indicator, you can use WicketAjaxIndicatorAppender just like in the mentioned class Martin Makundi wrote: Hi! Can anyone help? I am having difficulties showing a bysy indicator besides the submit button, while the form is being submitted and processed. I have only found pieces of varying examples and I have tried to put them work together, but it just does not seem want to show the indicator. Here is my code: public class Login extends WebPage { // ... default constructor contents: final Form loginForm = new Form(LOGIN_FORM, new Model()); final AjaxIndicatorContainer indicatorContainer = new AjaxIndicatorContainer(); indicatorContainer.setOutputMarkupId(true); loginForm.add(indicatorContainer); final SubmitLink loginButton = new SubmitLink(LOGIN_BUTTON, new Model()) { /** * @see org.apache.wicket.markup.html.form.SubmitLink#onSubmit() */ @Override public void onSubmit() { super.onSubmit(); Thread.sleep(5000); // Simulate form processing } }; abstract class AjaxFormSubmitIndicator extends AjaxFormSubmitBehavior implements IAjaxIndicatorAware { /** * Constructor for TODO * */ public AjaxFormSubmitIndicator() { super(onchange); // I have tried onchange and onclick } } loginButton.add(new AjaxFormSubmitIndicator() { @Override protected void onError(AjaxRequestTarget arg0) { // TODO Auto-generated method stub } @Override protected void onSubmit(AjaxRequestTarget arg0) { loginButton.onSubmit(); } public String getAjaxIndicatorMarkupId() { return indicatorContainer.getMarkupId(); } }); loginForm.add(loginButton); // ... etc.. add(new FeedbackPanel(feedback)); add(loginForm); } public class AjaxIndicatorContainer extends WebMarkupContainer { /** * */ private static final long serialVersionUID = 5573778050703849297L; /** * */ public static final String INDICATOR_MARKUP_ID = ajaxIndicator; /** * Constructor for TODO */ public AjaxIndicatorContainer() { super(INDICATOR_MARKUP_ID); } /** * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag) */ @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(src,urlFor(AbstractDefaultAjaxBehavior.INDICATOR)); } body wicket:extend h1Login/h1 Feedback messages will be here. form wicket:id=loginForm table border=0 cellspacing=0 cellpadding=2 align=center trtd NOWRAP width=80 align=right Username: /td tdinput type=text wicket:id=userId/td/tr trtd NOWRAP align=right Password: /tdtdinput type=password wicket:id=password/td/tr trtd align=right # /tdtd NOWRAP input type=submit value=Sign in wicket:id=loginButton /td/tr /table /form /wicket:extend /body ** Martin - 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:
RE: Passing list of POJOs to AutoCompleteTextField?
I could - if it was a simple matter of extracting the strings from the POJOs. Problem is that, once an option is selected, I need the underlying POJOs to become the model for the rest of the form. Yes, there's probably a way to hack this, but I would prefer to do this in a clean fashion. I already got the custom renderer working, so I'm making progress. Task #2 now is to grab the underlying POJO after selecting it and populate the remainder of the form. This seems to be the tough part... Again, any help would be appreciated. Thanks!! Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2008 11:47 AM To: users@wicket.apache.org Subject: Re: Passing list of POJOs to AutoCompleteTextField? can you not create an iterator adapter that takes an iterator of pojos and translates the pojo to some string? -igor On Jan 29, 2008 11:14 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a working test page containing an AutoCompleteTextField. Thus far the data feeding it has been an Iterator of strings which is being passed to its overridden getChoices method. So far so good. What I need to do now is to pass in an Iterator of POJOs instead and have the AutoCompleteTextField render the 'name' field inside each of those beans. After some digging in the Wicket source I suspect that I need to create a custom renderer that does this - am I on the right track here or would you guys suggest a different approach? Another challenge will be to populate other form fields in the page after selecting an option from the AutoCompleteTextField. By selecting an option in the dropdown I am basically selecting an entire POJO, which is supposed to be used as the model for the other remaining fields. For instance, the POJO will contain address, zip, phone, etc. fields and by selecting the appropriate name in the AutoCompleteTextField it populates all other fields with the remaining data in the underlying POJO. Hope this makes sense - I think I have an idea of how to implement this, but would appreciate any tips/insights. Thanks!! Michael - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is it possible to have concurrent page?
here is what i have done so far. Page: Form ---Submit Button SearchResultPanel Default State: the page displays Form and SearchResultPanel which is blank by default. User clicks submit button(ajax): 1)the Form.onSubmit creates a future task, and submit to exector to perform search, at the same time, response back with SearchResultPanel. 2) question is how do i make SearchResultPanel periodically refresh itself thanks in advance cemeterygate wrote: so it's not possible for 1.3 branch. That's fine. I am on java 1.4. I am using back-ported concurrent package to handle mutiple search request. Everything is going well and i can cancel the previous request if there is new search request. Now, I am trying to figure out how to fresh search panel every few seconds after submit button is clicked, then stop if there is result ready to be displayed. Can you give me some pointer on this? much appreciated!! igor.vaynberg wrote: it might be possible, but unlikely in the 1.3 branch. it is an interesting idea however, mind adding it to the wishlist for 1.4 wiki page? the issues is not as simple as it first seems. there is serialization/versioning issues to consider, etc. -igor On Jan 29, 2008 8:26 AM, cemeterygate [EMAIL PROTECTED] wrote: (first, sorry for start a new thread. The original thread was mixed-up with different top discussion) that's right, i am screwed anyway if request takes too long, but from the browser user decides to give up current search by click the stop button and fire a new search. Since the pagemap is still locked by previous request, the second request will have to wait. sounds like i will end up handle this senario by pulling. is it possible to have a page that's not single thread model? Can we have two interfaces, such as SingleThreadPage, and ConcurrentThreadPage? igor.vaynberg wrote: yeah, if it takes a while the browser will timeout and you are screwed anyways... what do you mean they cant start a new search? you mean they no longer for the results of the currently running search and just press the search button again? if they would open a new tab with the search page, and you had automultiwindowsupport option enabled that new opened page would be created in a new pagemap, and so you wouldnt have a locking problem... -igor On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED] wrote: shared resources are not synced thats one way of going round it. the other way is as igor describes. do the search in a seperate thread. If it really takes that long then you do know that browsers also can just time out after they don't get anything for a while? If it really takes that long then you should build a page where people can fire searches to the system and the page is just displayig the searches they did and then if the search is finished that page can bring them to the result johan On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote: that's nice to have but is there a way to work around this issue? Our application for customer service and they perform a lot search on a huge database, in some cases, customer service would like to start new search. Since wicket is locked by page path, there is no way for CSR to start a new request until previous one is finished. igor.vaynberg wrote: the pages are locked on the pagemap. so you cannot have two concurrent requests from the same user to the same pagemap. this is so when you are coding your pages you can use the much simpler single-threaded model. every have fields in your servlet implementation? those have to be synchronized or you will run into threading issues. this is the stuff we make sure you dont have to worry about. the trade off is that if you have long running requests you should probably process them in a different thread and let the UI poll for status. -igor On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote: So I developed my first wicket application and I kept getting exception below as soon as i point my application to production database. Can someone tell me why wicket can't handle concurrent request? to replicate this issue, i have a page with a form component and regular submit button. on the onSubmit method, protected void onSubmit() { try { Thread.sleep(3 * 60 * 1000); } catch (InterruptedException e) { } } i put the thread
HybridURLCodingStrategies vs others
Guys, I believe its just the HybridURLCodingStrategy and its subclasses (IndexHUCS) which encodes the mount point, page parameters and page instance information into the URL whereas others strategies DO have the mount-point page-param in them (encoded in a different way) BUT the page-instance info (i.e. page-id/version) is not contained in the URL. I wonder why is this page-info not required by other strategies, wouldnt it be need to locate the older pages AND IF NOT how does it work for them...cant it work in a similar way for HUCS where we dont have those numbers in the url... Thanks in advance -- View this message in context: http://www.nabble.com/HybridURLCodingStrategies-vs-others-tp15171137p15171137.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: [discuss] Mailing list usage...
ahh ok, I thought so.. but got in doubt.. Maurice Marrink wrote: wicket stuff does not have a separate mailinglist anymore, just use the wicket userlist Maurice On Jan 29, 2008 10:37 PM, Robby O'Connor [EMAIL PROTECTED] wrote: Strike that. Robby O'Connor wrote: Isn't it just a SF mailing list? I'd say via the sf project page? Nino Saturnino Martinez Vazquez Wael wrote: Where do I sign up for wicketstuff-user and wicketstuff-dev? Is this mentioned on the wicketstuff wiki? -regards Nino Martijn Dashorst wrote: The way most (if not all) Wicket committers keep track of this list (and all other mailing lists for that matter) is to use gmail as their list reading platform. The threaded view of gmail is unsurpassed IMO. I have 0 unread Wicket messages on all lists I'm subscribed to: user, dev, commits, private, wicketstuff-user, wicketstuff-dev Martijn On 1/29/08, Curtis Cooley [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: On 1/29/08, James Carman [EMAIL PROTECTED] wrote: Remember, these mailing lists are used by thousands of people all over the world and they're here for a specific reason, to learn about Wicket (or to help others). Remember that we are all humans, and that the social interactions between people is what makes a community thrive, as long as it is respectful and open. The occasional personal wish, note or other social interaction that happens on the list makes us remember that we are human, and a community. I think in this case the sharing was not off limits, and I hate to see our list go down a route where we take out any and all personal interactions and have to limit ourselves to the java problem du jour. What we do need to be careful of is that it transcends into mostly personal chitchat. However I don't see that happening anytime soon. The number of w00t ftw and other messages is pretty low, as are the number of personal life sharing. Yes these messages are better suited to personal blogs or private messages, however I am not willing to start a police hunt or moderation effort to remove any and all personal sharing on these lists. This is a delicate problem. I rarely ever contribute since I'm still learning and I really appreciate the complete answers I get when I ask questions; however it is very difficult for me to follow this list. Perhaps to some it doesn't seem high volume, but it easily triples all the other mail I get. To me anything that perhaps improves the signal to noise ratio helps. That said, I wouldn't want it turned into what advanced-servlets turned into. That list was basically dead quiet and whenever someone did ask a question there was a 90% chance the responses would be two page diatribes on how that question was not an advanced-servlet question. - 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] - 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] -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket 1.3: I would like to translate all resource bundles to Norwegian
Hi, Would it be OK for me to translate all the .properties-files in Wicket to Norwegian and have them included with the distribution? I think that would make a lot of Norwegian Wicket-users happy :) If OK, how do I submit the files to you guys? Sincerely, Edvin Syse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket 1.3: I would like to translate all resource bundles to Norwegian
~tell Edvin Syse about jiraWicketBot member:identifier:wicketbot:Edvin Syse member:dashorst, jira is http://issues.apache.org/jira/browse/WICKET And don't forget to tick the donate to ASF button. Martijn (who spends some time on ##wicket) On 1/30/08, Edvin Syse [EMAIL PROTECTED] wrote: Hi, Would it be OK for me to translate all the .properties-files in Wicket to Norwegian and have them included with the distribution? I think that would make a lot of Norwegian Wicket-users happy :) If OK, how do I submit the files to you guys? Sincerely, Edvin Syse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
Re: Wicket 1.3: I would like to translate all resource bundles to Norwegian
~tell Edvin Syse about jiraWicketBot member:identifier:wicketbot:Edvin Syse member:dashorst, jira is http://issues.apache.org/jira/browse/WICKET And don't forget to tick the donate to ASF button. Done :) https://issues.apache.org/jira/browse/WICKET-1313 -- Edvin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AJAX: form components not being updated
I've got something similar to this call: myAutoCompleteTextField.add(new AjaxFormSubmitBehavior(form, onchange) { protected void onSubmit(AjaxRequestTarget target) { String selection = myAutoCompleteTextField.getModelObjectAsString(); MyPOJO backingModel = someFunkyModelFactory(selection); myModel = new CompoundPropertyModel(backingModel); target.addComponent(firstComp); target.addComponent(secondComp); ... } For some reason my form components are not being updated to the new model. What am I doing wrong here? Any pointers would be welcome - thanks! Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HybridURLCodingStrategies vs others
Hi, the other strategies always create new page instance. The difference with hybridurlcodingstrategy is that it attempts to reuse existing page instance (when pageid in session matches the class specified by mount point). -Matej On Jan 29, 2008 11:36 PM, mfs [EMAIL PROTECTED] wrote: Guys, I believe its just the HybridURLCodingStrategy and its subclasses (IndexHUCS) which encodes the mount point, page parameters and page instance information into the URL whereas others strategies DO have the mount-point page-param in them (encoded in a different way) BUT the page-instance info (i.e. page-id/version) is not contained in the URL. I wonder why is this page-info not required by other strategies, wouldnt it be need to locate the older pages AND IF NOT how does it work for them...cant it work in a similar way for HUCS where we dont have those numbers in the url... Thanks in advance -- View this message in context: http://www.nabble.com/HybridURLCodingStrategies-vs-others-tp15171137p15171137.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] -- Resizable and reorderable grid components. http://www.inmethod.com
Re: Article: Introducing Apache Wicket
Thanks. On Jan 29, 2008 6:08 PM, Andy Czerwonka [EMAIL PROTECTED] wrote: Nick Heudecker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It's finally up: http://www.theserverside.com/news/thread.tss?thread_id=48234 Thanks to the various reviewers that helped improve both the content and quality of the article, including Martijn, Eelco, Igor, Gerolf and Talios. Nice work Nick. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedding in Jetty without web.xml
Actually, WicketFilter does try to read web.xml. See WicketFilter#init. You could file a feature request to let the framework be more lenient so that it doesn't fail when web.xml is not available. We can at least think about that. To solve your problem now, I suggest you make a copy of WicketFilter for your own purposes and rip the web.xml reading code out and get your filter path somewhere else. Eelco On Jan 29, 2008 4:21 PM, Philip Healy [EMAIL PROTECTED] wrote: Hello, I am trying to set up a Wicket application to execute in an embedded Jetty instance. The Wicket application is not deployed as a webapp (so there so web.xml), as I am trying to avoid using unnecessary directory structure and config files). The Wicket application classes are available on the classpath. I am using the following to configure the Wicket filter and start the Jetty server: // Create server and root context Server server = new Server(); Connector connector = new SocketConnector(); connector.setPort(8080); server.addConnector(connector); Context context = new Context(server, /); // Add wicket filter FilterHolder filterHolder = new FilterHolder(WicketFilter.class); filterHolder.setInitParameter(applicationClassName, TestWebApplication.class.getCanonicalName()); context.addFilter(filterHolder, /*, org.mortbay.jetty.Handler.DEFAULT); // Start server server.start(); server.join(); I added the following to the init() method of the WebApplication subclass: mount(/test, PackageName.forPackage(this.getClass().getPackage())); Although the server starts, the Wicket application is not available at http://localhost:8080/test/, I get a Jetty-generated 404 message. Any ideas? Regards, Philip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Embedding in Jetty without web.xml
Hello, I am trying to set up a Wicket application to execute in an embedded Jetty instance. The Wicket application is not deployed as a webapp (so there so web.xml), as I am trying to avoid using unnecessary directory structure and config files). The Wicket application classes are available on the classpath. I am using the following to configure the Wicket filter and start the Jetty server: // Create server and root context Server server = new Server(); Connector connector = new SocketConnector(); connector.setPort(8080); server.addConnector(connector); Context context = new Context(server, /); // Add wicket filter FilterHolder filterHolder = new FilterHolder(WicketFilter.class); filterHolder.setInitParameter(applicationClassName, TestWebApplication.class.getCanonicalName()); context.addFilter(filterHolder, /*, org.mortbay.jetty.Handler.DEFAULT); // Start server server.start(); server.join(); I added the following to the init() method of the WebApplication subclass: mount(/test, PackageName.forPackage(this.getClass().getPackage())); Although the server starts, the Wicket application is not available at http://localhost:8080/test/, I get a Jetty-generated 404 message. Any ideas? Regards, Philip
Re: HybridURLCodingStrategies vs others
On Jan 30, 2008 1:36 AM, mfs [EMAIL PROTECTED] wrote: When u say it attempts to reuse existing page instance (when pageid in session matches the class specified by mount point). - you mean the pageid in the URL (and not session) matches the class specified by the mount path ? No. The pageId in url is of course used to retrieve page instance from session which is then tested to match the mount point. - So other strategies are there to provide relatively clean-er url ? (i.e. without pageId and version info) what other reasons would be there to use the non-HUCS, i wonder what happens to existing the page instances ? Nothing new page instance is created, that doesn't affect the old page instances at all. - Creating a new page-instance for every call, doesnt that break the back button support ? arent we compromising the wicket functionality of maintaining page-history by creating a new page instance every time and not using the existing ones ? What do you mean by every call? New page instance is created on every request with regular bookmarkable URL. That doesn't affect back button at all becaue all page instance relative urls (listener interface, e.g. clicking a link on page) are not bookmarkable and contain the page instance id. Only when you refresh the page (while still having the bookmarkable url in url bar) new page instance is created. - Last but not the least when i read that all other strategies other than HUCS doesnt preserve the mount path after a listener is invoked on that page sounded like a bug to me, i mean why cant the mount path be preserved using the same strategy ?, with that a person is bound to use HUCS although he prefers to keep to BookMarkableUCS since its more clean in terms of displayed url. That's the point. The regular URL conding strategies don't insert page instance in URL. So after clicking a link there is no way to redirect to bookmarkable URL while still displaying the same page. That's the whole reason for hybridurlcodingstrategy. -Matej Matej Knopp-2 wrote: Hi, the other strategies always create new page instance. The difference with hybridurlcodingstrategy is that it attempts to reuse existing page instance (when pageid in session matches the class specified by mount point). -Matej On Jan 29, 2008 11:36 PM, mfs [EMAIL PROTECTED] wrote: Guys, I believe its just the HybridURLCodingStrategy and its subclasses (IndexHUCS) which encodes the mount point, page parameters and page instance information into the URL whereas others strategies DO have the mount-point page-param in them (encoded in a different way) BUT the page-instance info (i.e. page-id/version) is not contained in the URL. I wonder why is this page-info not required by other strategies, wouldnt it be need to locate the older pages AND IF NOT how does it work for them...cant it work in a similar way for HUCS where we dont have those numbers in the url... Thanks in advance -- View this message in context: http://www.nabble.com/HybridURLCodingStrategies-vs-others-tp15171137p15171137.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] -- Resizable and reorderable grid components. http://www.inmethod.com -- View this message in context: http://www.nabble.com/HybridURLCodingStrategies-vs-others-tp15171137p15173060.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] -- Resizable and reorderable grid components. http://www.inmethod.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HybridURLCodingStrategies vs others
When u say it attempts to reuse existing page instance (when pageid in session matches the class specified by mount point). - you mean the pageid in the URL (and not session) matches the class specified by the mount path ? - So other strategies are there to provide relatively clean-er url ? (i.e. without pageId and version info) what other reasons would be there to use the non-HUCS, i wonder what happens to existing the page instances ? - Creating a new page-instance for every call, doesnt that break the back button support ? arent we compromising the wicket functionality of maintaining page-history by creating a new page instance every time and not using the existing ones ? - Last but not the least when i read that all other strategies other than HUCS doesnt preserve the mount path after a listener is invoked on that page sounded like a bug to me, i mean why cant the mount path be preserved using the same strategy ?, with that a person is bound to use HUCS although he prefers to keep to BookMarkableUCS since its more clean in terms of displayed url. Matej Knopp-2 wrote: Hi, the other strategies always create new page instance. The difference with hybridurlcodingstrategy is that it attempts to reuse existing page instance (when pageid in session matches the class specified by mount point). -Matej On Jan 29, 2008 11:36 PM, mfs [EMAIL PROTECTED] wrote: Guys, I believe its just the HybridURLCodingStrategy and its subclasses (IndexHUCS) which encodes the mount point, page parameters and page instance information into the URL whereas others strategies DO have the mount-point page-param in them (encoded in a different way) BUT the page-instance info (i.e. page-id/version) is not contained in the URL. I wonder why is this page-info not required by other strategies, wouldnt it be need to locate the older pages AND IF NOT how does it work for them...cant it work in a similar way for HUCS where we dont have those numbers in the url... Thanks in advance -- View this message in context: http://www.nabble.com/HybridURLCodingStrategies-vs-others-tp15171137p15171137.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] -- Resizable and reorderable grid components. http://www.inmethod.com -- View this message in context: http://www.nabble.com/HybridURLCodingStrategies-vs-others-tp15171137p15173060.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: AJAX: form components not being updated
Anyone? All I need to know is how to assign a generated model to my form components. The original (empty) one is a CompoundPropertyModel. Michael -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2008 3:58 PM To: users@wicket.apache.org Subject: AJAX: form components not being updated I've got something similar to this call: myAutoCompleteTextField.add(new AjaxFormSubmitBehavior(form, onchange) { protected void onSubmit(AjaxRequestTarget target) { String selection = myAutoCompleteTextField.getModelObjectAsString(); MyPOJO backingModel = someFunkyModelFactory(selection); myModel = new CompoundPropertyModel(backingModel); target.addComponent(firstComp); target.addComponent(secondComp); ... } For some reason my form components are not being updated to the new model. What am I doing wrong here? Any pointers would be welcome - thanks! Michael - 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]
Mounting strategies for shared components bundled in a jar ?
Guys, How would i go about mounting the pages bundled in a jar that are being re-used by different web apps. I don't want to mount them in every web-application that uses them, rather would prefer keeping the mounting logic in the shared library itself.. Any ideas ? -- View this message in context: http://www.nabble.com/Mounting-strategies-for-shared-components-bundled-in-a-jar---tp15173739p15173739.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: Mounting strategies for shared components bundled in a jar ?
see IInitializer and its javadoc, you can write one that mounts the pages and include in the jar that contains the pages. as long as that jar is on the classpath those pages will get mounted. -igor On Jan 29, 2008 5:29 PM, mfs [EMAIL PROTECTED] wrote: Guys, How would i go about mounting the pages bundled in a jar that are being re-used by different web apps. I don't want to mount them in every web-application that uses them, rather would prefer keeping the mounting logic in the shared library itself.. Any ideas ? -- View this message in context: http://www.nabble.com/Mounting-strategies-for-shared-components-bundled-in-a-jar---tp15173739p15173739.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: AJAX: form components not being updated
getModel().setObject(foo); on the component that is housing the CompoundPropertyModel instance... -igor On Jan 29, 2008 5:01 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Anyone? All I need to know is how to assign a generated model to my form components. The original (empty) one is a CompoundPropertyModel. Michael -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2008 3:58 PM To: users@wicket.apache.org Subject: AJAX: form components not being updated I've got something similar to this call: myAutoCompleteTextField.add(new AjaxFormSubmitBehavior(form, onchange) { protected void onSubmit(AjaxRequestTarget target) { String selection = myAutoCompleteTextField.getModelObjectAsString(); MyPOJO backingModel = someFunkyModelFactory(selection); myModel = new CompoundPropertyModel(backingModel); target.addComponent(firstComp); target.addComponent(secondComp); ... } For some reason my form components are not being updated to the new model. What am I doing wrong here? Any pointers would be welcome - thanks! Michael - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Testing ModalWindows with Selenium
On Tue, 29 Jan 2008, Roberto Fasciolo wrote: Basically, my problem is that I can access the ModalWindow using: selenium.selectWindow(modal-dialog-pagemap); but I can't verify if the window has been fully loaded or not, I've tried with: selenium.waitForPopUp(modal-dialog-pagemap, 3); but it fails all the time with exception message Window not found. Hmm, aren't the ModalWindows Echo2-like Ajax constructions instead of real popups? Try waitForCondition with a suitable Javascript scriptlet. Googling ajax selenium testing should bring some hints on that, I think that in Grig Gheorghiu's blog there was something handy on that a year or two ago. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.
Say if you have trouble with it. I'll look into it then, two pair of eyes are better than one:) Hey thats what the mailing list are for:) I learn from this too:) Great! You are welcome! :) FYI, draggable.js seems not the one that cause the problem, because the DnD demo in scriptaculous[1] site works perfectly, I suspect that the problem is from the integration in wicketstuff-scriptaculous. I will take a deeper look today. Btw, if you need more information, please pm me. Thanks a lot. Regards Boon Ping. [1] http://demo.script.aculo.us/shop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can auto fire the ajaxLink onClick function without click on the link?
Hi i wish once the page is load, it will auto pop up the modal window. From the wicket example, the modal window will only display once the user click on the ajaxLink. So, is there any solution to auto fire the onClick function without click the ajax Link.? my page constructor involved the modal window and the ajaxLink: final ModalWindow cancelModal = new ModalWindow(cancelModal ); cancelModal .setPageMapName(cancelModal ); cancelModal .setCookieName(cancelModal ); cancelModal .setResizable(false); cancelModal setInitialWidth(30); cancelModal .setInitialHeight(12); cancelModal .setWidthUnit(em); cancelModal .setHeightUnit(em); cancelModal .setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { return new CancelModal Page(CurrentPage.this); } }); add(cancelModal ); cancelModal .setOutputMarkupId(true); add(link = new AjaxLink(cancelReportModalLink) { public void onClick(AjaxRequestTarget target) { triggerTarget = target; cancelReportModal.show(target); } }); // is there i wrote in this way, the onClick function will fire once the page is load link.onClick(triggerTarget); can anyone give help ? or any idea on it... thanks in advance -- View this message in context: http://www.nabble.com/can-auto-fire-the-ajaxLink-onClick-function-without-click-on-the-link--tp15175973p15175973.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: Ajax Busy Indicator
You can use CSS to control the positon of the busy indicating image. To place it right from the button use This seems like tweaking... IAjaxIndicatorAware simply takes the html id of the element you want to show/hide; it can be placed anywhere in html... This is more of what I am looking for, but with IAjaxIndicatorAware I havent succeeded in making the indicator appear. I posted earlier the code I have, but it didn't do the job. I will repeat it here if someone can see immediately what is wrong in it: public class Login extends WebPage { // ... default constructor contents: final Form loginForm = new Form(LOGIN_FORM, new Model()); final AjaxIndicatorContainer indicatorContainer = new AjaxIndicatorContainer(); indicatorContainer.setOutputMarkupId(true); loginForm.add(indicatorContainer); final SubmitLink loginButton = new SubmitLink(LOGIN_BUTTON, new Model()) { /** * @see org.apache.wicket.markup.html.form.SubmitLink#onSubmit() */ @Override public void onSubmit() { super.onSubmit(); Thread.sleep(5000); // Simulate form processing } }; abstract class AjaxFormSubmitIndicator extends AjaxFormSubmitBehavior implements IAjaxIndicatorAware { /** * Constructor for TODO * */ public AjaxFormSubmitIndicator() { super(onchange); // I have tried onchange and onclick } } loginButton.add(new AjaxFormSubmitIndicator() { @Override protected void onError(AjaxRequestTarget arg0) { // TODO Auto-generated method stub } @Override protected void onSubmit(AjaxRequestTarget arg0) { loginButton.onSubmit(); } public String getAjaxIndicatorMarkupId() { return indicatorContainer.getMarkupId(); } }); loginForm.add(loginButton); // ... etc.. add(new FeedbackPanel(feedback)); add(loginForm); } public class AjaxIndicatorContainer extends WebMarkupContainer { /** * */ private static final long serialVersionUID = 5573778050703849297L; /** * */ public static final String INDICATOR_MARKUP_ID = ajaxIndicator; /** * Constructor for TODO */ public AjaxIndicatorContainer() { super(INDICATOR_MARKUP_ID); } /** * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag) */ @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(src,urlFor(AbstractDefaultAjaxBehavior.INDICATOR)); } body wicket:extend h1Login/h1 span wicket:id=feedbackFeedback messages will be here./span form wicket:id=loginForm table border=0 cellspacing=0 cellpadding=2 align=center trtd NOWRAP width=80 align=right Username: /td tdinput type=text wicket:id=userId/td/tr trtd NOWRAP align=right Password: /tdtdinput type=password wicket:id=password/td/tr trtd align=rightimg src=# border=0 wicket:id=ajaxIndicator style=display:none//tdtd NOWRAP input type=submit value=Sign in wicket:id=loginButton /td/tr /table /form /wicket:extend /body - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting the exception while starting a application in tomcat
Hi, i created an HelloWorld application in Wicket framwork as described in their web page, but i am getting following exceptions. Please somebody help me beacuse i am not getting a moveon from here on.. org.apache.wicket.WicketRuntimeException: Unable to create application of class org.apache.wicket.examples.velocity.VelocityTemplateApplication 2008-01-29 18:40:35 StandardContext[/wicket-examples-1.3.0]: Exception starting filter WizardApplication java.lang.UnsupportedClassVersionError: org/apache/wicket/examples/wizard/WizardApplication (Unsupported major.minor version 49.0) Thanks Regards, Gurvinder Pal Singh -- View this message in context: http://www.nabble.com/Getting-the-exception-while-starting-a-application-in-tomcat-tp15176392p15176392.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: can auto fire the ajaxLink onClick function without click on the link?
kenixwong wrote: Hi i wish once the page is load, it will auto pop up the modal window. From the wicket example, the modal window will only display once the user click on the ajaxLink. So, is there any solution to auto fire the onClick function without click the ajax Link.? my page constructor involved the modal window and the ajaxLink: final ModalWindow cancelModal = new ModalWindow(cancelModal ); cancelModal .setPageMapName(cancelModal ); cancelModal .setCookieName(cancelModal ); cancelModal .setResizable(false); cancelModal setInitialWidth(30); cancelModal .setInitialHeight(12); cancelModal .setWidthUnit(em); cancelModal .setHeightUnit(em); cancelModal .setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { return new CancelModal Page(CurrentPage.this); } }); add(cancelModal ); cancelModal .setOutputMarkupId(true); add(link = new AjaxLink(cancelReportModalLink) { public void onClick(AjaxRequestTarget target) { triggerTarget = target; cancelReportModal.show(target); } }); // is there i wrote in this way, the onClick function will fire once the page is load link.onClick(triggerTarget); can anyone give help ? or any idea on it... thanks in advance You only need an AjaxRequestTarget, not necessarily from onClick. You might add an AbstractAjaxTimerBehavior to cancelReportModal and then in onTimer(ART t) { target.add(cRM); cRM.show(t); this.stop(); /* you only want this once */ } Or something alike (if it doesn't work, maybe add the behavior to the container or something) Matthijs -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax Busy Indicator
On Wed, 30 Jan 2008, Martin Makundi wrote: public class Login extends WebPage { // ... default constructor contents: final Form loginForm = new Form(LOGIN_FORM, new Model()); final AjaxIndicatorContainer indicatorContainer = new AjaxIndicatorContainer(); indicatorContainer.setOutputMarkupId(true); loginForm.add(indicatorContainer); Maybe you won't need the container around the indicator if you say setOutputMarkupPlaceHolderTag(true) to the indicator itself. public String getAjaxIndicatorMarkupId() { return indicatorContainer.getMarkupId(); } I have used hardocoded HTML ids here, that way you can easily control the layout of the indicator in CSS. public class AjaxIndicatorContainer extends WebMarkupContainer { ... */ public static final String INDICATOR_MARKUP_ID = ajaxIndicator; ... */ public AjaxIndicatorContainer() { super(INDICATOR_MARKUP_ID); } Wicket id is a different thing than the markup id. Probably you need to override getMarkupId() to return that id. And wait a minute, is the container in fact the indicator? Then you definitely need to output the placeholder container for it, otherwise ajax has no way of making it visible as it does not appear in the HTML. You should be able to see this as an error in the ajax debug console (available when running with -Dwicket.configuration=development ). @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(src,urlFor(AbstractDefaultAjaxBehavior.INDICATOR)); } This part I didn't understand. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting the exception while starting a application in tomcat
if you want to create a hello world app quickly and properly then go here http://wicket.apache.org/quickstart.html and run the command given in the textarea. it looks like you are trying to startup the wicket-examples project and not the hello world you created... -igor On Jan 29, 2008 10:37 PM, Gurvinder Pal Singh [EMAIL PROTECTED] wrote: Hi, i created an HelloWorld application in Wicket framwork as described in their web page, but i am getting following exceptions. Please somebody help me beacuse i am not getting a moveon from here on.. org.apache.wicket.WicketRuntimeException: Unable to create application of class org.apache.wicket.examples.velocity.VelocityTemplateApplication 2008-01-29 18:40:35 StandardContext[/wicket-examples-1.3.0]: Exception starting filter WizardApplication java.lang.UnsupportedClassVersionError: org/apache/wicket/examples/wizard/WizardApplication (Unsupported major.minor version 49.0) Thanks Regards, Gurvinder Pal Singh -- View this message in context: http://www.nabble.com/Getting-the-exception-while-starting-a-application-in-tomcat-tp15176392p15176392.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: Getting the exception while starting a application in tomcat
and you try to run the examples in java 4 instead of java 5 On 1/30/08, Igor Vaynberg [EMAIL PROTECTED] wrote: if you want to create a hello world app quickly and properly then go here http://wicket.apache.org/quickstart.html and run the command given in the textarea. it looks like you are trying to startup the wicket-examples project and not the hello world you created... -igor On Jan 29, 2008 10:37 PM, Gurvinder Pal Singh [EMAIL PROTECTED] wrote: Hi, i created an HelloWorld application in Wicket framwork as described in their web page, but i am getting following exceptions. Please somebody help me beacuse i am not getting a moveon from here on.. org.apache.wicket.WicketRuntimeException: Unable to create application of class org.apache.wicket.examples.velocity.VelocityTemplateApplication 2008-01-29 18:40:35 StandardContext[/wicket-examples-1.3.0]: Exception starting filter WizardApplication java.lang.UnsupportedClassVersionError: org/apache/wicket/examples/wizard/WizardApplication (Unsupported major.minor version 49.0) Thanks Regards, Gurvinder Pal Singh -- View this message in context: http://www.nabble.com/Getting-the-exception-while-starting-a-application-in-tomcat-tp15176392p15176392.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] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0