Re: [Wicket-user] WicketTester and mocking up next page rendered.
On Fri, 20 Jul 2007, Craig Lenzen wrote: And how are you overriding the goToPageB method in the test? Using WicketTester you never actually create an instance of PageB, that is you as the developer. Like this, in 1.3 wicket.startPage(new ITestPageSource(){ public Page getTestPage() { return new PageA()... } though I'm not sure if it's in 1.2. There's also TestPanelSource that you can use similarly with startPanel. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Repaint single row of a DataTable
On Thu, 19 Jul 2007, ChuckDeal wrote: I am not locked into the DataTable, but I think the repeater is the best component for what I am trying to do. Is that correct? My general feeling, based on the couple of Wicket projects that I've been involved in, is that DataTable is best suited for a case where you want a fairly finished out-of-the-box implementation without a lot of custom tweaking or extra functionality. To make a grid in which you can repaint single rows I would try something that starts from more bare-bones components such as DataView and finding the relevant Items with IVisitor (operating e.g. on the DataView during the ajax request processing). We have done something similar but a bit simpler as we didn't allow editing the grid directly. Note the potential for race conditions if the user enters text and then, while the ajax request is being processed, clicks a row to be updated = boom. We worked around this by disabling the grid during ajax request processing (by using a layover being toggled by IAjaxIndicatorAware), but that cannot really be used if the grid itself is being edited and precisely editing it will toggle ajax events updating it. HTH, YMMV :) - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Submit method problem
On Mon, 16 Jul 2007, Eelco Hillenius wrote: Note that with Wicket 1.3 you configure a filter instead of a servlet and map that to /* without problems. BTW, on Websphere 6.0, we couldn't get the resource paths working with the filter on 1.3. After a while of debugging, we resorted to using the servlet as a workaround and it worked as expected (with non-empty context path). - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] WicketTester and mocking up next page rendered.
On Tue, 17 Jul 2007, Ingram Chen wrote: We also suffer the same issues here. But due to unmanaged nature of Wicket, there is no chance to intercept construction of page B unless you build your own factory for page. class Page A { MyFactory myFactory ; public Page A { add(new Link(toBPage) { setResponsePage(myFactory.newBPage()); }); } } I might do class PageA extends Page { public PageA() { add(new Link(toBPage) { @Override public void onLinkClicked() { goToPageB(); } ); } protected goToPageB() { ... and overriding goToPageB() in the test. This technique has even a fancy name in the excellent _Working Effectively with Legacy Code_ by Michael Feathers, so maybe it's a kludge to use it in non-legacy code. But it's simple and it works. - Timo - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] setVesible for the component after onEvent
On Mon, 16 Jul 2007, Igor Vaynberg wrote: try calling setoutputmarkupplaceholdertag(true) on all components you are planning to call setvisible(false) when you create them By the way, would it be a good idea to rename that method to something more descriptive such as enableAjaxUpdates()? I think that it anyway also has the side effect of calling setOutputMarkupId(true). - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax component replacement with updated Model issue
On Sun, 15 Jul 2007, Erik Dreyer wrote: Everything is working great except the 'display' component is not reflecting the saved changes. Before replacing the edit component with the display component, I'm calling setModel() on the original display component with the updated data. This has no effect visible effect. I saw that you already solved this by calling onModelChanged(). I think that if you use setModelObject() it does that call so you don't need to call it explicitly. You could also see if just using the same model instance for both edit and display component would do the trick. The equals() implementation of the model object might also affect the behavior, because as far as I remember the onModelChange-things get triggered only when !newModelObject.equals(oldModelObject). The 'display' component is itself a tree of components. Is there a prescribed way to propogate the fact that I updated the model down to all the affected child components? Is that something I have to handle myself or does the framework do that? I think that sharing the model is a common trick. Note that you can also nest models, if you e.g. need CompoundPropertyModel handling the same data that is in another kind of IModel elsewhere. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax Problem with form submit
On Fri, 06 Jul 2007, Conglun Yao wrote: 'Object expected' in html code happens when I first submit a form (no matther it is submitted from ajax button or normal button), then click the page link ( there are ajax components in this page) finally I click the ajax component, error happens. Please show us the code and the error (stack trace if any, and the full error message). - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Modifying attributes of tabs in TabbedPanel
On Wed, 04 Jul 2007, Erik Dreyer wrote: snip b) we can add this functionality to the tabbed pael in core, making it a bit more bloated. i dont mind (b) if its just adding tab1, tab2 class attributes. /snip That would be much appreciated... item.add(new AttributeAppender(class, true, new Model(tab+index), )); Or maybe there could just be a hook in the protected void populateItem(LoopItem item) method inside TabbedPanel, something like in the attached patch. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ Index: wicket-extensions/src/test/java/org/apache/wicket/extensions/markup/html/tabs/TabbedPanelTest.java === --- wicket-extensions/src/test/java/org/apache/wicket/extensions/markup/html/tabs/TabbedPanelTest.java (revision 0) +++ wicket-extensions/src/test/java/org/apache/wicket/extensions/markup/html/tabs/TabbedPanelTest.java (revision 0) @@ -0,0 +1,80 @@ +package org.apache.wicket.extensions.markup.html.tabs; + +import junit.framework.TestCase; +import org.apache.wicket.behavior.AttributeAppender; +import org.apache.wicket.markup.html.link.Link; +import org.apache.wicket.markup.html.list.Loop; +import org.apache.wicket.markup.html.panel.EmptyPanel; +import org.apache.wicket.markup.html.panel.Panel; +import org.apache.wicket.model.Model; +import org.apache.wicket.util.tester.TestPanelSource; +import org.apache.wicket.util.tester.WicketTester; + +import java.util.ArrayList; +import java.util.List; + +/** + * @author Timo Rantalaiho + */ +public class TabbedPanelTest extends TestCase { +private WicketTester wicket; + +protected void setUp() throws Exception +{ +wicket = new WicketTester(); +} + +public void testAllowsCustomCssClassesForTabs() +{ +wicket.startPanel(new TestPanelSource() { +public Panel getTestPanel(final String panelId) +{ +return new TabbedPanel(panelId, createTabs()) +{ +protected void afterPopulateItem(Loop.LoopItem item, final boolean selected, boolean last) +{ +int index = item.getIteration(); +item.add(new AttributeAppender(class, true, new Model(tab + index), )); +} +}; +} +}); +String dogsClass = class=\tab0\; +String catsClass = class=\tab1\; + +wicket.assertContains(Dogs); +wicket.assertContains(Cats); +wicket.assertContains(dogsClass); +wicket.assertContains(catsClass); + +clickCatsLink(); +wicket.assertContains(dogsClass); +wicket.assertContains(catsClass); +} + +private void clickCatsLink() +{ +TabbedPanel panel = (TabbedPanel) wicket.getComponentFromLastRenderedPage(panel); +Link catsLink = (Link) panel.get(tabs-container:tabs:1:link); +wicket.clickLink(catsLink.getPageRelativePath()); +} + +private List createTabs() +{ +List tabs = new ArrayList(); +tabs.add(createTestTab(Dogs)); +tabs.add(createTestTab(Cats)); +return tabs; +} + +private ITab createTestTab(final String title) +{ +return new AbstractTab(new Model(title)) +{ +public Panel getPanel(final String panelId) +{ +return new EmptyPanel(panelId); +} +}; +} +} Index: wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/tabs/TabbedPanel.java === --- wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/tabs/TabbedPanel.java (revision 553372) +++ wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/tabs/TabbedPanel.java (working copy) @@ -16,8 +16,6 @@ */ package org.apache.wicket.extensions.markup.html.tabs; -import java.util.List; - import org.apache.wicket.Component; import org.apache.wicket.WicketRuntimeException; import org.apache.wicket.behavior.AttributeAppender; @@ -32,7 +30,9 @@ import org.apache.wicket.model.IModel; import org.apache.wicket.model.Model; +import java.util.List; + /** * TabbedPanel component represets a panel with tabs that are used to switch * between different content panels inside the TabbedPanel panel. @@ -155,21 +155,9 @@ titleLink.add(newTitle(title, tab.getTitle(), index)); item.add(titleLink); - item.add(new SimpleAttributeModifier(class, selected) - { - private static final long serialVersionUID = 1L; - - public boolean isEnabled(Component component
Re: [Wicket-user] onSubmit() called twice
On Tue, 03 Jul 2007, Igor Vaynberg wrote: the problem here is that onchange is fired when the focus is lost from the field. so if you are on that field and you click the submit button this will result in two form-submittals that are very very close to each other. thus the double submit that you see. you should add validatingbehavior to onkeyup, and make sure to set a throttle so it doesnt flood your server. ...but with onkeyup, you don't get cut and paste mouse events, nor browser autocomplete. In 1.3.0 trunk there is the new OnChangeAjaxBehavior by Janne; we've been prototyping it and the approach seems very promising. Autocomplete is all you lose, other editing seems to work at least on Firefox 2 and IE 7. The failure of the HTML spec and browser implementations in such an essential and technically trivial thing (available since the 1980s on desktop?) is a prime example of the limitations of the web as an UI platform. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Automatic repaint of component?
On Wed, 27 Jun 2007, Thies Edeling wrote: I didn't know that. Is it unsafe to keep references to to Panels etc in a class variable of a Page? Why ? As Igor pointed out, there is not necessarily a problem. But if you replace existing components, either explicitly or by putting them in a Repeater that gets refreshed, you might end up with references to replaced components that should be garbage (because they are no longer on the page). - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Unit testing - updating a DropDownChoice with Ajax
On Mon, 25 Jun 2007, Jean-Baptiste Quenot wrote: It's a pity that you didn't mention the JIRA issue in this email thread, as it would have helped to address the problem in a timely manner, I was not sure what bug you were exactly talking about and didn't ask. Anyway now it's fixed, I discovered it is WICKET-254. Yep I noticed, thankyou very much! In fact we just discovered a workaround to a DropDownChoice ajax issue with WicketTester in our app yesterday; I was going to file an issue or talk about it here, but didn't have time yet. It was something similar to the one just discussed here, so I'll try later today whether your fix also fixes that and report. If you are aware of other bugs in WicketTester, please let us know, there is no reason why we would want to let WicketTester unmaintained, I'm sorry if you feel so. This is a great tool that No I don't, my workmate Kare seems more worried ;), and also I think that the GUIs we're doing are relatively complex with everything ajaxified and lots of dependencies between screen components. That combined with serious TDD makes the limitations of Wicket, WicketTester and our skills to surface easily. I for one will put more effort into bug reporting and making the issues reproduceable after this encouraging experience of having WICKET-254 fixed :) We have a couple of other test methods disabled because we at least think that it was due to WicketTester shortcomings, so let's see if something new comes up. Be sure that your bug reports are very valuable, it's true that Good to hear. And to make it clear I also want to say that Wicket and its community are excellent, and so is even WicketTester with its possiblle shortcomings, as it allows us to do 80-90 % of UI coding with relatively sane TDD. That's much for any kind of UI framework. Merci beaucoup, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Unit testing - updating a DropDownChoice with Ajax
On Tue, 26 Jun 2007, Timo Rantalaiho wrote: In fact we just discovered a workaround to a DropDownChoice ajax issue with WicketTester in our app yesterday; I was going to file an issue or talk about it here, but didn't have time yet. It was something similar to the one just discussed here, so I'll try later today whether your fix also fixes that and report. Yes, it's also fixed now! Before we had to do wicket.setParameterForNextRequest(dropDownChoice.getPageRelativePath(), new Integer(index)); to get wicket.executeAjaxEvent(dropDownChoice, onchange); to use the model value of choice index within the choices. Now we can do the more normal (albeit in this case more verbose) wicket.newFormTester(getForm().getPageRelativePath()).select(dropDownChoice, index); Before, wicket.executeAjaxEvent() and FormTester seemed to use separate requests (and thus the values set by FormTester never ended up in the ajax request), but it seems that your fix makes FormTester to work better with ajax. Rock! - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Automatic repaint of component?
On Mon, 25 Jun 2007, Thies Edeling wrote: Say I have panel A and panel B each basing their output on the same model. When panel B updates the model through an ajax request, is it possible to have panel A refresh automatically without explicitly adding it to an AjaxRequestTarget ? If the update is just being done with ajax, I don't understand how the HTML of panel A could be updated without it being added to AjaxRequestTarget, refreshing model or not. Why don't you want to add panel A to the target? Often it is easy enough to find the component in the update, e.g. by using a marker interface and visitChildren / findParent. If you show us some code maybe we can give more specific help. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] javascript error 'too much recursion ' ifcalendar.js is included more than once
On Tue, 26 Jun 2007, Nili Adoram wrote: I am afraid I cannot upgrade at the moment since we don't have the time for massive API changes of 1.3. 1.2.2 is really ancient, you should use 1.2.6. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Automatic repaint of component?
On Tue, 26 Jun 2007, Igor Vaynberg wrote: interface IModelListener { onSet(IModel model) } class ModelMonitor implements IModel { private final IModel delegate; private ListIModelListener listeners; ... That's an interesting approach. Is it OK to keep references to Component instances like that? We've thought that it would be safer to always get the components dynamically, so that you wouldn't get the danger of stale references. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Refresh page after form submit within ModalWindow
On Tue, 26 Jun 2007, Tauren Mills wrote: 2. Use AJAX to refresh just MyDataView Have you tried adding a placeholder container around your DataView and refreshing that with ajax instead? I'm not sure but I think that Repeaters used to need that if you wanted to update them via AJAX. Have you checked that the DataProvider of your DataView gets called (and returns the new item)? - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row
On Sun, 24 Jun 2007, Peter Thomas wrote: I haven't used repeaters that much, but would newItem() be the right way to create a new Item? Anyway, I am now stuck because to ensure that the id of the DOM element is same as the newly created item, I have to call getMarkupId() on the item then I get the exception This component is not (yet) coupled to a page Help! Are you sure it's going to be a problem to update the whole Repeater? Because if not, your whole work of dynamic DOM appending might turn out to be premature optimisation. Maybe you can override getMarkupId() for your item components to return e.g. myId + domainObject.getdId() or something such. (Btw, now that we're on it, all-numeric ids that repeaters produce by default are invalid HTML. Maybe I should file a Jira issue about that.) - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row
On Sun, 24 Jun 2007, Timo Rantalaiho wrote: Maybe you can override getMarkupId() for your item components to return e.g. myId + domainObject.getdId() or something myId- + domainObject.getId() surely. - Timmo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Accessing HttpSession attributes
On Fri, 22 Jun 2007, Kees de Kooter wrote: OK. So how am I going to get to the HttpSession directly? Something like ((WebRequest)getRequest). getHttpServletRequest().getSession() . Typically to find this kind of things it's a good idea to get a relevant object (webSession or WebRequest in this case) and then just use the IDE autocomplete to see what kind of methods they have. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Use HTML controls directly with no wicket:id
On Thu, 21 Jun 2007, Toscano wrote: Any ideas? Use DropDownChoice. With that you provide one model for all the choices (a list) and another model for the default selection (a single item of the same type as the list contents). - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Textfield inside RadioChoice
On Tue, 19 Jun 2007, Saad, Salma wrote: So it looks like I cannot have a textfield inside of a span. I think that in HTML, span isn't supposed to contain any tags. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] form.class - findSubmittingButton() - runtime e xception - any su ggestions?
On Wed, 20 Jun 2007, Seldon, Richard wrote: Thanks for response igor. In answer to your question, yes we've overridden isVisible to be of form :- public boolean isVisible() { return getXXX() != null; } isVisible() can be called several times during the request cycle. One optimization (?) that you could try would be to leave isVisible without overriding and do @Override public void onBeforeRender() { setVisible(getXXX() != null); super.onBeforeRender(); } instead. It's hard to say if this would affect your case, it would be interesting to understand better why your issue only occurs in load testing. Could it be an issue of state being shared incorrectly between concurrent requests? Do your load test users have separate HTTP sessions? - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How can we change a component dynamically in Wicket ?
On Thu, 21 Jun 2007, ccc rrr wrote: if (count % 2 == 0) { this.add(label); request.addComponent(label); } else { this.add(textField); request.addComponent(textField); } This is suspicious. I don't think you should add components to the hierarchy during ajax request processing, and definitely not if-else what you add when you have static markup (i.e. no repeaters). Always add both components, and set their visibility as needed. Wicket visibility controls whether the comoponent produces any markup at all, so it's stronger than HTML visibility. With ajax updates of visibility you need a placeholder to update around the component (as invisible components don't provide any markup which ajax could update). Best wishes, Timo P.S. Congratulations to Apache Wicket for graduating! -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Unit testing - updating a DropDownChoice with Ajax
On Tue, 19 Jun 2007, glr wrote: I have 2 DropDownChoice's on a form. When making a choice in the first, the choices in the second are updated using AjaxFormComponentUpdatingBehavior. (Just like in the Drop Down Choice Example of the live action Wicket Examples (http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.ChoicePage)). Could anyone tell me what the recommended way is to unit-test the above case? I tried using WicketTester with FormTester but I cannot have the model of the first DropDownChoice updated as a response to making a selection in it. As a result, when the OnEvent handler of the AjaxFormComponentUpdatingBehavior fires, it looks as if there was no selection in the first DropDownChoice. These model updates and/or ajax functionality cause a lot of problems for WicketTester in our experience. I think that you just need to make your tests more static, e.g. one test to see that the onEvent handler is called and then another one where you set the model of the first DropDownChoice beforehand. Often you have more success in the tests if you can init the models in the state to test already before firing up WicketTester. With SeleniumTestCase of Wicket Bench you can test individual components with Selenium on Firefox to complement WicketTester, which is an approach we used with success on our previous project that was on Java 5 (required by Wicket Bench). There's practically nothing that you couldn't test in Wicket like that, our ui code line coverage was well over 90 % in that project. (It's a pity that WicketTester has so many bugs or shortcomings; if I ever find the spare moment I'll try to understand how it works to be able to do better bug reports on it or even patches. Any help for getting into it is welcome!) Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Is it possible to set visibility in an IBehavior (in 1.3.0 trunk)?
Hello Wicket, We have to hide a couple of components from certain groups of users. We tried doing it with a reusable AbstractBehavior, but calling component.setVisible() in IBehavior.beforeRender() caused the good old cannot modify component hierarchy during render phase exception. There is no onBeforeRender() in IBehavior. Should it be possible for an IBehavior to control visibility (Component.isVisible(), not just HTML or CSS attributes)? The code (calling same code in all relevant isVisible() methods()) works, but it would be interesting to know if there would be a more elegant or reusable solution. We develop on 1.3.0 trunk. Visiting all relevant components (e.g. marked with an interface) from a parent might be possible too. Thanks, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Palette problem with latest snapshot
On Fri, 15 Jun 2007, shumbola wrote: A few days ago I've upgraded my project to the 1.3 snapshot from June 12. Before I was using a one from May 10. Today I noticed that my page which uses the Palette component stopped working. Anytime I launch that page it It's easier to diagnose your problem if you provide the complete source code and markup. But could it be that there has been a change in the component hierarchy of Palette, and your own markup is now incompatible with it? We always use a snapshot of the current day and have extensive JUnit tests (covering about 90% of the lines). This makes it a lot easier to notice and fix this kind of problems, as we can easily see from commits / dev / user mailing lists what is going on, and just diff the whole wicket source code when needed. A couple of days of diff is perfectly readable, but one month not. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] noob question about wicket
On Wed, 13 Jun 2007, Eelco Hillenius wrote: debugging mode ;) And while you're at it, be sure to attach the Wicket sources to your project dependencies, so that you can step into the Wicket code as well. This may be a bit intimidating at the start, but it's a great way to learn about the framework and I hope coding in general :) Attaching sources to the IDE should be a standard way of working with any open source code (or any software that you have sources of). Fortunately it's nowadays pretty easy with maven IDE integration. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] noob question about wicket
On Thu, 14 Jun 2007, Eelco Hillenius wrote: On 6/14/07, Igor Vaynberg [EMAIL PROTECTED] wrote: not quiete mvn eclipse:eclipse -DdownloadSources=true I don't have to do that anymore. Just works for me. Maybe it remembers previous source attachements or something. We put it in pom.xml in the Eclipse plugin settings. I think that you can even put it globally in settings.xml. In the maven2 IDEA plugin (also) that feature is broken, but I just download the sources with eclipse:eclipse then :/ - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hyperlinks in a label?
On Tue, 12 Jun 2007, Justin Morgan (Logic Sector) wrote: My question is: How to I create a label that displays an error message correctly, yet also contains hyperlinks within the label? Make it a WebMarkupContainer that has the logic and necessary child components. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [Question] render(final MarkupStream markupStream)
On Wed, 13 Jun 2007, Alex Objelean wrote: I found a workaround for this issue, so instead of overriding isVisible() of the bulkContainer WebMarkupContainer, I add an AttributeModifier which makes the container display:none.. I'm not sure if I got it correctly, but you're not trying to repaint an invisible container via ajax, right? To make that work you need to update the parent of the conditionally- visible component. Another thing that we have noticed is that sometimes calling setVisible() in onBeforeRender() works better than overriding isVisble() directly. Make sure you call super.onBeforeRender() in the overriding implementation. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] noob question about wicket
On Wed, 13 Jun 2007, verbal evasion wrote: yeah i got it to work. it wasnt the code, it was some maven weirdness that was going on. i have a few more questions. currently, when i login, my authentication mechanism tells me that i have successfully logged in, but it seems like the session information is not stored?? i have a print in my isVisible checks and it always says that the user variable is null. i may be returning the incorrect ResponsePage? Login should output some logging information, which wasn't shown in the output you posted. Are you sure it's being run? Also you could log setting and getting the user in your Session. this is for *one* successful login attempt. why is the constructor run so many times? also, the output is wrong. what should i be returning as the setResponsePage from the onSubmit? It's not any constructor, they are the isVisible methods of your loggedin / loggedout components. I too have noticed that isVisible() gets called several times per request, but I suppose it has its reasons. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] noob question about wicket
On Wed, 13 Jun 2007, verbal evasion wrote: i have turned on debugging for wicket.Session in log4j, but all it prints is information about pages being dirty or not. any other debugging i can use or turn on? Be sure to turn on debugging also for your own code to get log messages from there. I also like using the debugger of the IDE sometimes, like that you can easily see whether some method gets called and what's the state of the components and variables run-time. It works best if you are running just a little code at a time, e.g. a WicketTester test. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxSubmitButton changing Button's Name/Displayed Text/etc
On Tue, 12 Jun 2007, Francisco Diaz Trepat - gmail wrote: One more thing. Do I get version 1.3 through the svn? Or http://www.wicketstuff.org/maven/repository/org/apache/wicket/wicket-jdk14/ (examples one level above) - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how to provide custom messages for validation
On Tue, 12 Jun 2007, Prashant Khanal wrote: For a text field i have used NumeberValidator.minimum(1) so that validation error will be thrown when user enters 0 or less. How can i override the validation error message ( '0' must be greater than '1') ? Is there any way to provide custom valdiation message? Yep, via resource bundles. e.g. [webapplication-subclass-name].properties RequiredValidator=Field '${label}' is required LengthValidator=Field '${label}' must be between ${min} and ${max} characters http://cwiki.apache.org/WICKET/form-validation-messages.html - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Cyclic parent/child relationship
On Mon, 11 Jun 2007, James McLaughlin wrote: class MyBrainDamagedModel implements IModel ... public Object getObject() { return this; } } Turns out this an excellent way to exercise your cpu. I don't know if there is anything wicket can do to prevent the hapless user the shame and frustration of falling into such a sandtrap. Maybe a note in Yep, generic models, once that feature of the old 2.0 will be resurrected in some more fortunate version. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree testing
On Fri, 08 Jun 2007, Ingram Chen wrote: I use 1.2.6 and tester.clickLink(foo:bar:navigation:i:6:nodeLink) work for And instead of using the full path like that (which can be tedious to maintain when the component hierarchy changes) you can also use an Ivistor to access the component (and then ask its path from itself). It depends on the case which is wiser. We also use a the hardcoded path a lot in tests, but with repeaters it can get a bit fragile. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket did not make the grade.
On Tue, 05 Jun 2007, Florian Hehlen wrote: Well how about simply binding a DataView to a the Model and assume that for all wicket:id in the html template I should find a getter method in the bean? This sounds like a CompoundPropertyModel in use http://cwiki.apache.org/WICKET/more-on-models.html then you can have something like add(new Label(firstName)); add(new Label(lastName)); But if this is too much, I suppose you cannot do with a lot less in wicket. Except maybe by reading the property names with reflection from the bean :) I for one find the 1:1 mapping between wicket:ids in HTML and java code a good thing. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic-sized, sorted table
On Tue, 05 Jun 2007, Michael Irani wrote: I'm putting together a table with a dynamic number of columns. Making use of DataTable for the table and a SortableDataProvider as the data provider. The problem I'm running into is that underneath I can't use a simple POJO to setup the data structure, since there is no predefined structure for the data. The specific place in my code that gets hit by this is when I'm building the IColumn array for the DataTable instance. Any thoughts on how to modify the PropertyColumn to work with this? You can surely do a lot of tweaking by providing your own column classes etcetera, but our experience is general has been that DataTable and other very ready-made components server better as examples and in very standard uses. For more customising, you might be better off using more bare-bones components (such as DataView). Your mileage may vary. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to remove something from a page?
On Thu, 31 May 2007, Lowell Kirsh wrote: Cool. So no need to 'add' it? Yes of course. You must add to a parent every component that you want to render, otherwise it's just garbage (for the JVM). - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to remove something from a page?
On Wed, 30 May 2007, Lowell Kirsh wrote: I making a web page which contains some markup that I'd like to remove (sometimes). I imagine it would look like: ... span wicket:id=removeMeHello bW/borld/span ... Is it possible to remove this markup? new WebMarkupContainer(removeMe) { protected void onBeforeRender() { super.onBeforeRender(); setVisible(sometimesFalse()); } } - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Chicken-and-egg w/ Data Provider
On Tue, 29 May 2007, James McLaughlin wrote: The purpose of size() is to give the DataView an idea of how many pages there will be, so this really won't work. You should fetch size in a separate query as the number of orders total over all pages, and cache that. I think that in DataGridView (or something such that DataTable uses) this is already implemented, so you could have a look at that. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?
On Wed, 23 May 2007, Lec wrote: I don't think you can do that with onClick(). i verified it by writing that in wicket code. It hit error -/form]]/componentevaluate![CDATA[document.getElementById('paragraph').onClick();]]/evaluate/ajax-response We're using onclick() like that without problems. Could it be that the capital C is a problem? Otherwise I suggest that you ensure that that your getElementById returns something clickable also in Firefox. - Timo - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] setVisible on Fragment with AjaxFormComponentUpdatingBehavior
On Tue, 22 May 2007, Flavius wrote: I am trying to setVisible on a Fragment using the AjaxFormComponentUpdatingBehavior object. It doesn't seem to work. I've also tried this with a Panel and that's not working either. How does it not work? What does the Ajax debug console say? What is the error message / stack trace, if any? Looking quickly it occurs to me that maybe you should set outputMarkupId(true) to the Fragment. If this is the case, it should be obvious from the error message on Ajax debug console. - Timo -- Timo Rantalaiho +358-45-6709709 Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] xsd or dtd
On Tue, 22 May 2007, Martijn Dashorst wrote: Could you file an issue with this please? It would be nice to make the dtd work better. Sure, here it is: https://issues.apache.org/jira/browse/WICKET-587 - Timo -- Timo Rantalaiho +358-45-6709709 Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?
On Mon, 21 May 2007, Lec wrote: component. But the thing now is that, button doesn't provide any method to set an anchor. How do we do that? Override Button.onSubmit() - Timo -- Timo Rantalaiho +358-45-6709709 Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Markup inheritance in the Panel class hierarchy
On Fri, 18 May 2007, Chris Colman wrote: I know and use markup inheritance in classes derived from WebPage with great benefit. I was wondering if this same markup inheritance works at the panel level as well. Ie., Can I use markup inheritance in the markups for classes deriving from Panel class? Sure. I think it works with any Component (that has associated markup). - Timo -- Timo Rantalaiho +358-45-6709709 Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DropDownChoice with IModel and ChoiceRenderer
On Wed, 16 May 2007, Florian Hehlen wrote: (String id, IModel model, IModel choices, IChoicerenderer renderer) but I can't figure out what is the difference between the 2 IModel objects that have to be provided. If I provide twice a ref to the same object I One is the default choice, and the other is the select list. You do have wicket source in your IDE right? It should be more obvious from there. - Timo -- Timo Rantalaiho +358-45-6709709 Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Remote Address
On Sun, 06 May 2007, howzat wrote: What is the right way in Wicket to get the ip address of the client? We've done it by digging the HttpServletRequest from Wicket's own request class http://wicketframework.org/apidocs/wicket/protocol/http/servlet/ServletWebRequest.html but have no idea if this is the ideal way. -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
Also remember to have the wicket source code attached to your IDE (easy with e.g. mvn -Declipse.downloadSources=true eclipse:eclipse or idea:idea), and to have wicket-examples project open in another IDE window. With this + working on a real live project and with a little help from my friends and these mailing lists, I've been getting on pretty well. Anyway learning to use any framework is more about solving real problems by coding on it than reading stuff. I also subscribe to the user, dev and commits mailing lists and try to read the messages at least cursorily. The most problematic things (such as working with models :)) come up a lot and often with realistic examples. -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Internationalization and DropDownChoice
On Thu, 05 Apr 2007, Toscano wrote: The getCountries() method outputs the list of countries depending on the language stored in session. But if I create the DropDownChoice as you said: countries = new DropDownChoice(country, new Model() { public List getObject() { return getCountries();} }, new ChoiceRenderer (countryName, countryID)); I have a RunTimeException: java.lang.NullPointerException: List of choices is null - Was the supplied 'Choices' model empty? As far as I remember, at least in 2.0 DropDownChoice takes in two models: a list of the choices, and the initial choice. (By the way, this is an excellent example of where generics make the constructor more explicit). So double-check that you are supplying the choices correctly, and not in fact invoking a constructor that only determines the default choice. -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxMouseEventBehavior substitue in wicket-extensions 1.2.5
On Wed, 04 Apr 2007, Gohan wrote: Since the development of Wicket 2 seems to be frozen for an unknown period of time I'm trying to port my wicket 2 application to wicket 1.2.5. In in one If you already have code, wouldn't it be better to target 1.3? It is rapidly approaching 2.0: http://cwiki.apache.org/WICKET/backporting-features-from-trunk.html We'll just keep on using 2.0 until 1.4 (current 2.0 minus the add / constructor change) will come up. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Should i upgrade the wicket 2.0 snapshot?
On Thu, 15 Mar 2007, tooy li(Gmail) wrote: 1.2 and 2.0 snapshot. considering the upgrading in furture, i began my wicket travel on a snapshot of december. after three month , i have to deploy the application into production env, but the wicket 2.0 is still not release . so should I upgrade the application to the latest snapshot? I tried the snapshot of feb, and find some error. and During three months, some things have probably changed in a backwards-incompatible way in trunk. So if you haven't taken fresh snapshot in three months, it's normal that you'll have to make changes in your own code. I don't remember too well, but at least some methods were removed from IModel at some point, slf4j was introduced (though this might have been before December already) etc. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Testing repeaters
On Thu, 15 Mar 2007, Daniele Dellafiore wrote: How can I access a cell in the table? What is the path for, say, cell 1,1? Or there are other way using tester? You mean WicketTester? I suppose that you need to know the wicket component paths to use it. As Igor said, you can deduce them from the markup, but if there is any confusion, you can also get your table Component Component table = wicketTester.getComponentFromLastRenderedPage(table:path); and then inspect its children with the debugger of your IDE. This should clear any doubts of the actual paths (which, in the case of repeaters, have confused me as well). Till now I am using httpunit to test tables but I would like to test the wicket component by itself and, more over, the WebPage stays in a Modal Window and I do not know how to test a page in a modal window via httpunit. How's it going with HttpUnit? As I haven't advertised the Selenium RC integration of Wicket Bench in several weeks, here goes again: http://svn.laughingpanda.org/svn/wicket-bench/trunk/wicket-bench-test/src/test/java/test/DictionaryPanelTest.java I find it to nicely complement WicketTester (of 2.0), and like the fact that Selenium uses a real browser, unlike HttpUnit and friends. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket's questions
On Tue, 13 Mar 2007, Erik van Oosten wrote: ZedroS Schwart wrote: * Best practices for working with Hibernate and Spring, especialy regarding DAO handling and session ? http://www.databinder.net Or go for wicket-spring and normal spring-hibernate layers as you would do in any other app. This depends on the size of the project though and I have no experience of Databinder, but I wouldn't bind UI code directly to Hibernate except in a small program. -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Table with TextFields example (Dissapointed in Wicket)
On Mon, 19 Mar 2007, Udora wrote: Because of the my impression so far, I've decided to download the Wicket source and look for answers to my future questions there. Probably I'd be less productive that way but unfortunately I don't clearly see any other alternative. Quite the contrary, wicket (and any open source framework really) is always best used with the source attachments in the IDE, so that you can directly browse Wicket source code in your project. Also wicket-examples source code should be open in another IDE window for great reference. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!
On Wed, 21 Feb 2007, Niels Bo wrote: I am however *not* able to reproduce it with Sun jvm and/or when a debugger is attached! I am running it in a clean/new/default WL 8.1 SP5 installation where Jrockit is selected as JVM. Do you mean that it doesn't happen even with JRockit, when a debugger is attached? Then it could have something to do with threading (or hyperthreading), optimizing or garbage collection, all of which JRockit might do differently from the other VM. Also the debugger might produce side effects (such as calling toString() on some objects) that would prevent the bug from happenning; I have run into this sometimes when debugging (a kind of a heisenbug). It would be a good idea to automate a test that would reproduce the bug in a consistent way, if you can manage this e.g. with a load tester. Then you could enable all possible logging and see if something happens differently on the different JVMs. Also you might want to try with yet another JVM (such as IBM's or some open source); this might help in deciding whether to look for solutions within Wicket or the JVM. Another possibility is to tweak the JVM settings. I think that by default JRockit works quite differently from Sun JVM (at least Sun's client JVM). And yet another one to file a case to BEA support with a reproducable test case. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Click button in unit test
On Thu, 22 Feb 2007, Gohan wrote: I'm trying to test one of my wicket pages using WicketTester. I'd like to know how I trigger a submit button I have inside a form. I've managed to click on a Link by using wicketTester.getServletRequest().setRequestToComponent(link); wicketTester.processRequestCycle(); but this does not work on the submit button. FormTester tester = wicketTester.newFormTester(wicket:path:to:form); tester.submit(wicketIdOfButton); - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding component markup to javadoc output
On Tue, 20 Feb 2007, Aaron HIniker wrote: Ahhh.. with auto-scroll-to-source feature turned on, right? ... so you bounced to the package contents and you can select the html file right there. Yeah, that's good enough for now ;) ...or let your IDE plugin surf there from the component source (IDEA: Wicket Assistant, Shift+Alt+w, Eclipse: Wicket Bench, switch tabs with ctrl-alt-,/. (AFAIK, I don't use Eclipse)). - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] there is no way to preprocess raw markup in wicket 1.1?
On Mon, 19 Feb 2007, wouvlfe wrote: I simply want to be able to modify the values of some static paths in the raw html markup it seems that there is no way to do it in wicket 1.1 ?? i started by looking into markup filters when i wrote my own markup parser, i couldnt find a way to replace portions of the raw html It would help to know more specifically what you are trying to achieve. But if you want to change URLs to static resources, you might be better off providing a custom resource locator http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html or if paths are produced by wicket components, tweaking your own versions of the components. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NPE in Page#componentStateChanging
On Wed, 14 Feb 2007, Aaron HIniker wrote: When doing an ajax update on a MarkupContainer containing a listview.. I am replacing the listview model before the update: To update a ListView with ajax, I just manipulate its list instead of replacing the whole model. To make removals work, I recreate the whole list component on update (do a new MyListView()...). This works for me, but if there is a better way to update ListViews via ajax, I'd be happy to know it. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Intellij plugin
On Tue, 13 Feb 2007, Nick Heudecker wrote: Currently, the best place to get it is from the Wicket-Stuff SVN repo. I need to start a wiki page for it when I have time. Yeah? I'm using Wicket Assistant http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg19386.html that doesn't do a lot but anyway is a help. And I got it via the normal IDEA plugin system. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] VOTE on wicket:component
If wicket:component goes, please add wicket:pseudo http://www.nabble.com/%3Cwicket%3Apseudo%3E-tf2881952.html#a8052462 to be able to keep e.g. this kind of repeater markup valid when producing HTML tables with repeaters. wicket:component wicket:id=dataView wicket:component wicket:id=cols/wicket:component /wicket:component - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hotswap application
On Sun, 11 Feb 2007, Jesse Barnum wrote: I am trying to develop with Wicket in IntelliJ. Whenever I do a hotswap on some code changes, it seems like IntelliJ / Tomcat automatically redeploys the application and I get a 'Page Expired' error. Is there any way for me to run the app in debugger mode, make changes to methods, recompile/hotswap, and then immediately see my changes in the web browser? How do you start Tomcat? I just have a run configuration for Tomcat, and then press run (shift+f10) or debug (shift+f9). Of course Java hotswap remains limited, please vote for it :) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4910812 To deploy your webapp in development, ou can run any java application (such as embedded jetty or winstone) with a normal run configuration, and then just start it with run or debug symbol depending on what you want. -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Test Frameworks and Wicket
On Sat, 10 Feb 2007, nilo de roock wrote: like to use for writing a functional regressing test. But I don't think WicketTester was meant for that in the first place, more as a TestCase helper. I suppose Wicket still needs more whitepapers, tutorials, books, For me, WicketTester works best for low-level whitebox developer testing of individual components or interactions between a couple of components. I have experienced the abstraction leaking a bit (in 2.0) and being unable to test some things, such as some ajax functionality. (These I just test with Wicket Bench then, see below.) At the end of the day a user receives html and javascript a point where it should be invisible wether this has been generated by either Wicket or plain vanilla Servlets. I have been looking at some test frameworks. I have no experience with either of them, but Canoo WebTest looks to what I had in mind. As WebTest is based on HttpUnit / HtmlUnit, it suffers from their limitations, the greatest of which I think is the fact that it uses non-browser javascript implementation. The last time I used HttpUnit (jWebUnit really) a couple of years back, I just had to turn javascript off as it choked, though I have heard that it would have improved since then. jWebUnit is a nice higher-level abstraction layer on top of HttpUnit, but still doing everything with java as opposed to XML (WebTest). I find Selenium RC a lot more promising for this stuff http://svn.openqa.org/fisheye/viewrep/~raw,r=HEAD/selenium-rc/trunk/clients/java/src/test/java/com/thoughtworks/selenium/GoogleTest.java and with Wicket Bench (WicketBenchTestCase), you can use it to test-drive individual Wicket components against a real browser http://svn.laughingpanda.org/svn/wicket-bench/trunk/wicket-bench-test/src/test/java/test/DictionaryPanelTest.java This complements WicketTester nicely. With Selenium IDE, you can record Selenium RC java (or other language) code, which is good for the cases when you can't figure out what kind of Selenium code would emulate the user interaction you want. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] problem with wicket dtd in IDEA
On Sun, 04 Feb 2007, Dmitry Kandalov wrote: I tried this one. It doesn't work either. I wonder how autocompletion can work for you because I couldn't find any notion of wicket tags in this dtd. Guess you put them in custom tags. Don't you? Most probably yes. -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ui framework choice
I was able to test some ajax functionality by firing events with WicketTester, but something related to forms not. The problematic form thing I just tested with Wicket Bench then. If anyone is interested I can cook up a quickstart representing the WicketTester-with-ajaxified-form problem. On Fri, 02 Feb 2007, Johan Compagner wrote: please do make a issue for this in jira Here it is: https://issues.apache.org/jira/browse/WICKET-254 - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Component Markup Dump
On Mon, 05 Feb 2007, Ayodeji Aladejebi wrote: I need to obtain the rendered HTML dump of a WebPage or Component as String, is there a way to pull out that from onAfterRender() call? I don't know if you can do that in production code, but in WicketTester there is assertContains(String pattern) that looks for a sequence in the produced HTML. -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Testing and sessions
On Mon, 05 Feb 2007, Srdjan Marinovic wrote: I'm just picking up Wicket and I'm really enjoying it. However I'm having a slight problem. I want to unit test a page that requires some information from the session. How do I set up a session within a unit test and make it available when I call e.g. (WicketTester)tester.startPage(WelcomePage.class); Handling the session directly sounds very un-wickety. Normally you should keep state in your components. They are all(?) stateful in Wicket. However, did you try tester.getServletSession() ? - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Testing and sessions
On Mon, 05 Feb 2007, Srdjan Marinovic wrote: So now I want to unit test rendering of WelcomePage. However I need to have a UserSession object with the username set up. I have no idea how to this via WicketTester. Is there any way to this? I think that by providing your own Application implementation to WicketTester you can do that by overriding Session newSession(Request request). - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] problem with wicket dtd in IDEA
On Sat, 03 Feb 2007, Dmitry Kandalov wrote: I define namespace like this html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.sourceforge.net/; and use wicket-xhtml1-strict.dtd. But IDEA says wicket:id is not allowed and can't recognize wicket tags. I wrote simple xsd for wicket tags and added wicket:id to IDEA custom tags to avoid the problem, though it might be not the best decision. Does anyone have similar problem? There is an XSD in svn, I'm using that with IDEA. https://svn.apache.org/repos/asf/incubator/wicket/trunk/wicket/wicket-xhtml1-strict.dtd I think that I also added some tags to IDEA custom tags and maybe did something more. Anyway now I am content as I can pretty much validate the HTML templates with IDEA. -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ui framework choice
On Thu, 01 Feb 2007, Scott Swank wrote: And we just got WicketTester up running. Very nice stuff. Its I checked yesterday and our .ui package had a line coverage of 96 % or something such, slightly more than the overall for the whole software :) capabilities are already impressing folk. Are there any known things to be aware of with respect to Ajax-ified apps WicketTester? I was able to test some ajax functionality by firing events with WicketTester, but something related to forms not. The problematic form thing I just tested with Wicket Bench then. If anyone is interested I can cook up a quickstart representing the WicketTester-with-ajaxified-form problem. -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] writing unit tests
On Wed, 31 Jan 2007, Nino Wael wrote: What do others do? I use excellent (at least in 2.0) WicketTester to test basic functionality and tree structure of components, and complement it with WicketBenchTestCase from Wicket Bench to test with Selenium how the components behave in Firefox. And JUnit 3 with both. -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to set a markup ID of a HTML element to javascript
On Fri, 26 Jan 2007, Carfield Yim wrote: I found a datetime picket with is more suitable for my application and I would like to integrate that javascript to my application. I can get the markup id using getMarkId() method of Component. However I don't know how to press it to that javascript. I have talk of look 1) Why don't just just set the markup id in your markup? input id=timeField wicket:id=startTime ... Then you can access it normally with JavaScript. Wicket will honour HTML ids set in the HTML template. of http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg22608.html and I wonder can I have similar ${backGroundElementId} at HTML template instead of js file? 2) I don't think so, but you can certainly use a Wicket component to output it if you like: div id=myIdContainer wicket:id=timeFieldId style=visibility: hidden/div new Label(parent, timeFieldId, timeField.getMarkupId()); or something such. Normally 1) is more straight forward though. -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to set a markup ID of a HTML element to javascript
On Fri, 26 Jan 2007, Carfield Yim wrote: Because that component will use mulitple time in same page, if I do so that the ID will be confilct each other How do you use the JavaScript component in your own code? Is this an example? input type=text wicket:id=date_textfield id=date_textfield size=15 a href=javascript:NewCal('date_textfield','ddmmm',true,24) img src=images/cal.gif width=16 height=16 border=0 / /a If you pass the element id to the JavaScript from your own (JavaScript) code, I think you should be able to do something like this input type=text wicket:id=startDate id=startDate size=15 a href=javascript:NewCal('startDate','ddmmm',true,24) img src=images/cal.gif width=16 height=16 border=0 / /a input type=text wicket:id=endDate id=endDate size=15 a href=javascript:NewCal('endDate','ddmmm',true,24) img src=images/cal.gif width=16 height=16 border=0 / /a It might be I don't understand the issue correctly though. -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
On Wed, 24 Jan 2007, Marc-Andre Houle wrote: In the wiki, there is a gotcha that look like this : Adding wicket:head to a Page wicket:head is intended for panels and borders only. Do not add this to a page. The problem is : it is exactly what I wanted to do. I got a child class that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. I think that it might be outdated, I take that you mean http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html And here there seems to be the same issue http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html Maybe there should be the same point about markup inheritance as here: http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg17430.html P.S. : I'll make sure to copy the details into the wiki after :) Is it publicly editable? -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
On Wed, 24 Jan 2007, Eelco Hillenius wrote: I changed the WIKI entry. Thanks for finding. This remains Note: the use of wicket:head should not even be necessary at all in a Page, since everything in the head of a Page is already contributed to the output. The development team is currently considering throwing an exception if wicket:head is used in a Page component. http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html or should the entire page be removed? In the top it says Markup inheritance is much more convenient to use than Borders. Everything below is more complicated than necessary. :) -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Highlighting error components
On Fri, 19 Jan 2007, [EMAIL PROTECTED] wrote: message. In other words I can not use the build in valdiation by itself since all those fields by themselves are fine but their combination is not valid. ANd the business wants to see jsut one error message on top, but have all of the fields that failed validation highlighted. What would you suggest is a best way to approach it. I would look at Form.add(IFormValidator validator). To put a common error message at top, just add a FeedbackPanel that is a direct child of the form. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user