Re: Safari and AjaxEditableMultiLineLabel incompatibility?
There were ajax bugs in either 1.4.10 or 1.4.11 (can't remember at this point). Please upgrade to 1.4.12 and tell us if you still have the problem. On Thu, Sep 30, 2010 at 10:43 PM, Arturo Perez art...@pleeque.com wrote: Using wicket 1.4.10 and Safari 5.0.1. I'm using the AjaxEditableLabel in a ModalWindow no problem. But the AjaxEditableMultiLineLabel doesn't go editable when it's clicked. I checked under FireFox 3.6.10 and it works there. Is there a known incompatibility? Is there a known fix, if so? tia, arturo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: using link to open mail composer
add a target attribute to your html or use PopupSettings. I'd suggest adding the target to your HTML. On Wed, Sep 29, 2010 at 9:07 PM, fachhoch fachh...@gmail.com wrote: what about open an external link in new window -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-link-to-open-mail-composer-tp2719980p2720084.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: AjaxButton documentation error?
It will lie no more. I just fixed it in 1.4.x and trunk. Thanks Chris and Craig! On Mon, Jul 12, 2010 at 7:03 AM, Craig McIlwee craig.mcil...@openroadsconsulting.com wrote: Yeah, that's been wrong for a really long time, maybe always. Whenever I point coworkers to that class I tell them to ignore that comment. Just checked the code for AjaxButton, and there is no form.add(this) call anywhere. Craig - Original Message - From: Chris Colman [mailto:chr...@stepaheadsoftware.com] To: users@wicket.apache.org Sent: Thu, 08 Jul 2010 21:48:20 -0400 Subject: AjaxButton documentation error? The JavaDoc for AjaxButton (and AjaxSubmitButton) says: A button that submits the form via ajax. Since this button takes the form as a constructor argument it does not need to be added to it unlike the Button component. Well I've just spent a good amount of time putting that theory to the test. I use the constructor that takes the form as its second parameter. Basically the form fails with an error saying wicket can't find the button component unless I explicitly add the AjaxButton object to the form object, seemingly contradicting the above doco quote. The Wicket example explicitly adds the button to the form too - which also seems to go against the above doco declaration. Maybe it's a rare case where reading the documentation is not a good idea =} - 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 -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
RE: AjaxLazyLoadPanel IE and chrome
Are you using jQuery? Yesterday I would have answered that I never had any problems with AjaxLazyLoadPanel in IE/chrome. And we make heavy use o fit. But today we moved from jQuery 1.4.2 to 1.4.3 and now we have the same problem. Sometimes a AjaxLazyLoadPanel loads until eternity. Hitting f5 loads the page. Stefan -Ursprüngliche Nachricht- Von: fachhoch [mailto:fachh...@gmail.com] Gesendet: Donnerstag, 21. Oktober 2010 20:56 An: users@wicket.apache.org Betreff: AjaxLazyLoadPanel IE and chrome sometimes AjaxLazyLoadPanel does not load in IE and chrome , I am using wicket 1.4.8. I have to hit refresh several time to load the lazypanel. Please advice me. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-IE-and-chrome-tp3006112p3006112.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Accessing the cells in a row of a DataTable
Thanks Mike, this was definitely a great pointer in the right direction; I'm beginning to grasp the column system now. I do have some issues though as detailed below. Firstly, my business model is out of my control so I had to wrap that in a class that contains the editable state. I don't like doing that it but it's useful to see if I can get it to work and it shouldn't effect the process on the whole. The main difference is I'm attempting to do this using different columns, that is, not having a custom column that takes a type and switches. The problem is that the models for each column seem to wrap different instances of the business object. The code below shows how I'm creating the columns. The link in the AbstractColumn grabs the business object and toggles editable. The EditablePropertyColumn's populateItem method then get's it's rowModel object (the business object) and checks the editable state. This is where it goes wrong as each column seems to have it's own copy of the rows business model object. I guess this is how the columns with with datagrid. /** * Creates the columns for the synonym data table * * @return */ @SuppressWarnings(serial) private ListIColumnEditStateSynonymWrapper createColumns() { ListIColumnEditStateSynonymWrapper columns = new ArrayListIColumnEditStateSynonymWrapper(); columns.add(new AbstractColumnEditStateSynonymWrapper(new ModelString(Edit)) { public void populateItem(ItemICellPopulatorEditStateSynonymWrapper cellItem, String componentId, IModelEditStateSynonymWrapper model) { AjaxFallbackLinkEditStateSynonymWrapper editLink = new AjaxFallbackLinkEditStateSynonymWrapper(componentId, model) { @Override public void onClick(AjaxRequestTarget target) { EditStateSynonymWrapper selected = (EditStateSynonymWrapper) getDefaultModelObject(); System.out.println(selected value = + selected.wrappedSynonym.value); selected.setEditing(!selected.isEditing()); // FIXME WHAT!? There must be a better way than this to get the parent table. :D MarkupContainer dataTable = getParent().getParent().getParent().getParent().getParent().getParent(); target.addComponent(dataTable); } }; cellItem.add(editLink); // cellItem.add(new EditLinkFragment(componentId, SynonymAdminPanel.this, model)); } }); columns.add(new PropertyColumnEditStateSynonymWrapper(new ModelString(Category), wrappedSynonym.category)); // columns.add(new EditablePropertyColumnEditStateSynonymWrapper(new ModelString(State), // wrappedSynonym.state, new PropertyModelSynonym(this, selected))); columns.add(new EditablePropertyColumnEditStateSynonymWrapper(new ModelString(State), wrappedSynonym.state)); columns.add(new PropertyColumnEditStateSynonymWrapper(new ModelString(Root), wrappedSynonym.root)); columns.add(new PropertyColumnEditStateSynonymWrapper(new ModelString(Value), wrappedSynonym.value)); columns.add(new PropertyColumnEditStateSynonymWrapper(new ModelString(Rational), wrappedSynonym.rational)); columns.add(new PropertyColumnEditStateSynonymWrapper(new ModelString(Taxonomy parent), wrappedSynonym.taxonomyParent)); return columns; } On Thu, Oct 21, 2010 at 3:50 PM, Michael O'Cleirigh michael.ocleir...@rivulet.ca wrote: Hi Mark, The cell's of a datatable are created by the IColumn. So you need to create a wrapping object or additional IModel that contains the edit-ability of each row and then use that inside the populateItem(...) method of the column to figure out which case to show (i.e. the label or the textfield). One way to persist the change immediately is to use an AjaxFormComponentUpdatingBehavior on the onblur event of the textfield to push the changes through. Do something like this: class MyColumn extends AbstractColumnBusinessObject { public static enum ColumnType { LINK, COL1, COL2 }; private ColumnType type; public MyColumn (IModelStringheader, ColumnType type) { super (header); this.type = type; } @Override public void populateItem(ItemICellPopulatorBusinessObject cellItem, String componentId, IModelBusinessObject rowModel) { switch (this.type) { case LINK : // add in the ajax link to the cell item // inside the onclick do: // get the row model object and then set its editable field. cellItem.add(new AjaxLink(componentId) { public void onClick(AjaxRequestTarget target) { BusinessObject bo = rowModel.getObject(); bo.setEditable(true); // get the table to rerender target.addComponent(this.getParent()); } }); break; case COL1: case COL2: BusinessObject bo = rowModel.getObject(); if (bo.isEditable()) { //
Re: Accessing the cells in a row of a DataTable
Oh and the table isn't the parent: // get the table to rerender target.addComponent(this.getParent()); I had to do a six step parental grab; I'm sure there is a better way! :D On Fri, Oct 22, 2010 at 11:54 AM, Mark Doyle markjohndo...@googlemail.comwrote: Thanks Mike, this was definitely a great pointer in the right direction; I'm beginning to grasp the column system now. I do have some issues though as detailed below. Firstly, my business model is out of my control so I had to wrap that in a class that contains the editable state. I don't like doing that it but it's useful to see if I can get it to work and it shouldn't effect the process on the whole. The main difference is I'm attempting to do this using different columns, that is, not having a custom column that takes a type and switches. The problem is that the models for each column seem to wrap different instances of the business object. The code below shows how I'm creating the columns. The link in the AbstractColumn grabs the business object and toggles editable. The EditablePropertyColumn's populateItem method then get's it's rowModel object (the business object) and checks the editable state. This is where it goes wrong as each column seems to have it's own copy of the rows business model object. I guess this is how the columns with with datagrid. /** * Creates the columns for the synonym data table * * @return */ @SuppressWarnings(serial) private ListIColumnEditStateSynonymWrapper createColumns() { ListIColumnEditStateSynonymWrapper columns = new ArrayListIColumnEditStateSynonymWrapper(); columns.add(new AbstractColumnEditStateSynonymWrapper(new ModelString(Edit)) { public void populateItem(ItemICellPopulatorEditStateSynonymWrapper cellItem, String componentId, IModelEditStateSynonymWrapper model) { AjaxFallbackLinkEditStateSynonymWrapper editLink = new AjaxFallbackLinkEditStateSynonymWrapper(componentId, model) { @Override public void onClick(AjaxRequestTarget target) { EditStateSynonymWrapper selected = (EditStateSynonymWrapper) getDefaultModelObject(); System.out.println(selected value = + selected.wrappedSynonym.value); selected.setEditing(!selected.isEditing()); // FIXME WHAT!? There must be a better way than this to get the parent table. :D MarkupContainer dataTable = getParent().getParent().getParent().getParent().getParent().getParent(); target.addComponent(dataTable); } }; cellItem.add(editLink); // cellItem.add(new EditLinkFragment(componentId, SynonymAdminPanel.this, model)); } }); columns.add(new PropertyColumnEditStateSynonymWrapper(new ModelString(Category), wrappedSynonym.category)); // columns.add(new EditablePropertyColumnEditStateSynonymWrapper(new ModelString(State), // wrappedSynonym.state, new PropertyModelSynonym(this, selected))); columns.add(new EditablePropertyColumnEditStateSynonymWrapper(new ModelString(State), wrappedSynonym.state)); columns.add(new PropertyColumnEditStateSynonymWrapper(new ModelString(Root), wrappedSynonym.root)); columns.add(new PropertyColumnEditStateSynonymWrapper(new ModelString(Value), wrappedSynonym.value)); columns.add(new PropertyColumnEditStateSynonymWrapper(new ModelString(Rational), wrappedSynonym.rational)); columns.add(new PropertyColumnEditStateSynonymWrapper(new ModelString(Taxonomy parent), wrappedSynonym.taxonomyParent)); return columns; } On Thu, Oct 21, 2010 at 3:50 PM, Michael O'Cleirigh michael.ocleir...@rivulet.ca wrote: Hi Mark, The cell's of a datatable are created by the IColumn. So you need to create a wrapping object or additional IModel that contains the edit-ability of each row and then use that inside the populateItem(...) method of the column to figure out which case to show (i.e. the label or the textfield). One way to persist the change immediately is to use an AjaxFormComponentUpdatingBehavior on the onblur event of the textfield to push the changes through. Do something like this: class MyColumn extends AbstractColumnBusinessObject { public static enum ColumnType { LINK, COL1, COL2 }; private ColumnType type; public MyColumn (IModelStringheader, ColumnType type) { super (header); this.type = type; } @Override public void populateItem(ItemICellPopulatorBusinessObject cellItem, String componentId, IModelBusinessObject rowModel) { switch (this.type) { case LINK : // add in the ajax link to the cell item // inside the onclick do: // get the row model object and then set its editable field. cellItem.add(new AjaxLink(componentId) { public void onClick(AjaxRequestTarget target) { BusinessObject bo = rowModel.getObject(); bo.setEditable(true); // get the table to
Re: Check on LoadabledetachableModel
Thanks, seems to work as it's supposed to now. Just for the record, de-implementing the Serializable interface from entities/objects is a good hint whether the object was undergoing the serialization process (a spam of NotSerializableExceptions will follow). Regards, -- Marek Šabo On 10/22/2010 04:21 AM, Jeremy Thomerson wrote: By referencing the object within the LDM, you've made the compiler put a reference to it in your LDM class, which means it will now be serialized. Take the final off the user object and do: final int id = object.getID() so that only the id is serialized. Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse spelling, formatting, or compiler errors On Oct 21, 2010 7:26 PM, Marek Šaboms...@buk.cvut.cz wrote: Hi, I just want to ask if get the ldm concept right in my code: SortableDataProvider for DataTable: @Override public IModelUser model(final User object) {//user is a JPA entity return new LoadableDetachableModelUser(object) { private static final long serialVersionUID = 1L; @Override protected User load() { LoggerFactory.getLogger(this.getClass()).debug(should be loading {}, object); return new UserJpaController().findUser(object.getId()); } }; } The DataTable then uses PropertyColumns to get the values. Is this right? Because I'm 40:60 sure it ain't. Regards, - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
back-button causes Wicket state and page displayed to be out of synch
I have encountered the following serious issue: My application consists of one WebPage which has an AjaxTabbedPanel. Each tab has an associated panel which includes several menu items (links) which can be selected. This works well. However, if the user selects the back-button (once back, then once forward) they can come back to the page with a different tab displayed than the one selected before the back-button was used. If a menu link is then clicked on, an exception is thrown. This appears to be because the Wicket on the server is now out of synch with the html displayed. Wicket thinks a different panel is selected than the one the user sees now. This appears to be a fundamental Wicket problem/issue - apart from disabling the back button, what are the available approaches? Here is the stacktrace: WicketMessage: org.apache.wicket.WicketRuntimeException: component tabs:panel:subItem_account_balance_summary not found on page com.drf.hapoalim.gui.menus.TabsDefinitionPage[id = 8], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] Root cause: org.apache.wicket.WicketRuntimeException: component tabs:panel:subItem_account_balance_summary not found on page com.drf.hapoalim.gui.menus.TabsDefinitionPage[id = 8], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:426) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:471) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:144) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke(HttpRequestOperationCollectionValve.java:60) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:379) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637) Complete stack: org.apache.wicket.protocol.http.request.InvalidUrlException: org.apache.wicket.WicketRuntimeException: component tabs:panel:subItem_account_balance_summary not found on page com.drf.hapoalim.gui.menus.TabsDefinitionPage[id = 8], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:262) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/back-button-causes-Wicket-state-and-page-displayed-to-be-out-of-synch-tp3006971p3006971.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: back-button causes Wicket state and page displayed to be out of synch
Wicket does not support back button for Ajax application out of the box. Search in Google/Nabble for suggestions how to make it working for your application. On Fri, Oct 22, 2010 at 12:53 PM, drf davidrfi...@gmail.com wrote: I have encountered the following serious issue: My application consists of one WebPage which has an AjaxTabbedPanel. Each tab has an associated panel which includes several menu items (links) which can be selected. This works well. However, if the user selects the back-button (once back, then once forward) they can come back to the page with a different tab displayed than the one selected before the back-button was used. If a menu link is then clicked on, an exception is thrown. This appears to be because the Wicket on the server is now out of synch with the html displayed. Wicket thinks a different panel is selected than the one the user sees now. This appears to be a fundamental Wicket problem/issue - apart from disabling the back button, what are the available approaches? Here is the stacktrace: WicketMessage: org.apache.wicket.WicketRuntimeException: component tabs:panel:subItem_account_balance_summary not found on page com.drf.hapoalim.gui.menus.TabsDefinitionPage[id = 8], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] Root cause: org.apache.wicket.WicketRuntimeException: component tabs:panel:subItem_account_balance_summary not found on page com.drf.hapoalim.gui.menus.TabsDefinitionPage[id = 8], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:426) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:471) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:144) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke(HttpRequestOperationCollectionValve.java:60) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:379) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637) Complete stack: org.apache.wicket.protocol.http.request.InvalidUrlException: org.apache.wicket.WicketRuntimeException: component tabs:panel:subItem_account_balance_summary not found on page com.drf.hapoalim.gui.menus.TabsDefinitionPage[id = 8], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:262) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/back-button-causes-Wicket-state-and-page-displayed-to-be-out-of-synch-tp3006971p3006971.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail:
Re: wicket-push upgrade to 1.4.12 ContinuationCometdServlet class not found
yes , I did not had this problem with 1.4.8, I wanted to try 1.4.12 and I got this error. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-push-upgrade-to-1-4-12-ContinuationCometdServlet-class-not-found-tp3006617p3007084.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: AjaxLazyLoadPanel IE and chrome
yes I am using jquery , the version if have is 1.4.8, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-IE-and-chrome-tp3006112p3007091.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AjaxTabbedPanel and location line
Hi, guys. I've got one page that contains AjaxTabbedPanel component. Each ITab contains AjaxTabbedPanel. So, page contains tabs and subtabs. When different tabs selected, location path isn't changed. Could you suggest me how to change location for every selected tab? For example, there are 'tab1' and 'tab2'. 'tab1' contains 'subtab1' and 'subtab2', The same for 'tab2'. I'd like it to work as following: when user selects tab1/subtab1 location line would contain http://domain.com/tab1/subtab2, when user selects tab2/subtab1 location line would contain http://domain.com/tab2/subtab1, etc. Also, it would be great if user types http://domain.com/tab2/subtab1 in location line and appropriated tab would be opened. Any idea how to make this? Best regards, Alexander.
Re: wicket-push upgrade to 1.4.12 ContinuationCometdServlet class not found
Hi, The wicketstuff push in 1.4.8 used jetty 6 (with the org.mortbay... package naming) where as the 1.4.12 release uses jetty 7 (with the org.eclipse.jetty ... package naming. I don't think the exact class you are looking for exists anymore. Here is the relevant section from the push-examples/src/main/webapp/WEB-INF/web.xml for configuring the servlet: servlet servlet-namecometd/servlet-name servlet-classorg.cometd.server.CometdServlet/servlet-class init-param param-nametimeout/param-name param-value15000/param-value /init-param init-param param-namemulti-timeout/param-name param-value1500/param-value /init-param init-param param-nameverbose/param-name param-valuefalse/param-value /init-param load-on-startup1/load-on-startup /servlet There are probably other differences. You should check out the push-examples from svn and see what else has changed. Regards, Mike yes , I did not had this problem with 1.4.8, I wanted to try 1.4.12 and I got this error. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
sending ajax response part by part
Hi all; username.add(new AjaxFormComponentUpdatingBehavior(onblur) { @Override public void onUpdate(AjaxRequestTarget target) { String thisUsername = username.getModelObject(); username.add(new SimpleAttributeModifier(class, thinking)); // I need repaint target.addComponent(username); // It doesn't work // long process try { Thread.sleep(2000); } catch (Exception ex) { } // the result so i need to repaint and send to user again if (ArrayUtils.contains(takenUsernames, thisUsername)) { username.add(new SimpleAttributeModifier(class, approved)); } else { username.add(new SimpleAttributeModifier(class, denied)); } target.addComponent(username); } }); How can i send Ajax response part by part; before long process i want to change css and send it to user, after process i again want to send Ajax response in one method. Is it possible ? Thanks.
Re: AjaxLazyLoadPanel IE and chrome
I bet even John Resig doesn't use 1.4.*8* :-) On Fri, Oct 22, 2010 at 2:14 PM, fachhoch fachh...@gmail.com wrote: yes I am using jquery , the version if have is 1.4.8, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-IE-and-chrome-tp3006112p3007091.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxTabbedPanel and location line
Changing the location will reload the page. The only part that can be changed is the location.hash: #something via javascript. On Fri, Oct 22, 2010 at 2:26 PM, Alexander Monakhov domin...@gmail.comwrote: Hi, guys. I've got one page that contains AjaxTabbedPanel component. Each ITab contains AjaxTabbedPanel. So, page contains tabs and subtabs. When different tabs selected, location path isn't changed. Could you suggest me how to change location for every selected tab? For example, there are 'tab1' and 'tab2'. 'tab1' contains 'subtab1' and 'subtab2', The same for 'tab2'. I'd like it to work as following: when user selects tab1/subtab1 location line would contain http://domain.com/tab1/subtab2, when user selects tab2/subtab1 location line would contain http://domain.com/tab2/subtab1, etc. Also, it would be great if user types http://domain.com/tab2/subtab1 in location line and appropriated tab would be opened. Any idea how to make this? Best regards, Alexander.
Re: sending ajax response part by part
No. The parsing on the client part (wicket-ajax.js) will not start until the whole XML response is delivered. You can use AjaxTimerBehavior to check whether the *slow* calculation is finished and then deliver its response 2010/10/22 Altuğ Bilgin Altıntaş alt...@gmail.com Hi all; username.add(new AjaxFormComponentUpdatingBehavior(onblur) { @Override public void onUpdate(AjaxRequestTarget target) { String thisUsername = username.getModelObject(); username.add(new SimpleAttributeModifier(class, thinking)); // I need repaint target.addComponent(username); // It doesn't work // long process try { Thread.sleep(2000); } catch (Exception ex) { } // the result so i need to repaint and send to user again if (ArrayUtils.contains(takenUsernames, thisUsername)) { username.add(new SimpleAttributeModifier(class, approved)); } else { username.add(new SimpleAttributeModifier(class, denied)); } target.addComponent(username); } }); How can i send Ajax response part by part; before long process i want to change css and send it to user, after process i again want to send Ajax response in one method. Is it possible ? Thanks.
Re: wicket-push upgrade to 1.4.12 ContinuationCometdServlet class not found
please give me the svn repostiroy url for 1.4.12 wicket-push examples or url to download wicket-push 1.4.12 examples -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-push-upgrade-to-1-4-12-ContinuationCometdServlet-class-not-found-tp3006617p3007228.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-push upgrade to 1.4.12 ContinuationCometdServlet class not found
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jdk-1.6-parent/push-parent/push-examples This is current trunk. They are similar. navigate to branches to get 1.4.12 if you need them exactly On Fri, Oct 22, 2010 at 3:40 PM, fachhoch fachh...@gmail.com wrote: please give me the svn repostiroy url for 1.4.12 wicket-push examples or url to download wicket-push 1.4.12 examples -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-push-upgrade-to-1-4-12-ContinuationCometdServlet-class-not-found-tp3006617p3007228.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-push upgrade to 1.4.12 ContinuationCometdServlet class not found
resolved the servlet issue, but found new problem. the same code I have used to work with wicket-push1.4.8 after upgrading to 1.4.12 I got this error 2010-10-22 10:31:08,270 [qtp27288505-25] ERROR org.apache.wicket.RequestCycle - java.lang.NullPointerException at org.wicketstuff.push.cometd.CometdService.publish(CometdService.java:156) at gov.hhs.acf.web.pages.common.AuditProgramTaskPage$ProgramTaskPublisher.publish(AuditProgramTaskPage.java:115) at gov.hhs.acf.web.pages.auditprogram.GoReviewDocumentsPage$ReturnCommentsModalWindow$2.onClose(GoReviewDocumentsPage.java:246) at org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow$WindowClosedBehavior.respond(ModalWindow.java:959) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:317) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:493) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:924) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:860) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:335) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:588) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1029) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:549) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:211) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:418) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:476) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:619) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-push-upgrade-to-1-4-12-ContinuationCometdServlet-class-not-found-tp3006617p3007295.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GridView for A-Symmetric tables - issues
Arjun Dhar wrote: Hi, I've solved this problem by writing a new implementation of DataViewBase. GridView did not seem appropriate to simply extend due to a few reasons. (It assumes Symmetry for the most in its code). This Code can merge areas within the GRID and extract data from the data model accordingly and can be further customized for Assymetric Grids. I want to submit this code for review and then into the code base. What is the process? Note: This code was over 1.4.9 so I'll take the latest update to see if there are any changes I need to factor in, but in the mean time lemme know! Hi, could you share the code :) ? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/GridView-for-A-Symmetric-tables-issues-tp2953859p3007330.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
HeaderContributor wicket 1.5 dissapeared?
Hello! I have a short question. Does IHeaderContributor interface dissapeared in wicket 1.5 version? Or only dissapeared HeaderContributor class? I'm ussing headerContributor to add javascript code in header and if it's true I don't know how to migrate. I use it for GoogleMaps javascript code. Thanks! Bye
Re: HeaderContributor wicket 1.5 dissapeared?
https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-ComponentandIBehaviorimplementIHeaderContributor On Fri, Oct 22, 2010 at 4:53 PM, Tito njyt...@gmail.com wrote: Hello! I have a short question. Does IHeaderContributor interface dissapeared in wicket 1.5 version? Or only dissapeared HeaderContributor class? I'm ussing headerContributor to add javascript code in header and if it's true I don't know how to migrate. I use it for GoogleMaps javascript code. Thanks! Bye
Re: HeaderContributor wicket 1.5 dissapeared?
Thank you! It is easyer that I'm hoped! 2010/10/22 Martin Grigorov mgrigo...@apache.org https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-ComponentandIBehaviorimplementIHeaderContributor On Fri, Oct 22, 2010 at 4:53 PM, Tito njyt...@gmail.com wrote: Hello! I have a short question. Does IHeaderContributor interface dissapeared in wicket 1.5 version? Or only dissapeared HeaderContributor class? I'm ussing headerContributor to add javascript code in header and if it's true I don't know how to migrate. I use it for GoogleMaps javascript code. Thanks! Bye
Fwd: Nested CompoundModel
Hi, I am doing on form which consists of multiple panels and data object hierarchy to them. For example: class Data1 { Data2 data2; } class Data2 { Data3 data3; } class Data3 { String str; } class MyForm extends Form{ public MyForm(id, model){ super(id, model); this.add(new MyPanel(id2, new CompoundPropertyModel(this.getModelObject().getData2()); } } and very simillar in MyPanel with data3 object, but... I have problem with updating my data model wicket always throw WickedMessage: Attempted to set property value on a null object. Do anyone know how to solve this? Thanks for help Jan Ferko
Re: Fwd: Nested CompoundModel
Hi Jan, when are data2 and data3 initialized? They seems to be null when you put up your models. Most of the time it's a bad idea to pull something out of a model and put it back into another model. Do this instead: this.add(new MyPanel(id2, new PropertyModel(model, data2))); Then in MyPanel: public MyPanel(id, model){ super(id, new CompoundPropertyModel(model)); This has the following advantages: - MyPanel's model is always in sync with the model of MyForm. - MyPanel's usage of CompoundPropertyModel is hidden from the outside. If MyPanel want's to utilize a CompoundPropertyModel (because it doesn't set the model on its contained components), it should set it up by itself. HTH Sven On 10/22/2010 06:29 PM, Jan Ferko wrote: Hi, I am doing on form which consists of multiple panels and data object hierarchy to them. For example: class Data1 { Data2 data2; } class Data2 { Data3 data3; } class Data3 { String str; } class MyForm extends Form{ public MyForm(id, model){ super(id, model); this.add(new MyPanel(id2, new CompoundPropertyModel(this.getModelObject().getData2()); } } and very simillar in MyPanel with data3 object, but... I have problem with updating my data model wicket always throw WickedMessage: Attempted to set property value on a null object. Do anyone know how to solve this? Thanks for help Jan Ferko - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Fwd: Nested CompoundModel
On Fri, Oct 22, 2010 at 11:38 AM, Sven Meier s...@meiers.net wrote: Hi Jan, when are data2 and data3 initialized? They seems to be null when you put up your models. Most of the time it's a bad idea to pull something out of a model and put it back into another model. Do this instead: this.add(new MyPanel(id2, new PropertyModel(model, data2))); Then in MyPanel: public MyPanel(id, model){ super(id, new CompoundPropertyModel(model)); This has the following advantages: - MyPanel's model is always in sync with the model of MyForm. - MyPanel's usage of CompoundPropertyModel is hidden from the outside. If MyPanel want's to utilize a CompoundPropertyModel (because it doesn't set the model on its contained components), it should set it up by itself. HTH Sven Sven is spot-on, and this method he showed you above will absolutely save you some bugs down the road! Thanks Sven!! -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: wicket-push upgrade to 1.4.12 ContinuationCometdServlet class not found
As Michael pointed out; after version 1.4.11 we upgraded to version 2.0 of cometd and replaced the dojo clientside code with our own implementation. I've tested most of these changes, but there may still be some kinks that need to be ironed out. Can you add an issue here: http://github.com/kryptt/wicket-push/issues A quick-start would go a long in fixing / identifying the issue On Fri, 2010-10-22 at 07:32 -0700, fachhoch wrote: resolved the servlet issue, but found new problem. the same code I have used to work with wicket-push1.4.8 after upgrading to 1.4.12 I got this error 2010-10-22 10:31:08,270 [qtp27288505-25] ERROR org.apache.wicket.RequestCycle - java.lang.NullPointerException at org.wicketstuff.push.cometd.CometdService.publish(CometdService.java:156) at gov.hhs.acf.web.pages.common.AuditProgramTaskPage$ProgramTaskPublisher.publish(AuditProgramTaskPage.java:115) at gov.hhs.acf.web.pages.auditprogram.GoReviewDocumentsPage$ReturnCommentsModalWindow$2.onClose(GoReviewDocumentsPage.java:246) at org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow$WindowClosedBehavior.respond(ModalWindow.java:959) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:317) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:493) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:924) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:860) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:335) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:588) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1029) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:549) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:211) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:418) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:476) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:619)
Re: Wicket Merchandise store back in action
ok i'll look into it.. 2010/10/21 Jeremy Thomerson jer...@wickettraining.com Nino, I want a Wicket sticker that I can stick on the back of my laptop display! On Mon, Oct 13, 2008 at 7:31 AM, Nino Saturnino Martinez Vazquez Wael nino.marti...@jayway.dk wrote: Hi Guys The store are open again, now with permission from Apache. And yes the BIB are back:) Please say if there are missing some products or something.. Knock yourself out: http://www.cafepress.com/apachewicket -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: Wicket Merchandise store back in action
and great idea :) 2010/10/22 nino martinez wael nino.martinez.w...@gmail.com ok i'll look into it.. 2010/10/21 Jeremy Thomerson jer...@wickettraining.com Nino, I want a Wicket sticker that I can stick on the back of my laptop display! On Mon, Oct 13, 2008 at 7:31 AM, Nino Saturnino Martinez Vazquez Wael nino.marti...@jayway.dk wrote: Hi Guys The store are open again, now with permission from Apache. And yes the BIB are back:) Please say if there are missing some products or something.. Knock yourself out: http://www.cafepress.com/apachewicket -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: Wicket Merchandise store back in action
done and say if its ok 2010/10/22 nino martinez wael nino.martinez.w...@gmail.com and great idea :) 2010/10/22 nino martinez wael nino.martinez.w...@gmail.com ok i'll look into it.. 2010/10/21 Jeremy Thomerson jer...@wickettraining.com Nino, I want a Wicket sticker that I can stick on the back of my laptop display! On Mon, Oct 13, 2008 at 7:31 AM, Nino Saturnino Martinez Vazquez Wael nino.marti...@jayway.dk wrote: Hi Guys The store are open again, now with permission from Apache. And yes the BIB are back:) Please say if there are missing some products or something.. Knock yourself out: http://www.cafepress.com/apachewicket -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Wicket 1.5: IPageFactory and IAuthorizationStrategy.isInstantiationAuthorized related question
Hi, wicket 1.4.x IPageFactory has a method: C extends Page Page newPage(final ClassC pageClass); wicket 1.4.x IAuthorizationStrategy has a method: T extends Component boolean isInstantiationAuthorized(ClassT componentClass); So, i was implementing IPageFactory.newPage(...) and such action was correct: public C extends Page Page newPage(final ClassC pageClass) { if (!Session.get().getAuthorizationStrategy().isInstantiationAuthorized(pageClass)){ -- everything is fine } ... } Now what we have in wicket 1.5: IPageFactory has a method: C extends IRequestablePage IRequestablePage newPage(final ClassC pageClass); IAuthorizationStrategy has a method: T extends Component boolean isInstantiationAuthorized(ClassT componentClass); So, i am implementing IPageFactory.newPage(...) and such implementation is not correct anymore: public C extends Page Page newPage(final ClassC pageClass) { if (!Session.get().getAuthorizationStrategy().isInstantiationAuthorized(pageClass)){ -- this does not compile } ... } Bound mismatch: The generic method isInstantiationAuthorized(ClassT) of type IAuthorizationStrategy is not applicable for the arguments (ClassC). The inferred type C is not a valid substitute for the bounded parameter T extends Component Does anybody know how to solve such issue? Thanks;) -- Regards, Vytautas Racelis --- phone:+370-600-34389 www.xaloon.org www.allcarindex.com www.leenle.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Merchandise store back in action
Just bought one. On Fri, Oct 22, 2010 at 12:52 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: done and say if its ok 2010/10/22 nino martinez wael nino.martinez.w...@gmail.com and great idea :) 2010/10/22 nino martinez wael nino.martinez.w...@gmail.com ok i'll look into it.. 2010/10/21 Jeremy Thomerson jer...@wickettraining.com Nino, I want a Wicket sticker that I can stick on the back of my laptop display! On Mon, Oct 13, 2008 at 7:31 AM, Nino Saturnino Martinez Vazquez Wael nino.marti...@jayway.dk wrote: Hi Guys The store are open again, now with permission from Apache. And yes the BIB are back:) Please say if there are missing some products or something.. Knock yourself out: http://www.cafepress.com/apachewicket -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org* -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: Wicket 1.5: IPageFactory and IAuthorizationStrategy.isInstantiationAuthorized related question
On Fri, Oct 22, 2010 at 7:59 PM, Vytautas Racelis turi...@gmail.com wrote: Hi, wicket 1.4.x IPageFactory has a method: C extends Page Page newPage(final ClassC pageClass); wicket 1.4.x IAuthorizationStrategy has a method: T extends Component boolean isInstantiationAuthorized(ClassT componentClass); So, i was implementing IPageFactory.newPage(...) and such action was correct: public C extends Page Page newPage(final ClassC pageClass) { if (!Session.get().getAuthorizationStrategy().isInstantiationAuthorized(pageClass)){ -- everything is fine } ... } Now what we have in wicket 1.5: IPageFactory has a method: C extends IRequestablePage IRequestablePage newPage(final ClassC pageClass); IAuthorizationStrategy has a method: T extends Component boolean isInstantiationAuthorized(ClassT componentClass); So, i am implementing IPageFactory.newPage(...) and such implementation is not correct anymore: public C extends Page Page newPage(final ClassC pageClass) { if (!Session.get().getAuthorizationStrategy().isInstantiationAuthorized(pageClass)){ -- this does not compile } ... } Bound mismatch: The generic method isInstantiationAuthorized(ClassT) of type IAuthorizationStrategy is not applicable for the arguments (ClassC). The inferred type C is not a valid substitute for the bounded parameter T extends Component Does anybody know how to solve such issue? I know :-) We need to use IRequestableComponent instead. Thanks;) -- Regards, Vytautas Racelis --- phone:+370-600-34389 www.xaloon.org www.allcarindex.com www.leenle.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GridView for A-Symmetric tables - issues
Hi, sorry was really busy with stuff and I didnt no want to put the code into JIRA or anywhere till I cleaned it out aor matured it enough for the more senior members to do code review. But who can say No to a thirsty man :)) ..so I've made some changes all over but the most important change is in the following snipped I'm putting here. I've used this extensively and tested it though to be COMMIT grade I need to do more diligence (it has some TODOs and isnt very Tidy ATM). Just a Disclaimer. For now here goes :) /** * Support A-Symmetric Grid Views. A verbatim copy of {...@link GridView} in most places; except those that required tweaking and were * proving weird to override cleanly. * * * Issues with {...@link GridView} that make it unfit for extension:br / * * The {...@link GridView} class assumes Symmetry of Rows x Cols. In addition due to certain * non standardized API methods being final or private the setRows() setCols() have been overriden * completely to circumvent the use of {...@link GridView#updateItemsPerPage} (which uses internalSetRowsPerPage) * , the name of the method is not appropriate and in the future should be able to override it with * asymmetric implementations. (perhaps they had that for standard Loop scenarios and re-used the same method so the name stuck!) * * Also, columns rows is private. If getters setters of columns rows were simple bean methods those could have been used. * But since they involve complex logic that requires visibility of the variables this too becomes unfit for consumption. * * @author Arjun Dhar * * @param T */ public abstract class AssymetricGridViewT extends DataViewBaseT { /** * The Grid here is not a regular Symmetrical Grid; hence overriding * certain aspects of Grid. To know which Item is part of Merged space */ abstract protected boolean currentCellMerged(int currentRow, int currentCol); /** * The Grid here is not a regular Symmetrical Grid; hence overriding * certain aspects of Grid. To know which Item is part of Merged space and * should not pick content from the specified {...@link IDataProvider}. */ abstract protected boolean currentCellEmpty(int currentRow, int currentCol); /** * NOTE CHANGE : Accounts for Assymetrical Structures * @param items as {...@link Iterator Item T } */ @Override protected void addItems(IteratorItemT items) { if (items.hasNext()) { final int cols = getColumns(); //int row = 0; //do - original impl does not restrict on basis of rows but item length //allRows : Boolean type, if All rows from DataProvider are demanded. Like View All scenario for (int row=0; ( (!allRows rowgetRows()) || (allRows items.hasNext()) ); row++) { // Build a row Item? rowItem = newRowItem(newChildId(), row); RepeatingView rowView = new RepeatingView(cols); //Added Attribute Modifiers/Decorators : TODO: Abstract out perhaps rowItem.add(new SimpleAttributeModifier(id, productRow+row)); rowItem.add(rowView); add(rowItem); // Populate the row for (int col = 0; col cols; col++) { final ItemT cellItem; if (items.hasNext() !currentCellEmpty(row, col)) { //Line Added--- Change cellItem = items.next(); if (cellItem != null) { //TODO: hack: Due to assymetrical nature, the pagination count is limiting it to the Symmetric //Hence certain items are getting trimmed towards the end. The Data Model will include nulls to match //Symmetry. Those nulls will be ignored by the implementation. //Attribute Modifiers/Decorators Added customizeCell(cellItem, row, col); //Just custom decoration if required if (currentCellMerged(row, col)) {
Re: Wicket 1.5: IPageFactory and IAuthorizationStrategy.isInstantiationAuthorized related question
Update to r1026443 and should be better On Fri, Oct 22, 2010 at 8:18 PM, Martin Grigorov mgrigo...@apache.orgwrote: On Fri, Oct 22, 2010 at 7:59 PM, Vytautas Racelis turi...@gmail.comwrote: Hi, wicket 1.4.x IPageFactory has a method: C extends Page Page newPage(final ClassC pageClass); wicket 1.4.x IAuthorizationStrategy has a method: T extends Component boolean isInstantiationAuthorized(ClassT componentClass); So, i was implementing IPageFactory.newPage(...) and such action was correct: public C extends Page Page newPage(final ClassC pageClass) { if (!Session.get().getAuthorizationStrategy().isInstantiationAuthorized(pageClass)){ -- everything is fine } ... } Now what we have in wicket 1.5: IPageFactory has a method: C extends IRequestablePage IRequestablePage newPage(final ClassC pageClass); IAuthorizationStrategy has a method: T extends Component boolean isInstantiationAuthorized(ClassT componentClass); So, i am implementing IPageFactory.newPage(...) and such implementation is not correct anymore: public C extends Page Page newPage(final ClassC pageClass) { if (!Session.get().getAuthorizationStrategy().isInstantiationAuthorized(pageClass)){ -- this does not compile } ... } Bound mismatch: The generic method isInstantiationAuthorized(ClassT) of type IAuthorizationStrategy is not applicable for the arguments (ClassC). The inferred type C is not a valid substitute for the bounded parameter T extends Component Does anybody know how to solve such issue? I know :-) We need to use IRequestableComponent instead. Thanks;) -- Regards, Vytautas Racelis --- phone:+370-600-34389 www.xaloon.org www.allcarindex.com www.leenle.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxLazyLoadPanel load asynchronously
On Fri, Oct 22, 2010 at 1:07 PM, fachhoch fachh...@gmail.com wrote: I have a datatable each row has a AjaxLazyLoadPanel. When the page is loading I see each Ajaxlazyloadpanel from each row loads in order from top to bottom, can I make is asynchronous? I doubt it. Each will be in the same pagemap, which is being locked on. You would have to get them in different pagemaps, like by using an iframe for each. I have to ask, though, if that many lazy-loading panels on a page is good from a UI perspective? And it certainly isn't good from a server load perspective. -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
ArrayList, Label and Model
Hi, I am trying to make an ArrayList, populate it and then display them [and do other stuff later, but I did not get so far]. It does not work though, so what I am missing? My code looks like that: ... ArrayListDouble house_cost = new ArrayListDouble(5); ... [adding some data here] [form] add(new Label(houses_goldcost, new PropertyModel(this, house_cost.get(4; ... I am of course getting the generic no get method defined for class error, so I must be doing something wrong. What is the correct way to get just one cell from ArrayList and display it with a Label? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ArrayList-Label-and-Model-tp3007849p3007849.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ArrayList, Label and Model
Hi, according to the API PropertyModel(this, house_cost.4) should work: http://wicket.apache.org/apidocs/1.4/org/apache/wicket/util/lang/PropertyResolver.html Sven Am 22.10.2010 22:39, schrieb Zeldor: Hi, I am trying to make an ArrayList, populate it and then display them [and do other stuff later, but I did not get so far]. It does not work though, so what I am missing? My code looks like that: ... ArrayListDouble house_cost = new ArrayListDouble(5); ... [adding some data here] [form] add(new Label(houses_goldcost, new PropertyModel(this, house_cost.get(4; ... I am of course getting the generic no get method defined for class error, so I must be doing something wrong. What is the correct way to get just one cell from ArrayList and display it with a Label? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5: IPageFactory and IAuthorizationStrategy.isInstantiationAuthorized related question
Thanks, update from trunk did help;) On 10/22/2010 09:47 PM, Martin Grigorov wrote: Update to r1026443 and should be better On Fri, Oct 22, 2010 at 8:18 PM, Martin Grigorovmgrigo...@apache.orgwrote: On Fri, Oct 22, 2010 at 7:59 PM, Vytautas Racelisturi...@gmail.comwrote: Hi, wicket 1.4.x IPageFactory has a method: C extends Page Page newPage(final ClassC pageClass); wicket 1.4.x IAuthorizationStrategy has a method: T extends Component boolean isInstantiationAuthorized(ClassT componentClass); So, i was implementing IPageFactory.newPage(...) and such action was correct: publicC extends Page Page newPage(final ClassC pageClass) { if (!Session.get().getAuthorizationStrategy().isInstantiationAuthorized(pageClass)){ -- everything is fine } ... } Now what we have in wicket 1.5: IPageFactory has a method: C extends IRequestablePage IRequestablePage newPage(final ClassC pageClass); IAuthorizationStrategy has a method: T extends Component boolean isInstantiationAuthorized(ClassT componentClass); So, i am implementing IPageFactory.newPage(...) and such implementation is not correct anymore: publicC extends Page Page newPage(final ClassC pageClass) { if (!Session.get().getAuthorizationStrategy().isInstantiationAuthorized(pageClass)){ -- this does not compile } ... } Bound mismatch: The generic method isInstantiationAuthorized(ClassT) of type IAuthorizationStrategy is not applicable for the arguments (ClassC). The inferred type C is not a valid substitute for the bounded parameterT extends Component Does anybody know how to solve such issue? I know :-) We need to use IRequestableComponent instead. Thanks;) -- Regards, Vytautas Racelis --- phone:+370-600-34389 www.xaloon.org www.allcarindex.com www.leenle.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards, Vytautas --- phone:+370-600-34389 www.xaloon.org www.allcarindex.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5: IPageFactory and IAuthorizationStrategy.isInstantiationAuthorized related question
It would be great to have the same with org.apache.wicket.authorization.UnauthorizedInstantiationException, which currently uses Component: public T extends Component UnauthorizedInstantiationException(final ClassT componentClass) On 10/22/2010 09:47 PM, Martin Grigorov wrote: Update to r1026443 and should be better -- Regards, Vytautas --- phone:+370-600-34389 www.xaloon.org www.allcarindex.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ArrayList, Label and Model
Nope, it still does not work, so it must be something else. I have tried searching here, but I have only found people using ArrayList as whole, for dropdownmenus etc, not pointing to one specific data. It should be quite simple... On Fri, Oct 22, 2010 at 11:17 PM, Sven Meier [via Apache Wicket] ml-node+3007899-704217102-152...@n4.nabble.comml-node%2b3007899-704217102-152...@n4.nabble.com wrote: Hi, according to the API PropertyModel(this, house_cost.4) should work: http://wicket.apache.org/apidocs/1.4/org/apache/wicket/util/lang/PropertyResolver.html Sven Am 22.10.2010 22:39, schrieb Zeldor: Hi, I am trying to make an ArrayList, populate it and then display them [and do other stuff later, but I did not get so far]. It does not work though, so what I am missing? My code looks like that: ... ArrayListDouble house_cost = new ArrayListDouble(5); ... [adding some data here] [form] add(new Label(houses_goldcost, new PropertyModel(this, house_cost.get(4; ... I am of course getting the generic no get method defined for class error, so I must be doing something wrong. What is the correct way to get just one cell from ArrayList and display it with a Label? - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3007899i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3007899i=1 -- View message @ http://apache-wicket.1842946.n4.nabble.com/ArrayList-Label-and-Model-tp3007849p3007899.html To unsubscribe from ArrayList, Label and Model, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=3007849code=cGdyb25raWV3aWN6QGdtYWlsLmNvbXwzMDA3ODQ5fC0xMTUwMjA4NDM=. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ArrayList-Label-and-Model-tp3007849p3007950.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ArrayList, Label and Model
On Fri, Oct 22, 2010 at 4:17 PM, Sven Meier s...@meiers.net wrote: according to the API PropertyModel(this, house_cost.4) should work: try new PropertyModel(this, house_cost[4]) -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: back-button causes Wicket state and page displayed to be out of synch
Check wicketstuff's jquery project for HistoryAjaxBehavior. May be it helps. drf wrote: I have encountered the following serious issue: My application consists of one WebPage which has an AjaxTabbedPanel. Each tab has an associated panel which includes several menu items (links) which can be selected. This works well. However, if the user selects the back-button (once back, then once forward) they can come back to the page with a different tab displayed than the one selected before the back-button was used. If a menu link is then clicked on, an exception is thrown. This appears to be because the Wicket on the server is now out of synch with the html displayed. Wicket thinks a different panel is selected than the one the user sees now. This appears to be a fundamental Wicket problem/issue - apart from disabling the back button, what are the available approaches? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/back-button-causes-Wicket-state-and-page-displayed-to-be-out-of-synch-tp3006971p3008140.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ArrayList, Label and Model
Can you try PropertyModel(this, house_cost[4])? Ernesto On Fri, Oct 22, 2010 at 10:39 PM, Zeldor pgronkiew...@gmail.com wrote: Hi, I am trying to make an ArrayList, populate it and then display them [and do other stuff later, but I did not get so far]. It does not work though, so what I am missing? My code looks like that: ... ArrayListDouble house_cost = new ArrayListDouble(5); ... [adding some data here] [form] add(new Label(houses_goldcost, new PropertyModel(this, house_cost.get(4; ... I am of course getting the generic no get method defined for class error, so I must be doing something wrong. What is the correct way to get just one cell from ArrayList and display it with a Label? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ArrayList-Label-and-Model-tp3007849p3007849.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org