Re: [Wicket-user] Problems with ChoiceRenderer and DropDownChoice

2005-10-19 Thread Johan Compagner
Youre problem lies in this:

add(DropDownChoice(genderId, genders, new ChoiceRenderer(displayValue, id));
 ^^^

it should be:
add(DropDownChoice(gender, genders, new ChoiceRenderer(displayValue, id));

So not the ID but the real object.
Because what is in the choices (the genders list)
should be exactly the same object as what is in the selected property.

you are trying to compare the Number 0 with Person.
You can do that if you want but then you need to supply youre own choicerenderer that can handle both
inputs (doing person.getId() if it is a person and directly return the number if it is a number)

johan



On 10/19/05, WATSON Matthew [EMAIL PROTECTED] wrote:










Hi,


Since upgrading from 1.0 to 1.1 rc2 I've had problems with the ChoiceRenderer and DropDownChoice

components.


To explain:


I have two classes


class Person {

 private long id;

 private long genderId;


 getId()

 setId()

 getGenderId()

 ... etc.

}


class Gender {

 private long id;

 private String displayValue;


 getId()

 setId()

 getDisplayValue()

 ... etc.

}


Assuming I have a List of genders with values of:


 1. Male.

 2. Female.

 3. Unknown.


(These come from a database, so real id will vary).


And a form which essentially contains the following:


setModel(CompoundPropertyModel(new Person());

add(DropDownChoice(genderId, genders, new ChoiceRenderer(displayValue, id));



*** First problem occurs with the above, I get this error:


error getting id value of: 0 for property: id. Which is being thrown from within the 


ChoiceRender.java


 public String getIdValue(Object object, int index)

 {

  if (idExpression == null)

  {

   return Integer.toString(index);

  }

  

  if (object == null)

  {

   return ;

  }

  

  try

  {



 Object returnValue = Ognl.getValue(idExpression, object);



 if (returnValue == null)



 {



  return ;



 }



 



 return returnValue.toString();

  }

  catch (OgnlException ex)

  {



 throw new WicketRuntimeException(Error getting id value of:  + 



  object +  for property:  + idExpression,ex);

  }

 }



I think that
its trying somehow to see if the current Persons genderId of 0 matches
something within the list. It doesn't seem to be correctly handling
primatives as I would expect. 

I think it
wants the Person class to have a Gender object which won't be possible
in this case. If so what can either be done to the ChoiceRender or to
my code to fix this?

 Second problem occurs in AbstractSingleSelectChoice:


 public final void setModelValue(final String value)

 {

  List choices = getChoices();

  for(int index=0;indexchoices.size();index++)

  {



 // Get next choice

*1

 final Object choice =
choices.get(index);



 if(getChoiceRenderer().getIdValue(choice, index).equals(value))



 {

*2


 setModelObject(choice);




 break;



 }

  }

 }


This gets executed when the form is submitted. Again this isn't working with primatives properly.

At *1 the
choice variable is actually an instance of the 'Gender' class, whereas
at *2 the actual model object is a Long. So when it tries to do this
set() it fails.

I think Wicket should be able to handle these sorts of situations with primatives.


Does anybody have any ideas, or am I doing something wrong?


Thanks in advance,

Matt



--- 
--- 
The information contained in this e-mail is privileged and confidential. It is 
intended for the addressee only and is not necessarily the official view or 
communication of NZ Customs Service. If you are not the intended recipient you 
are asked to respect the confidentiality and not disclose, copy, or make use of 
its contents. If received in error you are asked to destroy this e-mail and 
contact the sender immediately. Your assistance is appreciated. 
 






[Wicket-user] Wicket JavaOne presentation online!

2005-10-19 Thread Martijn Dashorst
The Wicket JavaOne presentations are now online!

POJO Web Development using Wicket
http://developers.sun.com/learning/javaoneonline/2005/webtier/TS-8617.html

The Web Framework SmackDown
http://developers.sun.com/learning/javaoneonline/2005/webtier/TS-7642.html

For the media enabled presentations, you need to register with Sun developer network, which is free as in beer.

Enjoy listening to my mumbling in English!

Martijn Dashorst



Re: [Wicket-user] Standalong Radio component ?

2005-10-19 Thread Johan Compagner
i like this new component. very nice
But shouldn't we also not have the same thing for checkboxes?
(and get a replacement for CheckBoxMultipleChoice like we did now with RadioChoice)On 10/18/05, Phil Kulak [EMAIL PROTECTED]
 wrote:I agree, for what it's worth.On 10/17/05, Eelco Hillenius 
[EMAIL PROTECTED] wrote: Sounds like a good one for core. Eelco---This 
SF.Net email is sponsored by:Power Architecture Resource Center: Free content, downloads, discussions,and more. http://solutions.newsforge.com/ibmarch.tmpl
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] JavaScript for unchecking checkboxes

2005-10-19 Thread Johannes Fahrenkrug

Eelco,

thank you for your quick reply. That sounds good. I'll try it asap, but 
I first have to take care of some other issues that are more urgent. 
I'll post my insights here as soon as I'm done/I've tried it.


- Johannes.

Eelco Hillenius wrote:


You could use Wicket for the generation of the ids like you said. I
would create a grouping component - maybe it prints the 'header' like
'Person 1' - that you have to add your checkboxes to. This grouping
component would contribute some generic javascript function (one
script for all instances should be doable) that e.g. takes the ids of
the checkboxes to switch. Or maybe you could even make some smarter
use of DOM; I'm not a big javascript expert. Anyway, you then to let
the individual checkboxes call this function in their onselect
handlers. Generate that calling code e.g. by attaching an attribute
modifier. You probably want to extend from CheckBox too, so instead of
using attribute modifiers you can also decide to do this in
onComponentTag.

Eelco

On 10/17/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 


Hi,

I have the following listview:

Person 1

[ ]   No insurance
[ ]   insurance 1
[ ]   insurance 2
[ ]   insurance 3


Person 2

[ ]   No insurance
[ ]   insurance 4
[ ]   insurance 5
[ ]   insurance 6


Person 3

[ ]   No insurance
[ ]   insurance 7
[ ]   insurance 8
[ ]   insurance 9

Every person can book individual insurances (because they depend on the
price per person).
I'd like to do this: When a person selects No insurance, all the other
insurances for that person should be unchecked, using JavaScript. When a
person selects one of the insurances, though, the No insurance
checkbox should be unchecked.

I know Wicket has JavaScript support to some degree. What would be the
best solution? I don't think Ajax would make sense. But on the other
hand, it's not so easy to identify the checkboxes that should be
unchecked, because the names are being generated at runtime. Maybe there
is an elegant way to dynamically generate ids for the checkboxes. They
could consist of the number of the person and the number to the checkbox
field. And I'd call the JS function with the id of the checked checkbox
as a parameter, ie:

onSelect=uncheckBoxes(this.id)
where id might be 0-0 for the first person and the first checkbox (the
No insurance one) or 2-1 for the 3rd person and the 2nd checkbox

I don't know, what would be the most elegant way to go?

- Johannes.




---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

   




---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] immediate textfield

2005-10-19 Thread Marco van de Haar
We've added an ImmediateTextField (copied from ImmediateCheckbox) in 
contrib.dojo.


not much work, but we needed it for testing, feel free to check it out ;)


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Image is not displayed

2005-10-19 Thread Anders Peterson
I'm trying to do precisely this, and I can't get it to work. I've tried 
all possible ways to do this - except one. ;-)


