Inmethod Grid Select All or Reload Grid
Hi there I started using the Inmethod DataGrid because I need resizable tables and I need to be able to select multi entries. First, I had the problem that I couldn't select all entries and the multi select didin't work properly. In this forum I found out that I have to implement hashCode in the model. After that it worked, but the grid didn't refresh anymore after I had changed the model. To sum up, if I use the hashCode, I the table doesn't refresh after I change the model. If I don't use hashCode, the selection doesn't work properly. The code for hashCode() and equals I'm using: public int hashCode() { return new Long(id).hashCode(); } public boolean equals(final Object obj) { if (obj == this) { return true; } else if (obj == null) { return false; } else if (obj instanceof DetachableModel) { DetachableModel other = (DetachableModel) obj; return other.id == this.id; } return false; } Thanks for your help. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3456685.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: Dynamically injecting CSS on panel swap
Sounds like a bug. The expected behavior is to have the selected panel CSS dynamically injected. Please send us a quickstart reproducing the problem. On Mon, Apr 18, 2011 at 12:00 AM, Alec Swan wrote: > Hello, > > I have a page with multiple tabs which I implemented using AJAX-based > panel-swapping approach. The CSS files are injected in the constructor > of each panel using > add(CSSPackageResource.getHeaderContribution(resourceRef, media)). > This works for the first tab rendered. However, when another tab is > selected the CSS file for that tab does not get dynamically injected > and the tab uses the CSS file of the previous tab. > > What is the best way to swap CSS files in this situation? > > Thanks, > > Alec > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pedro Henrique Oliveira dos Santos
Dynamically injecting CSS on panel swap
Hello, I have a page with multiple tabs which I implemented using AJAX-based panel-swapping approach. The CSS files are injected in the constructor of each panel using add(CSSPackageResource.getHeaderContribution(resourceRef, media)). This works for the first tab rendered. However, when another tab is selected the CSS file for that tab does not get dynamically injected and the tab uses the CSS file of the previous tab. What is the best way to swap CSS files in this situation? Thanks, Alec - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: test pages with selenuim
Am 17.04.2011 19:54, schrieb shetc: I use WicketTester on its own now. Will it help me to also use Selenium to test Wicket as well? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/test-pages-with-selenuim-tp3452652p3455847.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 With selenium you get more "browser-like" testing. It is a library executing browser tasks by an action script. With wicket tester you do a more "component-oriented" testing. So wickettester is more usable for unit-testing and selenium for acceptance / integration testing. The decision if you have to use selenium in your tests to depends on your development process. If you do a more behavior - driven - developement process you can simply define your "action script" and run it in selenium. So you will get a big picture (What else has to be done to achieve my task / goal). If you like it more to do it unit-test driven then maybe you have so many tests that adding selenium is not nessecary. Hth Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: test pages with selenuim
I use WicketTester on its own now. Will it help me to also use Selenium to test Wicket as well? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/test-pages-with-selenuim-tp3452652p3455847.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: test pages with selenuim
Am 16.04.2011 22:11, schrieb shetc: What is advantage of Wicket Page Test over WicketTester? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/test-pages-with-selenuim-tp3452652p3454541.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 As he stated in his heading - he was looking for integrating selenium and wicket testing. This library could help on that task. Or did i miss something in your question? Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketopia or other form generator
Good question! I'm definitely still working on the documentation, but the example application does show you how to use the framework. The documentation will show you how to use the framework in a custom fashion On Apr 17, 2011 12:39 PM, "Marcus Breier" wrote: > Dear all, > > I am a novice using this nice web framework. Recently I noticed the > announcement of the new version of wicketopia RAD framework. Is there a > tutorial somewhere out there how to use wicketopia properly in a > production environment? > > For background of my question: I am searching for a solution to generate > a CRUD web-app for a simple datamodel. It will be great if anybody would > like to give me a hint. > > Thanks and best regards > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org >
wicketopia or other form generator
Dear all, I am a novice using this nice web framework. Recently I noticed the announcement of the new version of wicketopia RAD framework. Is there a tutorial somewhere out there how to use wicketopia properly in a production environment? For background of my question: I am searching for a solution to generate a CRUD web-app for a simple datamodel. It will be great if anybody would like to give me a hint. Thanks and best regards - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Mixing static with dynamic items in the same list
First of all, avoid using a label to generate html. Put the repeater on the LI element and add a link. Looks like you want an ExternalLink. HTML -- > > --- > > >First static item > > >Second static item > > > > > > > Code > - > ListView dynamicItems = new ListView("dynamicItems", someList) { >protected void populateItem(ListItem item) { >ExternalLink link = new ExternalLink("dynamicListItem", > "hrefDestination" ,item.getModel()); >item.add(link); >} > }; You end up with better markup and java that is clearer to understand. On Sun, Apr 17, 2011 at 8:14 AM, Alexandros Karypidis wrote: > Hello, > > I have a page with a simple HTML unordered list (), where part of the > list items are static, whereas the rest of them are dynamic. To that end, > I've injected a tag at the end of the static items, adding a ListView > in order to fill in the "dynamic" part, as follows: > > HTML > - > > >First static item > > >Second static item > > > > > > > Code > - > ListView dynamicItems = new ListView("dynamicItems", someList) { >protected void populateItem(ListItem item) { >Label link = new Label("dynamicListItem", >"" + item.getModelObject() + ""); >link.setEscapeModelStrings(false); >item.add(link); >} > }; > > This achieves what I need, but keeps the tags in place (causing some > unrelated CSS to miss its target elements). So, the HTML that is produced is > as follows...: > > > >First static item > > >Second static item > >First dynamic item >Second dynamic item >Third dynamic item > > > But what I want to achieve is the following "clean" output (notice the > absence of tags): > > > >First static item > > >Second static item > >First dynamic item >Second dynamic item >Third dynamic item > > > How can I achieve this? > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Mixing static with dynamic items in the same list
Hello, I have a page with a simple HTML unordered list (), where part of the list items are static, whereas the rest of them are dynamic. To that end, I've injected a tag at the end of the static items, adding a ListView in order to fill in the "dynamic" part, as follows: HTML - First static item Second static item Code - ListView dynamicItems = new ListView("dynamicItems", someList) { protected void populateItem(ListItem item) { Label link = new Label("dynamicListItem", "" + item.getModelObject() + ""); link.setEscapeModelStrings(false); item.add(link); } }; This achieves what I need, but keeps the tags in place (causing some unrelated CSS to miss its target elements). So, the HTML that is produced is as follows...: First static item Second static item First dynamic item Second dynamic item Third dynamic item But what I want to achieve is the following "clean" output (notice the absence of tags): First static item Second static item First dynamic item Second dynamic item Third dynamic item How can I achieve this? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Refreshing loadable detachable model object inside an ajax call
The 'implicit super constructor' warning means that in your constructor you need to call 'super()' The 'complains on type T' part I'd need a little more info. Feel free to post the exact lines of code. -Clint On Sat, Apr 16, 2011 at 2:21 AM, lucast wrote: > However, when I try to extend the AbstractEntityModel as shown on > EntityModel extends AbstractEntityModel example, my IDE starts to > complaint with things like "Implicit super constructor > AbstractEntityModel() is undefined for default constructor. Must define > an explicit constructor". > as for the extends AbstractEntityModel it also complaints on type T. > >