Re: Is it the best way to code a Link depending on a condition

2009-09-21 Thread cmoulliard
Joseph, Can you explain a little bit what you mean by provide it with attribute (IModelString) ? private Label labelTitle; public static Label createLabelTitle(String title) { return new Label(title,new Model( title )); } -- becomes private

AjaxFallbackDataTable and partial refreshing problem

2009-09-21 Thread Simo Roikonen
Hi all! I'm relatively new with Wicket. I've implemented AjaxFallbackDataTable by using the example from wicket-examples. (AjaxFallbackDataTable Example - demonstrates an AJAX enabled datatable component

wicketstuff-dojo wicket 1.4

2009-09-21 Thread Elena Stoll
Hi, ask the question: Is there a new version of wicketstuff-dojo, which is compatible with the Wicket 1.4 version. Thanks in advance. Elena

wicketstuff-dojo wicket 1.4

2009-09-21 Thread Elena Stoll
Hi, ask the question: Is there a new version of wicketstuff-dojo, which is compatible with the Wicket 1.4 version. Thanks in advance. Elena

wicket menu

2009-09-21 Thread Boydens Joeri (OZ)
Hi, We are changing from Struts to Wicket, in our Struts application we used Struts-Menu. Now I've searched the wicket mailing list but I couldn't find any descent menu. Is there a Wicket menu available, where can I find it ? Or should I write my own? I've seen some code based on

Re: wicketstuff-dojo wicket 1.4

2009-09-21 Thread Martin Grigorov
It seems this is the latest: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-1.1/ wicket 1.3.6 dojo 1.1 El lun, 21-09-2009 a las 09:54 +0200, Elena Stoll escribió: Hi, ask the question: Is there a new version of wicketstuff-dojo, which is compatible

Re: wicket menu

2009-09-21 Thread Martin Makundi
Hover menu or just static? If static then it is easy to just change the html/css of tabbed panel into vertical or horizontal menu. Probably you can roll a hover too. ** Martin 2009/9/21 Boydens Joeri (OZ) joeri.boyd...@oz.be: Hi, We are changing from Struts to Wicket, in our Struts

JavaBooks.org launches

2009-09-21 Thread Objelean Alex
JavaBooks.org's goal is to centralize, categorize and offer meta-information in the form of ratings, comments and reviews for all Java related publications. By joining the JavaBooks community you'll be able to stay informed about the latest Java publications, search for the right book or magazine

RE: wicket menu

2009-09-21 Thread Boydens Joeri (OZ)
Martin, I'm looking for something like http://www.dynamicdrive.com/style/csslibrary/item/jquery_multi_level_css_menu_2/ but the items should be generated from Java code. We also need a different Menu structure depending on the user role. Joeri -Oorspronkelijk bericht- Van: Martin

RE: wicket menu

2009-09-21 Thread Martin Grigorov
check https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/wicketstuff-suckerfish/ https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/wicketstuff-suckerfish-examples/ and the author's blog entry:

Re: wicket menu

2009-09-21 Thread Martin Makundi
Hi! Ok. The top menu looks just like Wicket tabbed panel and it can be different for different users. He hover effect is something you need extra. There was a discussion about menus in wicket just recently.. couldn't remember the topic. There was a project in google code about it... maybe

Re: wicket menu

2009-09-21 Thread Ernesto Reinaldo Barreiro
I've seen some code based on YUI, but I can't find that anymore in the svn. I think YUI menu is in here. https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/ Ernesto

Re: wicket menu

2009-09-21 Thread Ernesto Reinaldo Barreiro
Maybe you are referring to this thread? http://www.nabble.com/Shall-we-create-a-menu-in-wicket--td25469316.html Ernesto http://www.nabble.com/Shall-we-create-a-menu-in-wicket--td25469316.html#a25471808 On Mon, Sep 21, 2009 at 11:22 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote:

RE: wicket menu

2009-09-21 Thread Boydens Joeri (OZ)
Ernesto, Is there also a up-to-date release for wicket 1.3 ? Joeri Joeri Boydens OZ Onafhankelijk Ziekenfonds Informatica 050 40 53 09 -Oorspronkelijk bericht- Van: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Verzonden: maandag 21 september 2009 11:23 Aan:

Re: wicket menu

2009-09-21 Thread Ernesto Reinaldo Barreiro
It shouldn't be that difficult to make a Wicket component out of the example you provide. Best, Ernesto On Mon, Sep 21, 2009 at 11:10 AM, Boydens Joeri (OZ) joeri.boyd...@oz.bewrote: Martin, I'm looking for something like

this.getForm().getModelObject() returns the model of another form page

2009-09-21 Thread Charles Moulliard
I have created a form class which is used by a class extending webpage. When I call the following method in the onSubmit method of the form button I receive the model attached to another form page (= requestFormModel) and not (= requestMessageFormModel). Is there any restrictions/limitations

Re: wicket menu

2009-09-21 Thread Martin Makundi
Is there also a up-to-date release for wicket 1.3 ? Forget already about 1.3... use 1.4+ ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: wicket menu

2009-09-21 Thread Ernesto Reinaldo Barreiro
I really don't know... I have used that menu component over a year ago... I remember I did that with some wicket-1.3.* version. But I do not have the sources of that project anymore... Right now I using just another Menu component that I have build based on an available JavaScript library. See

[Re: AjaxFallbackDataTable and partial refreshing problem]

2009-09-21 Thread Simo Roikonen
It was a Hibernate session problem after all. AjaxFallbackDefaultDataTable works like a dream now :) - Simo ---BeginMessage--- Hi all! I'm relatively new with Wicket. I've implemented AjaxFallbackDataTable by using the example from wicket-examples. (AjaxFallbackDataTable Example -

Re: this.getForm().getModelObject() returns the model of another form page

2009-09-21 Thread Johan Compagner
i dont see how that can happen if i look at your code. is RequestMessageForm .this != this.getForm() ?? do you nest forms? johan On Mon, Sep 21, 2009 at 11:38, Charles Moulliard cmoulli...@gmail.comwrote: I have created a form class which is used by a class extending webpage. When I call

access post data

2009-09-21 Thread Petr Kobalíček
Hi, is there simple way how to access raw POST data? I'm trying: ((WebRequest)getRequest()).getHttpServletRequest().getInputStream(); but it's empty (it seems to be already processed). Thanks - Petr - To

Re: access post data

2009-09-21 Thread Petr Kobalíček
My problem, it's needed to set correct request content type (for example application/json) to disallow wicket from processing the post data (and making parameters from them). Cheers - Petr 2009/9/21 Petr Kobalíček kobalicek.p...@gmail.com: Hi, is there simple way how to access raw POST data?

Close ModalWindow on ESC key pressed

2009-09-21 Thread Martin Grotzke
Hi, I want to close a modal window when the user presses the ESC key. Right now I have overridden the show method in our ModalWindow subclass and added the keypress event listener (using jquery), the javascript close function is just copied from the ModalWindow. Opening the modal window and

Re: how to control visibility of Border's markup?

2009-09-21 Thread Pedro Santos
If you set the borders as transparent resolvers, implement they isVisible method, and add the components direct to the border parent component? On Sun, Sep 20, 2009 at 6:53 AM, Vladimir Kovalyuk koval...@gmail.comwrote: I would like to control programmatically the visibility of the border

Re: JavaBooks.org launches

2009-09-21 Thread Nicolas Melendez
Hope JavaBooks.org was made in wicket. if not, maybe it is spam :)NM On Mon, Sep 21, 2009 at 11:06 AM, Objelean Alex alex.objel...@gmail.comwrote: JavaBooks.org's goal is to centralize, categorize and offer meta-information in the form of ratings, comments and reviews for all Java related

