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();
 report.setReportPath(SomePath);
 response.setEvent(qname, report);

Keep in mind that the XML event definition declares both the qualified name and 
the payload class; Jetspeed apparently checks that the object is of the 
declared type. What is your event definition?

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 working now. Thank you. 



On Wed Jan 06,2010 11:04 am, Wilhelmsen Tor Iver wrote:
  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();
  report.setReportPath(SomePath);
  response.setEvent(qname, report);
 
 Keep in mind that the XML event definition declares both the qualified name 
 and the payload class; Jetspeed apparently checks that the object is of the 
 declared type. What is your event definition?
 
 - Tor Iver
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.


-
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
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 associated with it?
 Thanks for help and time.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: 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 ways.

We create permissions by annotating components with an @InPrincipal 
annotation. It is possible to create a (abstract) component and have multiple, 
anonymous subclasses, each with their own @InPrincipal annotation.

I think, this should be fixed with a special ComponentPermission: one that 
does not only give permission to the specified class, but also to its 
subclasses. This could be achieved by extending ComponentPermission and 
overriding the implies method. The first part of the the path array should 
contain the classname of the component.

Best regards,
Emond Papegaaij

On Thursday 31 December 2009 23:31:34 Olger Warnier wrote:
 Hi Sam,
 
 Found the way to solve it. It is fixed in the trunk. Still need to fix the
  build server - so a check out and build of the whole is probably best. An
  anonymous class will act like its' parent now.
 
 Happy new year (to you all).
 
 Olger
 
 On 31 dec 2009, at 22:43, s...@sambarrow.com wrote:
  In my opinion, that's how it should work; just seems like common sense to
  me. Even for regular (non-anonymous) classes, it would be useful although
  that's not as important.
 
  As far as the technical part I have no idea. I've only been working with
  swam for 3 days. But I will do some looking at the source code.
 
  Sent via BlackBerry from T-Mobile
 
  -Original Message-
  From: Olger Warnier ol...@xs4all.nl
  Date: Thu, 31 Dec 2009 22:35:22
  To: users@wicket.apache.org
  Subject: Re: question about swarm
 
  Hi Sam  Jeremy,
 
  Together with the remark that Jeremy made - I agree, it is quite fragile
  - I had a look at the code that does the checks. I could 'assume' that an
  anonymous class needs the same rights as the 'normal' class. so when your
  CreateItemPage has the proper rights, an anonymous variant has the
  similar rights.
 
  The other way is some kind of inheritance assumption. This needs some
  kind of syntax in the hive file like the 'inherit' that is currently
  available. This inherit is more page with child component 'inheritance'
  and not like in OO thinking (If understand this completely). With this in
  mind, I would say that treating an anonymous class as the class it
  'extends' may be the best. I tried to figure out how to recognize an
  anonymous class. It seems that Class.getSimpleName =  or a search to
  $[0-9] in getName is a solution but it seems risky when you use a non-sun
  JVM.
 
  What do you think ?
 
  Kind Regards,
 
  Olger
 
  On 31 dec 2009, at 10:53, Sam Barrow wrote:
  I know I can do that, but there's no way do do it by inheritance? I have
  hundreds of anonymous subclasses throughout my application. Seems
  sensible that subclasses should inherit their parent's permissions.
 
  On Thu, 2009-12-31 at 10:41 +0100, Olger Warnier wrote:
  Hi Sam,
 
  I have added a sample to the secureform sample where the home page
  creates an anonymous class of the MySecurePage An anonymous page has a
  kind of a class name. Look for a
 
  ERROR - RequestCycle   - Not authorized to instantiate
  class org.apache.wicket.security.examples.secureform.pages.HomePage$2$1
  org.apache.wicket.authorization.UnauthorizedInstantiationException: Not
  authorized to instantiate class
  org.apache.wicket.security.examples.secureform.pages.HomePage$2$1
 
  And add the line to the hive:
 
