Re: [Wicket-user] IComponent*POST*InstantiationListener
sometimes I find useful to be able to do some initialization once my component is attached to its hierarchy, mainly to be able to call getPage(). For example, if there are relevant events along some page lifecycle maybe panels contained in it may want to add themselves as listeners: ((MyPage)getPage()).addMyEventListener(this). Or maybe a model is attached to the page and you don't want to pass it deep down the hierarchy but just obtain it from the page when needed. For now I'm just visiting page components first time the page is attached (that is, I'm overriding onAttach). This implementation is fine but maybe the aforementioned event should be a provided, standard one. What do you think about it? Erm, how would you implement that? :) I think you should use IComponentOnBeforeRenderListener in this case (and note there is also IComponentOnAfterRenderListener). Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] WicketTester and mocking up next page rendered.
On Fri, 20 Jul 2007, Craig Lenzen wrote: And how are you overriding the goToPageB method in the test? Using WicketTester you never actually create an instance of PageB, that is you as the developer. Like this, in 1.3 wicket.startPage(new ITestPageSource(){ public Page getTestPage() { return new PageA()... } though I'm not sure if it's in 1.2. There's also TestPanelSource that you can use similarly with startPanel. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Regarding Wicket with Dynamic Data
i am the newbie of wicket, so please provide some more hints to do the above problem Oleg Taranenko-2 wrote: Hello Edi, please visit www.databinder.net if you still have questions, welcome. Cheers, Monday, July 23, 2007, 2:24:47 PM, you wrote: Hi, my database is mssql/oracle or any. Consider I have one table name username and address. In table, I have 10 username and its addresses. I don't have any design pages for this table. My aim is, Initially When I click one link, I have to display username and addressess both textboxes should be displayed and search button also should be displayed. Is it possible? without declaring field id's(username, password), how can I display all the fiedls from DB? Please send your suggestions. Thanking You. Regards, Edi -- Best regards, Olegmailto:[EMAIL PROTECTED] - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Regarding-Wicket-with-Dynamic-Data-tf4129343.html#a11759225 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Panels with Scrollbar
Hi everybody, I am new to wicket and I am wondering if ther is an Panel-Componet with a scrollbar, so that I can scroll inside a website. Or do I have to use Frames for this? (I dont really like Frames) Thanks in advance, Benjamin -- View this message in context: http://www.nabble.com/Panels-with-Scrollbar-tf4134758.html#a11759731 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Panels with Scrollbar
It's a css thing rather then wicket related. You need to use overflow: scroll or overflow: auto in the div style to show scrollbars when the content is too big. -Matej On 7/24/07, Benjamin Ernst [EMAIL PROTECTED] wrote: Hi everybody, I am new to wicket and I am wondering if ther is an Panel-Componet with a scrollbar, so that I can scroll inside a website. Or do I have to use Frames for this? (I dont really like Frames) Thanks in advance, Benjamin -- View this message in context: http://www.nabble.com/Panels-with-Scrollbar-tf4134758.html#a11759731 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket with JExcel
i have found A1,B1 I have downloaded your source, but In createLoop, i got null pointer exception java.lang.NullPointerException at com.enterra.vrm.qst.ui.page.reports.validatexl.AppletBasePanel.createLoop(AppletBasePanel.java:334) Is there any exception hadler you added. Ayodeji Aladejebi wrote: I really dint get your question but from what i interpreted, if you want an easy way to map between the Cell values and thier names then, develop an interpreting matrix that maps A1, A2, B1 to the 2-Dimension model array that contains the values, For columns, you have A,B,C,D,E..AA (there is a common algorithm on how to generate this from 1,2,3,4,5...) For rows, you have the 1,2,3,4,. Then you have Cell[row][col] array or IModel[row][col] or TextField[row][col], any one you choose, then when you need the value of B4, then your interpreter translates it to Column 2, Row 4 ? On 7/17/07, Edi [EMAIL PROTECTED] wrote: Hello Ayodeji Aladejebi, Thank you so much for your kind consideration regarding paginations. and my question is how to find the each cell name. for. eg. First cell name is A1 in the xl sheet, and its value may be integer/float/general. I want to get the cell name A1 and it's value. (we already get the value and displayed) Hope you understand my question. Thanking you. Regards, Edi Ayodeji Aladejebi wrote: hi Edi, Concerning your question on Horizontal and vertical paging strategy, it wont be quite simple as ABC, i havent gotten time to do it but when i am less busy i will work on it. i dint also pick your question on A1, B2, C1? you want to change it?, On 7/16/07, Edi [EMAIL PROTECTED] wrote: Hi, How to find each xl cell name, Eg. A1, B2, C1 etc Ayodeji Aladejebi wrote: thats why the source is open for you to hack into :) however, 1. for the Not Set Stuff, check the XCell class for modification 2. the one without ajax is easy, Look up the ExcelGridPanel class and make these modifications final XCell cell = ... TextField celltx = new TextField(cell, new PropertyModel(cell,data)){ public void onComponentTag(ComponentTag tag){ super.onComponentTag(tag); if(!isValid()){ tag.put(class, grid-error); }else tag.put(class, grid-normal); //How can I change the empty field box style in Red color. It's easy to //Identify. Because XL file may contains lot of empty fields. if(cell.getContent().equals()) tag.put(class,grid-error); //In xls one field contains more than 20 characters. When I upload that xls, //initially it shows the data only not in red color box. But when I click the //box only it shows red color. How can I show in red color when load the //document. if(cell.getContent().length() 20) tag.put(class, grid-error); //And how can I add alt tag when I mouse over the empty field text box - //for eg. If I mouse over the empty field, It shows the empty field should not //be allowed. if(cell.getContent().equals()) tag.put(alt,Empty Cells Not Allowed ); } }; After changing the file, what is save record button. How it works? Please explain. hmm... ok, depends on what you want to achieve but basically this is the part of the code that you du what you got to do when i wrote the code, i used it for a project where ppl needed to upload Mobile phone contacts into a database from Excel file, so our line of purpose may be different. if you want to allow users to modify the Excel Spreadsheet, its a different ball game Form gridForm = new Form(gridform){ public void onSubmit(){ //you could keep a reference to a XCell array and then write it back to the corresponding Cell instances from the Workbook // NOte: that the code assumes every data in the Excel is a String. to support multiple data types is another beast of code //so place your logic code here } } Regards, On 7/4/07, Edi [EMAIL PROTECTED] wrote: In xls one field contains more than 20 characters. When I upload that xls, initially it shows the data only not in red color box. But when I click the box only it shows red color. How can I show in red color when load the document. Ayodeji Aladejebi wrote: meanwhile for the AjaxExcelGirdPanel, you have to click on the cell labels to edit them and you will require wicket-extensions along with the wicket jar to make it work regards On 7/4/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: hmm..i have been busy but i worked a quick fix for you it is attached, its a netbeans project folder. I really hope
Re: [Wicket-user] IComponent*POST*InstantiationListener
Erm, how would you implement that? I'm overriding onAttach and setting a flag for doing initialization just during the first attachment. Is this wrong? I think you should use IComponentOnBeforeRenderListener in this case Still, I would have to keep the is first time? check, wouldn't I? I think that's the mistmatch between current events and sort of postinitialization: they are executed upon every request. Cheers, Carlos (and note there is also IComponentOnAfterRenderListener). Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom session not working...
Thanks Eelco, that did the trick. Couple of follow up questions/comments that anyone can field: 1) I understand why you would want a stateless application, however I don't understand why you would ever want your session to be regenerated on each request if during the request you specifically set a session value. It seems like once you set a session value, the session should become bound. Is there a logical reason this isn't the case, or is it just a technological/implementation reason? I'm just trying to understand this better. 2) The location quoted for the live examples (http://wicketstuff.org/wicket13/) is the one I was looking at, however for the specific example stateless, it is not possible to view the source code and/or page files live. Not sure how the site is maintained, but perhaps a download link could be added on the examples page to the build that the live examples demonstrate, by default. I've got the files now however, so thanks again! Best regards, Spencer Eelco Hillenius wrote: I have a custom session class that inherits from WebSession. I have overridden the newSession method in my Application class. The session is getting used during the request, because I initialize some of its values in its constructor, and they show up when I attach a label to them in a page. A new session gets created with every request, however, which obviously is not the desired behavior. For instance, I have an Integer, and I initialize it to 1 in the constructor, and increment it before each page display. I always get back a 2 on the page. It sounds like your page is stateless, and the session instances are temporary. As long as a session is not 'bound', you'll get a separate instance per request and Wicket won't hold on to heap memory. You can force the creation of a session by calling Session#bind, which I think you should be able to call from your constructor as well. Related to this, can someone provide me a download link to the 1.3 examples? The live examples page does not allow you to view the source for the stateless example, which seems like it may have some relevant code in it, and I cannot find a download link for the 1.3 examples. The 1.2 examples do not have that particular example, from what I can tell. Use http://wicketstuff.org/wicket13/ to look at the examples. The wicket-examples site is stale. As for downloading the examples for 1.3.0, at this time you can best get them from SVN directly, or download them from our maven repo at http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-examples/1.3.0-SNAPSHOT/ Eelco -- View this message in context: http://www.nabble.com/Custom-session-not-working...-tf4132685.html#a11761829 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IComponent*POST*InstantiationListener
You can use the component.hasBeenRendererd() method to determine if it is the first time or not. -Matej On 7/24/07, Carlos Pita [EMAIL PROTECTED] wrote: Erm, how would you implement that? I'm overriding onAttach and setting a flag for doing initialization just during the first attachment. Is this wrong? I think you should use IComponentOnBeforeRenderListener in this case Still, I would have to keep the is first time? check, wouldn't I? I think that's the mistmatch between current events and sort of postinitialization: they are executed upon every request. Cheers, Carlos (and note there is also IComponentOnAfterRenderListener). Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Panels with Scrollbar
Thank you very much! That works great. Benjamin 2007/7/24, Matej Knopp [EMAIL PROTECTED]: It's a css thing rather then wicket related. You need to use overflow: scroll or overflow: auto in the div style to show scrollbars when the content is too big. -Matej On 7/24/07, Benjamin Ernst [EMAIL PROTECTED] wrote: Hi everybody, I am new to wicket and I am wondering if ther is an Panel-Componet with a scrollbar, so that I can scroll inside a website. Or do I have to use Frames for this? (I dont really like Frames) Thanks in advance, Benjamin -- View this message in context: http://www.nabble.com/Panels-with-Scrollbar-tf4134758.html#a11759731 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] About to use Wicket. ORM?
Except the question wasn't about learning. It's about being productive. And too often NIH is the anti-productivity pill. Don't want a feature? Don't use it. Wicket offers a lot that I don't use but I'd have to crazy not to use it because of that. On 7/24/07, davor-x [EMAIL PROTECTED] wrote: I'm making software for 10 years now. And I dont use / like orm. But that's me. I hate everything that's bloated with features. I hope wicket will not add new features in it's core. For my use, I've build a kind of my inhouse orm, I want to view the same data in, say a browsable and selectable list and then in a crud form - synchonized. The best and only way of learning - for me - is: DIY. -- View this message in context: http://www.nabble.com/About-to-use-Wicket.-ORM--tf4131916.html#a11764361 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] About to use Wicket. ORM?
On 7/23/07, James Law [EMAIL PROTECTED] wrote: Hi Matthias, my 2 cents on orm. As far as which orm/persistence tool, I think a good strategy that I follow is to use them all! Really though, I categorize data access into multiple categories 1. Lots of insert/update stuff use cases, where you want to modify a domain model, put bus logic on domain objects, and not think in terms of rows, but instead modify an object model and let hibernate see your changes --- use hibernate 2. Get queries on the screen fast (no need for persistence context, or changes to the objects) think ibatis, or spring jdbc. I love hibernate, but for complex queries, I think it at times can require too much understanding of the black box. Like how are my many-one setup, is it cached, outer joined, or ?. I accomplish this matrix approach using spring.. since it allows me to use both and still have transactions, and one stop shopping for managing datasource with all of these tools... I agree. Here at my current job, we're doing a mix of both approaches where we have a number of domain objects managed by Spring/Hibernate/JPA but then we have a number of dynamically generated queries that don't really equate to domain objects. For those we're using straight SQL to (hopefully) quickly pull that data out of the database. If you want to use hibernate and wicket, there's the databinder which has a number of nice Hibernate-related components to use to help manage your models and the like and there's qwicket that'll help you generate the base spring/wicket setup for you if you choose to use spring. If you go with hibernate, I'd recommend sticking as close to pure JPA as you can so that you're not necessarily tied to hibernate but get the benefits of an ORM. You can still drop to native SQL if you'd like using the JPA interfaces. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] About to use Wicket. ORM?
I'm making software for 10 years now. And I dont use / like orm. But that's me. I hate everything that's bloated with features. I hope wicket will not add new features in it's core. For my use, I've build a kind of my inhouse orm, I want to view the same data in, say a browsable and selectable list and then in a crud form - synchonized. The best and only way of learning - for me - is: DIY. -- View this message in context: http://www.nabble.com/About-to-use-Wicket.-ORM--tf4131916.html#a11764361 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom session not working...
On 7/24/07, spencer.c [EMAIL PROTECTED] wrote: Thanks Eelco, that did the trick. Couple of follow up questions/comments that anyone can field: 1) I understand why you would want a stateless application, however I don't understand why you would ever want your session to be regenerated on each request if during the request you specifically set a session value. It seems like once you set a session value, the session should become bound. Is there a logical reason this isn't the case, or is it just a technological/implementation reason? I'm just trying to understand this better. after you set the value on the session did you call session.dirty() to let wicket know you have done that? i think dirty() will bind the session as well. -igor 2) The location quoted for the live examples (http://wicketstuff.org/wicket13/) is the one I was looking at, however for the specific example stateless, it is not possible to view the source code and/or page files live. Not sure how the site is maintained, but perhaps a download link could be added on the examples page to the build that the live examples demonstrate, by default. I've got the files now however, so thanks again! Best regards, Spencer Eelco Hillenius wrote: I have a custom session class that inherits from WebSession. I have overridden the newSession method in my Application class. The session is getting used during the request, because I initialize some of its values in its constructor, and they show up when I attach a label to them in a page. A new session gets created with every request, however, which obviously is not the desired behavior. For instance, I have an Integer, and I initialize it to 1 in the constructor, and increment it before each page display. I always get back a 2 on the page. It sounds like your page is stateless, and the session instances are temporary. As long as a session is not 'bound', you'll get a separate instance per request and Wicket won't hold on to heap memory. You can force the creation of a session by calling Session#bind, which I think you should be able to call from your constructor as well. Related to this, can someone provide me a download link to the 1.3 examples? The live examples page does not allow you to view the source for the stateless example, which seems like it may have some relevant code in it, and I cannot find a download link for the 1.3 examples. The 1.2examples do not have that particular example, from what I can tell. Use http://wicketstuff.org/wicket13/ to look at the examples. The wicket-examples site is stale. As for downloading the examples for 1.3.0, at this time you can best get them from SVN directly, or download them from our maven repo at http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-examples/1.3.0-SNAPSHOT/ Eelco -- View this message in context: http://www.nabble.com/Custom-session-not-working...-tf4132685.html#a11761829 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] localhost/wicketApp works fine, PC_NAME/wicketApp throws page expire.
I see the questions didn't have anything to do with it. just protocol bs... anyways. f(t) On 7/20/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Tomcat, ie7, safari, and firefox. and wicket 1.3 beta 2. On 7/20/07, Sean Sullivan [EMAIL PROTECTED] wrote: Which web browser? Which version of wicket? Which app server? On 7/20/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi has anyone has had this problem before? I have a page and everything works fine. but when I click on a link at the home page only works (goes to the page) if I am at localhost:// etc. even on my own computer. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ __ _ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom session not working...
Couple of follow up questions/comments that anyone can field: 1) I understand why you would want a stateless application, however I don't understand why you would ever want your session to be regenerated on each request if during the request you specifically set a session value. It seems like once you set a session value, the session should become bound. Is there a logical reason this isn't the case, or is it just a technological/implementation reason? I'm just trying to understand this better. Like Igor said, calling dirty when you set a value should do the trick. If it doesn't it's a bug :) 2) The location quoted for the live examples (http://wicketstuff.org/wicket13/) is the one I was looking at, however for the specific example stateless, it is not possible to view the source code and/or page files live. Not sure how the site is maintained, but perhaps a download link could be added on the examples page to the build that the live examples demonstrate, by default. I've got the files now however, so thanks again! Ah, ok. That example doesn't use the header all the other examples use because that header would make it statefull :) Could probably be fixed, but atm it's a bit too much trouble. Cheers, Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Regarding Wicket with Dynamic Data
Hello Edi, As I you understand right you need to work with different (or may be not determined) databases. You should using some kind of object relation mapping tools. Most popular is Hibernate. Databinder binds Wicket and Hibernate and hope it can satisfy your needs. You but should have some background in ORM in common and in Hibernate particulary. Could you please specify more what do you need? Tuesday, July 24, 2007, 11:00:57 AM, you wrote: i am the newbie of wicket, so please provide some more hints to do the above problem Oleg Taranenko-2 wrote: Hello Edi, please visit www.databinder.net if you still have questions, welcome. Cheers, Monday, July 23, 2007, 2:24:47 PM, you wrote: Hi, my database is mssql/oracle or any. Consider I have one table name username and address. In table, I have 10 username and its addresses. I don't have any design pages for this table. My aim is, Initially When I click one link, I have to display username and addressess both textboxes should be displayed and search button also should be displayed. Is it possible? without declaring field id's(username, password), how can I display all the fiedls from DB? Please send your suggestions. Thanking You. Regards, Edi -- Best regards, Olegmailto:[EMAIL PROTECTED] - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Best regards, Olegmailto:[EMAIL PROTECTED] - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket with JExcel
wait i have an update and will surely upload it for you On 7/24/07, Edi [EMAIL PROTECTED] wrote: i have found A1,B1 I have downloaded your source, but In createLoop, i got null pointer exception java.lang.NullPointerException at com.enterra.vrm.qst.ui.page.reports.validatexl.AppletBasePanel.createLoop( AppletBasePanel.java:334) Is there any exception hadler you added. Ayodeji Aladejebi wrote: I really dint get your question but from what i interpreted, if you want an easy way to map between the Cell values and thier names then, develop an interpreting matrix that maps A1, A2, B1 to the 2-Dimension model array that contains the values, For columns, you have A,B,C,D,E..AA (there is a common algorithm on how to generate this from 1,2,3,4,5...) For rows, you have the 1,2,3,4,. Then you have Cell[row][col] array or IModel[row][col] or TextField[row][col], any one you choose, then when you need the value of B4, then your interpreter translates it to Column 2, Row 4 ? On 7/17/07, Edi [EMAIL PROTECTED] wrote: Hello Ayodeji Aladejebi, Thank you so much for your kind consideration regarding paginations. and my question is how to find the each cell name. for. eg. First cell name is A1 in the xl sheet, and its value may be integer/float/general. I want to get the cell name A1 and it's value. (we already get the value and displayed) Hope you understand my question. Thanking you. Regards, Edi Ayodeji Aladejebi wrote: hi Edi, Concerning your question on Horizontal and vertical paging strategy, it wont be quite simple as ABC, i havent gotten time to do it but when i am less busy i will work on it. i dint also pick your question on A1, B2, C1? you want to change it?, On 7/16/07, Edi [EMAIL PROTECTED] wrote: Hi, How to find each xl cell name, Eg. A1, B2, C1 etc Ayodeji Aladejebi wrote: thats why the source is open for you to hack into :) however, 1. for the Not Set Stuff, check the XCell class for modification 2. the one without ajax is easy, Look up the ExcelGridPanel class and make these modifications final XCell cell = ... TextField celltx = new TextField(cell, new PropertyModel(cell,data)){ public void onComponentTag(ComponentTag tag){ super.onComponentTag(tag); if(!isValid()){ tag.put(class, grid-error); }else tag.put(class, grid-normal); //How can I change the empty field box style in Red color. It's easy to //Identify. Because XL file may contains lot of empty fields. if(cell.getContent().equals()) tag.put(class,grid-error); //In xls one field contains more than 20 characters. When I upload that xls, //initially it shows the data only not in red color box. But when I click the //box only it shows red color. How can I show in red color when load the //document. if(cell.getContent().length() 20) tag.put(class, grid-error); //And how can I add alt tag when I mouse over the empty field text box - //for eg. If I mouse over the empty field, It shows the empty field should not //be allowed. if(cell.getContent().equals()) tag.put(alt,Empty Cells Not Allowed ); } }; After changing the file, what is save record button. How it works? Please explain. hmm... ok, depends on what you want to achieve but basically this is the part of the code that you du what you got to do when i wrote the code, i used it for a project where ppl needed to upload Mobile phone contacts into a database from Excel file, so our line of purpose may be different. if you want to allow users to modify the Excel Spreadsheet, its a different ball game Form gridForm = new Form(gridform){ public void onSubmit(){ //you could keep a reference to a XCell array and then write it back to the corresponding Cell instances from the Workbook // NOte: that the code assumes every data in the Excel is a String. to support multiple data types is another beast of code //so place your logic code here } } Regards, On 7/4/07, Edi [EMAIL PROTECTED] wrote: In xls one field contains more than 20 characters. When I upload that xls, initially it shows the data only not in red color box. But when I click the box only it shows red color. How can I show in red color when load the document. Ayodeji Aladejebi wrote: meanwhile for the AjaxExcelGirdPanel, you have to click on the cell labels to edit them and you will require
Re: [Wicket-user] Custom session not working...
Alright, so from what you guys have said, I think there is a bug. I had not called session.dirty() before, but since that sounded reasonable, I took out the call to session.bind() and updated my property setter so that after it set the value, it called dirty. In this simple case: public Integer getX() { return this.x; } public void setX(Integer x) { this.x = x; this.dirty(); } In an otherwise stateless page, I have the following code: public Index(final PageParameters parameters) { ... MySession s = (MySession) MySession.get(); s.setX( s.getX()+1 ); add(new Label(xlabel, new Model(s.getX(; ... } The expectation is that the value will increment with each refresh. In reality, a new session gets created for each request, and the value remains the same. So I think that dirty() is not working when there is no state already established? When I add the session.bind() in the application's newSession() method, everything works as expected. Hope this is helpful. Spencer igor.vaynberg wrote: On 7/24/07, spencer.c [EMAIL PROTECTED] wrote: Thanks Eelco, that did the trick. Couple of follow up questions/comments that anyone can field: 1) I understand why you would want a stateless application, however I don't understand why you would ever want your session to be regenerated on each request if during the request you specifically set a session value. It seems like once you set a session value, the session should become bound. Is there a logical reason this isn't the case, or is it just a technological/implementation reason? I'm just trying to understand this better. after you set the value on the session did you call session.dirty() to let wicket know you have done that? i think dirty() will bind the session as well. -igor 2) The location quoted for the live examples (http://wicketstuff.org/wicket13/) is the one I was looking at, however for the specific example stateless, it is not possible to view the source code and/or page files live. Not sure how the site is maintained, but perhaps a download link could be added on the examples page to the build that the live examples demonstrate, by default. I've got the files now however, so thanks again! Best regards, Spencer Eelco Hillenius wrote: I have a custom session class that inherits from WebSession. I have overridden the newSession method in my Application class. The session is getting used during the request, because I initialize some of its values in its constructor, and they show up when I attach a label to them in a page. A new session gets created with every request, however, which obviously is not the desired behavior. For instance, I have an Integer, and I initialize it to 1 in the constructor, and increment it before each page display. I always get back a 2 on the page. It sounds like your page is stateless, and the session instances are temporary. As long as a session is not 'bound', you'll get a separate instance per request and Wicket won't hold on to heap memory. You can force the creation of a session by calling Session#bind, which I think you should be able to call from your constructor as well. Related to this, can someone provide me a download link to the 1.3 examples? The live examples page does not allow you to view the source for the stateless example, which seems like it may have some relevant code in it, and I cannot find a download link for the 1.3 examples. The 1.2examples do not have that particular example, from what I can tell. Use http://wicketstuff.org/wicket13/ to look at the examples. The wicket-examples site is stale. As for downloading the examples for 1.3.0, at this time you can best get them from SVN directly, or download them from our maven repo at http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-examples/1.3.0-SNAPSHOT/ Eelco -- View this message in context: http://www.nabble.com/Custom-session-not-working...-tf4132685.html#a11761829 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/
Re: [Wicket-user] question about pretty URLs
mount your homepage with indexedurlcodingstrategy -igor On 7/24/07, verbal evasion [EMAIL PROTECTED] wrote: i am trying to do something and i dont know if its possible in wicket. in a framework like django (djangoproject.com), i can do stuff like have http://www.mysite.com/username where username can be anything. then it will point to a particular page and use the URL as an argument. i am creating user profile pages and i would like to let people navigate to them that way. thanks, verbal - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom session not working...
On 7/24/07, spencer.c [EMAIL PROTECTED] wrote: Alright, so from what you guys have said, I think there is a bug. Darn! :) Could you open an issue please? I'll look into it asap. Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom session not working...
You need to call session.bind(). We've been discussing this many times. It's no good to make session.dirty() bind the session, because it's called internally even on sessions that should not be bound. -Matej On 7/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 7/24/07, spencer.c [EMAIL PROTECTED] wrote: Alright, so from what you guys have said, I think there is a bug. Darn! :) Could you open an issue please? I'll look into it asap. Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom session not working...
On 7/24/07, spencer.c [EMAIL PROTECTED] wrote: Thanks Eelco, that did the trick. Couple of follow up questions/comments that anyone can field: 1) I understand why you would want a stateless application, however I don't understand why you would ever want your session to be regenerated on each request if during the request you specifically set a session value. It seems like once you set a session value, the session should become bound. Is there a logical reason this isn't the case, or is it just a technological/implementation reason? I'm just trying to understand this better. It's because wicket uses the session object internally, and it can't function without having at least a temporary session. While I understand this is not the most intuitive solution for users, changing this behavior would require a massive change to wicket, something which we can't do now due to the 1.3 release. If you have changed your session state you might want to call the bind() method on session explicitly. -Matej - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] modal window image resources
NateBot20002 wrote: Can you explain how the image resources in the ModalWindow package work? Here is an answer to this question: http://www.thinksharp.org/?cat=16 http://www.thinksharp.org/?cat=16 NateBot2000 -- View this message in context: http://www.nabble.com/modal-window-image-resources-tf4014448.html#a11770901 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom session not working...
You need to call session.bind(). We've been discussing this many times. It's no good to make session.dirty() bind the session, because it's called internally even on sessions that should not be bound. On 7/24/07, Matej Knopp [EMAIL PROTECTED] wrote: You need to call session.bind(). We've been discussing this many times. It's no good to make session.dirty() bind the session, because it's called internally even on sessions that should not be bound. You are right. But we do have a problem here. Maybe we should revisit this code and specify what the dirty bit actually should mean. If even we devs can't agree on it, what can we expect from our users? Originally, the idea behind dirty was to be able to detect when we needed to flush changes to the session (i.e. set the session as an attribute on the http session) so that a cluster could be notified. When this bit was introduced (pre 1.1 I believe), Wicket didn't have a stateless mode, so that wasn't a consideration back then. The code now: if (dirty) { this.dirty = false; setAttribute(SESSION_ATTRIBUTE_NAME, this); } seems to be exactly that. But this doesn't make sense when the session is not bound anyway! Also, I know there are quite a few methods calling Session#dirty, but I wonder if they all do it for the good reasons. The problem with explicitly calling bind is that the session store's bind implementation is called as well. Maybe that implementation should do some more checking whether the session was already bound or not. Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom session not working...
Sorry Matej, I opened the bug per Eelco's request before receiving your two responses. I will close the issue, since it sounds like this has been discussed before, and there are technical reasons for it staying as is. I guess this is just a confirmation that it not intuitive to the uninitiated user, and might be something to keep in mind for future change. In any case, we have known workaround, so no big deal. Best regards, Spencer Matej Knopp-2 wrote: On 7/24/07, spencer.c [EMAIL PROTECTED] wrote: Couple of follow up questions/comments that anyone can field: 1) I understand why you would want a stateless application, however I don't understand why you would ever want your session to be regenerated on each request if during the request you specifically set a session value. It seems like once you set a session value, the session should become bound. Is there a logical reason this isn't the case, or is it just a technological/implementation reason? I'm just trying to understand this better. It's because wicket uses the session object internally, and it can't function without having at least a temporary session. While I understand this is not the most intuitive solution for users, changing this behavior would require a massive change to wicket, something which we can't do now due to the 1.3 release. If you have changed your session state you might want to call the bind() method on session explicitly. -Matej -- View this message in context: http://www.nabble.com/Custom-session-not-working...-tf4132685.html#a11771136 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom session not working...
On 7/24/07, spencer.c [EMAIL PROTECTED] wrote: Sorry Matej, I opened the bug per Eelco's request before receiving your two responses. I will close the issue, since it sounds like this has been discussed before, and there are technical reasons for it staying as is. I guess this is just a confirmation that it not intuitive to the uninitiated user, and might be something to keep in mind for future change. In any case, we have known workaround, so no big deal. We need to at least look at how multiple calls to #bind go though. I think it currently just bluntly keep re-registering. Probably not a big deal, but not right either. Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] modal window image resources
There is more of it in the archives, this one might be most relevant http://www.nabble.com/Magic-to-replace-ModalWindow-images-tf3811156.html#a10788038 -Matej On 7/24/07, NateBot2000 [EMAIL PROTECTED] wrote: NateBot20002 wrote: Can you explain how the image resources in the ModalWindow package work? Here is an answer to this question: http://www.thinksharp.org/?cat=16 http://www.thinksharp.org/?cat=16 NateBot2000 -- View this message in context: http://www.nabble.com/modal-window-image-resources-tf4014448.html#a11770901 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Midway between border and listview
Hi all, how can I write a container with associated markup that takes some markup (as a border) and repeats it (as a repeater). If I use a ListView I lose the associated markup. If I use a Border I don't know how to get its body repeated (a Border body inside a ListView doesn't seem to work). For now I'm passing a fragment factory to the container, so it can add a new fragment to every item of an internal ListView, that's fine but it's just a bit cumbersome. Thank you in advance. Cheers, Carlos - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket Excel Example
Hi Edi, I have an excel example that you might like :) Attach the src.rar to any of your existing excel application and try it Features Update: 1. You can now write your modifications to disk 2. You can scroll now however, since wicket still lacks support for scrolling multiple lists with an IPageable instance, its hard to page the way one pages in Excel application There are still many bugs though and it only works well with strings and not numbers yet the more i can spend time to sit with the JExcel API, the more it can be improved -- Aladejebi Ayodeji A., DabarObjects Solutions Phone: +234 9 481 7 156 Mobile: +234 803 589 1780 Email: [EMAIL PROTECTED] Web: www.dabarobjects.com Blog: blog.dabarobjects.com Participate, Collaborate, Innovate Join Community: http://www.cowblock.net/ Get A Free Blog: http://blogs.cowblock.net/ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Page lifetime in wicket
a lot of casting there. maybe we should make WebApplication.get() return (WebApplication)Application.get()? Eelco Hillenius wrote: By default which temp directory does all the all pages stored into? public FilePageStore() { this((File)((WebApplication)Application.get()).getServletContext().getAttribute( javax.servlet.context.tempdir)); } Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Page-lifetime-in-wicket-tf3870856.html#a11776683 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Page lifetime in wicket
maybe we should make WebApplication.get() return (WebApplication)Application.get()? When we switch to JDK 1.5 we should. Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user