+ key as alternative for tab key

2009-09-21 Thread Boydens Joeri (OZ)
Hi, We are rewriting an old fat client application to a more elegant web application based on Wicket. In the requirements they state that the users of the fat client application do all input with the right side of their keyboard and want to keep it that way. One special requirement is

Re: wicket menu

2009-09-21 Thread Ernesto Reinaldo Barreiro
Hi Joeri, I just implemented the menu you mentioned http://www.dynamicdrive.com/style/csslibrary/item/jquery_multi_level_css_menu_2/ in here http://code.google.com/p/antilia/source/browse/trunk/com.antilia.ext/src/com/antilia/web/dynamicdrive If you want to give it a try... get those sources

Re: + key as alternative for tab key

2009-09-21 Thread Martin Grigorov
this is pure JavaScript just register a listener for 'keydown' event for all required fields (probably the ones with tabindex) and if the event's key code is the one for '+' on the keypad (I don't know it) then just call this.blur() which will move the focus to the next field. El lun,

Re: Defaulting a DropDownChoice

2009-09-21 Thread tdelesio
tdelesio wrote: final DropDownChoice downChoice = new DropDownChoice(name, new CompoundPropertyModel(playerModel), playersModel, new ChoiceRenderer(username, id)); This would work fine w/o serialization except that the compound expects a setter with the name of the component from the

Re: + key as alternative for tab key

2009-09-21 Thread Pedro Santos
Good question, pretty much javascript work. I'm curios know your final solution. One fine solution is to create an subclass of AjaxFormComponentUpdatingBehavior to onchange event. On this behavior you can put your javascript rules. Take a look at OnChangeAjaxBehavior to see how it could be done.