permission ${ComponentPermission}
  org.apache.wicket.security.examples.secureform.pages.HomePage$2$1,
  render, enable;
 
  As you can see it does not contain a line with the target response page
  but a line that contains the setResponsePage call. So you need to add a
  line that contains the 'name' of the anonymous class to the hive.
 
 
  Kind Regards,
 
  Olger
 
  On 31 dec 2009, at 02:46, Sam Barrow wrote:
  I hope this is the right list for wasp/swarm.
  How do i manage permissions for an anonymous subclass?
 
  I have a page called ItemPage. I can view ItemPage, but if I try to
  redirect to an anonymous subclass of ItemPage, i get an access denied
  error.
 
  this works:
  setResponsePage(new CreateItemPage(getPage()));
 
  but this doesnt:
  setResponsePage(new CreateItemPage(getPage()) {
   @Override
   protected void onSuccess(final Serializable index) {
   setResponsePage(new ViewItemPage(getBackPage(), index));
   }
  });
 
  hive file:
 
  permission ${ComponentPermission} ${pages}.CreateItemPage, inherit,
  render;
  permission ${ComponentPermission} ${pages}.CreateItemPage, enable;
 
 
  -
  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 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 standard way of working 
with Swarm/Wasp, isn't it ?
That current way has a quite fragile way to define the authorization rules on 
anonymous inner classes. 
How to deal with that ?

Is it an option to contribute your annotations with a specific 
AnnotatedPermission ? That would be really great. 

Kind Regards,

Olger


On 6 jan 2010, at 12:52, Emond Papegaaij wrote:

 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 ways.
 
 We create permissions by annotating components with an @InPrincipal 
 annotation. It is possible to create a (abstract) component and have 
 multiple, 
 anonymous subclasses, each with their own @InPrincipal annotation.
 
 I think, this should be fixed with a special ComponentPermission: one that 
 does not only give permission to the specified class, but also to its 
 subclasses. This could be achieved by extending ComponentPermission and 
 overriding the implies method. The first part of the the path array should 
 contain the classname of the component.
 
 Best regards,
 Emond Papegaaij
 
 On Thursday 31 December 2009 23:31:34 Olger Warnier wrote:
 Hi Sam,
 
 Found the way to solve it. It is fixed in the trunk. Still need to fix the
 build server - so a check out and build of the whole is probably best. An
 anonymous class will act like its' parent now.
 
 Happy new year (to you all).
 
 Olger
 
 On 31 dec 2009, at 22:43, s...@sambarrow.com wrote:
 In my opinion, that's how it should work; just seems like common sense to
 me. Even for regular (non-anonymous) classes, it would be useful although
 that's not as important.
 
 As far as the technical part I have no idea. I've only been working with
 swam for 3 days. But I will do some looking at the source code.
 
 Sent via BlackBerry from T-Mobile
 
 -Original Message-
 From: Olger Warnier ol...@xs4all.nl
 Date: Thu, 31 Dec 2009 22:35:22
 To: users@wicket.apache.org
 Subject: Re: question about swarm
 
 Hi Sam  Jeremy,
 
 Together with the remark that Jeremy made - I agree, it is quite fragile
 - I had a look at the code that does the checks. I could 'assume' that an
 anonymous class needs the same rights as the 'normal' class. so when your
 CreateItemPage has the proper rights, an anonymous variant has the
 similar rights.
 
 The other way is some kind of inheritance assumption. This needs some
 kind of syntax in the hive file like the 'inherit' that is currently
 available. This inherit is more page with child component 'inheritance'
 and not like in OO thinking (If understand this completely). With this in
 mind, I would say that treating an anonymous class as the class it
 'extends' may be the best. I tried to figure out how to recognize an
 anonymous class. It seems that Class.getSimpleName =  or a search to
 $[0-9] in getName is a solution but it seems risky when you use a non-sun
 JVM.
 
 What do you think ?
 
 Kind Regards,
 
 Olger
 
 On 31 dec 2009, at 10:53, Sam Barrow wrote:
 I know I can do that, but there's no way do do it by inheritance? I have
 hundreds of anonymous subclasses throughout my application. Seems
 sensible that subclasses should inherit their parent's permissions.
 
 On Thu, 2009-12-31 at 10:41 +0100, Olger Warnier wrote:
 Hi Sam,
 
 I have added a sample to the secureform sample where the home page
 creates an anonymous class of the MySecurePage An anonymous page has a
 kind of a class name. Look for a
 
 ERROR - RequestCycle   - Not authorized to instantiate
 class org.apache.wicket.security.examples.secureform.pages.HomePage$2$1
 org.apache.wicket.authorization.UnauthorizedInstantiationException: Not
 authorized to instantiate class
 org.apache.wicket.security.examples.secureform.pages.HomePage$2$1
 
 And add the line to the hive:
 
  permission ${ComponentPermission}
 org.apache.wicket.security.examples.secureform.pages.HomePage$2$1,
 render, enable;
 
 As you can see it does not contain a line with the target response page
 but a line that contains the setResponsePage call. So you need to add a
 line that contains the 'name' of the anonymous class to the hive.
 
 
 Kind Regards,
 
 Olger
 
 On 31 dec 2009, at 02:46, Sam Barrow wrote:
 I hope this is the right list for wasp/swarm.
 How do i manage permissions for an anonymous subclass?
 
 I have a page called ItemPage. I can view ItemPage, but if I try to
 redirect to an anonymous subclass of ItemPage, i get an access denied
 error.
 
 this works:
 setResponsePage(new CreateItemPage(getPage()));

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, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 this form component the choices of my dropdownlist 
should change too. It works fine with a normal dropdownChoice, beacuse the 
ChoiceModel and the other FormComponent share a common ModelObject.

