Re: [Wicket-user] [OT] Ideas for Java webapps free hosting ?
I didn't know myjavaserver.com, thanks for the address ! -- Laurent On 11/27/05, Jesse Sightler [EMAIL PROTECTED] wrote: Just curious... where are the examples with attribution? I had never noticed attribution for the hosting provider, and somehow I'm still missing who is providing it now... Anyway, there's always http://www.myjavaserver.com/ which provides free Servlet and JSP hosting. I've never tried it, but it's theoretically possible that it could host your stuff. They only give about 5MB for free, though, which may be pushing things for a Wicket app. -- Jess On 11/26/05, Laurent PETIT [EMAIL PROTECTED] wrote: thanks for the info -- Laurent On 11/26/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: We ask one the java servlet hosts if they would support our open source project by providing there service to us for free. They did and ask only for there logo to be on the page Juergen On 11/26/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, This is completely Off Topic, but I know that wicket examples are hosted somewhere, and the question I was asking to me is : is it hosted at some kind of free hosting company ? Such as the plenty PHP hosting we can find in the web ? One of my friends started a java project in sourceforge, and was willing to show a live instance of his project (a webapp), but he fails short when he tries to find java free hosting services ... So if you guys have any ideas ... I could restart my old computer, put it in my balcony, but I fear it's too old to be able to host a tomcat server ... cu, -- laurent --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Tag expected
A simple question from a newbie: how can you find out what tag is expected when you get a wicket.markup.MarkupException: Tag expected -error. How do you turn debugging on? --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Datapicker warning
Hi. I'm using datepicker and I'm constantly getting this warning 17:46:32.146 WARN!! [SocketListener0-3] wicket.util.resource.UrlResourceStream.init(UrlResourceStream.java:92) 22 cannot convert url: jar:file:/E:/Java/workspace/Cargo/WebContent/WEB-INF/lib/wicket-extensions-1.1.jar!/wicket/extensions/markup/html/datepicker/calendar.js to file (URI is not hierarchical), falling back to the inputstream for polling Everything seems to be ok and I don't expect that creating file with that uri can succeed. So is the warning appropriate? What should I do to get rid of warning (except disabling it in log4j config)? -Matej --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Datepicker and opera
Hi. I found out, why the datepicker is not working in Opera. The problem is the wicket:id, that confuses opera. having input wicket:id=xyz id=elementId/ document.getElementById('elementId') returns null. the (temporary?) solution now is to setStripWicketTags(true); Any ideas? -Matej --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Datapicker warning
I have received this warning before, you can basically ignore it. From what I recall, the reason is that you have template polling on, so it is attempting to check for any change in all templates that you are using in your hierarchy. So items that are in jars are not available to be changed thus the error is shown. You shouldn't see this in production when the polling feature is turned off. On Nov 27, 2005, at 9:06 AM, Matej Knopp wrote: Hi. I'm using datepicker and I'm constantly getting this warning 17:46:32.146 WARN!! [SocketListener0-3] wicket.util.resource.UrlResourceStream.init (UrlResourceStream.java:92) 22 cannot convert url: jar:file:/E:/ Java/workspace/Cargo/WebContent/WEB-INF/lib/wicket- extensions-1.1.jar!/wicket/extensions/markup/html/datepicker/ calendar.js to file (URI is not hierarchical), falling back to the inputstream for polling Everything seems to be ok and I don't expect that creating file with that uri can succeed. So is the warning appropriate? What should I do to get rid of warning (except disabling it in log4j config)? -Matej --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Datepicker and opera
may be html xmlns:wicket=http://wicket.sourceforge.net; to define the namespace? Juergen On 11/27/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi. I found out, why the datepicker is not working in Opera. The problem is the wicket:id, that confuses opera. having input wicket:id=xyz id=elementId/ document.getElementById('elementId') returns null. the (temporary?) solution now is to setStripWicketTags(true); Any ideas? -Matej --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tag expected
The stack trace and error page should provide enough information to figure that out. Can you find it and send it as a reply? All logging in Wicket goes via commons logging usually using the class name for loggers. Most people will probably use Log4J as the implementation, which means you can turn it on like: log4j.logger.wicket=DEBUG and/ or log4j.logger.wicket.protocol.http.WebSession=DEBUG in e.g. log4j.properties in your classpath root. See for more info the respective logging package you are using and commons logging documentation. Eelco On 11/27/05, Pekka Henttonen [EMAIL PROTECTED] wrote: A simple question from a newbie: how can you find out what tag is expected when you get a wicket.markup.MarkupException: Tag expected -error. How do you turn debugging on? --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Datapicker warning
yes that is the case. It is a normal warning.I can't make it another type of message so no warning..(info or debug?)johanOn 11/27/05, Andrew Lombardi [EMAIL PROTECTED] wrote: I have received this warning before, you can basically ignore it. From what I recall, the reason is that you have template polling on,so it is attempting to check for any change in all templates that youare using in your hierarchy.So items that are in jars are not available to be changed thus the error is shown.You shouldn't seethis in production when the polling feature is turned off.On Nov 27, 2005, at 9:06 AM, Matej Knopp wrote: Hi. I'm using datepicker and I'm constantly getting this warning 17:46:32.146 WARN!! [SocketListener0-3] wicket.util.resource.UrlResourceStream.init (UrlResourceStream.java:92) 22 cannot convert url: jar:file:/E:/ Java/workspace/Cargo/WebContent/WEB-INF/lib/wicket- extensions-1.1.jar!/wicket/extensions/markup/html/datepicker/ calendar.js to file (URI is not hierarchical), falling back to the inputstream for polling Everything seems to be ok and I don't expect that creating file with that uri can succeed. So is the warning appropriate? What should I do to get rid of warning (except disabling it in log4j config)? -Matej --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makes searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makes searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] finals again: StringResourceModel.getParameters()
Hi, Is it possible to remove final keyword from StringResourceModel.getParameters(). I know I could do this ognl-way, but I'd prefer the direct way: public NavigatorLabel(String id, final DataView dataView, final Component page) {super(id, new StringResourceModel(navigatorLabel, page, null, null) {private static final long serialVersionUID = 1L; @Overrideprotected Object[] getParameters() {return rowInfo(dataView);}});} I seeno harm of dis-finalizing this. /arto
Re[2]: [Wicket-user] Tag expected
Sunday, November 27, 2005, 8:27:46 PM kirjoitit: The stack trace and error page should provide enough information to figure that out. Can you find it and send it as a reply? No, but fortunately I can easily reproduce the error :-) Below is the error page. (These are my first steps getting acquainted with Wicket and I am doing nothing fancy: I have modified slightly Navomatic-example to see how it works. Something goes wrong but I do not understand what). With best regards Pekka - Unexpected RuntimeException wicket.markup.MarkupException: Tag expected [markup = file:/snipped/WEB-INF/classes/sarkweb/AccessionBorder.html, index = 23, current = [Raw markup]] at wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:277) at wicket.markup.MarkupStream.getTag(MarkupStream.java:169) at wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:462) at wicket.markup.html.border.Border.onComponentTagBody(Border.java:233) at wicket.Component.renderComponent(Component.java:1888) at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77) at wicket.Component.render(Component.java:1163) at wicket.markup.html.BodyOnLoadContainer.resolve(BodyOnLoadContainer.java:106) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1159) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753) at wicket.Component.renderComponent(Component.java:1888) at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77) at wicket.Component.render(Component.java:1163) at wicket.MarkupContainer.autoAdd(MarkupContainer.java:170) at wicket.markup.html.BodyOnLoadResolver.resolve(BodyOnLoadResolver.java:60) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1146) at wicket.MarkupContainer.renderAll(MarkupContainer.java:779) at wicket.Page.onRender(Page.java:788) at wicket.Component.render(Component.java:1163) at wicket.Page.doRender(Page.java:251) at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:276) at wicket.RequestCycle.respond(RequestCycle.java:934) at wicket.RequestCycle.request(RequestCycle.java:411) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:534) Markup The problem is in file:/snippedbuild/web/WEB-INF/classes/sarkweb/AccessionBorder.html: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN span wicket:id = accessionBorder bNavigation Links/b wicket:body/ p wicket:link a href = Page1.htmlPage1/abr/ a href = Page2.htmlPage2/abr/ a href = Page3.htmlPage3/a /wicket:link /p /span Component Tree Component tree for [Page class = sarkweb.Index, id = 0]: # PathType Model Object 1 _body wicket.markup.html.BodyOnLoadContainer 2 accessionBordersarkweb.AccessionBorder --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
Re: [Wicket-user] FeedbackPanel and CSS
I tried making my own CSSFeedbackPanel and I'm running into the following Exception: Caused by: java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = messages, page = No Page, path = feedback:feedbackul:messages.FeedbackPanel$MessageListView]] at wicket.Component.getPage(Component.java:756) at wicket.feedback.FeedbackMessagesModel.onGetObject(FeedbackMessagesModel.java:81) at wicket.model.AbstractDetachableModel.getObject(AbstractDetachableModel.java:100) at wicket.Component.getModelObject(Component.java:703) at wicket.markup.html.panel.FeedbackPanel.getCurrentMessages(FeedbackPanel.java:256) at wicket.markup.html.panel.FeedbackPanel.anyMessage(FeedbackPanel.java:221) at wicket.markup.html.panel.FeedbackPanel.anyMessage(FeedbackPanel.java:208) Here's the code: public class CSSFeedbackPanel extends FeedbackPanel { public CSSFeedbackPanel(final String id) { super(id); WebMarkupContainer feedbackul = (WebMarkupContainer) get(feedbackul); if (feedbackul != null) { if (anyMessage()) { System.out.println(Has Messages); /* if (anyMessage(FeedbackMessage.INFO)) { System.out.println(Has INFO Messages); feedbackul.add(new AttributeModifier(class, true, new Model(feedbackulINFO))); } else if (anyMessage(FeedbackMessage.ERROR)) { System.out.println(Has ERROR Messages); feedbackul.add(new AttributeModifier(class, true, new Model(feedbackulERROR))); } */ } } } } It breaks at the call to anyMessages(). Any suggestions? On 10/25/05, Nick Heudecker [EMAIL PROTECTED] wrote: I think I'll end up creating my own FeedbackPanel subclass. Is there any way to have messages only display for one page refresh? Currently, the messages stay visible on the page. On 10/25/05, Eelco Hillenius [EMAIL PROTECTED] wrote: You could assign a class on the element you attach the panel on. Like div wicket:id=panel class=myfeedback../div and then in css: .myfeedback ul { ... }. Another option, for more flexibility, is to extend FeebackPanel, and provide your own markup. Basically you would copy n paste the feedbackpanel markup, but you'd also provide the class you want for the ul element. Eelco On 10/24/05, Nick Heudecker [EMAIL PROTECTED] wrote: It only adds that CSS for the individual items. Not for the containing UL element. On 10/24/05, Andrew Berman [EMAIL PROTECTED] wrote: A FeedbackPanel will automatically add a class of feedbackPanelFeedback Level to all li elements. So, for example, you can create a CSS class called feedbackPanelERROR. If you don't like the naming of the classes, you can just override the getCSSClass() method. --Andrew On 10/24/05, Nick Heudecker [EMAIL PROTECTED] wrote: Is it possible to add a CSS style to the UL tag used by the FeedbackPanel? My panels are either going to display INFO messages or ERROR messages. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] FeedbackPanel and CSS
At constructor time, the panel still isn't 'added' to the page, so the feedback list cannot be retrieved. In your case, you could alter the model you provide to the attribute modifier, making the evaluation 'lazy': if(feedbackul!=null) { add(new AttributeModifier(class, true, new ReadOnlyModel() { public Object getObject() { if(anyMessage()) { // provide own algorithm here return feedbackULINFO; } else { return feedbackULNONE; } }})); } } This way, you can even 'not' show the ul in the css: feedbackULNONE { display : none; } Martijn On 11/27/05, Nick Heudecker [EMAIL PROTECTED] wrote: I tried making my own CSSFeedbackPanel and I'm running into the following Exception: Caused by: java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = messages, page = No Page, path = feedback:feedbackul:messages.FeedbackPanel$MessageListView]] at wicket.Component.getPage(Component.java:756) at wicket.feedback.FeedbackMessagesModel.onGetObject(FeedbackMessagesModel.java:81) at wicket.model.AbstractDetachableModel.getObject(AbstractDetachableModel.java:100) at wicket.Component.getModelObject(Component.java:703) at wicket.markup.html.panel.FeedbackPanel.getCurrentMessages(FeedbackPanel.java:256) at wicket.markup.html.panel.FeedbackPanel.anyMessage(FeedbackPanel.java:221) at wicket.markup.html.panel.FeedbackPanel.anyMessage(FeedbackPanel.java:208) Here's the code: public class CSSFeedbackPanel extends FeedbackPanel { public CSSFeedbackPanel(final String id) { super(id); WebMarkupContainer feedbackul = (WebMarkupContainer) get(feedbackul); if (feedbackul != null) { if (anyMessage()) { System.out.println(Has Messages); /* if (anyMessage(FeedbackMessage.INFO)) { System.out.println(Has INFO Messages); feedbackul.add(new AttributeModifier(class, true, new Model(feedbackulINFO))); } else if (anyMessage(FeedbackMessage.ERROR)) { System.out.println(Has ERROR Messages); feedbackul.add(new AttributeModifier(class, true, new Model(feedbackulERROR))); } */ } } } } It breaks at the call to anyMessages(). Any suggestions? On 10/25/05, Nick Heudecker [EMAIL PROTECTED] wrote: I think I'll end up creating my own FeedbackPanel subclass. Is there any way to have messages only display for one page refresh? Currently, the messages stay visible on the page. On 10/25/05, Eelco Hillenius [EMAIL PROTECTED] wrote: You could assign a class on the element you attach the panel on. Like div wicket:id=panel class=myfeedback../div and then in css: .myfeedback ul { ... }. Another option, for more flexibility, is to extend FeebackPanel, and provide your own markup. Basically you would copy n paste the feedbackpanel markup, but you'd also provide the class you want for the ul element. Eelco On 10/24/05, Nick Heudecker [EMAIL PROTECTED] wrote: It only adds that CSS for the individual items. Not for the containing UL element. On 10/24/05, Andrew Berman [EMAIL PROTECTED] wrote: A FeedbackPanel will automatically add a class of feedbackPanelFeedback Level to all li elements. So, for example, you can create a CSS class called feedbackPanelERROR. If you don't like the naming of the classes, you can just override the getCSSClass() method. --Andrew On 10/24/05, Nick Heudecker [EMAIL PROTECTED] wrote: Is it possible to add a CSS style to the UL tag used by the FeedbackPanel? My panels are either going to display INFO messages or ERROR messages. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] FeedbackPanel and CSS
Thanks Martjin. But doesn't the seem like a bit much just to customize the CSS for the containing UL in a feedback panel? On 11/27/05, Martijn Dashorst [EMAIL PROTECTED] wrote: At constructor time, the panel still isn't 'added' to the page, so the feedback list cannot be retrieved. In your case, you could alter the model you provide to the attribute modifier, making the evaluation 'lazy': if(feedbackul!=null) { add(new AttributeModifier(class, true, new ReadOnlyModel() { public Object getObject() { if(anyMessage()) { // provide own algorithm here return feedbackULINFO; } else { return feedbackULNONE; } }})); } } This way, you can even 'not' show the ul in the css: feedbackULNONE { display : none; } Martijn On 11/27/05, Nick Heudecker [EMAIL PROTECTED] wrote: I tried making my own CSSFeedbackPanel and I'm running into the following Exception: Caused by: java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = messages, page = No Page, path = feedback:feedbackul:messages.FeedbackPanel$MessageListView]] at wicket.Component.getPage(Component.java:756) at wicket.feedback.FeedbackMessagesModel.onGetObject(FeedbackMessagesModel.java:81) at wicket.model.AbstractDetachableModel.getObject(AbstractDetachableModel.java:100) at wicket.Component.getModelObject(Component.java:703) at wicket.markup.html.panel.FeedbackPanel.getCurrentMessages(FeedbackPanel.java:256) at wicket.markup.html.panel.FeedbackPanel.anyMessage(FeedbackPanel.java:221) at wicket.markup.html.panel.FeedbackPanel.anyMessage(FeedbackPanel.java:208) Here's the code: public class CSSFeedbackPanel extends FeedbackPanel { public CSSFeedbackPanel(final String id) { super(id); WebMarkupContainer feedbackul = (WebMarkupContainer) get(feedbackul); if (feedbackul != null) { if (anyMessage()) { System.out.println(Has Messages); /* if (anyMessage(FeedbackMessage.INFO)) { System.out.println(Has INFO Messages); feedbackul.add(new AttributeModifier(class, true, new Model(feedbackulINFO))); } else if (anyMessage(FeedbackMessage.ERROR)) { System.out.println(Has ERROR Messages); feedbackul.add(new AttributeModifier(class, true, new Model(feedbackulERROR))); } */ } } } } It breaks at the call to anyMessages(). Any suggestions? On 10/25/05, Nick Heudecker [EMAIL PROTECTED] wrote: I think I'll end up creating my own FeedbackPanel subclass. Is there any way to have messages only display for one page refresh? Currently, the messages stay visible on the page. On 10/25/05, Eelco Hillenius [EMAIL PROTECTED] wrote: You could assign a class on the element you attach the panel on. Like div wicket:id=panel class=myfeedback../div and then in css: .myfeedback ul { ... }. Another option, for more flexibility, is to extend FeebackPanel, and provide your own markup. Basically you would copy n paste the feedbackpanel markup, but you'd also provide the class you want for the ul element. Eelco On 10/24/05, Nick Heudecker [EMAIL PROTECTED] wrote: It only adds that CSS for the individual items. Not for the containing UL element. On 10/24/05, Andrew Berman [EMAIL PROTECTED] wrote: A FeedbackPanel will automatically add a class of feedbackPanelFeedback Level to all li elements. So, for example, you can create a CSS class called feedbackPanelERROR. If you don't like the naming of the classes, you can just override the getCSSClass() method. --Andrew On 10/24/05, Nick Heudecker [EMAIL PROTECTED] wrote: Is it possible to add a CSS style to the UL tag used by the FeedbackPanel? My panels are either going to display INFO messages or ERROR messages. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
Re: [Wicket-user] FeedbackPanel and CSS
I've updated my class and I'm not getting the exception anymore, but the class attribute still isn't being added: public class CSSFeedbackPanel extends FeedbackPanel { public CSSFeedbackPanel(final String id) { super(id); WebMarkupContainer feedbackul = (WebMarkupContainer) get(feedbackul); if (feedbackul != null) { feedbackul.add(new AttributeModifier(class, true, new Model() { public Object getObject() { if (anyMessage()) { if (anyMessage(FeedbackMessage.INFO)) { return feedbackulINFO; } else if (anyMessage(FeedbackMessage.ERROR)) { return feedbackulERROR; } else { return feedbackulNONE; } } else { return feedbackulNONE; } } })); } } } The getObject() call isn't being executed. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: Re[2]: [Wicket-user] Tag expected
is your border markup (AccessionBorder.html) contained by wicket:border and /wicket:border tags?iewicket:bordermy border markup herewicket:body/some more markup/wicket:border i think ive seen this happen sometimes when wicket:border or wicket:panel tags are missing.-IgorOn 11/27/05, Pekka Henttonen [EMAIL PROTECTED] wrote:Sunday, November 27, 2005, 8:27:46 PM kirjoitit: The stack trace and error page should provide enough information to figure that out. Can you find it and send it as a reply?No, but fortunately I can easily reproduce the error :-) Below is the error page. (These are my first steps getting acquainted with Wicket and Iam doing nothing fancy: I have modified slightly Navomatic-example tosee how it works. Something goes wrong but I do not understand what). With best regardsPekka-Unexpected RuntimeExceptionwicket.markup.MarkupException: Tag expected[markup = file:/snipped/WEB-INF/classes/sarkweb/AccessionBorder.html, index = 23, current = [Raw markup]] at wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:277)at wicket.markup.MarkupStream.getTag(MarkupStream.java:169)at wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java :462)at wicket.markup.html.border.Border.onComponentTagBody(Border.java:233)at wicket.Component.renderComponent(Component.java:1888)at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java :77)at wicket.Component.render(Component.java:1163)at wicket.markup.html.BodyOnLoadContainer.resolve(BodyOnLoadContainer.java:106)at wicket.MarkupContainer.renderNext(MarkupContainer.java:1159) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811)at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753)at wicket.Component.renderComponent(Component.java:1888) at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77)at wicket.Component.render(Component.java:1163)at wicket.MarkupContainer.autoAdd(MarkupContainer.java:170)at wicket.markup.html.BodyOnLoadResolver.resolve (BodyOnLoadResolver.java:60)at wicket.MarkupContainer.renderNext(MarkupContainer.java:1146)at wicket.MarkupContainer.renderAll(MarkupContainer.java:779)at wicket.Page.onRender(Page.java:788)at wicket.Component.render(Component.java:1163)at wicket.Page.doRender(Page.java:251)at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:276)at wicket.RequestCycle.respond(RequestCycle.java :934)at wicket.RequestCycle.request(RequestCycle.java:411)at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208)at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java :202)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:178)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection (Http11Protocol.java:744)at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)at java.lang.Thread.run(Thread.java:534)MarkupThe problem is in file:/snippedbuild/web/WEB-INF/classes/sarkweb/AccessionBorder.html: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//ENspan wicket:id = accessionBorder bNavigation Links/b wicket:body/ p wicket:linka href = "">a href = "">a href = "" /wicket:link /p/spanComponent TreeComponent tree for [Page class = sarkweb.Index, id = 0]:# PathType Model Object1 _body wicket.markup.html.BodyOnLoadContainer2 accessionBordersarkweb.AccessionBorder---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click___Wicket-user
Re: [Wicket-user] FeedbackPanel and CSS
change the signature to: Object getObject(Component component) { } That will help, now it didn't override anything. Apologies for the mixup. Martijn On 11/27/05, Nick Heudecker [EMAIL PROTECTED] wrote: I've updated my class and I'm not getting the exception anymore, but the class attribute still isn't being added: public class CSSFeedbackPanel extends FeedbackPanel { public CSSFeedbackPanel(final String id) { super(id); WebMarkupContainer feedbackul = (WebMarkupContainer) get(feedbackul); if (feedbackul != null) { feedbackul.add(new AttributeModifier(class, true, new Model() { public Object getObject() { if (anyMessage()) { if (anyMessage(FeedbackMessage.INFO)) { return feedbackulINFO; } else if (anyMessage(FeedbackMessage.ERROR)) { return feedbackulERROR; } else { return feedbackulNONE; } } else { return feedbackulNONE; } } })); } } } The getObject() call isn't being executed. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] FeedbackPanel and CSS
That did it. Thanks! On 11/27/05, Martijn Dashorst [EMAIL PROTECTED] wrote: change the signature to: Object getObject(Component component) { } That will help, now it didn't override anything. Apologies for the mixup. Martijn On 11/27/05, Nick Heudecker [EMAIL PROTECTED] wrote: I've updated my class and I'm not getting the exception anymore, but the class attribute still isn't being added: public class CSSFeedbackPanel extends FeedbackPanel { public CSSFeedbackPanel(final String id) { super(id); WebMarkupContainer feedbackul = (WebMarkupContainer) get(feedbackul); if (feedbackul != null) { feedbackul.add(new AttributeModifier(class, true, new Model() { public Object getObject() { if (anyMessage()) { if (anyMessage(FeedbackMessage.INFO)) { return feedbackulINFO; } else if (anyMessage(FeedbackMessage.ERROR)) { return feedbackulERROR; } else { return feedbackulNONE; } } else { return feedbackulNONE; } } })); } } } The getObject() call isn't being executed. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Web Continuation Servers
Johan Compagner wrote: ahh so a program on the webserver just runs in its own thread. (every session has its own thread) And the webserver threads are dispatchting to those threads and then getting response from them. That doesn't look to hard to do. (the burden on the webserver would improved greatly) Yes, the load on the webserver would increase. If we build something like this in wicket. Where would youre code be in? Now youre pieces of youre code is in the event/interface methods like onclick or onsubmit. Would you then have an onClick/onSubmit on a Page? and every thing that comes in from that page is called to there or better said it is continued there? How would you say to wicket i want to start this part in a continue, a special interface that a page implements that is checked on in the response phase? My opinion on implementation in Wicket lacks a lot of insight - I don't have time to really dig into wicket interna until next year. I guess there are similarities to the handling of AJAX requests at a low level. Maybe there is a chance to generalize this and add all kinds of request handlers. Where to add a hook for the user? Continuations would be used for flow control, so they would be part of the Control layer of the MVC paradigm. If Wicket Components are the View, they should not need to know about Continuations. I am thinking of an Object that takes over control from a certain starting point. For example, you would have a button labeled start, whose onClick handler creates an instance of the Control Object and passes the context on (if necessary). The Control Object should have a method to send a Page to the client (i.e. set the Response Page) and wait for the next Request for a Page. I do think this thing is not for all. Only small portions, one page. else i think you quicly get big monolitic code again. Yes, continuations certainly don't make sense for every kind of application. I think that continuations would be very convenient for some well-defined workflows, but it does not make sense to use them everywhere for the reasons you mention. If i compare it to swing then i just see this continuations as the Modal Dialog... That is the continuation in swing. You block youre current code and ask the user for something. Then it gets back (the modal dialog is closed) and you continue. Yes, this is the idea. Just like the JavaScript alert(), confirm() and prompt() functions. lets think about some examples how we would do this in wicket and what would be a elegant way. Let's say we have the Control Object mentioned above. The most important public method would be: WebPage sendAndWait(WebPage p); (This method hides all the dirty work from the user, add a Request handler, etc.) I think it would be convenient to provide methods for common tasks: void alert(String message); boolean confirm(String question); String prompt(String question); These methods send a default AlertPage, ConfirmPage or PromptPage, evaluate the result after sendAndWait() returns and return a proper value. An extension of the Control Object could provide methods for simple creation of Dialogues. Example: DialogueModel ask(DialogueModel d); Usage: DialogueModel userInfo = new DialogueModel(); userInfo.addStringInput(name, What is your name?); userInfo.addStringInput(color, What is your favorite color?); while (userInfo.hasEmptyInputs()) { ask(userInfo); } You don't have to care about the view at all at this level of abstraction. You just work with the model. Any comments are welcome, Timo --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user