Re: IE6 + load balancer through proxy problem
in the homepage, or the very first page they hit try binding the session... in the page's constructor do getSession().bind() and see if that helps. it is possible on the first request to create more then one session and that will get wicket confused. -igor On Thu, Oct 23, 2008 at 11:55 AM, atrout <[EMAIL PROTECTED]> wrote: > > We are having a very peculiar problem with a website not working properly > under very specific conditions. > > The site is built with wicket and running on Apache + Resin. There are two > load balanced servers, and each apache instance points only to the resin > instance on the same server. We are using sticky sessions both on the load > balancer hardware and in the resin configuration. > > The client is behind a proxy and they can only use IE6 to access the site. > Upon initial page load when they are trying to access the site through the > domain name or through the IP address of the load balancer they are getting > one of those inscrutable IE6 javascript errors: > > Line: 2 > Char: 1 > Error: Invalid character > Code: 0 > > After that almost all of the Ajax controls on the site don't function. There > are errors in the logs which look like this: > > 2008-10-21 11:35:05,906 ERROR [hmux-XXX.XXX.XXX.XXX:6802-13:] > org.apache.wicket.RequestCycle - Method onLinkClicked of interface > org.apache.wicket.markup.html.link.ILinkListener targeted at component > [MarkupContainer [Component id = offerDetailsLink, page = > com.aexp.pursuits.wicket.pages.PlayGolf, path = > 1:golfForm:offersPanel:offerFragmentPanel:offerDetailsLink.OffersPanel$OfferFragment$1, > isVisible = true, isVersioned = true]] threw an exception > org.apache.wicket.WicketRuntimeException: Method onLinkClicked of interface > org.apache.wicket.markup.html.link.ILinkListener targeted at component > [MarkupContainer [Component id = offerDetailsLink, page = > com.aexp.pursuits.wicket.pages.PlayGolf, path = > 1:golfForm:offersPanel:offerFragmentPanel:offerDetailsLink.OffersPanel$OfferFragment$1, > isVisible = true, isVersioned = true]] threw an exception >at > org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:194) >at > org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) >at > org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91) >at > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1166) >at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243) >at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1331) >at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) >at > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:363) >at > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) >at > com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87) >at > com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:187) >at > com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:181) >at > com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266) >at > com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:435) >at com.caucho.server.port.TcpConnection.run(TcpConnection.java:603) >at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721) >at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643) >at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.reflect.InvocationTargetException >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >at java.lang.reflect.Method.invoke(Method.java:585) >at > org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183) >... 17 more > Caused by: java.lang.NullPointerException >at > com.aexp.pursuits.wicket.panels.OffersPanel$OfferFragment$1.onClick(OffersPanel.java:233) >at > org.apache.wicket.ajax.markup.html.AjaxFallbackLink.onClick(AjaxFallbackLink.java:98) >at > org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:214) >... 22 more > > It appears that the AjaxRequestTarget is null. > > When the client tries to access the site through the IP address of either of > the two servers there is no javascript error and the site works. The site > also works in Firefox and IE7 at the client. > > Has anyone seen anything like this before? Do you have any clue what the > problem might be? It is very difficult for us to debug this because we are > unable to reproduce the problem and have very little access to the c
Re: AjaxFallbackButton: inconsistend submit order
this sounds like a bug, please file a jira report -igor On Thu, Oct 23, 2008 at 6:47 AM, Stefan Fußenegger <[EMAIL PROTECTED]> wrote: > > Hi folks, > > I just stumbled upon a problem with a Form containing a nested Form and two > AjaxFallbackButtons (submit and preview). I need to implement different > onSubmit() behavior of the nested Form depending on the clicked button. > > The order of onSubmit() calls is: > > without JS: > - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form) > - OuterForm.onSubmit() // not used > - Inner Form.onSubmit() > > with JS: > - Inner Form.onSubmit() > - OuterForm.onSubmit() // not used > - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form) > > With JS, it is therefore not possible to determine which button was clicked > from inside a form's onSubmit() method. > > Is this a (known) bug? > > - > --- > Stefan Fußenegger > http://talk-on-tech.blogspot.com // looking for a nicer domain ;) > -- > View this message in context: > http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20131329.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to unittest a checkbox
Added https://issues.apache.org/jira/browse/WICKET-1893 WICKET-1893 jwcarman wrote: > > Since this is not so obvious, we should probably file a request in > JIRA to add a checkbox-specific method to FormTester. Care to take > care of that, since you found the issue? > > On Thu, Oct 23, 2008 at 9:15 AM, Minto van der Sluis > <[EMAIL PROTECTED]> wrote: >> >> Thx that did the trick :-) >> >> For those who that come after me >> >> formTester.setValue( getCheckboxPath(), "on" ); // check >> formTester.setValue( getCheckboxPath(), "off" ); // uncheck >> >> regards, >> >> Minto >> >> -- >> View this message in context: >> http://www.nabble.com/how-to-unittest-a-checkbox-tp20106917p20130698.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/how-to-unittest-a-checkbox-tp20106917p20145430.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SortablePalette possible?
it is definitely possible to create it. as far as approaches, there are many many options. the top level component should be a formcomponentpanel. inside you can use datatables to represent your options as they already provide sortable headers. -igor On Thu, Oct 23, 2008 at 1:36 AM, Rommert de Bruijn <[EMAIL PROTECTED]> wrote: > And a link to the image I promised: > > http://img395.imageshack.us/my.php?image=sortablepaletteea0.jpg > > (may contain some horrible adds) > > Rommert de Bruijn wrote: >> >> Hi all, >> >> I'm currently working on a web application that requires Persons to be >> added/removed to/from a UserGroup. What I have in mind is much like the >> Palette component, but with added functionality: >> >> a) a left hand list with all unselected Persons , a right hand list with >> selected Persons, and buttons to move Persons from left to right and vice >> versa, supporting Ctrl/Shift+click behavior to make selections. >> b) each item in the list shows firstName and lastName, as tabular data. >> c) up/down sorting behavior on each property that is displayed (in this >> case: firstName and lastName), for both lists. >> >> a) is basically Palette. But b) does not go well with Palette, since the >> tag in Palette is not allowed (w3c) to take any additional html >> such as and . To display tabular data, I could use a DataView, >> which would work nicely with c) using OrderByBorders. But alas: DataView >> does not support the Ctrl/Shift+click behavior that I need. >> >> As they say: pictures say more then 1000 words. So I'll skip the other 800 >> or so words and attach a screenshot of what I'd like to make :) The image >> contains some Dutch text, which I'll gladly translate if necessary. >> >> My actual questions: >> - Has anyone tried this before, either successful or unsuccessful? >> - Which components would you use to create something that does all this? >> - If this combination of functionality seems impossible to merge into one >> component, which functionality would you drop to create "the next best >> thing"? >> >> Thanks in advance, >> Rommert de Bruijn >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] > > > -- > Rommert de Bruijn > Func. Internet Integration > W http://www.func.nl > T +31 20 423 > F +31 20 4223500 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Updating model for DropDownChoice
If you combine setNullValid(true) with putting myComponent.nullValue=My null value in the properties file, you will always get a default null value with the title "My null value". //Swanthe nanotech wrote: Hi, I have a search form which contains multiple search fields(as TextFields) and also there is dropdown from which user can select the search criteria. The search results are displayed in the same page at bottom. I want to clear the search Form with help of "Reset" button in the form. Question : 1. If I refresh the form(by wrapping it in WebMarkupContainer) it removes the "Choose One" field. The solution to that I found was to set setNullValid(true). But, the problem with that is it just displays the empty value..but I really want "Choose One" or "Select One" in dropdown. Even by putting "null=Select One" in properties file, it does not show "Select One" option in drop-down if I have setNullValid(true) . So, How Can I have both? i.e When I set "setNullValid(true)" how can I get "Select One" to show up in DropDown. 2. Also, when I update the webmarkupcontainer, to clear the search the dropdown still shows the pervious search criteria. It does not update the model for dropdown to first value or "Choose One". Can someone please give me pointers? Thanks, ~R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxFallbackButton: inconsistend submit order
https://issues.apache.org/jira/browse/WICKET-1894 btw: 1.3.5 is still in the "unreleased versions" section regards igor.vaynberg wrote: > > this sounds like a bug, please file a jira report > > -igor > > On Thu, Oct 23, 2008 at 6:47 AM, Stefan Fußenegger > <[EMAIL PROTECTED]> wrote: >> >> Hi folks, >> >> I just stumbled upon a problem with a Form containing a nested Form and >> two >> AjaxFallbackButtons (submit and preview). I need to implement different >> onSubmit() behavior of the nested Form depending on the clicked button. >> >> The order of onSubmit() calls is: >> >> without JS: >> - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form) >> - OuterForm.onSubmit() // not used >> - Inner Form.onSubmit() >> >> with JS: >> - Inner Form.onSubmit() >> - OuterForm.onSubmit() // not used >> - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form) >> >> With JS, it is therefore not possible to determine which button was >> clicked >> from inside a form's onSubmit() method. >> >> Is this a (known) bug? >> >> - >> --- >> Stefan Fußenegger >> http://talk-on-tech.blogspot.com // looking for a nicer domain ;) >> -- >> View this message in context: >> http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20131329.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - --- Stefan Fußenegger http://talk-on-tech.blogspot.com // looking for a nicer domain ;) -- View this message in context: http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20145832.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Spring and servlet config instead of filter
I have problems to replace filter configuration in web.xml with servlet configuration. Why I try to use servlet configuration is to get wickets run with spring in websphere. I'm trying now to deploy this application in jetty but I run to problems. I have read from this mailing list that the problem I run to is reported as a bug and fixed. Please ask for more information if it is needed. Thank you for advance. And next more details: I'm using these versions. repository/org/apache/wicket/wicket-extensions/1.3.5/wicket-extensions-1.3.5.jar repository/org/apache/wicket/wicket-spring-annot/1.3.5/wicket-spring-annot-1.3.5.jar repository/org/apache/wicket/wicket-spring/1.3.5/wicket-spring-1.3.5.jar repository/org/apache/wicket/wicket-ioc/1.3.5/wicket-ioc-1.3.5.jar repository/org/springframework/spring-core/2.5.5/spring-core-2.5.5.jar Here is my web.xml contextConfigLocation /WEB-INF/sovelluskonteksti.xml context org.springframework.web.context.ContextLoaderServlet 0 wicket.wicket org.apache.wicket.protocol.http.WicketServlet applicationClassName com.loginets.rfidgate.web.HotelliSovellus applicationFactoryClassName org.apache.wicket.spring.SpringWebApplicationFactory 1 wicket.wicket /app/* Here is exception: java.lang.IllegalStateException: bean of type [org.apache.wicket.protocol.http.WebApplication] not found at org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:107) at org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:86) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:551) at org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:194) at javax.servlet.GenericServlet.init(GenericServlet.java:241) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:431) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:643) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1234) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:222) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:388) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:324) at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:205) at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149) at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223) at org.apache.maven.DefaultMaven.execute_aroundBody1 $advice(DefaultMaven.java:304) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1) at org.apache.maven.e
Re: Autoscrolling table header
Could you use thead / tbody, and just use the overflow css attribute for the tbody? I've never done it, but it seems like it should work. Also, when you get to customizing the table like this, you might need to just implement your own table using another repeater. DataTable has a lot of features built in (especially DefaultDataTable), but sometimes if you're trying to do something else, it's easier to create your own custom component. But give it a shot and let us know how it goes! -- Jeremy Thomerson http://www.wickettraining.com On Fri, Oct 24, 2008 at 1:01 AM, Ashika Umanga Umagiliya < [EMAIL PROTECTED]> wrote: > Hi Wicketers, > > I am newbie to wicket and I want to know whether its possible to implement > a DataTable which behaves like a spreadsheet. > Its something like ActiveWidget datagrid as in > http://www.activewidgets.com/grid/ > As you can see , when we scroll , the tableheader also scrolls accordingly. > > Thanks in advance, > umanga > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: What's the difference between Check and CheckBox
Thanx for clearing that up :-) Minto igor.vaynberg wrote: > > ... > CheckBox only works with a imodel > > while CheckGroup/Check can be used to populate a collection with > arbitrary items. eg Check uses IModel while CheckGroup uses > IModel> > ... > -- View this message in context: http://www.nabble.com/What%27s-the-difference-between-Check-and-CheckBox-tp20125256p20150569.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forcing property models to update
I have two panels, a view panel where you can look for news and an edit panel. The edit panel has a reference to a "news" object and all of it's form elements have property models that use that object. When I pass a news object into the panel on creation all of the form elements fill as expected. However, if I set that object through a setter in the panel class, the elements do not update. My theory (which may be wrong) is that the property model makes a defensive copy and therefore is not linked to the object in the class. If this is true, can I resend the object to the property model? If that's not true, any insight as to what I may be doing wrong? -- View this message in context: http://www.nabble.com/Forcing-property-models-to-update-tp20150693p20150693.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forcing property models to update
Do you mean you're doing this? public class ViewPanel extends Panel { private Object foo; public ViewPanel(String id) { super(id); add(new EditPanel("edit", new PropertyModel(foo, "property"))); setFoo(new Foo()); } } If so, you can fix it by replacing the property model with: new PropertyModel(this, "foo.property") - that way it will always pull the latest from from your ViewPanel. Otherwise, you passed in a reference to an object, and then replaced your local reference with a reference to a new object - but that wouldn't replace references anywhere else. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Oct 24, 2008 at 8:57 AM, walnutmon <[EMAIL PROTECTED]>wrote: > > I have two panels, a view panel where you can look for news and an edit > panel. The edit panel has a reference to a "news" object and all of it's > form elements have property models that use that object. > > When I pass a news object into the panel on creation all of the form > elements fill as expected. However, if I set that object through a setter > in the panel class, the elements do not update. My theory (which may be > wrong) is that the property model makes a defensive copy and therefore is > not linked to the object in the class. If this is true, can I resend the > object to the property model? > > If that's not true, any insight as to what I may be doing wrong? > -- > View this message in context: > http://www.nabble.com/Forcing-property-models-to-update-tp20150693p20150693.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Forcing property models to update
No defensive copying happening. Just your plain old references updating. Read the models page on the wiki about chaining models. Put this in a unit test case: State s = new State(); s.setDescription("I haven't read Wicket in Action but hear it helps solve these questions"); PropertyModel pm = new PropertyModel(s, "description"); assertEquals("I haven't read Wicket in Action but hear it helps solve these questions", pm.getObject()); s = new State(); s.setDescription("I'll buy Wicket in Action, just because I now get why my property model doesn't know this new state yet."); assertEquals("I'll buy Wicket in Action, just because I now get why my property model doesn't know this new state yet.", pm.getObject()); This is basically what you are doing in your panel. but if you did: State s = new State("Foo"); Model m = new Model(); m.setObject(s); PropertyModel pm = new PropertyModel(m, "description"); assertEquals("Foo", pm.getObject()); and now for the coup de grace: s = new State("Bar"); m.setObject(s); assertEquals("Bar", pm.getObject()); Martijn On Fri, Oct 24, 2008 at 3:57 PM, walnutmon <[EMAIL PROTECTED]> wrote: > > I have two panels, a view panel where you can look for news and an edit > panel. The edit panel has a reference to a "news" object and all of it's > form elements have property models that use that object. > > When I pass a news object into the panel on creation all of the form > elements fill as expected. However, if I set that object through a setter > in the panel class, the elements do not update. My theory (which may be > wrong) is that the property model makes a defensive copy and therefore is > not linked to the object in the class. If this is true, can I resend the > object to the property model? > > If that's not true, any insight as to what I may be doing wrong? > -- > View this message in context: > http://www.nabble.com/Forcing-property-models-to-update-tp20150693p20150693.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AjaxButton - no label constructor?
Is there a special reason why an AjaxButton doesn't have a constructor that allows a label to be set onto it automatically like a normal form Button? Shouldn't the AjaxButton have a constructor like the Button constructor?: Button(java.lang.String id, IModel model) Constructor taking an model for rendering the 'label' of the button (the value attribute of the input/button tag). I realise you can use setLabel to set the label after it's been declared but it just seems inconsistent. cheers, Steve --- Steve Swinsburg Portal Systems Developer Centre for e-Science Lancaster University Lancaster LA1 4YT email: [EMAIL PROTECTED] phone: +44 (0) 1524 594870 smime.p7s Description: S/MIME cryptographic signature
Re: Forcing property models to update
Martijn is the guy that sprays buttered popcorn smell in the theatre vents for that extra little bit of subliminal selling power. :) Seriously, though - buy the book - it's worth it's weight in gold. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Oct 24, 2008 at 9:18 AM, Martijn Dashorst < [EMAIL PROTECTED]> wrote: > No defensive copying happening. Just your plain old references > updating. Read the models page on the wiki about chaining models. > > Put this in a unit test case: > > State s = new State(); > s.setDescription("I haven't read Wicket in Action but hear it helps > solve these questions"); > PropertyModel pm = new PropertyModel(s, "description"); > assertEquals("I haven't read Wicket in Action but hear it helps solve > these questions", pm.getObject()); > > s = new State(); > s.setDescription("I'll buy Wicket in Action, just because I now get > why my property model doesn't know this new state yet."); > assertEquals("I'll buy Wicket in Action, just because I now get why my > property model doesn't know this new state yet.", pm.getObject()); > > This is basically what you are doing in your panel. > > but if you did: > State s = new State("Foo"); > Model m = new Model(); > m.setObject(s); > PropertyModel pm = new PropertyModel(m, "description"); > assertEquals("Foo", pm.getObject()); > > and now for the coup de grace: > > s = new State("Bar"); > m.setObject(s); > assertEquals("Bar", pm.getObject()); > > Martijn > > On Fri, Oct 24, 2008 at 3:57 PM, walnutmon <[EMAIL PROTECTED]> > wrote: > > > > I have two panels, a view panel where you can look for news and an edit > > panel. The edit panel has a reference to a "news" object and all of it's > > form elements have property models that use that object. > > > > When I pass a news object into the panel on creation all of the form > > elements fill as expected. However, if I set that object through a > setter > > in the panel class, the elements do not update. My theory (which may be > > wrong) is that the property model makes a defensive copy and therefore is > > not linked to the object in the class. If this is true, can I resend the > > object to the property model? > > > > If that's not true, any insight as to what I may be doing wrong? > > -- > > View this message in context: > http://www.nabble.com/Forcing-property-models-to-update-tp20150693p20150693.html > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Usability question for a birthdate DropDownChoice
I'm just curious to hear some thoughts about the usability of selecting your birthdate on a form. Unfortunately the date picker doesn't seem to be the best solution because of the year requirement, so that leaves a combo of a month/day/year drop down choices or a textfield looking for a specific date format. While I would prefer a textfield because its easier to bind a value, and can be ajax validated immmediately, the disadvantage it has (besides requiring a specific format) is that different countries have different date formats, so it might be confusing for an internationlized form. Drop downs make it at little easier (but slower) for users, but has some technical disadvantages. For one its less friendly to use ajax validation since they need to select all 3 before we should show a validation error. (An onblur after the first drop down saying the date is invalid doesnt make much sense) And also we need to bind the values to three different objects and contruct a date later. Is there any sort of a GroupDropDownChoice that addresses this like there is for check boxes and radio buttons? I'd be interested to hear how people have handled something like this -- View this message in context: http://www.nabble.com/Usability-question-for-a-birthdate-DropDownChoice-tp20151779p20151779.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to create a calendar - need some guidance
I'd really appreciate that Edgar, thanks! As for the GridView - "duh" for me. On another note, I just finished another one of our corporate sites, using Wicket. Check it out, let me know your thoughts, criticisms, etc. I used Wicket because I built our storefront a couple years ago with Wicket as well and eventually they'll be more tightly integrated. Everything is Wicket + Java EE 5 on Glassfish V2. http://www.snakeriverfarms.com/ Edgar Merino wrote: > > I've got an abstract calendar already coded, the only problem is that > it's using a DataTable (instead of only a gridview), I have to change > the code to use the gridview instead, I'll post the code tomorrow if > I've got the time and you're still interested. > > Edgar Merino > > > > > > John Krasnay escribió: >> Uh, yeah, that's what I meant to say, just use a GridView :-) >> >> jk >> >> On Thu, Oct 23, 2008 at 05:14:42PM -0700, Igor Vaynberg wrote: >> >>> all you need is a gridview. set columns to 7 and generate 30 items... >>> >>> -igor >>> >>> On Thu, Oct 23, 2008 at 1:47 PM, V. Jenks <[EMAIL PROTECTED]> wrote: >>> Hi all. I'm trying to build a component-ized calendar that will be the centerpiece of a new application I'm working on. I built one this morning in JSP and was able to do it with very little code. I kept it simple and I'm hoping I can retro-fit the logic into a wicket page cleanly, without too much trouble. I'm a little stuck because in my JSP, I simply loop through the days and print until Saturday is reached, then I break to a new table row and continue. Doing this in Wicket seems tough because if I use a ListView, I can't be as flexible as far as throwing in a new row while looping and outputting table cells. Here's the rough idea I came up with today in JSP, can someone give me some pointers? <%@ page contentType="text/html" pageEncoding="UTF-8" %> <%@ page import="java.util.*" %> >>> "http://www.w3.org/TR/html4/loose.dtd";> <% //get parameters to change date String monthParam = request.getParameter("month"); String yearParam = request.getParameter("year"); //create calendar object Calendar cal = Calendar.getInstance(); cal.setFirstDayOfWeek(Calendar.SUNDAY); //set first day to Sunday if (monthParam != null) cal.set(Calendar.MONTH, (Integer.valueOf(monthParam)-1)); if (yearParam != null) cal.set(Calendar.YEAR, Integer.valueOf(yearParam)); //get total number of days in month int numDaysInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH); //get current month name in English String monthName = cal.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.ENGLISH); //get current year int year = cal.get(Calendar.YEAR); //get array of day names String[] headers = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; %> Calendarama! <%= monthName + " " + year %> <% for (int i=0; i<7; i++) { %> <%= headers[i] %> <% } %> <% for (int i=1; i<=numDaysInMonth; i++) { //re-set calendar day in context of loop cal.set(Calendar.DAY_OF_MONTH, i); //get the day number of the week int day = cal.get(Calendar.DAY_OF_WEEK); //days without numbers count int blankDays = 0; //blank days before 1st of month? if (i == 1 && day > 1) { blankDays = day - i; //get count //loop through count and print blank day for (int x=1; x<=blankDays; x++) { %> <% } } %> <%= i %> <% if (day == Calendar.SATURDAY) { %> <% } //blank days after last day of month? if (i == numDaysInMonth && day < 7) { blankDays = 7 - day; //get count //loop through count and print blank day for (int x=1; x<=blankDays; x++) { %> <% } } } %> -- View this message in context: http://www.nabble.com/Trying-to-create-a-calendar---need-some-guidance-tp20138860p20138860.html Se
Re: Trying to create a calendar - need some guidance
Mmm. Waguy beef! On Fri, Oct 24, 2008 at 11:04 AM, V. Jenks <[EMAIL PROTECTED]> wrote: > > I'd really appreciate that Edgar, thanks! > > As for the GridView - "duh" for me. > > On another note, I just finished another one of our corporate sites, using > Wicket. Check it out, let me know your thoughts, criticisms, etc. I used > Wicket because I built our storefront a couple years ago with Wicket as well > and eventually they'll be more tightly integrated. > > Everything is Wicket + Java EE 5 on Glassfish V2. > > http://www.snakeriverfarms.com/ > > > Edgar Merino wrote: >> >> I've got an abstract calendar already coded, the only problem is that >> it's using a DataTable (instead of only a gridview), I have to change >> the code to use the gridview instead, I'll post the code tomorrow if >> I've got the time and you're still interested. >> >> Edgar Merino >> >> >> >> >> >> John Krasnay escribió: >>> Uh, yeah, that's what I meant to say, just use a GridView :-) >>> >>> jk >>> >>> On Thu, Oct 23, 2008 at 05:14:42PM -0700, Igor Vaynberg wrote: >>> all you need is a gridview. set columns to 7 and generate 30 items... -igor On Thu, Oct 23, 2008 at 1:47 PM, V. Jenks <[EMAIL PROTECTED]> wrote: > Hi all. > > I'm trying to build a component-ized calendar that will be the > centerpiece > of a new application I'm working on. I built one this morning in JSP > and > was able to do it with very little code. I kept it simple and I'm > hoping I > can retro-fit the logic into a wicket page cleanly, without too much > trouble. I'm a little stuck because in my JSP, I simply loop through > the > days and print until Saturday is reached, then I break to a new table > row > and continue. Doing this in Wicket seems tough because if I use a > ListView, > I can't be as flexible as far as throwing in a new row while looping > and > outputting table cells. > > Here's the rough idea I came up with today in JSP, can someone give me > some > pointers? > > <%@ page contentType="text/html" pageEncoding="UTF-8" %> > <%@ page import="java.util.*" %> > "http://www.w3.org/TR/html4/loose.dtd";> > <% > //get parameters to change date > String monthParam = request.getParameter("month"); > String yearParam = request.getParameter("year"); > > //create calendar object > Calendar cal = Calendar.getInstance(); > cal.setFirstDayOfWeek(Calendar.SUNDAY); //set first day to Sunday > > if (monthParam != null) >cal.set(Calendar.MONTH, (Integer.valueOf(monthParam)-1)); > > if (yearParam != null) >cal.set(Calendar.YEAR, Integer.valueOf(yearParam)); > > //get total number of days in month > int numDaysInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH); > > //get current month name in English > String monthName = cal.getDisplayName(Calendar.MONTH, Calendar.LONG, > Locale.ENGLISH); > > //get current year > int year = cal.get(Calendar.YEAR); > > //get array of day names > String[] headers = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; > %> > > > >Calendarama! > > > > > ><%= monthName + " " + year > %> > > > ><% > for (int i=0; i<7; i++) > { >%> ><%= headers[i] %> ><% > } >%> > > > ><% > for (int i=1; i<=numDaysInMonth; i++) > { >//re-set calendar day in context of loop >cal.set(Calendar.DAY_OF_MONTH, i); > >//get the day number of the week >int day = cal.get(Calendar.DAY_OF_WEEK); > >//days without numbers count >int blankDays = 0; > >//blank days before 1st of month? >if (i == 1 && day > 1) >{ > blankDays = day - i; //get count > > //loop through count and print blank day > for (int x=1; x<=blankDays; x++) > { >%> > ><% > } >} >%> > <%= i %> ><% >if (day == Calendar.SATURDAY) >{ >%> > > ><% >} > >//blank days after last day of month? >if (i == numDaysInMonth && day < 7) >{ > blankDays = 7 - day; //get count > > //loop through count and print blank day > for (int x=1; x<=blankDays; x++) > { >%> > >
nested AjaxFormComponentUpdatingBehavior
Hi I'm having trouble refreshing a formcomponent with Ajax when it is nested in another Component which is updated by Ajax. My situation is: I have a large page with a form. The form contains a dataView and the dataView contains lines (a List) of objects. In each line I have a few DropDownChoice components. If component A changes, the choices of component B will change. This all works perfectly by adding a AjaxFormComponentUpdatingBehavior on component A and calling setOutputMarkupId(true) on component B. Now I also have an option to add a line to the list of objects and I also added AjaxFormComponentUpdatingBehavior to this 'add_a_new_line_link' causing the whole dataView to refresh. To have that working I also call setOutputMarkupId(true) on my dataView. But once I've (also) set the OutputMarkupId(true) on the dataView, the updating of component B after changing component A does not work anymore, unless I refresh the whole dataView instead of just component B as I did before. So to me it seems it has to do something with the nested setOutputMarkupId(true) on the dataView and on component B within that dataview. Any ideas? Rutger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Understanding JS Error on Wicket-Framewor (Ajax + F5)
Hi all. I am getting the following error when refreshing (CTRL+R) my page. I work entirely with ajax except for the first-time loading of the page. After that it is all panel replacements. Everything kind of work but I have one formatting component that don't, and as a hint I get this error (on firebug): document.body is null addElement()("scroll lock | clear | close Wicket Ajax Debug Window (drag me here) WICKET AJAX DEBUG")wicket-a...-debug.js (line 207) init()()wicket-a...-debug.js (line 137) log()("getGERMANItems()", "INFO: ")wicket-a...-debug.js (line 49) log("getGERMANItems()", "INFO: ")LcUtils_de_CH.js (line 3) logInformation("getGERMANItems()")LcUtils_de_CH.js (line 10) getGERMANItems()()LcDateTy..._de_CH.js (line 2) LcDateTypesEnum_de_CH.js()()LcDateTy..._de_CH.js (line 182) document.body.appendChild(element); Any clue to what could be happening that when page is refreshed, document.body returns null? At first this error was appearing when uploading a file (hence posting and refreshing window). f(t)
Re: AjaxFallbackButton: inconsistend submit order
shows it was released here...maybe martijn sneaked that change in. -igor On Fri, Oct 24, 2008 at 12:52 AM, Stefan Fußenegger <[EMAIL PROTECTED]> wrote: > > https://issues.apache.org/jira/browse/WICKET-1894 > > btw: 1.3.5 is still in the "unreleased versions" section > > regards > > > > igor.vaynberg wrote: >> >> this sounds like a bug, please file a jira report >> >> -igor >> >> On Thu, Oct 23, 2008 at 6:47 AM, Stefan Fußenegger >> <[EMAIL PROTECTED]> wrote: >>> >>> Hi folks, >>> >>> I just stumbled upon a problem with a Form containing a nested Form and >>> two >>> AjaxFallbackButtons (submit and preview). I need to implement different >>> onSubmit() behavior of the nested Form depending on the clicked button. >>> >>> The order of onSubmit() calls is: >>> >>> without JS: >>> - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form) >>> - OuterForm.onSubmit() // not used >>> - Inner Form.onSubmit() >>> >>> with JS: >>> - Inner Form.onSubmit() >>> - OuterForm.onSubmit() // not used >>> - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form) >>> >>> With JS, it is therefore not possible to determine which button was >>> clicked >>> from inside a form's onSubmit() method. >>> >>> Is this a (known) bug? >>> >>> - >>> --- >>> Stefan Fußenegger >>> http://talk-on-tech.blogspot.com // looking for a nicer domain ;) >>> -- >>> View this message in context: >>> http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20131329.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > - > --- > Stefan Fußenegger > http://talk-on-tech.blogspot.com // looking for a nicer domain ;) > -- > View this message in context: > http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20145832.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring and servlet config instead of filter
are you running on jdk1.4? because that is pretty much the only reason to need to use spring web application factory... -igor On Fri, Oct 24, 2008 at 3:14 AM, Joni Lahtinen <[EMAIL PROTECTED]> wrote: > I have problems to replace filter configuration in web.xml with servlet > configuration. Why I try to use servlet configuration is to get wickets > run with spring in websphere. I'm trying now to deploy this application > in jetty but I run to problems. I have read from this mailing list that > the problem I run to is reported as a bug and fixed. Please ask for more > information if it is needed. > > Thank you for advance. And next more details: > > I'm using these versions. > > repository/org/apache/wicket/wicket-extensions/1.3.5/wicket-extensions-1.3.5.jar > repository/org/apache/wicket/wicket-spring-annot/1.3.5/wicket-spring-annot-1.3.5.jar > repository/org/apache/wicket/wicket-spring/1.3.5/wicket-spring-1.3.5.jar > repository/org/apache/wicket/wicket-ioc/1.3.5/wicket-ioc-1.3.5.jar > repository/org/springframework/spring-core/2.5.5/spring-core-2.5.5.jar > > Here is my web.xml > > >contextConfigLocation >/WEB-INF/sovelluskonteksti.xml > > >context > > org.springframework.web.context.ContextLoaderServlet >0 > > >wicket.wicket > > org.apache.wicket.protocol.http.WicketServlet > >applicationClassName > > com.loginets.rfidgate.web.HotelliSovellus > > >applicationFactoryClassName > > org.apache.wicket.spring.SpringWebApplicationFactory > >1 > > >wicket.wicket >/app/* > > > > Here is exception: > > java.lang.IllegalStateException: bean of type > [org.apache.wicket.protocol.http.WebApplication] not found >at > org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:107) >at > org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:86) >at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:551) >at > org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:194) >at javax.servlet.GenericServlet.init(GenericServlet.java:241) >at > org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:431) >at > org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263) >at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:643) >at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) >at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1234) >at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) >at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460) >at > org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124) >at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) >at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) >at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) >at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) >at org.mortbay.jetty.Server.doStart(Server.java:222) >at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >at > org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) >at > org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:388) >at > org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:324) >at > org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:205) >at > org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) >at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579) >at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498) >at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265) >at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191) >at
Re: AjaxButton - no label constructor?
add an rfe into jira. there is no special reason afaik. actually if it were up to me button wouldnt waste its model on the label, you can just add that directly into markup with wicket:message in 90% of cases. -igor On Fri, Oct 24, 2008 at 7:20 AM, Steve Swinsburg <[EMAIL PROTECTED]> wrote: > Is there a special reason why an AjaxButton doesn't have a constructor that > allows a label to be set onto it automatically like a normal form Button? > Shouldn't the AjaxButton have a constructor like the Button constructor?: > Button(java.lang.String id, IModel model) > Constructor taking an model for rendering the 'label' of the button (the > value attribute of the input/button tag). > > I realise you can use setLabel to set the label after it's been declared but > it just seems inconsistent. > > > cheers, > Steve > --- > Steve Swinsburg > Portal Systems Developer > Centre for e-Science > Lancaster University > Lancaster > LA1 4YT > email: [EMAIL PROTECTED] > phone: +44 (0) 1524 594870 > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forcing property models to update
m popcorn! -igor On Fri, Oct 24, 2008 at 7:47 AM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > Martijn is the guy that sprays buttered popcorn smell in the theatre vents > for that extra little bit of subliminal selling power. :) > > Seriously, though - buy the book - it's worth it's weight in gold. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > > On Fri, Oct 24, 2008 at 9:18 AM, Martijn Dashorst < > [EMAIL PROTECTED]> wrote: > >> No defensive copying happening. Just your plain old references >> updating. Read the models page on the wiki about chaining models. >> >> Put this in a unit test case: >> >> State s = new State(); >> s.setDescription("I haven't read Wicket in Action but hear it helps >> solve these questions"); >> PropertyModel pm = new PropertyModel(s, "description"); >> assertEquals("I haven't read Wicket in Action but hear it helps solve >> these questions", pm.getObject()); >> >> s = new State(); >> s.setDescription("I'll buy Wicket in Action, just because I now get >> why my property model doesn't know this new state yet."); >> assertEquals("I'll buy Wicket in Action, just because I now get why my >> property model doesn't know this new state yet.", pm.getObject()); >> >> This is basically what you are doing in your panel. >> >> but if you did: >> State s = new State("Foo"); >> Model m = new Model(); >> m.setObject(s); >> PropertyModel pm = new PropertyModel(m, "description"); >> assertEquals("Foo", pm.getObject()); >> >> and now for the coup de grace: >> >> s = new State("Bar"); >> m.setObject(s); >> assertEquals("Bar", pm.getObject()); >> >> Martijn >> >> On Fri, Oct 24, 2008 at 3:57 PM, walnutmon <[EMAIL PROTECTED]> >> wrote: >> > >> > I have two panels, a view panel where you can look for news and an edit >> > panel. The edit panel has a reference to a "news" object and all of it's >> > form elements have property models that use that object. >> > >> > When I pass a news object into the panel on creation all of the form >> > elements fill as expected. However, if I set that object through a >> setter >> > in the panel class, the elements do not update. My theory (which may be >> > wrong) is that the property model makes a defensive copy and therefore is >> > not linked to the object in the class. If this is true, can I resend the >> > object to the property model? >> > >> > If that's not true, any insight as to what I may be doing wrong? >> > -- >> > View this message in context: >> http://www.nabble.com/Forcing-property-models-to-update-tp20150693p20150693.html >> > Sent from the Wicket - User mailing list archive at Nabble.com. >> > >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> >> >> -- >> 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: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Usability question for a birthdate DropDownChoice
this can be implementing as a formcomponentpanel that contains 3 drop down choices inside. nothing too complicated, in fact i think there are examples somewhere on the wiki or in the archives of this list. -igor On Fri, Oct 24, 2008 at 8:01 AM, fatefree <[EMAIL PROTECTED]> wrote: > > I'm just curious to hear some thoughts about the usability of selecting your > birthdate on a form. Unfortunately the date picker doesn't seem to be the > best solution because of the year requirement, so that leaves a combo of a > month/day/year drop down choices or a textfield looking for a specific date > format. > > While I would prefer a textfield because its easier to bind a value, and can > be ajax validated immmediately, the disadvantage it has (besides requiring a > specific format) is that different countries have different date formats, so > it might be confusing for an internationlized form. > > Drop downs make it at little easier (but slower) for users, but has some > technical disadvantages. For one its less friendly to use ajax validation > since they need to select all 3 before we should show a validation error. > (An onblur after the first drop down saying the date is invalid doesnt make > much sense) And also we need to bind the values to three different objects > and contruct a date later. Is there any sort of a GroupDropDownChoice that > addresses this like there is for check boxes and radio buttons? I'd be > interested to hear how people have handled something like this > -- > View this message in context: > http://www.nabble.com/Usability-question-for-a-birthdate-DropDownChoice-tp20151779p20151779.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: nested AjaxFormComponentUpdatingBehavior
calling setoutputmarkupid(true) on the datavew is a noop because dataview itself doesnt render. -igor On Fri, Oct 24, 2008 at 8:33 AM, Rutger Jansen <[EMAIL PROTECTED]> wrote: > Hi > > I'm having trouble refreshing a formcomponent with Ajax when it is > nested in another Component which is updated by Ajax. > > My situation is: > I have a large page with a form. The form contains a dataView and the > dataView contains lines (a List) of objects. > In each line I have a few DropDownChoice components. If component A > changes, the choices of component B will change. > This all works perfectly by adding a AjaxFormComponentUpdatingBehavior > on component A and calling setOutputMarkupId(true) on component B. > > Now I also have an option to add a line to the list of objects and I > also added AjaxFormComponentUpdatingBehavior to this > 'add_a_new_line_link' causing the whole dataView to refresh. To have > that working I also call setOutputMarkupId(true) on my dataView. > > But once I've (also) set the OutputMarkupId(true) on the dataView, the > updating of component B after changing component A does not work > anymore, unless I refresh the whole dataView instead of just component > B as I did before. > > So to me it seems it has to do something with the nested > setOutputMarkupId(true) on the dataView and on component B within that > dataview. > > Any ideas? > > Rutger > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to create a calendar - need some guidance
Igor, thanks again for the clue on using GridView, I got it figured out and it works great! I attached the code in case anyone's interested in drawing a basic calendar. It's lean and clean so it's easy to extend. http://www.nabble.com/file/p20153494/Cal.java Cal.java http://www.nabble.com/file/p20153494/Cal.html Cal.html http://www.nabble.com/file/p20153494/DayProvider.java DayProvider.java V. Jenks wrote: > > Hi all. > > I'm trying to build a component-ized calendar that will be the centerpiece > of a new application I'm working on. I built one this morning in JSP and > was able to do it with very little code. I kept it simple and I'm hoping > I can retro-fit the logic into a wicket page cleanly, without too much > trouble. I'm a little stuck because in my JSP, I simply loop through the > days and print until Saturday is reached, then I break to a new table row > and continue. Doing this in Wicket seems tough because if I use a > ListView, I can't be as flexible as far as throwing in a new row while > looping and outputting table cells. > > Here's the rough idea I came up with today in JSP, can someone give me > some pointers? > > <%@ page contentType="text/html" pageEncoding="UTF-8" %> > <%@ page import="java.util.*" %> > "http://www.w3.org/TR/html4/loose.dtd";> > <% > //get parameters to change date > String monthParam = request.getParameter("month"); > String yearParam = request.getParameter("year"); > > //create calendar object > Calendar cal = Calendar.getInstance(); > cal.setFirstDayOfWeek(Calendar.SUNDAY); //set first day to Sunday > > if (monthParam != null) > cal.set(Calendar.MONTH, (Integer.valueOf(monthParam)-1)); > > if (yearParam != null) > cal.set(Calendar.YEAR, Integer.valueOf(yearParam)); > > //get total number of days in month > int numDaysInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH); > > //get current month name in English > String monthName = cal.getDisplayName(Calendar.MONTH, Calendar.LONG, > Locale.ENGLISH); > > //get current year > int year = cal.get(Calendar.YEAR); > > //get array of day names > String[] headers = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; > %> > > > > Calendarama! > > > > > > <%= monthName + " " + year %> > > > > <% > for (int i=0; i<7; i++) > { > %> > <%= headers[i] %> > <% > } > %> > > > > <% > for (int i=1; i<=numDaysInMonth; i++) > { > //re-set calendar day in context of loop > cal.set(Calendar.DAY_OF_MONTH, i); > > //get the day number of the week > int day = cal.get(Calendar.DAY_OF_WEEK); > > //days without numbers count > int blankDays = 0; > > //blank days before 1st of month? > if (i == 1 && day > 1) > { > blankDays = day - i; //get count > > //loop through count and print blank day > for (int x=1; x<=blankDays; x++) > { > %> > > <% > } > } > %> > <%= i %> > <% > if (day == Calendar.SATURDAY) > { > %> > > > <% > } > > //blank days after last day of month? > if (i == numDaysInMonth && day < 7) > { > blankDays = 7 - day; //get count > > //loop through count and print blank day > for (int x=1; x<=blankDays; x++) > { > %> > > <% > } > } > } > %> > > > > > > -- View this message in context: http://www.nabble.com/Trying-to-create-a-calendar---need-some-guidance-tp20138860p20153494.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to create a calendar - need some guidance
you are welcome -igor On Fri, Oct 24, 2008 at 9:38 AM, V. Jenks <[EMAIL PROTECTED]> wrote: > > Igor, thanks again for the clue on using GridView, I got it figured out and > it works great! I attached the code in case anyone's interested in drawing > a basic calendar. It's lean and clean so it's easy to extend. > http://www.nabble.com/file/p20153494/Cal.java Cal.java > http://www.nabble.com/file/p20153494/Cal.html Cal.html > http://www.nabble.com/file/p20153494/DayProvider.java DayProvider.java > > > V. Jenks wrote: >> >> Hi all. >> >> I'm trying to build a component-ized calendar that will be the centerpiece >> of a new application I'm working on. I built one this morning in JSP and >> was able to do it with very little code. I kept it simple and I'm hoping >> I can retro-fit the logic into a wicket page cleanly, without too much >> trouble. I'm a little stuck because in my JSP, I simply loop through the >> days and print until Saturday is reached, then I break to a new table row >> and continue. Doing this in Wicket seems tough because if I use a >> ListView, I can't be as flexible as far as throwing in a new row while >> looping and outputting table cells. >> >> Here's the rough idea I came up with today in JSP, can someone give me >> some pointers? >> >> <%@ page contentType="text/html" pageEncoding="UTF-8" %> >> <%@ page import="java.util.*" %> >> > "http://www.w3.org/TR/html4/loose.dtd";> >> <% >> //get parameters to change date >> String monthParam = request.getParameter("month"); >> String yearParam = request.getParameter("year"); >> >> //create calendar object >> Calendar cal = Calendar.getInstance(); >> cal.setFirstDayOfWeek(Calendar.SUNDAY); //set first day to Sunday >> >> if (monthParam != null) >> cal.set(Calendar.MONTH, (Integer.valueOf(monthParam)-1)); >> >> if (yearParam != null) >> cal.set(Calendar.YEAR, Integer.valueOf(yearParam)); >> >> //get total number of days in month >> int numDaysInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH); >> >> //get current month name in English >> String monthName = cal.getDisplayName(Calendar.MONTH, Calendar.LONG, >> Locale.ENGLISH); >> >> //get current year >> int year = cal.get(Calendar.YEAR); >> >> //get array of day names >> String[] headers = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; >> %> >> >> >> >> Calendarama! >> >> >> >> >> >> <%= monthName + " " + year %> >> >> >> >> <% >> for (int i=0; i<7; i++) >> { >> %> >> <%= headers[i] %> >> <% >> } >> %> >> >> >> >> <% >> for (int i=1; i<=numDaysInMonth; i++) >> { >> //re-set calendar day in context of loop >> cal.set(Calendar.DAY_OF_MONTH, i); >> >> //get the day number of the week >> int day = cal.get(Calendar.DAY_OF_WEEK); >> >> //days without numbers count >> int blankDays = 0; >> >> //blank days before 1st of month? >> if (i == 1 && day > 1) >> { >> blankDays = day - i; //get count >> >> //loop through count and print blank day >> for (int x=1; x<=blankDays; x++) >> { >> %> >> >> <% >> } >> } >> %> >> <%= i %> >> <% >> if (day == Calendar.SATURDAY) >> { >> %> >> >> >> <% >> } >> >> //blank days after last day of month? >> if (i == numDaysInMonth && day < 7) >> { >> blankDays = 7 - day; //get count >> >> //loop through count and print blank day >> for (int x=1; x<=blankDays; x++) >> { >> %> >> >> <% >> } >> } >> } >> %> >> >> >> >> >> >> > > -- > View this message in context: > http://www.nabble.com/Trying-to-create-a-calendar---need-some-guidance-tp20138860p20153494.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ajax does not work in IE6 when using domain name. but works with IP
website runs on apache+resin 3.1.5 and wicket 1.3.3. Load balancer exists. Specifics of the problem are- 1. customer accesses the site from inside their company's network, have a problem. 2. Customer uses IE6. 3. Problem occurs when customer uses domain name. 4. No problem seen when IP address of the website is used. 5. Problem is that none of the ajax pieces works. java class throws an npe for AjaxRequestTarget object. When i view the source code, i do see these lines-
Re: Highlight some words in the markup content
I've got a few embellishments to that idea that others might enjoy. These include the ability to use on non-string properties, and caching the last compiled pattern (maybe uses a bit less CPU than replaceAll each time). protected static class HighlightingModel extends LoadableDetachableModel { private static final long serialVersionUID = 1L; private transient IModel text; private transient IModel searchWord; private transient Pattern lastp; private transient String lastSearch; HighlightingModel(IModel text, IModel searchWord) { this.text = text; this.searchWord = searchWord; } @Override protected String load() { String srch = (String)searchWord.getObject(); Object object = text.getObject(); String txt = ""; if (object != null) { IConverter converter = Application.get().getConverterLocator().getConverter(object.getClass()); txt = converter.convertToString(object, Session.get().getLocale()); } if (srch != null) { Pattern p = null; if (lastp != null && srch.equals(lastSearch) ) p = lastp; else { try { p = Pattern.compile(srch, Pattern.CASE_INSENSITIVE); } catch (PatternSyntaxException e) { if (e.getIndex()>-1) { srch = srch.substring(0, e.getIndex()); try { p = Pattern.compile(srch, Pattern.CASE_INSENSITIVE); } catch (Exception e2) { srch = null; } } else srch = null; } } if (p != null) { Matcher m = p.matcher(txt); return m.replaceFirst("$0"); } } return txt; } @Override protected void onDetach() { super.onDetach(); text = null; searchWord = null; } } -- Jim Pinkham On Thu, Oct 16, 2008 at 3:24 PM, Thomas Singer <[EMAIL PROTECTED]> wrote: > Thanks all. The first tests work fine now, still need to handle the > ignore-case searching... > > Is there anybody else interested in this feature? Then I will try to > prepare the IResponseFilter implementation for public viewing/integration in > Wicket. > > as far as i know the response filter runs within the request cycle and >> request cycle has metadata facility, so >> > > We already make use of RequestCycle.get(), but if you don't work on Wicket > the full day like you, then one forgets such secrets. > > > -- > Cheers, > Tom > > > Igor Vaynberg wrote: > >> as far as i know the response filter runs within the request cycle and >> request cycle has metadata facility, so >> >> -igor >> >> On Wed, Oct 15, 2008 at 10:07 AM, Thomas Singer <[EMAIL PROTECTED]> wrote: >> >> Thanks. But how the filter should know about the request which contains >>> the >>> information about what to highlight? >>> >>> -- >>> Cheers, >>> Tom >>> >>> >>> >>> Igor Vaynberg wrote: >>> >>> iresponsefilter -igor On Wed, Oct 15, 2008 at 8:22 AM, Thomas Singer <[EMAIL PROTECTED]> wrote: OK, this looks trivial, but were should I place this code to replace all > content, no matter whether it comes from a page template, border or > fragment? > > -- > Cheers, > Tom > > > > Martijn Dashorst wrote: > > tekst.replaceAll(searchword, "" + searchword + > >> ""); >> >> label.setEscapeModelStrings(false); >> >> Martijn >> >> On Wed, Oct 15, 2008 at 3:56 PM, Thomas Singer <[EMAIL PROTECTED]> >> wrote: >> >> We are using Wicket as base for our website (www.syntevo.com). We >> have >> >>> a >>> simple search feature on the website, but want to extend it like it >>> is >>> known >>> to work in forums: the searched words should be highlighted. >>> >>> Does someone already has implemented such a feature to surround plain >>> words >>> in the markup by a special tag? >>> >>> -- >>> Cheers, >>> Tom >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >>> - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - >>> To unsubscribe, e-mai
Can you see this mail?
Hi, can at least one list member reply? f(t)
Re: ajax does not work in IE6 when using domain name. but works with IP
there is already a thread posted about this by atrout <[EMAIL PROTECTED]>. thanks for spamming the list. -igor On Fri, Oct 24, 2008 at 10:03 AM, vkoratek <[EMAIL PROTECTED]> wrote: > > website runs on apache+resin 3.1.5 and wicket 1.3.3. Load balancer exists. > > Specifics of the problem are- > 1. customer accesses the site from inside their company's network, have a > problem. > 2. Customer uses IE6. > 3. Problem occurs when customer uses domain name. > 4. No problem seen when IP address of the website is used. > 5. Problem is that none of the ajax pieces works. java class throws an npe > for AjaxRequestTarget object. > > When i view the source code, i do see these lines- >
Re: Understanding JS Error on Wicket-Framewor (Ajax + F5)
What is that supposed to be? Custom javascript? -Matej On Fri, Oct 24, 2008 at 6:02 PM, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote: > Hi all. I am getting the following error when refreshing (CTRL+R) my page. > I work entirely with ajax except for the first-time loading of the page. > After that it is all panel replacements. > > Everything kind of work but I have one formatting component that don't, and > as a hint I get this error (on firebug): > > > document.body is null > addElement()(" style='border: 1px solid black; padding: 1px; background-color: #eee'> style='overflow: auto; width: 100%'> href='javascript:WicketAjaxDebug.switchScrollLock()' > id='wicketAjaxDebugScrollLock' style='color:blue' > onfocus='this.blur();'>scroll lock | href='javascript:WicketAjaxDebug.clearLog()' style='color:blue'>clear | > style='color:blue'>close id='wicketAjaxDebugWindowDragHandle' style='padding: 0.2em; > background-color: gray; color: white; padding-left: 1em; margin-right: 14em; > cursor: move;'> Wicket Ajax Debug Window (drag me here) id='wicketAjaxDebugWindowLogId' style='width: 100%; height: 200px; > background-color: white; color: black; overflow: auto; white-space: nowrap'> > > id='wicketAjaxDebugWindowResizeHandle'> id='wicketDebugLink' style='position:fixed; right: 10px; bottom: 10px; > z-index:100; padding-top: 0.3em; padding-bottom: 0.3em; line-height: > normal ; _padding-top: 0em; width: 12em; border: 1px solid black; > background-color: white; text-align: center; opacity: 0.7; color: blue;' > href='javascript:WicketAjaxDebug.showDebugWindow()'>WICKET AJAX > DEBUG")wicket-a...-debug.js > (line 207) > init()()wicket-a...-debug.js (line 137) > log()("getGERMANItems()", "INFO: ")wicket-a...-debug.js (line 49) > log("getGERMANItems()", "INFO: ")LcUtils_de_CH.js (line 3) > logInformation("getGERMANItems()")LcUtils_de_CH.js (line 10) > getGERMANItems()()LcDateTy..._de_CH.js (line 2) > LcDateTypesEnum_de_CH.js()()LcDateTy..._de_CH.js (line 182) > document.body.appendChild(element); > > > Any clue to what could be happening that when page is refreshed, > document.body returns null? > > At first this error was appearing when uploading a file (hence posting and > refreshing window). > > f(t) > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can you see this mail?
great. ^_^ thx, f(t) 2008/10/24 Cristi Manole <[EMAIL PROTECTED]> > yup. > > > On Fri, Oct 24, 2008 at 2:08 PM, Francisco Diaz Trepat - gmail < > [EMAIL PROTECTED]> wrote: > >> Hi, can at least one list member reply? >> f(t) >> > >
Re: Understanding JS Error on Wicket-Framewor (Ajax + F5)
WicketAjaxDebug.log(bla); On Fri, Oct 24, 2008 at 2:25 PM, Matej Knopp <[EMAIL PROTECTED]> wrote: > What is that supposed to be? Custom javascript? > > -Matej > > On Fri, Oct 24, 2008 at 6:02 PM, Francisco Diaz Trepat - gmail > <[EMAIL PROTECTED]> wrote: > > Hi all. I am getting the following error when refreshing (CTRL+R) my > page. > > I work entirely with ajax except for the first-time loading of the page. > > After that it is all panel replacements. > > > > Everything kind of work but I have one formatting component that don't, > and > > as a hint I get this error (on firebug): > > > > > > document.body is null > > addElement()(" > > style='border: 1px solid black; padding: 1px; background-color: #eee'> > > style='overflow: auto; width: 100%'> > href='javascript:WicketAjaxDebug.switchScrollLock()' > > id='wicketAjaxDebugScrollLock' style='color:blue' > > onfocus='this.blur();'>scroll lock | > href='javascript:WicketAjaxDebug.clearLog()' style='color:blue'>clear > | > > > style='color:blue'>close > id='wicketAjaxDebugWindowDragHandle' style='padding: 0.2em; > > background-color: gray; color: white; padding-left: 1em; margin-right: > 14em; > > cursor: move;'> Wicket Ajax Debug Window (drag me here) > id='wicketAjaxDebugWindowLogId' style='width: 100%; height: 200px; > > background-color: white; color: black; overflow: auto; white-space: > nowrap'> > > > > > id='wicketAjaxDebugWindowResizeHandle'> > > id='wicketDebugLink' style='position:fixed; right: 10px; bottom: 10px; > > z-index:100; padding-top: 0.3em; padding-bottom: 0.3em; line-height: > > normal ; _padding-top: 0em; width: 12em; border: 1px solid black; > > background-color: white; text-align: center; opacity: 0.7; color: blue;' > > href='javascript:WicketAjaxDebug.showDebugWindow()'>WICKET AJAX > > DEBUG")wicket-a...-debug.js > > (line 207) > > init()()wicket-a...-debug.js (line 137) > > log()("getGERMANItems()", "INFO: ")wicket-a...-debug.js (line 49) > > log("getGERMANItems()", "INFO: ")LcUtils_de_CH.js (line 3) > > logInformation("getGERMANItems()")LcUtils_de_CH.js (line 10) > > getGERMANItems()()LcDateTy..._de_CH.js (line 2) > > LcDateTypesEnum_de_CH.js()()LcDateTy..._de_CH.js (line 182) > > document.body.appendChild(element); > > > > > > Any clue to what could be happening that when page is refreshed, > > document.body returns null? > > > > At first this error was appearing when uploading a file (hence posting > and > > refreshing window). > > > > f(t) > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: ajax does not work in IE6 when using domain name. but works with IP
Igor: Yes this is the same issue as posted by Anna. but I am only writing this becos the suggestion of using on the home page, getSession().bind() did not make the error go away... we still see the js error of "Inavlid Chracter" line 2 . Ajax does not work. Any alternative suggestion is greatly appreciated. Thanks igor.vaynberg wrote: > > there is already a thread posted about this by atrout > <[EMAIL PROTECTED]>. thanks for spamming the list. > > -igor > > On Fri, Oct 24, 2008 at 10:03 AM, vkoratek <[EMAIL PROTECTED]> wrote: >> >> website runs on apache+resin 3.1.5 and wicket 1.3.3. Load balancer >> exists. >> >> Specifics of the problem are- >> 1. customer accesses the site from inside their company's network, have a >> problem. >> 2. Customer uses IE6. >> 3. Problem occurs when customer uses domain name. >> 4. No problem seen when IP address of the website is used. >> 5. Problem is that none of the ajax pieces works. java class throws an >> npe >> for AjaxRequestTarget object. >> >> When i view the source code, i do see these lines- >>
No session requested when playing MP3 resource link
Hi, I have a fairly simple wicket page that displays a list of links that are DynamicWebResource links to MP3 streams. This works fine on most platforms I am running on (the link either plays in the browser or media player opens to play the link) but on Android I find that when the media player opens it makes requests on a different session and by tracing back through the code I see that the requestedSessionID on the request is null. Is there a way to put the jsessionId on the ResourceLink URL? might that possibly allow wicket to pick up the correct session? Or any other suggestions very welcome Cheers :) -- View this message in context: http://www.nabble.com/No-session-requested-when-playing-MP3-resource-link-tp20154778p20154778.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket modals are not working in IE8 and Google chrome browsers
Hi, I’m using wicket for last 5+ months in my current project. We are planning to go live by mid Nov with a beta version. Yesterday our client came up with a strange complain, wicket modals, we are currently using for pop-ups, are not at all working in IE8 and Google chrome browsers. So, I verified it and yes, modals are not really opening up! I know both are still in beta stage, but is there any patch/work around ? Google chrome we can ignore right now but probably can’t bypass IE8 as new Vista Laptops ship with IE8 (as client told us. Not verified yet though) Warm Regards, Anirban Basak Ph : 91 33 2357 7177 Extn: 277
Re: ajax does not work in IE6 when using domain name. but works with IP
yeah? why did you not mention that in your email, and why did you start a new thread instead of continuing the existing one? -igor On Fri, Oct 24, 2008 at 10:44 AM, vkoratek <[EMAIL PROTECTED]> wrote: > > Igor: > Yes this is the same issue as posted by Anna. but I am only writing this > becos the suggestion of using on the home page, getSession().bind() did not > make the error go away... > > we still see the js error of "Inavlid Chracter" line 2 . Ajax does not work. > > Any alternative suggestion is greatly appreciated. > Thanks > > > igor.vaynberg wrote: >> >> there is already a thread posted about this by atrout >> <[EMAIL PROTECTED]>. thanks for spamming the list. >> >> -igor >> >> On Fri, Oct 24, 2008 at 10:03 AM, vkoratek <[EMAIL PROTECTED]> wrote: >>> >>> website runs on apache+resin 3.1.5 and wicket 1.3.3. Load balancer >>> exists. >>> >>> Specifics of the problem are- >>> 1. customer accesses the site from inside their company's network, have a >>> problem. >>> 2. Customer uses IE6. >>> 3. Problem occurs when customer uses domain name. >>> 4. No problem seen when IP address of the website is used. >>> 5. Problem is that none of the ajax pieces works. java class throws an >>> npe >>> for AjaxRequestTarget object. >>> >>> When i view the source code, i do see these lines- >>>
Re: No session requested when playing MP3 resource link
the jsessionid should be there only during the first request. after the first request the container switches to using the session cookie. is the cookie set on the android end? is it being sent back? -igor On Fri, Oct 24, 2008 at 10:48 AM, chris888 <[EMAIL PROTECTED]> wrote: > > Hi, > I have a fairly simple wicket page that displays a list of links that are > DynamicWebResource links to MP3 streams. This works fine on most platforms I > am running on (the link either plays in the browser or media player opens to > play the link) but on Android I find that when the media player opens it > makes requests on a different session and by tracing back through the code I > see that the requestedSessionID on the request is null. > > Is there a way to put the jsessionId on the ResourceLink URL? might that > possibly allow wicket to pick up the correct session? > > Or any other suggestions very welcome > > Cheers :) > > > -- > View this message in context: > http://www.nabble.com/No-session-requested-when-playing-MP3-resource-link-tp20154778p20154778.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket modals are not working in IE8 and Google chrome browsers
With IE8? That's a bad joke. The browser is nowhere near being usable even in beta2. -Matej 2008/10/24 Anirban Basak <[EMAIL PROTECTED]>: > Hi, > > > > I'm using wicket for last 5+ months in my current project. We are planning > to go live by mid Nov with a beta version. Yesterday our client came up with > a strange complain, wicket modals, we are currently using for pop-ups, are > not at all working in IE8 and Google chrome browsers. So, I verified it and > yes, modals are not really opening up! I know both are still in beta stage, > but is there any patch/work around ? > > > > Google chrome we can ignore right now but probably can't bypass IE8 as new > Vista Laptops ship with IE8 (as client told us. Not verified yet though) > > > > > > Warm Regards, > > Anirban Basak > > Ph : 91 33 2357 7177 Extn: 277 > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No session requested when playing MP3 resource link
thanks for the lightning fast reply I'm guessing that the media player does not know about the browsers cookie so cant send it. How can I tell for sure if it is or not? On the browser requests object I see that a session id is requested and requestedSessionCookie is true When the media player requests they are null and false igor.vaynberg wrote: > > the jsessionid should be there only during the first request. after > the first request the container switches to using the session cookie. > is the cookie set on the android end? is it being sent back? > > -igor > > On Fri, Oct 24, 2008 at 10:48 AM, chris888 <[EMAIL PROTECTED]> > wrote: >> >> Hi, >> I have a fairly simple wicket page that displays a list of links that are >> DynamicWebResource links to MP3 streams. This works fine on most >> platforms I >> am running on (the link either plays in the browser or media player opens >> to >> play the link) but on Android I find that when the media player opens it >> makes requests on a different session and by tracing back through the >> code I >> see that the requestedSessionID on the request is null. >> >> Is there a way to put the jsessionId on the ResourceLink URL? might that >> possibly allow wicket to pick up the correct session? >> >> Or any other suggestions very welcome >> >> Cheers :) >> >> >> -- >> View this message in context: >> http://www.nabble.com/No-session-requested-when-playing-MP3-resource-link-tp20154778p20154778.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/No-session-requested-when-playing-MP3-resource-link-tp20154778p20155020.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No session requested when playing MP3 resource link
well, what you can do is disable session cookie tracking on your servlet container. that way sessionid will be written into every url. -igor On Fri, Oct 24, 2008 at 11:00 AM, chris888 <[EMAIL PROTECTED]> wrote: > > thanks for the lightning fast reply > > I'm guessing that the media player does not know about the browsers cookie > so cant send it. > How can I tell for sure if it is or not? > > On the browser requests object I see that a session id is requested and > requestedSessionCookie is true > When the media player requests they are null and false > > > > igor.vaynberg wrote: >> >> the jsessionid should be there only during the first request. after >> the first request the container switches to using the session cookie. >> is the cookie set on the android end? is it being sent back? >> >> -igor >> >> On Fri, Oct 24, 2008 at 10:48 AM, chris888 <[EMAIL PROTECTED]> >> wrote: >>> >>> Hi, >>> I have a fairly simple wicket page that displays a list of links that are >>> DynamicWebResource links to MP3 streams. This works fine on most >>> platforms I >>> am running on (the link either plays in the browser or media player opens >>> to >>> play the link) but on Android I find that when the media player opens it >>> makes requests on a different session and by tracing back through the >>> code I >>> see that the requestedSessionID on the request is null. >>> >>> Is there a way to put the jsessionId on the ResourceLink URL? might that >>> possibly allow wicket to pick up the correct session? >>> >>> Or any other suggestions very welcome >>> >>> Cheers :) >>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/No-session-requested-when-playing-MP3-resource-link-tp20154778p20154778.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/No-session-requested-when-playing-MP3-resource-link-tp20154778p20155020.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception Forbidden 403
hi All, When i deployed my application on tomcat it worked fine but when the same is deployed in weblogic 10.0 i got following exception: Error 403--Forbidden >From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.4.4 403 Forbidden The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable. If any one have solution plz let know. Advance thanks -- View this message in context: http://www.nabble.com/Exception-Forbidden-403-tp20155378p20155378.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redirect to a page on a new browser window
In a non-Wicket application, I had a page for report parameters editing and an execute button. Parameter validation was is Javascript, and I want my report opening on a new browser window. I done it with a target="_blank"> tag. Now with Wicket, I succeeded done the same thing but I have problem with the browser preventing the (bad, in its opinion) popup from opening. My form has a feedbackpanel, so I believe I can't use the same technique. I have created an AjaxButton on it, and on its onSubmit I call target.appendJavascript("window.open(...)"). Do you see a way to do it without the browser interfere in the new window opening? Thanks, Adriano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception Forbidden 403
what do your logs say? -igor On Fri, Oct 24, 2008 at 11:22 AM, Chinnari <[EMAIL PROTECTED]> wrote: > > hi All, > > When i deployed my application on tomcat it worked fine but when the same is > deployed in weblogic 10.0 i got following exception: > > Error 403--Forbidden > From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: > 10.4.4 403 Forbidden > > The server understood the request, but is refusing to fulfill it. > Authorization will not help and the request SHOULD NOT be repeated. If the > request method was not HEAD and the server wishes to make public why the > request has not been fulfilled, it SHOULD describe the reason for the > refusal in the entity. This status code is commonly used when the server > does not wish to reveal exactly why the request has been refused, or when no > other response is applicable. > > If any one have solution plz let know. > > Advance thanks > -- > View this message in context: > http://www.nabble.com/Exception-Forbidden-403-tp20155378p20155378.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ajax does not work in IE6 when using domain name. but works with IP
I agree. I should have double checked prior to posting . I totally understand your concerns about having duplicate threads about the same subject.. igor.vaynberg wrote: > > yeah? why did you not mention that in your email, and why did you > start a new thread instead of continuing the existing one? > > -igor > > On Fri, Oct 24, 2008 at 10:44 AM, vkoratek <[EMAIL PROTECTED]> wrote: >> >> Igor: >> Yes this is the same issue as posted by Anna. but I am only writing this >> becos the suggestion of using on the home page, getSession().bind() did >> not >> make the error go away... >> >> we still see the js error of "Inavlid Chracter" line 2 . Ajax does not >> work. >> >> Any alternative suggestion is greatly appreciated. >> Thanks >> >> >> igor.vaynberg wrote: >>> >>> there is already a thread posted about this by atrout >>> <[EMAIL PROTECTED]>. thanks for spamming the list. >>> >>> -igor >>> >>> On Fri, Oct 24, 2008 at 10:03 AM, vkoratek <[EMAIL PROTECTED]> wrote: website runs on apache+resin 3.1.5 and wicket 1.3.3. Load balancer exists. Specifics of the problem are- 1. customer accesses the site from inside their company's network, have a problem. 2. Customer uses IE6. 3. Problem occurs when customer uses domain name. 4. No problem seen when IP address of the website is used. 5. Problem is that none of the ajax pieces works. java class throws an npe for AjaxRequestTarget object. When i view the source code, i do see these lines-
RE: Wicket modals are not working in IE8 and Google chrome browsers
My query was can anybody help me out to make the wicket modals work in IE8? Personally I don't like IE but people already started using IE8. Warm Regards, Anirban Basak Ph : 91 33 2357 7177 Extn: 277 -Original Message- From: Matej Knopp [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2008 11:22 PM To: users@wicket.apache.org Subject: Re: Wicket modals are not working in IE8 and Google chrome browsers With IE8? That's a bad joke. The browser is nowhere near being usable even in beta2. -Matej 2008/10/24 Anirban Basak <[EMAIL PROTECTED]>: > Hi, > > > > I'm using wicket for last 5+ months in my current project. We are planning > to go live by mid Nov with a beta version. Yesterday our client came up with > a strange complain, wicket modals, we are currently using for pop-ups, are > not at all working in IE8 and Google chrome browsers. So, I verified it and > yes, modals are not really opening up! I know both are still in beta stage, > but is there any patch/work around ? > > > > Google chrome we can ignore right now but probably can't bypass IE8 as new > Vista Laptops ship with IE8 (as client told us. Not verified yet though) > > > > > > Warm Regards, > > Anirban Basak > > Ph : 91 33 2357 7177 Extn: 277 > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.8.2/1743 - Release Date: 10/24/2008 8:33 AM No virus found in this outgoing message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.8.3/1744 - Release Date: 10/24/2008 6:08 PM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]