if i use my LabelDropDownPanel is does not work.

The method isVisible() in my LabelDropDownPanel is called BEFORE the new input 
values from the other FormComponent are pushed into my model. So this method 
attaches the choices with the old value.

I wonder why isVisible is called before pushing the values from form 
submission.

I don't know how to solve my problem, but i am quite new to wicket, so please 
help me. 

kind regards
Janning


-
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
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 them.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: 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



-
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,

 I have a simple DropDownChoice that holds male/female option. The
 selected value is retrieved from the database fine. Now I have a modal
 panel and when it closes it refreshes a certain portion of my screen
 using ajax. However, when the ajax refresh comes back the selected value
 gets lost. When I look in the ajax debug screen I see the list of
 options coming back and the selected value is empty. This happens even
 when I don't do anything with the value of the dropdown in the modal
 panel, but simply refresh the dropdown. Any ideas? Here is some code:

 The dropdown: (the list of options is an enum, mergedModel is a
 LoadableDetatchableModel)

 DropDownChoiceSex sex = new DropDownChoiceSex(sex,
  new PropertyModelSex(mergedModel, user.sex),
  Utility.arrayToList(new Sex[]{Sex.MALE, Sex.FEMALE}));
 sex.setOutputMarkupId(true);
 add(sex);

 What happens when I close the modal panel: (the contentPanel gets passed
 a reference to the modalPanel and the objects that need refreshing)

 form.add(new AjaxSubmitLink(save) {
 �...@override
  protected void onSubmit(AjaxRequestTarget target, Form? form) {
  for (Component comp : updateList) {
   target.addComponent(comp);
  }
  modalWindow.close(target);
  }
 });

 The ajax response:

 ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
 id=sex11 ![CDATA[select name=tabs:tabUser:sex id=sex11
 option selected=selected value=Kies er een/option
 option value=0Man/option
 option value=1Vrouw/option
 /select]]



 Thanks for any help!

 Kind regards, Jonck



-
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 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 principals and DataPermissions. 
ComponentPermissions are created by scanning for components with the 
InPrincipal annotation and creating the permissions for those. We are thinking 
about releasing this code, perhaps by including it in wicket-security.

When using a hive file, you define your principals, each with a set of 
permissions. Currently, you can use ComponentPermission, DataPermission and 
AllPermissions. My suggestion is to add another permission that gives 
permissions to a component and all of its subclasses (including anonymous 
classes), something like:

permission ${ComponentSubclassPermission} MyPage, inherit, render;

This would give you permission for MyPage and its subclasses. You can define 
the alias for ComponentSubclassPermission in SwarmPolicyFileHiveFactory. I 
think that this is the way Swarm/Wasp is 'supposed to be used'.

Best regards,
Emond

