Re: [Wicket-user] Re: Tab / Tabed-Page /Tabview Component?
Not core, but a support project is nice. Please take a look at wicket-stuff and look (in CVS) at the wicket-contrib-navmenu project. There's an example for it in wicket-stuff-examples. I need more people to participate/ contribute to this too, so please help. Eelco On 10/30/05, Andrew Berman [EMAIL PROTECTED] wrote: I agree with Johan. Tabs are by no means a core component. In fact, you can accomplish tabs easily using a ListView and some CSS, so it's definitely a design issue as Johan mentioned. See these for the CSS to create tabs: http://www.alistapart.com/articles/slidingdoors/ http://www.alistapart.com/articles/slidingdoors2/ --Andrew On 10/30/05, Johan Compagner [EMAIL PROTECTED] wrote: why is it a core component? It is mostly a design issue if you ask me. Because under neath it are just links that are setting a panel (or switching visibility) How would such a component look like? On 10/30/05, Stefan Lindner [EMAIL PROTECTED] wrote: Dear Dave, dear wicket developers, I had the same question some weeks ago. There once was an example called TabPage and is still available in a silent corner of the CVS. But the Example no longer works with Wicket 1.1. I think a tabbed page is a core component for web development and should be availabe with wicket. Please hel pus, Wicket developers! Thanks in advance Stefan Lindner --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Discussion about strategy
Actually, we're working on that right now. If you take a look at HEAD, you'll find the basis of authorization support integrated in Wicket. Eelco On 10/30/05, wang lei [EMAIL PROTECTED] wrote: I use wicket for over months and develop one project with it. So i have a suggestion for wicket core or wicket-stuff. All of us know,ACL is necessary for a project. Just a simple example, name here is user name Password(label) here is user password(TextField) ... ... ... ... ... ... ... ... ... ... ... ... If the viewer is a administrator,he can see the password,and other users can't see the password. The common users will see the following table. name here is user name ... ... ... ... ... ... ... ... ... ... ... ... In the simple ways,just set the label and textfield invisible.You also can add a wicket container as the parent ofthe label and textfield. Just the container visible. But both of themare not flexible. So i just design a IStrategy interface and many components based on wicket components like label,TextField and other components. The IStrategy interface control the visiblity ,readonly, disabled and other propertiesof the component. It will make the component flexible. I also add jaas and dao together so the component can control itself. How about the design. I need more options about it. 雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱 雅虎助手¨D搜索、杀毒、防骚扰 雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱 雅虎助手¨D搜索、杀毒、防骚扰
[Wicket-user] refreshing page content
Hi guys, I have a small problem with refreshing the page content and I don't know which is the best way to handle it. In short, I have a sign in panel to the left and after the user signs in I'd like to set it to invisible and display a Welcome label in another panel. The code is trivial, I just add to the page both the sign in panel and the panel containing the label and I set their visibility to true and false respectively based on session user is/is not null. What happens is that the signin panel/ welcome label remain the same after signing in, until I reenter the page by the way of clicking on the menu link which displays the page, but I'd like the refresh to be performed right after submission. It's like the setVisible(true/false) for both panels is not called until the next page rendering. Now I know I am missing something related to how components are rendered inside the page or something, but maybe someone can give me a hint. thanks --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Dinamic resources checkAccess
Hello I developing a wicket app that need to check Access to app resources any ideas for implementing this feature? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Linking to targets from within a page
Hello! I just moved over from Tapestry. So, I understand the concept of how Wicket works, but (1) I'm not yet familiar with the implementation details, and (2) I'm not able to find detailed component documentation anywhere... My question is: how do I link to a target within a page, specifically from the same page. For instance, I have a menu at the top that looks like: a href=#link1Link 1/a And later in the same page: a name=link1/a When I wrap the menu link with wicket:link, an NullPointerException is thrown (stack trace below). Thanks for the advice! Dave java.lang.NullPointerException at wicket.markup.html.PackageResource.get (PackageResource.java:144) at wicket.markup.html.PackageResource.get (PackageResource.java:122) at wicket.AutoLinkResolver $CssLink.init(AutoLinkResolver.java:368) at wicket.AutoLinkResolver.resolveAutomaticLink (AutoLinkResolver.java:224) at wicket.AutoLinkResolver.resolve(AutoLinkResolver.java:94) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1139) at wicket.MarkupContainer.renderComponentTagBody (MarkupContainer.java:804) at wicket.MarkupContainer.onComponentTagBody (MarkupContainer.java:746) at wicket.Component.renderComponent(Component.java:1886) at wicket.markup.html.WebMarkupContainer.onRender (WebMarkupContainer.java:77) at wicket.Component.render(Component.java:1160) at wicket.MarkupContainer.autoAdd(MarkupContainer.java:168) at wicket.markup.html.WicketLinkResolver.resolve (WicketLinkResolver.java:71) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1139) at wicket.MarkupContainer.renderComponentTagBody (MarkupContainer.java:804) at wicket.MarkupContainer.onComponentTagBody (MarkupContainer.java:746) at wicket.Component.renderComponent(Component.java:1886) at wicket.markup.html.WebMarkupContainer.onRender (WebMarkupContainer.java:77) at wicket.Component.render(Component.java:1160) at wicket.MarkupContainer.autoAdd(MarkupContainer.java:168) at wicket.markup.html.BodyOnLoadResolver.resolve (BodyOnLoadResolver.java:67) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1139) at wicket.MarkupContainer.renderAll(MarkupContainer.java:772) at wicket.Page.onRender(Page.java:788) at wicket.Component.render(Component.java:1160) at wicket.Page.doRender(Page.java:251) at wicket.RequestCycle.respond(RequestCycle.java:883) at wicket.RequestCycle.request(RequestCycle.java:421) at wicket.protocol.http.WicketServlet.doGet (WicketServlet.java:197) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at com.bioscene.web.view.internal.app.BiosceneServlet.service (BiosceneServlet.java:52) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:358) at org.mortbay.jetty.servlet.OsgiServletHandler.dispatch (OsgiServletHandler.java:108) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service (HttpConnection.java:790) at org.mortbay.http.HttpConnection.handleNext (HttpConnection.java:961) at org.mortbay.http.HttpConnection.handle (HttpConnection.java:807) at org.mortbay.http.SocketListener.handleConnection (SocketListener.java:218) at org.mortbay.util.ThreadedServer.handle (ThreadedServer.java:300) at org.mortbay.util.ThreadPool$PoolThread.run (ThreadPool.java:511) --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] refreshing page content
Dipu wrote: you can do this by simply switching the visibility of the panels on and off in the onSubmit of your form. I tried it out and its working for me without any problems. Hmm, the thing is that in my case they are not on the same form, they are on different panels. So there is a panel containing my form, and below it, there is a panel containing the label. I can't put them in the same form because they really belong to different components (in my case). Dipu - Original Message - From: Dorel Vaida [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 9:43 AM Subject: [Wicket-user] refreshing page content Hi guys, I have a small problem with refreshing the page content and I don't know which is the best way to handle it. In short, I have a sign in panel to the left and after the user signs in I'd like to set it to invisible and display a Welcome label in another panel. The code is trivial, I just add to the page both the sign in panel and the panel containing the label and I set their visibility to true and false respectively based on session user is/is not null. What happens is that the signin panel/ welcome label remain the same after signing in, until I reenter the page by the way of clicking on the menu link which displays the page, but I'd like the refresh to be performed right after submission. It's like the setVisible(true/false) for both panels is not called until the next page rendering. Now I know I am missing something related to how components are rendered inside the page or something, but maybe someone can give me a hint. thanks --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1187 (20050805) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] dinamic initialice resources
Hello in my wicket app the user can upload images and this images are added to the database app, later user can create simple html documents writing code in a text area or editor i want the user can be abel to add img tag thats reference this dinamics resources like img src=/oz-cms/app/resources/wicket.Application/oz-pos/logo.png alt=logo/ but how can i initialize this resource the first time it is accesed The only idea i have is make the link point to a page that redirect to the correct resource and this page must ensure that resource exist and if not it must load the resource from db and then redirect to resource there are a simple way for doing this or is this the good way for doit? maybe this can help to solve my previous post about resources and Access i can use the page checkAccess and remove the resource each time is and overhead to add and remove resoruces for each request or not? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] refreshing page content
i think you must put the inside onBeginRequest and check what panel display i have do it this in my app i have tow panels in my border one containing userInfo and one login form. In my Border onBeginRequest i make the setVisible based on Session signed or not and works as espected On 10/31/05, Dorel Vaida [EMAIL PROTECTED] wrote: Dipu wrote: you can do this by simply switching the visibility of the panels on and off in the onSubmit of your form. I tried it out and its working for me without any problems. Hmm, the thing is that in my case they are not on the same form, they are on different panels. So there is a panel containing my form, and below it, there is a panel containing the label. I can't put them in the same form because they really belong to different components (in my case). Dipu - Original Message - From: Dorel Vaida [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 9:43 AM Subject: [Wicket-user] refreshing page content Hi guys, I have a small problem with refreshing the page content and I don't know which is the best way to handle it. In short, I have a sign in panel to the left and after the user signs in I'd like to set it to invisible and display a Welcome label in another panel. The code is trivial, I just add to the page both the sign in panel and the panel containing the label and I set their visibility to true and false respectively based on session user is/is not null. What happens is that the signin panel/ welcome label remain the same after signing in, until I reenter the page by the way of clicking on the menu link which displays the page, but I'd like the refresh to be performed right after submission. It's like the setVisible(true/false) for both panels is not called until the next page rendering. Now I know I am missing something related to how components are rendered inside the page or something, but maybe someone can give me a hint. thanks --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1187 (20050805) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] refreshing page content
Can't you send the reference of the respective panels to the form andswitch visibility soi will have the following panelslike given below WelcomePanel welcomePanel = new WelcomePanel("welcomePanel"); add(welcomePanel);welcomePanel.setVisible(false); LoginPanel loginPanel = new LoginPanel("loginPanel",properties); LoginForm loginForm =new LoginForm("LoginForm",welcomePanel,loginPanel ) add(loginForm ); and do the following in the forms on submit public final void onSubmit() {if (authenticateUser("uname","password")) { this.loginPanel.setVisible(false); this.welcomePanel.setVisible(true); } else { // do something here } } I am not sure if this is the best way Dipu - Original Message - From: "Dorel Vaida" [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 11:57 AM Subject: Re: [Wicket-user] refreshing page content Dipu wrote: you can do this by simply switching the visibility of the panels on and off in the onSubmit of your form. I tried it out and its working for me without any problems. Hmm, the thing is that in my case they are not on the same form, they are on different panels. So there is a panel containing my form, and below it, there is a panel containing the label. I can't put them in the same form because they really belong to different components (in my case). Dipu - Original Message - From: "Dorel Vaida" [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 9:43 AM Subject: [Wicket-user] refreshing page content Hi guys, I have a small problem with refreshing the page content and I don't know which is the best way to handle it. In short, I have a sign in panel to the left and after the user signs in I'd like to set it to invisible and display a "Welcome" label in another panel. The code is trivial, I just add to the page both the sign in panel and the panel containing the label and I set their visibility to true and false respectively based on session user is/is not null. What happens is that the signin panel/ welcome label remain the same after signing in, until I reenter the page by the way of clicking on the menu link which displays the page, but I'd like the refresh to be performed right after submission. It's like the setVisible(true/false) for both panels is not called until the next page rendering. Now I know I am missing something related to how components are rendered inside the page or something, but maybe someone can give me a hint. thanks --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1187 (20050805) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Tab / Tabed-Page /Tabview Component?
In my Ui design experience i found WicketStack very usefull, i my current wicket app i design my own wicket stackt that was very simple using standar wicket components i extend panel and adding only this tow methods and a java Map that permit me to map panelName to a component void addPanel(Panel panel,String panelName); this adding the Panel component as a child using add and added the componentName to the map to permit reference it by name and not by id void showPanel(String panelName) ; this method must setVisble false on current panel and visible true in panel with pageName a wicketStack combined with a List of links to showPage() can be a TabWicket what i can implement now is a way to anidate wicketStacks a maintain urls bookMarkable but this is in my TODO list On 10/31/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Not core, but a support project is nice. Please take a look at wicket-stuff and look (in CVS) at the wicket-contrib-navmenu project. There's an example for it in wicket-stuff-examples. I need more people to participate/ contribute to this too, so please help. Eelco On 10/30/05, Andrew Berman [EMAIL PROTECTED] wrote: I agree with Johan. Tabs are by no means a core component. In fact, you can accomplish tabs easily using a ListView and some CSS, so it's definitely a design issue as Johan mentioned. See these for the CSS to create tabs: http://www.alistapart.com/articles/slidingdoors/ http://www.alistapart.com/articles/slidingdoors2/ --Andrew On 10/30/05, Johan Compagner [EMAIL PROTECTED] wrote: why is it a core component? It is mostly a design issue if you ask me. Because under neath it are just links that are setting a panel (or switching visibility) How would such a component look like? On 10/30/05, Stefan Lindner [EMAIL PROTECTED] wrote: Dear Dave, dear wicket developers, I had the same question some weeks ago. There once was an example called TabPage and is still available in a silent corner of the CVS. But the Example no longer works with Wicket 1.1. I think a tabbed page is a core component for web development and should be availabe with wicket. Please hel pus, Wicket developers! Thanks in advance Stefan Lindner --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] refreshing page content
I think that my aproach is cleaner because you don't need to create a dependecie between InfoPanel and LoginPanel in your Page or Component add(loginPanel=new LoginPanel(loginPanel)); add(infoPanel=new InfoPanel(InfoPanel)); overload this method to do the job onBeginRequest() { if(getSession.isSignedIn()) { infoPanel.setVisible(true); loginPanel.setVisible(false); } else { infoPanel.setVisible(false); loginPanel.setVisible(true); } } On 10/31/05, Dipu [EMAIL PROTECTED] wrote: Can't you send the reference of the respective panels to the form and switch visibility so i will have the following panels like given below WelcomePanel welcomePanel = new WelcomePanel(welcomePanel); add(welcomePanel); welcomePanel.setVisible(false); LoginPanel loginPanel = new LoginPanel(loginPanel,properties); LoginForm loginForm =new LoginForm(LoginForm,welcomePanel,loginPanel ) add(loginForm ); and do the following in the forms on submit public final void onSubmit() { if (authenticateUser(uname,password)) { this.loginPanel.setVisible(false); this.welcomePanel.setVisible(true); } else { // do something here } } I am not sure if this is the best way Dipu - Original Message - From: Dorel Vaida [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 11:57 AM Subject: Re: [Wicket-user] refreshing page content Dipu wrote: you can do this by simply switching the visibility of the panels on and off in the onSubmit of your form. I tried it out and its working for me without any problems. Hmm, the thing is that in my case they are not on the same form, they are on different panels. So there is a panel containing my form, and below it, there is a panel containing the label. I can't put them in the same form because they really belong to different components (in my case). Dipu - Original Message - From: Dorel Vaida [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 9:43 AM Subject: [Wicket-user] refreshing page content Hi guys, I have a small problem with refreshing the page content and I don't know which is the best way to handle it. In short, I have a sign in panel to the left and after the user signs in I'd like to set it to invisible and display a Welcome label in another panel. The code is trivial, I just add to the page both the sign in panel and the panel containing the label and I set their visibility to true and false respectively based on session user is/is not null. What happens is that the signin panel/ welcome label remain the same after signing in, until I reenter the page by the way of clicking on the menu link which displays the page, but I'd like the refresh to be performed right after submission. It's like the setVisible(true/false) for both panels is not called until the next page rendering. Now I know I am missing something related to how components are rendered inside the page or something, but maybe someone can give me a hint. thanks --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1187 (20050805) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
[Wicket-user] RE: Accessing the PropertyModel of a TextField
Hello Johan, the text property of the POJO and the ModelObject are both null. At page rendering and at page submit time. What I want to know is - why are they null when I've just entered text into the TextField? Why is the text not read? Is it because the textfield is added as part of a Form and it will only be submitted when the Form itself gets submitted? INFO - NaviPage - TextField Model: Model:classname=[wicket.model.PropertyModel]:attached=false: nestedModel=[null]:expression=[text]:propertyType=[null] INFO - NaviPage - TextField ModelObject: null INFO - NaviPage - TextField ModelObjectString: DEBUG - NaviPage - text of IdString: null Regards, Chantal Date: Fri, 28 Oct 2005 16:14:55 +0200 From: Johan Compagner [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Reply-To: wicket-user@lists.sourceforge.net so you are saying that this little piece of code: TextField tf =3D new TextField(qid + Cat, new PropertyModel(pojoObj, text)); boolean test =3D pojoObject.getText().equals(tf.getModelObject()); then test is false? On 10/28/05, Chantal Ackermann [EMAIL PROTECTED] wrote: Hello all, hello Igor, thanks for your helpful reply. I adjusted the code so that only the return of TextField.getModelObjectAsString is set in the approriate POJO, which is then written to the database, and the ComboBox gets updated. The backend routines are all called as expected. but... I still do not get a value from the TextField. I tried PropertyModel and Model and both have a null ModelObject and thus return an empty string on getModelObjectAsString(). Here is my logging output with Model: INFO - NaviPage - NewCategoryButton.onSubmit():semNaviButton INFO - NaviPage - TextField Model: Model:classname=3D[wicket.model.Model]:nestedModel=3D[null]: object=3D[nul= l] INFO - NaviPage - TextField ModelObject: null INFO - NaviPage - TextField ModelObjectString: with PropertyModel: INFO - NaviPage - NewCategoryButton.onSubmit():semNaviButton INFO - NaviPage - TextField Model: Model:classname=3D[wicket.model.PropertyModel]:attached=3Dfalse: nestedModel=3D[null]:expression=3D[text]:propertyType=3D[null] INFO - NaviPage - TextField ModelObject: null INFO - NaviPage - TextField ModelObjectString: Instantiation of the TextField with Model: TextField tf =3D new TextField(qid + Cat, new Model()); with PropertyModel: TextField tf =3D new TextField(qid + Cat, new PropertyModel(pojoObj, text)); The onSubmit Method of the Button Subtype: public void onSubmit() { log.info(NewCategoryButton.onSubmit(): + getId()); IModel m =3D textField.getModel(); log.info(TextField Model: + m); log.info(TextField ModelObject: + textField.getModelObject()); log.info(TextField ModelObjectString: + textField.getModelObjectAsString()); ids.setText(textField.getModelObjectAsString()); getDao().merge(ids); choice.setChoices(getDao().findAllFromClass(ids.getClass())); choice.updateModel(); } I did realize though, that the nested Model was the wrong way to go. But why is the Model Object null? IMHO this one is the object that is used to return the String value from, inside getModelObjectAsString. Do I have to set it myself? (I thought at least PropertyModel would use my POJO?) I can't find a hint in the API. I am quite sure that I missed something crucially substantial about Models... ^^ Best regards, Chantal From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] Accessing the PropertyModel of a TextField (former How can a model wrap more than one POJO) Date: Wed, 26 Oct 2005 09:36:57 -0700 Reply-To: wicket-user@lists.sourceforge.net The nested model does not refer to your object, it refers to a model nested inside the current model (notice the Imodel return type). Some models support this, others don't. The property model does not. It has its own internal pointer to your object. To get the text from the textfield simply do: textfield.getModelObjectAsString() - this does the following - retrieve the model from the textfield which is your property model, calls getModelObject on the property model which retrieves the property from your model object, and then casts that to a string all in one convinient step. -Igor --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --=_Part_2386_20491034.1130508895300 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline so you are saying
[Wicket-user] add js-function to header only once?
We're developing Dojo FX which require some javascript to be added to the page. Our FX extend DojoAjaxHandler so we can make header contributions. Only problem now is an efficiency problem. Currently a +- 15 line javascript function is added to the page everytime an effect is added. I have rewritten this js function so that it is generic and only needed once. So if I were to add 5 FXOnClickWipers to my page, my renderHeadContribution() nicely adds 5 functions to the page's head. Currently, the functions are different, but hold a lot of redundant code. As I stated before, I have rewritten the javascript code to be rendered, so that the entire function only has to be rendered once, and every other FXOnClickWiper only has to render one extra line to the head. Is there a way that I can render the function once and then make a 1 line contribution to the page per effect? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] refreshing page content
I think logic like this should be in the onsubmit handler because that what should logically trigger it: the form submit in the signin panel. Having this in your onbeginrequest causes this logic to execute everytime the page is access which is not necessarily what you want. Furthermore you dont need to create any interdependencies, you can navigate the structure in the onsubmit handler using ids: ie public final void onSubmit() { Panel signin=getPage().get(path).get(to).get(signin); Panel info=getPage().get(path).get(to).get(info); } -Igor On 10/31/05, Dipu [EMAIL PROTECTED] wrote: cool , thats lot better, thanks you for the tip. Dipu - Original Message - From: pepone pepone [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 12:38 PM Subject: Re: [Wicket-user] refreshing page content I think that my aproach is cleaner because you don't need to create adependecie between InfoPanel and LoginPanelin your Page or Component add(loginPanel=new LoginPanel(loginPanel));add(infoPanel=new InfoPanel(InfoPanel));overload this method to do the jobonBeginRequest(){ if(getSession.isSignedIn ()) { infoPanel.setVisible(true); loginPanel.setVisible(false); } else { infoPanel.setVisible(false); loginPanel.setVisible(true); }}On 10/31/05, Dipu [EMAIL PROTECTED] wrote: Can't you send the reference of the respective panels to the form and switch visibility so i will have the following panels like given below WelcomePanel welcomePanel = new WelcomePanel(welcomePanel); add(welcomePanel); welcomePanel.setVisible(false); LoginPanel loginPanel = new LoginPanel(loginPanel,properties); LoginForm loginForm =new LoginForm(LoginForm,welcomePanel,loginPanel ) add(loginForm ); and do the following in the forms on submit public final void onSubmit() { if (authenticateUser(uname,password)) { this.loginPanel.setVisible(false); this.welcomePanel.setVisible(true); } else { // do something here } } I am not sure if this is the best way Dipu - Original Message - From: Dorel Vaida [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 11:57 AM Subject: Re: [Wicket-user] refreshing page content Dipu wrote: you can do this by simply switching the visibility of the panels on and off in the onSubmit of your form. I tried it out and its working for me without any problems. Hmm, the thing is that in my case they are not on the same form, they are on different panels. So there is a panel containing my form, and below it, there is a panel containing the label. I can't put them in the same form because they really belong to different components (in my case).Dipu- Original Message - From: Dorel Vaida [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 9:43 AM Subject: [Wicket-user] refreshing page content Hi guys, I have a small problem with refreshing the page content and I don't know which is the best way to handle it. In short, I have a sign in panel to the left and after the user signs in I'd like to set it to invisible and display a Welcome label in another panel. The code is trivial, I just add to the page both the sign in panel and the panel containing the label and I set their visibility to true and false respectively based on session user is/is not null. What happens is that the signin panel/ welcome label remain the same after signing in, until I reenter the page by the way of clicking on the menu link which displays the page, but I'd like the refresh to be performed right after submission. It's like the setVisible(true/false) for both panels is not called until the next page rendering. Now I know I am missing something related to how components are rendered inside the page or something, but maybe someone can give me a hint. thanks --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1187 (20050805) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information
Re: [Wicket-user] refreshing page content
Igor Vaynberg wrote: I think logic like this should be in the onsubmit handler because that what should logically trigger it: the form submit in the signin panel. Having this in your onbeginrequest causes this logic to execute everytime the page is access which is not necessarily what you want. Furthermore you dont need to create any interdependencies, you can navigate the structure in the onsubmit handler using ids: ie public final void onSubmit() { Panel signin=getPage().get(path).get(to).get(signin); Panel info=getPage().get(path).get(to).get(info); } Well, it's true, but the problem I was heaving wasn't related to coupling between panels or anything, but it was the fact that somehow, though I set the panels to invisible in the submit handler, the page seem to ignore this fact until I reopen it. -Igor On 10/31/05, *Dipu* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: cool , thats lot better, thanks you for the tip. Dipu - Original Message - From: pepone pepone [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 12:38 PM Subject: Re: [Wicket-user] refreshing page content I think that my aproach is cleaner because you don't need to create a dependecie between InfoPanel and LoginPanel in your Page or Component add(loginPanel=new LoginPanel(loginPanel)); add(infoPanel=new InfoPanel(InfoPanel)); overload this method to do the job onBeginRequest() { if(getSession.isSignedIn ()) { infoPanel.setVisible(true); loginPanel.setVisible(false); } else { infoPanel.setVisible(false); loginPanel.setVisible(true); } } On 10/31/05, Dipu [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Can't you send the reference of the respective panels to the form and switch visibility so i will have the following panels like given below WelcomePanel welcomePanel = new WelcomePanel(welcomePanel); add(welcomePanel); welcomePanel.setVisible(false); LoginPanel loginPanel = new LoginPanel(loginPanel,properties); LoginForm loginForm =new LoginForm(LoginForm,welcomePanel,loginPanel ) add(loginForm ); and do the following in the forms on submit public final void onSubmit() { if (authenticateUser(uname,password)) { this.loginPanel.setVisible(false); this.welcomePanel.setVisible(true); } else { // do something here } } I am not sure if this is the best way Dipu - Original Message - From: Dorel Vaida [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 11:57 AM Subject: Re: [Wicket-user] refreshing page content Dipu wrote: you can do this by simply switching the visibility of the panels on and off in the onSubmit of your form. I tried it out and its working for me without any problems. Hmm, the thing is that in my case they are not on the same form, they are on different panels. So there is a panel containing my form, and below it, there is a panel containing the label. I can't put them in the same form because they really belong to different components (in my case). Dipu - Original Message - From: Dorel Vaida [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 9:43 AM Subject: [Wicket-user] refreshing page content Hi guys, I have a small problem with refreshing the page content and I don't know which is the best way to handle it. In short, I have a sign in panel to the left and after the user signs in I'd like to set it to invisible and display a Welcome label in another panel. The code is trivial, I just add to the page both the sign in panel and the panel containing the label and I set their visibility to true and false respectively based on session user is/is not null. What happens is that the signin panel/ welcome label remain the same after signing in, until I reenter the page by the way of clicking on the menu link which displays the page, but I'd like the refresh to be performed right after submission. It's like the setVisible(true/false) for both panels is not called until the next page rendering. Now I know I am missing something related to how components are rendered inside the page or something, but maybe someone can give me a hint.
Re: [Wicket-user] RE: Accessing the PropertyModel of a TextField
I don't understand what you expect at what time. So at render time the text is (or null) and this is what you expect? Because the pojo object text property is or null? Then after a form submit when you have type something in it it is still null? Ofcourse must the form be submitten, how else would text be transfered from the browser to the server?? johan On 10/31/05, Chantal Ackermann [EMAIL PROTECTED] wrote: Hello Johan,the text property of the POJO and the ModelObject are both null. Atpage rendering and at page submit time. What I want to know is - whyare they null when I've just entered text into the TextField? Why is the text not read? Is it because the textfield is added as part of aForm and it will only be submitted when the Form itself gets submitted?INFO- NaviPage - TextField Model:Model:classname=[wicket.model.PropertyModel]:attached=false:nestedModel=[null]:_expression_=[text]:propertyType=[null]INFO- NaviPage - TextField ModelObject: nullINFO- NaviPage - TextField ModelObjectString:DEBUG - NaviPage - text of IdString: nullRegards,Chantal
Re: [Wicket-user] refreshing page content
Well, it's true, but the problem I was heaving wasn't related tocoupling between panels or anything, but it was the fact that somehow, though I set the panels to invisible in the submit handler, the pageseem to ignore this fact until I reopen it. What do you mean by reopen it? The following works for me, it toggles between panels when the button is pressed: public Index(final PageParameters parameters) { add(new TestPanel(a)); add(new TestPanelB(b).setVisible(false)); add(new Form(form) { protected void onSubmit() { Component a=getPage().get(a); a.setVisible(!a.isVisible()); Component b=getPage().get(b); b.setVisible(!b.isVisible());} });} -Igor
Re: [Wicket-user] Re: Tab / Tabed-Page /Tabview Component?
I use the idea of a public interface Tab { IModel getTitle(); Panel getPanel(String panelId); } My tabbedpane component takes in a list of Tab object, this allows me to create the panels dynamically - only when they are accessed by the user. I think this is a better approach then creating all the panels at once and toggling visibility because itsignificantly decreases session size. My component uses replace(Component c) to switch the panels. -Igor On 10/31/05, pepone pepone [EMAIL PROTECTED] wrote: In my Ui design experience i found WicketStack very usefull, i mycurrent wicket app i design my own wicket stackt that was very simple using standar wicket components i extend panel and adding only thistow methods and a java Map that permit me to map panelName to acomponentvoid addPanel(Panel panel,String panelName);this adding the Panel component as a child using add and added the componentName to the map to permit reference it by name and not by idvoid showPanel(String panelName) ;this method must setVisble false on current panel and visible true inpanel with pageName a wicketStack combined with a List of links to showPage() can be a TabWicketwhat i can implement now is a way to anidate wicketStacks a maintainurls bookMarkable but this is in my TODO listOn 10/31/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Not core, but a support project is nice. Please take a look at wicket-stuff and look (in CVS) at the wicket-contrib-navmenu project. There's an example for it in wicket-stuff-examples. I need more people to participate/ contribute to this too, so please help. Eelco On 10/30/05, Andrew Berman [EMAIL PROTECTED] wrote: I agree with Johan.Tabs are by no means a core component.In fact, you can accomplish tabs easily using a ListView and some CSS, so it's definitely a design issue as Johan mentioned. See these for the CSS to create tabs:http://www.alistapart.com/articles/slidingdoors/ http://www.alistapart.com/articles/slidingdoors2/ --AndrewOn 10/30/05, Johan Compagner [EMAIL PROTECTED] wrote: why is it a core component? It is mostly a design issue if you ask me. Because under neath itare just links that are setting a panel (or switching visibility) How would such a component look like? On 10/30/05, Stefan Lindner [EMAIL PROTECTED] wrote:Dear Dave, dear wicket developers, I had the same question some weeks ago. There once was an example called TabPage and is still available in a silent corner of the CVS. But theExample no longer works with Wicket 1.1. I think a tabbed page is a corecomponent for web development and should be availabe with wicket. Please hel pus, Wicket developers! Thanks in advance Stefan Lindner ---This SF.Net email is sponsored by the JBoss Inc.Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005Visit http://www.jboss.com/services/certification for more information___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ---This SF.Net email is sponsored by the JBoss Inc.Get Certified Today * Register for a JBoss Training CourseFree Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dinamic resources checkAccess
We certainly should do. What's your use case? Eelco On 10/31/05, pepone pepone [EMAIL PROTECTED] wrote: Hello I developing a wicket app that need to check Access to app resources any ideas for implementing this feature? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Tab / Tabed-Page /Tabview Component?
Can you share your Component with us? that would be nice Thanks, Dave Igor Vaynberg wrote: I use the idea of a public interface Tab { IModel getTitle(); Panel getPanel(String panelId); } My tabbedpane component takes in a list of Tab object, this allows me to create the panels dynamically - only when they are accessed by the user. I think this is a better approach then creating all the panels at once and toggling visibility because it significantly decreases session size. My component uses replace(Component c) to switch the panels. -Igor On 10/31/05, *pepone pepone* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: In my Ui design experience i found WicketStack very usefull, i my current wicket app i design my own wicket stackt that was very simple using standar wicket components i extend panel and adding only this tow methods and a java Map that permit me to map panelName to a component void addPanel(Panel panel,String panelName); this adding the Panel component as a child using add and added the componentName to the map to permit reference it by name and not by id void showPanel(String panelName) ; this method must setVisble false on current panel and visible true in panel with pageName a wicketStack combined with a List of links to showPage() can be a TabWicket what i can implement now is a way to anidate wicketStacks a maintain urls bookMarkable but this is in my TODO list On 10/31/05, Eelco Hillenius [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Not core, but a support project is nice. Please take a look at wicket-stuff and look (in CVS) at the wicket-contrib-navmenu project. There's an example for it in wicket-stuff-examples. I need more people to participate/ contribute to this too, so please help. Eelco On 10/30/05, Andrew Berman [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I agree with Johan. Tabs are by no means a core component. In fact, you can accomplish tabs easily using a ListView and some CSS, so it's definitely a design issue as Johan mentioned. See these for the CSS to create tabs: http://www.alistapart.com/articles/slidingdoors/ http://www.alistapart.com/articles/slidingdoors/ http://www.alistapart.com/articles/slidingdoors2/ --Andrew On 10/30/05, Johan Compagner [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: why is it a core component? It is mostly a design issue if you ask me. Because under neath it are just links that are setting a panel (or switching visibility) How would such a component look like? On 10/30/05, Stefan Lindner [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Dear Dave, dear wicket developers, I had the same question some weeks ago. There once was an example called TabPage and is still available in a silent corner of the CVS. But the Example no longer works with Wicket 1.1. I think a tabbed page is a core component for web development and should be availabe with wicket. Please hel pus, Wicket developers! Thanks in advance Stefan Lindner --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of
Re: [Wicket-user] Dinamic resources checkAccess
I working in a simple cms where user can manage a filesystem like structure it can create TextDocs and Binary files I develop a simple Acl system for use with this objects each object has three rolls ObjectAdmin ObjectEditor and ObjectReader later admin can manager what groups beyong to each roll, i use checkAcces in my components combined with this acl and it works as expected i have only a problem when added binary files as app resources beacuse they are accesibles for every body i want that this binary files that are in my object db system can be accesible as app resources because in this way are cacheables as if they was plain files On 10/31/05, Eelco Hillenius [EMAIL PROTECTED] wrote: We certainly should do. What's your use case? Eelco On 10/31/05, pepone pepone [EMAIL PROTECTED] wrote: Hello I developing a wicket app that need to check Access to app resources any ideas for implementing this feature? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] refreshing page content
onBeginRequest ensure that login panel is reshow if session is not still alive in next request On 10/31/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Well, it's true, but the problem I was heaving wasn't related to coupling between panels or anything, but it was the fact that somehow, though I set the panels to invisible in the submit handler, the page seem to ignore this fact until I reopen it. What do you mean by reopen it? The following works for me, it toggles between panels when the button is pressed: public Index(final PageParameters parameters) { add(new TestPanel(a)); add(new TestPanelB(b).setVisible(false)); add(new Form(form) { protected void onSubmit() { Component a=getPage().get(a); a.setVisible(!a.isVisible()); Component b=getPage().get(b); b.setVisible(!b.isVisible()); } }); } -Igor --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Tab / Tabed-Page /Tabview Component?
Tabs like that could work too. Maybe easier than navmenu. The idea behind navmenu was that navigation inherently is a tree structure - possibly just one level - but in such a way that you wnat to access each level seperately (so that you can render each level independently). Having a tree makes it easy to have a dependency like when you select 'option 1' from the first level, you'll have 'option a' and 'option b' for the second level (childs of 'option 1'). I'd propose to see whether we can merge the ideas somehow. There's enough overlap already, I'd like to see one good tabbed panel/ navigation component ('cause I think it is the same thing in the end) that is supported (part of one of the wicket core projects). Eelco --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] refreshing page content
IMHO this isnt the right place for this kind of stuff you can override isvisible() on the login panel and make it something like this: LoginPanel { isVisible() { return isUserLoggedin(); } } that way you dont even need to toggle it anywhere, its fully automatic and only shows up when it needs to. -Igor On 10/31/05, pepone pepone [EMAIL PROTECTED] wrote: onBeginRequest ensure that login panel is reshow if session is notstill alive in next requestOn 10/31/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Well, it's true, but the problem I was heaving wasn't related to coupling between panels or anything, but it was the fact that somehow, though I set the panels to invisible in the submit handler, the page seem to ignore this fact until I reopen it. What do you mean by reopen it? The following works for me, it toggles between panels when the button is pressed:public Index(final PageParameters parameters) { add(new TestPanel(a)); add(new TestPanelB(b).setVisible(false)); add(new Form(form) {protected void onSubmit(){ Component a=getPage().get(a); a.setVisible(!a.isVisible()); Component b=getPage().get(b);b.setVisible(!b.isVisible());} });} -Igor--- This SF.Net email is sponsored by the JBoss Inc.Get Certified Today * Register for a JBoss Training CourseFree Certification Exam for All Training Attendees Through End of 2005Visit http://www.jboss.com/services/certification for more information___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] refreshing page content
ofcourse that should be return !isUserLoggedin() :) -Igor On 10/31/05, Igor Vaynberg [EMAIL PROTECTED] wrote: IMHO this isnt the right place for this kind of stuff you can override isvisible() on the login panel and make it something like this: LoginPanel { isVisible() { return isUserLoggedin(); } } that way you dont even need to toggle it anywhere, its fully automatic and only shows up when it needs to. -Igor On 10/31/05, pepone pepone [EMAIL PROTECTED] wrote: onBeginRequest ensure that login panel is reshow if session is notstill alive in next requestOn 10/31/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Well, it's true, but the problem I was heaving wasn't related to coupling between panels or anything, but it was the fact that somehow, though I set the panels to invisible in the submit handler, the page seem to ignore this fact until I reopen it. What do you mean by reopen it? The following works for me, it toggles between panels when the button is pressed:public Index(final PageParameters parameters) { add(new TestPanel(a)); add(new TestPanelB(b).setVisible(false)); add(new Form(form) {protected void onSubmit() { Component a=getPage().get(a); a.setVisible(!a.isVisible()); Component b=getPage().get(b);b.setVisible (!b.isVisible());} });} -Igor--- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training CourseFree Certification Exam for All Training Attendees Through End of 2005Visit http://www.jboss.com/services/certification for more information___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] refreshing page content
aja i see is more elgant and simple On 10/31/05, Igor Vaynberg [EMAIL PROTECTED] wrote: ofcourse that should be return !isUserLoggedin() :) -Igor On 10/31/05, Igor Vaynberg [EMAIL PROTECTED] wrote: IMHO this isnt the right place for this kind of stuff you can override isvisible() on the login panel and make it something like this: LoginPanel { isVisible() { return isUserLoggedin(); } } that way you dont even need to toggle it anywhere, its fully automatic and only shows up when it needs to. -Igor On 10/31/05, pepone pepone [EMAIL PROTECTED] wrote: onBeginRequest ensure that login panel is reshow if session is not still alive in next request On 10/31/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Well, it's true, but the problem I was heaving wasn't related to coupling between panels or anything, but it was the fact that somehow, though I set the panels to invisible in the submit handler, the page seem to ignore this fact until I reopen it. What do you mean by reopen it? The following works for me, it toggles between panels when the button is pressed: public Index(final PageParameters parameters) { add(new TestPanel(a)); add(new TestPanelB(b).setVisible(false)); add(new Form(form) { protected void onSubmit() { Component a=getPage().get(a); a.setVisible(!a.isVisible()); Component b=getPage().get(b); b.setVisible (!b.isVisible()); } }); } -Igor --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] add js-function to header only once?
You can override renderHeadInitContribution. You need to call super too though, if you want dojo to keep working. Eelco On 10/31/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: I don't know much about the AjaxHandler, but with markup (wicket:head) copying is done only once by default. May be you can take a look at the existing code. Juergen On 10/31/05, Marco van de Haar [EMAIL PROTECTED] wrote: We're developing Dojo FX which require some javascript to be added to the page. Our FX extend DojoAjaxHandler so we can make header contributions. Only problem now is an efficiency problem. Currently a +- 15 line javascript function is added to the page everytime an effect is added. I have rewritten this js function so that it is generic and only needed once. So if I were to add 5 FXOnClickWipers to my page, my renderHeadContribution() nicely adds 5 functions to the page's head. Currently, the functions are different, but hold a lot of redundant code. As I stated before, I have rewritten the javascript code to be rendered, so that the entire function only has to be rendered once, and every other FXOnClickWiper only has to render one extra line to the head. Is there a way that I can render the function once and then make a 1 line contribution to the page per effect? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket 1.1 available
The Wicket team is proud to announce the availability of Wicket 1.1 for download! Wicket is a Java component oriented web application framework that takes simplicity, separation of concerns and easy of use to a whole new level. Wicket web applications consist of HTML markup and Java classes. No strange languages, no strange markup, no configuration files, no specialized, expensive tools: just Java, HTML and you. This Wicket version contains a lot of improvements from the 1.0 version. New features include: o Simplified feedback and validation - enables custom feedback strategies o Live Component Reference - the examples project contains a component reference showing how to use the components. o JavaScript and CSS support for components - contribute JavaScript and CSS from your component to the using page o Markup Inheritance - enables template pages and components o Inclusion of external markup o Simplified Choice component o Advanced Table components - easily generate pageable/sortable tables backed by database or any other datasource in wicket-extensions (graduated components from wicket-contrib-dataview) o Less dependencies - we removed several library dependencies o Customizable Form handling - easy for quick forms, easily enables full custom form processing o Improved resource handling o Date picker component - will not get you dates, but a JavaScript and text field enabled localized calendar component. o Improved URL handling o AJAX request handling support - support for two leading AJAX JavaScript libraries is available as separate downloads from our Wicket Stuff project: scriptaculous and DOJO toolkit The Wicket team wishes to extend their gratitude to the user and developer community for their testing efforts and help, making this release a reality! The Wicket 1.1 distribution can be downloaded from the SourceForge servers by following this link: http://sourceforge.net/project/showfiles.php?group_id=3D119783 The Wicket 1.1 release documentation can be found at: http://wicket.sourceforge.net/wicket-1.1 Thank you for downloading and using Wicket! - the Wicket Team --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Fwd: [Wicket-announce] Vote for Wicket
There aren't that many subscriptions to announce, that's why I'm forwarding it to the user list. Thanks Miko! Eelco p.s. only honest anwers of course :) -- Forwarded message -- From: Miko Matsumura [EMAIL PROTECTED] Date: Oct 31, 2005 4:31 PM Subject: [Wicket-announce] Vote for Wicket To: [EMAIL PROTECTED] http://forums.about.com/n/pfx/forum.aspx?nav=messagestsn=1tid=1584webtag=ab-java Vote for Wicket here! --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Suggestion for autolink
(Not sure if this is the right list to make a suggestion...) I'm very impressed with how autolink works. Very simple and almost like magic! One thing I like is how autolink is intelligent enough to know not to link to the same page. This is useful for making menus, for example. However, I think that it is not appropriate to enclose the link with i markup tags. It would be better to either enclose them in tags in the wicket namespace, or even better with span class=thisPage or something like that. Then, the author could decide how to present the (non) links using CSS. In my case, I am going to have to override autolink's behaviour to do this, but I think that it should perhaps be the default behaviour. Cheers, Dave --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Linking to targets from within a page
Hello! a href=#link1Link 1/a That looks to me like a bug. wicket:link autolink=false This works: wicket:link autolink=falsea href=#link1Link 1/a These cause a NPE: wicket:linka href=#link1Link 1/a/wicket:link wicket:linka href=Link 1/a/wicket:link wicket:linka href=SamePage.htmlLink 1/a/wicket:link wicket:linka href=SamePage.html#link1Link 1/a/wicket:link I don't know Wicket well enough yet to say whether or not this is a bug, but it doesn't quite seem right to me... I'm not able to find detailed component documentation anywhere... I guess you know already wiki and examples? Yes, I've seen the wiki and examples. What I'd really like is a reference that shows the various attributes/paramaters available. If I know them, even without detailed explanations I can play around and figure out what I need. Does that exist somewhere? Even in the code is fine if that's all there is right now. Thanks again for the help!! Dave --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Suggestion for autolink
there is a way to override this on application level using ApplicationSettings.setDefaultAfter/BeforeDisabledLink(). Just call that in your application init and you are done. -Igor On 10/31/05, David Leangen [EMAIL PROTECTED] wrote: (Not sure if this is the right list to make a suggestion...)I'm very impressed with how autolink works. Very simple and almost like magic!One thing I like is how autolink is intelligent enough to know notto link to the same page. This is useful for making menus, for example.However, I think that it is not appropriate to enclose the link with i markup tags. It would be better to either enclose them in tags in thewicket namespace, or even better with span class=thisPage orsomething like that. Then, the author could decide how to present the (non) links using CSS.In my case, I am going to have to override autolink's behaviour to dothis, but I think that it should perhaps be the default behaviour.Cheers,Dave--- This SF.Net email is sponsored by the JBoss Inc.Get Certified Today * Register for a JBoss Training CourseFree Certification Exam for All Training Attendees Through End of 2005Visit http://www.jboss.com/services/certification for more information___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Linking to targets from within a page
if you autolink to a page that doesnt exist you get an npe, maybe we should dress it up with a better exception? -Igor On 10/31/05, David Leangen [EMAIL PROTECTED] wrote: Hello! a href="" 1/a That looks to me like a bug. wicket:link autolink=falseThis works:wicket:link autolink=falsea href="" 1/aThese cause a NPE:wicket:linka href="" 1/a/wicket:link wicket:linka href="" 1/a/wicket:linkwicket:linka href="" 1/a/wicket:linkwicket:linka href="" SamePage.html#link1Link 1/a/wicket:linkI don't know Wicket well enough yet to say whether or not this is a bug,but it doesn't quite seem right to me... I'm not able to find detailed component documentation anywhere... I guess you know already wiki and examples?Yes, I've seen the wiki and examples. What I'd really like is areference that shows the various attributes/paramaters available. If I know them, even without detailed explanations I can play around andfigure out what I need.Does that exist somewhere? Even in the code is fine if that's all thereis right now.Thanks again for the help!! Dave---This SF.Net email is sponsored by the JBoss Inc.Get Certified Today * Register for a JBoss Training CourseFree Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Linking to targets from within a page
On Mon, 2005-10-31 at 17:05 -0800, Igor Vaynberg wrote: if you autolink to a page that doesnt exist you get an npe, maybe we should dress it up with a better exception? Understood. But it seems to me that when a page DOES exist, that shouldn't happen... BTW, also noticed something else strange. I was getting a NPE due to a link with the target attribute (stack trace below). Funny thing is that I have two other links with the target attribute, and no problems. The link looks like this: wicket:link autolink=falsea href=http://www.domain.com/index.html; target=_blankLink Text/a/wicket:link I had to override it with autolink=false in order to avoid the NPE. Without the target attribute, no problems. Cheers, Dave --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.1 available
Well done ;-) but the quickstart zip file seem like corrupted after i try to unzip it. --- Martijn Dashorst [EMAIL PROTECTED] wrote: The Wicket team is proud to announce the availability of Wicket 1.1 for download! Wicket is a Java component oriented web application framework that takes simplicity, separation of concerns and easy of use to a whole new level. Wicket web applications consist of HTML markup and Java classes. No strange languages, no strange markup, no configuration files, no specialized, expensive tools: just Java, HTML and you. This Wicket version contains a lot of improvements from the 1.0 version. New features include: o Simplified feedback and validation - enables custom feedback strategies o Live Component Reference - the examples project contains a component reference showing how to use the components. o JavaScript and CSS support for components - contribute JavaScript and CSS from your component to the using page o Markup Inheritance - enables template pages and components o Inclusion of external markup o Simplified Choice component o Advanced Table components - easily generate pageable/sortable tables backed by database or any other datasource in wicket-extensions (graduated components from wicket-contrib-dataview) o Less dependencies - we removed several library dependencies o Customizable Form handling - easy for quick forms, easily enables full custom form processing o Improved resource handling o Date picker component - will not get you dates, but a JavaScript and text field enabled localized calendar component. o Improved URL handling o AJAX request handling support - support for two leading AJAX JavaScript libraries is available as separate downloads from our Wicket Stuff project: scriptaculous and DOJO toolkit The Wicket team wishes to extend their gratitude to the user and developer community for their testing efforts and help, making this release a reality! The Wicket 1.1 distribution can be downloaded from the SourceForge servers by following this link: http://sourceforge.net/project/showfiles.php?group_id=3D119783 The Wicket 1.1 release documentation can be found at: http://wicket.sourceforge.net/wicket-1.1 Thank you for downloading and using Wicket! - the Wicket Team --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Suggestion for autolink
On Mon, 2005-10-31 at 17:01 -0800, Igor Vaynberg wrote: there is a way to override this on application level using ApplicationSettings.setDefaultAfter/ BeforeDisabledLink(). Just call that in your application init and you are done. Oh, this is nice! Thanks for the tip! Guess this invalidates my suggestion. :-) Dave --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace ognl.
I have tried CVS HEAD, but my old codes which based on ognl is broken since I use foo.bar.baz syntax to access public field. I hope that we are not restricted to only getter/setter: private String myProperty public String getMyProperty() public void setMyProperty() but also support : public String myProperty On 10/31/05, Eelco Hillenius [EMAIL PROTECTED] wrote: I agree with Matej.EelcoOn 10/30/05, Matej Knopp [EMAIL PROTECTED] wrote: In my opinion, there's no need for another indirection. From what I've seen, new users are already confused about models, making them even more complicated isn't imho the way to go. I think that Ognl models should be separated from the core and put to extensions. That would also get rid of ognl as a dependecy. Just my 2c. -Matej Johan Compagner wrote: Ok now we released 1.1 i have committed the ognl replacement It is not yet plugable yet we first need to see what we will or can support to bring back ognl for specific things. (plugable or in wicket extentions as its own model?)This is the current javadoc it explains what is possible now: This class parses expressions to lookup or set a value on the object that is given. The supported expressions are: property: This can can then be a bean property with get and set method. Or if a map is given as an object it will be lookup with the property as a key when there is not get method for that property. property1.property2: Both properties are lookup as written above. If property1 evaluates to null then if there is a setMethod (or if it is a map) and the Class of the property has a default constructor then the object will be constructed and set on the object. property.index: If the property is a List or Array then the second property can be a index on that list like: 'mylist.0' this _expression_ will also map on a getProperty(index) or setProperty(index,value) methods. If the object is a List then the list will grow automaticaly if the index is greater then the size Index or map properties can also be written as: property[index] or property[key] On 10/28/05, *Phil Kulak* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I like the idea of being able to plug in OGNL if you really need it. Now that I think about it, I've got a couple ChoiceRenderers that call functions using OGNL. Although, it probably would be very easy to rewrite these by just implementing the interface myself, and much more efficient.--- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list [EMAIL PROTECTED] mailto:[EMAIL PROTECTED].net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user---This SF.Net email is sponsored by the JBoss Inc.Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005Visit http://www.jboss.com/services/certification for more information___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
[Wicket-user] Wicket back-button support
Hi, I haven't actually read this at all, just thought I'd mention it on passing: http://www.theserverside.com/news/thread.tss?thread_id=37307 The article discusses AJAX and back-button support. Is there anything in there we could pick up to improve Wicket? Gili -- http://www.desktopbeautifier.com/ --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Including Javascript the Wicket way
Sorry for making so much noise!! I guess I should have taken more time before moving over to Wicket from Tapestry. Until I get used to the Wicket way, my productivity has gone way down. :-( Sorry for all the questions, but your help is much appreciated. Anyway, I am now trying to include my javascript files in the way described here: http://www.wicket-wiki.org.uk/wiki/index.php/JavaScript But this page only really describes css in any detail. The approach does not appear to be exactly the same for javascript. For those like me who are doing this for the first time and haven't got it yet, it's not quite enough to get me to the ah ha! point. So, what is the best way to do this? For instance: script wicket:id=js language=javascript type=text/javascript src=scripts/main.js/ Along with something like: JavaScriptReference js = new JavaScriptReference(js, ThisPage.class, scripts/main.js); add(js); (Obviously, this is not right, but it's all I can come up with right now...) BTW, are there any detailed references to the components/tags (including a list of attributes/parameters) anywhere like Tapestry has on their site? All I see are: http://www.wicket-wiki.org.uk/wiki/index.php/Tags (unfortunately, almost no useful information) http://www.wicket-library.com/wicket-examples/compref (seems to be a fairly complete list of components along with working examples, but I don't see a listing of the tags, parameters, or attributes to use. Also, I can't find the code for these examples...) Or at least, where should I look in the code to figure this out? Thanks again! Dave --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Tab / Tabed-Page /Tabview Component?
Just checked in my first pass at implementation. Its in wicket-extensions wicket.extensions.markup.html.tabs.TabbedPanel. There is also an example in the component reference that shows four different css styles. Check it out and let me know what you think and how we can make it better. -Igor On 10/31/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Tabs like that could work too. Maybe easier than navmenu. The ideabehind navmenu was that navigation inherently is a tree structure - possibly just one level - but in such a way that you wnat to accesseach level seperately (so that you can render each levelindependently). Having a tree makes it easy to have a dependency likewhen you select 'option 1' from the first level, you'll have 'option a' and 'option b' for the second level (childs of 'option 1').I'd propose to see whether we can merge the ideas somehow. There'senough overlap already, I'd like to see one good tabbed panel/navigation component ('cause I think it is the same thing in the end) that is supported (part of one of the wicket core projects).Eelco---This SF.Net email is sponsored by the JBoss Inc.Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005Visit http://www.jboss.com/services/certification for more information___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace ognl.
This is being fixed (as I read on the dev list). Martijn On 11/1/05, Ingram Chen [EMAIL PROTECTED] wrote: I have tried CVS HEAD, but my old codes which based on ognl is broken since I use foo.bar.baz syntax to access public field. I hope that we are not restricted to only getter/setter: private String myProperty public String getMyProperty() public void setMyProperty() but also support : public String myProperty On 10/31/05, Eelco Hillenius [EMAIL PROTECTED] wrote: I agree with Matej. Eelco On 10/30/05, Matej Knopp [EMAIL PROTECTED] wrote: In my opinion, there's no need for another indirection. From what I've seen, new users are already confused about models, making them even more complicated isn't imho the way to go. I think that Ognl models should be separated from the core and put to extensions. That would also get rid of ognl as a dependecy. Just my 2c. -Matej Johan Compagner wrote: Ok now we released 1.1 i have committed the ognl replacement It is not yet plugable yet we first need to see what we will or can support to bring back ognl for specific things. (plugable or in wicket extentions as its own model?) This is the current javadoc it explains what is possible now: This class parses expressions to lookup or set a value on the object that is given. The supported expressions are: property: This can can then be a bean property with get and set method. Or if a map is given as an object it will be lookup with the property as a key when there is not get method for that property. property1.property2: Both properties are lookup as written above. If property1 evaluates to null then if there is a setMethod (or if it is a map) and the Class of the property has a default constructor then the object will be constructed and set on the object. property.index: If the property is a List or Array then the second property can be a index on that list like: 'mylist.0' this expression will also map on a getProperty(index) or setProperty(index,value) methods. If the object is a List then the list will grow automaticaly if the index is greater then the size Index or map properties can also be written as: property[index] or property[key] On 10/28/05, *Phil Kulak* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I like the idea of being able to plug in OGNL if you really need it. Now that I think about it, I've got a couple ChoiceRenderers that call functions using OGNL. Although, it probably would be very easy to rewrite these by just implementing the interface myself, and much more efficient. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list [EMAIL PROTECTED] mailto:[EMAIL PROTECTED].net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information
Re: [Wicket-user] refreshing page content
Igor Vaynberg wrote: Well, it's true, but the problem I was heaving wasn't related to coupling between panels or anything, but it was the fact that somehow, though I set the panels to invisible in the submit handler, the page seem to ignore this fact until I reopen it. What do you mean by reopen it? I mean, access the page through the menu link which opens it. In contrast with the page being delivered as a result of the form submission. The following works for me, it toggles between panels when the button is pressed: public Index(final PageParameters parameters) { add(new TestPanel(a)); add(new TestPanelB(b).setVisible(false)); add(new Form(form) { protected void onSubmit() { Component a=getPage().get(a); a.setVisible(!a.isVisible()); Component b=getPage().get(b); b.setVisible(!b.isVisible()); } }); } Well, the difference here is that the form is actually on one of the panels. What I'm trying to achieve is loose coupling between the panels, I want them to be set visible/invisible based on session stored information (session user is null or not). Thanks anyway, I'll try harder :-) -Igor --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.1 available
Thanks for noticing. I'm uploading a new version. For all those 18 users that already downloaded the zip, I apologize most sincerely (gotta love the auto sleep function of my Mac). Martijn On 11/1/05, MK Tan [EMAIL PROTECTED] wrote: Well done ;-) but the quickstart zip file seem like corrupted after i try to unzip it. --- Martijn Dashorst [EMAIL PROTECTED] wrote: The Wicket team is proud to announce the availability of Wicket 1.1 for download! Wicket is a Java component oriented web application framework that takes simplicity, separation of concerns and easy of use to a whole new level. Wicket web applications consist of HTML markup and Java classes. No strange languages, no strange markup, no configuration files, no specialized, expensive tools: just Java, HTML and you. This Wicket version contains a lot of improvements from the 1.0 version. New features include: o Simplified feedback and validation - enables custom feedback strategies o Live Component Reference - the examples project contains a component reference showing how to use the components. o JavaScript and CSS support for components - contribute JavaScript and CSS from your component to the using page o Markup Inheritance - enables template pages and components o Inclusion of external markup o Simplified Choice component o Advanced Table components - easily generate pageable/sortable tables backed by database or any other datasource in wicket-extensions (graduated components from wicket-contrib-dataview) o Less dependencies - we removed several library dependencies o Customizable Form handling - easy for quick forms, easily enables full custom form processing o Improved resource handling o Date picker component - will not get you dates, but a JavaScript and text field enabled localized calendar component. o Improved URL handling o AJAX request handling support - support for two leading AJAX JavaScript libraries is available as separate downloads from our Wicket Stuff project: scriptaculous and DOJO toolkit The Wicket team wishes to extend their gratitude to the user and developer community for their testing efforts and help, making this release a reality! The Wicket 1.1 distribution can be downloaded from the SourceForge servers by following this link: http://sourceforge.net/project/showfiles.php?group_id=3D119783 The Wicket 1.1 release documentation can be found at: http://wicket.sourceforge.net/wicket-1.1 Thank you for downloading and using Wicket! - the Wicket Team --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.1 available
And it is fixed... Martijn On 11/1/05, Martijn Dashorst [EMAIL PROTECTED] wrote: Thanks for noticing. I'm uploading a new version. For all those 18 users that already downloaded the zip, I apologize most sincerely (gotta love the auto sleep function of my Mac). Martijn On 11/1/05, MK Tan [EMAIL PROTECTED] wrote: Well done ;-) but the quickstart zip file seem like corrupted after i try to unzip it. --- Martijn Dashorst [EMAIL PROTECTED] wrote: The Wicket team is proud to announce the availability of Wicket 1.1 for download! Wicket is a Java component oriented web application framework that takes simplicity, separation of concerns and easy of use to a whole new level. Wicket web applications consist of HTML markup and Java classes. No strange languages, no strange markup, no configuration files, no specialized, expensive tools: just Java, HTML and you. This Wicket version contains a lot of improvements from the 1.0 version. New features include: o Simplified feedback and validation - enables custom feedback strategies o Live Component Reference - the examples project contains a component reference showing how to use the components. o JavaScript and CSS support for components - contribute JavaScript and CSS from your component to the using page o Markup Inheritance - enables template pages and components o Inclusion of external markup o Simplified Choice component o Advanced Table components - easily generate pageable/sortable tables backed by database or any other datasource in wicket-extensions (graduated components from wicket-contrib-dataview) o Less dependencies - we removed several library dependencies o Customizable Form handling - easy for quick forms, easily enables full custom form processing o Improved resource handling o Date picker component - will not get you dates, but a JavaScript and text field enabled localized calendar component. o Improved URL handling o AJAX request handling support - support for two leading AJAX JavaScript libraries is available as separate downloads from our Wicket Stuff project: scriptaculous and DOJO toolkit The Wicket team wishes to extend their gratitude to the user and developer community for their testing efforts and help, making this release a reality! The Wicket 1.1 distribution can be downloaded from the SourceForge servers by following this link: http://sourceforge.net/project/showfiles.php?group_id=3D119783 The Wicket 1.1 release documentation can be found at: http://wicket.sourceforge.net/wicket-1.1 Thank you for downloading and using Wicket! - the Wicket Team --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Fwd: [Wicket-announce] Vote for Wicket
Eelco Hillenius wrote: http://forums.about.com/n/pfx/forum.aspx?nav=messagestsn=1tid=1584webtag=ab-java Vote for Wicket here! FYI, few votes would help here http://jira.magnolia.info/browse/MAGNOLIA-588 ;) -- Janne Hietamäki Cemron Ltd http://www.cemron.com/ --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Fwd: [Wicket-announce] Vote for Wicket
Thanks for the hint. I didn't sign up, but I always liked magnolia. Maybe it's time to check it out :) Eelco On 10/31/05, Janne Hietamäki [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: http://forums.about.com/n/pfx/forum.aspx?nav=messagestsn=1tid=1584webtag=ab-java Vote for Wicket here! FYI, few votes would help here http://jira.magnolia.info/browse/MAGNOLIA-588 ;) -- Janne Hietamäki Cemron Ltd http://www.cemron.com/ --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] add js-function to header only once?
I saw an example of this in ImmediateCheckBox, but when I made an Immediate TextField I found that my function was not rendered. Is it not true that only the first component to be rendered with a DojoAjaxHandler will render it's renderHeadInitContribution? Because it sets the getImplementtationId() to DojoImpl. If you make multiple different Dojo Components (i.e. ImmediateTextfield and ImmediateCheckBox) on one page, only the first renderHeadInitContribution() is executed because they share the same implementation ID. So if I were to add a renderHeadInitContribution() to one of our dojo effects, and I would add it to my Page already containing another effect, or an ImmediateTextField, my contribution would not be made. Eelco Hillenius wrote: You can override renderHeadInitContribution. You need to call super too though, if you want dojo to keep working. Eelco On 10/31/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: I don't know much about the AjaxHandler, but with markup (wicket:head) copying is done only once by default. May be you can take a look at the existing code. Juergen On 10/31/05, Marco van de Haar [EMAIL PROTECTED] wrote: We're developing Dojo FX which require some javascript to be added to the page. Our FX extend DojoAjaxHandler so we can make header contributions. Only problem now is an efficiency problem. Currently a +- 15 line javascript function is added to the page everytime an effect is added. I have rewritten this js function so that it is generic and only needed once. So if I were to add 5 FXOnClickWipers to my page, my renderHeadContribution() nicely adds 5 functions to the page's head. Currently, the functions are different, but hold a lot of redundant code. As I stated before, I have rewritten the javascript code to be rendered, so that the entire function only has to be rendered once, and every other FXOnClickWiper only has to render one extra line to the head. Is there a way that I can render the function once and then make a 1 line contribution to the page per effect? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Linking to targets from within a page
I agree, it should be improved. Thanks for the information. Juergen On 11/1/05, David Leangen [EMAIL PROTECTED] wrote: On Mon, 2005-10-31 at 17:05 -0800, Igor Vaynberg wrote: if you autolink to a page that doesnt exist you get an npe, maybe we should dress it up with a better exception? Understood. But it seems to me that when a page DOES exist, that shouldn't happen... BTW, also noticed something else strange. I was getting a NPE due to a link with the target attribute (stack trace below). Funny thing is that I have two other links with the target attribute, and no problems. The link looks like this: wicket:link autolink=falsea href=http://www.domain.com/index.html; target=_blankLink Text/a/wicket:link I had to override it with autolink=false in order to avoid the NPE. Without the target attribute, no problems. Cheers, Dave --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user