Re: How can we make runtime templates switching?
Also you can use borders instead of panels, they allow to replace inheritance by aggregation. 2008/12/17 Alex Chew chew.a...@gmail.com: Hi, all I think i fall in troubles with template switching during runtime. Formerly we build the whole application with default template using markup inheritance. Unfortunately,we are requested to support runtime templates switching . In other words, our customer want to use different templates to fit their needs with setting but not developing. The final effective is just like joomla!'s template managment. The problem is, We using EXTENDS to support default template with markup inheritance. But we cannot change base class while in runtime. Can anybody show me the light? Any advice will be appreciated. Thanks in advance. BR, Alex -- WBR, kan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
strange 404 error
We are getting a consistent 404 error during our first login. it seems to be appending the jsessionid= param and wicket doesn't seem to like it. This usually happens on the first login of the day: the app redirects to the login page with the session id appended: Goto: http://localhost:8080/ Redirected to : http://localhost:8080/login;jsessionid=1b5axe9wb1o8k Receive a 404 error: HTTP ERROR: 404 NOT_FOUND RequestURI=/login;jsessionid=1b5axe9wb1o8k Powered by Jetty:// This is happening in your dev Jetty instance and on you production Tomcat 6 instance. It looks to me as if the login system (auth-roles) is getting the session id from something other than the real session, and attempting to use it, but it may also be WIcket not parsing the URI properly. We're using Wicket 1.4 SNAPSHOT deps. Does anyone have any idea how to resolve this? - Brill Pappin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
DatePicker size problem
Hallo, when i open a Datepicker (Wicket-Extension) first i see the full-size datepicker with close-button. When i move in with the mouse the datepicker resize smaller and the close-button fade away. http://www.nabble.com/file/p21051404/date.jpg -- View this message in context: http://www.nabble.com/DatePicker-size-problem-tp21051404p21051404.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: Spring+Hibernate+Authentication
only component subclasses are injected. in your sessions's constructor do injectorholder.getinjector().inject(this) to inject the session instance. -igor On Wed, Dec 17, 2008 at 10:18 AM, Curtis Cooley curtis.coo...@venture.com.sg wrote: I'm still struggling with authentication, but I've figured out the 'basic' wicket way. I have a class that extends AuthenticatedWebSession and implements the authenticate(String user, String passwd) method. Now I'd like to use a @SpringBean to access the database to look up the user. The problem seems to be that when the AuthenticatedWebSession is created, Spring injection does not happen, so I get NullPointerExceptions. Is there an example I've overlooked that uses a database to lookup users during authentication. is it possible to use Spring and Hibernate to do this? The code: @SpringBean private DictionaryDao dictionaryDao; @Override public boolean authenticate(String username, String password) { try { // dictionaryDao is null when authentication is attempted User user = dictionaryDao.userByName(username); return user != null password.equals(user.getPassword()); } catch (Exception e) { e.printStackTrace(); return false; } } Confidential/Privileged information may be contained in this email. If you are not the intended recipient, please do not copy, distribute or use it for any purpose, nor disclose its contents to any other person. Please notify the sender immediately if you receive this in error. - 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
Expanding table row - need idea
Hi guys, My goal is to create a table (with few simple columns) such that each row can be expanded (and then collapsed. for example, when the user clicks on a link icon or on a ‘+’ link sign)., this way I can show further details (such that the content of the details span on all columns) Simply – I need some ideas how to implement that. My thoughts are: Creating a “simple” table using ListView. When clicking on the ‘+’ link sign I will instantiate an “ExtendRowPanel” class that will contains the row item details (I can put anything there) and then switching with the visibility of the item (of the panel?) being rendered (within onPopulateItem()) and updating it via Ajax. I tried to implements the above but encountered many problems. I would like to know if I’m in the correct path for my solution and continue with that approach or looking for something else. I looked at the ajax tree table example in wicket stuff using TreeTable IColumn but it seems to me not compatible since the “design” of the table is done within PropertyRenderableColumn and not via a css file (I noticed that the html contains only the wicket table ID). I prefer defining the table with its columns in the HTML file. I will be grateful for ANY idea (or a link to any sample for such case). BTW: I also looked at the following example http://swik.net/Peter-Thomas/Incremental+Operations/Wicket+and+GWT+compared+with+code/cdpvw http://swik.net/Peter-Thomas/Incremental+Operations/Wicket+and+GWT+compared+with+code/cdpvw but that implementation switches between two panels: the expanded one and the collapsed one. In my case, I need only to add a panel… Simon. -- View this message in context: http://www.nabble.com/Expanding-table-row---need-idea-tp21057904p21057904.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: Expanding table row - need idea
Well.. here is a showhideborder that you can use.. you know how to use borders? public class ShowHideBorder extends Border implements WebPageConstants { /** */ public static final String TOGGLE_CONTENTS_BUTTON = toggle_contents_button; /** */ public static final String CONTENTS = contents; /** */ final Component toggleContentsButton; /** * @param id * @param form * @param maximizeByDefault * @param listener */ public ShowHideBorder(String id, Form? form, boolean maximizeByDefault, final AjaxRequestListenerInterface listener) { super(id); setOutputMarkupPlaceholderTag(true).setRenderBodyOnly(false); add(new Label(LEGEND, getString(getId(; final WebMarkupContainer contents; add(contents = new WebMarkupContainer(CONTENTS)); contents.setVisible(maximizeByDefault).setOutputMarkupPlaceholderTag(true).setRenderBodyOnly(false); contents.add(getBodyContainer()); final MiniMaxButtonAttributeModifier toggleButtonModel = new MiniMaxButtonAttributeModifier(!maximizeByDefault); toggleContentsButton = new AjaxFallbackButton(TOGGLE_CONTENTS_BUTTON, form) { @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { toggleButtonModel.toggleButton(); contents.setVisible(toggleButtonModel.isVisible()); if (target != null) { target.addComponent(toggleContentsButton); target.addComponent(contents); listener.addComponents(target); } } }.setDefaultFormProcessing(false).setOutputMarkupId(true).add(new AttributeModifier(style, true, toggleButtonModel)) .add(MarkupUtils.getTooltip(getString(toggle_information))); add(toggleContentsButton); } } ** Martin 2008/12/17 simonm si...@redbend.com: Hi guys, My goal is to create a table (with few simple columns) such that each row can be expanded (and then collapsed. for example, when the user clicks on a link icon or on a '+' link sign)., this way I can show further details (such that the content of the details span on all columns) Simply – I need some ideas how to implement that. My thoughts are: Creating a simple table using ListView. When clicking on the '+' link sign I will instantiate an ExtendRowPanel class that will contains the row item details (I can put anything there) and then switching with the visibility of the item (of the panel?) being rendered (within onPopulateItem()) and updating it via Ajax. I tried to implements the above but encountered many problems. I would like to know if I'm in the correct path for my solution and continue with that approach or looking for something else. I looked at the ajax tree table example in wicket stuff using TreeTable IColumn but it seems to me not compatible since the design of the table is done within PropertyRenderableColumn and not via a css file (I noticed that the html contains only the wicket table ID). I prefer defining the table with its columns in the HTML file. I will be grateful for ANY idea (or a link to any sample for such case). BTW: I also looked at the following example http://swik.net/Peter-Thomas/Incremental+Operations/Wicket+and+GWT+compared+with+code/cdpvw http://swik.net/Peter-Thomas/Incremental+Operations/Wicket+and+GWT+compared+with+code/cdpvw but that implementation switches between two panels: the expanded one and the collapsed one. In my case, I need only to add a panel… Simon. -- View this message in context: http://www.nabble.com/Expanding-table-row---need-idea-tp21057904p21057904.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: Expanding table row - need idea
Ofcourse with the relevant markup ofcourse: wicket:border fieldset style=padding: 0px; legend input type=button wicket:id=toggle_contents_button class=kuvanappi value= span wicket:id=legend/span /legend span wicket:id=contents wicket:body / /span /fieldset /wicket:border 2008/12/17 Martin Makundi martin.maku...@koodaripalvelut.com: Well.. here is a showhideborder that you can use.. you know how to use borders? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Beginners questions: How integrate Spring+Wicket? Quickstart? Why is that directory hierarchy recommended?
I've bought and read most of Wicket in Action (WIA), great book! I'm exited to use Wicket but I have some start up questions I feel I need to ask someone more experienced about. The project will use Wicket + Spring + Hibernate which I suspect is a fairly common combination. In the bonus chapter on how to setup an environment in WIA it mentions three ways to get a quick start: Wicket's quick-start project generator (Wicket only), QWicket (sets up Wicket + Spring) and AppFuse Light (sets up Wicket + Spring + a number of ORM frameworks. Or alternativly I could set it up myself by hand. I don't want to use Maven 2 as I feel that I have reach my limit on new technologies for one project (I'm previously familiar with EJB 3.0, JPA, Servlet + JSP and Ant) and it seems like it requires some time to get used to. http://wicket.apache.org/quickstart.html suggests this project structure: .\myproject | pom.xml | \---src +---main | +---java | | \---com | | \---mycompany | | HomePage.html | | HomePage.java | | WicketApplication.java | | | +---resources | | log4j.properties | | | \---webapp | \---WEB-INF | web.xml | \---test \---java \---com \---mycompany Start.java I understand that parallell normal source and test source directory structures is a good thing. However, do you see an advantage in having /src/main/(java|resources|webapp)/* and /src/test/* ? Why not just have /src/* , /resources/* , /webapp/* and /test/* and flatten the hierarchy a bit? What do you use that indirection for? My last question is how do you integration Spring and Wicket? As there are several ways I'm in search of some previous experience from people who have used these two frameworks together. To sum up my mail in three questions: 1. Do you recommend that I use some kind of quick start method? And if so, which one? 2. Why have main and test under the project root, and not src (alias main) , resources, webapp and test? (It's only four directories.) 3. How do you recommend that I integrate Spring and Wicket? MANY thanks for reading! Best regards, Kent Larsson
Re: How to determine which page I am on?
You might also want to check out the linksTo(Page p) method: http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/link/Link.html#linksTo(org.apache.wicket.Page) On Wed, Dec 17, 2008 at 7:14 AM, pieter claassen pieter.claas...@gmail.com wrote: Adriano, that worked, thanks!! Why did it work? Cheers, Pieter On Wed, Dec 17, 2008 at 12:11 AM, Adriano dos Santos Fernandes adrian...@uol.com.br wrote: pieter claassen wrote: I am trying to write a menu that formats the link nicely for the page I am on. So far, the novomatic tut helped the most, but there is no detail on how to customize the implementation. My strategy is to determine which page I am on and then to set an attribute on the link and format it with css. I have tried to use getParent() and getPage() on my menu panel with no luck. public class MainMenu extends Panel { . if (getPage().getClass().equals(com.musmato.HomePage.class)) { System.out.println(Homepage); } I think if you put that code on onBeforeRender it will work. Adriano - 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: Beginners questions: How integrate Spring+Wicket? Quickstart? Why is that directory hierarchy recommended?
Kent, 1 - In my opinion, by far the best way to get started (as you intend to go on) is described http://wicket.apache.org/quickstart.html here . Once you have spent 37 seconds (roughly) mastering as much Maven as you'll need for this purpose, this technique will see you good through most of your upcoming Wicket projects and help you communicate/exchange stuff more easily with a lot of other, very helpful Wicket developers. 2 - Do you feel the structure you suggest is an improvement? Where will you put test resources? 3 - There are several ways to do this - depends on the architecture you decide on. You can get some ideas http://cwiki.apache.org/WICKET/wicket-phonebook.html here . You could inject your DAO instances into the service layer using raw Spring IoC and inject service objects into your pages (or other Components) using Wicket's @SpringBean. See the 3 tier service architecture described in your copy of WiA. You can also read more http://cwiki.apache.org/WICKET/spring.html here . If you have more specific questions (eg on how to use @SpringBean with non Wicket-Components ... etc), it's all quite easy once you know how as the core developers have made a good job of this - you'll get used to that feeling with Wicket - you'll get a lot of good help here as many people use Wicket with Spring and ORM (JPA and/or Hibernate ...). Regards - Cemal http://www.jweekend.co.uk jWeekend Kent Larsson-3 wrote: I've bought and read most of Wicket in Action (WIA), great book! I'm exited to use Wicket but I have some start up questions I feel I need to ask someone more experienced about. The project will use Wicket + Spring + Hibernate which I suspect is a fairly common combination. In the bonus chapter on how to setup an environment in WIA it mentions three ways to get a quick start: Wicket's quick-start project generator (Wicket only), QWicket (sets up Wicket + Spring) and AppFuse Light (sets up Wicket + Spring + a number of ORM frameworks. Or alternativly I could set it up myself by hand. I don't want to use Maven 2 as I feel that I have reach my limit on new technologies for one project (I'm previously familiar with EJB 3.0, JPA, Servlet + JSP and Ant) and it seems like it requires some time to get used to. http://wicket.apache.org/quickstart.html suggests this project structure: .\myproject | pom.xml | \---src +---main | +---java | | \---com | | \---mycompany | | HomePage.html | | HomePage.java | | WicketApplication.java | | | +---resources | | log4j.properties | | | \---webapp | \---WEB-INF | web.xml | \---test \---java \---com \---mycompany Start.java I understand that parallell normal source and test source directory structures is a good thing. However, do you see an advantage in having /src/main/(java|resources|webapp)/* and /src/test/* ? Why not just have /src/* , /resources/* , /webapp/* and /test/* and flatten the hierarchy a bit? What do you use that indirection for? My last question is how do you integration Spring and Wicket? As there are several ways I'm in search of some previous experience from people who have used these two frameworks together. To sum up my mail in three questions: 1. Do you recommend that I use some kind of quick start method? And if so, which one? 2. Why have main and test under the project root, and not src (alias main) , resources, webapp and test? (It's only four directories.) 3. How do you recommend that I integrate Spring and Wicket? MANY thanks for reading! Best regards, Kent Larsson -- View this message in context: http://www.nabble.com/Beginners-questions%3A-How-integrate-Spring%2BWicket--Quickstart--Why-is-that-directory-hierarchy-recommended--tp21058097p21059761.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: Participating in Wicket
Thanks Martijn How do you suggest to start studying Wicket core code (I don't mean getting the source code :) )? It is complicated to study and grasp? Thanks again. Martijn Dashorst wrote: Look at jira issues, fix them, create a patch and attach it to the jira issue. When we like your code and are tired of applying the fixes for you, you might be proposed to become a committer yourself. Valuable info: http://apache.org/dev/contributors.html#patches Martijn On Wed, Dec 17, 2008 at 11:13 AM, HHB hubaghd...@yahoo.ca wrote: Hey, I really have a great passion toward Wicket framework and I really want to participate with their core developer teams. My problem is that this framework has really great and passion developers and I can't imagine myself trying to join them (nor they will accept, I think) not to mention this great community. What do you suggest me to do? Thanks for your time. -- View this message in context: http://www.nabble.com/Participating-in-Wicket-tp21050410p21050410.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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - 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/Participating-in-Wicket-tp21050410p21050753.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: DatePicker size problem
Thanks its an IE BUG :-) Fine with Firefox... Emanuele Gesuato-2 wrote: HITECH79 wrote: Hallo, when i open a Datepicker (Wicket-Extension) first i see the full-size datepicker with close-button. When i move in with the mouse the datepicker resize smaller and the close-button fade away. http://www.nabble.com/file/p21051404/date.jpg Could it be related to this issue ? https://issues.apache.org/jira/browse/WICKET-1803 - 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/DatePicker-size-problem-tp21051404p21053109.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: Participating in Wicket
I found this helpful. http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html Scott On Wed, Dec 17, 2008 at 2:38 AM, HHB hubaghd...@yahoo.ca wrote: Thanks Martijn How do you suggest to start studying Wicket core code (I don't mean getting the source code :) )? It is complicated to study and grasp? Thanks again. Martijn Dashorst wrote: Look at jira issues, fix them, create a patch and attach it to the jira issue. When we like your code and are tired of applying the fixes for you, you might be proposed to become a committer yourself. Valuable info: http://apache.org/dev/contributors.html#patches Martijn On Wed, Dec 17, 2008 at 11:13 AM, HHB hubaghd...@yahoo.ca wrote: Hey, I really have a great passion toward Wicket framework and I really want to participate with their core developer teams. My problem is that this framework has really great and passion developers and I can't imagine myself trying to join them (nor they will accept, I think) not to mention this great community. What do you suggest me to do? Thanks for your time. -- View this message in context: http://www.nabble.com/Participating-in-Wicket-tp21050410p21050410.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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - 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/Participating-in-Wicket-tp21050410p21050753.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: How to determine which page I am on?
pieter claassen escreveu: Adriano, that worked, thanks!! Why did it work? On the Panel constructor, it's not yet added to any page, as you need an instance to add it to a page. :-) On onBeforeRender, you have the complete components hierarchy ready. Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket error in GlassFish
What IDE are you using? Have you tried to Clean Build. Undeploy and redeploy, also there could be some library conflicts especially with respect to logging 2008/12/17 Daniel lia...@gmail.com Changed follow your advice, but the error is the same. It may not the code's problem but some special configuration of the Web Container. Error Page from browser: *type* Exception report *message* *description*The server encountered an internal error () that prevented it from fulfilling this request. *exception* javax.servlet.ServletException: PWC1391: Servlet.init() for servlet HelloWorldApplication threw exception *root cause* org.apache.wicket.WicketRuntimeException: Unable to create application of class com.example.helloworld.HelloWorldApplication *root cause* java.lang.ClassNotFoundException: com.example.helloworld.HelloWorldApplication *note* *The full stack traces of the exception and its root causes are available in the GlassFish/v3 logs.* 2008/12/16 Ajayi Yinka iamstyaj...@googlemail.com From the error log, it seems glass fish could not load the webApplication class. Make sure your webApplication class is in the correct class path (com.example.helloworld.HelloWorldApplication) And the webApplcation class is in the correct format. or and may change your web.xml file to be in this format: filter filter-nameHelloWorldApplication/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.example.helloworld.HelloWorldApplication/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param /filter 2008/12/16 Daniel lia...@gmail.com Hi, I'm an newbie in Wicket. When I create my first hello world wicket program, strange error encounted. The hello world program is just to show 'Hello World' through Label. The web.xml is as below, servlet servlet-nameHelloWorldApplication/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationClassName/param-name param-valuecom.example.helloworld.HelloWorldApplication/param-value /init-param /servlet servlet-mapping servlet-nameHelloWorldApplication/servlet-name url-pattern/helloWorld/*/url-pattern /servlet-mapping In Tomcat env, when I call the URL : http://localhost:8080/WicketExamples/helloWorld/. http://localhost:8080/WicketExamples/helloWorld/Everything goes well. When I use the URL: http://localhost:8080/WicketExamples/, show 404 error. But the same program runs in GlassFish env. when I call the same URL, error comes as below 2008-12-16 17:32:00 org.apache.catalina.core.ApplicationContext log 严重: WebModule[/WicketExamples]StandardWrapper.Throwable org.apache.wicket.WicketRuntimeException: Unable to create application of class com.example.helloworld.HelloWorldApplication at org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:82) at org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:666) at org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:209) at javax.servlet.GenericServlet.init(GenericServlet.java:270) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1198) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:863) at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:369) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at
TextField in inmethod grid column header - Firefox issue
Hi! I'm using the inmethod grid 1.0.0-SNAPSHOT (1.3 branch) with Wicket 1.3.5. I added a TextField to my custom column header (an AbstractLightWeightColumn extension). The purpose of the TextField is to provide a way to filter the row contents of the column. It works fine in Internet Explorer 6. However, in Firefox 3, I cannot focus on the TextField and type in it. It seems that (possibly) the pre-light event for dragging the column is blocking focus on the TextField. I've gone through all the grid javascript and can't find anything obvious. Thanks for any help. I've attached a visual aid... http://www.nabble.com/file/p21060335/datagrid_textbox.jpg -- View this message in context: http://www.nabble.com/TextField-in-inmethod-grid-column-header---Firefox-issue-tp21060335p21060335.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
DOJO Debug messages written in the html document
Hi all, I began using DOJO Context Menu with wicket 1.3.4. I retrieved the component from the wicketstuff branch for wicket 1.3.x. When i try to use it, i've got the following error printed (when using wicket in debug mode) on the html document itself and NOT in the ajax debug window: DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for panel in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for panel in wicket.widget registered to namespace wicket DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for panel in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for panel in wicket.widget registered to namespace wicket DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for panel in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for panel in wicket.widget registered to namespace wicket DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for border in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for border in wicket.widget registered to namespace wicket I would like to have them printed to the ajax debug window or there is a way to avoid them printed in the html document ? I've got the error on Firefox 2.0.0.18 and Internet Explorer 7; in Firefox 3 i've got the error only one time, after refreshed the browser it never happened again. The html and java are taken from the example of wicketstuff. HTML: ... body wicket:extend div wicket:id=container / /wicket:extend /body ... JAVA: ... DojoSimpleContainer container = new DojoSimpleContainer(container); container.setHeight(500px); DojoMenu menu = new DojoMenu(menu); menu.addChild(new DojoMenuItem(about, About)); menu.addChild(new DojoMenuItem(edit, Edit)); container.add(new DojoContextualMenuBehavior(menu)); add(container); ... I would like to have printed the error messages in the ajax debug window or found a way to resolve this deprecated messages or at least having them not printed at all. Thanks for any help, Emanuele - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: When to pass object instance /class type?
have a look at http://cwiki.apache.org/WICKET/bookmarkable-pages-and-links.html , it could help you understand the difference. francisco On Sun, Dec 14, 2008 at 9:58 AM, HHB hubaghd...@yahoo.ca wrote: Hey, What is the difference between: setResponsePage(CoolPage.class) and setResponsePage(new CoolPage()) ? When to use each one? Thanks. -- View this message in context: http://www.nabble.com/When-to-pass-object-instance--class-type--tp20998410p20998410.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
Dynamically update TreeTable model
I have a TreeTable and I have links within it. When a user clicks a link they are presented with a modal window with a FileUpload component in it. When they upload a new file and click close on the modal window, the TreeTable is not updated. I tried to use a LoadableDetachableModel that returns a DefaultTreeModel but if I do that then every time I click to expand a folder node the tree refreshes the model and the tree state and the icon doesn't expand(i'm guessing it's because the treestate gets recreated?). I searched but couldn't find anyone with this specific problem in the forum. Can someone please help? Thanks, Josh -- View this message in context: http://www.nabble.com/Dynamically-update-TreeTable-model-tp21056846p21056846.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: TinyMCE ajax load
Maybe my response to Martijn Lindhout's question regarding 'TinyMCE in an Ajax loaded panel' can be of any use. Sverre -Oorspronkelijk bericht- Van: Pointbreak [mailto:pointbreak+wicketst...@ml1.net] Verzonden: woensdag 17 december 2008 17:55 Aan: Wicket Users Mailing List Onderwerp: Re: TinyMCE ajax load This will happen if your tabbed panel removes the actual content (dom elements) that contains the editor. I would suggest to let your tabbed panel make its content invisible, not remove dom elements. But if you don't want to change the panel, you can simply add the component that has your tinymcebehavior to the target of the ajax request when switching back to the original panel. This will reinitialize your tinymce editor. On Wed, 17 Dec 2008 19:46 +0330, Omid Alamdar Milani omil...@gmail.com wrote: I'm trying to have an ajax tabbed panel where editor is in one of the tabs. When page is first showed, the editor tab is active and everything works fine, but when user changes tab and again returns to editor tab it doesn't load and plain text area is showed. So it isn't a problem with loading javascripts, they're already loaded. On Wed, Dec 17, 2008 at 6:21 PM, Pointbreak pointbreak+wicketst...@ml1.net wrote: If by load with ajax you mean that the javascript sources are loaded on ajax requests, instead of with the initial page, then no, that is not supported. The ajax parameter that was available in old 1.3 snapshots did not work properly. It has been removed for some time now (also in latest 1.3-snapshots). There is ajax support (e.g. an InPlaceEditComponent), but all javascript will be loaded normally. On Wed, 17 Dec 2008 17:57 +0330, Omid Alamdar Milani omil...@gmail.com wrote: Hi, Is there a way to load tiny mce editor with ajax? 1.3 snapshot has an ajax parameter and works correctly on firefox but doesn't work on IE. The latest 1.4 snapshot works fine with IE but the ajax parameter is gone and I couldn't find a way to load it with ajax. - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.16/1842 - Release Date: 16-12-2008 18:11 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: strange 404 error
I'm having similar errors (not 404, but internal error, sorry but do not have stack trace right now, and is not always reproducible). I use Wicket 1.4-rc1 and auth-roles with Tomcat6. It seems that when there is no session, just after the login the error happens. It was a NoMethodFound from IForm*. Adriano Brill Pappin escreveu: We are getting a consistent 404 error during our first login. it seems to be appending the jsessionid= param and wicket doesn't seem to like it. This usually happens on the first login of the day: the app redirects to the login page with the session id appended: Goto: http://localhost:8080/ Redirected to: http://localhost:8080/login;jsessionid=1b5axe9wb1o8k Receive a 404 error: HTTP ERROR: 404 NOT_FOUND RequestURI=/login;jsessionid=1b5axe9wb1o8k Powered by Jetty:// This is happening in your dev Jetty instance and on you production Tomcat 6 instance. It looks to me as if the login system (auth-roles) is getting the session id from something other than the real session, and attempting to use it, but it may also be WIcket not parsing the URI properly. We're using Wicket 1.4 SNAPSHOT deps. Does anyone have any idea how to resolve this? - Brill Pappin - 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: How to determine which page I am on?
Adriano, that worked, thanks!! Why did it work? Cheers, Pieter On Wed, Dec 17, 2008 at 12:11 AM, Adriano dos Santos Fernandes adrian...@uol.com.br wrote: pieter claassen wrote: I am trying to write a menu that formats the link nicely for the page I am on. So far, the novomatic tut helped the most, but there is no detail on how to customize the implementation. My strategy is to determine which page I am on and then to set an attribute on the link and format it with css. I have tried to use getParent() and getPage() on my menu panel with no luck. public class MainMenu extends Panel { . if (getPage().getClass().equals(com.musmato.HomePage.class)) { System.out.println(Homepage); } I think if you put that code on onBeforeRender it will work. Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: strange 404 error
This is a Jetty thing... One way to fix it is to suppress the jsessionid in the url. Jetty allows you to suppress the jsessionid in the url as a context parameters in the web.xml or webdefault.xml. Note, if the user does not have cookies enabled this will cause problems. In your web.xml: context-param param-nameorg.mortbay.jetty.servlet.SessionURL/param-name param-valuenone/param-value /context-param On Wed, Dec 17, 2008 at 11:33 AM, Brill Pappin br...@pappin.ca wrote: For us its consistent and predictable... it always happens when the session has expired. - Brill Pappin On 17-Dec-08, at 12:26 PM, Adriano dos Santos Fernandes wrote: I'm having similar errors (not 404, but internal error, sorry but do not have stack trace right now, and is not always reproducible). I use Wicket 1.4-rc1 and auth-roles with Tomcat6. It seems that when there is no session, just after the login the error happens. It was a NoMethodFound from IForm*. Adriano Brill Pappin escreveu: We are getting a consistent 404 error during our first login. it seems to be appending the jsessionid= param and wicket doesn't seem to like it. This usually happens on the first login of the day: the app redirects to the login page with the session id appended: Goto: http://localhost:8080/ Redirected to: http://localhost:8080/login;jsessionid=1b5axe9wb1o8k Receive a 404 error: HTTP ERROR: 404 NOT_FOUND RequestURI=/login;jsessionid=1b5axe9wb1o8k Powered by Jetty:// This is happening in your dev Jetty instance and on you production Tomcat 6 instance. It looks to me as if the login system (auth-roles) is getting the session id from something other than the real session, and attempting to use it, but it may also be WIcket not parsing the URI properly. We're using Wicket 1.4 SNAPSHOT deps. Does anyone have any idea how to resolve this? - Brill Pappin - 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 -- Matthew Rollins Hanlon http://squareoftwo.org _ Hanlon's Razor: Never attribute to malice that which can be adequately explained by stupidity. http://wikipedia.org/wiki/Hanlon's_razor
Re: TinyMCE ajax load
If by load with ajax you mean that the javascript sources are loaded on ajax requests, instead of with the initial page, then no, that is not supported. The ajax parameter that was available in old 1.3 snapshots did not work properly. It has been removed for some time now (also in latest 1.3-snapshots). There is ajax support (e.g. an InPlaceEditComponent), but all javascript will be loaded normally. On Wed, 17 Dec 2008 17:57 +0330, Omid Alamdar Milani omil...@gmail.com wrote: Hi, Is there a way to load tiny mce editor with ajax? 1.3 snapshot has an ajax parameter and works correctly on firefox but doesn't work on IE. The latest 1.4 snapshot works fine with IE but the ajax parameter is gone and I couldn't find a way to load it with ajax. - 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
TinyMCE ajax load
Hi, Is there a way to load tiny mce editor with ajax? 1.3 snapshot has an ajax parameter and works correctly on firefox but doesn't work on IE. The latest 1.4 snapshot works fine with IE but the ajax parameter is gone and I couldn't find a way to load it with ajax. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: When to pass object instance /class type?
That is incorrect. You can pass data to your CoolPage regardless of the setResponsePage() method signature. Just try implementing both and observe the URL once you invoke both its signatures. One will be bookmarkable and the other will not be but I'll leave it to you which signature is bookmarkable. Once you have explored this, investigate PageParameters, WebApplication's mountBookmarkablePage method then URL Coding strategies. Oh, make sure you have either a default constructor or a constructor passing in a PageParameters in your CoolPage before playing around with the setResponsePage(Class pageClass) signature. ;-) Best, James. On Wed, Dec 17, 2008 at 10:50 AM, HHB hubaghd...@yahoo.ca wrote: We call setResponsePage(new CoolPage()) if want to pass some data to CoolPage and we call setResponsePage(CoolPage.class) if we only want to render CoolPage Am I right? HHB wrote: Hey, What is the difference between: setResponsePage(CoolPage.class) and setResponsePage(new CoolPage()) ? When to use each one? Thanks. -- View this message in context: http://www.nabble.com/When-to-pass-object-instance--class-type--tp20998410p21050898.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
Participating in Wicket
Hey, I really have a great passion toward Wicket framework and I really want to participate with their core developer teams. My problem is that this framework has really great and passion developers and I can't imagine myself trying to join them (nor they will accept, I think) not to mention this great community. What do you suggest me to do? Thanks for your time. -- View this message in context: http://www.nabble.com/Participating-in-Wicket-tp21050410p21050410.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: TinyMCE ajax load
I'm trying to have an ajax tabbed panel where editor is in one of the tabs. When page is first showed, the editor tab is active and everything works fine, but when user changes tab and again returns to editor tab it doesn't load and plain text area is showed. So it isn't a problem with loading javascripts, they're already loaded. On Wed, Dec 17, 2008 at 6:21 PM, Pointbreak pointbreak+wicketst...@ml1.net wrote: If by load with ajax you mean that the javascript sources are loaded on ajax requests, instead of with the initial page, then no, that is not supported. The ajax parameter that was available in old 1.3 snapshots did not work properly. It has been removed for some time now (also in latest 1.3-snapshots). There is ajax support (e.g. an InPlaceEditComponent), but all javascript will be loaded normally. On Wed, 17 Dec 2008 17:57 +0330, Omid Alamdar Milani omil...@gmail.com wrote: Hi, Is there a way to load tiny mce editor with ajax? 1.3 snapshot has an ajax parameter and works correctly on firefox but doesn't work on IE. The latest 1.4 snapshot works fine with IE but the ajax parameter is gone and I couldn't find a way to load it with ajax. - 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: DOJO Debug messages written in the html document
I don't know how to redirect them to the Ajax Debug, but you could install firebug and the debug messages will be caught there ... if you just want to avoid the messages messing up your document. regards, Michael Emanuele Gesuato-2 wrote: Hi all, I began using DOJO Context Menu with wicket 1.3.4. I retrieved the component from the wicketstuff branch for wicket 1.3.x. When i try to use it, i've got the following error printed (when using wicket in debug mode) on the html document itself and NOT in the ajax debug window: DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for panel in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for panel in wicket.widget registered to namespace wicket DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for panel in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for panel in wicket.widget registered to namespace wicket DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for panel in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for panel in wicket.widget registered to namespace wicket DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for border in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for border in wicket.widget registered to namespace wicket I would like to have them printed to the ajax debug window or there is a way to avoid them printed in the html document ? I've got the error on Firefox 2.0.0.18 and Internet Explorer 7; in Firefox 3 i've got the error only one time, after refreshed the browser it never happened again. The html and java are taken from the example of wicketstuff. HTML: ... body wicket:extend div wicket:id=container / /wicket:extend /body ... JAVA: ... DojoSimpleContainer container = new DojoSimpleContainer(container); container.setHeight(500px); DojoMenu menu = new DojoMenu(menu); menu.addChild(new DojoMenuItem(about, About)); menu.addChild(new DojoMenuItem(edit, Edit)); container.add(new DojoContextualMenuBehavior(menu)); add(container); ... I would like to have printed the error messages in the ajax debug window or found a way to resolve this deprecated messages or at least having them not printed at all. Thanks for any help, Emanuele - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/DOJO-Debug-messages-written-in-the-html-document-tp21050887p21050966.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: DOJO Debug messages written in the html document
Michael Sparer wrote: I don't know how to redirect them to the Ajax Debug, but you could install firebug and the debug messages will be caught there ... if you just want to avoid the messages messing up your document. regards, Michael So, this is why they aren't written on Firefox 3 :) ! Thanks ! Anyway, i would like to try the DOJO context menu from the trunk of wicketstuff but i haven't found it. Where is it ? Is there a way to resolve these deprecated calls ? Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Security Replacement
Hi, I am trying to write a security framework for Wicket. So far everything is nice and cool. But now I want the Following. I want Components on a Page to be replaced during rendering with a Permission Denied message (maybe a Panel) when the user is not allowed to see them Is there a way to do that ? Can I do a replace during onBeforeRender or is there another way to do that. All my Pages are derived from a MyWebPage class, so I could add some hooks there, too. Greets and Thanks Peter -- View this message in context: http://www.nabble.com/Security-Replacement-tp21054116p21054116.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: strange 404 error
Matthew Hanlon wrote: This is a Jetty thing... One way to fix it is to suppress the jsessionid in the url. Jetty allows you to suppress the jsessionid in the url as a context parameters in the web.xml or webdefault.xml. Note, if the user does not have cookies enabled this will cause problems. The jsessionid is also appearing on my falling URL (Tomcat). And I have cookies enabled. Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
htmlunit error
Hello, i am currently in the process of writing some tests for an app. I am using wicket 1.3.4 and html-unit 2.3 this is about a functional test involving an ajax heavy page with a modal window (open / close ), ajax refreshing parts (both in the modal and in the main page), it seems that for long running tests (a few minutes long) it get the error [junit]com.gargoylesoftware.htmlunit.JavaScriptBackgroundJob - Caught exception in Window.setTimeout(). [junit] === EXCEPTION START [junit] EcmaError: lineNumber=[1] column=[0] lineSource=[no source] name=[ReferenceError] sourceName=[JavaScriptBackgroundJob] message=[ReferenceError: Wicket is not defined. (JavaScriptBackgroundJob#1)] [junit] com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: Wicket is not defined. (JavaScriptBackgroundJob#1) [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:528) [junit] at org.mozilla.javascript.Context.call(Context.java:502) [junit] at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511) [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:405) [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:380) [junit] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:890) [junit] at com.gargoylesoftware.htmlunit.JavaScriptBackgroundJob.run(JavaScriptBackgroundJob.java:101) Has anyone seen this before? I don't know if its a html-unit problem or not.I for one think its is ,mainly because of the way it handles ajax, but my tests are failing and that doesn't help me push the 'functional testing is good' idea.I'm pretty much stuck. Any help would be appreciated! Thank you, Alex
Re: strange 404 error
For us its consistent and predictable... it always happens when the session has expired. - Brill Pappin On 17-Dec-08, at 12:26 PM, Adriano dos Santos Fernandes wrote: I'm having similar errors (not 404, but internal error, sorry but do not have stack trace right now, and is not always reproducible). I use Wicket 1.4-rc1 and auth-roles with Tomcat6. It seems that when there is no session, just after the login the error happens. It was a NoMethodFound from IForm*. Adriano Brill Pappin escreveu: We are getting a consistent 404 error during our first login. it seems to be appending the jsessionid= param and wicket doesn't seem to like it. This usually happens on the first login of the day: the app redirects to the login page with the session id appended: Goto: http://localhost:8080/ Redirected to: http://localhost:8080/login;jsessionid=1b5axe9wb1o8k Receive a 404 error: HTTP ERROR: 404 NOT_FOUND RequestURI=/login;jsessionid=1b5axe9wb1o8k Powered by Jetty:// This is happening in your dev Jetty instance and on you production Tomcat 6 instance. It looks to me as if the login system (auth-roles) is getting the session id from something other than the real session, and attempting to use it, but it may also be WIcket not parsing the URI properly. We're using Wicket 1.4 SNAPSHOT deps. Does anyone have any idea how to resolve this? - Brill Pappin - 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: Spring+Hibernate+Authentication
Igor Vaynberg wrote: only component subclasses are injected. in your sessions's constructor do injectorholder.getinjector().inject(this) to inject the session instance. Thanks Igor, that's exactly what I was looking for. Confidential/Privileged information may be contained in this email. If you are not the intended recipient, please do not copy, distribute or use it for any purpose, nor disclose its contents to any other person. Please notify the sender immediately if you receive this in error. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
java.util.ConcurrentModificationException inorg.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put
I was poking through some logs, and I noticed a few rare instances of this exception: java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:365) at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:376) at java.util.HashSet.writeObject(HashSet.java:254) at sun.reflect.GeneratedMethodAccessor3239.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1344) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1380) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1352) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1380) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1352) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:307) at java.util.HashMap.writeObject(HashMap.java:1328) at sun.reflect.GeneratedMethodAccessor3234.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1344) [..snip..] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:307) at org.apache.wicket.util.io.IObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:117) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:303) at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1091) at org.apache.wicket.protocol.http.pagestore.AbstractPageStore$PageSerializer.getPageReplacementObject(AbstractPageStore.java:278) at org.apache.wicket.Page.writeReplace(Page.java:1299) at sun.reflect.GeneratedMethodAccessor6627.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1004) [..snip..] at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1091) at org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:197) at org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:811) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332) I'm using Wicket 1.3.5. It seems there might be some strange racing happening while pages are being serialized. -- View this message in context: http://www.nabble.com/java.util.ConcurrentModificationException-inorg.apache.wicket.protocol.http.SecondLevelCacheSessionStore%24SecondLevelCachePageMap.put-tp21062585p21062585.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TextField in inmethod grid column header - Firefox issue
Hi, it doesn't seem likely for me that the prelight would cause this. But it also isn't impossible. These things are quite difficult to predict and sometimes also to solve unfortunately. -Matej On Wed, Dec 17, 2008 at 9:03 PM, lesterburlap beach_nat...@emc.com wrote: Hi! I'm using the inmethod grid 1.0.0-SNAPSHOT (1.3 branch) with Wicket 1.3.5. I added a TextField to my custom column header (an AbstractLightWeightColumn extension). The purpose of the TextField is to provide a way to filter the row contents of the column. It works fine in Internet Explorer 6. However, in Firefox 3, I cannot focus on the TextField and type in it. It seems that (possibly) the pre-light event for dragging the column is blocking focus on the TextField. I've gone through all the grid javascript and can't find anything obvious. Thanks for any help. I've attached a visual aid... http://www.nabble.com/file/p21060335/datagrid_textbox.jpg -- View this message in context: http://www.nabble.com/TextField-in-inmethod-grid-column-header---Firefox-issue-tp21060335p21060335.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: java.util.ConcurrentModificationException inorg.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put
Same symptoms using wocket 1.4-rc1. Regards Alexandre leok wrote: I was poking through some logs, and I noticed a few rare instances of this exception: java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:365) at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:376) at java.util.HashSet.writeObject(HashSet.java:254) at sun.reflect.GeneratedMethodAccessor3239.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1344) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1380) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1352) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1380) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1352) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:307) at java.util.HashMap.writeObject(HashMap.java:1328) at sun.reflect.GeneratedMethodAccessor3234.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1344) [..snip..] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:307) at org.apache.wicket.util.io.IObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:117) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:303) at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1091) at org.apache.wicket.protocol.http.pagestore.AbstractPageStore$PageSerializer.getPageReplacementObject(AbstractPageStore.java:278) at org.apache.wicket.Page.writeReplace(Page.java:1299) at sun.reflect.GeneratedMethodAccessor6627.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1004) [..snip..] at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1091) at org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:197) at org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:811) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332) I'm using Wicket 1.3.5. It seems there might be some strange racing happening while pages are being serialized. EDIT: I actually posted before completing my message. I meant to add - where would there be non thread-safe modifications to the serialized page? I presume that the there must be some sort of lock on the object when it's being serialized. More importantly - how harmful is this exception? -- View this message in context: http://www.nabble.com/java.util.ConcurrentModificationException-inorg.apache.wicket.protocol.http.SecondLevelCacheSessionStore%24SecondLevelCachePageMap.put-tp21062585p21065024.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: [OT] wicket users around the world
:-) lol Better watch out, or you'll get every single member here put on the oh-so-intelligent international no fly list. ;-) On Wed, 2008-12-17 at 08:50 +0330, Iman Rahmatizadeh wrote: Tehran, Iran I'm using wicket in developing the next gen nuclear bombs errr... sorry, no political jokes here :-) Using wicket in developing software for educational institues elearning apps. Iman - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Strange exception in mountBookmarkablePage
hello, I just mount my urls wuth this strategy mountBookmarkablePage(details, BaseDetailsPage.class), it works fine for my need but there is an exception thrown: 2008-12-18 11:21:39,179 INFO - BaseDetailsPage- selected tab is = 4 2008-12-18 11:21:40,485 WARN - estTargetUrlCodingStrategy - URL fragment has unmatched key/value pairs, responding with 404. Fragment: tabs/img/calcu-background.png 2008-12-18 11:21:40,621 ERROR - RequestCycle - Can't instantiate page using constructor public com.ccti.ropoa.common.details.BaseDetailsPage(org.apache.wicket.PageParameters) and argument tabs = null org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public com.ccti.ropoa.common.details.BaseDetailsPage(org.apache.wicket.PageParameters) and argument tabs = null at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:168) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:88) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:268) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:283) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:147) ... 29 more Caused by: org.apache.wicket.util.string.StringValueConversionException: Unable to convert 'null' to an int value at org.apache.wicket.util.string.StringValue.toInt(StringValue.java:505) at org.apache.wicket.util.string.StringValue.toInt(StringValue.java:520) at org.apache.wicket.util.value.ValueMap.getInt(ValueMap.java:257) at com.ccti.ropoa.common.details.BaseDetailsPage.init(BaseDetailsPage.java:42) ... 34 more Caused by: java.lang.NumberFormatException: For input string: null at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:447) at java.lang.Integer.parseInt(Integer.java:497) at org.apache.wicket.util.string.StringValue.toInt(StringValue.java:501) ... 37 more ..i also encounter this with HybridurlEncodingStrategy... Thanks a lot. Cheers. -- View this message in context: http://www.nabble.com/Strange-exception-in-mountBookmarkablePage-tp21066234p21066234.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