On Wednesday 06 January 2010 13:09:09 Olger Warnier wrote:
 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 standard way of working
  with Swarm/Wasp, isn't it ? That current way has a quite fragile way to
  define the authorization rules on anonymous inner classes. How to deal
  with that ?
 
 Is it an option to contribute your annotations with a specific
  AnnotatedPermission ? That would be really great.
 
 Kind Regards,
 
 Olger
 
 On 6 jan 2010, at 12:52, Emond Papegaaij wrote:
  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
  ways.
 
  We create permissions by annotating components with an @InPrincipal
  annotation. It is possible to create a (abstract) component and have
  multiple, anonymous subclasses, each with their own @InPrincipal
  annotation.
 
  I think, this should be fixed with a special ComponentPermission: one
  that does not only give permission to the specified class, but also to
  its subclasses. This could be achieved by extending ComponentPermission
  and overriding the implies method. The first part of the the path array
  should contain the classname of the component.
 
  Best regards,
  Emond Papegaaij
 
  On Thursday 31 December 2009 23:31:34 Olger Warnier wrote:
  Hi Sam,
 
  Found the way to solve it. It is fixed in the trunk. Still need to fix
  the build server - so a check out and build of the whole is probably
  best. An anonymous class will act like its' parent now.
 
  Happy new year (to you all).
 
  Olger
 
  On 31 dec 2009, at 22:43, s...@sambarrow.com wrote:
  In my opinion, that's how it should work; just seems like common sense
  to me. Even for regular (non-anonymous) classes, it would be useful
  although that's not as important.
 
  As far as the technical part I have no idea. I've only been working
  with swam for 3 days. But I will do some looking at the source code.
 
  Sent via BlackBerry from T-Mobile
 
  -Original Message-
  From: Olger Warnier ol...@xs4all.nl
  Date: Thu, 31 Dec 2009 22:35:22
  To: users@wicket.apache.org
  Subject: Re: question about swarm
 
  Hi Sam  Jeremy,
 
  Together with the remark that Jeremy made - I agree, it is quite
  fragile - I had a look at the code that does the checks. I could
  'assume' that an anonymous class needs the same rights as the 'normal'
  class. so when your CreateItemPage has the proper rights, an anonymous
  variant has the similar rights.
 
  The other way is some kind of inheritance assumption. This needs some
  kind of syntax in the hive file like the 'inherit' that is currently
  available. This inherit is more page with child component 'inheritance'
  and not like in OO thinking (If understand this completely). With this
  in mind, I would say that treating an anonymous class as the class it
  'extends' may be the best. I tried to figure out how to recognize an
  anonymous class. It seems that Class.getSimpleName =  or a search to
  $[0-9] in getName is a solution but it seems risky when you use a
  non-sun JVM.
 
  What do you think ?
 
  Kind Regards,
 
  Olger
 
  On 31 dec 2009, at 10:53, Sam Barrow wrote:
  I know I can do that, but there's no way do do it by inheritance? I
  have hundreds of anonymous subclasses throughout my application. Seems
  sensible that subclasses should inherit their parent's permissions.
 
  On Thu, 2009-12-31 

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 additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: 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 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 additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: 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-
From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] 
Sent: woensdag 6 januari 2010 14:11
To: users@wicket.apache.org
Subject: Re: DropDownChoice losing selection after ajax update

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,

 I have a simple DropDownChoice that holds male/female option. The 
 selected value is retrieved from the database fine. Now I have a modal 
 panel and when it closes it refreshes a certain portion of my screen 
 using ajax. However, when the ajax refresh comes back the selected 
 value gets lost. When I look in the ajax debug screen I see the list 
 of options coming back and the selected value is empty. This happens 
 even when I don't do anything with the value of the dropdown in the 
 modal panel, but simply refresh the dropdown. Any ideas? Here is some code:

 The dropdown: (the list of options is an enum, mergedModel is a
 LoadableDetatchableModel)

 DropDownChoiceSex sex = new DropDownChoiceSex(sex,
  new PropertyModelSex(mergedModel, user.sex),
  Utility.arrayToList(new Sex[]{Sex.MALE, Sex.FEMALE})); 
 sex.setOutputMarkupId(true); add(sex);

 What happens when I close the modal panel: (the contentPanel gets 
 passed a reference to the modalPanel and the objects that need 
 refreshing)

 form.add(new AjaxSubmitLink(save) {
 �...@override
  protected void onSubmit(AjaxRequestTarget target, Form? form) {
  for (Component comp : updateList) {
   target.addComponent(comp);
  }
  modalWindow.close(target);
  }
 });

 The ajax response:

 ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
 id=sex11 ![CDATA[select name=tabs:tabUser:sex id=sex11 
 option selected=selected value=Kies er een/option option 
 value=0Man/option option value=1Vrouw/option /select]]



 Thanks for any help!

 Kind regards, Jonck



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
I'd like to have a form that targets that page with visible input
field and a hidden field. With the usual way, I'd create it as part of
a stateless form, but I'd like to skip the processing on the old page.

