Re: Tab panel child
Hi martin, this is my code. now i have to insert separate page for each tab. these pages includes one for data grid and one page for ajax example ane page for component. shall we insert a page in to the tab?is it possible?if so tell me how to do it. i used setResponsePage();but it shows error that markup file is not found. please tell me the code. am debut to wicket how can i do this public class TabbedPanelPage extends WebPage { public TabbedPanelPage() { List tabs = new ArrayList(); tabs.add(new AbstractTab(new Model(first tab)) { public Panel getPanel(String panelId) { return new TabPanel1(panelId); } }); tabs.add(new AbstractTab(new Model(second tab)) { public Panel getPanel(String panelId) { return new TabPanel2(panelId); } }); tabs.add(new AbstractTab(new Model(third tab)) { public Panel getPanel(String panelId) { return new TabPanel3(panelId); } }); add(new TabbedPanel(tabs, tabs)); } private static class TabPanel1 extends Panel { public TabPanel1(String id) { super(id); } }; private static class TabPanel2 extends Panel { public TabPanel2(String id) { super(id); } }; private static class TabPanel3 extends Panel { public TabPanel3(String id) { super(id); } }; } On Mon, Jul 20, 2009 at 3:58 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Copy-paste the example from the web and replace the one panel with a grid. ** Martin 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com: yes i mean it.am debut to wicket.how can i achive it please help me my requirement is when i click first tab it should shows a Grid 2nd tab - panel 3rd tab - another componet 4th tab - Another componet On Mon, Jul 20, 2009 at 11:35 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: You mean wicket TabbedPanel component? http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TabbedPanelPage ** Martin 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com: Hello Friends, How can i do tab panel with child coponent. when i click first tab it should shows a Grid 2nd tab - panel 3rd tab - another componet 4th tab - Another componet how can i achieve this? if possible give me some model code -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A
Re: How to Hidden/Disabled Wicket tree with implementation wicket security (Help)
Hi, i have tried to disable/hide component like buttons (as Warren example) with success. but how to Wicket tree not populateTreeItem( hide) because my Class Page not include in my hive file? Does anyone can do it? or my way that call all menu from db for all principals then lets wicket security hide unsecured link is wrong method? any hints/example will be appreciated. thanks --- Pada Jum, 17/7/09, Warren Bell warrenbe...@gmail.com menulis: Dari: Warren Bell warrenbe...@gmail.com Judul: Re: How to Hidden/Disabled Wicket tree with implementation wicket security Kepada: Rizal Indra bujang_kuan...@yahoo.com, users@wicket.apache.org Tanggal: Jumat, 17 Juli, 2009, 10:50 AM Your hive should have something like this with whatever actions you want: permission ${ComponentPermission} ${MyPage}:myPanel:myForm:myWebMarkupContainer, inherit, render, enable; And also secure anything in the container like buttons: permission ${ComponentPermission} ${MyPage}:myPanel:myForm:myWebMarkupContainer:myButton, inherit, render, enable; I seem to remember a similar problem that I had. It involved the way I used a WebMarkupContainer, a form and a panel. I messed around with how I nested the different components and I got it to work. Go figure? Warren Rizal Indra wrote: Thanks for quick reply Warren, exactly my code SecureWebMarkupContainer.java is same as with your code. But its still not working. I am newbie in java wicket, so i need more example/hint for understanding its. I am sure that missing something but i dont know how to solve it. Can anyone help me? thanks --- Pada Kam, 16/7/09, Warren Bell warrenbe...@gmail.com menulis: Dari: Warren Bell warrenbe...@gmail.com Judul: Re: How to Hidden/Disabled Wicket tree with implementation wicket security Kepada: users@wicket.apache.org, bujang_kuan...@yahoo.com Tanggal: Kamis, 16 Juli, 2009, 11:09 AM Try this: Warren public class SecureWebMarkupContainer extends WebMarkupContainer implements ISecureComponent { public SecureWebMarkupContainer(String id) { super(id); setSecurityCheck(new ComponentSecurityCheck(this)); } public SecureWebMarkupContainer(String id, IModel model) { super(id, model); setSecurityCheck(new ComponentSecurityCheck(this)); } public final void setSecurityCheck(ISecurityCheck check) { SecureComponentHelper.setSecurityCheck(this, check); } public final ISecurityCheck getSecurityCheck() { return SecureComponentHelper.getSecurityCheck(this); } public boolean isActionAuthorized(String action) { return SecureComponentHelper.isActionAuthorized(this, action); } public boolean isActionAuthorized(WaspAction action) { return SecureComponentHelper.isActionAuthorized(this, action); } public boolean isAuthenticated() { return SecureComponentHelper.isAuthenticated(this); } public boolean isAuthenticatedAndAuthorized(String action) { return isAuthenticated() isActionAuthorized(action); } { Rizal Indra wrote: Hi, I have created my welcome page with menu tree (http://wicketstuff.org/wicket13/nested/ ). I want to hide/disabled some item menu depend on user right principal. I have try put some tricks but not work :-) MyTree.java public class MyTree extends Tree { @Override protected void populateTreeItem(WebMarkupContainer item, int level) { System.out.println( getting populateTreeItem...); super.populateTreeItem(item, level); final TreeNode node = (TreeNode)item.getModelObject(); MarkupContainer nodeLink = newNodeLink(item, nodeLink, node); SecureWebMarkupContainer swmc = new SecureWebMarkupContainer(hiddenMenu); swmc.add(nodeLink); //item.add(nodeLink); item.add(swmc); } } SecureWebMarkupContainer.java public class SecureWebMarkupContainer extends WebMarkupContainer implements ISecureComponent { ... } can anyone give some example/advice how to make it work. thanks Pemanasan global? Apa sih itu? Temukan jawabannya di Yahoo! Answers! http://id.answers.yahoo.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:
Re: Tab panel child
Hi! No, not page into tab. Just panel. Here TabPanel1...3 are your grid, etc. content panels. Into the content panel you put the grid or whatever you want. ** Martin 2009/7/21 Gerald Fernando gerald.anto.ferna...@gmail.com: Hi martin, this is my code. now i have to insert separate page for each tab. these pages includes one for data grid and one page for ajax example ane page for component. shall we insert a page in to the tab?is it possible?if so tell me how to do it. i used setResponsePage();but it shows error that markup file is not found. please tell me the code. am debut to wicket how can i do this public class TabbedPanelPage extends WebPage { public TabbedPanelPage() { List tabs = new ArrayList(); tabs.add(new AbstractTab(new Model(first tab)) { public Panel getPanel(String panelId) { return new TabPanel1(panelId); } }); tabs.add(new AbstractTab(new Model(second tab)) { public Panel getPanel(String panelId) { return new TabPanel2(panelId); } }); tabs.add(new AbstractTab(new Model(third tab)) { public Panel getPanel(String panelId) { return new TabPanel3(panelId); } }); add(new TabbedPanel(tabs, tabs)); } private static class TabPanel1 extends Panel { public TabPanel1(String id) { super(id); } }; private static class TabPanel2 extends Panel { public TabPanel2(String id) { super(id); } }; private static class TabPanel3 extends Panel { public TabPanel3(String id) { super(id); } }; } On Mon, Jul 20, 2009 at 3:58 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Copy-paste the example from the web and replace the one panel with a grid. ** Martin 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com: yes i mean it.am debut to wicket.how can i achive it please help me my requirement is when i click first tab it should shows a Grid 2nd tab - panel 3rd tab - another componet 4th tab - Another componet On Mon, Jul 20, 2009 at 11:35 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: You mean wicket TabbedPanel component? http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TabbedPanelPage ** Martin 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com: Hello Friends, How can i do tab panel with child coponent. when i click first tab it should shows a Grid 2nd tab - panel 3rd tab - another componet 4th tab - Another componet how can i achieve this? if possible give me some model code -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.4 is ready for production?
The site works for me, running FF 3.0.11 on Ubuntu. My browser is currently set to prefer Spanish but that does not apply to all texts, some are still English. Guess that was expected. /Per On Tue, Jul 21, 2009 at 6:22 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Does not help for me. You do have logs ;) ? ** Martin 2009/7/21 Steamus steam...@gmail.com: M-m-m... May be it is some redirect problems? Try this: http://www.sport-pferde-portal.net/shglobal/home It is the same. I just cheked the site by using http://browsershots.org/ Truly, I am puzzled, I got message - The server at www.sport-pferde-portal.de sent a HTTP redirect. Your web address has been updated. Please try again. But for URL above (http://www.sport-pferde-portal.net/shglobal/home) I got snapshots for my site from a lot of browsers (3 minutes ago). I can't explain it for this moment. aldaris wrote: Crash for me too: Mozilla/5.0 (X11; U; Linux x86_64; hu-HU; rv:1.9.1) Gecko/20090630 Fedora/3.5-1.fc11 Firefox/3.5 Maybe something locale-related stuff isn't working. Log files could be helpful to debug this. Peter 2009-07-20 23:15 keltezéssel, Martin Makundi írta: Crashes or me, Mozilla/5.0 (Windows; U; Windows NT 5.1; fi; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 ** Martin 2009/7/21 Carl-Eric Menzelcm.wic...@users.bitforce.com: On Tue, 21 Jul 2009 00:00:04 +0300 Martin Makundimartin.maku...@koodaripalvelut.com wrote: No. It crashes. Restart your browser and you will see. Works for me. Carl-Eric - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/1.4-is-ready-for-production--tp24572049p24578364.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: memory leak on FeedbackMessages??
I created a JIRA: https://issues.apache.org/jira/browse/WICKET-2384 We finally found out the reason of this problem. This was a bug of Wicket (on FeedbackPanel class). I wrote a fixed code on the JIRA. I hope that the solution will be included in next release. This is big bug for me. - Tsutomu YANO t_y...@me.com benbr...@mac.com 09/07/20 (月曜日) 10:02AM、 Jeremy Thomerson jer...@wickettraining.comのメッセージ: I have not run your quickstart, but this sounds peculiar to me. Please create a JIRA (with the quickstart attached) and reply-all here with the issue URL. -- Jeremy Thomerson http://www.wickettraining.com On Sun, Jul 19, 2009 at 9:10 AM, Tsutomu Yanot_y...@me.com wrote: Hi. When I uses component.info() method to display a message, my program stopped by OutOfMemoryError or StackOverflowError. I found the work around, but I could not found reason of this error. Can anyone teach me the reason? I create a sample application to show this problem. Open attached tar.gz file(including a maven project) and run. check 'submit continuously' checkbox and click 'register' button. The program will display current session size continuously. the size will be increased, and finally program will be stopped with OutOfMemoryError or StackOverflowError. But if you changes only one line, this program will not be stopped. ---original code--- private SubmitLink insertLink = new SubmitLink(insertLink) { public void onSubmit() { info(message); setResponsePage(new Test(testFormBean)); Session session = Session.get(); long size = session.getSizeInBytes(); LOGGER.info(SESSION SIZE: {}, size); } }; - ---changed-- private SubmitLink insertLink = new SubmitLink(insertLink) { public void onSubmit() { Session.get().info(message); //CHANGED!!! setResponsePage(new Test(testFormBean)); Session session = Session.get(); long size = session.getSizeInBytes(); LOGGER.info(SESSION SIZE: {}, size); } }; Component's 'info()' method will attache the component, to which 'info()' method is called, as 'reporter' object of FeedbackMessage object. It could become a reason of this problem. But the FeedbackMessage will be destroyed when the message will be displayed with FeedbackPanel. So I think, memory leak will never occur. If I use 'Session.get().info()' method, instead of component.info(), FeedbackMessage's 'reporter' object become null. In this case, My sample program never stopped with OutOfMemoryError or StackOverflowError. I could not find out the reason. Is this a bug of Wicket? or failure of my program. --- Tsutomu YANO t_y...@me.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: memory leak on FeedbackMessages??
I created a JIRA: https://issues.apache.org/jira/browse/WICKET-2384 We finally found out the reason of this problem. This was a bug of Wicket (on FeedbackPanel class). I wrote a fixed code on the JIRA. I hope that the solution will be included in next release. This is big bug for me. Thank you for your advice. - Tsutomu YANO t_y...@me.com benbr...@mac.com 09/07/20 (MON) 10:02AM、 Jeremy Thomerson jer...@wickettraining.com said: I have not run your quickstart, but this sounds peculiar to me. Please create a JIRA (with the quickstart attached) and reply-all here with the issue URL. -- Jeremy Thomerson http://www.wickettraining.com On Sun, Jul 19, 2009 at 9:10 AM, Tsutomu Yanot_y...@me.com wrote: Hi. When I uses component.info() method to display a message, my program stopped by OutOfMemoryError or StackOverflowError. I found the work around, but I could not found reason of this error. Can anyone teach me the reason? I create a sample application to show this problem. Open attached tar.gz file(including a maven project) and run. check 'submit continuously' checkbox and click 'register' button. The program will display current session size continuously. the size will be increased, and finally program will be stopped with OutOfMemoryError or StackOverflowError. But if you changes only one line, this program will not be stopped. ---original code--- private SubmitLink insertLink = new SubmitLink(insertLink) { public void onSubmit() { info(message); setResponsePage(new Test(testFormBean)); Session session = Session.get(); long size = session.getSizeInBytes(); LOGGER.info(SESSION SIZE: {}, size); } }; - ---changed-- private SubmitLink insertLink = new SubmitLink(insertLink) { public void onSubmit() { Session.get().info(message); //CHANGED!!! setResponsePage(new Test(testFormBean)); Session session = Session.get(); long size = session.getSizeInBytes(); LOGGER.info(SESSION SIZE: {}, size); } }; Component's 'info()' method will attache the component, to which 'info()' method is called, as 'reporter' object of FeedbackMessage object. It could become a reason of this problem. But the FeedbackMessage will be destroyed when the message will be displayed with FeedbackPanel. So I think, memory leak will never occur. If I use 'Session.get().info()' method, instead of component.info(), FeedbackMessage's 'reporter' object become null. In this case, My sample program never stopped with OutOfMemoryError or StackOverflowError. I could not find out the reason. Is this a bug of Wicket? or failure of my program. --- Tsutomu YANO t_y...@me.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tab panel child
then how can reuse it in another page??? can you compare Adobe Flex and Apache wicket. am Expecting your reply ThanksRegards, Gerald A On Tue, Jul 21, 2009 at 11:52 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! No, not page into tab. Just panel. Here TabPanel1...3 are your grid, etc. content panels. Into the content panel you put the grid or whatever you want. ** Martin 2009/7/21 Gerald Fernando gerald.anto.ferna...@gmail.com: Hi martin, this is my code. now i have to insert separate page for each tab. these pages includes one for data grid and one page for ajax example ane page for component. shall we insert a page in to the tab?is it possible?if so tell me how to do it. i used setResponsePage();but it shows error that markup file is not found. please tell me the code. am debut to wicket how can i do this public class TabbedPanelPage extends WebPage { public TabbedPanelPage() { List tabs = new ArrayList(); tabs.add(new AbstractTab(new Model(first tab)) { public Panel getPanel(String panelId) { return new TabPanel1(panelId); } }); tabs.add(new AbstractTab(new Model(second tab)) { public Panel getPanel(String panelId) { return new TabPanel2(panelId); } }); tabs.add(new AbstractTab(new Model(third tab)) { public Panel getPanel(String panelId) { return new TabPanel3(panelId); } }); add(new TabbedPanel(tabs, tabs)); } private static class TabPanel1 extends Panel { public TabPanel1(String id) { super(id); } }; private static class TabPanel2 extends Panel { public TabPanel2(String id) { super(id); } }; private static class TabPanel3 extends Panel { public TabPanel3(String id) { super(id); } }; } On Mon, Jul 20, 2009 at 3:58 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Copy-paste the example from the web and replace the one panel with a grid. ** Martin 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com: yes i mean it.am debut to wicket.how can i achive it please help me my requirement is when i click first tab it should shows a Grid 2nd tab - panel 3rd tab - another componet 4th tab - Another componet On Mon, Jul 20, 2009 at 11:35 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: You mean wicket TabbedPanel component? http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TabbedPanelPage ** Martin 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com: Hello Friends, How can i do tab panel with child coponent. when i click first tab it should shows a Grid 2nd tab - panel 3rd tab - another componet 4th tab - Another componet how can i achieve this? if possible give me some model code -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A
Re: Tab panel child
then how can reuse it in another page??? Panel can be put anywhere. You can put Panel into Page or Panel into AnotherPanel and so on. TabPanel1 | + add(new GridPanel()); AntoherPanel | + add(new GridPanel()); SomePage | + add(new GridPanel()); can you compare Adobe Flex and Apache wicket. They have nothing in common. am Expecting your reply Hope this helps. ** Martin On Tue, Jul 21, 2009 at 11:52 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! No, not page into tab. Just panel. Here TabPanel1...3 are your grid, etc. content panels. Into the content panel you put the grid or whatever you want. ** Martin 2009/7/21 Gerald Fernando gerald.anto.ferna...@gmail.com: Hi martin, this is my code. now i have to insert separate page for each tab. these pages includes one for data grid and one page for ajax example ane page for component. shall we insert a page in to the tab?is it possible?if so tell me how to do it. i used setResponsePage();but it shows error that markup file is not found. please tell me the code. am debut to wicket how can i do this public class TabbedPanelPage extends WebPage { public TabbedPanelPage() { List tabs = new ArrayList(); tabs.add(new AbstractTab(new Model(first tab)) { public Panel getPanel(String panelId) { return new TabPanel1(panelId); } }); tabs.add(new AbstractTab(new Model(second tab)) { public Panel getPanel(String panelId) { return new TabPanel2(panelId); } }); tabs.add(new AbstractTab(new Model(third tab)) { public Panel getPanel(String panelId) { return new TabPanel3(panelId); } }); add(new TabbedPanel(tabs, tabs)); } private static class TabPanel1 extends Panel { public TabPanel1(String id) { super(id); } }; private static class TabPanel2 extends Panel { public TabPanel2(String id) { super(id); } }; private static class TabPanel3 extends Panel { public TabPanel3(String id) { super(id); } }; } On Mon, Jul 20, 2009 at 3:58 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Copy-paste the example from the web and replace the one panel with a grid. ** Martin 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com: yes i mean it.am debut to wicket.how can i achive it please help me my requirement is when i click first tab it should shows a Grid 2nd tab - panel 3rd tab - another componet 4th tab - Another componet On Mon, Jul 20, 2009 at 11:35 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: You mean wicket TabbedPanel component? http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TabbedPanelPage ** Martin 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com: Hello Friends, How can i do tab panel with child coponent. when i click first tab it should shows a Grid 2nd tab - panel 3rd tab - another componet 4th tab - Another componet how can i achieve this? if possible give me some model code -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.4 is ready for production?
We're using it since 1.4-m2 in production. 2009/7/20 Alessandro Vincelli a.vince...@gmail.com: I know that 1.4 is RC, and RC means that is not ready for production ;-) But I'm using the 1.4 since January in some small projects without blocking problems? The issue opened in Jira are not blocking for me. Any suggestions? Is anybody already using 1.4 in production? Thanks in advance, Alessandro -- Alessandro Vincelli --- http://www.alessandro.vincelli.name http://devel.alessandro.vincelli.name - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
setVisbile on form makes me reset fields
To clear the clutter in my form, I have a number of subforms hidden behind toggle links. However, I find that if I toggle these subforms visible using subform.setVisble(true), then I lose my contents of the rest of the controls on the main page. Any tips on how to force retain the already entered data on the form when setting subform visibility? P
Re: setVisbile on form makes me reset fields
Can you post some code so we can see whats going on? -- View this message in context: http://www.nabble.com/setVisbile-on-form-makes-me-reset-fields-tp2458p24583413.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setVisbile on form makes me reset fields
Ok, here it is private class QuestionEditForm extends Form { private boolean questionformatter = true; public QuestionEditForm(String id) { super(id); TextChunk question = paragraphwebmodel.getEntity().getStatement(); setModel(new CompoundPropertyModel(paragraphwebmodel)); VariableTextFieldPanel questionpanel = new VariableTextFieldPanel( question, new PropertyModel(paragraphwebmodel, statement.value)); final AdvancedFormatterPanel formatquestion = new AdvancedFormatterPanel( formatquestion, new AdvancedFormatterWebModel(question .getFormatter())); add(new DropDownChoice(clear,Arrays.asList(QuestionLayoutClearance.values()),new MyChoiceRenderer())); formatquestion.setVisible(false); add(new Link(showquestionformat) { @Override public void onClick() { formatquestion.setVisible(questionformatter); if (questionformatter) { questionformatter = false; } else { questionformatter = true; } } }); On Tue, Jul 21, 2009 at 10:03 AM, Mathias Nilsson wicket.program...@gmail.com wrote: Can you post some code so we can see whats going on? -- View this message in context: http://www.nabble.com/setVisbile-on-form-makes-me-reset-fields-tp2458p24583413.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Claassen musmato.com
Re: setVisbile on form makes me reset fields
When pressing the link it will tell wicket to refresh the page and the form will no be submitted. have you tried submitLink instead of link? -- View this message in context: http://www.nabble.com/setVisbile-on-form-makes-me-reset-fields-tp2458p24583629.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tab panel child
Hi! Are you at all familiar with Java? If yes, it's quite straight forward. If not... just copy paste the example and make your changes there. Probably you need some experienced person for pair programming, few hours. ** Martin 2009/7/21 Gerald Fernando gerald.anto.ferna...@gmail.com: Hi martin, sorry to say that can you please give me elobrate please ThanksRegards, Gerald A On Tue, Jul 21, 2009 at 12:39 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: then how can reuse it in another page??? Panel can be put anywhere. You can put Panel into Page or Panel into AnotherPanel and so on. TabPanel1 | + add(new GridPanel()); AntoherPanel | + add(new GridPanel()); SomePage | + add(new GridPanel()); can you compare Adobe Flex and Apache wicket. They have nothing in common. am Expecting your reply Hope this helps. ** Martin On Tue, Jul 21, 2009 at 11:52 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! No, not page into tab. Just panel. Here TabPanel1...3 are your grid, etc. content panels. Into the content panel you put the grid or whatever you want. ** Martin 2009/7/21 Gerald Fernando gerald.anto.ferna...@gmail.com: Hi martin, this is my code. now i have to insert separate page for each tab. these pages includes one for data grid and one page for ajax example ane page for component. shall we insert a page in to the tab?is it possible?if so tell me how to do it. i used setResponsePage();but it shows error that markup file is not found. please tell me the code. am debut to wicket how can i do this public class TabbedPanelPage extends WebPage { public TabbedPanelPage() { List tabs = new ArrayList(); tabs.add(new AbstractTab(new Model(first tab)) { public Panel getPanel(String panelId) { return new TabPanel1(panelId); } }); tabs.add(new AbstractTab(new Model(second tab)) { public Panel getPanel(String panelId) { return new TabPanel2(panelId); } }); tabs.add(new AbstractTab(new Model(third tab)) { public Panel getPanel(String panelId) { return new TabPanel3(panelId); } }); add(new TabbedPanel(tabs, tabs)); } private static class TabPanel1 extends Panel { public TabPanel1(String id) { super(id); } }; private static class TabPanel2 extends Panel { public TabPanel2(String id) { super(id); } }; private static class TabPanel3 extends Panel { public TabPanel3(String id) { super(id); } }; } On Mon, Jul 20, 2009 at 3:58 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Copy-paste the example from the web and replace the one panel with a grid. ** Martin 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com: yes i mean it.am debut to wicket.how can i achive it please help me my requirement is when i click first tab it should shows a Grid 2nd tab - panel 3rd tab - another componet 4th tab - Another componet On Mon, Jul 20, 2009 at 11:35 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: You mean wicket TabbedPanel component? http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TabbedPanelPage ** Martin 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com: Hello Friends, How can i do tab panel with child coponent. when i click first tab it should shows a Grid 2nd tab - panel 3rd tab - another componet 4th tab - Another componet how can i achieve this? if possible give me some model code -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A - To unsubscribe,
Re: jWicket -- jQuery with Wicket integration
On Tue, 21 Jul 2009 02:18:12 -0700, Tauren Mills wrote: I realize there are already a few Wicket/jQuery integrations, but I think that Stefan's WicketJQuery implementation has some advantages over the others. We've just started using WiQuery (http://code.google.com/p/wiquery/), but are not committed to it as yet. What would you say are the advantages of jWicket over WiQuery? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tab panel child
See an example in the attached file. It should be quite easy to understand. The example consists of two pages. First of them contains a tabbed panel with three tabs. Each of them contains a panel (an instance of the same panel class). The the same panel is embedded outside the tabbed panel into a page contents directly. Another page contains the same panel embedded once again. http://www.nabble.com/file/p24584839/TabsExample.zip TabsExample.zip cheers, Marcin -- View this message in context: http://www.nabble.com/Tab-panel-child-tp24564353p24584839.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AutoCompleteTextField and IE8, javascript error thrown
Hi Christian, Did you ever figure out what was wrong? I encountered the same problem. Best regards, Wilko Hische christian.fichera wrote: Dear all, I have a problem using AutoCompleteTextField: when I type something into it, the choices list is not shown, and the following javascript error is thrown: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648) Timestamp: Thu, 28 May 2009 08:19:40 UTC Message: Invalid argument. Line: 253 Char: 1 Code: 0 URI: http://localhost:8080/TADinfo/analysis/resources/org.apache.wicket.extension s.ajax.markup.html.autocomplete.AutoCompleteBehavior/wicket-autocomplete.js This problem occurs only with IE8 (with IE7, IE6 and Firefox works), and Wicket 1.3.6 (with version 1.3.4 works). Can anybody help me? Thank you in advance! Here is the code: .. snip .. -- View this message in context: http://www.nabble.com/AutoCompleteTextField-and-IE8%2C-javascript-error-thrown-tp23757807p24585462.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tab panel child
Hi marchin, in your code HashMapString, Panel tabMap = new HashMapString, Panel(); - this is a line which shows error there is is error such as Parameterized types are only avilable if source level is 5. what is this error how can i solve it? ThanksRegards, Gerald A On Tue, Jul 21, 2009 at 3:30 PM, Marcin Palka marcin.pa...@gmail.comwrote: See an example in the attached file. It should be quite easy to understand. The example consists of two pages. First of them contains a tabbed panel with three tabs. Each of them contains a panel (an instance of the same panel class). The the same panel is embedded outside the tabbed panel into a page contents directly. Another page contains the same panel embedded once again. http://www.nabble.com/file/p24584839/TabsExample.zip TabsExample.zip cheers, Marcin -- View this message in context: http://www.nabble.com/Tab-panel-child-tp24564353p24584839.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A
Re: AutoCompleteTextField and IE8, javascript error thrown
Hi, I use the wicket 1.4 nad I haven't noticed anything like that. You may want to look into wicket svn and check if there were any changes made to the wicket-autocomplete.js between version 1.3.4 and 1.3.6. I've just looked into 1.4 branch in svn and it seems that there have been quite some changes made to the wicket-autocomplete.js recently. Maybe it's time to try the 1.4, it's just about to go final. cheers, Marcin -- View this message in context: http://www.nabble.com/AutoCompleteTextField-and-IE8%2C-javascript-error-thrown-tp23757807p24585957.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AutoCompleteTextField and IE8, javascript error thrown
Can you see if it's a duplicate of this: http://issues.apache.org/jira/browse/WICKET-1504 If so, I'm not sure why you would be experiencing it - as that issue says that it was fixed in 1.3.6 and you said you're using 1.3.6. Did you just recently switch to 1.3.6? If so, have you cleared your cache? -- Jeremy Thomerson http://www.wickettraining.com On Thu, May 28, 2009 at 3:51 AM, Christian G. Ficherachristian.fich...@gmail.com wrote: Dear all, I have a problem using AutoCompleteTextField: when I type something into it, the choices list is not shown, and the following javascript error is thrown: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648) Timestamp: Thu, 28 May 2009 08:19:40 UTC Message: Invalid argument. Line: 253 Char: 1 Code: 0 URI: http://localhost:8080/TADinfo/analysis/resources/org.apache.wicket.extension s.ajax.markup.html.autocomplete.AutoCompleteBehavior/wicket-autocomplete.js This problem occurs only with IE8 (with IE7, IE6 and Firefox works), and Wicket 1.3.6 (with version 1.3.4 works). Can anybody help me? Thank you in advance! Here is the code: private class LocalitiesAutoCompleteTextField extends AutoCompleteTextField{ private int type; private final static int MIN_CHAR = 0; private final static int MAX_RES = 10; private Object selectedObject; public LocalitiesAutoCompleteTextField(String id, int type, final IModel model){ super(id, model);//, new LocalityListRenderer()); this.type = type; } public Object getSelectedObject(){ return selectedObject; } �...@override public String getModelValue(){ return super.getModelValue(); } �...@override public Iterator getChoices(String input) { if (!Strings.isEmpty(input)){ List choices = new ArrayList(); if (input.length() = MIN_CHAR){ int i=0; switch(type){ case LAYER0: for (Layer0 layer0:facade.selectLayer0ByDisplayNameStartingWith(input)){ if (++i MAX_RES){ break; } choices.add(layer0); } for (Layer0 layer0:facade.selectLayer0ByDisplayNameContaining(input)){ if (++i MAX_RES){ break; } choices.add(layer0); } if (iMAX_RES){ choices.add(MORE); } break; case LAYER1: for (Layer1 layer1:facade.selectLayer1ByDisplayNameStartingWith(input)){ if (++i MAX_RES){ break; } choices.add(layer1); } for (Layer1 layer1:facade.selectLayer1ByDisplayNameContaining(input)){ if (++i MAX_RES){ break; } choices.add(layer1); } if (iMAX_RES){ choices.add(MORE); } break; case LAYER2: for (Layer2 layer2:facade.selectLayer2ByDisplayNameStartingWith(input)){ if (++i MAX_RES){ break; } choices.add(layer2); } for (Layer2 layer2:facade.selectLayer2ByDisplayNameContaining(input)){ if (++i MAX_RES){ break; } choices.add(layer2); } if (iMAX_RES){ choices.add(MORE); } break; case LOCALITY: for (Localitydb locality:facade.selectLocalityByDisplayNameStartingWith(input)){ if (++i MAX_RES){ break; } choices.add(locality); }
Re: Tab panel child
Gerald, You have to use Java version 5. Earlier versions don't support generics. I believe Wicket 1.4 requires Java 5. cheers Marcin Gerald Fernando wrote: Hi marchin, in your code HashMapString, Panel tabMap = new HashMapString, Panel(); - this is a line which shows error there is is error such as Parameterized types are only avilable if source level is 5. what is this error how can i solve it? ThanksRegards, Gerald A On Tue, Jul 21, 2009 at 3:30 PM, Marcin Palka marcin.pa...@gmail.comwrote: See an example in the attached file. It should be quite easy to understand. The example consists of two pages. First of them contains a tabbed panel with three tabs. Each of them contains a panel (an instance of the same panel class). The the same panel is embedded outside the tabbed panel into a page contents directly. Another page contains the same panel embedded once again. http://www.nabble.com/file/p24584839/TabsExample.zip TabsExample.zip cheers, Marcin -- View this message in context: http://www.nabble.com/Tab-panel-child-tp24564353p24584839.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A -- View this message in context: http://www.nabble.com/Tab-panel-child-tp24564353p24586058.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tab panel child
And change compiler syntax ** Martin 2009/7/21 Marcin Palka marcin.pa...@gmail.com: Gerald, You have to use Java version 5. Earlier versions don't support generics. I believe Wicket 1.4 requires Java 5. cheers Marcin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tab panel child
Gerald, My example quickstart project is maven based. So I would suggest to use maven to compile it. If your're a beginner I would highly recommend that you download and use a Netbeans IDE (from http://www.netbeans.org) which has a built-in maven project support. Open the project from the IDE and then you should be able to build and run it with a single button click. cheers, Marcin MartinM wrote: And change compiler syntax ** Martin 2009/7/21 Marcin Palka marcin.pa...@gmail.com: Gerald, You have to use Java version 5. Earlier versions don't support generics. I believe Wicket 1.4 requires Java 5. cheers Marcin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Tab-panel-child-tp24564353p24586192.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AutoCompleteTextField and IE8, javascript error thrown
Hi Jeremy, I am using version 1.3.6 yes (using the DefaultCssAutocompleteTextField). The issue you mention does not refer to IE8 and thusfar that's the only brower the problem seems to occur in. I put the following in the HomePage.java of my Quickstart: --- public class HomePage extends WebPage { public HomePage(final PageParameters parameters) { add(new HomeForm(form)); } private static class HomeForm extends Form { private String test; public HomeForm(String id) { super(id); add(createAutoComplete()); } private Component createAutoComplete() { IModel valueModel = new Model() { @Override public String getObject() { return test; } @Override public void setObject(Object object) { test = (String) object; } }; return new DefaultCssAutocompleteTextField(test, valueModel) { @Override protected IteratorString getChoices(String input) { return new ChoiceGenerator(input); } }; } } private static class ChoiceGenerator implements IteratorString { private String base; private int count = 0; public ChoiceGenerator(String base) { this.base = base; } @Override public boolean hasNext() { return count 5; } @Override public String next() { count++; StringBuilder buf = new StringBuilder(base); for (int i = 0; i count; i++) { buf.append(i); } return buf.toString(); } @Override public void remove() { throw new UnsupportedOperationException(); } } } --- Behaviour in IE8 is as follows: - Type 'a' Options appear - Type 'b' Options dissappear and IE8 mentions: Foutdetails webpagina Gebruikersagent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30) Tijdstempel: Tue, 21 Jul 2009 12:30:49 UTC Bericht: Ongeldig argument.(i.e. invalid argument) Regel: 308 Teken: 9 Code: 0 URI: http://localhost:8080/resources/org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteBehavior/wicket-autocomplete.js I do notice that the Ajax request is received by the application and when using the debug panel on the page i notice the correct response. Best regards, Wilko jthomerson wrote: Can you see if it's a duplicate of this: http://issues.apache.org/jira/browse/WICKET-1504 If so, I'm not sure why you would be experiencing it - as that issue says that it was fixed in 1.3.6 and you said you're using 1.3.6. Did you just recently switch to 1.3.6? If so, have you cleared your cache? -- Jeremy Thomerson http://www.wickettraining.com On Thu, May 28, 2009 at 3:51 AM, Christian G. Ficherachristian.fich...@gmail.com wrote: Dear all, I have a problem using AutoCompleteTextField: when I type something into it, the choices list is not shown, and the following javascript error is thrown: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648) Timestamp: Thu, 28 May 2009 08:19:40 UTC Message: Invalid argument. Line: 253 Char: 1 Code: 0 URI: http://localhost:8080/TADinfo/analysis/resources/org.apache.wicket.extension s.ajax.markup.html.autocomplete.AutoCompleteBehavior/wicket-autocomplete.js This problem occurs only with IE8 (with IE7, IE6 and Firefox works), and Wicket 1.3.6 (with version 1.3.4 works). Can anybody help me? Thank you in advance! Here is the code: private class LocalitiesAutoCompleteTextField extends AutoCompleteTextField{ private int type; private final static int MIN_CHAR = 0; private final static int MAX_RES = 10; private Object selectedObject; public LocalitiesAutoCompleteTextField(String id, int type, final IModel model){ super(id, model);//, new LocalityListRenderer()); this.type = type; } public Object getSelectedObject(){ return selectedObject; } �...@override public String getModelValue(){ return super.getModelValue(); } �...@override public Iterator getChoices(String input) { if (!Strings.isEmpty(input)){ List choices = new ArrayList(); if (input.length() = MIN_CHAR){ int i=0; switch(type){ case LAYER0: for (Layer0
Re: AutoCompleteTextField and IE8, javascript error thrown
Hi Marcin, Yeah, eventually we will be using 1.4 for sure. But i don't want to migrate right now just because of this one issue. Thanks, Wilko Marcin Palka wrote: Hi, I use the wicket 1.4 nad I haven't noticed anything like that. You may want to look into wicket svn and check if there were any changes made to the wicket-autocomplete.js between version 1.3.4 and 1.3.6. I've just looked into 1.4 branch in svn and it seems that there have been quite some changes made to the wicket-autocomplete.js recently. Maybe it's time to try the 1.4, it's just about to go final. cheers, Marcin -- View this message in context: http://www.nabble.com/AutoCompleteTextField-and-IE8%2C-javascript-error-thrown-tp23757807p24586911.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: passing a session to a wizard
Thanks Mike you were right, I managed to figure it out, I had not initalised the object within a seession before bring it into the wizard. Thanks Stephen --- On Mon, 20/7/09, Michael Sparer michael.spa...@gmx.at wrote: From: Michael Sparer michael.spa...@gmx.at Subject: Re: passing a session to a wizard To: users@wicket.apache.org Date: Monday, 20 July, 2009, 6:59 PM sounds like a detached object. the interesting part would be where you got the object from. if you're using OpensessionInViewFilter (and therefore a session is during the whole request), it's likely that the object stays in the session between requests - you should use LoadableDetachableModels then ... Steve Olara wrote: Hello All, I have been trying to design functionality of a webapp using wizard. I need to pass a object (Questionnaire) to the wizard page, the object contains a set of questions. on passing the object, when I try to pick the set of questions using q.getqn() where q is the object, a null set is returned and I get a error saying: LazyInitializationException:19 - failed to lazily initialize a collection of role: questionnaire.model.Questionnaire.qn, no session or session was closed I have searched and found lots of articles about this error but I guess my programming is still imature cause I seem not to get this to work yet. Below is my code is there a way of passing the previous session to this class. public final class AnswerWizard extends Wizard { public AnswerWizard(String id, Questionnaire q) { super(id); // create a model with a couple of custom panels // still not that spectacular, but at least it // will give you a hint of how nice it is to // be able to work with custom panels WizardModel model = new WizardModel(); Set questions = q.getQn(); Iterator iter = questions.iterator(); System.out.println(Testing55: ); for (;iter.hasNext();) { Question qn = (Question) iter.next(); if (qn instanceof QuestionShortAns) { model.add(new StepQSA((QuestionShortAns) qn)); } else if (qn instanceof QuestionSingleSelect) { model.add(new StepQSS((QuestionSingleSelect) qn)); } else if (qn instanceof QuestionMatch) { model.add(new StepQm((QuestionMatch) qn)); } } // initialize the wizard init(model); } private static final class StepQSS extends WizardStep { /** * Construct. */ public StepQSS(QuestionSingleSelect qn) { super(One, The first step); } } private static final class StepQSA extends WizardStep { /** * Construct. */ public StepQSA(QuestionShortAns qn) { super(Two, The second step); } } private static final class StepQm extends WizardStep { /** * Construct. */ public StepQm(QuestionMatch qn) { super(Three, The third step); } } public void onCancel() { //setResponsePage(Index.class); } /** * @see org.apache.wicket.extensions.wizard.Wizard#onFinish() */ public void onFinish() { // setResponsePage(Index.class); } } Any Help will be highly appreciated - Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/Re%3A-passing-a-session-to-a-wizard-tp24569201p24572534.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SSL - ajax login
Hello folks, I'm using wicket 1.4 RC7 now and I have a question regarding the usage of ssl. I use the HttpsRequestCycleProcessor with the annotation @RequireHttps. Imagine the following case like it is realized on different sites like web.de or gmx.de as well as xing.com. The first call will result in a http url. If you enter your login name and your password and submit the form, then the form will be send via https. I only have one page. Everything on my page is exchanged via ajax. The login is also done via ajax. Currently I use the annotation above for my BasePage but from the first call, the whole communication is done with ssl. What I would like to realize is: Using the @RequireHttps annotation on forms or submit buttons. I implemented an own SSLForm class extending the wicket form class with the annotation. But when I use the SSLForm for my login, the communication is done without ssl. I would like to use my page via http, but the ajax login should be done with ssl. The only thing I can do now is: -page completely with ssl -page completely without ssl I would appreciate any help. Best regards, Arthur
Re: SSL - ajax login
@RequreHttps is meant to be a page-level feature, so it doesnt fit your usecase. is your login form submitted via ajax? show us the code to sslform, your login form - making sure to include the code to the component that submits it. -igor On Tue, Jul 21, 2009 at 8:34 AM, Arthur Leigh Allenarthurleigh.al...@yahoo.de wrote: Hello folks, I'm using wicket 1.4 RC7 now and I have a question regarding the usage of ssl. I use the HttpsRequestCycleProcessor with the annotation @RequireHttps. Imagine the following case like it is realized on different sites like web.de or gmx.de as well as xing.com. The first call will result in a http url. If you enter your login name and your password and submit the form, then the form will be send via https. I only have one page. Everything on my page is exchanged via ajax. The login is also done via ajax. Currently I use the annotation above for my BasePage but from the first call, the whole communication is done with ssl. What I would like to realize is: Using the @RequireHttps annotation on forms or submit buttons. I implemented an own SSLForm class extending the wicket form class with the annotation. But when I use the SSLForm for my login, the communication is done without ssl. I would like to use my page via http, but the ajax login should be done with ssl. The only thing I can do now is: -page completely with ssl -page completely without ssl I would appreciate any help. Best regards, Arthur - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
ModalWindow windowClosedCallback and WicketTester
Hi! I have the same problem as http://www.mail-archive.com/users@wicket.apache.org/msg05826.html Is it solved? I have a ModalWindow with a close button in it, the button's onclick calls modalWindow.close() via AJAX. My problem is that when I call the onclick via wicketTester.executeAjaxEvent(button, onclick) the modalWindow's windowClosedCallback doesn't fire.. Am I missing something? Or am I supposed to call it from the testcase? Many thanks for your time! ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
using ajaxbutton for for submit
Is there any disadvantage using ajaxButton for navigation to new page ?I not adding anything to target and just call sertResponsePage() , is there any disadvantage using jaxbutton in this cas e?
AW: SSL - ajax login
Hello Igor, thanks for your early reply. Yes, my login form is submitted via ajax. public class BasePage { public void switchViaAjax(...) { ... } public void navigateViaAjax(...) { ... } } @RequireHttps public class SSLForm extends Form { ... } public class LoginPanel { public LoginPanel() { ... } public create() { SSLForm form = new SSLForm(loginForm); form.add(username); form.add(password); AjaxFallbackButton loginButton = new AjaxFallbackButton(loginButton, form) { protected void onSubmit(AjaxRequestTarget target, Form form) { // perform login = login is done via http } } } } As you said @RequireSSL is for pages. Do you have any idea how I can remove @RequireHttps from the top of my BasePage and switch to https on login? Currently I think the only way to provide a ssl ajax call is to show the base page via ssl as a starting basis. Therefore I have to use @RequireSSL on the BasePage but that means every communication is done via ssl and that means more server ballast and a slower page refresh. Greetings Arthur Von: Igor Vaynberg igor.vaynb...@gmail.com An: users@wicket.apache.org Gesendet: Dienstag, den 21. Juli 2009, 18:08:48 Uhr Betreff: Re: SSL - ajax login @RequreHttps is meant to be a page-level feature, so it doesnt fit your usecase. is your login form submitted via ajax? show us the code to sslform, your login form - making sure to include the code to the component that submits it. -igor On Tue, Jul 21, 2009 at 8:34 AM, Arthur Leigh Allenarthurleigh.al...@yahoo.de wrote: Hello folks, I'm using wicket 1.4 RC7 now and I have a question regarding the usage of ssl. I use the HttpsRequestCycleProcessor with the annotation @RequireHttps. Imagine the following case like it is realized on different sites like web.de or gmx.de as well as xing.com. The first call will result in a http url. If you enter your login name and your password and submit the form, then the form will be send via https. I only have one page. Everything on my page is exchanged via ajax. The login is also done via ajax. Currently I use the annotation above for my BasePage but from the first call, the whole communication is done with ssl. What I would like to realize is: Using the @RequireHttps annotation on forms or submit buttons. I implemented an own SSLForm class extending the wicket form class with the annotation. But when I use the SSLForm for my login, the communication is done without ssl. I would like to use my page via http, but the ajax login should be done with ssl. The only thing I can do now is: -page completely with ssl -page completely without ssl I would appreciate any help. Best regards, Arthur - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do I set a selected item outside of an inmethod datagrid?
Not sure if this was a tough question or simply no one on the user forum has had such a need but I finally figured out a way to get my particular problem solved and figured I would share. There likely may be a better way but I tied the selection to an Override of the DataSource of the DataGrid: ... /* * - * Create data source for the history grid * - */ checkItemHistoryDataSource = new MatrixCheckItemHistoryDataSource( NUMBER_OF_DAYS) { @Override public IModelMatrixCheckItemModel model(Object object) { MatrixCheckItemModel m = (MatrixCheckItemModel) object; IModel im = new MatrixDetachableCheckItemModel(m); /* * If we have selected a new item that doesn't match the history item * profile. */ if ((historyItemSelected.getId() == null) || !historyItemSelected.getMatrixCheckProfile().getId().equals( listItemSelected.getMatrixCheckProfile().getId())) { /* * Reset the currently selected history item if it has the same date * as our new list item. This way it selects the current history * instance by default, which is what we want. */ if (m.getMatrixShiftReport().getDay().equals( listItemSelected.getMatrixShiftReport().getDay())) { // historyItemSelected = m; itemSelectedHistoryGrid.selectItem(im, true); /* * Reset our selected item panel. */ selectedItemPanel.setSelectedItem(historyItemSelected); } } return im; } }; /* * - * Create and add the selected item history grid * - */ itemSelectedHistoryGrid = new MatrixCheckItemHistoryGrid( selectedItemHistoryGrid, checkItemHistoryDataSource, colorblind) { private static final long serialVersionUID = 1L; @Override public void resetSelectedItems() { super.resetSelectedItems(); /* * When selection changes the item panel needs to be refreshed. */ AjaxRequestTarget target = AjaxRequestTarget.get(); /* * Refresh ajax target */ if (target != null) { /* * Set the selected item on the panel and refresh it */ selectedItemPanel.setSelectedItem(historyItemSelected); target.addComponent(selectedItemPanel); } } @Override public void selectItem(IModel item, boolean isSelect) { super.selectItem(item, isSelect); /* * There will only be one item in the collection as this grid * has setAllowSelectMultiple() set to false. */ CollectionIModel selected = getSelectedItems(); for (IModel model : selected) { historyItemSelected = (MatrixCheckItemModel) model.getObject(); } /* * When selection changes the item panel needs to be refreshed. */ AjaxRequestTarget target = AjaxRequestTarget.get(); /* * Refresh ajax target */ if (target != null) { /* * Set the selected item on the panel and refresh it */ selectedItemPanel.setSelectedItem(historyItemSelected); target.addComponent(selectedItemPanel); } } }; ... /* * --- * Create a grid of check items that are for the current shift and day * --- */ currentGrid = new MatrixCheckItemGrid(current, new MatrixCheckListDataSource(), colorblind) { private static final long serialVersionUID = 1L; @Override public void selectItem(IModel item, boolean isSelect) { super.selectItem(item, isSelect); /* * There will only be one item in the collection as this grid * has setAllowSelectMultiple() set to false. */ CollectionIModel selected = getSelectedItems(); for (IModel model : selected) { listItemSelected = (MatrixCheckItemModel) model.getObject(); } /* * When selection changes the item panel needs to be refreshed. */ AjaxRequestTarget target = AjaxRequestTarget.get(); /* * If we selected something then we can make the panel visible. */ itemSelectedHistoryGrid.setVisible(listItemSelected != null); selectedItemPanel.setVisible(listItemSelected != null); /* * Refresh ajax target */ if
Re: jWicket -- jQuery with Wicket integration
Just an FYI, the link to the WicketJQueryDemo.war on http://subversion.visionet.de/project/WicketJQuery/wiki; is broke. I think it should be: http://subversion.visionet.de/project/WicketJQuery/browser/tags/0.3.6/WicketJQueryDemo.war instead its: http://subversion.visionet.de/project/WicketJQuery/browser/tags/0.3./WicketJQueryDemo.war -- View this message in context: http://www.nabble.com/jWicketjQuery-with-Wicket-integration-tp24584280p24593132.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
PageLink deprecated in 1.4
I noticed that the PageLink class is deprecated in 1.4. What should it be replaced with in my application code? David -- David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: drrobi...@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PageLink deprecated in 1.4
the two alternatives are mentioned in the javadoc. -igor On Tue, Jul 21, 2009 at 11:35 AM, David R Robisondrrobi...@openroadsconsulting.com wrote: I noticed that the PageLink class is deprecated in 1.4. What should it be replaced with in my application code? David -- David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: drrobi...@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: memory leak on FeedbackMessages??
Should be fixed in svn. Can you give it a try? -Matej On Tue, Jul 21, 2009 at 8:58 AM, Tsutomu YANO t_y...@me.com wrote: I created a JIRA: https://issues.apache.org/jira/browse/WICKET-2384 We finally found out the reason of this problem. This was a bug of Wicket (on FeedbackPanel class). I wrote a fixed code on the JIRA. I hope that the solution will be included in next release. This is big bug for me. Thank you for your advice. - Tsutomu YANO t_y...@me.com benbr...@mac.com 09/07/20 (MON) 10:02AM、 Jeremy Thomerson jer...@wickettraining.com said: I have not run your quickstart, but this sounds peculiar to me. Please create a JIRA (with the quickstart attached) and reply-all here with the issue URL. -- Jeremy Thomerson http://www.wickettraining.com On Sun, Jul 19, 2009 at 9:10 AM, Tsutomu Yanot_y...@me.com wrote: Hi. When I uses component.info() method to display a message, my program stopped by OutOfMemoryError or StackOverflowError. I found the work around, but I could not found reason of this error. Can anyone teach me the reason? I create a sample application to show this problem. Open attached tar.gz file(including a maven project) and run. check 'submit continuously' checkbox and click 'register' button. The program will display current session size continuously. the size will be increased, and finally program will be stopped with OutOfMemoryError or StackOverflowError. But if you changes only one line, this program will not be stopped. ---original code--- private SubmitLink insertLink = new SubmitLink(insertLink) { public void onSubmit() { info(message); setResponsePage(new Test(testFormBean)); Session session = Session.get(); long size = session.getSizeInBytes(); LOGGER.info(SESSION SIZE: {}, size); } }; - ---changed-- private SubmitLink insertLink = new SubmitLink(insertLink) { public void onSubmit() { Session.get().info(message); //CHANGED!!! setResponsePage(new Test(testFormBean)); Session session = Session.get(); long size = session.getSizeInBytes(); LOGGER.info(SESSION SIZE: {}, size); } }; Component's 'info()' method will attache the component, to which 'info()' method is called, as 'reporter' object of FeedbackMessage object. It could become a reason of this problem. But the FeedbackMessage will be destroyed when the message will be displayed with FeedbackPanel. So I think, memory leak will never occur. If I use 'Session.get().info()' method, instead of component.info(), FeedbackMessage's 'reporter' object become null. In this case, My sample program never stopped with OutOfMemoryError or StackOverflowError. I could not find out the reason. Is this a bug of Wicket? or failure of my program. --- Tsutomu YANO t_y...@me.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: jWicket -- jQuery with Wicket integration
Yes! Fixed. Now it's http://subversion.visionet.de/project/WicketJQuery/browser/tags/0.3.7/WicketJQueryDemo.war -Ursprüngliche Nachricht- Von: satar [mailto:starl...@gmail.com] Gesendet: Dienstag, 21. Juli 2009 20:27 An: users@wicket.apache.org Betreff: Re: jWicket -- jQuery with Wicket integration Just an FYI, the link to the WicketJQueryDemo.war on http://subversion.visionet.de/project/WicketJQuery/wiki; is broke. I think it should be: http://subversion.visionet.de/project/WicketJQuery/browser/tags/0.3.6/WicketJQueryDemo.war instead its: http://subversion.visionet.de/project/WicketJQuery/browser/tags/0.3./WicketJQueryDemo.war -- View this message in context: http://www.nabble.com/jWicketjQuery-with-Wicket-integration-tp24584280p24593132.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxSelfUpdatingTimerBehavior and ModalWindow
I know this is an old post but it hits an issue I currently have. I want to provide the user the ability to turn on/off auto refresh of data from the database. If all possible, I would like to use the original AjaxSelfUpdatingTimerBehavior or at least the AbstractAjaxTimerBehavior but it has the stopped boolean as a private with no way to set it back to true and the methods that use it use it directly instead of calling a method that I can override -- am I missing something? The man reason I want to do this is for performance trade-offs. I see that if I set the timer off by calling the stop() method, the interface is much snappier. It looks like another potential idea may be to override the method renderHead, but I cannot override the respond method, which uses the stopped boolean. Is there a better way to handle such a problem -- I am using Wicket 1.4-r2. -- View this message in context: http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-and-ModalWindow-tp22202102p24593467.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxSelfUpdatingTimerBehavior and ModalWindow
Well.. you could just replace it with a new one.. ** Martin 2009/7/21 satar starl...@gmail.com: I know this is an old post but it hits an issue I currently have. I want to provide the user the ability to turn on/off auto refresh of data from the database. If all possible, I would like to use the original AjaxSelfUpdatingTimerBehavior or at least the AbstractAjaxTimerBehavior but it has the stopped boolean as a private with no way to set it back to true and the methods that use it use it directly instead of calling a method that I can override -- am I missing something? The man reason I want to do this is for performance trade-offs. I see that if I set the timer off by calling the stop() method, the interface is much snappier. It looks like another potential idea may be to override the method renderHead, but I cannot override the respond method, which uses the stopped boolean. Is there a better way to handle such a problem -- I am using Wicket 1.4-r2. -- View this message in context: http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-and-ModalWindow-tp22202102p24593467.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
BoundCompoundPropertyModel @Deprecated
Hallo folks, can someone please tell me why the BoundCompoundPropertyModel is declared as deprecated in wicket 1.4? I'm about to migrate from 1.3.5 to 1.4RC7 and I got 980 warnings. I solved about 450 today. I got about 350 warnings because of the BoundCompoundPropertyModel. I loved that model because it disassociates the html markup file from the properties within the entities. Now I have to use the CompoundPropertyModel and therefore I have to change the whole html markup ids in the html files to entity.entity.variable, etc. I really don't like that way because if any variable within an entity changes (renamed, moved, ...), I have to make sure, the markup ids in the html files are changed, too. Is there a good reason why the BoundCompoundPropertyModel is deprecated now? I can't understand it because it extended the CompoundPropertyModel for a good reason or am I wrong? Best regards Arthur
Re: using ajaxbutton for for submit
One disadvantage would be if the client don't support javascript -- View this message in context: http://www.nabble.com/using-ajaxbutton-for-for-submit-tp24591716p24594589.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
disable a validator
Hi all, How can I disable a validator for a TextField? I have a WizardStep that I wanted to set in editable o readable. In editable state, I need to disable some validators. Thanks in advance Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: BoundCompoundPropertyModel @Deprecated
read the javadoc. -igor On Tue, Jul 21, 2009 at 12:55 PM, Arthur Leigh Allenarthurleigh.al...@yahoo.de wrote: Hallo folks, can someone please tell me why the BoundCompoundPropertyModel is declared as deprecated in wicket 1.4? I'm about to migrate from 1.3.5 to 1.4RC7 and I got 980 warnings. I solved about 450 today. I got about 350 warnings because of the BoundCompoundPropertyModel. I loved that model because it disassociates the html markup file from the properties within the entities. Now I have to use the CompoundPropertyModel and therefore I have to change the whole html markup ids in the html files to entity.entity.variable, etc. I really don't like that way because if any variable within an entity changes (renamed, moved, ...), I have to make sure, the markup ids in the html files are changed, too. Is there a good reason why the BoundCompoundPropertyModel is deprecated now? I can't understand it because it extended the CompoundPropertyModel for a good reason or am I wrong? Best regards Arthur - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do I set a selected item outside of an inmethod datagrid?
If I understand your problem correctly you want to do master and detail grids. When you select an item in a master table (by means of a mouse click) you want to repopulate the details(history) table and make a selection on programmaticaly, right? I would say you first need to override onItemSelection changed to intercept selection events on your master table: @Override public void onItemSelectionChanged(IModel item, boolean newValue) { super.onItemSelectionChanged(item, newValue); if (newValue) { //selection has changed on the master table //so you have to update //the history table's datasource object updateHistoryTableDatasource(item);//you implementation goes here //mark all items in a detail table for update historyTable.markAllItemsDirty(); //refresh detail table historyTable.update(); } } And for selection of a newest item in a history I would suggest that you sort history by date that the newest item comes first and then simply select the first item in the historyTable. cheers Marcin -- View this message in context: http://www.nabble.com/How-do-I-set-a-selected-item-outside-of-an-inmethod-datagrid--tp24565364p24595335.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ModalWindow windowClosedCallback and WicketTester
Here is one workaround I found, but of course a) it should be built-in and b) automatic. public void executeModalWindoCloseCallback(ModalWindow modalWindow) { for (IBehavior behavior : modalWindow.getBehaviors()) { if (behavior instanceof AbstractDefaultAjaxBehavior) { tester.executeBehavior((AbstractAjaxBehavior) behavior); break; } } } ** Martin 2009/7/21 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! I have the same problem as http://www.mail-archive.com/users@wicket.apache.org/msg05826.html Is it solved? I have a ModalWindow with a close button in it, the button's onclick calls modalWindow.close() via AJAX. My problem is that when I call the onclick via wicketTester.executeAjaxEvent(button, onclick) the modalWindow's windowClosedCallback doesn't fire.. Am I missing something? Or am I supposed to call it from the testcase? Many thanks for your time! ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ModalWindow windowClosedCallback and WicketTester
Nah... have to take that back. This works better but only once: It works better like this: for (IBehavior behavior : modalWindow.getBehaviors()) { if (behavior instanceof AbstractDefaultAjaxBehavior) { ((AbstractDefaultAjaxBehavior) behavior).onRequest(); break; } } It seems to somehow break the tester flow and the last rendered page is somehow not up-to-date. Help, pls :) ** Martin 2009/7/21 Martin Makundi martin.maku...@koodaripalvelut.com: Here is one workaround I found, but of course a) it should be built-in and b) automatic. public void executeModalWindoCloseCallback(ModalWindow modalWindow) { for (IBehavior behavior : modalWindow.getBehaviors()) { if (behavior instanceof AbstractDefaultAjaxBehavior) { tester.executeBehavior((AbstractAjaxBehavior) behavior); break; } } } ** Martin 2009/7/21 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! I have the same problem as http://www.mail-archive.com/users@wicket.apache.org/msg05826.html Is it solved? I have a ModalWindow with a close button in it, the button's onclick calls modalWindow.close() via AJAX. My problem is that when I call the onclick via wicketTester.executeAjaxEvent(button, onclick) the modalWindow's windowClosedCallback doesn't fire.. Am I missing something? Or am I supposed to call it from the testcase? Many thanks for your time! ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxSelfUpdatingTimerBehavior and ModalWindow
There is an enhancement request in Wicket JIRA for this issue, but it is set to 1.5 release... http://issues.apache.org/jira/browse/WICKET-1525 In the meantime, the class I created merging AjaxSelfUpdatingTimerBehavior and AbstractAjaxTimerBehavior is working fine, although I agree that when the page refreshes on a timer it seems somewhat sluggish. hth, Daniel satar wrote: I know this is an old post but it hits an issue I currently have. I want to provide the user the ability to turn on/off auto refresh of data from the database. If all possible, I would like to use the original AjaxSelfUpdatingTimerBehavior or at least the AbstractAjaxTimerBehavior but it has the stopped boolean as a private with no way to set it back to true and the methods that use it use it directly instead of calling a method that I can override -- am I missing something? The man reason I want to do this is for performance trade-offs. I see that if I set the timer off by calling the stop() method, the interface is much snappier. It looks like another potential idea may be to override the method renderHead, but I cannot override the respond method, which uses the stopped boolean. Is there a better way to handle such a problem -- I am using Wicket 1.4-r2. -- View this message in context: http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-and-ModalWindow-tp22202102p24595575.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ModalWindow windowClosedCallback and WicketTester
After further investigation... the break; is to blame ;) Thera are multiple behaviors and one must search to execute the proper one... tester.executeBehavior((AbstractAjaxBehavior) behavior); is fine. Anyways, probably deserves an RFE? ** Martin 2009/7/21 Martin Makundi martin.maku...@koodaripalvelut.com: Here is one workaround I found, but of course a) it should be built-in and b) automatic. public void executeModalWindoCloseCallback(ModalWindow modalWindow) { for (IBehavior behavior : modalWindow.getBehaviors()) { if (behavior instanceof AbstractDefaultAjaxBehavior) { tester.executeBehavior((AbstractAjaxBehavior) behavior); break; } } } ** Martin 2009/7/21 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! I have the same problem as http://www.mail-archive.com/users@wicket.apache.org/msg05826.html Is it solved? I have a ModalWindow with a close button in it, the button's onclick calls modalWindow.close() via AJAX. My problem is that when I call the onclick via wicketTester.executeAjaxEvent(button, onclick) the modalWindow's windowClosedCallback doesn't fire.. Am I missing something? Or am I supposed to call it from the testcase? Many thanks for your time! ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Loading Velocity Templates
Hello, I currently use Velocity templates within my Wicket 1.3 application, and I have been using VelocityPanel.forTemplateResource to locate my resources passing it the actual file URL of the velocity template. However, I now have a need to find the velocity templates in the same way the HTML files are found. In other words, I need to find it based on the default algorithm of: 1. [sourcePath]/name[style][locale].[extension] 2. [sourcePath]/name[locale].[extension] 3. [sourcePath]/name[style].[extension] 4. [sourcePath]/name.[extension] 5. [classPath]/name[style][locale].[extension] 6. [classPath]/name[locale].[extension] 7. [classPath]/name[style].[extension] 8. [classPath]/name.[extension] Each velocity template is named the same as the Page or Panel it is used with. How would I go about loading the velocity template to accomplish this? Thanks for your help, Andrew
Re: Loading Velocity Templates
see if ResourceNameIterator helps -igor On Tue, Jul 21, 2009 at 3:55 PM, Andrew Bermanatber...@gmail.com wrote: Hello, I currently use Velocity templates within my Wicket 1.3 application, and I have been using VelocityPanel.forTemplateResource to locate my resources passing it the actual file URL of the velocity template. However, I now have a need to find the velocity templates in the same way the HTML files are found. In other words, I need to find it based on the default algorithm of: 1. [sourcePath]/name[style][locale].[extension] 2. [sourcePath]/name[locale].[extension] 3. [sourcePath]/name[style].[extension] 4. [sourcePath]/name.[extension] 5. [classPath]/name[style][locale].[extension] 6. [classPath]/name[locale].[extension] 7. [classPath]/name[style].[extension] 8. [classPath]/name.[extension] Each velocity template is named the same as the Page or Panel it is used with. How would I go about loading the velocity template to accomplish this? Thanks for your help, Andrew - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Loading Velocity Templates
What exactly do I pass into the path part? Do I pass in a full directory structure or just the name of the file? I've tried this before and I always get a null. Thanks Igor On Tue, Jul 21, 2009 at 4:05 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: see if ResourceNameIterator helps -igor On Tue, Jul 21, 2009 at 3:55 PM, Andrew Bermanatber...@gmail.com wrote: Hello, I currently use Velocity templates within my Wicket 1.3 application, and I have been using VelocityPanel.forTemplateResource to locate my resources passing it the actual file URL of the velocity template. However, I now have a need to find the velocity templates in the same way the HTML files are found. In other words, I need to find it based on the default algorithm of: 1. [sourcePath]/name[style][locale].[extension] 2. [sourcePath]/name[locale].[extension] 3. [sourcePath]/name[style].[extension] 4. [sourcePath]/name.[extension] 5. [classPath]/name[style][locale].[extension] 6. [classPath]/name[locale].[extension] 7. [classPath]/name[style].[extension] 8. [classPath]/name.[extension] Each velocity template is named the same as the Page or Panel it is used with. How would I go about loading the velocity template to accomplish this? Thanks for your help, Andrew - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Loading Velocity Templates
On Tue, Jul 21, 2009 at 4:17 PM, Andrew Bermanatber...@gmail.com wrote: What exactly do I pass into the path part? Do I pass in a full directory structure or just the name of the file? it doesnt matter - whatever you pass in is whatever you will get back - it is basically a prefix. i havent tried to use this myself, but looking from the source code in wicket it looks like it should work. -igor I've tried this before and I always get a null. Thanks Igor On Tue, Jul 21, 2009 at 4:05 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: see if ResourceNameIterator helps -igor On Tue, Jul 21, 2009 at 3:55 PM, Andrew Bermanatber...@gmail.com wrote: Hello, I currently use Velocity templates within my Wicket 1.3 application, and I have been using VelocityPanel.forTemplateResource to locate my resources passing it the actual file URL of the velocity template. However, I now have a need to find the velocity templates in the same way the HTML files are found. In other words, I need to find it based on the default algorithm of: 1. [sourcePath]/name[style][locale].[extension] 2. [sourcePath]/name[locale].[extension] 3. [sourcePath]/name[style].[extension] 4. [sourcePath]/name.[extension] 5. [classPath]/name[style][locale].[extension] 6. [classPath]/name[locale].[extension] 7. [classPath]/name[style].[extension] 8. [classPath]/name.[extension] Each velocity template is named the same as the Page or Panel it is used with. How would I go about loading the velocity template to accomplish this? Thanks for your help, Andrew - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
how to show a page in a TabPanel
Hello Friends, i have a TabPanel with 3 tabs. shall we have another page for every tab? shall i use setContentPage? is it possible -- Thanksregards, Gerald A