Re: jboss ignoring html request
Make sure that your filter is specified before WicketFilter in web.xml. The servlet container executes them in the order they are specified. If WicketFilter is executed first and it process the request then it wont call chain.doFilter() and thus your filter wont be executed. On Fri, Jul 13, 2012 at 8:42 AM, wicket user wrote: > Thanks for the quick reply , > > yes i checked FilterChain.doFilter(req,res), and i have verified also the > url pattern in web.xml > > > MyFilter > com.xyz.util.MyFilter > > > MyFilter > *.html > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/jboss-ignoring-html-request-tp4650491p4650493.html > Sent from the Users forum 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 > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Brix CMS and Jackrabbit - tech stack decision question
Hi, You may ask these questions at Brix's mailing list. See answers inline. On Thu, Jul 12, 2012 at 10:36 PM, Alexander Cherednichenko wrote: > Hi all! > > We need to make a webapp which is like 50% custom coding and 50% CMS - > there is some specific logic but main skeleton of the app should be > modifiable via web interface . > > I was considering Brix CMS and Jackrabbit as a JCR to go. We could build > our logic in tiles/plain wicket pages. However, I am not familiar with the > JCR concept and implementation. > > Customer are start-up, so they will be starting with few users but we need > to make it scalable - we may have no time for rewriting. > Question that I have -- maybe someone out here knows: > >- Brix CMS. I spent a day looking into it. I really enjoyed the concept >and API and te way it looks. However, I can see it is not widely supported, >code contains commented blocks etc. Technically we have the ability to go >with snapshot and fix issues on-the-go, but I'd like to know in advance how >bad it is :). I can also see it is not much developed recently. Branch 'wicket6' is more active these days. The project definitely needs more active developers/bug reporters. >- Clustering - OK, done that with wicket, all works OK. However, >Jackrabbit documentation on clustering is a bit short, and it looks like >clustering filesystem repositories is not a reliable thing (or it is now?) Jackrabiit can store in RDBMS as well, not only in the file system. But better ask in Jackrabbit's mailing list about this. >- General jackrabbit performance - say we will ave ~1k pages for the >start, and a lot of binary resources (a kind of internal library of files). >Up to what numbers would it work well? Are there any caveats? Brix uses JCR APIs so you can use a different implementation if Jackrabbit is not good enough for you. I know of one user that uses JBoss Modeshape instead. > > Well, that's it. > > Guys -- thanks a lot in advance; I'd really want to use this piece of tech. > Just making sure we won't run into trouble with it :) You may also check https://github.com/bricket/bricket. AFAIK this is a fork of Brix. I'm not sure how well maintained it is... Recently its developers were active in testing Brix's wicket6 branch. > > -- > Alexander Cherednichenko > [ the only way out is the way up ] -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: remove ?1 in pages
Hi Josh, There is a custom IRequestMapper that removes the id from the url. You will need to dig in the mail archives for it. Another way is to use RenderStrategy.ONE_PASS_RENDER. It has its disadvantages so make sure you read its javadoc. On Thu, Jul 12, 2012 at 4:23 PM, Josh Kamau wrote: > Hi guys ; > > I know this have been discussed before... please bear with me.. > > Is there a way of having stateful pages that dont have '?x' in the urls ? > > Josh. -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Missingresourceexception only in Firefox but not in Chrome or Safari
It might be that those browser have different default locale and for the locale on chrome and safari you have he resource "BasePage.title" but not for the locale on your FF? On Fri, Jul 13, 2012 at 10:26 AM, Pablo Diaz Redondo wrote: > Hi, > > I get this error when I run my app in Firefox (mac), but in Safari and > Chrome it runs well. Somebody can help me? Thanks in advance: > > Unexpected RuntimeException > > Last cause: Unable to find property: 'BasePage.title' for component: > windowTitle [class=org.apache.wicket.markup.html.basic.Label] > WicketMessage: Exception in rendering component: [Component id = > windowTitle] > > > Stacktrace > > Root cause: > > java.util.MissingResourceException: Unable to find property: > 'BasePage.title' for component: windowTitle > [class=org.apache.wicket.markup.html.basic.Label] > at org.apache.wicket.Localizer.getString(Localizer.java:239) > at org.apache.wicket.Localizer.getString(Localizer.java:149) > at > org.apache.wicket.model.ResourceModel$AssignmentWrapper.getObject(ResourceModel.java:124) > at > org.apache.wicket.model.ResourceModel$AssignmentWrapper.getObject(ResourceModel.java:91) > at > org.apache.wicket.Component.getDefaultModelObject(Component.java:1640) > at > org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1668) > at > org.apache.wicket.markup.html.basic.Label.onComponentTagBody(Label.java:113) > at > org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:72) > at > org.apache.wicket.Component.internalRenderComponent(Component.java:2517) > at > org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:56) > at org.apache.wicket.Component.internalRender(Component.java:2347) > at org.apache.wicket.Component.render(Component.java:2275) > at > org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1474) > at > org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1638) > at > org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1613) > at > org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1567) > at > org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:145) > at > org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:72) > at > org.apache.wicket.Component.internalRenderComponent(Component.java:2517) > at > org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1576) > at org.apache.wicket.Component.internalRender(Component.java:2347) > at org.apache.wicket.Component.render(Component.java:2275) > at > org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1474) > at > org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1638) > at org.apache.wicket.Page.onRender(Page.java:904) > at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:140) > at org.apache.wicket.Component.internalRender(Component.java:2347) > at org.apache.wicket.Component.render(Component.java:2275) > at org.apache.wicket.Page.renderPage(Page.java:1035) > at > org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105) > at > org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224) > at > org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167) > at > org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:750) > at > org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) > at > org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:252) > at > org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209) > at > org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280) > at > org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162) > at > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) > at > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) > at > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) > at > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
Re: NullPointer at WizardModel in WizardStep using 1.5.3
So you have your own IWizardModel implementation? Yes, then you'll have to initialize the steps by yourself. I'll update the migration info. Thanks Sven bamse schrieb: >Thanks for your reply. Your hint regarding the reset-method made me look in >the sourcecode for WizardModel, where I found this code, new in 1.5: >for(IWizardstep step : steps){ >step.init(this);} > >Putting this into my own implematation did the trick. > >-- >View this message in context: >http://apache-wicket.1842946.n4.nabble.com/NullPointer-at-WizardModel-in-WizardStep-using-1-5-3-tp4650456p4650494.html >Sent from the Users forum 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: Custom XHTML tag
Hi First, is it a good question. My solution use jqwicket tooltip and I touch both java and html files but it's ok for me. >>> InlineHelp.java public class InlineHelp extends Panel { private static final long serialVersionUID = 1L; public InlineHelp(String id, IModel messageModel) { super(id, messageModel); } public InlineHelp(String id, String message) { super(id, Model.of(message)); } @Override protected void onInitialize() { super.onInitialize(); setRenderBodyOnly(true); WebComponent image = new ContextImage("image", "/images/help.png") { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(ComponentTag tag) { tag.put("title", (String) InlineHelp.this.getDefaultModelObject()); } }; image.add(new TipTipBehavior(new TipTipOptions().maxWidth("auto"))); add(image); } } >>> InlineHelp.html http://wicket.apache.org/";> >>> How to use > java form.add(new InlineHelp("emailHelp", "If you want some notifications")); > html Email notifications Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Custom-XHTML-tag-tp4650489p4650506.html Sent from the Users forum 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: Missingresourceexception only in Firefox but not in Chrome or Safari
Thanks, I modified the default language in Fireforx Preferences, and nothing change, but I tried to move my Base_es.properties file to Base.properties, and runs well. Is there another way to set the default app language in Wicket? Thanks. El 13/07/2012, a las 10:34, Ernesto Reinaldo Barreiro escribió: > It might be that those browser have different default locale and for the > locale on chrome and safari you have he resource "BasePage.title" but not > for the locale on your FF? > > On Fri, Jul 13, 2012 at 10:26 AM, Pablo Diaz Redondo > wrote: > >> Hi, >> >> I get this error when I run my app in Firefox (mac), but in Safari and >> Chrome it runs well. Somebody can help me? Thanks in advance: >> >> Unexpected RuntimeException >> >> Last cause: Unable to find property: 'BasePage.title' for component: >> windowTitle [class=org.apache.wicket.markup.html.basic.Label] >> WicketMessage: Exception in rendering component: [Component id = >> windowTitle] >> >> >> Stacktrace >> >> Root cause: >> >> java.util.MissingResourceException: Unable to find property: >> 'BasePage.title' for component: windowTitle >> [class=org.apache.wicket.markup.html.basic.Label] >> at org.apache.wicket.Localizer.getString(Localizer.java:239) >> at org.apache.wicket.Localizer.getString(Localizer.java:149) >> at >> org.apache.wicket.model.ResourceModel$AssignmentWrapper.getObject(ResourceModel.java:124) >> at >> org.apache.wicket.model.ResourceModel$AssignmentWrapper.getObject(ResourceModel.java:91) >> at >> org.apache.wicket.Component.getDefaultModelObject(Component.java:1640) >> at >> org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1668) >> at >> org.apache.wicket.markup.html.basic.Label.onComponentTagBody(Label.java:113) >> at >> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:72) >> at >> org.apache.wicket.Component.internalRenderComponent(Component.java:2517) >> at >> org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:56) >> at org.apache.wicket.Component.internalRender(Component.java:2347) >> at org.apache.wicket.Component.render(Component.java:2275) >> at >> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1474) >> at >> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1638) >> at >> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1613) >> at >> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1567) >> at >> org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:145) >> at >> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:72) >> at >> org.apache.wicket.Component.internalRenderComponent(Component.java:2517) >> at >> org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1576) >> at org.apache.wicket.Component.internalRender(Component.java:2347) >> at org.apache.wicket.Component.render(Component.java:2275) >> at >> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1474) >> at >> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1638) >> at org.apache.wicket.Page.onRender(Page.java:904) >> at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:140) >> at org.apache.wicket.Component.internalRender(Component.java:2347) >> at org.apache.wicket.Component.render(Component.java:2275) >> at org.apache.wicket.Page.renderPage(Page.java:1035) >> at >> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105) >> at >> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224) >> at >> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167) >> at >> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:750) >> at >> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) >> at >> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:252) >> at >> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209) >> at >> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280) >> at >> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162) >> at >> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218) >> at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) >> at >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) >> at >> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) >> at >> org.mortbay.jetty.servlet.SessionHandler
Re: Missingresourceexception only in Firefox but not in Chrome or Safari
In your Session override getLocale() ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Missingresourceexception-only-in-Firefox-but-not-in-Chrome-or-Safari-tp4650503p4650508.html Sent from the Users forum 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: Missingresourceexception only in Firefox but not in Chrome or Safari
No, I don't override getLocale, I only have a panel to change the locale when the user likes such as the above code: public class ChangeLocalePanel extends Panel { private static final long serialVersionUID = -627656359411214982L; private static class LocaleDropDown extends DropDownChoice { private static final long serialVersionUID = 7005942730218677106L; public class LocaleRenderer extends ChoiceRenderer { private static final long serialVersionUID = -6725227495514242466L; LocaleDropDown localeDropDown; LocaleRenderer(LocaleDropDown localeDropDown){ this.localeDropDown = localeDropDown; } //@Override public String getDisplayValue(Object locale) { String displayName = ""; if(((Locale)locale).getLanguage().compareToIgnoreCase("es")==0) displayName = "locale.spanish"; else displayName = "locale.galician"; return (new StringResourceModel(displayName, localeDropDown, localeDropDown.getInnermostModel())).getString(); } } LocaleDropDown(String id, @SuppressWarnings("rawtypes") List supportedLocales) { super(id, supportedLocales); this.setMarkupId("es"); setChoiceRenderer(new LocaleRenderer(this)); setModel(new IModel() { private static final long serialVersionUID = 1L; public Object getObject() { return getSession().getLocale(); } public void setObject(Object object) { getSession().setLocale((Locale) object); } public void detach() { } }); } @Override protected boolean wantOnSelectionChangedNotifications() { return true; } } public ChangeLocalePanel(String id, @SuppressWarnings("rawtypes") List supportedLocales){ super(id); add(new LocaleDropDown("localeSelect",supportedLocales)); } } El 13/07/2012, a las 10:59, Decebal Suiu escribió: > In your Session override getLocale() ? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Missingresourceexception-only-in-Firefox-but-not-in-Chrome-or-Safari-tp4650503p4650508.html > Sent from the Users forum 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: Determine session size for Wicket 1.5
Hello, Is there a good way to discover my serialised or about-to-be-serialised session size without adding the debug bar to my page? I currently use @Override protected void onAfterRender() { super.onAfterRender(); CloudSession ssnSession = (CloudSession)getSession(); long loSize = ssnSession.getSizeInBytes(); m_logger.log(Level.FINE, String.format("Session size = %,dB.", loSize)); } in my WebPage subclass, but I suspect that this is the wrong place to examine the session size. My software environment is: Web framework: Wicket 1.5.7 Web server system: Google App Engine for Java version 1.7.0 Java: 1.6.0_33; Java HotSpot(TM) Client VM 20.8-b03 Operating system: Microsoft Windows XP Home Edition version 2002 SP3 (version 5.1 running on x86; Cp1252; en_GB) Ian Marshall Walter Rugora wrote > > Thanks Jeremy, works great!!! > > On 23/06/12 23:23, Jeremy Thomerson wrote: >> On Fri, Jun 22, 2012 at 11:28 PM, Walter Rugorawrote: >> >>> Hi, >>> >>> when I apply the Wicket 1.3 way to determine session size, >>> RequestCycle.get().getSession().getSizeInBytes() >>> it results in an around 3000bytes value in my case. And adding or >>> removing Labels changed the session size. >>> >>> Now with Wicket 1.5 using >>> Session.get().getSizeInBytes() >>> session size is 857bytes. And I can add or remove as many Lables as I >>> wish, that size stays the same. Obviously I use it wrong. Currently I >>> just add the session size result to a Label added to my single WebPage: >>> public HomePage(final PageParameters parameters) { >>> ... >>> add(new Label("ssize", >>> String.valueOf(Session.get().getSizeInBytes(; >>> ... >>> } >>> >> >> Here you're doing it in the constructor. So, if this is the first page >> you >> visit there won't be any (Wicket) stuff in the session yet. >> >> Have you tried just adding the debug bar to your page? Add a dependency >> to >> wicket-devutils in your pom.xml and then add(new DebugBar("someID")); to >> your page (and add it to the markup obviously). >> > > > - > To unsubscribe, e-mail: users-unsubscribe@.apache > For additional commands, e-mail: users-help@.apache > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Determine-session-size-for-Wicket-1-5-tp4650050p4650510.html Sent from the Users forum 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: Determine session size for Wicket 1.5
Override Session#onDetach() and do it before calling super.onDetach(). On Fri, Jul 13, 2012 at 2:01 PM, Ian Marshall wrote: > Hello, > > Is there a good way to discover my serialised or about-to-be-serialised > session size without adding the debug bar to my page? > > I currently use > > @Override > protected void onAfterRender() > { > super.onAfterRender(); > > CloudSession ssnSession = (CloudSession)getSession(); > long loSize = ssnSession.getSizeInBytes(); > m_logger.log(Level.FINE, String.format("Session size = %,dB.", loSize)); > } > > in my WebPage subclass, but I suspect that this is the wrong place to > examine the session size. > > My software environment is: > > Web framework: Wicket 1.5.7 > Web server system: Google App Engine for Java version 1.7.0 > Java: 1.6.0_33; Java HotSpot(TM) Client VM 20.8-b03 > Operating system: Microsoft Windows XP Home Edition version 2002 SP3 > (version 5.1 running on x86; Cp1252; en_GB) > > > Ian Marshall > > > > Walter Rugora wrote >> >> Thanks Jeremy, works great!!! >> >> On 23/06/12 23:23, Jeremy Thomerson wrote: >>> On Fri, Jun 22, 2012 at 11:28 PM, Walter Rugorawrote: >>> Hi, when I apply the Wicket 1.3 way to determine session size, RequestCycle.get().getSession().getSizeInBytes() it results in an around 3000bytes value in my case. And adding or removing Labels changed the session size. Now with Wicket 1.5 using Session.get().getSizeInBytes() session size is 857bytes. And I can add or remove as many Lables as I wish, that size stays the same. Obviously I use it wrong. Currently I just add the session size result to a Label added to my single WebPage: public HomePage(final PageParameters parameters) { ... add(new Label("ssize", String.valueOf(Session.get().getSizeInBytes(; ... } >>> >>> Here you're doing it in the constructor. So, if this is the first page >>> you >>> visit there won't be any (Wicket) stuff in the session yet. >>> >>> Have you tried just adding the debug bar to your page? Add a dependency >>> to >>> wicket-devutils in your pom.xml and then add(new DebugBar("someID")); to >>> your page (and add it to the markup obviously). >>> >> >> >> - >> To unsubscribe, e-mail: users-unsubscribe@.apache >> For additional commands, e-mail: users-help@.apache >> > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Determine-session-size-for-Wicket-1-5-tp4650050p4650510.html > Sent from the Users forum 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 > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Generate html page from java POJO in Wickets
See at http://incubator.apache.org/isis/viewer/wicket/docbkx/html/guide/ch01s02.html a comparison between apache isis wicket viewer and other wicket rad frameworks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Generate-html-page-from-java-POJO-in-Wickets-tp4650360p4650512.html Sent from the Users forum 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: Determine session size for Wicket 1.5
Thanks Martin, I could not find onDetach() but found detach() so I have done this in my WebSession subclass: @Override public void detach() { long loSize = getSizeInBytes(); m_logger.log(Level.FINE, String.format("Session size = %,dB.", loSize)); super.detach(); } This seems to be fine (my sessions seem very small at ~1.7kB - I must be doing something wrong) except that this method can be called several times as a result of one request. Thanks again, Ian Martin Grigorov-4 wrote > > Override Session#onDetach() and do it before calling super.onDetach(). > > On Fri, Jul 13, 2012 at 2:01 PM, Ian Marshall> wrote: >> Hello, >> >> Is there a good way to discover my serialised or about-to-be-serialised >> session size without adding the debug bar to my page? >> >> I currently use >> >> @Override >> protected void onAfterRender() >> { >> super.onAfterRender(); >> >> CloudSession ssnSession = (CloudSession)getSession(); >> long loSize = ssnSession.getSizeInBytes(); >> m_logger.log(Level.FINE, String.format("Session size = %,dB.", >> loSize)); >> } >> >> in my WebPage subclass, but I suspect that this is the wrong place to >> examine the session size. >> >> My software environment is: >> >> Web framework: Wicket 1.5.7 >> Web server system: Google App Engine for Java version 1.7.0 >> Java: 1.6.0_33; Java HotSpot(TM) Client VM 20.8-b03 >> Operating system: Microsoft Windows XP Home Edition version 2002 SP3 >> (version 5.1 running on x86; Cp1252; en_GB) >> >> >> Ian Marshall -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Determine-session-size-for-Wicket-1-5-tp4650050p4650513.html Sent from the Users forum 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: wicket 1.5 confirmation ajaxbutton
Hi, I've tried your code with Wicket 1.5.7 and it seems to work. What kind of error are you getting? add(new AjaxLink("delete") { @Override public void onClick(AjaxRequestTarget target) { } @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new ConfirmAjaxDecorator("Delete?"); } }); public class ConfirmAjaxDecorator extends AjaxCallDecorator { private String message; public ConfirmAjaxDecorator(String message) { this.message = message; } @Override public CharSequence decorateScript(Component c, CharSequence script) { return new StringBuilder("if(!confirm('").append(message).append("')) { return false; };").append(script); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-1-5-confirmation-ajaxbutton-tp4650460p4650462.html Sent from the Users forum 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: Custom XHTML tag
This seems to be getting me where I want to go with the xhtml tag: http://sanityresort.blogspot.com/2011/08/creating-custom-wicket-tag-resolver.html On 07/13/2012 01:40 AM, Decebal Suiu wrote: Hi First, is it a good question. My solution use jqwicket tooltip and I touch both java and html files but it's ok for me. InlineHelp.java public class InlineHelp extends Panel { private static final long serialVersionUID = 1L; public InlineHelp(String id, IModel messageModel) { super(id, messageModel); } public InlineHelp(String id, String message) { super(id, Model.of(message)); } @Override protected void onInitialize() { super.onInitialize(); setRenderBodyOnly(true); WebComponent image = new ContextImage("image", "/images/help.png") { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(ComponentTag tag) { tag.put("title", (String) InlineHelp.this.getDefaultModelObject()); } }; image.add(new TipTipBehavior(new TipTipOptions().maxWidth("auto"))); add(image); } } InlineHelp.html http://wicket.apache.org/";> How to use java form.add(new InlineHelp("emailHelp", "If you want some notifications")); html Email notifications Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Custom-XHTML-tag-tp4650489p4650506.html Sent from the Users forum 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: jboss ignoring html request
I dont have Wicket Filter in my web.xml though i can see this WicketApplication org.apache.wicket.protocol.http.WicketServlet I am assuming this will call WicketFilter intern. But before this i have make sure my filter is being called. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/jboss-ignoring-html-request-tp4650491p4650517.html Sent from the Users forum 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