Thanks and regards,
  Istvan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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
 I'd like to have a form that targets that page with visible input
 field and a hidden field. With the usual way, I'd create it as part of
 a stateless form, but I'd like to skip the processing on the old page.

 Thanks and regards,
  Istvan

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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 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
 I'd like to have a form that targets that page with visible input
 field and a hidden field. With the usual way, I'd create it as part of
 a stateless form, but I'd like to skip the processing on the old page.

 Thanks and regards,
  Istvan

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: 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 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 istvan.s...@gmail.com wrote:
 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 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 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
 I'd like to have a form that targets that page with visible input
 field and a hidden field. With the usual way, I'd create it as part of
 a stateless form, but I'd like to skip the processing on the old page.

 Thanks and regards,
  Istvan

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 code, just the Page class is known)?

 Regards,
   Istvan

 On Wed, Jan 6, 2010 at 3:39 PM, Istvan Soos istvan.s...@gmail.com wrote:
 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 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 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
 I'd like to have a form that targets that page with visible input
 field and a hidden field. With the usual way, I'd create it as part of
 a stateless form, but I'd like to skip the processing on the old page.

 Thanks and regards,
  Istvan

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 istvan.s...@gmail.com wrote:
 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 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 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
 I'd like to have a form that targets that page with visible input
 field and a hidden field. With the usual way, I'd create it as part of
 a stateless form, but I'd like to skip the processing on the old page.

 Thanks and regards,
  Istvan

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: 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 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 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 istvan.s...@gmail.com wrote:
 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 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 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
 I'd like to have a form that targets that page with visible input
 field and a hidden field. With the usual way, I'd create it as part of
 a stateless form, but I'd like to skip the processing on the old page.

 Thanks and regards,
  Istvan

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 in the group. Let me give an example:
 
RadioGroup
* value1 = foo
* value2 = foo
* value3 = foo
 
So all 3 radio choices have the value foo. The persisted value is also
foo, so all are valid so to speak and therefore the one that gets
selected is the 3d one. However, I would like it to be the first. Could
someone point me in the right direction how I should go about overriding
this behavior so it takes the first value it encounters instead of the
last?
 
Thanks, Jonck


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 Pavkovic

Am Mittwoch, 6. Januar 2010 17:12:05 schrieb 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
 

-- 
binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin

   +49 · 171 · 9342 465

Handelsregister: HRB 115854 - Amtsgericht Charlottenburg
Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 org.apache.wicket.Component.renderComponent(Component.java:2658)
at
org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:62)
at org.apache.wicket.Component.render(Component.java:2450)
at
com.inmethod.grid.common.ColumnsHeaderRepeater.onRender(ColumnsHeaderRepeater.java:142)
at org.apache.wicket.Component.render(Component.java:2450)
at
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
at
org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:675)
at
org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
at org.apache.wicket.Component.renderComponent(Component.java:2619)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
at org.apache.wicket.Component.render(Component.java:2450)
at
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
at
org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:675)
at
org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
at org.apache.wicket.Component.renderComponent(Component.java:2619)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
at org.apache.wicket.Component.render(Component.java:2450)
at
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
at
org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1528)
at org.apache.wicket.Page.onRender(Page.java:1545)
at org.apache.wicket.Component.render(Component.java:2450)
at org.apache.wicket.Page.renderPage(Page.java:914)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:261)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:295)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: java.util.MissingResourceException: Unable to find property:
'id1' for component: grid1:header:header:id1
[class=com.inmethod.grid.column.AbstractColumn$1]
at org.apache.wicket.Localizer.getString(Localizer.java:344)
at org.apache.wicket.Localizer.getString(Localizer.java:138)
at
org.apache.wicket.model.ResourceModel$AssignmentWrapper.getObject(ResourceModel.java:125)
at
org.apache.wicket.model.ResourceModel$AssignmentWrapper.getObject(ResourceModel.java:92)
at
org.apache.wicket.Component.getDefaultModelObject(Component.java:1657)
at
org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1676)
at
org.apache.wicket.markup.html.basic.Label.onComponentTagBody(Label.java:114)
at org.apache.wicket.Component.renderComponent(Component.java:2619)
... 46 more
INFO  - ServerAndClientTimeFilter  - 1391ms server time taken for request
response size: 9967


