Getting a JS confirmation when uploading via Ajax
Hey, I'm uploading a file via Ajax, I literally copied the Wicket sample application. The uploading form is included in a modal window. Upon clicking on the upload button, I got a JavaScript dialog: ++ Are you sure you want to navigate from this page? Reloading this page will cause the modal window to disappear. Press Ok to continue, or Cancel to stay on the current page. ++ Why I'm getting this JavaScript confirmation dialog? Is there a way to get ride of it? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tips to start writing tests
Thanks a lot !! Per Lundholm wrote: > > Hi > > How about inserting the User object into the session before each test? > > private WicketTester tester; > > @Before > public void beforeEachTest() { > > User fakeUser = new User(); > > tester.setupRequestAndResponse(); > MySession wicketSession = (MySession) tester.getWicketSession(); > wicketSession.setUser(fakeUser); > } > > > /Per > > > 2009/5/26 HHB : >> Hey, >> I want to write tests for my Wicket pages and panels. >> The application is guarded via login functionality and all >> the pages and panels are depending on a User object in the session. >> I know who to write tests for Wicket, but I'm not sure what >> to do in my case due the authentication and authorization strategy. >> Any tips? >> Basically, the application is just one page and navigation is >> done via panels sweeping. >> Thanks. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > FaceBush, min insamling i Mustaschkampen: > http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243 > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Tips-to-start-writing-tests-tp23719712p23723163.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Tips to start writing tests
Hey, I want to write tests for my Wicket pages and panels. The application is guarded via login functionality and all the pages and panels are depending on a User object in the session. I know who to write tests for Wicket, but I'm not sure what to do in my case due the authentication and authorization strategy. Any tips? Basically, the application is just one page and navigation is done via panels sweeping. Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Whats wrong with my component?
Please all forgive my ignorance as this is my first component. My custom component is just a text area and a couple of client side JavaScript links. This component is supposed to be used inside a form and should be bound to text property of MessageVO What am I doing wrong? Per Lundholm wrote: > > So the TextArea gets a CompoundPropertyModel that has a MessageVO object. > > The MessageVO has a method "getLanguage" ? > > How should the TextArea display the contents of MessageVO? > > HTH > > /Per > > 2009/5/24 HHB : >> >> Ok, the TextArea has its own model so I passed the model parameter of the >> component constructor to the TextArea: >> >> final TextArea textArea = new TextArea("text", model); >> >> And in the panel: >> >> CompoundPropertyModel formModel = >> new CompoundPropertyModel(new MessageVO()); >> MessageTextArea textArea = new MessageTextArea("text", formModel); >> >> Now, the custom textarea is displaying the toString() method of MessageVO >> object and upon submitting the form, I got the exception: >> >> Attempted to set property value on a null object. Property expression: >> language Value: English >> org.apache.wicket.WicketRuntimeException: Attempted to set property value >> on >> a null object. Property expression: language Value: English >> >> >> >> >> James Carman-3 wrote: >>> >>> Just think to yourself what models are being used here. The TextArea >>> inside the MessageTextArea is bound to what? And, the >>> MessageTextArea's model is bound to what? >>> >>> On Sun, May 24, 2009 at 7:32 AM, HHB wrote: >>>> >>>> Would you please tell me in code (my code I posted earlier) what do you >>>> mean? >>>> I really appreciate your time and help. >>>> >>>> >>>> igor.vaynberg wrote: >>>>> >>>>> you do not bind the model of the textarea to the model of the >>>>> messagetextarea, so why are you surprised the value never makes it >>>>> into your model? >>>>> >>>>> -igor >>>>> >>>>> On Thu, May 21, 2009 at 4:45 AM, HHB wrote: >>>>>> Hey, >>>>>> I'm trying to create my first component in Wicket: >>>>>> + >>>>>> public class MessageTextArea extends >>>>>> FormComponentPanel { >>>>>> >>>>>> private String text; >>>>>> >>>>>> public MessageTextArea(String id) { >>>>>> this(id, null); >>>>>> } >>>>>> >>>>>> public MessageTextArea(String id, IModel model) { >>>>>> super(id, model); >>>>>> setType(String.class); >>>>>> setOutputMarkupId(true); >>>>>> >>>>>> final PropertyModel textModel = >>>>>> new PropertyModel(this, "text"); >>>>>> final TextArea textArea = >>>>>> new TextArea("text", textModel); >>>>>> textArea.setRequired(true); >>>>>> textArea.setOutputMarkupId(true); >>>>>> add(textArea); >>>>>> } >>>>>> >>>>>> } >>>>>> + >>>>>> And to use the component: >>>>>> + >>>>>> CompoundPropertyModel formModel = >>>>>> new CompoundPropertyModel(new MessageVO()); >>>>>> form.setModel(formModel); >>>>>> add(form); >>>>>> MessageTextArea textArea = new MessageTextArea("text"); >>>>>> + >>>>>> The problem is when I pass formModel to textArea component, >>>>>> I got a value expression error, and a NPE if I don't pass the model. >>>>>> What I'm doing wrong? >>>>>> Thanks for help and time. >>>>>> >>>>>> >>>>>> - >>>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>>>> >>>>>> >>>>> >>>>>
Re: Whats wrong with my component?
Ok, the TextArea has its own model so I passed the model parameter of the component constructor to the TextArea: final TextArea textArea = new TextArea("text", model); And in the panel: CompoundPropertyModel formModel = new CompoundPropertyModel(new MessageVO()); MessageTextArea textArea = new MessageTextArea("text", formModel); Now, the custom textarea is displaying the toString() method of MessageVO object and upon submitting the form, I got the exception: Attempted to set property value on a null object. Property expression: language Value: English org.apache.wicket.WicketRuntimeException: Attempted to set property value on a null object. Property expression: language Value: English James Carman-3 wrote: > > Just think to yourself what models are being used here. The TextArea > inside the MessageTextArea is bound to what? And, the > MessageTextArea's model is bound to what? > > On Sun, May 24, 2009 at 7:32 AM, HHB wrote: >> >> Would you please tell me in code (my code I posted earlier) what do you >> mean? >> I really appreciate your time and help. >> >> >> igor.vaynberg wrote: >>> >>> you do not bind the model of the textarea to the model of the >>> messagetextarea, so why are you surprised the value never makes it >>> into your model? >>> >>> -igor >>> >>> On Thu, May 21, 2009 at 4:45 AM, HHB wrote: >>>> Hey, >>>> I'm trying to create my first component in Wicket: >>>> + >>>> public class MessageTextArea extends >>>> FormComponentPanel { >>>> >>>> private String text; >>>> >>>> public MessageTextArea(String id) { >>>> this(id, null); >>>> } >>>> >>>> public MessageTextArea(String id, IModel model) { >>>> super(id, model); >>>> setType(String.class); >>>> setOutputMarkupId(true); >>>> >>>> final PropertyModel textModel = >>>> new PropertyModel(this, "text"); >>>> final TextArea textArea = >>>> new TextArea("text", textModel); >>>> textArea.setRequired(true); >>>> textArea.setOutputMarkupId(true); >>>> add(textArea); >>>> } >>>> >>>> } >>>> + >>>> And to use the component: >>>> + >>>> CompoundPropertyModel formModel = >>>> new CompoundPropertyModel(new MessageVO()); >>>> form.setModel(formModel); >>>> add(form); >>>> MessageTextArea textArea = new MessageTextArea("text"); >>>> + >>>> The problem is when I pass formModel to textArea component, >>>> I got a value expression error, and a NPE if I don't pass the model. >>>> What I'm doing wrong? >>>> Thanks for help and time. >>>> >>>> >>>> - >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Whats-wrong-with-my-component--tp23651847p23692734.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Whats-wrong-with-my-component--tp23651847p23692862.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Whats wrong with my component?
Would you please tell me in code (my code I posted earlier) what do you mean? I really appreciate your time and help. igor.vaynberg wrote: > > you do not bind the model of the textarea to the model of the > messagetextarea, so why are you surprised the value never makes it > into your model? > > -igor > > On Thu, May 21, 2009 at 4:45 AM, HHB wrote: >> Hey, >> I'm trying to create my first component in Wicket: >> + >> public class MessageTextArea extends >> FormComponentPanel { >> >> private String text; >> >> public MessageTextArea(String id) { >> this(id, null); >> } >> >> public MessageTextArea(String id, IModel model) { >> super(id, model); >> setType(String.class); >> setOutputMarkupId(true); >> >> final PropertyModel textModel = >> new PropertyModel(this, "text"); >> final TextArea textArea = >> new TextArea("text", textModel); >> textArea.setRequired(true); >> textArea.setOutputMarkupId(true); >> add(textArea); >> } >> >> } >> + >> And to use the component: >> + >> CompoundPropertyModel formModel = >> new CompoundPropertyModel(new MessageVO()); >> form.setModel(formModel); >> add(form); >> MessageTextArea textArea = new MessageTextArea("text"); >> + >> The problem is when I pass formModel to textArea component, >> I got a value expression error, and a NPE if I don't pass the model. >> What I'm doing wrong? >> Thanks for help and time. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Whats-wrong-with-my-component--tp23651847p23692734.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Error while trying to run tests
Hey, Our application is built on Wicket 1.3.5 , Spring 2.5 and Hibernate 3.2 I'm trying to write tests (with TestNG) for Wicket pages and panels: ++ WicketFilter org.apache.wicket.protocol.http. WicketFilter applicationFactoryClassName org.apache.wicket.spring. SpringWebApplicationFactory ++ @Test public void testGroupsPanel() { BulkSentService service = EasyMock.createMock(OurService.class); AnnotApplicationContextMock appctx = new AnnotApplicationContextMock(); appctx.putBean("ourService", service); WicketTester tester = new WicketTester(new OurWicketApplication()); tester.getApplication(). addComponentInstantiationListener( new SpringComponentInjector(tester. getApplication(), appctx)); tester.startPanel(new TestPanelSource() { @Override public Panel getTestPanel(String panelId) { return new GroupsPanel(panelId); } }); } ++ I got this exception: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? at org.springframework.web.context.support. WebApplicationContextUtils.getRequiredWebApplicationContext( WebApplicationContextUtils.java:70) at org.apache.wicket.spring.injection.annot. SpringComponentInjector.(SpringComponentInjector.java:74) Any idea what is going wrong? Thanks for help and time. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Whats wrong with my component?
I followed your suggestions and nothing changed. Alexandru Objelean wrote: > > I would suggest you to reuse the MessageTextArea model for TextArea > component. The code is this: > > private class MessageTextArea extends FormComponentPanel { > public MessageTextArea(String id) { > this(id, null); > } > public MessageTextArea(String id, IModel model) { > super(id, model); > setType(String.class); > setOutputMarkupId(true); > final Component textArea = new TextArea("text", > model).setRequired(true).setOutputMarkupId(true); > add(textArea); > } > } > > Also, I don't think that you need at all to setOutputMarkupId to true, do > you use ajax? It seems that your component doesn't do anything different > than TextArea, what is it's purpose? > > Alex > > > HHB wrote: >> >> MessageVO has the following instance variables: >> >> private String subject; >> private String text; >> private String language; >> private List groups; >> >> When creating the component as the following: >> MessageTextArea textArea = new MessageTextArea("text"); >> I got a NPE exception at the service POJO because text is null >> and when creating it this way: >> MessageTextArea textArea = new MessageTextArea("text", formModel); >> I got this exception: >> WicketMessage: Attempted to set property value on a null object. Property >> expression: language Value: English >> >> Root cause: >> >> org.apache.wicket.WicketRuntimeException: Attempted to set property value >> on a null object. Property expression: language Value: English >> at >> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:126) >> at >> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:164) >> at org.apache.wicket.Component.setModelObject(Component.java:2889) >> at >> org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1069) >> at org.apache.wicket.markup.html.form.Form$20.validate(Form.java:1837) >> at >> org.apache.wicket.markup.html.form.Form$ValidationVisitor.formComponent(Form.java:165) >> at >> org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:421) >> at >> org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:408) >> at >> org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:408) >> at >> org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrder(FormComponent.java:385) >> at >> org.apache.wicket.markup.html.form.Form.visitFormComponentsPostOrder(Form.java:1060) >> at >> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1829) >> at >> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1796) >> at org.apache.wicket.markup.html.form.Form.process(Form.java:865) >> at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:807) >> at >> org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:120) >> at >> org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:163) >> at >> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:297) >> at >> org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:100) >> at >> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91) >> at >> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175) >> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) >> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) >> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) >> at >> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) >> at >> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) >> at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) >> at >> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) >> at >> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >> at >> org.mortbay.jetty.servlet.Se
Re: Whats wrong with my component?
MessageVO has the following instance variables: private String subject; private String text; private String language; private List groups; When creating the component as the following: MessageTextArea textArea = new MessageTextArea("text"); I got a NPE exception at the service POJO because text is null and when creating it this way: MessageTextArea textArea = new MessageTextArea("text", formModel); I got this exception: WicketMessage: Attempted to set property value on a null object. Property expression: language Value: English Root cause: org.apache.wicket.WicketRuntimeException: Attempted to set property value on a null object. Property expression: language Value: English at org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:126) at org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:164) at org.apache.wicket.Component.setModelObject(Component.java:2889) at org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1069) at org.apache.wicket.markup.html.form.Form$20.validate(Form.java:1837) at org.apache.wicket.markup.html.form.Form$ValidationVisitor.formComponent(Form.java:165) at org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:421) at org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:408) at org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:408) at org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrder(FormComponent.java:385) at org.apache.wicket.markup.html.form.Form.visitFormComponentsPostOrder(Form.java:1060) at org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1829) at org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1796) at org.apache.wicket.markup.html.form.Form.process(Form.java:865) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:807) at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:120) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:163) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:297) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:100) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) Alexandru Objelean wrote: > > Read more about CompoundPropertyModel. When you apply this kind of model > on component, all children components which do not have explicit model set > will try to find a mapping from the parent based on its wicket id. > > In your case, if the MessageVO would have a "text" property (with setters > and getters) every
Re: Whats wrong with my component?
I have setter and getter property in MessageVO and still get the exception. Alexandru Objelean wrote: > > Read more about CompoundPropertyModel. When you apply this kind of model > on component, all children components which do not have explicit model set > will try to find a mapping from the parent based on its wicket id. > > In your case, if the MessageVO would have a "text" property (with setters > and getters) everything would work fine. > > Alex > > > HHB wrote: >> >> Hey, >> I'm trying to create my first component in Wicket: >> + >> public class MessageTextArea extends >> FormComponentPanel { >> >> private String text; >> >> public MessageTextArea(String id) { >> this(id, null); >> } >> >> public MessageTextArea(String id, IModel model) { >> super(id, model); >> setType(String.class); >> setOutputMarkupId(true); >> >> final PropertyModel textModel = >> new PropertyModel(this, "text"); >> final TextArea textArea = >> new TextArea("text", textModel); >> textArea.setRequired(true); >> textArea.setOutputMarkupId(true); >> add(textArea); >> } >> >> } >> + >> And to use the component: >> + >> CompoundPropertyModel formModel = >> new CompoundPropertyModel(new MessageVO()); >> form.setModel(formModel); >> add(form); >> MessageTextArea textArea = new MessageTextArea("text"); >> + >> The problem is when I pass formModel to textArea component, >> I got a value expression error, and a NPE if I don't pass the model. >> What I'm doing wrong? >> Thanks for help and time. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- View this message in context: http://www.nabble.com/Whats-wrong-with-my-component--tp23651847p23653112.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Writing tests for protected components
Hey, I want to write tests for my Wicket pages and panels. The application is guarded via login functionality and all the pages and panels are depending on a User object in the session. I know who to write tests for Wicket, but I'm not sure what to do in my case due the authentication and authorization strategy. Any tips? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Whats wrong with my component?
Hey, I'm trying to create my first component in Wicket: + public class MessageTextArea extends FormComponentPanel { private String text; public MessageTextArea(String id) { this(id, null); } public MessageTextArea(String id, IModel model) { super(id, model); setType(String.class); setOutputMarkupId(true); final PropertyModel textModel = new PropertyModel(this, "text"); final TextArea textArea = new TextArea("text", textModel); textArea.setRequired(true); textArea.setOutputMarkupId(true); add(textArea); } } + And to use the component: + CompoundPropertyModel formModel = new CompoundPropertyModel(new MessageVO()); form.setModel(formModel); add(form); MessageTextArea textArea = new MessageTextArea("text"); + The problem is when I pass formModel to textArea component, I got a value expression error, and a NPE if I don't pass the model. What I'm doing wrong? Thanks for help and time. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Why I'm getting an empty list?
Hey, This problem is really driving me crazy. I have this panel that I want to set it as the content of a ModalWindow. + public abstract class GroupsPalettePanel extends BasePanel { private ArrayList selectedGroups = new ArrayList(); public GroupsPalettePanel(String id) { super(id); setOutputMarkupId(true); ChoiceRenderer renderer = new ChoiceRenderer("name", "name"); final Palette groupsPalette = new Palette("groupsPalette", new Model(new ArrayList()), new GroupsModel(user), renderer, 15, false); AjaxLink add = new AjaxLink("add") { @Override @SuppressWarnings("unchecked") public void onClick(AjaxRequestTarget target) { Iterator it = groupsPalette.getSelectedChoices(); while (it.hasNext()) selectedGroups.add(it.next()); onOk(target); } }; add(groupsPalette); add(add); } public abstract void onOk(AjaxRequestTarget target); @SuppressWarnings("unchecked") public List getSelectedGroups() { return selectedGroups; } } + And here is the father panel: + final ModalWindow groupsModal = new ModalWindow("groupsModal"); final GroupsPalettePanel groupsPanel = new GroupsPalettePanel(groupsModal.getContentId()) { @Override public void onOk(AjaxRequestTarget target) { System.out.println("Selected Groups: " + getSelectedGroups()); groupsModal.close(target); } }; + The problem is when I select a group and click on the add button, the console shows that the selected choices are an empty list. Any ideas why I'm getting this behavior? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to get ride of page's state?
My problem is that I have a page with two major components: A refreshing view that lists groups An AjaxFallbackDefaultDataTable that lists the contacts that belong to a group upon clicking on the group name. The user could navigate to another page a delete a group and if he returned to the page that lists contacts and if his last group of choice to be shown is now deleted, I got NullPointerException. This is why I want to get ride of the page's state. Do you have another and a better solution to my case? BTW, how to make a page stateless? Thanks. Marat Radchenko-2 wrote: > > Make it stateless :) > > 2009/5/18 HHB : >> Hey, >> How to get ride of the page's state after the request is done? >> Thanks. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/How-to-get-ride-of-page%27s-state--tp23593406p23593715.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to get ride of page's state?
Hey, How to get ride of the page's state after the request is done? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Misfunctionality in WIA source code
Hey, I think the code of chapter 11 of "Wicket In Action" book isn't functioning properly. After logging in, try to logout, you should notice that you are still in the same page and you have to click on Logout link again in order to be taken to the sign in page. Any ideas? I'm using the same logout logic in our application and I'm facing the same problem. Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Displaying parameterized text
Hey, I have parameterized message in the properties file. Is there a Wicket specific component to display this parameterized text or I have to fallback to MessageFormat and Label? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to manipulate values in a data table?
Hey, I have a message class that has a status (which it is an integer) to indicate whether the message has been sent successfully. Inside a data table, how to handle this integer values so instead of displaying 0 or 1, it displays "Sent" or "Not Sent"? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to append JavaScript to a link?
Hey, The last cell in a data table is a link (that is contained in a form) that will delete the row. How to append JavaScript code that will display a confirmation dialog? Thanks for help and time. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Why the ModalWindow isn't getting closed?
Hey, I have a ModalWindow with an Ajaxified form. Upon a successful submitting, a data table in the original panel that caused the modalwindow to be appeared is getting updated. The problem is the close button of the ModalWindow is not working, I mean the window isn't getting shut down. editContactModal.setCloseButtonCallback(new ModalWindow.CloseButtonCallback() { @Override public boolean onCloseButtonClicked(AjaxRequestTarget target) { return true; } }); Any idea what is going wrong? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to enable debugging port for Jetty
Hey, How to enable debugging port for Jetty server that is launched via the command: mvn jetty:run ? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to remove a row from DataTable?
Thanks, your suggestion works like a charm. I like the technique of using abstract method, you have a Swing development background, right? Thanks again. Mathias P.W Nilsson wrote: > > I don't know if you can remove one row and just update the row as you can > with TreeTable but maybe some here could guide you. > > If it is good enough to update the whole table then maybe somthing like > this. this is typed from my head so there may be errors. > > public abstract DeleteContactPanel extends Panel{ > public DeleteContactPanel(String id, final Contact contact) { > super(id); > setOutputMarkupId(true); > final Form form = new Form("form"); > form.add(new AjaxSubmitLink("delete") { > @Override > protected void onSubmit(AjaxRequestTarget target, Form form) { > service.deleteContact(contact); > onDelete( target ); > System.out.println("OK Deleted"); > } > }); > add(form); > } > public abstract void onDelete( AjaxrequestTarget target ); > } > > > final List columns = new ArrayList(); > columns.add(new AbstractColumn(new Model("Delete")) { > public void populateItem(Item cellItem, String componentId, IModel > rowModel) { > Contact contact = ((Contact) rowModel.getObject()); > cellItem.add(new DeleteContactPanel(componentId, contact){ > public void onDelete( AjaxRequestTarget target ){ > // Add table here and show flashmessage > info( "Row deleted" ); > target.addComponent( feedback ); > target.addComponent( datatable ); > } > }); > } > }); > > > -- View this message in context: http://www.nabble.com/How-to-remove-a-row-from-DataTable--tp23312849p23314945.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to remove a row from DataTable?
Hey, I employed AjaxFallbackDefaultDataTable to list contacts. The last column contains a delete link that I created it this way: final List columns = new ArrayList(); columns.add(new AbstractColumn(new Model("Delete")) { public void populateItem(Item cellItem, String componentId, IModel rowModel) { Contact contact = ((Contact) rowModel.getObject()); cellItem.add(new DeleteContactPanel(componentId, contact)); } }); public DeleteContactPanel(String id, final Contact contact) { super(id); setOutputMarkupId(true); final Form form = new Form("form"); form.add(new AjaxSubmitLink("delete") { @Override protected void onSubmit(AjaxRequestTarget target, Form form) { service.deleteContact(contact); System.out.println("OK Deleted"); } }); add(form); } When deleting the contact from the database, I want to remove its row also from AjaxFallbackDefaultDataTable and display a message. But I'm not sure how to accomplish this? I mean how to communicate between DeleteActionPanel and the DataTable? Would you please help me? Thanks for help and time. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Not a Wicket question but ...
Hibernate forum is under upgrading right now. Any way, by appending characterEncoding to the end of the URL connection, things work correctly. nino martinez wael wrote: > > I'd goto the spring forum or hibernate, depending if you use spring > for wiring hibernate or not... It has nothing todo with C3P0 afaik. > > 2009/4/30 HHB : >> Hey, >> I understand this is not a Wicket question but I hope I can get some >> help. >> Our application uses c3p0 connection pooling. >> How to set the character encoding for database connection? >> Even if you aware of how to set the character encoding for Apache DBCP, I >> will >> be thankful. >> The application is built on: Spring 2.5 / Hibernate 3 / Wicket 1.3.5 >> Thanks. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Not-a-Wicket-question-but-...-tp23311586p23312035.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Not a Wicket question but ...
Hey, I understand this is not a Wicket question but I hope I can get some help. Our application uses c3p0 connection pooling. How to set the character encoding for database connection? Even if you aware of how to set the character encoding for Apache DBCP, I will be thankful. The application is built on: Spring 2.5 / Hibernate 3 / Wicket 1.3.5 Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Which repeater to use for my case?
Hey, I'm using a PageableListView with Ajax-enabled paginator. My team leader asked me to add two buttons in front of each row: Edit and Delete button. Edit will bring a ModalWindow to edit the contact. Delete will delete the record from the backend. For this functionality, which repeater do you suggest to use? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why I'm getting NPE?
Actually, thats what I'm doing (you can check my code). The NPE is regarding the Group object instance, not Spring bean. Willis Blackburn wrote: > > Hi, > > The @SpringBean annotation is only resolved by Component and its > subclasses. (Actually it's resolved by SpringComponentInjector--but > that only works with components.) > > You can call InjectorHolder.getInjector().inject(whatever) to resolve > @SpringBean annotations in the whatever object. > > W > > > > On Apr 29, 2009, at 6:38 AM, HHB wrote: > >> Hey, >> I'm trying to employ DataTable in our application. >> * >> public class SortableContactDataProvider >>extends SortableDataProvider { >> >>@SpringBean >>private Service service; >> >>private Group group; >> >>public SortableContactDataProvider(Group group) { >>if (group == null) >> throw new IllegalStateException("Group is null"); >>InjectorHolder.getInjector().inject(this); >>setSort("gsm", true); >>this.group = group; >>} >> >>public Iterator iterator(int first, int max) { >>return service.list(group, first, max, >>getSort().getProperty(), >>getSort().isAscending()).iterator(); >>} >> >>public int size() { >>return service.listContactsSize(group); >>} >> >>public IModel model(Object object) { >>Contact contact = (Contact) object; >>return new DomainEntityModel >> (Contact.class, contact.getId()); >>} >> >>public void setGroup(Group group) { >>if (group == null) >> throw new IllegalStateException("Group is null"); >>this.group = group; >>} >> >> } >> * >> And I use it this way (inside the panel constructor): >> * >> Group group = new Group();group.setId(1L); >> SortableContactDataProvider scdp = new >> SortableContactDataProvider(group); >>scdp.setGroup(group); >> final List columns = new ArrayList(); >> columns.add(new PropertyColumn(new Model("GSM"), "gsm", "gsm")); >> AjaxFallbackDefaultDataTable contacts = new >>AjaxFallbackDefaultDataTable("table", columns, scdp, 10); >> final WebMarkupContainer wmc = new >> WebMarkupContainer("contactsTable"); >> wmc.setOutputMarkupId(true); >> wmc.add(contacts); >> add(wmc); >> * >> When running the application, I got NullPointerException >> from the method size() of the provider, the group object is null. >> Why the object is null? >> and if it is null, why IllegalStateException is not being thrown? >> I'm using Wicket 1.3.5 >> Thanks for help. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Why-I%27m-getting-NPE--tp23294732p23295098.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Why I'm getting NPE?
Hey, I'm trying to employ DataTable in our application. * public class SortableContactDataProvider extends SortableDataProvider { @SpringBean private Service service; private Group group; public SortableContactDataProvider(Group group) { if (group == null) throw new IllegalStateException("Group is null"); InjectorHolder.getInjector().inject(this); setSort("gsm", true); this.group = group; } public Iterator iterator(int first, int max) { return service.list(group, first, max, getSort().getProperty(), getSort().isAscending()).iterator(); } public int size() { return service.listContactsSize(group); } public IModel model(Object object) { Contact contact = (Contact) object; return new DomainEntityModel (Contact.class, contact.getId()); } public void setGroup(Group group) { if (group == null) throw new IllegalStateException("Group is null"); this.group = group; } } * And I use it this way (inside the panel constructor): * Group group = new Group();group.setId(1L); SortableContactDataProvider scdp = new SortableContactDataProvider(group); scdp.setGroup(group); final List columns = new ArrayList(); columns.add(new PropertyColumn(new Model("GSM"), "gsm", "gsm")); AjaxFallbackDefaultDataTable contacts = new AjaxFallbackDefaultDataTable("table", columns, scdp, 10); final WebMarkupContainer wmc = new WebMarkupContainer("contactsTable"); wmc.setOutputMarkupId(true); wmc.add(contacts); add(wmc); * When running the application, I got NullPointerException from the method size() of the provider, the group object is null. Why the object is null? and if it is null, why IllegalStateException is not being thrown? I'm using Wicket 1.3.5 Thanks for help. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to erase model values?
Hey, Usually, I set the model for a form like this: final Form form = new Form("form", new CompoundPropertyModel(new Contact())); But when the panel or the modalwindow that contains the form is rendered again, the model's values are still saved and displayed. So upon successful operation, I do the following to erase values: form.setModel(new CompoundPropertyModel(new Contact())); Is there a better way? like overriding a specific method? Thanks for help and time. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Any RefreshingView-like repeater but with pagination?
Hey, Is there any repeater that has the features of RefreshingView but supports paginations? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to get an i18n message?
Hey, How to get a message (that will be displayed in FeedbackPanel) from properties file in order to use it for info() method of Component class? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Example of DataTable and Hibernate
Hey, Do you know any example regarding using DataTable repeater with Spring Dao bean (Hibernate preferably)? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PagingNavigator isn't working properly
I can't provide contacts listview some objects to show, that because when the page is requested, no group is selected and the user has to click on group's name in order to displays its contacts. Adding the paging navigator to ajax request target solves the problem!! Would you please tell why? Thanks for help Martijn. Martijn Dashorst wrote: > > Ah, and how about adding the paging navigator to the ajax request target? > > Martijn > > On Sun, Apr 26, 2009 at 1:48 PM, Martijn Dashorst > wrote: >> How about providing your contacts listview with some actual objects to >> show? >> >> new Model() doesn't provide a list to iterate through. >> >> Martijn >> >> On Sun, Apr 26, 2009 at 12:05 PM, HHB wrote: >>> Hey, >>> I have a panel that consists of two divs: >>> one for listing available groups. >>> second will display contacts for a group. >>> The contacts div will get populated upon clicking >>> of group name. >>> ** >>> public class ContactsModel extends >>> LoadableDetachableModel { >>> >>> private Long groupId; >>> >>> �...@springbean >>> private Service service; >>> >>> public ContactsModel(Long groupId) { >>> InjectorHolder.getInjector().inject(this); >>> this.groupId = groupId; >>> } >>> >>> �...@override >>> protected Object load() { >>> return service. >>> findContactsByGroupId(groupId); >>> } >>> >>> } >>> ** >>> public class ContactsPanel extends Panel { >>> >>> public ContactsPanel(String id) { >>> super(id); >>> setOutputMarkupId(true); >>> >>> final PageableListView contacts = new >>> PageableListView("contacts", new Model(), 10) { >>> �...@override >>> protected void populateItem(ListItem item) { >>> Contact contact = >>> (Contact) item.getModelObject(); >>> item.setModel(new >>> CompoundPropertyModel(contact)); >>> item.add(new Label("gsm")); >>> } >>> }; >>> contacts.setOutputMarkupId(true); >>> >>> final WebMarkupContainer wmc = >>> new WebMarkupContainer("contactsTable"); >>> wmc.setOutputMarkupId(true); >>> wmc.add(contacts); >>> add(wmc); >>> >>> ListView entry = new ListView("groups", >>> new GroupsModel()) { >>> �...@override >>> protected void populateItem(ListItem item) { >>> final Group group = (Group) item.getModelObject(); >>> item.setModel(new CompoundPropertyModel(group)); >>> AjaxFallbackLink nameLink = >>> new AjaxFallbackLink("nameLink") { >>> �...@override >>> public void onClick(AjaxRequestTarget target) { >>> Long groupId = group.getId(); >>> ContactsModel model = >>> new ContactsModel(groupId); >>> contacts.setModel(model); >>> target.addComponent(wmc); >>> } >>> }; >>> nameLink.add(new Label("name")); >>> item.add(nameLink); >>> } >>> }; >>> add(entry); >>> >>> add(new >>> PagingNavigator("contactsNavigator", contacts)); >>> } >>> >>> } >>> ** >>> >>> >>> >>> # >>> Group Name >>> >>> >>> >>> >>> >>> GSM >>> >>> >>> 11 >>> >>> >>> >>> >>> >>> >>> >>> ** >>> When creating the contacts PageableListView, >>> I have to provide a model and since no group is sel
PagingNavigator isn't working properly
Hey, I have a panel that consists of two divs: one for listing available groups. second will display contacts for a group. The contacts div will get populated upon clicking of group name. ** public class ContactsModel extends LoadableDetachableModel { private Long groupId; @SpringBean private Service service; public ContactsModel(Long groupId) { InjectorHolder.getInjector().inject(this); this.groupId = groupId; } @Override protected Object load() { return service. findContactsByGroupId(groupId); } } ** public class ContactsPanel extends Panel { public ContactsPanel(String id) { super(id); setOutputMarkupId(true); final PageableListView contacts = new PageableListView("contacts", new Model(), 10) { @Override protected void populateItem(ListItem item) { Contact contact = (Contact) item.getModelObject(); item.setModel(new CompoundPropertyModel(contact)); item.add(new Label("gsm")); } }; contacts.setOutputMarkupId(true); final WebMarkupContainer wmc = new WebMarkupContainer("contactsTable"); wmc.setOutputMarkupId(true); wmc.add(contacts); add(wmc); ListView entry = new ListView("groups", new GroupsModel()) { @Override protected void populateItem(ListItem item) { final Group group = (Group) item.getModelObject(); item.setModel(new CompoundPropertyModel(group)); AjaxFallbackLink nameLink = new AjaxFallbackLink("nameLink") { @Override public void onClick(AjaxRequestTarget target) { Long groupId = group.getId(); ContactsModel model = new ContactsModel(groupId); contacts.setModel(model); target.addComponent(wmc); } }; nameLink.add(new Label("name")); item.add(nameLink); } }; add(entry); add(new PagingNavigator("contactsNavigator", contacts)); } } ** Group Name GSM 11 ** When creating the contacts PageableListView, I have to provide a model and since no group is selected, I provided an empty Model() The problem is when clicking on a group name in order to get its contacts, the PagingNavigator is not working properly. It just displays << < > >> Any ideas what is going wrong? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Embedding a ListView in scrollable area
Hey, I have a ListView that could hold a lot of rows. Is there a way to embed the list view an a scroll-able area/thing? or I have to fallback to pagination ? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to set content of an ajax enabled link?
Hey, Is there a way to set the content of a link dynamically (the value is coming from model object)? The link has to be Ajax enabled for sure. Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Basic help please
Hey, I have a panel that consists of two parts: the first lists groups names. the second lists the contacts of a group, which gets populated upon clicking on the group name (via Ajax). Group Name number I created this model: public class ContactsModel extends LoadableDetachableModel { private Long groupId; @SpringBean private Service service; public ContactsModel(Long groupId) { InjectorHolder.getInjector().inject(this); this.groupId = groupId; } @Override protected Object load() { return service.findContactsByGroupId(groupId); } } And here is a snippet from the panel class: ListView entry = new ListView("groups", new GroupsModel()) { @Override protected void populateItem(ListItem item) { Group group = (Group) item.getModelObject(); item.setModel(new CompoundPropertyModel(group)); item.add(new AjaxFallbackLink("") { @Override public void onClick(AjaxRequestTarget target) { //what to do? } }); } }; Yes, inside onClick I can get the group ID, but what to do? I have to do something like this inside onClick: ContactsModel cm = new ContactsModel(groupId); What to put inside onClick() ? I'm new to Wicket so I appreciate your time. Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Submitting form via Ajax isn't working
Yes, you are right. My isssue is solved now, thanks. cpopetz wrote: > > All looks good to me, my guess is that you aren't entering in a name, > and so you're failing validation, but you haven't implemented onError > to add the feedback panel to the target in that case. Also, your > feedback panel probably needs setOutputMarkupId(true) to be of any > use, given that you're submitting with ajax. > > -Clint > > On Sun, Apr 19, 2009 at 9:11 AM, HHB wrote: >> Hey, >> I have a form and I want to submit it via Ajax: >> >> >> >> >> >> >> >> >> >> >> >> >> >> > wicket:id="note"> >> >> >> >> >> >> >> >> >> >> public CreateGroupPanel(String id) { >> super(id); >> setOutputMarkupId(true); >> final Form form = new Form("form", >> new CompoundPropertyModel(new Group())); >> add(form); >> form.add(new FeedbackPanel("feedback")); >> form.add(new >> FormComponentFeedbackBorder("nameBorder").add(new >> TextField("name").setRequired(true))); >> form.add(new TextArea("note")); >> form.add(new AjaxSubmitLink("create") { >> �...@override >> protected void onSubmit(AjaxRequestTarget target, >> Form form) { >> Group group = (Group) form.getModelObject(); >> System.out.println("Logging: " + group); >> } >> }); >> } >> >> But nothing is got print on the console. >> Any ideas what is going wrong? >> FireFox 3.0.7 >> Ubuntu 8.10 >> Wicket 1.3.5 >> Thanks. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Submitting-form-via-Ajax-isn%27t-working-tp23123367p23123825.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Submitting form via Ajax isn't working
Hey, I have a form and I want to submit it via Ajax: public CreateGroupPanel(String id) { super(id); setOutputMarkupId(true); final Form form = new Form("form", new CompoundPropertyModel(new Group())); add(form); form.add(new FeedbackPanel("feedback")); form.add(new FormComponentFeedbackBorder("nameBorder").add(new TextField("name").setRequired(true))); form.add(new TextArea("note")); form.add(new AjaxSubmitLink("create") { @Override protected void onSubmit(AjaxRequestTarget target, Form form) { Group group = (Group) form.getModelObject(); System.out.println("Logging: " + group); } }); } But nothing is got print on the console. Any ideas what is going wrong? FireFox 3.0.7 Ubuntu 8.10 Wicket 1.3.5 Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GWT vs. Wicket?
Currently, I'm rewriting our GWT-based application and I picked Wicket. GWT is delicious but only on papers. GWT cons: 1. lack of roles separation, building the GUI in the code doesn't work for me. 2. Hibernate integration is a nightmare. 3. Unit testing isn't that agile thing. I like GWT but I wouldn't prefer to work with it daily. Casper Bang-3 wrote: > > I was just wondering about the Wicket community's opinion of GWT. It seems > to share many of the positive characteristics as Wicket (focus on code, > not > markup) with the major difference/benefit as I see, that is does not > maintain any state on the server. Also, with GWT you seem to get more > readily available components (i.e. http://extjs.com/explorer/). The > bennefit > of Wicket as I can see, is that applications potentially degrade nicer and > the programming model hides the Ajax RPC better. Any thoughts? > > /Casper > > -- View this message in context: http://www.nabble.com/GWT-vs.-Wicket--tp22950178p23020555.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Spring integration problem
I tried what you suggested, no luck, the same error. Leandro Féres wrote: > > Sorry, didn't see (at first) that you've already done something similar. > Anyway, try replacing "classpath:applicationContext.xml" for > "WEB-INF/applicationContext.xml". I'm not sure if this classpath param > works > there. > > Regards, > > > Leandro. > > 2009/4/6 Leandro Féres > >> You must tell where's your spring context (applicationContext.xml). >> Try this: >> >> >> >> org.springframework.web.context.ContextLoaderListener >> >> >> contextConfigLocation >> WEB-INF/applicationContext.xml >> >> >> Regards, >> >> >> Leandro. >> >> >> 2009/4/6 HHB >> >> Hey, >>> I'm trying to integrate Spring 2.5 into our Wicket >>> application, I did the following: >>> >>> web.xml: >>> >>>contextConfigLocation >>>classpath:applicationContext.xml >>> >>> >>>org.springframework.web. >>> context.ContextLoaderListener >>> >>> >>>OpenSessionInViewFilter >>>org.springframework.orm.hibernate3. >>> support.OpenSessionInViewFilter >>> >>> >>> >>>WicketFilter >>>org.apache.wicket. >>> protocol.http.WicketFilter >>> >>>applicationFactoryClassName >>>org.apache.wicket.spring. >>> SpringWebApplicationFactory >>> >>> >>> >>>WicketFilter >>>org.apache.wicket. >>> protocol.http.WicketFilter >>> >>>applicationFactoryClassName >>>org.apache.wicket.spring. >>> SpringWebApplicationFactory >>> >>> >>> >>> applicationContext.xml: >>> >>> >>> >>> >>> pom.xml: >>> >>> >>>org.springframework >>>spring >>>2.5.6 >>> >>> >>> >>>org.apache.wicket >>>wicket-spring >>>1.3.5 >>> >>> >>>org.apache.wicket >>>wicket-spring-annot >>>1.3.5 >>> >>> >>> WicketApplication: >>> >>> @Override >>>protected void init() { >>>super.init(); >>>addComponentInstantiationListener >>> (new SpringComponentInjector(this)); >>>} >>> >>> But when trying: >>> mvn test >>> I got the following exception: >>> >>> --- >>> Test set: TestSuite >>> >>> --- >>> Tests run: 2, Failures: 1, Errors: 0, >>> Skipped: 1, Time elapsed: 0.498 sec <<< FAILURE! >>> init(domain.TestHomePage) Time elapsed: 0 sec <<< FAILURE! >>> java.lang.IllegalStateException: >>> No WebApplicationContext found: no ContextLoaderListener registered? >>>at org.springframework.web.context.support. >>> WebApplicationContextUtils. >>> getRequiredWebApplicationContext(WebApplicationContextUtils.java:70) >>>at org.apache.wicket.spring. >>> injection.annot.SpringComponentInjector. >>> (SpringComponentInjector.java:74) >>> >>> Any ideas? >>> Thanks. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> > > -- View this message in context: http://www.nabble.com/Spring-integration-problem-tp22911007p22911597.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Spring integration problem
Hey, I'm trying to integrate Spring 2.5 into our Wicket application, I did the following: web.xml: contextConfigLocation classpath:applicationContext.xml org.springframework.web. context.ContextLoaderListener OpenSessionInViewFilter org.springframework.orm.hibernate3. support.OpenSessionInViewFilter WicketFilter org.apache.wicket. protocol.http.WicketFilter applicationFactoryClassName org.apache.wicket.spring. SpringWebApplicationFactory WicketFilter org.apache.wicket. protocol.http.WicketFilter applicationFactoryClassName org.apache.wicket.spring. SpringWebApplicationFactory applicationContext.xml: pom.xml: org.springframework spring 2.5.6 org.apache.wicket wicket-spring 1.3.5 org.apache.wicket wicket-spring-annot 1.3.5 WicketApplication: @Override protected void init() { super.init(); addComponentInstantiationListener (new SpringComponentInjector(this)); } But when trying: mvn test I got the following exception: --- Test set: TestSuite --- Tests run: 2, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 0.498 sec <<< FAILURE! init(domain.TestHomePage) Time elapsed: 0 sec <<< FAILURE! java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? at org.springframework.web.context.support. WebApplicationContextUtils. getRequiredWebApplicationContext(WebApplicationContextUtils.java:70) at org.apache.wicket.spring. injection.annot.SpringComponentInjector. (SpringComponentInjector.java:74) Any ideas? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Tips to implement this switch technique
Hey, For our application layout we decided to go with switching panels technique. The Index page contains the navigation panel which contains links to switch panels. I know how to implement this technique but only when the links that are supposed to switch panels are on the same Index page, not contained in another panel. Would you please give some tips how to implement this? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to refer to files under /WEB-INF ?
Hey, How to refer to files under /WEB-INF/js in Wicket templates? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: NPE : Exception in rendering component
Issue solved, I'm using href instead of src attribute of script tag HHB wrote: > > Hey, > I created this panel: > > > > > > > > > > > > # First header > > First content > > # Second header > > Second content > > > > > > This is supposed to be jQuery Accordion component. > > public class NavigationPanel extends Panel { > > public NavigationPanel(String id) { > super(id); > } > > } > > And here is the main page: > > rel="stylesheet" type="text/css"/> >
NPE : Exception in rendering component
Hey, I created this panel: First header First content Second header Second content This is supposed to be jQuery Accordion component. public class NavigationPanel extends Panel { public NavigationPanel(String id) { super(id); } } And here is the main page: Content public Index() { add(new NavigationPanel("navo")); } But I'm getting the following exception: WicketMessage: Exception in rendering component: [MarkupContainer [Component id = _link3]] Root cause: java.lang.NullPointerException at org.apache.wicket.markup.resolver. AutoLinkResolver$PathInfo.(AutoLinkResolver.java:249) Page [Page class = domain.Index, id = 0, version = 0]: # PathSizeTypeModel Object 1 navo641 bytes domain.NavigationPanel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
What are those jars?
Hey, What are wicket-objectsizeof-agent-1.3.5 wicket-datetime-1.3.5 wicket-velocity-1.3.5 wicket-auth-roles-1.3.5 Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Employ JQuery Accordion in Wicket
Hey, My team lead is insisting on employing JQuery Accordion in our Wicket application. As you know that the Accordion consists of pairs of headers and contents panels. The requirement is to hide/show some pairs depending on the user's permission. Is is possible to do so? if yes, would you please give me some clues how to implement it? Thanks for help, this is my first Wicket project and my team lead is putting the heavy weight on my shoulders. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Start Wicket project with Spring and Hibernate
Hey, Our new Wicket application is to be build with Spring and Hibernate, so I included these: org.springframework spring 2.5.6 org.hibernate hibernate 3.2.6.ga org.apache.wicket wicket-spring 1.3.5 org.apache.wicket wicket-spring-annot 1.3.5 Anything is missing? I noticed there are dependencies like spring-context, spring-context-support, spring-aop, hibernate-annotations and the list goes on. Should I include them too? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Equivalent of StackPanel for Wicket
Thanks Azarias but I'm not looking for tab component, I'm looking for accordion component (as Leszek suggested). Azarias Tomás wrote: > > Take a look at > Wicket JQuery tab component [1], wicketstuff-jquery [2], wickext [3] > > [1] -http://xhab.blogspot.com/2007/06/wicket-jquery-tab-component.html > [2] - https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff > [3] - http://code.google.com/p/wickext/ > > > > 2009/3/29 HHB > >> >> The stack panel (or the suggested jQuery) is the navigation widget for >> the >> application which means it should be part of the markup of the top level >> parent class. >> Should this jQuery widget be wrapped as Wicket component? >> >> >> Leszek Gawron-2 wrote: >> > >> > HHB wrote: >> >> Hey, >> >> I want to employ something like StackPanel of GWT in my Wicket >> >> application. >> >> Any production ready component? >> >> Thanks for help and time. >> > >> > the easiest way is to use jQuery, the accordion widget in particular: >> > >> > http://jqueryui.com/demos/accordion/ >> > >> > -- >> > Leszek Gawron >> > >> > - >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Equivalent-of-StackPanel-for-Wicket-tp22726615p22765008.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > AT® > > -- View this message in context: http://www.nabble.com/Equivalent-of-StackPanel-for-Wicket-tp22726615p22766234.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Equivalent of StackPanel for Wicket
The stack panel (or the suggested jQuery) is the navigation widget for the application which means it should be part of the markup of the top level parent class. Should this jQuery widget be wrapped as Wicket component? Leszek Gawron-2 wrote: > > HHB wrote: >> Hey, >> I want to employ something like StackPanel of GWT in my Wicket >> application. >> Any production ready component? >> Thanks for help and time. > > the easiest way is to use jQuery, the accordion widget in particular: > > http://jqueryui.com/demos/accordion/ > > -- > Leszek Gawron > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Equivalent-of-StackPanel-for-Wicket-tp22726615p22765008.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Equivalent of StackPanel for Wicket
Hey, I want to employ something like StackPanel of GWT in my Wicket application. Any production ready component? Thanks for help and time. -- View this message in context: http://www.nabble.com/Equivalent-of-StackPanel-for-Wicket-tp22726615p22726615.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why Wicket application contains maven-jetty-plugin?
Does maven-jetty-plugin getting used when we run Wicket tests (WicketTester), you know, integration tests? Timo Rantalaiho wrote: > > On Sun, 08 Feb 2009, HHB wrote: >> Why POM of a Wicket skeleton application contains maven-jetty-plugin? > > To be able to run your application from the command line > with > > mvn jetty:run > > in the cases when that makes more sense than running a > Jetty.java or something such from the IDE. > > Best wishes, > Timo > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Why-Wicket-application-contains-maven-jetty-plugin--tp21899056p21899254.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Why Wicket application contains maven-jetty-plugin?
Hey, Why POM of a Wicket skeleton application contains maven-jetty-plugin? Thanks. -- View this message in context: http://www.nabble.com/Why-Wicket-application-contains-maven-jetty-plugin--tp21899056p21899056.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Behaviors and Strategy pattern
Hey, Is Behaviors in Wicket are implementation of the Strategy Pattern? Thanks. -- View this message in context: http://www.nabble.com/Behaviors-and-Strategy-pattern-tp21897409p21897409.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Getting an error when trying to install via Maven
I'm trying to create a Wicket 1.3.5 project. I add the following dependencies: wicket wicket-spring-annot 1.2.7 wicket wicket-spring 1.2.7 wicket wicket-auth-roles 1.2.7 Which it is obvious not compatible with 1.3.5 I solved the issue, now, Thanks. Michael Sparer wrote: > > Looks like you're mixing up different wicket versions. wicket.Initializer > was before the move to apache. Check your pom if you're using different > wicket versions - or perform a clean if you did an update recently > > hth, > Michael > > > HHB wrote: >> >> Hey, >> I created a Wicket skeleton project via Maven. >> When trying to install the project, I got this error: >> >> java.lang.ClassCastException: wicket.Initializer cannot be cast to >> org.apache.wicket.IInitializer >> at org.apache.wicket.Application.addInitializer(Application.java:755) >> at org.apache.wicket.Application.load(Application.java:829) >> at >> org.apache.wicket.Application.initializeComponents(Application.java:608) >> at >> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:575) >> at >> org.apache.wicket.protocol.http.MockWebApplication.(MockWebApplication.java:157) >> at >> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:204) >> at >> org.apache.wicket.util.tester.WicketTester.(WicketTester.java:308) >> at >> org.apache.wicket.util.tester.WicketTester.(WicketTester.java:291) >> at com.eldorado.TestHomePage.setUp(TestHomePage.java:15) >> at junit.framework.TestCase.runBare(TestCase.java:125) >> at junit.framework.TestResult$1.protect(TestResult.java:106) >> at junit.framework.TestResult.runProtected(TestResult.java:124) >> at junit.framework.TestResult.run(TestResult.java:109) >> at junit.framework.TestCase.run(TestCase.java:118) >> at junit.framework.TestSuite.runTest(TestSuite.java:208) >> at junit.framework.TestSuite.run(TestSuite.java:203) >> at >> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62) >> at >> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:155) >> at org.apache.maven.surefire.Surefire.run(Surefire.java:177) >> at >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) >> at >> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) >> ... Removed 18 stack frames >> >> Please note, that I didn't code anything at all, I just tried to test the >> basic skeleton. >> Is this error intentional or something is going wrong? >> Thanks. >> > > -- View this message in context: http://www.nabble.com/Getting-an-error-when-trying-to-install-via-Maven-tp21651202p21664193.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Getting an error when trying to install via Maven
I'm trying to create a Wicket 1.3.5 project. I add the following dependencies: wicket wicket-spring-annot 1.2.7 wicket wicket-spring 1.2.7 wicket wicket-auth-roles 1.2.7 Which it is obvious not compatible with 1.3.5 I solved the issue, now, Thanks. Michael Sparer wrote: > > Looks like you're mixing up different wicket versions. wicket.Initializer > was before the move to apache. Check your pom if you're using different > wicket versions - or perform a clean if you did an update recently > > hth, > Michael > > > HHB wrote: >> >> Hey, >> I created a Wicket skeleton project via Maven. >> When trying to install the project, I got this error: >> >> java.lang.ClassCastException: wicket.Initializer cannot be cast to >> org.apache.wicket.IInitializer >> at org.apache.wicket.Application.addInitializer(Application.java:755) >> at org.apache.wicket.Application.load(Application.java:829) >> at >> org.apache.wicket.Application.initializeComponents(Application.java:608) >> at >> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:575) >> at >> org.apache.wicket.protocol.http.MockWebApplication.(MockWebApplication.java:157) >> at >> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:204) >> at >> org.apache.wicket.util.tester.WicketTester.(WicketTester.java:308) >> at >> org.apache.wicket.util.tester.WicketTester.(WicketTester.java:291) >> at com.eldorado.TestHomePage.setUp(TestHomePage.java:15) >> at junit.framework.TestCase.runBare(TestCase.java:125) >> at junit.framework.TestResult$1.protect(TestResult.java:106) >> at junit.framework.TestResult.runProtected(TestResult.java:124) >> at junit.framework.TestResult.run(TestResult.java:109) >> at junit.framework.TestCase.run(TestCase.java:118) >> at junit.framework.TestSuite.runTest(TestSuite.java:208) >> at junit.framework.TestSuite.run(TestSuite.java:203) >> at >> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62) >> at >> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:155) >> at org.apache.maven.surefire.Surefire.run(Surefire.java:177) >> at >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) >> at >> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) >> ... Removed 18 stack frames >> >> Please note, that I didn't code anything at all, I just tried to test the >> basic skeleton. >> Is this error intentional or something is going wrong? >> Thanks. >> > > -- View this message in context: http://www.nabble.com/Getting-an-error-when-trying-to-install-via-Maven-tp21651202p21664185.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Getting an error when trying to install via Maven
Hey, I created a Wicket skeleton project via Maven. When trying to install the project, I got this error: java.lang.ClassCastException: wicket.Initializer cannot be cast to org.apache.wicket.IInitializer at org.apache.wicket.Application.addInitializer(Application.java:755) at org.apache.wicket.Application.load(Application.java:829) at org.apache.wicket.Application.initializeComponents(Application.java:608) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:575) at org.apache.wicket.protocol.http.MockWebApplication.(MockWebApplication.java:157) at org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:204) at org.apache.wicket.util.tester.WicketTester.(WicketTester.java:308) at org.apache.wicket.util.tester.WicketTester.(WicketTester.java:291) at com.eldorado.TestHomePage.setUp(TestHomePage.java:15) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:155) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) ... Removed 18 stack frames Please note, that I didn't code anything at all, I just tried to test the basic skeleton. Is this error intentional or something is going wrong? Thanks. -- View this message in context: http://www.nabble.com/Getting-an-error-when-trying-to-install-via-Maven-tp21651202p21651202.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
What are Behaviors in Wicket?
Hey, In easy words, what are Wicket Behaviors? what is their role? Thanks. -- View this message in context: http://www.nabble.com/What-are-Behaviors-in-Wicket--tp21525487p21525487.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: How much this graph is accurate?
Cool! Wicket is leading by a large margin :jumping: Hoover, William wrote: > > This means the growth rate of wicket is greater relative to the other > chosen technologies. I find forecast trends more useful as an indicator > of what the future might hold. > > -Original Message- > From: HHB [mailto:hubaghd...@yahoo.ca] > Sent: Monday, January 05, 2009 9:37 AM > To: users@wicket.apache.org > Subject: RE: How much this graph is accurate? > > > What does this mean? > :-/ > > Hoover, William wrote: >> >> I think this: >> http://www.indeed.com/jobtrends?q=Seam%2C+Grails%2C+Tapestry%2C+Wicket >> %2 >> C+Stripes&l=&relative=1 is more accurate ;o) >> >> -Original Message- >> From: HHB [mailto:hubaghd...@yahoo.ca] >> Sent: Monday, January 05, 2009 9:24 AM >> To: users@wicket.apache.org >> Subject: How much this graph is accurate? >> >> >> Hey, >> How much this graph is accurate? >> http://www.indeed.com/jobtrends?q=Seam%2C+Grails%2C+Tapestry%2C+Wicket >> %2 >> C+Stripes&l= >> Tapestry is so hot these day?:confused: >> Don't get me wrong, I respect Tapestry and HLS, I only find it > strange. >> T5 has only one book and you can hardly find some one blog about it. >> What do you think? >> -- >> View this message in context: >> http://www.nabble.com/How-much-this-graph-is-accurate--tp21291871p2129 >> 18 >> 71.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://www.nabble.com/How-much-this-graph-is-accurate--tp21291871p212920 > 94.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/How-much-this-graph-is-accurate--tp21291871p21292796.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Question
Any preferred nationalities? Joshua Stein-4 wrote: > > A couple of users have told me that I should post more information on > what we are looking for, so here it is. We are a startup looking for > someone to take us through our beta phase and beyond. Urgently, we > need someone to develop our payment processing and test our current > architecture. Thanks much! > Josh > > Requirements > > * Strong knowledge of the Spring Framework. > * At least a basic familiarity with using spring-security to secure a > web application. > * Experience with Object/Relational Mapping, iBatis preferred, but > Hibernate is sufficient. > * Knowledgeable with respect to relational databases, particularly > mysql 5.0.x - including triggers and stored procedures. > * Working knowledge of at least one MVC web framework in Java (Wicket, > Tapestry, Faces, Struts, SpringMVC, etc) and experience with Wicket is > strongly desired. > * Rock solid html and javascript skills > * At least basic linux sysadmin skills including building and > installing software, maintaining apache and tomcat configs, basic > mysql administration, ssh and security. > * Proven ability to maintain high productivity in a self-directed > working environment > * Strong interpersonal skills and communication in English > > Desired > - > * Knowledge of amazon web services - particularly S3, EC2, and Elastic > Block Store > * Experience consuming web services from java, especially paypal and > google apis > * Experience using the wicket framework in a production application > * Without wicket, experience with another component-based MVC > framework becomes more important > * Experience with credit card payment processing > * Someone who can work more broadly as a CTO and oversee all aspects > of web development. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Question-tp21292263p21292764.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: How much this graph is accurate?
What does this mean? :-/ Hoover, William wrote: > > I think this: > http://www.indeed.com/jobtrends?q=Seam%2C+Grails%2C+Tapestry%2C+Wicket%2 > C+Stripes&l=&relative=1 is more accurate ;o) > > -Original Message- > From: HHB [mailto:hubaghd...@yahoo.ca] > Sent: Monday, January 05, 2009 9:24 AM > To: users@wicket.apache.org > Subject: How much this graph is accurate? > > > Hey, > How much this graph is accurate? > http://www.indeed.com/jobtrends?q=Seam%2C+Grails%2C+Tapestry%2C+Wicket%2 > C+Stripes&l= > Tapestry is so hot these day?:confused: > Don't get me wrong, I respect Tapestry and HLS, I only find it strange. > T5 has only one book and you can hardly find some one blog about it. > What do you think? > -- > View this message in context: > http://www.nabble.com/How-much-this-graph-is-accurate--tp21291871p212918 > 71.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/How-much-this-graph-is-accurate--tp21291871p21292094.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How much this graph is accurate?
Hey, How much this graph is accurate? http://www.indeed.com/jobtrends?q=Seam%2C+Grails%2C+Tapestry%2C+Wicket%2C+Stripes&l= Tapestry is so hot these day?:confused: Don't get me wrong, I respect Tapestry and HLS, I only find it strange. T5 has only one book and you can hardly find some one blog about it. What do you think? -- View this message in context: http://www.nabble.com/How-much-this-graph-is-accurate--tp21291871p21291871.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] Merb-Rails Merge
I'm not bashing Rails, I'm just got bored from the Rails guys and how they underestimate Java culture (the language, frameworks and the performance !!) When I say Rails is a good replacement of PHP, I'm not disdaining them. Both are good for building public web sites (forums, e-commerce) but not for the enterprise IMHO. >>Too late :) Struts merged with Webworks. This movement is logical since WW was an attempt to enhance Struts but you can't expect Wicket to merge into SpringMVC for example. Erik van Oosten wrote: > > Please, no Ruby bashing here (or no bashing whatsoever). > > The Ruby world has many more options besides Rails and Merb. Camping, > Sinatra, Ramaze, Nitro just to name a few. Its not such a ridiculous > long list as in the Java world, but hey, Ruby has not been popular for > that long. >> Rails should be a good replacement of PHP, nothing more. > I think you severely underestimate both. (When given to the right people > of course.) > >> I hope Java web frameworks never got merged together. >> > Too late :) Struts merged with Webworks. > > But I agree; choice is good. > > Erik. > > > HHB wrote: >> I hope Java web frameworks never got merged together. >> Whenever my Rails dudes points toward how many Java has web frameworks >> and >> considering this as a bad thing, I smile. >> I smile because they don't have an option, just Rails. >> We (Java guys), have request/action frameworks, component-based >> frameworks, >> Java2JavaScript frameworks, Hybrid framework. >> DHH is a jerk, but a smart one. >> He tries so hard to convince every body on the planet that his Rails is >> the >> ultimate framework. >> Rails should be a good replacement of PHP, nothing more. >> The funniest thing when I hear Ruby/Rails guys talking about deploying >> Rails >> applications in the enterprise, What a good joke !! >> > > -- > Erik van Oosten > http://www.day-to-day-stuff.blogspot.com/ > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/-OT--Merb-Rails-Merge-tp21151511p21166311.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] Merb-Rails Merge
I hope Java web frameworks never got merged together. Whenever my Rails dudes points toward how many Java has web frameworks and considering this as a bad thing, I smile. I smile because they don't have an option, just Rails. We (Java guys), have request/action frameworks, component-based frameworks, Java2JavaScript frameworks, Hybrid framework. DHH is a jerk, but a smart one. He tries so hard to convince every body on the planet that his Rails is the ultimate framework. Rails should be a good replacement of PHP, nothing more. The funniest thing when I hear Ruby/Rails guys talking about deploying Rails applications in the enterprise, What a good joke !! Serkan Camurcuoglu wrote: > > This page > http://weblog.rubyonrails.org/2008/12/23/merb-gets-merged-into-rails-3 > http://weblog.rubyonrails.org/2008/12/23/merb-gets-merged-into-rails-3 > made me dream about a world where all Java web frameworks merge into > Wicket :) > -- View this message in context: http://www.nabble.com/-OT--Merb-Rails-Merge-tp21151511p21156821.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Multi-tap operations in Wicket
Seam and Wicket shouldn't compared. Seam is an integration framework (Hibernate, EJB3, JSF, jBPM, Quartz ...) , Wicket is a web framework. My current favorite frameworks are: Seam, Wicket and GWT Second rank: Tapestry, Grails Erik van Oosten wrote: > > Glad that is out of the way :) > > Wicket and Seam are frequently compared. But I think it is not a > fair/possible comparison. We might as well compare TestNG with Mockito, > both are about testing but in an entirely different league. > > Seam's goal (as far as my humble knowledge goes) is targeted at > combining a variety of frameworks (in particular EJB3 and JSF). Focus is > on managing transactions and passing data around by storing and > retrieving it from an array of (untyped) contexts. (Please forgive me if > I am completely wrong.) > > Wicket's goal is to provide a natural OO environment to program a html > user interface. (Reusable UI components anyone?) Passing data around is > the responsibility of components but is typically done with (fully > typed) models. There is no need for contexts to keep state as the entire > components are kept as state. This is done by storing complete page > component hierarchies to a page map. Usually you have one page map per > session. Wicket's transaction support is no better or worse then the > next web framework. > > Regards, > Erik. > > > HHB wrote: >> What I would like to know? >> If Wicket supports multi-window/tap (beginning a new (what I can call?) a >> conversation)? >> Well, yes, it does >> http://wicketstuff.org/wicket13doc/org/apache/wicket/settings/IPageSettings.html >> Multi-window/tap isn't the gem of Seam, one of them >> :) >> We need to do more marketing for wicket guys:ninja: >> >> >> Erik van Oosten wrote: >> >>> Apart from letting you guess what a page map is (a collection of visited >>> pages) I think Ernesto gave a very decent response. So lets turn this >>> around: >>> >>> What would you like to know? >>> >>> Regards, >>> Erik. >>> >>> >>> PS. If that really is /the/ gem of Seam, you're in for a treat with >>> Wicket! ;) >>> >>> >>> HHB wrote: >>> >>>> This effects all the Wicket pages in the application, right? >>>> Seam folks advertise this feature as one of the gems of Seam framework, >>>> why >>>> Wicket doesn't shed more light on it? >>>> Common Wicket, no need to be humble this time :) >>>> >>>> >>>> >>> -- >>> Erik van Oosten >>> http://day-to-day-stuff.blogspot.com/ >>> >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >>> >> >> > > -- > > -- > Erik van Oosten > http://day-to-day-stuff.blogspot.com/ > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Multi-tap-operations-in-Wicket-tp21125698p21141315.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Multi-tap operations in Wicket
What I would like to know? If Wicket supports multi-window/tap (beginning a new (what I can call?) a conversation)? Well, yes, it does http://wicketstuff.org/wicket13doc/org/apache/wicket/settings/IPageSettings.html Multi-window/tap isn't the gem of Seam, one of them :) We need to do more marketing for wicket guys:ninja: Erik van Oosten wrote: > > Apart from letting you guess what a page map is (a collection of visited > pages) I think Ernesto gave a very decent response. So lets turn this > around: > > What would you like to know? > > Regards, > Erik. > > > PS. If that really is /the/ gem of Seam, you're in for a treat with > Wicket! ;) > > > HHB wrote: >> This effects all the Wicket pages in the application, right? >> Seam folks advertise this feature as one of the gems of Seam framework, >> why >> Wicket doesn't shed more light on it? >> Common Wicket, no need to be humble this time :) >> >> > -- > Erik van Oosten > http://day-to-day-stuff.blogspot.com/ > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Multi-tap-operations-in-Wicket-tp21125698p21129508.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Multi-tap operations in Wicket
This effects all the Wicket pages in the application, right? Seam folks advertise this feature as one of the gems of Seam framework, why Wicket doesn't shed more light on it? Common Wicket, no need to be humble this time :) reiern70 wrote: > > See Application.getPageSettings().getAutomaticMultiWindowSupport() and the > explanation given at javadoc. > On Mon, Dec 22, 2008 at 11:39 AM, HHB wrote: > >> >> Hey, >> Seam framework supports the multi-tab / multi-window operations, it >> isolates >> each process from the other out-of-the-box. >> Does Wicket offer the same thing? >> Thanks. >> -- >> View this message in context: >> http://www.nabble.com/Multi-tap-operations-in-Wicket-tp21125698p21125698.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > -- View this message in context: http://www.nabble.com/Multi-tap-operations-in-Wicket-tp21125698p21127909.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Multi-tap operations in Wicket
Hey, Seam framework supports the multi-tab / multi-window operations, it isolates each process from the other out-of-the-box. Does Wicket offer the same thing? Thanks. -- View this message in context: http://www.nabble.com/Multi-tap-operations-in-Wicket-tp21125698p21125698.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Participating in Wicket
Thank you all guys but maybe I'm expressing my ideas the wrong way. I don't mean how to get Wicket source and create a patch, I mean what is the best way to start studying Wicket source code? where to start? which module? Steve Swinsburg-2 wrote: > > If you want the source code for Wicket, check it out from SVN into > your own local working copy. You can then build Wicket via maven after > you have made any local changes to the source code to see if the bug > has been fixed. > > You can then generate a patch and attach it to a Jira issue so the > developers can review it. > > cheers. > > > On 18/12/2008, at 8:19 AM, HHB wrote: > >> >> Thanks. >> My problem is I don't where to start. >> Lets say I want to fix that bug, in order to know how to fix it, I >> have to >> be aware of the whole source code of Wicket, am I right? >> How to start studying the source code? I mean where to start >> reviewing? >> >> >> Scott Swank wrote: >>> >>> I found this helpful. >>> >>> http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html >>> >>> Scott >>> >>> >>> On Wed, Dec 17, 2008 at 2:38 AM, HHB wrote: >>>> >>>> Thanks Martijn >>>> How do you suggest to start studying Wicket core code (I don't mean >>>> getting >>>> the source code :) )? >>>> It is complicated to study and grasp? >>>> Thanks again. >>>> >>>> >>>> Martijn Dashorst wrote: >>>>> >>>>> Look at jira issues, fix them, create a patch and attach it to the >>>>> jira issue. When we like your code and are tired of applying the >>>>> fixes >>>>> for you, you might be proposed to become a committer yourself. >>>>> >>>>> Valuable info: >>>>> >>>>> http://apache.org/dev/contributors.html#patches >>>>> >>>>> Martijn >>>>> >>>>> On Wed, Dec 17, 2008 at 11:13 AM, HHB wrote: >>>>>> >>>>>> Hey, >>>>>> I really have a great passion toward Wicket framework and I >>>>>> really want >>>>>> to >>>>>> participate with their core developer teams. >>>>>> My problem is that this framework has really great and passion >>>>>> developers >>>>>> and I can't imagine myself trying to join them (nor they will >>>>>> accept, I >>>>>> think) not to mention this great community. >>>>>> What do you suggest me to do? >>>>>> Thanks for your time. >>>>>> -- >>>>>> View this message in context: >>>>>> http://www.nabble.com/Participating-in-Wicket-tp21050410p21050410.html >>>>>> Sent from the Wicket - User mailing list archive at Nabble.com. >>>>>> >>>>>> >>>>>> - >>>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Become a Wicket expert, learn from the best: http://wicketinaction.com >>>>> Apache Wicket 1.3.4 is released >>>>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >>>>> >>>>> - >>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>>> >>>>> >>>>> >>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Participating-in-Wicket-tp21050410p21050753.html >>>> Sent from the Wicket - User mailing list archive at Nabble.com. >>>> >>>> >>>> - >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Participating-in-Wicket-tp21050410p21068635.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Participating-in-Wicket-tp21050410p21069869.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Participating in Wicket
Thanks. My problem is I don't where to start. Lets say I want to fix that bug, in order to know how to fix it, I have to be aware of the whole source code of Wicket, am I right? How to start studying the source code? I mean where to start reviewing? Scott Swank wrote: > > I found this helpful. > > http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html > > Scott > > > On Wed, Dec 17, 2008 at 2:38 AM, HHB wrote: >> >> Thanks Martijn >> How do you suggest to start studying Wicket core code (I don't mean >> getting >> the source code :) )? >> It is complicated to study and grasp? >> Thanks again. >> >> >> Martijn Dashorst wrote: >>> >>> Look at jira issues, fix them, create a patch and attach it to the >>> jira issue. When we like your code and are tired of applying the fixes >>> for you, you might be proposed to become a committer yourself. >>> >>> Valuable info: >>> >>> http://apache.org/dev/contributors.html#patches >>> >>> Martijn >>> >>> On Wed, Dec 17, 2008 at 11:13 AM, HHB wrote: >>>> >>>> Hey, >>>> I really have a great passion toward Wicket framework and I really want >>>> to >>>> participate with their core developer teams. >>>> My problem is that this framework has really great and passion >>>> developers >>>> and I can't imagine myself trying to join them (nor they will accept, I >>>> think) not to mention this great community. >>>> What do you suggest me to do? >>>> Thanks for your time. >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Participating-in-Wicket-tp21050410p21050410.html >>>> Sent from the Wicket - User mailing list archive at Nabble.com. >>>> >>>> >>>> - >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>>> >>> >>> >>> >>> -- >>> Become a Wicket expert, learn from the best: http://wicketinaction.com >>> Apache Wicket 1.3.4 is released >>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Participating-in-Wicket-tp21050410p21050753.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Participating-in-Wicket-tp21050410p21068635.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: When to pass object instance /class type?
We call setResponsePage(new CoolPage()) if want to pass some data to CoolPage and we call setResponsePage(CoolPage.class) if we only want to render CoolPage Am I right? HHB wrote: > > Hey, > What is the difference between: > setResponsePage(CoolPage.class) > and > setResponsePage(new CoolPage()) > ? > When to use each one? > Thanks. > > -- View this message in context: http://www.nabble.com/When-to-pass-object-instance--class-type--tp20998410p21050898.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Participating in Wicket
Thanks Martijn How do you suggest to start studying Wicket core code (I don't mean getting the source code :) )? It is complicated to study and grasp? Thanks again. Martijn Dashorst wrote: > > Look at jira issues, fix them, create a patch and attach it to the > jira issue. When we like your code and are tired of applying the fixes > for you, you might be proposed to become a committer yourself. > > Valuable info: > > http://apache.org/dev/contributors.html#patches > > Martijn > > On Wed, Dec 17, 2008 at 11:13 AM, HHB wrote: >> >> Hey, >> I really have a great passion toward Wicket framework and I really want >> to >> participate with their core developer teams. >> My problem is that this framework has really great and passion developers >> and I can't imagine myself trying to join them (nor they will accept, I >> think) not to mention this great community. >> What do you suggest me to do? >> Thanks for your time. >> -- >> View this message in context: >> http://www.nabble.com/Participating-in-Wicket-tp21050410p21050410.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.3.4 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Participating-in-Wicket-tp21050410p21050753.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Participating in Wicket
Hey, I really have a great passion toward Wicket framework and I really want to participate with their core developer teams. My problem is that this framework has really great and passion developers and I can't imagine myself trying to join them (nor they will accept, I think) not to mention this great community. What do you suggest me to do? Thanks for your time. -- View this message in context: http://www.nabble.com/Participating-in-Wicket-tp21050410p21050410.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Getting API/Wiki pages for offline reading
Hey, Why Wicket package doesn't include the API and Wiki pages (like Struts2 for example)? Any ideas how to get them for late night offline reading? Thanks. -- View this message in context: http://www.nabble.com/Getting-API-Wiki-pages-for-offline-reading-tp20998576p20998576.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to update base page panel from child page?
Hey, I use inheritance to do layout. The base page containing main section that should contains child's markup, and cart section. Child pages are supposed to perform operations that will update the cart section (lets say via Ajax). My question is how to ask the cart section to updates its state (and redraw it) from a child page? I'm new to Wicket so forgive my questions :) Thanks for your time. -- View this message in context: http://www.nabble.com/How-to-update-base-page-panel-from-child-page--tp20998486p20998486.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
When to pass object instance /class type?
Hey, What is the difference between: setResponsePage(CoolPage.class) and setResponsePage(new CoolPage()) ? When to use each one? Thanks. -- View this message in context: http://www.nabble.com/When-to-pass-object-instance--class-type--tp20998410p20998410.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org