Using wicket 1.1rc2

I use Dreamweaver to do the html work, and eclipse for the Java part. 
The Dreamweaver site root is set to be the same as the java source 
folder root.


In the /se/optimatika/blapp/gui/PgCompare.html page there is a tag

img src=../../../../images/tmp_pie_1.gif width=300 height=300 /

All iamges are in /images/*

When I run the app I don't see the images. I've tried using both 
absolute and relative paths, and I've tried having the images in a lot 
of different places.


When you follow a static relative path from a run-time wicket page; 
where do you end up?


/Anders

Phil Kulak wrote:

Do you have a resource reference named images/delete.gif? Because if
you're just trying to make a static link to a static image, there's no
need to get Wicket involved:

img src=images/delete.gif type=image width=12 height=12
alt=[Delete] border=0 valign=middle /

On 10/10/05, Francis Amanfo [EMAIL PROTECTED] wrote:


Hi,

I have a Panel whose markup contains:

img src=images/delete.gif type=image wicket:id=deleteImage
width=12 height=12 alt=[Delete] border=0 valign=middle /

The markup is located in package org.foo.presentation
In my panel class located in the same package as the markup I do:

add(new Image(deleteImage, images/delete.gif))

The problem is the image doesn't get dsiplayed. Viewing the source html in
my browser I see:

img width=12 height=
12 type=image wicket:id=deleteImage
valign=middle border=0
src=/portal/app/resources/org.foo.presentation.PSBreadCrumbsPanel/images/delete_en_US.gif
alt=[Delete]
/

I don't get it. Any help?

Francis





---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl



--
http://ojalgo.org/

Mathematics, Linear Algebra and Optimisation with Java


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Image is not displayed

2005-10-19 Thread Johan Compagner
is that img tag without any wicket:id? so there is no wicket component attached to it?
The url is exactly what it is there at runtime?

That is ofcourse not right. At runtime it should be:
/images/tmp_pie_1.gif

johan
On 10/19/05, Anders Peterson [EMAIL PROTECTED] wrote:
I'm trying to do precisely this, and I can't get it to work. I've triedall possible ways to do this - except one. ;-)Using wicket 1.1rc2I use Dreamweaver to do the html work, and eclipse for the Java part.
The Dreamweaver site root is set to be the same as the java sourcefolder root.In the /se/optimatika/blapp/gui/PgCompare.html page there is a tagimg src="" width=300 height=300 /
All iamges are in /images/*When I run the app I don't see the images. I've tried using bothabsolute and relative paths, and I've tried having the images in a lotof different places.When you follow a static relative path from a run-time wicket page;
where do you end up?/AndersPhil Kulak wrote: Do you have a resource reference named images/delete.gif? Because if you're just trying to make a static link to a static image, there's no
 need to get Wicket involved: img src="" type=image width=12 height=12 alt=[Delete] border=0 valign=middle /
 On 10/10/05, Francis Amanfo [EMAIL PROTECTED] wrote:Hi, I have a Panel whose markup contains: img src="" type=image wicket:id=deleteImage
width=12 height=12 alt=[Delete] border=0 valign=middle / The markup is located in package org.foo.presentation In my panel class located in the same package as the markup I do:
 add(new Image(deleteImage, images/delete.gif)) The problem is the image doesn't get dsiplayed. Viewing the source html inmy browser I see:
 img width=12 height=12 type=image wicket:id=deleteImagevalign=middle border=0src=""
alt=[Delete]/ I don't get it. Any help? Francis ---
 This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
--http://ojalgo.org/Mathematics, Linear Algebra and Optimisation with Java---This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,and more. http://solutions.newsforge.com/ibmarch.tmpl___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



[Wicket-user] Where/how to store state information

2005-10-19 Thread Timo Stamm

Hi list,


I have created a navigation menu component and a menu model.

The menu component should show on every page of my application, so I 
derive all pages from a page class which creates and adds a menu instance.


The menu must remember which item is selected (the state is 
representable by a simple String).



Now I have the following problem: Where do I keep the state of the menu?

It seems obvious to use the session, but how? The Wicket Session class 
does not allow arbitrary attributes. I guess I could get the original 
HttpSession somehow, but I am sure that there is a better way.



Timo


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Where/how to store state information

2005-10-19 Thread Eelco Hillenius
For anything you want to store in the session, you can provide your
own session implementation. Not having some kind of generic map in
session was deliberate, as we think it is better to provide a custom
one that has strongly typed properties. See for example the hangman
example in wicket-examples.

For this specific case, I think storing it in the session is probably
the easiest way, though not the most elegant way; what if you decide
to have multiple navigation components in your application? If
possible, the best way imo is to design your navigation component such
that you don't need any extra state info; just the current page and
maybe some additional attributes of that page and the current user. If
that is not possible, you might check out whether it is doable to pass
the state whenever you navigate to other pages. Not sure whether that
is a better idea than storing session info though.

Eelco



On 10/19/05, Timo Stamm [EMAIL PROTECTED] wrote:
 Hi list,


 I have created a navigation menu component and a menu model.

 The menu component should show on every page of my application, so I
 derive all pages from a page class which creates and adds a menu instance.

 The menu must remember which item is selected (the state is
 representable by a simple String).


 Now I have the following problem: Where do I keep the state of the menu?

 It seems obvious to use the session, but how? The Wicket Session class
 does not allow arbitrary attributes. I guess I could get the original
 HttpSession somehow, but I am sure that there is a better way.


 Timo


 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Where/how to store state information

2005-10-19 Thread Dipu
Can't you declare an instance variable in your own application specific 
session class and add getter/setter methods.
I am not sure if this is the best solution. Please let me know if you find a 
better way for doing it.


Regards
Dipu
- Original Message - 
From: Timo Stamm [EMAIL PROTECTED]

To: wicket-user@lists.sourceforge.net
Sent: Wednesday, October 19, 2005 2:48 PM
Subject: [Wicket-user] Where/how to store state information



Hi list,


I have created a navigation menu component and a menu model.

The menu component should show on every page of my application, so I 
derive all pages from a page class which creates and adds a menu instance.


The menu must remember which item is selected (the state is representable 
by a simple String).



Now I have the following problem: Where do I keep the state of the menu?

It seems obvious to use the session, but how? The Wicket Session class 
does not allow arbitrary attributes. I guess I could get the original 
HttpSession somehow, but I am sure that there is a better way.



Timo


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Image is not displayed

2005-10-19 Thread Anders Peterson

Johan Compagner wrote:

is that img tag without any wicket:id? so there is no wicket component
attached to it?


Correct. There is no wicket:id.

The source code looks like this:

tr
td scope=colimg src=../../../../images/tmp_pie_1.gif 
width=300 height=300 //td
td scope=colimg src=../../../../images/tmp_pie_2.gif 
width=300 height=300 //td

  /tr

The html sent to the browser is exactly the same.


The url is exactly what it is there at runtime?

That is ofcourse not right. At runtime it should be:
/images/tmp_pie_1.gif


Are you saying that the designer needs to have a duplicate images folder 
in every java package?


I looked at the wicket-examples, that's how it seems to be done there.

/Anders


johan


On 10/19/05, Anders Peterson [EMAIL PROTECTED] wrote:


I'm trying to do precisely this, and I can't get it to work. I've tried
all possible ways to do this - except one. ;-)

Using wicket 1.1rc2

I use Dreamweaver to do the html work, and eclipse for the Java part.
The Dreamweaver site root is set to be the same as the java source
folder root.

In the /se/optimatika/blapp/gui/PgCompare.html page there is a tag

img src=../../../../images/tmp_pie_1.gif width=300 height=300 /

All iamges are in /images/*

When I run the app I don't see the images. I've tried using both
absolute and relative paths, and I've tried having the images in a lot
of different places.

When you follow a static relative path from a run-time wicket page;
where do you end up?

/Anders

Phil Kulak wrote:


Do you have a resource reference named images/delete.gif? Because if
you're just trying to make a static link to a static image, there's no
need to get Wicket involved:

img src=images/delete.gif type=image width=12 height=12
alt=[Delete] border=0 valign=middle /

On 10/10/05, Francis Amanfo [EMAIL PROTECTED] wrote:



Hi,

I have a Panel whose markup contains:

img src=images/delete.gif type=image wicket:id=deleteImage
width=12 height=12 alt=[Delete] border=0 valign=middle /

The markup is located in package org.foo.presentation
In my panel class located in the same package as the markup I do:

add(new Image(deleteImage, images/delete.gif))

The problem is the image doesn't get dsiplayed. Viewing the source html


in


my browser I see:

img width=12 height=
12 type=image wicket:id=deleteImage
valign=middle border=0



src=/portal/app/resources/org.foo.presentation.PSBreadCrumbsPanel/images/delete_en_US.gif
alt=[Delete]
/

I don't get it. Any help?

Francis





---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads,


discussions,


and more. http://solutions.newsforge.com/ibmarch.tmpl



--
http://ojalgo.org/

Mathematics, Linear Algebra and Optimisation with Java


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user







--
http://ojalgo.org/

Mathematics, Linear Algebra and Optimisation with Java


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Image is not displayed

2005-10-19 Thread Johan Compagner
no if you want to have one image folder in youre root.
then you just have to give that image tag a wicket component 
and rewrite the src tag with a attribute modifier to /images/*

Or maybe auto linking or something like that can be used but that is something that juergen knows more about.

johan
On 10/19/05, Anders Peterson [EMAIL PROTECTED] wrote:
Johan Compagner wrote: is that img tag without any wicket:id? so there is no wicket component attached to it?Correct. There is no wicket:id.The source code looks like this:tr
 td scope=colimg src="">width=300 height=300 //td td scope=colimg src=""
width=300 height=300 //td /trThe html sent to the browser is exactly the same. The url is exactly what it is there at runtime? That is ofcourse not right. At runtime it should be:
 /images/tmp_pie_1.gifAre you saying that the designer needs to have a duplicate images folderin every java package?I looked at the wicket-examples, that's how it seems to be done there.
/Anders johan On 10/19/05, Anders Peterson [EMAIL PROTECTED] wrote:I'm trying to do precisely this, and I can't get it to work. I've tried
all possible ways to do this - except one. ;-)Using wicket 1.1rc2I use Dreamweaver to do the html work, and eclipse for the Java part.The Dreamweaver site root is set to be the same as the java source
folder root.In the /se/optimatika/blapp/gui/PgCompare.html page there is a tagimg src="" width=300 height=300 /
All iamges are in /images/*When I run the app I don't see the images. I've tried using bothabsolute and relative paths, and I've tried having the images in a lot
of different places.When you follow a static relative path from a run-time wicket page;where do you end up?/AndersPhil Kulak wrote:
Do you have a resource reference named images/delete.gif? Because ifyou're just trying to make a static link to a static image, there's noneed to get Wicket involved:
img src="" type=image width=12 height=12alt=[Delete] border=0 valign=middle /
On 10/10/05, Francis Amanfo [EMAIL PROTECTED] wrote:Hi,I have a Panel whose markup contains:
img src="" type=image wicket:id=deleteImagewidth=12 height=12 alt=[Delete] border=0 valign=middle /
The markup is located in package org.foo.presentationIn my panel class located in the same package as the markup I do:add(new Image(deleteImage, images/delete.gif))
The problem is the image doesn't get dsiplayed. Viewing the source htmlinmy browser I see:img width=12 height=
12 type=image wicket:id=deleteImagevalign=middle border=0src=""
alt=[Delete]/I don't get it. Any help?Francis
---This SF.Net email is sponsored by:Power Architecture Resource Center: Free content, downloads,
discussions,and more. http://solutions.newsforge.com/ibmarch.tmpl--
http://ojalgo.org/Mathematics, Linear Algebra and Optimisation with Java---
This SF.Net email is sponsored by:Power Architecture Resource Center: Free content, downloads, discussions,and more. http://solutions.newsforge.com/ibmarch.tmpl
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user--http://ojalgo.org/Mathematics, Linear Algebra and Optimisation with Java
---This SF.Net email is sponsored by:Power Architecture Resource Center: Free content, downloads, discussions,and more. 
http://solutions.newsforge.com/ibmarch.tmpl___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Where/how to store state information

2005-10-19 Thread Timo Stamm

Eelco Hillenius wrote:

For anything you want to store in the session, you can provide your
own session implementation. Not having some kind of generic map in
session was deliberate, as we think it is better to provide a custom
one that has strongly typed properties. See for example the hangman
example in wicket-examples.


Thanks, that's what I was looking for.



If
possible, the best way imo is to design your navigation component such
that you don't need any extra state info; just the current page and
maybe some additional attributes of that page and the current user. If
that is not possible, you might check out whether it is doable to pass
the state whenever you navigate to other pages. Not sure whether that
is a better idea than storing session info though.


I have considered both, but right now it is too early for generalization.


Timo


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Where/how to store state information

2005-10-19 Thread Timo Stamm

Dipu wrote:
Can't you declare an instance variable in your own application specific 
session class and add getter/setter methods.
I am not sure if this is the best solution. Please let me know if you 
find a better way for doing it.



Thanks, Eelco pointed me to the hangman example which shows how to use 
such a specific session implementation.



Timo


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Markup and matching Java class

2005-10-19 Thread Francis Amanfo
Hi all,

This requirement of Wicket that a markup and its corresponding Java
class must have the same name is violating a usecase that I have. The
generated markup from sources I have no control on have sometimes
filenames containing identifiers like the hyphen which is not legal to
appear in Java class names. So my question is does anyone has a trick I
can use to overcome this shortcoming? For example, Foo-Bar.html can't
have a class Foo-Bar.java. How can this be solved in Wicket without
renaming the markup file?

Francis


RE: [Wicket-user] Standalong Radio component ?

2005-10-19 Thread Igor Vaynberg



yes, the checkbox version has already been 
requested.
I will try to crack it out tonight or the next 
day.

-Igor


  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Johan 
  CompagnerSent: Wednesday, October 19, 2005 1:08 AMTo: 
  wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
  Standalong Radio component ?
  i like this new component. very niceBut shouldn't we also not 
  have the same thing for checkboxes?(and get a replacement for 
  CheckBoxMultipleChoice like we did now with RadioChoice)
  On 10/18/05, Phil 
  Kulak [EMAIL PROTECTED]  
  wrote:
  I 
agree, for what it's worth.On 10/17/05, Eelco Hillenius  [EMAIL PROTECTED] 
wrote: Sounds like a good one for core. 
Eelco---This 
SF.Net email is sponsored by:Power Architecture Resource Center: Free 
content, downloads, discussions,and more. http://solutions.newsforge.com/ibmarch.tmpl 
___Wicket-user mailing 
listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] JavaOne Presentation

2005-10-19 Thread David Liebeherr
I'll guess it would been a good idea to set up a link to the JavaOne 
Presenttion on the Wicket-Homepage.

It's a good introduction i think.

Cu,
Dave

--
Rent-a-Developer
David Liebeherr
Tel.: 0721 3504990
mail: [EMAIL PROTECTED]

SUN Certified Java Associate (SCJA)



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] JavaOne Presentation

2005-10-19 Thread Eelco Hillenius
It's just that we kept on improving it (we're giving presentations
more often), so maybe it would be better then to put the actual
current presentation on-line.

Eelco

On 10/19/05, David Liebeherr [EMAIL PROTECTED] wrote:
 I'll guess it would been a good idea to set up a link to the JavaOne
 Presenttion on the Wicket-Homepage.
 It's a good introduction i think.

 Cu,
 Dave

 --
 Rent-a-Developer
 David Liebeherr
 Tel.: 0721 3504990
 mail: [EMAIL PROTECTED]

 SUN Certified Java Associate (SCJA)



 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] JavaOne Presentation

2005-10-19 Thread David Liebeherr

Yeah, probably.
But actually noone is ablte to see the JavaOne Presentation without 
beeing on the wicket-user list.

Bc it was only posted here which is realy sad for new-users.

I still think that Presentations should be linked somewhere on the 
wicket-homepage.


Cu,
Dave

Eelco Hillenius wrote:


It's just that we kept on improving it (we're giving presentations
more often), so maybe it would be better then to put the actual
current presentation on-line.

Eelco

On 10/19/05, David Liebeherr [EMAIL PROTECTED] wrote:
 


I'll guess it would been a good idea to set up a link to the JavaOne
Presenttion on the Wicket-Homepage.
It's a good introduction i think.

Cu,
Dave

--
Rent-a-Developer
David Liebeherr
Tel.: 0721 3504990
mail: [EMAIL PROTECTED]

SUN Certified Java Associate (SCJA)



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

   




---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 




--
Rent-a-Developer
David Liebeherr
Tel.: 0721 3504990
mail: [EMAIL PROTECTED]

SUN Certified Java Associate (SCJA)



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] JavaOne Presentation

2005-10-19 Thread Eelco Hillenius
yeah. good idea.

Eelco


On 10/19/05, David Liebeherr [EMAIL PROTECTED] wrote:
 Yeah, probably.
 But actually noone is ablte to see the JavaOne Presentation without
 beeing on the wicket-user list.
 Bc it was only posted here which is realy sad for new-users.

 I still think that Presentations should be linked somewhere on the
 wicket-homepage.

 Cu,
 Dave

 Eelco Hillenius wrote:

 It's just that we kept on improving it (we're giving presentations
 more often), so maybe it would be better then to put the actual
 current presentation on-line.
 
 Eelco
 
 On 10/19/05, David Liebeherr [EMAIL PROTECTED] wrote:
 
 
 I'll guess it would been a good idea to set up a link to the JavaOne
 Presenttion on the Wicket-Homepage.
 It's a good introduction i think.
 
 Cu,
 Dave
 
 --
 Rent-a-Developer
 David Liebeherr
 Tel.: 0721 3504990
 mail: [EMAIL PROTECTED]
 
 SUN Certified Java Associate (SCJA)
 
 
 
 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 --
 Rent-a-Developer
 David Liebeherr
 Tel.: 0721 3504990
 mail: [EMAIL PROTECTED]

 SUN Certified Java Associate (SCJA)



 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Markup and matching Java class

2005-10-19 Thread Juergen Donnerstag
Please see http://www.wicket-wiki.org.uk/wiki/index.php/Howto and the
two entries in the Configuration section.

Juergen

On 10/19/05, Francis Amanfo [EMAIL PROTECTED] wrote:
 Hi all,

  This requirement of Wicket that a markup and its corresponding Java class
 must have the same name is violating a usecase that I have. The generated
 markup from sources I have no control on have sometimes filenames containing
 identifiers like the hyphen which is not legal to appear in Java class
 names. So my question is does anyone has a trick I can use to overcome this
 shortcoming? For example, Foo-Bar.html can't have a class Foo-Bar.java. How
 can this be solved in Wicket without renaming the markup file?

  Francis



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


RE: [Wicket-user] Problems with ChoiceRenderer and DropDownChoice

2005-10-19 Thread WATSON Matthew



Thanks 
for your reply.

Do you 
I think that if I try and implement my own version of a ChoiceRenderer that I 
will need to potentially override this "final" method from AbstractSingleSelectChoice?

 public final void setModelValue(final String value)  
{  
 List choices = getChoices();  
 for(int index=0;indexchoices.size();index++)  
 {  
 
 // Get next choicefinal Object choice = 
choices.get(index); 
 
 
 if(getChoiceRenderer().getIdValue(choice, 
index).equals(value)) 
 
 
 {
 setModelObject(choice);  
 
 
 break;  
 
 }  
 }  }
To be something more along the lines of: 



 public final void setModelValue(final String value)  
{  
 List choices = getChoices();  
 for(int index=0;indexchoices.size();index++)  
 {  
 
 // Get next choicefinal Object choice = 
choices.get(index); 
 
 
 if(getChoiceRenderer().getIdValue(choice, 
index).equals(value)) 
 
 
 {
 setModelObject(value); // or something 
similar.
^^^ 
break;  
 
 }  
 }  }
This would at least give me control over 
how I assign the model object.
Matt.Youre problem lies in this:add(DropDownChoice("genderId", 
genders, new ChoiceRenderer("displayValue", 
"id")); 
^^^it should be:add(DropDownChoice("gender", genders, new 
ChoiceRenderer("displayValue", "id"));So not the ID but the real 
object.Because what is in the choices (the genders list)should be 
exactly the same object as what is in the selected property.you are 
trying to compare the Number 0 with Person.You can do that if you want but 
then you need to supply youre own choicerenderer that can handle bothinputs 
(doing person.getId() if it is a person and directly return the number if it is 
a number)johan

  On 10/19/05, WATSON 
  Matthew [EMAIL PROTECTED] 
  wrote:
  
Hi, 
Since upgrading from 1.0 to 1.1 rc2 I've 
had problems with the ChoiceRenderer and DropDownChoice components. 
To explain: 
I have two classes 
class Person { 
 private long id; 
 private long genderId; 
 getId()  setId() 
 getGenderId()  
... etc. } 
class Gender { 
 private long id; 
 private String displayValue; 
 getId()  setId() 
 getDisplayValue() 
 ... etc. } 
Assuming I have a List 
of genders with values of: 
 1. 
Male.  2. 
Female.  3. 
Unknown. 
(These come from a 
database, so real id will vary). 
And a form which 
essentially contains the following: 
setModel(CompoundPropertyModel(new Person()); add(DropDownChoice("genderId", 
genders, new ChoiceRenderer("displayValue", "id")); 
*** First problem occurs 
with the above, I get this error: 
error getting id value 
of: 0 for property: id. Which is being thrown from within the 

ChoiceRender.java 
 public String getIdValue(Object object, int 
index)  {  
 if (idExpression == null)  
 {  
  return Integer.toString(index); 
 
 }  
  
 if (object == null)  
 {  
  return "";  
 }  
  
 try  
 {  
 
 Object returnValue = Ognl.getValue(idExpression, 
object);  
 
 if (returnValue == null)  
 
 {  
 
  return "";  
 
 }  
 
  
 
 return returnValue.toString();  
 }  
 catch (OgnlException ex)  
 {  
 
 throw new WicketRuntimeException("Error getting id value of: " + 
 
 
  object + " for property: " 
+ idExpression,ex);  
 }  } 
I think that its trying 
somehow to see if the current Persons genderId of 0 matches something within 
the list. It doesn't seem to be correctly handling primatives as I would 
expect. 
I think it wants the 
Person class to have a Gender object which won't be possible in this case. 
If so what can either be done to the ChoiceRender or to my code to fix 
this?
 Second problem 
occurs in AbstractSingleSelectChoice: 
 public final void setModelValue(final String 
value)  {  
 List choices = getChoices();  
 for(int index=0;indexchoices.size();index++) 
 
 {  
 
 // Get next choice *1 
 
 final Object choice = 
choices.get(index);  
 
 if(getChoiceRenderer().getIdValue(choice, 
index).equals(value))  
 
 { *2 
 
 
 
setModelObject(choice);  
 
 
 break;  
 
 }  
 }  } 
This gets executed when 
the form is submitted. Again this isn't working with primatives 
properly. At *1 the choice variable is actually an instance of the 'Gender' 
class, whereas at *2 the actual model object is a Long. So when it tries to 
do this set() it fails.
I think Wicket should be 
able to handle these sorts of situations with primatives. 
Does anybody have any 
ideas, or am I doing something wrong? 
Thanks in 
advance, Matt 
--- 

Re: [Wicket-user] Problems with ChoiceRenderer and DropDownChoice

2005-10-19 Thread Johan Compagner
no if you really want the ID as the model value
Then just give a list with IDs as the choicelist.
Then map in youre ChoiceRenderer those id's to displayvalues.

getIdValue is then pretty simple just return the object directly
getDisplayValue should do a map lookup

Choices are just make that the List of choices and the selected value has to be the same time. 
So what is in the List can be set as the value. This won't change.

johan
On 10/19/05, WATSON Matthew [EMAIL PROTECTED] wrote:







Thanks 
for your reply.

Do you 
I think that if I try and implement my own version of a ChoiceRenderer that I 
will need to potentially override this final method from AbstractSingleSelectChoice?

 public final void setModelValue(final String value)
  
{  
 List choices = getChoices();  
 for(int index=0;indexchoices.size();index++)  
 {  
 
 // Get next choice
final Object choice = 
choices.get(index); 
 
 
 if(getChoiceRenderer().getIdValue(choice, 
index).equals(value)) 
 
 
 {
 setModelObject(choice); 
 
 
 
 break;  
 
 }  
 }  
}
To be something more along the lines of: 



 public final void setModelValue(final String value)
  
{  
 List choices = getChoices();  
 for(int index=0;indexchoices.size();index++)  
 {  
 
 // Get next choice
final Object choice = 
choices.get(index); 
 
 
 if(getChoiceRenderer().getIdValue(choice, 
index).equals(value)) 
 
 
 {
 setModelObject(value);
 // or something 
similar.
^^^
break;  
 
 }  
 }  }

This would at least give me control over 
how I assign the model object.
Matt.
Youre problem lies in this:add(DropDownChoice(genderId, 
genders, new ChoiceRenderer(displayValue, 
id)); 
^^^it should be:add(DropDownChoice(gender, genders, new 
ChoiceRenderer(displayValue, id));So not the ID but the real 
object.Because what is in the choices (the genders list)should be 
exactly the same object as what is in the selected property.you are 
trying to compare the Number 0 with Person.You can do that if you want but 
then you need to supply youre own choicerenderer that can handle bothinputs 
(doing person.getId() if it is a person and directly return the number if it is 
a number)johan

  On 10/19/05, WATSON 
  Matthew [EMAIL PROTECTED] 
  wrote:
  
Hi, 
Since upgrading from 1.0 to 1.1 rc2 I've 
had problems with the ChoiceRenderer and DropDownChoice components. 
To explain: 
I have two classes 
class Person { 
 private long id; 
 private long genderId; 
 getId()  setId() 
 getGenderId()  
... etc. } 
class Gender { 
 private long id; 
 private String displayValue; 
 getId()  setId() 
 getDisplayValue() 
 ... etc. } 
Assuming I have a List 
of genders with values of: 
 1. 
Male.  2. 
Female.  3. 
Unknown. 
(These come from a 
database, so real id will vary). 
And a form which 
essentially contains the following: 
setModel(CompoundPropertyModel(new Person()); add(DropDownChoice(genderId, 
genders, new ChoiceRenderer(displayValue, id)); 
*** First problem occurs 
with the above, I get this error: 
error getting id value 
of: 0 for property: id. Which is being thrown from within the 

ChoiceRender.java 
 public String getIdValue(Object object, int 
index)  {  
 if (idExpression == null)  
 {  
  return Integer.toString(index); 
 
 }  
  
 if (object == null)  
 {  
  return ;  
 }  
  
 try  
 {  
 
 Object returnValue = Ognl.getValue(idExpression, 
object);  
 
 if (returnValue == null)  
 
 {  
 
  return ;  
 
 }  
 
  
 
 return returnValue.toString();  
 }  
 catch (OgnlException ex)  
 {  
 
 throw new WicketRuntimeException(Error getting id value of:  + 
 
 
  object +  for property:  
+ idExpression,ex);  
 }  } 
I think that its trying 
somehow to see if the current Persons genderId of 0 matches something within 
the list. It doesn't seem to be correctly handling primatives as I would 
expect. 
I think it wants the 
Person class to have a Gender object which won't be possible in this case. 
If so what can either be done to the ChoiceRender or to my code to fix 
this?
 Second problem 
occurs in AbstractSingleSelectChoice: 
 public final void setModelValue(final String 
value)  {  
 List choices = getChoices();  
 for(int index=0;indexchoices.size();index++) 
 
 {  
 
 // Get next choice *1 
 
 final Object choice = 
choices.get(index);  
 
 if(getChoiceRenderer().getIdValue(choice, 
index).equals(value))  
 
 { *2 
 
 
 
setModelObject(choice);  
 
 
 break;  
 
 }  
 }  } 
This gets executed when 
the form is submitted. Again this isn't working with primatives 
properly. At *1 the choice variable is actually an 

RE: [Wicket-user] Standalong Radio component ?

2005-10-19 Thread Igor Vaynberg



Working on the checkbox components now. I am wandering what 
you guys think would be a good name.
The radio components are named RadioGroup and Radio, so I 
was thinking CheckBoxGroup and CheckBox but we already have a CheckBox 
component.

Any suggestions?

-Igor


  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Igor 
  VaynbergSent: Wednesday, October 19, 2005 10:15 AMTo: 
  wicket-user@lists.sourceforge.netSubject: RE: [Wicket-user] 
  Standalong Radio component ?
  
  yes, the checkbox version has already been 
  requested.
  I will try to crack it out 
  tonight or the next day.
  
  -Igor
  
  


From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Johan 
CompagnerSent: Wednesday, October 19, 2005 1:08 AMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
Standalong Radio component ?
i like this new component. very niceBut shouldn't we also not 
have the same thing for checkboxes?(and get a replacement for 
CheckBoxMultipleChoice like we did now with RadioChoice)
On 10/18/05, Phil 
Kulak [EMAIL PROTECTED]  
wrote: 
I 
  agree, for what it's worth.On 10/17/05, Eelco Hillenius  [EMAIL PROTECTED] 
  wrote: Sounds like a good one for core. 
  Eelco---This 
  SF.Net email is sponsored by:Power Architecture Resource Center: Free 
  content, downloads, discussions,and more. http://solutions.newsforge.com/ibmarch.tmpl 
  ___Wicket-user mailing 
  listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Validating Subforms

2005-10-19 Thread Nick Heudecker
Hi,

I have a Form that I add a handful of Panels to. Each Panel has a
few form elements which I'd like to validate. I can add elements
like the RequiredTextField to the Panel, but what does the key in the
properties file look like? Something like?

myForm.myPanelName.someRequiredTextField.RequiredValidator=Foo is required.

But I don't know the name of the panel since it varies. Any ideas? Thanks.


RE: [Wicket-user] Validating Subforms

2005-10-19 Thread Igor Vaynberg



I believe the keys were constructed 
using:

[form-id].[form-component-id].[validator-class-name] so the 
name fo the panel should not be part of the key.

check this out for an alternate 
approach:

http://www.wicket-wiki.org.uk/wiki/index.php/Validation_Messages

-Igor



  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Nick 
  HeudeckerSent: Wednesday, October 19, 2005 8:30 PMTo: 
  wicket-user@lists.sourceforge.netSubject: [Wicket-user] Validating 
  Subforms
  Hi,I have a Form that I add a handful of Panels to. 
  Each Panel has a few form elements which I'd like to validate. I can add 
  elements like the RequiredTextField to the Panel, but what does the key in the 
  properties file look like? Something 
  like?myForm.myPanelName.someRequiredTextField.RequiredValidator=Foo is 
  required.But I don't know the name of the panel since it varies. 
  Any ideas? Thanks.


Re: [Wicket-user] Validating Subforms

2005-10-19 Thread Nick Heudecker
Thanks. I'll try it.On 10/19/05, Igor Vaynberg [EMAIL PROTECTED] wrote:





I believe the keys were constructed 
using:

[form-id].[form-component-id].[validator-class-name] so the 
name fo the panel should not be part of the key.

check this out for an alternate 
approach:


http://www.wicket-wiki.org.uk/wiki/index.php/Validation_Messages

-Igor



  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] On Behalf Of Nick 
  HeudeckerSent: Wednesday, October 19, 2005 8:30 PMTo: 
  wicket-user@lists.sourceforge.netSubject: [Wicket-user] Validating 
  Subforms
  Hi,I have a Form that I add a handful of Panels to. 
  Each Panel has a few form elements which I'd like to validate. I can add 
  elements like the RequiredTextField to the Panel, but what does the key in the 
  properties file look like? Something 
  like?myForm.myPanelName.someRequiredTextField.RequiredValidator=Foo is 
  required.But I don't know the name of the panel since it varies. 
  Any ideas? Thanks.




Re: [Wicket-user] Standalong Radio component ?

2005-10-19 Thread Andrew Berman
What release will these new components be a part of? 

--AndrewOn 10/19/05, Igor Vaynberg [EMAIL PROTECTED] wrote:





Working on the checkbox components now. I am wandering what 
you guys think would be a good name.
The radio components are named RadioGroup and Radio, so I 
was thinking CheckBoxGroup and CheckBox but we already have a CheckBox 
component.

Any suggestions?

-Igor


  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] On Behalf Of Igor 
  VaynbergSent: Wednesday, October 19, 2005 10:15 AMTo: 
  wicket-user@lists.sourceforge.netSubject: RE: [Wicket-user] 
  Standalong Radio component ?
  
  yes, the checkbox version has already been 
  requested.
  I will try to crack it out 
  tonight or the next day.
  
  -Igor
  
  


From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Johan 
CompagnerSent: Wednesday, October 19, 2005 1:08 AMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
Standalong Radio component ?
i like this new component. very niceBut shouldn't we also not 
have the same thing for checkboxes?(and get a replacement for 
CheckBoxMultipleChoice like we did now with RadioChoice)
On 10/18/05, Phil 
Kulak [EMAIL PROTECTED]  
wrote: 
I 
  agree, for what it's worth.On 10/17/05, Eelco Hillenius  [EMAIL PROTECTED] 
  wrote: Sounds like a good one for core. 
  Eelco---This 
  SF.Net email is sponsored by:Power Architecture Resource Center: Free 
  content, downloads, discussions,and more. http://solutions.newsforge.com/ibmarch.tmpl
 
  ___Wicket-user mailing 
  listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




RE: [Wicket-user] Standalong Radio component ?

2005-10-19 Thread Igor Vaynberg



1.1

-Igor


  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Andrew 
  BermanSent: Wednesday, October 19, 2005 8:59 PMTo: 
  wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
  Standalong Radio component ?
  What release will these new components be a part of? 
  --Andrew
  On 10/19/05, Igor 
  Vaynberg [EMAIL PROTECTED] 
  wrote:
  
Working 
on the checkbox components now. I am wandering what you guys think would be 
a good name.
The 
radio components are named RadioGroup and Radio, so I was thinking 
CheckBoxGroup and CheckBox but we already have a CheckBox 
component.

Any 
suggestions?

-Igor


  
  
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of 
  Igor VaynbergSent: Wednesday, October 19, 2005 10:15 
  AMTo: wicket-user@lists.sourceforge.netSubject: 
  RE: [Wicket-user] Standalong Radio component ?
  
  
  yes, 
  the checkbox version has already been requested.
  I will try to crack it out tonight or the next 
  day.
  
  -Igor
  
  


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf 
Of Johan CompagnerSent: Wednesday, October 19, 2005 1:08 
AMTo: wicket-user@lists.sourceforge.netSubject: 
Re: [Wicket-user] Standalong Radio component ?
i like this new component. very niceBut shouldn't we also 
not have the same thing for checkboxes?(and get a replacement for 
CheckBoxMultipleChoice like we did now with RadioChoice)
On 10/18/05, Phil 
Kulak [EMAIL PROTECTED]  
wrote: 
I 
  agree, for what it's worth.On 10/17/05, Eelco Hillenius  
  [EMAIL PROTECTED] wrote: Sounds 
  like a good one for core. 
  Eelco---This 
  SF.Net email is sponsored by:Power Architecture Resource Center: 
  Free content, downloads, discussions,and more. http://solutions.newsforge.com/ibmarch.tmpl 
  ___Wicket-user 
  mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Standalong Radio component ?

2005-10-19 Thread Ingram Chen
How about CheckGroup and Check ? just like trimming RadioButton as Radio
On 10/20/05, Igor Vaynberg [EMAIL PROTECTED] wrote:





1.1

-Igor


  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] On Behalf Of Andrew 
  BermanSent: Wednesday, October 19, 2005 8:59 PMTo: 
  wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
  Standalong Radio component ?
  What release will these new components be a part of? 
  --Andrew
  On 10/19/05, Igor 
  Vaynberg [EMAIL PROTECTED] 
  wrote:
  
Working 
on the checkbox components now. I am wandering what you guys think would be 
a good name.
The 
radio components are named RadioGroup and Radio, so I was thinking 
CheckBoxGroup and CheckBox but we already have a CheckBox 
component.

Any 
suggestions?

-Igor


  
  
  From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]] On Behalf Of 
  Igor VaynbergSent: Wednesday, October 19, 2005 10:15 
  AMTo: wicket-user@lists.sourceforge.netSubject: 
  RE: [Wicket-user] Standalong Radio component ?
  
  
  yes, 
  the checkbox version has already been requested.
  I will try to crack it out tonight or the next 
  day.
  
  -Igor
  
  


From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]] On Behalf 
Of Johan CompagnerSent: Wednesday, October 19, 2005 1:08 
AMTo: wicket-user@lists.sourceforge.netSubject: 
Re: [Wicket-user] Standalong Radio component ?
i like this new component. very niceBut shouldn't we also 
not have the same thing for checkboxes?(and get a replacement for 
CheckBoxMultipleChoice like we did now with RadioChoice)
On 10/18/05, Phil 
Kulak [EMAIL PROTECTED]  
wrote: 
I 
  agree, for what it's worth.On 10/17/05, Eelco Hillenius  
  [EMAIL PROTECTED] wrote: Sounds 
  like a good one for core. 
  Eelco---This 
  SF.Net email is sponsored by:Power Architecture Resource Center: 
  Free content, downloads, discussions,and more. http://solutions.newsforge.com/ibmarch.tmpl 
  ___Wicket-user 
  mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen



RE: [Wicket-user] Standalong Radio component ?

2005-10-19 Thread Igor Vaynberg



good idea, i will use those.
-Igor


  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Ingram 
  ChenSent: Wednesday, October 19, 2005 10:32 PMTo: 
  wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
  Standalong Radio component ?
  How about CheckGroup and Check ? just like trimming 
  RadioButton as Radio
  On 10/20/05, Igor 
  Vaynberg [EMAIL PROTECTED] 
  wrote:
  
1.1

-Igor


  
  
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of 
  Andrew BermanSent: Wednesday, October 19, 2005 8:59 
  PM
  To: wicket-user@lists.sourceforge.netSubject: Re: 
  [Wicket-user] Standalong Radio component 
  ?
  
  What release will these new components be a part of? 
  --Andrew
  On 10/19/05, Igor 
  Vaynberg [EMAIL PROTECTED] wrote: 
  
Working on the checkbox components now. I am wandering what you 
guys think would be a good name.
The 
radio components are named RadioGroup and Radio, so I was thinking 
CheckBoxGroup and CheckBox but we already have a CheckBox 
component.

Any 
suggestions?

-Igor


  
  
  From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On 
  Behalf Of Igor VaynbergSent: Wednesday, October 19, 
  2005 10:15 AMTo: wicket-user@lists.sourceforge.netSubject: 
  RE: [Wicket-user] Standalong Radio component ?
  
  
  yes, the checkbox version has already been 
  requested.
  I will try to crack it out tonight or the next 
  day.
  
  -Igor
  
  


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On 
Behalf Of Johan CompagnerSent: Wednesday, October 19, 
2005 1:08 AMTo: wicket-user@lists.sourceforge.netSubject: 
Re: [Wicket-user] Standalong Radio component ?
i like this new component. very niceBut shouldn't we 
also not have the same thing for checkboxes?(and get a 
replacement for CheckBoxMultipleChoice like we did now with 
RadioChoice)
On 10/18/05, Phil Kulak [EMAIL PROTECTED] 
 wrote: 
I 
  agree, for what it's worth.On 10/17/05, Eelco Hillenius 
   [EMAIL PROTECTED] wrote: 
  Sounds like a good one for core. 
  Eelco---This 
  SF.Net email is sponsored by:Power Architecture Resource 
  Center: Free content, downloads, discussions,and more. http://solutions.newsforge.com/ibmarch.tmpl 
  ___Wicket-user 
  mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED]Institue of 
  BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen