SV: SV: Wicket and portlets JSR 286

2010-01-06 Thread Wilhelmsen Tor Iver
java.lang.IllegalArgumentException: Payload has not the right class at org.apache.jetspeed.events.EventCoordinationServiceImpl.createEvent(Eve ntCoordinationServiceImpl.java:98) This is the portlet container complaining about: ReportType report = new ReportType();

Re: SV: SV: Wicket and portlets JSR 286

2010-01-06 Thread Mansour Al Akeel
In fact, I tried to send String as events, and I got the same error. Finally I found that I had to use the full name for the String class java.lang.String . event-definition qname xmlns:x=http://example.com;x:ReportName/qname value-typejava.lang.String/value-type /event-definition It's

How to iterate over checkboxes?

2010-01-06 Thread HB
Hey, I have AjaxFallbackDefaultDataTable and I want to add a check box at the end of each row to enable a batch operation. Upon clicking Send button, how to iterate over the check boxes and gets the object associated with it? Thanks for help and time.

Re: How to iterate over checkboxes?

2010-01-06 Thread Martin Makundi
Maybe iterate the datatable items? ** Martin 2010/1/6 HB hubaghd...@yahoo.ca: Hey, I have AjaxFallbackDefaultDataTable and I want to add a check box at the end of each row to enable a batch operation. Upon clicking Send button, how to iterate over the check boxes and gets the object

Re: question about swarm

2010-01-06 Thread Emond Papegaaij
Hi, Your change breaks some functionality. It is now no longer possible to grant permissions for anonymous inner classes at all, you are now forced to grant the permission on the superclass. This might seem sensible when using a hive file, but it is not when permissions are configured in other

Re: question about swarm

2010-01-06 Thread Olger Warnier
Hi Emond, Thanks for your comments, Interesting matter. Extending ComponentPermission to change the behavior sounds like an option. I can't find the @InPrincipal annotation in the wicket-security project, is this something specific ? When you look at it from the 'hive' side: It is the

RE: how to iterate over checkboxes?

2010-01-06 Thread HB
I think you got me wrong. There is a check box at the end of each row of AjaxFallbackDefaultDataTable. Upon click a button, I want to iterate over the checkboxes and collects the objects associated with them. - To unsubscribe,

DropDownBox should render as a label if only one choice is available

2010-01-06 Thread Janning Vygen
Hi, I want a DropDownBox which renders as a Label if only one Choice is available. I wrote a LabelDropDownPanel which you can see here http://pastie.org/768613 (is it ok to use pastie here?) My problem is, that the list of choices sometimes depends on another form Component. if i change

Re: how to iterate over checkboxes?

2010-01-06 Thread Martin Makundi
So why can't you iterate the elements in the data table? 2010/1/6 HB hubaghd...@yahoo.ca: I think you got me wrong. There is a check box at the end of each row of AjaxFallbackDefaultDataTable. Upon click a button, I want to iterate over the checkboxes and collects the objects associated with

RE: how to iterate over checkboxes?

2010-01-06 Thread HB
How to iterate over the data table items? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: how to iterate over checkboxes?

2010-01-06 Thread Martin Makundi
getItems().iterator()... 2010/1/6 HB hubaghd...@yahoo.ca: How to iterate over the data table items? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: DropDownChoice losing selection after ajax update

2010-01-06 Thread Martin Makundi
There can be many reasons... maybe you show more of the html and java pages? Here is some previous discussion about such situations: http://mail-archives.apache.org/mod_mbox/wicket-users/200904.mbox/%3c23274595.p...@talk.nabble.com%3e 2010/1/6 Kogel, Jonck-van-der jonck-van-der.ko...@bmw.nl: Hi,

RE: how to iterate over checkboxes?

2010-01-06 Thread HB
AjaxFallbackDefaultDataTable doesn't has a method called getItems() which method you are referring to? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: question about swarm

2010-01-06 Thread Emond Papegaaij
Hi Olger, The InPrincipal annotation is something we developed as an alternative for the hive files (which we find difficult to maintain, not only with anonymous inner classes). Principals are defined by a set of classes with annotations defining things like implies relations between

Re: how to iterate over checkboxes?

2010-01-06 Thread Martin Makundi
getColumns() 2010/1/6 HB hubaghd...@yahoo.ca: AjaxFallbackDefaultDataTable doesn't has a method called getItems() which method you are referring to? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: how to iterate over checkboxes?

2010-01-06 Thread Martin Makundi
Actually I am not sure, but looking at: datagrid = new DataGridViewT(rows, columns, dataProvider) at least you can iterate the components of the gridview, i.e., gridview.iterator ** Martin 2010/1/6 Martin Makundi martin.maku...@koodaripalvelut.com: getColumns() 2010/1/6 HB

RE: DropDownChoice losing selection after ajax update

2010-01-06 Thread Kogel, Jonck-van-der
Martin thank you!! It was indeed the form in the ModalWindow causing the error. I thought that nested forms was not an issue with Wicket but I guess it is? Anyway, replacing the form on the ModalWindow with the one you suggested works like a charm. Thanks again! -Original Message-

traditional(?) form processing

2010-01-06 Thread Istvan Soos
Hi, I'd like to create traditional form processing in wicket: to direct a form target to a (bookmarkable) page and receive the form content as PageParameters on that page. Is there any easy and supported way to achieve this? E.g. I have a search page that receives the parameters that way, and

Re: traditional(?) form processing

2010-01-06 Thread Martijn Dashorst
form action=/mount/path/to/otherpage method=get input type=text name=q / input type=submit value=Search / /form No wicket required Martijn On Wed, Jan 6, 2010 at 3:30 PM, Istvan Soos istvan.s...@gmail.com wrote: Hi, I'd like to create traditional form processing in wicket: to

Re: traditional(?) form processing

2010-01-06 Thread Istvan Soos
Okay, this was too easy... :) what is the best way to populate the form's action attribute? Regards, Istvan On Wed, Jan 6, 2010 at 3:37 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: form action=/mount/path/to/otherpage method=get    input type=text name=q /    input type=submit

Re: traditional(?) form processing

2010-01-06 Thread Martijn Dashorst
form wicket:id=form/form add(new WebMarkupContainer(form).add(new SimpleAttributeModifier(action, urlFor(pageClass))); Martijn On Wed, Jan 6, 2010 at 3:41 PM, Istvan Soos istvan.s...@gmail.com wrote: Sorry, missed an important part: What is the best way to populate the form's action

Re: traditional(?) form processing

2010-01-06 Thread Martin Makundi
http://old.nabble.com/Bookmarkable-page-absolute-url-td15825082.html 2010/1/6 Istvan Soos istvan.s...@gmail.com: Sorry, missed an important part: What is the best way to populate the form's action attribute with a page's bookmarkable url (without knowning it either in the HTML or in the Java

Re: traditional(?) form processing

2010-01-06 Thread Istvan Soos
Sorry, missed an important part: What is the best way to populate the form's action attribute with a page's bookmarkable url (without knowning it either in the HTML or in the Java code, just the Page class is known)? Regards, Istvan On Wed, Jan 6, 2010 at 3:39 PM, Istvan Soos

Re: traditional(?) form processing

2010-01-06 Thread Istvan Soos
Thanks, I do appreciate your fast response! Regards, Istvan On Wed, Jan 6, 2010 at 3:44 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: form wicket:id=form/form add(new WebMarkupContainer(form).add(new SimpleAttributeModifier(action, urlFor(pageClass))); Martijn On Wed, Jan

RadioGroup with radio objects with same values

2010-01-06 Thread Kogel, Jonck-van-der
Hi, I have a radiogroup that is built up dynamically, so I don't know ahead of time what the choices are going to be. Now I noticed that if I have 3 radio buttons in a RadioGroup and let's say they all have the same value (are all empty for example), the selected radio button will be the last one

Autosize modal window

2010-01-06 Thread Kogel, Jonck-van-der
Hi, Is it possible to have a modal window auto-size depending on its contents? I've been fiddling with header contributions and such but can't get it to work. Thanks! Jonck

Re: Autosize modal window

2010-01-06 Thread Ilja Pavkovic
Hi, according to the inline documentation of ModalWindow you can only autosize if you add components and don't use ModalWindow.PageCreator something like ModalWindow modalWindow = new ModalWindow(); modalWindow.add(new MyPanel(modalWindow.getComponentId()); Best Regards, Ilja

datagrid error

2010-01-06 Thread Igor Racic
Hi, I am trying to adapt datagrid example and can't resolve following: ERROR - RequestCycle - Exception in rendering component: [Component id = id1] org.apache.wicket.WicketRuntimeException: Exception in rendering component: [Component id = id1] at

Re: Initial page - state question

2010-01-06 Thread Jens Zastrow
Hi Igor, The same happens now if i use Bookmarkable PageLinks (maybe i miss-configured something) Example: http://localhost:8080/user/id/4711 Is it always nessesary to make the redirect or only at the first page-access? Thanks Jens Am 30.12.2009 17:48, schrieb Igor Vaynberg: while not

OnChangeAjaxBehavior with palette

2010-01-06 Thread wic...@geofflancaster.com
i'm trying using a text field to search through the items available to be selected in a palette. As of right now, it searches correctly but if I add items to the selected side of the palette and then search again, I lose my previously selected choices. Is there anyway to only refresh the

Re: datagrid error

2010-01-06 Thread Matej Knopp
Caused by: java.util.MissingResourceException: Unable to find property: 'id1' for component: grid1:header:header:id1 You are missing property id1 for column header in your property file. -Matej On Wed, Jan 6, 2010 at 6:35 PM, Igor Racic igor.ra...@gmail.com wrote: Hi, I am trying to adapt

Re: how to iterate over checkboxes?

2010-01-06 Thread Sven Meier
Take a look on wicket-phonebook - it features a checkbox column for selection of rows. Sven HB wrote: I think you got me wrong. There is a check box at the end of each row of AjaxFallbackDefaultDataTable. Upon click a button, I want to iterate over the checkboxes and collects the objects

Re: How to iterate over checkboxes?

2010-01-06 Thread Igor Vaynberg
Search this list for checkboxcolumn -Igor On Wednesday, January 6, 2010, HB hubaghd...@yahoo.ca wrote: Hey, I have AjaxFallbackDefaultDataTable and I want to add a check box at the end of each row to enable a batch operation. Upon clicking Send button, how to iterate over the check boxes and

Re: RadioGroup with radio objects with same values

2010-01-06 Thread Steve Swinsburg
Hi, If its the first item in the list, set it to be selected one. A simple boolean could work here. cheers, Steve On 07/01/2010, at 2:04 AM, Kogel, Jonck-van-der wrote: Hi, I have a radiogroup that is built up dynamically, so I don't know ahead of time what the choices are going to be.

Re: LoadableDetachable

2010-01-06 Thread James Carman
If you use it as the default model it will, but otherwise, you have to override onDetach() and call detach() on all your non-default models. On Thu, Jan 7, 2010 at 1:14 AM, Douglas Ferguson doug...@douglasferguson.us wrote: I was under the assumption that wicket calls detach on