RE: wicket menu

2009-09-21 Thread Boydens Joeri (OZ)
Hi Ernesto, I downloaded your files and it's working fine! It's indeed very easy to create such a menu if the javascript exists ! I'll have a look how we can integrate it in our new project! Thanks Joeri Ps: i had problems with the google svn... maybe it's my eclipse settings but I

Re: wicket menu

2009-09-21 Thread Ernesto Reinaldo Barreiro
Hi Joeri, Good to hear that it worked for you! In the mean time I did some clean-up to make the component more configurable... If you get the chance to improve it, and if you are allowed to do so, it would nice if you also share the modifications... So, that others can benefit too. I also have

Re: Defaulting a DropDownChoice

2009-09-21 Thread Pedro Santos
Hi Tim, I think what happens is that the playerModel is an instance of AbstractReadOnlyModel. So DDC can not set the choice on it. As you need to avoid the player serialization on playerModel, I suggest you create an custom model ( and forgot any AbstractReadOnlyModel class or subclass usage for

DefaultDataTable

2009-09-21 Thread Christoph Hochreiner
Hi i've found a tutorial for adding own components to the DefaultDataTable: http://cwiki.apache.org/WICKET/adding-links-in-a-defaultdatatable.html my problem is, that i can't figure out, what class Transaction is exactly. ore if there is any other way, for adding own components e.g. subtables.

Re: wicket menu

2009-09-21 Thread T Ames
I just downloaded and tried. Works good in FF 3.0.14 If you are using IE6, you will get a 4 pixel space on a secondary list. This causes issues when you slide the mouse in this tiny space. In the Test example, this is the list that would show when hovering over Two-2-1. For IE6, I can fix by

Re: wicket menu

2009-09-21 Thread Ernesto Reinaldo Barreiro
Thanks for the feedback! Just one question... I can't see the problems you are mentioning on my (MultipleIEs) IE6. On the other hand if I add the lines you mention then I get those sub-menus displaced to the left... 4 pixels. So, it might be that this is somethings that doesn't show up on my

Re: wicket menu

2009-09-21 Thread T Ames
Hmmm. The demo version on the dynamicdrive site works ok in my IE6. On Mon, Sep 21, 2009 at 11:10 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Thanks for the feedback! Just one question... I can't see the problems you are mentioning on my (MultipleIEs) IE6. On the other hand

Column Pagingview

2009-09-21 Thread Ryan Burns
Is there a way of having a paging view for columns instead of rows? Does anybody know how to do this or have any examples? Thanks

Form Processing problem on pages with Border - Wicket 1.4.1

2009-09-21 Thread Flavius
I am migrating a project from 1.3.6 to 1.4.1. I've run into a problem and I'm not sure if this is a bug or not. Most of the pages have a border and the border has a DropDownChoice in it (as well as other components). Technically it's in a panel in the border. The Form objects are typically

Re: DefaultDataTable

2009-09-21 Thread Igor Vaynberg
Transaction, in that example, is a domain object that the table lists. -igor On Mon, Sep 21, 2009 at 7:03 AM, Christoph Hochreiner ch.hochrei...@gmail.com wrote: Hi i've found a tutorial for adding own components to the DefaultDataTable:

same model for multiple pages?

2009-09-21 Thread Vytautas Čivilis
Hi. I have the situation, where more than one page is referencing the same parent model - wrapped and not. I use thickbox (somewhat like modal window), and display separate pages in the thickbox using iframe. So you get like ParentPage -creates- SubTBPage. What I do want here, is for all those

Re: Column Pagingview

2009-09-21 Thread Pedro Santos
Hi Ryan, I just update http://wicketstuff.org/confluence/display/STUFFWIKI/Table If you not mind to work with TableModel from swing api, than you can use the table component from wicket stuff. On Mon, Sep 21, 2009 at 1:15 PM, Ryan Burns captainbirds...@gmail.comwrote: Is there a way of having a

ClassCastException in ListMultipleChoice

2009-09-21 Thread Sadhna Ahuja
Hello, I have a ListMultipleChoice component in my form and I get the following exception when I select an option and submit the form: Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection at

Multiple choice checkboxes

2009-09-21 Thread Sadhna Ahuja
Is there a way to have multiple choice checkboxes? From what I read on the forums, I could only have a ListMultipleChoice. But I need to have multiple choice checkboxes. Any examples on how I could achieve that? Thanks.

Re: Multiple choice checkboxes

2009-09-21 Thread Major Péter
This should be good for you: http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.CheckBoxMultipleChoicePage Regards, Peter 2009-09-21 23:13 keltezéssel, Sadhna Ahuja írta: Is there a way to have multiple choice checkboxes? From what I read on