public HomePage_Grid() {
ListIGridColumn columns = new ArrayListIGridColumn();


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 being an official solution it works.

-igor

On Wed, Dec 30, 2009 at 8:09 AM, Jens Zastrowm...@jens-zastrow.de  wrote:
   

Hi wicket-experts,

If i access my wicket page by an url containing the wicket-page
version-informations all ajax-modificatins (tree-selections, form-input)
are still available after pressing the 'reload' button.

Example: http://localhost:8080/?wicket:interface=:2

Unfortunly this does hold for the first-page of my app, which is invoked by
a plain url http://localhost:8080/ - without any page-version information.
The 'reload' button now has the effect that all the ajax-modifications are
gone.

I know why that happens and that the behavior is correct.

But is there a way the solve this in a wicket-way?
My current workaround is a redirect which - i guess - is not the official
solution to this?

Thanks
Jens

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

   


--
dipl. inform jens zastrow

phone | +49.152.04840108
mail  | m...@jens-zastrow.de
web   | http://jens-zastrow.de
xing  | http://www.xing.com/profile/Jens_Zastrow


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 available menu and not the selected
menu?


mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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 org.apache.wicket.Component.renderComponent(Component.java:2658)
    at
 org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:62)
    at org.apache.wicket.Component.render(Component.java:2450)
    at
 com.inmethod.grid.common.ColumnsHeaderRepeater.onRender(ColumnsHeaderRepeater.java:142)
    at org.apache.wicket.Component.render(Component.java:2450)
    at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
    at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
    at
 org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:675)
    at
 org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
    at org.apache.wicket.Component.renderComponent(Component.java:2619)
    at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
    at org.apache.wicket.Component.render(Component.java:2450)
    at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
    at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
    at
 org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:675)
    at
 org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
    at org.apache.wicket.Component.renderComponent(Component.java:2619)
    at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
    at org.apache.wicket.Component.render(Component.java:2450)
    at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
    at
 org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1528)
    at org.apache.wicket.Page.onRender(Page.java:1545)
    at org.apache.wicket.Component.render(Component.java:2450)
    at org.apache.wicket.Page.renderPage(Page.java:914)
    at
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:261)
    at
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
    at
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
    at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
    at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
    at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
    at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
    at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
    at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
    at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
    at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:295)
    at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
    at
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
    at
 org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
    at
 org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
 Caused by: java.util.MissingResourceException: Unable to find property:
 'id1' for component: grid1:header:header:id1
 [class=com.inmethod.grid.column.AbstractColumn$1]
    at org.apache.wicket.Localizer.getString(Localizer.java:344)
    at org.apache.wicket.Localizer.getString(Localizer.java:138)
    at
 org.apache.wicket.model.ResourceModel$AssignmentWrapper.getObject(ResourceModel.java:125)
    at
 org.apache.wicket.model.ResourceModel$AssignmentWrapper.getObject(ResourceModel.java:92)
    at
 org.apache.wicket.Component.getDefaultModelObject(Component.java:1657)
    at
 org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1676)
    at
 

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 associated with them.



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: 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
 gets the object associated with it?
 Thanks for help and time.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: 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. 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 in the group. Let me give an example:
 
 RadioGroup
 * value1 = foo
 * value2 = foo
 * value3 = foo
 
 So all 3 radio choices have the value foo. The persisted value is also
 foo, so all are valid so to speak and therefore the one that gets
 selected is the 3d one. However, I would like it to be the first. Could
 someone point me in the right direction how I should go about overriding
 this behavior so it takes the first value it encounters instead of the
 last?
 
 Thanks, Jonck


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 LoadableDeatchable 
 automatically on each request.

 Is this not true?

 D/
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org