Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?
[X] - YES - I would like to see at least the most used Wicket Stuff projects structured so that they mirror Wicket, and a release is produced for each Wicket release. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel's read more link
I found that every time link is clicked ReadMoreWicketPanel-s are created again because they are populated by ListView in WebPage. Does it mean that I must put my ReadMoreWicketPanel's instances in session? On Tue, Nov 25, 2008 at 2:48 PM, Anton Veretennikov [EMAIL PROTECTED] wrote: Hi, I want to make a read more link that will make visible initially hidden label. Running debugger I found that my Panel's constructor is called every time I click this link. So it again invisible. What is wrong? public class ReadMoreWicketPanel extends WicketPanel { private Label moreTextLabel; public ReadMoreWicketPanel(String id, String title, boolean escapeTitle, String text, boolean escapeText, String moreText, boolean escapeMoreText) { super(id, title, escapeTitle, text, escapeText); add(new Link(readMoreLink) { @Override public void onClick() { boolean is=moreTextLabel.isVisible(); moreTextLabel.setVisible(!is); } }); moreTextLabel=new Label(readMoreText,moreText); moreTextLabel.setEscapeModelStrings(escapeMoreText); moreTextLabel.setVisible(false); add(moreTextLabel); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Howto customize logged message of formcomponent validation error?
Hi, i checked my logs and found this message: 2008-11-25 09:10:09.331 WARN FormComponent: Could not locate error message for component: [EMAIL PROTECTED]:mcPassword:frmPassword:passwordRetype and error: [ValidationError message =[null], keys=[passwordRetypeMismatch, LostPasswordConfirmationPanel$PasswordSameValidator], variables=[[input0=],[input1=],[label0=password],[name1=passwordRetype],[label1=passwordRetype],[na me0=password]]]. Tried keys: passwordRetype.passwordRetypeMismatch, passwordRetypeMismatch, passwordRetype.LostPasswordConfirmationPanel$PasswordSameValidator, LostPasswordConfirmationPanel$PasswordSa meValidator. My problem is that the content of the password fields are displayed without encryption. I encrypt it while setting the value to model. That works. But how can i avoid that the texts are displayed that way. In AbstractFormValidator there are many error(...) methods. Which do i have to override or is there a setting? Thanks for your help Per -- View this message in context: http://www.nabble.com/Howto-customize-logged-message-of-formcomponent-validation-error--tp20676860p20676860.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: Panel's read more link
Anton Veretennikov wrote: I found that every time link is clicked ReadMoreWicketPanel-s are created again because they are populated by ListView in WebPage. Did you try ListView.setReuseItems(true);? Maybe that can help Cheers Per -- View this message in context: http://www.nabble.com/Panel%27s-%22read-more%22-link-tp20676461p20676941.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: Panel's read more link
Anton Veretennikov wrote: Thank you! Very usefull thing! No problem. The explanation on that issue is in the list and i think there is a note in the wiki. Maybe this thread gives you a hint http://www.nabble.com/ListView-%2B-reusing-Items-td14918862.html#a14924868 http://www.nabble.com/ListView-%2B-reusing-Items-td14918862.html#a14924868 -- View this message in context: http://www.nabble.com/Panel%27s-%22read-more%22-link-tp20676461p20677140.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: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?
[X] - YES - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel's read more link
Anton Veretennikov wrote: Thank you! Very usefull thing! No problem. The explanation on that issue is in the list and i think there is a note in the wiki. Maybe this thread gives you a hint http://www.nabble.com/ListView-%2B-reusing-Items-td14918862.html#a14924868 I did not scroll doc to see this big WARNING :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?
[X] - YES Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Tue, Nov 25, 2008 at 10:51 AM, Björn-Peter Tietjens [EMAIL PROTECTED]wrote: [X] - YES - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AjaxSelfUpdatingTimerBehavior not updating
Hi The AjaxSelfUpdatingTimerBehavior does not update/refresh the content. I have a WebPage with an AjaxLink and a WebMarkupContainer that contains default ListView. WebPage |_AjaxLink |_WebMarkupContainer |_ListView When the AjaxLink is clicked, the ListView is replaced by an AjaxTabbedPanel. I do this by repainting the WebMarkupContainer in the AjaxLink.onClick method. Here is the overridden onClick Method: @Override public void onClick(AjaxRequestTarget target) { ArrayList tabs = new ArrayList(); AbstractTab tab1 = new AbstractTab(new Model(Data)) { public Panel getPanel(String panelId) { return new MyTabPanel(panelId); } }; tabs.add(tab1); AjaxTabbedPanel tabsPanel = new AjaxTabbedPanel(thetabs, tabs); container.replace(tabsPanel); container.setOutputMarkupId(true); container.setRenderBodyOnly(false); target.addComponent(container); } The AjaxSelfUpdatingTimerBehavior is added in the MyTabPanel constructor as: // timed updater add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(10))); What am I doing wrong? Yazeed Isaacs - Java Developer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOLUTION:Hibernate Lazy initialazation issues and multi page wizard!
I guess not much if you do the initialize, but it has some issues with collections (like you need to add to collections instead of setting them I think). And you will end up doing initialize anyhow so using clone and a simple compound property model are just as fine plus more simple.. James Carman wrote: So, what's wrong with using shadow models and letting them eventually write into the real model (which is a LDM) at the very end? On Tue, Nov 25, 2008 at 2:25 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi Guys I've been having a little trouble with hibernate and a multipage wizard, I finally cracked the nut. And heres my solution: In the link that refers to the wizard use a loadable detachable model.. Onclick you initialize all proper collections and CLONE the object, after the wizard are done you merge the clone.. codesniplet: LinkEvent linkEdit = new LinkEvent(edit, item.getModel()) { @Override public void onClick() { LoadableDetachableEventModel model=new LoadableDetachableEventModel(eventRepository,this.getModelObject()); Hibernate.initialize(((Event)model.getObject()) .getLinks()); Hibernate.initialize(((Event)model.getObject()) .getDateStart()); Hibernate.initialize(((Event)model.getObject()) .getDateEnd()); Hibernate.initialize(((Event)model.getObject()) .getTags()); ModelEvent eventModel = new ModelEvent( (Event) SerializationHelper.clone((Event) model.getObject())); CompoundPropertyModelEvent e = new CompoundPropertyModelEvent( eventModel); EventWizard newWizard = new EventWizard(eventWizard .getId(), e) { @Override public void onFinish() { eventRepository.update(eventModel.getObject()); eventWizard.setVisible(false); } }; newWizard.setVisible(true); eventWizard.getPage().addOrReplace(newWizard); eventWizard = newWizard; } }; -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - 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] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOLUTION:Hibernate Lazy initialazation issues and multi page wizard!
I don't typically use CompoundPropertyModel (we've discussed this offline before) because it's too magicy. I find that explicitly creating my models helps me keep track of what's going on better. I do use PropertyModels, though. I just like to explicitly know the base that I'm dealing with when I'm using property models. On Tue, Nov 25, 2008 at 6:50 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I guess not much if you do the initialize, but it has some issues with collections (like you need to add to collections instead of setting them I think). And you will end up doing initialize anyhow so using clone and a simple compound property model are just as fine plus more simple.. James Carman wrote: So, what's wrong with using shadow models and letting them eventually write into the real model (which is a LDM) at the very end? On Tue, Nov 25, 2008 at 2:25 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi Guys I've been having a little trouble with hibernate and a multipage wizard, I finally cracked the nut. And heres my solution: In the link that refers to the wizard use a loadable detachable model.. Onclick you initialize all proper collections and CLONE the object, after the wizard are done you merge the clone.. codesniplet: LinkEvent linkEdit = new LinkEvent(edit, item.getModel()) { @Override public void onClick() { LoadableDetachableEventModel model=new LoadableDetachableEventModel(eventRepository,this.getModelObject()); Hibernate.initialize(((Event)model.getObject()) .getLinks()); Hibernate.initialize(((Event)model.getObject()) .getDateStart()); Hibernate.initialize(((Event)model.getObject()) .getDateEnd()); Hibernate.initialize(((Event)model.getObject()) .getTags()); ModelEvent eventModel = new ModelEvent( (Event) SerializationHelper.clone((Event) model.getObject())); CompoundPropertyModelEvent e = new CompoundPropertyModelEvent( eventModel); EventWizard newWizard = new EventWizard(eventWizard .getId(), e) { @Override public void onFinish() { eventRepository.update(eventModel.getObject()); eventWizard.setVisible(false); } }; newWizard.setVisible(true); eventWizard.getPage().addOrReplace(newWizard); eventWizard = newWizard; } }; -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - 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] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - 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: SOLUTION:Hibernate Lazy initialazation issues and multi page wizard!
So, what's wrong with using shadow models and letting them eventually write into the real model (which is a LDM) at the very end? On Tue, Nov 25, 2008 at 2:25 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi Guys I've been having a little trouble with hibernate and a multipage wizard, I finally cracked the nut. And heres my solution: In the link that refers to the wizard use a loadable detachable model.. Onclick you initialize all proper collections and CLONE the object, after the wizard are done you merge the clone.. codesniplet: LinkEvent linkEdit = new LinkEvent(edit, item.getModel()) { @Override public void onClick() { LoadableDetachableEventModel model=new LoadableDetachableEventModel(eventRepository,this.getModelObject()); Hibernate.initialize(((Event)model.getObject()) .getLinks()); Hibernate.initialize(((Event)model.getObject()) .getDateStart()); Hibernate.initialize(((Event)model.getObject()) .getDateEnd()); Hibernate.initialize(((Event)model.getObject()) .getTags()); ModelEvent eventModel = new ModelEvent( (Event) SerializationHelper.clone((Event) model.getObject())); CompoundPropertyModelEvent e = new CompoundPropertyModelEvent( eventModel); EventWizard newWizard = new EventWizard(eventWizard .getId(), e) { @Override public void onFinish() { eventRepository.update(eventModel.getObject()); eventWizard.setVisible(false); } }; newWizard.setVisible(true); eventWizard.getPage().addOrReplace(newWizard); eventWizard = newWizard; } }; -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - 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: SOLUTION:Hibernate Lazy initialazation issues and multi page wizard!
Yup, two angles on the same stuff. It does not change the clone / initialize technique. I guess I could put in a wiki tip on this? James Carman wrote: I don't typically use CompoundPropertyModel (we've discussed this offline before) because it's too magicy. I find that explicitly creating my models helps me keep track of what's going on better. I do use PropertyModels, though. I just like to explicitly know the base that I'm dealing with when I'm using property models. On Tue, Nov 25, 2008 at 6:50 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I guess not much if you do the initialize, but it has some issues with collections (like you need to add to collections instead of setting them I think). And you will end up doing initialize anyhow so using clone and a simple compound property model are just as fine plus more simple.. James Carman wrote: So, what's wrong with using shadow models and letting them eventually write into the real model (which is a LDM) at the very end? On Tue, Nov 25, 2008 at 2:25 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi Guys I've been having a little trouble with hibernate and a multipage wizard, I finally cracked the nut. And heres my solution: In the link that refers to the wizard use a loadable detachable model.. Onclick you initialize all proper collections and CLONE the object, after the wizard are done you merge the clone.. codesniplet: LinkEvent linkEdit = new LinkEvent(edit, item.getModel()) { @Override public void onClick() { LoadableDetachableEventModel model=new LoadableDetachableEventModel(eventRepository,this.getModelObject()); Hibernate.initialize(((Event)model.getObject()) .getLinks()); Hibernate.initialize(((Event)model.getObject()) .getDateStart()); Hibernate.initialize(((Event)model.getObject()) .getDateEnd()); Hibernate.initialize(((Event)model.getObject()) .getTags()); ModelEvent eventModel = new ModelEvent( (Event) SerializationHelper.clone((Event) model.getObject())); CompoundPropertyModelEvent e = new CompoundPropertyModelEvent( eventModel); EventWizard newWizard = new EventWizard(eventWizard .getId(), e) { @Override public void onFinish() { eventRepository.update(eventModel.getObject()); eventWizard.setVisible(false); } }; newWizard.setVisible(true); eventWizard.getPage().addOrReplace(newWizard); eventWizard = newWizard; } }; -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - 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] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - 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] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NoSuchMethodError isEnabledInHierarchy() with DatePicker
The 1.4-SNAPSHOT version DatePicker seems to have problem with isEnabledInHierarchy(). Does anybody know how to fix this? Thanks, Kaspar -- javax.servlet.ServletException: Filter execution threw an exception org .icarbasel .knowledgecenter .wicket.infrastructure.EncodingFilter.doFilter(EncodingFilter.java:37) root cause java.lang.NoSuchMethodError: org.apache.wicket.Component.isEnabledInHierarchy()Z org .apache .wicket.extensions.yui.calendar.DatePicker.isEnabled(DatePicker.java: 675) org.apache.wicket.Component.isBehaviorAccepted(Component.java: 3734) org.apache.wicket.Component.renderHead(Component.java:2649) org.apache.wicket.markup.html.internal.HtmlHeaderContainer $1.component(HtmlHeaderContainer.java:223) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java: 859) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java: 874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java: 874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java: 874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java: 874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java: 874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java: 874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java: 874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java: 899) org .apache .wicket .markup .html .internal .HtmlHeaderContainer.renderHeaderSections(HtmlHeaderContainer.java: 214) org .apache .wicket .markup .html .internal .HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:138) org.apache.wicket.Component.renderComponent(Component.java:2564) org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1504) org.apache.wicket.Component.render(Component.java:2400) org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:232) org .apache .wicket .markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java: 78) org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java: 1414) org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java: 1520) org.apache.wicket.Page.onRender(Page.java:1501) org.apache.wicket.Component.render(Component.java:2400) org.apache.wicket.Page.renderPage(Page.java:905) org .apache .wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java: 166) org .apache .wicket .request .target.component.PageRequestTarget.respond(PageRequestTarget.java:58) org .apache .wicket .request .AbstractRequestCycleProcessor .respond(AbstractRequestCycleProcessor.java:104) org .apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java: 1179) org.apache.wicket.RequestCycle.step(RequestCycle.java:1250) org.apache.wicket.RequestCycle.steps(RequestCycle.java:1351) org.apache.wicket.RequestCycle.request(RequestCycle.java:497) org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java: 444) org .apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java: 282) org .icarbasel .knowledgecenter .wicket .infrastructure .KnowledgeCenterFilter.doFilter(KnowledgeCenterFilter.java:51) org .icarbasel .knowledgecenter .wicket.infrastructure.EncodingFilter.doFilter(EncodingFilter.java:37) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NoSuchMethodError isEnabledInHierarchy() with DatePicker
Maybe this is related to this commit http://svn.apache.org/viewvc?view=revrevision=711923 see http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/Component.java?r1=711923r2=711922pathrev=711923 It looks like your core wicket jar is not in synchrony your date-picker snapshot... Ernesto On Tue, Nov 25, 2008 at 2:23 PM, Kaspar Fischer [EMAIL PROTECTED]wrote: The 1.4-SNAPSHOT version DatePicker seems to have problem with isEnabledInHierarchy(). Does anybody know how to fix this? Thanks, Kaspar -- javax.servlet.ServletException: Filter execution threw an exception org.icarbasel.knowledgecenter.wicket.infrastructure.EncodingFilter.doFilter(EncodingFilter.java:37) root cause java.lang.NoSuchMethodError: org.apache.wicket.Component.isEnabledInHierarchy()Z org.apache.wicket.extensions.yui.calendar.DatePicker.isEnabled(DatePicker.java:675) org.apache.wicket.Component.isBehaviorAccepted(Component.java:3734) org.apache.wicket.Component.renderHead(Component.java:2649) org.apache.wicket.markup.html.internal.HtmlHeaderContainer$1.component(HtmlHeaderContainer.java:223) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:859) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:874) org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:899) org.apache.wicket.markup.html.internal.HtmlHeaderContainer.renderHeaderSections(HtmlHeaderContainer.java:214) org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:138) org.apache.wicket.Component.renderComponent(Component.java:2564) org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1504) org.apache.wicket.Component.render(Component.java:2400) org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:232) org.apache.wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:78) org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414) org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1520) org.apache.wicket.Page.onRender(Page.java:1501) org.apache.wicket.Component.render(Component.java:2400) org.apache.wicket.Page.renderPage(Page.java:905) org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:166) org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58) org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1179) org.apache.wicket.RequestCycle.step(RequestCycle.java:1250) org.apache.wicket.RequestCycle.steps(RequestCycle.java:1351) org.apache.wicket.RequestCycle.request(RequestCycle.java:497) org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444) org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) org.icarbasel.knowledgecenter.wicket.infrastructure.KnowledgeCenterFilter.doFilter(KnowledgeCenterFilter.java:51) org.icarbasel.knowledgecenter.wicket.infrastructure.EncodingFilter.doFilter(EncodingFilter.java:37) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SpringOne America 2008 in Hollywood, FL
A colleague and I are attending the SpringOne America 2008 conference next week in Hollywood, FL. Will any fellow Wicketeers be attending? -- View this message in context: http://www.nabble.com/SpringOne-America-2008-in-Hollywood%2C-FL-tp20681679p20681679.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: ModalWindow and page serialization in 1.4RC1
Does your page inside modal window contain reference to outer page? -Matej On Tue, Nov 25, 2008 at 1:43 PM, Stefan Lindner [EMAIL PROTECTED] wrote: I have a ModalWindow with a page inside it (constructed via modalWindow.setPageCreator). The page contains a lot of AjaxButtons etc. If the content page is constructed as a stateless page (new MyPage() without parameters) the page (content of modal window) gets Serialized on every klick onto any AjaxButton. OK. If the content page is NOT constructed as a stateless page (new MyPage(someString) WITH parameters) the page (content of modal window) AND the content of all underlying pages gets Serialized on every klick onto any AjaxButton. Is this the intended behavior? Is there a trick to avoid serializing all the content of pages below the modal window? If it is not the intended behavior, I will create a simple testcase. This is a problem for us because the underlying pages contain much data und the ModalWindow slows down in speed. Stefan - 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]
SpringOne America 2008 in Hollywood, FL
A colleague and I will be attending the SpringOne America 2008 next week in Hollywood, FL. Will any fellow Wicketeers be there as well? Steve -- View this message in context: http://www.nabble.com/SpringOne-America-2008-in-Hollywood%2C-FL-tp20681833p20681833.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]
onLoad javascript event with Markup inheritance
Hi, I use Markup inheritance in my site in order to keep common logic in the base page. I would like my child pages to do certain javascript actions when they are loaded. I try to define the the javascript on the childs body (between the wicket:extend and /wicket:extend) but I don't see them in the generated page (the base + child page). Any Idea how to generate onLoad javascript action for child page? -- View this message in context: http://www.nabble.com/onLoad-javascript-event-with-Markup-inheritance-tp20681885p20681885.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]
Problem Wizard + JMeter
Hi, I have a little problem with JMeter and the wizard component. I'm following the documentation from here: http://cwiki.apache.org/WICKET/wicket-and-jmeter-with-regular-expressions.html I use exactly the same regexp as in this documentation. However, I get some trouble. Use case: I run 2 wicket apps on the same context. Thus, my urls look like http://localhost:8080/Context/wicketapp1/packagemount/Index; I use the regexp *(.+:form:.+?)*, because the form in wizard is named form I'm trying to simulate a click on next (thus, submit the form) I have a first regexp extractor on the base page of the wizard. To handle the first click on next, I've an http request, with the final address http://localhost:8080/Context/wicketapp1/packagemount/*../../?wicket:interface=:6:wizard:form::IFormSubmitListener::*; (the bold part was extracted by the regexp extractor) But this doesn't work, the url had better to be something like http://localhost:8080/Context/wicketapp1/?wicket:interface=:6:wizard:form::IFormSubmitListener::; PS: when I try to hack it, ie add an extra part on the url (http://localhost:8080/Context/wicketapp1/packagemount/*thiswillberemovedlater/*) Does anybody have this kind of problem? Any hints? Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: onLoad javascript event with Markup inheritance
Something like: HTML wicket:extend script wicket:id=script type=text/javascriptalert('Hi');/script . /wicket:extend Java code: Label script = new Label(script, new ModelString()) { private static final long serialVersionUID = 1L; @Override protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { StringBuffer sb = new StringBuffer(); sb.append(var ); // some more Javascript code... replaceComponentTagBody(markupStream, openTag, sb.toString()); } }; addOrReplace(script); does not work? I use that kind of things for panel and works just fine... That should also work for extend... Best, Ernesto On Tue, Nov 25, 2008 at 3:08 PM, itayh [EMAIL PROTECTED] wrote: Hi, I use Markup inheritance in my site in order to keep common logic in the base page. I would like my child pages to do certain javascript actions when they are loaded. I try to define the the javascript on the childs body (between the wicket:extend and /wicket:extend) but I don't see them in the generated page (the base + child page). Any Idea how to generate onLoad javascript action for child page? -- View this message in context: http://www.nabble.com/onLoad-javascript-event-with-Markup-inheritance-tp20681885p20681885.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: AjaxSelfUpdatingTimerBehavior not updating
Thank you James, onBeforeRender() worked for me, in which all I did was replaced components. Really simple solution. Regards, Yazeed Isaacs - Java Developer [EMAIL PROTECTED] -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: 25 November 2008 03:19 PM To: users@wicket.apache.org Subject: Re: AjaxSelfUpdatingTimerBehavior not updating On Tue, Nov 25, 2008 at 7:41 AM, Yazeed Isaacs [EMAIL PROTECTED] wrote: If the AjaxSelfUpdatingTimerBehavior is added to the MyTabPanel panel, will the MyTabPanel() constructor be called at each update interval? No. But, the onBeforeRender() will be called. - 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: onLoad javascript event with Markup inheritance
you should implement the IHeaderContributor interface in your page and use IHeaderResponse.renderOnLoadJavascript() method in the implementation of the renderHead method.. Ernesto Reinaldo Barreiro wrote: Something like: HTML wicket:extend script wicket:id=script type=text/javascriptalert('Hi');/script . /wicket:extend Java code: Label script = new Label(script, new ModelString()) { private static final long serialVersionUID = 1L; @Override protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { StringBuffer sb = new StringBuffer(); sb.append(var ); // some more Javascript code... replaceComponentTagBody(markupStream, openTag, sb.toString()); } }; addOrReplace(script); does not work? I use that kind of things for panel and works just fine... That should also work for extend... Best, Ernesto On Tue, Nov 25, 2008 at 3:08 PM, itayh [EMAIL PROTECTED] wrote: Hi, I use Markup inheritance in my site in order to keep common logic in the base page. I would like my child pages to do certain javascript actions when they are loaded. I try to define the the javascript on the childs body (between the wicket:extend and /wicket:extend) but I don't see them in the generated page (the base + child page). Any Idea how to generate onLoad javascript action for child page? -- View this message in context: http://www.nabble.com/onLoad-javascript-event-with-Markup-inheritance-tp20681885p20681885.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: onLoad javascript event with Markup inheritance
You can use wicket:head or HeaderContributors. See http://cwiki.apache.org/WICKET/javascript-and-css-support.html this . Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk itayh wrote: Hi, I use Markup inheritance in my site in order to keep common logic in the base page. I would like my child pages to do certain javascript actions when they are loaded. I try to define the the javascript on the childs body (between the wicket:extend and /wicket:extend) but I don't see them in the generated page (the base + child page). Any Idea how to generate onLoad javascript action for child page? http://cwiki.apache.org/WICKET/javascript-and-css-support.html http://cwiki.apache.org/WICKET/javascript-and-css-support.html -- View this message in context: http://www.nabble.com/onLoad-javascript-event-with-Markup-inheritance-tp20681885p20682066.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: AjaxSelfUpdatingTimerBehavior not updating
No problem. Glad to help. On Tue, Nov 25, 2008 at 9:21 AM, Yazeed Isaacs [EMAIL PROTECTED] wrote: Thank you James, onBeforeRender() worked for me, in which all I did was replaced components. Really simple solution. Regards, Yazeed Isaacs - Java Developer [EMAIL PROTECTED] -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: 25 November 2008 03:19 PM To: users@wicket.apache.org Subject: Re: AjaxSelfUpdatingTimerBehavior not updating On Tue, Nov 25, 2008 at 7:41 AM, Yazeed Isaacs [EMAIL PROTECTED] wrote: If the AjaxSelfUpdatingTimerBehavior is added to the MyTabPanel panel, will the MyTabPanel() constructor be called at each update interval? No. But, the onBeforeRender() will be called. - 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: onLoad javascript event with Markup inheritance
that would be a cleaner solution, indeed... but normally I use at most a couple of pages and lot of panel replacements so each component just contributes what it needs... On Tue, Nov 25, 2008 at 3:32 PM, Serkan Camurcuoglu [EMAIL PROTECTED] wrote: you should implement the IHeaderContributor interface in your page and use IHeaderResponse.renderOnLoadJavascript() method in the implementation of the renderHead method.. Ernesto Reinaldo Barreiro wrote: Something like: HTML wicket:extend script wicket:id=script type=text/javascriptalert('Hi');/script . /wicket:extend Java code: Label script = new Label(script, new ModelString()) { private static final long serialVersionUID = 1L; @Override protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { StringBuffer sb = new StringBuffer(); sb.append(var ); // some more Javascript code... replaceComponentTagBody(markupStream, openTag, sb.toString()); } }; addOrReplace(script); does not work? I use that kind of things for panel and works just fine... That should also work for extend... Best, Ernesto On Tue, Nov 25, 2008 at 3:08 PM, itayh [EMAIL PROTECTED] wrote: Hi, I use Markup inheritance in my site in order to keep common logic in the base page. I would like my child pages to do certain javascript actions when they are loaded. I try to define the the javascript on the childs body (between the wicket:extend and /wicket:extend) but I don't see them in the generated page (the base + child page). Any Idea how to generate onLoad javascript action for child page? -- View this message in context: http://www.nabble.com/onLoad-javascript-event-with-Markup-inheritance-tp20681885p20681885.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: onLoad javascript event with Markup inheritance
Thank you, it works great. jWeekend wrote: You can use wicket:head or HeaderContributors. See http://cwiki.apache.org/WICKET/javascript-and-css-support.html this . Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk itayh wrote: Hi, I use Markup inheritance in my site in order to keep common logic in the base page. I would like my child pages to do certain javascript actions when they are loaded. I try to define the the javascript on the childs body (between the wicket:extend and /wicket:extend) but I don't see them in the generated page (the base + child page). Any Idea how to generate onLoad javascript action for child page? http://cwiki.apache.org/WICKET/javascript-and-css-support.html http://cwiki.apache.org/WICKET/javascript-and-css-support.html -- View this message in context: http://www.nabble.com/onLoad-javascript-event-with-Markup-inheritance-tp20681885p20682858.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]
ajax indicator
Hi, I'm trying to make an indicator visible when an ajax request is processed. For a checkbox this is working well: final AjaxCheckBox ac = new AjaxCheckBox(an, new Model()) { private static final long serialVersionUID = 0L; @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(Panel.this); } }; add(ac); ac.add(new TestAjaxBehavior()); class TestAjaxBehavior extends AjaxFormComponentUpdatingBehavior implements IAjaxIndicatorAware { private static final long serialVersionUID = -2704582236045420318L; public TestAjaxBehavior() { super(onchange); } protected void onUpdate(AjaxRequestTarget target) { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } } public String getAjaxIndicatorMarkupId() { return imgContainer.getMarkupId(); } } Markup-File: ... input type=checkBox wicket:id=an/ ... The same code fails when the checkbox is replaced by an ajax-button: final AjaxButton ac = new AjaxButton(an) { private static final long serialVersionUID = 0L; protected void onSubmit(AjaxRequestTarget target, Form form) { target.addComponent(Panel.this); } }; add(ac); ac.add(new TestAjaxBehavior()); Markup-File: input type=submit wicket:id=an/ I'm using wicket 1.34 but tried it also with 1.35. Tanks for any help -- View this message in context: http://www.nabble.com/ajax-indicator-tp20683826p20683826.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: ajax indicator
You are listening to onchange. BTW, I expect you already know there is an IndicatingAjaxButton. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk noppy-flex wrote: Hi, I'm trying to make an indicator visible when an ajax request is processed. For a checkbox this is working well: final AjaxCheckBox ac = new AjaxCheckBox(an, new Model()) { private static final long serialVersionUID = 0L; @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(Panel.this); } }; add(ac); ac.add(new TestAjaxBehavior()); class TestAjaxBehavior extends AjaxFormComponentUpdatingBehavior implements IAjaxIndicatorAware { private static final long serialVersionUID = -2704582236045420318L; public TestAjaxBehavior() { super(onchange); } protected void onUpdate(AjaxRequestTarget target) { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } } public String getAjaxIndicatorMarkupId() { return imgContainer.getMarkupId(); } } Markup-File: ... input type=checkBox wicket:id=an/ ... The same code fails when the checkbox is replaced by an ajax-button: final AjaxButton ac = new AjaxButton(an) { private static final long serialVersionUID = 0L; protected void onSubmit(AjaxRequestTarget target, Form form) { target.addComponent(Panel.this); } }; add(ac); ac.add(new TestAjaxBehavior()); Markup-File: input type=submit wicket:id=an/ I'm using wicket 1.34 but tried it also with 1.35. Tanks for any help -- View this message in context: http://www.nabble.com/ajax-indicator-tp20683826p20684205.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]
Integrating dijit.form.FilteringSelect
Has anyone integrated the dojo widget dijit.form.FilteringSelect into a Wicket application? I want to use AJAX to dynamiclly populate the drop down list. TNX David -- David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: [EMAIL PROTECTED] web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 This e-mail communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed. If you are not the intended recipient, you should immediately stop reading this message and delete it from all computers that it resides on. Any unauthorized reading, distribution, copying or other use of this communication (or its attachments) is strictly prohibited. If you have received this communication in error, please notify us immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ModalWindow and page serialization in 1.4RC1
No, it does not contain any references to the outer page. I had a similar case last week, so that this was the first ascpect to investigate. The page looks like MyPage extends WebPage { String property; public void setProperty(final String value) { this.property = value } public MyPage(final String property) { this.property = property; } Public MyPage() { This(default); } } If I create the page with setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { Page p = new MyPage(parameter); Return p; } } Everything works as expected, only the components of MyPage are serialized on klicking around the page. If I create the page as anonymous class with setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { Page p = new MyPage(parameter) { // need nothing else to force behavior }; Return p; } } All underlying pages are serialized. Stefan -Ursprüngliche Nachricht- Von: Matej Knopp [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 25. November 2008 15:01 An: users@wicket.apache.org Betreff: Re: ModalWindow and page serialization in 1.4RC1 Does your page inside modal window contain reference to outer page? -Matej On Tue, Nov 25, 2008 at 1:43 PM, Stefan Lindner [EMAIL PROTECTED] wrote: I have a ModalWindow with a page inside it (constructed via modalWindow.setPageCreator). The page contains a lot of AjaxButtons etc. If the content page is constructed as a stateless page (new MyPage() without parameters) the page (content of modal window) gets Serialized on every klick onto any AjaxButton. OK. If the content page is NOT constructed as a stateless page (new MyPage(someString) WITH parameters) the page (content of modal window) AND the content of all underlying pages gets Serialized on every klick onto any AjaxButton. Is this the intended behavior? Is there a trick to avoid serializing all the content of pages below the modal window? If it is not the intended behavior, I will create a simple testcase. This is a problem for us because the underlying pages contain much data und the ModalWindow slows down in speed. Stefan - 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-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TinyMCE settings problems
i am trying to integrate TinyMCE an wicket my code is as follows: for HTML : textarea wicket:id=richTextInput rows=10 cols=60 rich text /textarea For Java Class: TextArea textArea = new TextArea(richTextInput, new Model()); textArea.add(new TinyMceBehavior()); add(textArea); And i am using wicket-contrib-tinymce-1.3-SNAPSHOT.jar and wicket 1.3.0.jar. and it is giving me this error message when it trys 2 display page. java.lang.NoClassDefFoundError: org/apache/commons/collections/set/ListOrderedSet wicket.contrib.tinymce.settings.TinyMCESettings.init(TinyMCESettings.java:97) wicket.contrib.tinymce.settings.TinyMCESettings.init(TinyMCESettings.java:91) wicket.contrib.tinymce.settings.TinyMCESettings.init(TinyMCESettings.java:87) wicket.contrib.tinymce.TinyMceBehavior.init(TinyMceBehavior.java:42) Can Someone help out . Thanks. -- View this message in context: http://www.nabble.com/TinyMCE-settings-problems-tp20686184p20686184.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: ModalWindow and page serialization in 1.4RC1
Arghhh! Ok, so the Page object itself holds a reference to the parent class. But is there any way to suppress the serialization of this parent object? Stefan -Ursprüngliche Nachricht- Von: Matej Knopp [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 25. November 2008 18:43 An: users@wicket.apache.org Betreff: Re: ModalWindow and page serialization in 1.4RC1 On Tue, Nov 25, 2008 at 6:37 PM, Stefan Lindner [EMAIL PROTECTED] wrote: No, it does not contain any references to the outer page. I had a similar case last week, so that this was the first ascpect to investigate. The page looks like MyPage extends WebPage { String property; public void setProperty(final String value) { this.property = value } public MyPage(final String property) { this.property = property; } Public MyPage() { This(default); } } If I create the page with setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { Page p = new MyPage(parameter); Return p; } } Everything works as expected, only the components of MyPage are serialized on klicking around the page. If I create the page as anonymous class with setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { Page p = new MyPage(parameter) { // need nothing else to force behavior }; Return p; } } All underlying pages are serialized. Of course they are. Anonymous classes create implicit reference to outerclass. This is normal behavior. -Matej Stefan -Ursprüngliche Nachricht- Von: Matej Knopp [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 25. November 2008 15:01 An: users@wicket.apache.org Betreff: Re: ModalWindow and page serialization in 1.4RC1 Does your page inside modal window contain reference to outer page? -Matej On Tue, Nov 25, 2008 at 1:43 PM, Stefan Lindner [EMAIL PROTECTED] wrote: I have a ModalWindow with a page inside it (constructed via modalWindow.setPageCreator). The page contains a lot of AjaxButtons etc. If the content page is constructed as a stateless page (new MyPage() without parameters) the page (content of modal window) gets Serialized on every klick onto any AjaxButton. OK. If the content page is NOT constructed as a stateless page (new MyPage(someString) WITH parameters) the page (content of modal window) AND the content of all underlying pages gets Serialized on every klick onto any AjaxButton. Is this the intended behavior? Is there a trick to avoid serializing all the content of pages below the modal window? If it is not the intended behavior, I will create a simple testcase. This is a problem for us because the underlying pages contain much data und the ModalWindow slows down in speed. Stefan - 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-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-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ModalWindow and page serialization in 1.4RC1
On Tue, Nov 25, 2008 at 6:37 PM, Stefan Lindner [EMAIL PROTECTED] wrote: No, it does not contain any references to the outer page. I had a similar case last week, so that this was the first ascpect to investigate. The page looks like MyPage extends WebPage { String property; public void setProperty(final String value) { this.property = value } public MyPage(final String property) { this.property = property; } Public MyPage() { This(default); } } If I create the page with setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { Page p = new MyPage(parameter); Return p; } } Everything works as expected, only the components of MyPage are serialized on klicking around the page. If I create the page as anonymous class with setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { Page p = new MyPage(parameter) { // need nothing else to force behavior }; Return p; } } All underlying pages are serialized. Of course they are. Anonymous classes create implicit reference to outerclass. This is normal behavior. -Matej Stefan -Ursprüngliche Nachricht- Von: Matej Knopp [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 25. November 2008 15:01 An: users@wicket.apache.org Betreff: Re: ModalWindow and page serialization in 1.4RC1 Does your page inside modal window contain reference to outer page? -Matej On Tue, Nov 25, 2008 at 1:43 PM, Stefan Lindner [EMAIL PROTECTED] wrote: I have a ModalWindow with a page inside it (constructed via modalWindow.setPageCreator). The page contains a lot of AjaxButtons etc. If the content page is constructed as a stateless page (new MyPage() without parameters) the page (content of modal window) gets Serialized on every klick onto any AjaxButton. OK. If the content page is NOT constructed as a stateless page (new MyPage(someString) WITH parameters) the page (content of modal window) AND the content of all underlying pages gets Serialized on every klick onto any AjaxButton. Is this the intended behavior? Is there a trick to avoid serializing all the content of pages below the modal window? If it is not the intended behavior, I will create a simple testcase. This is a problem for us because the underlying pages contain much data und the ModalWindow slows down in speed. Stefan - 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-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Integrating dijit.form.FilteringSelect
like this http://wicketstuff.org/wicket13/ajax/choice.1 ? -igor On Tue, Nov 25, 2008 at 9:35 AM, David R Robison [EMAIL PROTECTED] wrote: Has anyone integrated the dojo widget dijit.form.FilteringSelect into a Wicket application? I want to use AJAX to dynamiclly populate the drop down list. TNX David -- David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: [EMAIL PROTECTED] web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 This e-mail communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed. If you are not the intended recipient, you should immediately stop reading this message and delete it from all computers that it resides on. Any unauthorized reading, distribution, copying or other use of this communication (or its attachments) is strictly prohibited. If you have received this communication in error, please notify us immediately. - 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: ModalWindow and page serialization in 1.4RC1
instead of anonymous make it a private static inner class -igor On Tue, Nov 25, 2008 at 9:48 AM, Stefan Lindner [EMAIL PROTECTED] wrote: Arghhh! Ok, so the Page object itself holds a reference to the parent class. But is there any way to suppress the serialization of this parent object? Stefan -Ursprüngliche Nachricht- Von: Matej Knopp [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 25. November 2008 18:43 An: users@wicket.apache.org Betreff: Re: ModalWindow and page serialization in 1.4RC1 On Tue, Nov 25, 2008 at 6:37 PM, Stefan Lindner [EMAIL PROTECTED] wrote: No, it does not contain any references to the outer page. I had a similar case last week, so that this was the first ascpect to investigate. The page looks like MyPage extends WebPage { String property; public void setProperty(final String value) { this.property = value } public MyPage(final String property) { this.property = property; } Public MyPage() { This(default); } } If I create the page with setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { Page p = new MyPage(parameter); Return p; } } Everything works as expected, only the components of MyPage are serialized on klicking around the page. If I create the page as anonymous class with setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { Page p = new MyPage(parameter) { // need nothing else to force behavior }; Return p; } } All underlying pages are serialized. Of course they are. Anonymous classes create implicit reference to outerclass. This is normal behavior. -Matej Stefan -Ursprüngliche Nachricht- Von: Matej Knopp [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 25. November 2008 15:01 An: users@wicket.apache.org Betreff: Re: ModalWindow and page serialization in 1.4RC1 Does your page inside modal window contain reference to outer page? -Matej On Tue, Nov 25, 2008 at 1:43 PM, Stefan Lindner [EMAIL PROTECTED] wrote: I have a ModalWindow with a page inside it (constructed via modalWindow.setPageCreator). The page contains a lot of AjaxButtons etc. If the content page is constructed as a stateless page (new MyPage() without parameters) the page (content of modal window) gets Serialized on every klick onto any AjaxButton. OK. If the content page is NOT constructed as a stateless page (new MyPage(someString) WITH parameters) the page (content of modal window) AND the content of all underlying pages gets Serialized on every klick onto any AjaxButton. Is this the intended behavior? Is there a trick to avoid serializing all the content of pages below the modal window? If it is not the intended behavior, I will create a simple testcase. This is a problem for us because the underlying pages contain much data und the ModalWindow slows down in speed. Stefan - 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-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-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?
X ] - YES - I would like to see at least the most used Wicket Stuff projects AT(R)
Re: ListView vs DropDownChoice with Generics
I have come across the same issue - is there any valid reason for the ? extends T - it would be much simpler if it were just ListT. On Tue, Nov 25, 2008 at 10:36 AM, slowery23 [EMAIL PROTECTED]wrote: I have created a subclass to LoadableDetachableModel to retrieve a list of objects out of our database. If I declare my class as public class MyModel extends LoadableDetachableModelListMyObject I can create an instance of this model to pass into a ListView, but that same Model object cannot be passed into a DropDownChoice because its contructor wants a IModelList? extends MyObject and as far as I know I can't just do a cast. Why are these constructors between ListView and different? Has anyone else dealt with this? It seems strange that I can't create a Model object that can be used by both a ListView and a DropDownChoice. -- View this message in context: http://www.nabble.com/ListView-vs-DropDownChoice-with-Generics-tp20684801p20684801.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] -- Jeremy Thomerson http://www.wickettraining.com
Re: RES: FileUploadField usage changed in 1.4 rc-1?
This seems to result in org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.apache.wicket.util.io.DeferredFileOutputStream I must implement the detach() method for the dummy fileUpload model: form.add(fileUploadField = new FileUploadField(PHOTO_UPLOAD_ID, new ModelFileUpload() { /** * @see org.apache.wicket.model.Model#detach() */ @Override public void detach() { setObject(null); } })); This really seems like an overkill to me, previously this worked much better ;) ** Martin 2008/11/19 Marat Radchenko [EMAIL PROTECTED]: Does it mean that FileUploadField now stores FileUpload in model? 2008/11/19, Erik van Oosten [EMAIL PROTECTED]: Yeah, I run into the same thing. Just pass FileUploadField an empty model: new ModelFileUpload() Regards, Erik. Bruno Cesar Borges schreef: Yes, you need to set a Model object into FileUploadField. :-) Bruno -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: ModalWindow and page serialization in 1.4RC1
Ok, thank you! So I need to rethink the design of our ModalWindows use. Stefan -Ursprüngliche Nachricht- Von: Igor Vaynberg [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 25. November 2008 18:52 An: users@wicket.apache.org Betreff: Re: ModalWindow and page serialization in 1.4RC1 instead of anonymous make it a private static inner class -igor On Tue, Nov 25, 2008 at 9:48 AM, Stefan Lindner [EMAIL PROTECTED] wrote: Arghhh! Ok, so the Page object itself holds a reference to the parent class. But is there any way to suppress the serialization of this parent object? Stefan -Ursprüngliche Nachricht- Von: Matej Knopp [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 25. November 2008 18:43 An: users@wicket.apache.org Betreff: Re: ModalWindow and page serialization in 1.4RC1 On Tue, Nov 25, 2008 at 6:37 PM, Stefan Lindner [EMAIL PROTECTED] wrote: No, it does not contain any references to the outer page. I had a similar case last week, so that this was the first ascpect to investigate. The page looks like MyPage extends WebPage { String property; public void setProperty(final String value) { this.property = value } public MyPage(final String property) { this.property = property; } Public MyPage() { This(default); } } If I create the page with setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { Page p = new MyPage(parameter); Return p; } } Everything works as expected, only the components of MyPage are serialized on klicking around the page. If I create the page as anonymous class with setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { Page p = new MyPage(parameter) { // need nothing else to force behavior }; Return p; } } All underlying pages are serialized. Of course they are. Anonymous classes create implicit reference to outerclass. This is normal behavior. -Matej Stefan -Ursprüngliche Nachricht- Von: Matej Knopp [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 25. November 2008 15:01 An: users@wicket.apache.org Betreff: Re: ModalWindow and page serialization in 1.4RC1 Does your page inside modal window contain reference to outer page? -Matej On Tue, Nov 25, 2008 at 1:43 PM, Stefan Lindner [EMAIL PROTECTED] wrote: I have a ModalWindow with a page inside it (constructed via modalWindow.setPageCreator). The page contains a lot of AjaxButtons etc. If the content page is constructed as a stateless page (new MyPage() without parameters) the page (content of modal window) gets Serialized on every klick onto any AjaxButton. OK. If the content page is NOT constructed as a stateless page (new MyPage(someString) WITH parameters) the page (content of modal window) AND the content of all underlying pages gets Serialized on every klick onto any AjaxButton. Is this the intended behavior? Is there a trick to avoid serializing all the content of pages below the modal window? If it is not the intended behavior, I will create a simple testcase. This is a problem for us because the underlying pages contain much data und the ModalWindow slows down in speed. Stefan - 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-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-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-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where has InMethod.com gone?
I am looking for an advance datagrid component. I see that inMethod is mentioned as having one. When I go to their sight, it talks about WiFi Video for iPhone. Where do I go to find info on their datagrid? And if they are gone, Does anyone else have some sort of advance datagrid? -- Thanks, Warren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?
Great idea! Yes. I have not nested any projects three deep in the past, but it should work. Has anybody else tried this? It would be: wicket-stuff-parent -- wicket-foo -- wicket-foo-core -- wicket-foo-examples On Tue, Nov 25, 2008 at 4:32 PM, Ryan McKinley [EMAIL PROTECTED] wrote: I don't know if this has already been discussed, but another part of the cleanup that would be nice is to group the main project and the example project into a folder with a common parent pom. For example, I find the layout of: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/inmethod-grid/ much easier to use/maintain then the apparent standard of /wicketstuff-project /wicketstuff-project-example https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/ https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/ one key thing about this change is that mvn eclipse:eclipse makes the example project depend on the core project perhaps this could be added to the 'organize' task? ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jeremy Thomerson http://www.wickettraining.com
Re: Where has InMethod.com gone?
Hope this helps: http://www.nabble.com/inmethod---grid-website--td20086965.html -- Jeremy Thomerson http://www.wickettraining.com On Tue, Nov 25, 2008 at 4:46 PM, Warren Bell [EMAIL PROTECTED]wrote: I am looking for an advance datagrid component. I see that inMethod is mentioned as having one. When I go to their sight, it talks about WiFi Video for iPhone. Where do I go to find info on their datagrid? And if they are gone, Does anyone else have some sort of advance datagrid? -- Thanks, Warren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?
Yes, our entire project at work is like this. The top-level project holds multiple modules. Each has a common, server, and client submodule. Works like a charm. On Tue, Nov 25, 2008 at 5:45 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: Great idea! Yes. I have not nested any projects three deep in the past, but it should work. Has anybody else tried this? It would be: wicket-stuff-parent -- wicket-foo -- wicket-foo-core -- wicket-foo-examples On Tue, Nov 25, 2008 at 4:32 PM, Ryan McKinley [EMAIL PROTECTED] wrote: I don't know if this has already been discussed, but another part of the cleanup that would be nice is to group the main project and the example project into a folder with a common parent pom. For example, I find the layout of: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/inmethod-grid/ much easier to use/maintain then the apparent standard of /wicketstuff-project /wicketstuff-project-example https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/ https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/ one key thing about this change is that mvn eclipse:eclipse makes the example project depend on the core project perhaps this could be added to the 'organize' task? ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel as instance variable of parent ?
On Mon, 24 Nov 2008, Thies Edeling wrote: I was wondering what the best aproach is, memory-wise, to reference a panel from it's parent (or other compent). Either keep a reference to a panel as an instance variable in it's parent or look it up in the hierarchy using get(path). The look up in the hierarchy is more brittle but I'm not entirely sure what the memory impact (if any) is of storing it as an instance var. The problem is not the memory usage but coupling, which should be reduced by using Component.visitChildren() instead of get(path). Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Javascript must be called once at the end
Hi, JavaScript source files itself are inserted using wicket:head in CodeHighlightPanel's html. It's great that they are included only once though multiple CodeHighlightPanel's instances have it. How to make alone call script language=javascript dp.SyntaxHighlighter.HighlightAll('code'); /script at the end of body? And not to have it at all if no CodeHighlightPanel was in output? I tested that several calls of it produce unexpected result. Tony. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javascript must be called once at the end
The easiest thing would be to just add an AbstractBehavior, override renderHeader and call renderOnDomReadyJavascript(dp.SyntaxHighlighter.HighlightAll('code');); If it's the exact same string, it can be added as many times as you want and Wicket will automatically only render it once. Try this: public class HomePage extends WebPage { private static final long serialVersionUID = 1L; public HomePage(final PageParameters parameters) { add(new Label(message, If you see this message wicket is properly configured and running)); add(new MyJSBehavior()); add(new MyJSBehavior()); } private static class MyJSBehavior extends AbstractBehavior { private static final long serialVersionUID = 1L; @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.renderOnDomReadyJavascript(alert('test');); } } } -- Jeremy Thomerson http://www.wickettraining.com On Tue, Nov 25, 2008 at 10:26 PM, Anton Veretennikov [EMAIL PROTECTED] wrote: Hi, JavaScript source files itself are inserted using wicket:head in CodeHighlightPanel's html. It's great that they are included only once though multiple CodeHighlightPanel's instances have it. How to make alone call script language=javascript dp.SyntaxHighlighter.HighlightAll('code'); /script at the end of body? And not to have it at all if no CodeHighlightPanel was in output? I tested that several calls of it produce unexpected result. Tony. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]