Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-03 Thread Johan Compagner

changed it

On 5/2/07, Gerolf Seitz [EMAIL PROTECTED] wrote:


hm, i did mess up. there's one more thing left in line 1534:
if (positionArray['w']==-1) positionArray['m'] = format.indexOf('w');

the quoted 'm' should be replaced with a w. the right line is:
if (positionArray['w']==-1) positionArray['w'] = format.indexOf('w');

after that change, everything works great.

sry for that,
  gerolf


On 5/2/07, Johan Compagner [EMAIL PROTECTED] wrote:

 i applied it look if it works for you now.


 On 5/2/07, Gerolf Seitz  [EMAIL PROTECTED] wrote:
 
  thx,
  jira issue with attached patch:
  http://wicketstuff.org/jira/browse/WSCAL-1
 
  since it's my first contribution, i hope i didn't mess up ;)
  gerolf
 
  On 5/1/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  
   i created a jira project for it
  
   -igor
  
  
   On 5/1/07, Gerolf Seitz  [EMAIL PROTECTED] wrote:
   
as for now, i added the week of year pattern 'w' to the
wicket-calendar in wicket-stuff.
one may click either the week number directly or any day in the
desired week.
   
since there is no JIRA project for wicket-calendar (to which i
would attach a patch or the whole file),
how would you like me to provide this contribution?
   
gerolf
   
On 5/1/07, Johan Compagner [EMAIL PROTECTED]  wrote:

 This is the one i currently use:


 https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar

 it works pretty well for what it should do
 I haven't heard from the javascript author back that he wants to
 change the license so its on wicket stuff for the moment.

 johan



 On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
   i'd like to help un-limit the new datepicker in the
  datetime project.
   what i personally need is the ability to select a week or a
  month.
  
   i'm not sure though how much we can change the datepicker
  itself, because
   it's a YUI widget.
 
  Not sure either. Might be a big pain. If it's too much work,
  we can
  try urge Johan/ others more to add their datepicker
  components. I
  thought he found one that supports that.
 
   however, as i said, i'd really like to contribute...
 
  That's always very welcome.
 
  Eelco
 
 
  
-
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and
  take
  control of your XML. No limits. Just data. Click to get it
  now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



 
-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and
 take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


   
   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 This SF.net email is sponsored by DB2 Express
 

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-03 Thread Gerolf Seitz

thx a lot

On 5/3/07, Johan Compagner [EMAIL PROTECTED] wrote:


changed it

On 5/2/07, Gerolf Seitz [EMAIL PROTECTED] wrote:

 hm, i did mess up. there's one more thing left in line 1534:
 if (positionArray['w']==-1) positionArray['m'] = format.indexOf('w');

 the quoted 'm' should be replaced with a w. the right line is:
 if (positionArray['w']==-1) positionArray['w'] = format.indexOf('w');

 after that change, everything works great.

 sry for that,
   gerolf


 On 5/2/07, Johan Compagner [EMAIL PROTECTED] wrote:
 
  i applied it look if it works for you now.
 
 
  On 5/2/07, Gerolf Seitz  [EMAIL PROTECTED] wrote:
  
   thx,
   jira issue with attached patch:
   http://wicketstuff.org/jira/browse/WSCAL-1
  
   since it's my first contribution, i hope i didn't mess up ;)
   gerolf
  
   On 5/1/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   
i created a jira project for it
   
-igor
   
   
On 5/1/07, Gerolf Seitz  [EMAIL PROTECTED] wrote:

 as for now, i added the week of year pattern 'w' to the
 wicket-calendar in wicket-stuff.
 one may click either the week number directly or any day in the
 desired week.

 since there is no JIRA project for wicket-calendar (to which i
 would attach a patch or the whole file),
 how would you like me to provide this contribution?

 gerolf

 On 5/1/07, Johan Compagner [EMAIL PROTECTED]  wrote:
 
  This is the one i currently use:
 
 
  
https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar
 
  it works pretty well for what it should do
  I haven't heard from the javascript author back that he wants
  to change the license so its on wicket stuff for the moment.
 
  johan
 
 
 
  On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  
i'd like to help un-limit the new datepicker in the
   datetime project.
what i personally need is the ability to select a week or
   a month.
   
i'm not sure though how much we can change the datepicker
   itself, because
it's a YUI widget.
  
   Not sure either. Might be a big pain. If it's too much work,
   we can
   try urge Johan/ others more to add their datepicker
   components. I
   thought he found one that supports that.
  
however, as i said, i'd really like to contribute...
  
   That's always very welcome.
  
   Eelco
  
  
   
-
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and
   take
   control of your XML. No limits. Just data. Click to get it
   now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 
  
-
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and
  take
  control of your XML. No limits. Just data. Click to get it
  now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 
-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and
 take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


   
   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-02 Thread Johan Compagner

i applied it look if it works for you now.


On 5/2/07, Gerolf Seitz [EMAIL PROTECTED] wrote:


thx,
jira issue with attached patch: http://wicketstuff.org/jira/browse/WSCAL-1

since it's my first contribution, i hope i didn't mess up ;)
gerolf

On 5/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 i created a jira project for it

 -igor


 On 5/1/07, Gerolf Seitz  [EMAIL PROTECTED] wrote:
 
  as for now, i added the week of year pattern 'w' to the
  wicket-calendar in wicket-stuff.
  one may click either the week number directly or any day in the
  desired week.
 
  since there is no JIRA project for wicket-calendar (to which i would
  attach a patch or the whole file),
  how would you like me to provide this contribution?
 
  gerolf
 
  On 5/1/07, Johan Compagner [EMAIL PROTECTED]  wrote:
  
   This is the one i currently use:
  
  
   https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar
  
   it works pretty well for what it should do
   I haven't heard from the javascript author back that he wants to
   change the license so its on wicket stuff for the moment.
  
   johan
  
  
  
   On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
   
 i'd like to help un-limit the new datepicker in the datetime
project.
 what i personally need is the ability to select a week or a
month.

 i'm not sure though how much we can change the datepicker
itself, because
 it's a YUI widget.
   
Not sure either. Might be a big pain. If it's too much work, we
can
try urge Johan/ others more to add their datepicker components. I
thought he found one that supports that.
   
 however, as i said, i'd really like to contribute...
   
That's always very welcome.
   
Eelco
   
   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
   -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-02 Thread Gerolf Seitz

hm, i did mess up. there's one more thing left in line 1534:
if (positionArray['w']==-1) positionArray['m'] = format.indexOf('w');

the quoted 'm' should be replaced with a w. the right line is:
if (positionArray['w']==-1) positionArray['w'] = format.indexOf('w');

after that change, everything works great.

sry for that,
 gerolf


On 5/2/07, Johan Compagner [EMAIL PROTECTED] wrote:


i applied it look if it works for you now.


On 5/2/07, Gerolf Seitz [EMAIL PROTECTED] wrote:

 thx,
 jira issue with attached patch:
 http://wicketstuff.org/jira/browse/WSCAL-1

 since it's my first contribution, i hope i didn't mess up ;)
 gerolf

 On 5/1/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 
  i created a jira project for it
 
  -igor
 
 
  On 5/1/07, Gerolf Seitz  [EMAIL PROTECTED] wrote:
  
   as for now, i added the week of year pattern 'w' to the
   wicket-calendar in wicket-stuff.
   one may click either the week number directly or any day in the
   desired week.
  
   since there is no JIRA project for wicket-calendar (to which i would
   attach a patch or the whole file),
   how would you like me to provide this contribution?
  
   gerolf
  
   On 5/1/07, Johan Compagner [EMAIL PROTECTED]  wrote:
   
This is the one i currently use:
   
   
https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar
   
it works pretty well for what it should do
I haven't heard from the javascript author back that he wants to
change the license so its on wicket stuff for the moment.
   
johan
   
   
   
On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:

  i'd like to help un-limit the new datepicker in the datetime
 project.
  what i personally need is the ability to select a week or a
 month.
 
  i'm not sure though how much we can change the datepicker
 itself, because
  it's a YUI widget.

 Not sure either. Might be a big pain. If it's too much work, we
 can
 try urge Johan/ others more to add their datepicker components.
 I
 thought he found one that supports that.

  however, as i said, i'd really like to contribute...

 That's always very welcome.

 Eelco


 
-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and
 take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-01 Thread Gerolf Seitz

i'd like to help un-limit the new datepicker in the datetime project.
what i personally need is the ability to select a week or a month.
i'm not sure though how much we can change the datepicker itself, because
it's a YUI widget.

however, as i said, i'd really like to contribute...

gerolf

On 4/30/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


The issue you reported doesn't make sense to me atm, but I'm sure it's
not bug free yet. However, it'll be someday (and hopefully that is
soon), and the issue is not related to the datepicker I think. The
datetime project is still new, and the datepicker more limited than
the old one, but we can all work on that :)

Eelco


On 4/30/07, Martin Funk [EMAIL PROTECTED] wrote:
 Sorry Eelco for beeing such a pain ;-)

 but unless I missed something, wicket-datetime's DateField is still
 throwing NPE's, making it somewhat hard to use.

 Martin

 Eelco Hillenius schrieb:
  yeah. And there's a separate project with a new datepicker now as
  well: wicket-datetime.
 
  Eelco
 
  On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  ok, found it:
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-datepicker
 
 
  -Original Message-
  From: [EMAIL PROTECTED] on behalf of
[EMAIL PROTECTED]
  Sent: Mon 4/30/2007 3:52 PM
  To: wicket-user@lists.sourceforge.net
  Subject: from 1.2.6 to 1.3.0 snapshot
 
  Ta, I've just upgraded and prefixed all wicket imports with
org.apache.
 
  Only problemo seems to be that
 
  wicket.extensions.markup.html.datepicker.DatePicker
 
  has disappeared.
 
  Any idea where it went?
 
  Derek
 
 
  -Original Message-
  From: [EMAIL PROTECTED] on behalf of Matej
Knopp
  Sent: Mon 4/30/2007 2:10 PM
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] Nested Forms and onSubmit()?
 
  hi,
 
  i just want to mentioned that there were a nasty bug in 1.3 nested
  form processing that was fixed today, so if you have any issues with
  it i suggest you upgrading wicket to see if it helps.
 
  -Matej
 
  On 4/30/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 
  As for your first question, I think the following is a better
approach:
 
 
  public AddressFieldsetPanel(String id, IModel address) {
  super(id, new CompoundPropertyModel(address));
  }
 
  and :
 
  form.add(new AddressFieldsetPanel(billing, new
  PropertyModel(form.getModel(), billing;
  form.add(new AddressFieldsetPanel(shipping, new
  PropertyModel(form.getModel(), shipping;
 
  then the wiring of the addresses can be done in the model object
itself:
 
  Invoice invoice = new Invoice();
  invoice.setBilling(new Address());
  invoice.setShipping(new Address());
 
  Martijn
 
  On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  imho all he should do is extend a panel, and make sure that panel
is always inside a form.
  there is no need to have a form to group a few fields together.
 
  Thanks, that's how I was thinking it should be a Fieldset so to
speak. Have progressed a bit
  down that route but still have a couple of related questions.
 
  Am new to Wicket and trying to learn how to do forms (binding and
validation) the Wicket way.
  Here's where I'm at so far with a simplistic example I'm using
(abbreviated syntax for clarity):
 
  PurchaseOrder {
   String customerName
   PostalAddress deliveryAddress
   PostalAddress invoiceAddress
  }
 
  PostalAddress {
   String addressLine
   String municipality
   String postalCode
   String country
  }
 
  PurchaseOrderForm extends Form
  {
 public PurchaseOrderForm(String name)
 {
super(name, new CompoundPropertyModel(new PurchaseOrder()));
add(new RequiredTextField(customerName));
add(new PostalAddressFieldset(deliveryAddress, new
PostalAddress()));  //  ???
add(new PostalAddressFieldset(invoiceAddress, new
PostalAddress()));   //  ???
 )
  }
 
  PostalAddressFieldset extends Panel
  {
  public PostalAddressFieldset(String id, PostalAddress
postalAddress)   // ???
  {
super(id, new CompoundPropertyModel(postalAddress));  // ???
add(new RequiredTextField(addressLine));
add(new RequiredTextField(municipality));
add(new RequiredTextField(postalCode));
add(new RequiredTextField(country));
  }
 
  Bit I'm not sure about is how to wire up the binding of the nested
model object (PostalAddress)
  to the nested Fieldset (PostalAddressFieldset), see question marks
in comments above.
  Have done it like this so far to get it to compile but it is
obviously wrong as I'm
  interested in the nested PostalAddress objects, not new ones.
 
  Second question is whether Wicket provides support for creating
unique id's for elements.
  My html for the PostalAddressFieldset includes things like:
 
  input wicket:id=addressLine id=addressLine type=text
size=40/
 
  Obviously this is no good as when I use this component multiple
times on a form, I end up
  with multiple fields with the same id.
 
  Any advice 

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-01 Thread Eelco Hillenius
 i'd like to help un-limit the new datepicker in the datetime project.
 what i personally need is the ability to select a week or a month.

 i'm not sure though how much we can change the datepicker itself, because
 it's a YUI widget.

Not sure either. Might be a big pain. If it's too much work, we can
try urge Johan/ others more to add their datepicker components. I
thought he found one that supports that.

 however, as i said, i'd really like to contribute...

That's always very welcome.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-01 Thread Johan Compagner

This is the one i currently use:

https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar

it works pretty well for what it should do
I haven't heard from the javascript author back that he wants to change the
license so its on wicket stuff for the moment.

johan



On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


 i'd like to help un-limit the new datepicker in the datetime project.
 what i personally need is the ability to select a week or a month.

 i'm not sure though how much we can change the datepicker itself,
because
 it's a YUI widget.

Not sure either. Might be a big pain. If it's too much work, we can
try urge Johan/ others more to add their datepicker components. I
thought he found one that supports that.

 however, as i said, i'd really like to contribute...

That's always very welcome.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-01 Thread Gerolf Seitz

as for now, i added the week of year pattern 'w' to the wicket-calendar in
wicket-stuff.
one may click either the week number directly or any day in the desired
week.

since there is no JIRA project for wicket-calendar (to which i would attach
a patch or the whole file),
how would you like me to provide this contribution?

gerolf

On 5/1/07, Johan Compagner [EMAIL PROTECTED] wrote:


This is the one i currently use:

https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar

it works pretty well for what it should do
I haven't heard from the javascript author back that he wants to change
the license so its on wicket stuff for the moment.

johan



On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:

  i'd like to help un-limit the new datepicker in the datetime
 project.
  what i personally need is the ability to select a week or a month.
 
  i'm not sure though how much we can change the datepicker itself,
 because
  it's a YUI widget.

 Not sure either. Might be a big pain. If it's too much work, we can
 try urge Johan/ others more to add their datepicker components. I
 thought he found one that supports that.

  however, as i said, i'd really like to contribute...

 That's always very welcome.

 Eelco


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-01 Thread Igor Vaynberg

i created a jira project for it

-igor


On 5/1/07, Gerolf Seitz [EMAIL PROTECTED] wrote:


as for now, i added the week of year pattern 'w' to the wicket-calendar in
wicket-stuff.
one may click either the week number directly or any day in the desired
week.

since there is no JIRA project for wicket-calendar (to which i would
attach a patch or the whole file),
how would you like me to provide this contribution?

gerolf

On 5/1/07, Johan Compagner [EMAIL PROTECTED]  wrote:

 This is the one i currently use:

 https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar

 it works pretty well for what it should do
 I haven't heard from the javascript author back that he wants to change
 the license so its on wicket stuff for the moment.

 johan



 On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
   i'd like to help un-limit the new datepicker in the datetime
  project.
   what i personally need is the ability to select a week or a month.
  
   i'm not sure though how much we can change the datepicker itself,
  because
   it's a YUI widget.
 
  Not sure either. Might be a big pain. If it's too much work, we can
  try urge Johan/ others more to add their datepicker components. I
  thought he found one that supports that.
 
   however, as i said, i'd really like to contribute...
 
  That's always very welcome.
 
  Eelco
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-01 Thread Gerolf Seitz

thx,
jira issue with attached patch: http://wicketstuff.org/jira/browse/WSCAL-1

since it's my first contribution, i hope i didn't mess up ;)
gerolf

On 5/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


i created a jira project for it

-igor


On 5/1/07, Gerolf Seitz [EMAIL PROTECTED] wrote:

 as for now, i added the week of year pattern 'w' to the wicket-calendar
 in wicket-stuff.
 one may click either the week number directly or any day in the desired
 week.

 since there is no JIRA project for wicket-calendar (to which i would
 attach a patch or the whole file),
 how would you like me to provide this contribution?

 gerolf

 On 5/1/07, Johan Compagner [EMAIL PROTECTED]  wrote:
 
  This is the one i currently use:
 
  https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar
 
  it works pretty well for what it should do
  I haven't heard from the javascript author back that he wants to
  change the license so its on wicket stuff for the moment.
 
  johan
 
 
 
  On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  
i'd like to help un-limit the new datepicker in the datetime
   project.
what i personally need is the ability to select a week or a month.
   
i'm not sure though how much we can change the datepicker itself,
   because
it's a YUI widget.
  
   Not sure either. Might be a big pain. If it's too much work, we can
   try urge Johan/ others more to add their datepicker components. I
   thought he found one that supports that.
  
however, as i said, i'd really like to contribute...
  
   That's always very welcome.
  
   Eelco
  
  
   -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-04-30 Thread D.Alexander
Ta, I've just upgraded and prefixed all wicket imports with org.apache.

Only problemo seems to be that

wicket.extensions.markup.html.datepicker.DatePicker

has disappeared.

Any idea where it went?

Derek


-Original Message-
From: [EMAIL PROTECTED] on behalf of Matej Knopp
Sent: Mon 4/30/2007 2:10 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Nested Forms and onSubmit()?
 
hi,

i just want to mentioned that there were a nasty bug in 1.3 nested
form processing that was fixed today, so if you have any issues with
it i suggest you upgrading wicket to see if it helps.

-Matej

On 4/30/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 As for your first question, I think the following is a better approach:


 public AddressFieldsetPanel(String id, IModel address) {
 super(id, new CompoundPropertyModel(address));
 }

 and :

 form.add(new AddressFieldsetPanel(billing, new
 PropertyModel(form.getModel(), billing;
 form.add(new AddressFieldsetPanel(shipping, new
 PropertyModel(form.getModel(), shipping;

 then the wiring of the addresses can be done in the model object itself:

 Invoice invoice = new Invoice();
 invoice.setBilling(new Address());
 invoice.setShipping(new Address());

 Martijn

 On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   imho all he should do is extend a panel, and make sure that panel is 
   always inside a form.
   there is no need to have a form to group a few fields together.
 
  Thanks, that's how I was thinking it should be a Fieldset so to speak. Have 
  progressed a bit
  down that route but still have a couple of related questions.
 
  Am new to Wicket and trying to learn how to do forms (binding and 
  validation) the Wicket way.
  Here's where I'm at so far with a simplistic example I'm using (abbreviated 
  syntax for clarity):
 
  PurchaseOrder {
   String customerName
   PostalAddress deliveryAddress
   PostalAddress invoiceAddress
  }
 
  PostalAddress {
   String addressLine
   String municipality
   String postalCode
   String country
  }
 
  PurchaseOrderForm extends Form
  {
 public PurchaseOrderForm(String name)
 {
super(name, new CompoundPropertyModel(new PurchaseOrder()));
add(new RequiredTextField(customerName));
add(new PostalAddressFieldset(deliveryAddress, new 
  PostalAddress()));  //  ???
add(new PostalAddressFieldset(invoiceAddress, new 
  PostalAddress()));   //  ???
 )
  }
 
  PostalAddressFieldset extends Panel
  {
  public PostalAddressFieldset(String id, PostalAddress postalAddress)
 // ???
  {
super(id, new CompoundPropertyModel(postalAddress));  // ???
add(new RequiredTextField(addressLine));
add(new RequiredTextField(municipality));
add(new RequiredTextField(postalCode));
add(new RequiredTextField(country));
  }
 
  Bit I'm not sure about is how to wire up the binding of the nested model 
  object (PostalAddress)
  to the nested Fieldset (PostalAddressFieldset), see question marks in 
  comments above.
  Have done it like this so far to get it to compile but it is obviously 
  wrong as I'm
  interested in the nested PostalAddress objects, not new ones.
 
  Second question is whether Wicket provides support for creating unique id's 
  for elements.
  My html for the PostalAddressFieldset includes things like:
 
  input wicket:id=addressLine id=addressLine type=text size=40/
 
  Obviously this is no good as when I use this component multiple times on a 
  form, I end up
  with multiple fields with the same id.
 
  Any advice on best practice or pointers to examples that demonstrate these 
  techniques would be
  appreciated.
 
  Cheers,
  Derek
 
 
 
 
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] on behalf of Igor Vaynberg
  Sent: Sun 4/29/2007 8:19 PM
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] Nested Forms and onSubmit()?
 
  imho all he should do is extend a panel, and make sure that panel is always 
  inside a form.
 
  there is no need to have a form to group a few fields together.
 
  -igor
 
 
 
  On 4/29/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 
  One note: this is a 1.3 feature so only expect it to work there.
 
  What happens with the nested forms is that the buttons stay, and 
  iirc
  only the inner form is submitted when a button is pressed inside 
  that
  inner form.
 
  I think the discussion never got to a conclusion on what happens 
  when
  the outer form is submitted. I think we can still change that 
  behavior
  (we're not final or in release candidate mode).
 
  FormComponent is for input controls (textfields, buttons,
  dropdownchoice, etc). Forms are for the form tag. So in your case, 
  you
  should extend Form, and Wicket should take care of processing the
  right form (inner, outer, sibling) for you.
 
  But as I said, it probably is 

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-04-30 Thread D.Alexander
ok, found it: 
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-datepicker


-Original Message-
From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent: Mon 4/30/2007 3:52 PM
To: wicket-user@lists.sourceforge.net
Subject: from 1.2.6 to 1.3.0 snapshot
 
Ta, I've just upgraded and prefixed all wicket imports with org.apache.

Only problemo seems to be that

wicket.extensions.markup.html.datepicker.DatePicker

has disappeared.

Any idea where it went?

Derek


-Original Message-
From: [EMAIL PROTECTED] on behalf of Matej Knopp
Sent: Mon 4/30/2007 2:10 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Nested Forms and onSubmit()?
 
hi,

i just want to mentioned that there were a nasty bug in 1.3 nested
form processing that was fixed today, so if you have any issues with
it i suggest you upgrading wicket to see if it helps.

-Matej

On 4/30/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 As for your first question, I think the following is a better approach:


 public AddressFieldsetPanel(String id, IModel address) {
 super(id, new CompoundPropertyModel(address));
 }

 and :

 form.add(new AddressFieldsetPanel(billing, new
 PropertyModel(form.getModel(), billing;
 form.add(new AddressFieldsetPanel(shipping, new
 PropertyModel(form.getModel(), shipping;

 then the wiring of the addresses can be done in the model object itself:

 Invoice invoice = new Invoice();
 invoice.setBilling(new Address());
 invoice.setShipping(new Address());

 Martijn

 On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   imho all he should do is extend a panel, and make sure that panel is 
   always inside a form.
   there is no need to have a form to group a few fields together.
 
  Thanks, that's how I was thinking it should be a Fieldset so to speak. Have 
  progressed a bit
  down that route but still have a couple of related questions.
 
  Am new to Wicket and trying to learn how to do forms (binding and 
  validation) the Wicket way.
  Here's where I'm at so far with a simplistic example I'm using (abbreviated 
  syntax for clarity):
 
  PurchaseOrder {
   String customerName
   PostalAddress deliveryAddress
   PostalAddress invoiceAddress
  }
 
  PostalAddress {
   String addressLine
   String municipality
   String postalCode
   String country
  }
 
  PurchaseOrderForm extends Form
  {
 public PurchaseOrderForm(String name)
 {
super(name, new CompoundPropertyModel(new PurchaseOrder()));
add(new RequiredTextField(customerName));
add(new PostalAddressFieldset(deliveryAddress, new 
  PostalAddress()));  //  ???
add(new PostalAddressFieldset(invoiceAddress, new 
  PostalAddress()));   //  ???
 )
  }
 
  PostalAddressFieldset extends Panel
  {
  public PostalAddressFieldset(String id, PostalAddress postalAddress)
 // ???
  {
super(id, new CompoundPropertyModel(postalAddress));  // ???
add(new RequiredTextField(addressLine));
add(new RequiredTextField(municipality));
add(new RequiredTextField(postalCode));
add(new RequiredTextField(country));
  }
 
  Bit I'm not sure about is how to wire up the binding of the nested model 
  object (PostalAddress)
  to the nested Fieldset (PostalAddressFieldset), see question marks in 
  comments above.
  Have done it like this so far to get it to compile but it is obviously 
  wrong as I'm
  interested in the nested PostalAddress objects, not new ones.
 
  Second question is whether Wicket provides support for creating unique id's 
  for elements.
  My html for the PostalAddressFieldset includes things like:
 
  input wicket:id=addressLine id=addressLine type=text size=40/
 
  Obviously this is no good as when I use this component multiple times on a 
  form, I end up
  with multiple fields with the same id.
 
  Any advice on best practice or pointers to examples that demonstrate these 
  techniques would be
  appreciated.
 
  Cheers,
  Derek
 
 
 
 
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] on behalf of Igor Vaynberg
  Sent: Sun 4/29/2007 8:19 PM
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] Nested Forms and onSubmit()?
 
  imho all he should do is extend a panel, and make sure that panel is always 
  inside a form.
 
  there is no need to have a form to group a few fields together.
 
  -igor
 
 
 
  On 4/29/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 
  One note: this is a 1.3 feature so only expect it to work there.
 
  What happens with the nested forms is that the buttons stay, and 
  iirc
  only the inner form is submitted when a button is pressed inside 
  that
  inner form.
 
  I think the discussion never got to a conclusion on what happens 
  when
  the outer form is submitted. I think we can still change that 
  behavior
  (we're not final or in release candidate mode).
 
  FormComponent is for input controls 

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-04-30 Thread Martin Funk
Sorry Eelco for beeing such a pain ;-)

but unless I missed something, wicket-datetime's DateField is still 
throwing NPE's, making it somewhat hard to use.

Martin

Eelco Hillenius schrieb:
 yeah. And there's a separate project with a new datepicker now as
 well: wicket-datetime.

 Eelco

 On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   
 ok, found it: 
 http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-datepicker


 -Original Message-
 From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
 Sent: Mon 4/30/2007 3:52 PM
 To: wicket-user@lists.sourceforge.net
 Subject: from 1.2.6 to 1.3.0 snapshot

 Ta, I've just upgraded and prefixed all wicket imports with org.apache.

 Only problemo seems to be that

 wicket.extensions.markup.html.datepicker.DatePicker

 has disappeared.

 Any idea where it went?

 Derek


 -Original Message-
 From: [EMAIL PROTECTED] on behalf of Matej Knopp
 Sent: Mon 4/30/2007 2:10 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Nested Forms and onSubmit()?

 hi,

 i just want to mentioned that there were a nasty bug in 1.3 nested
 form processing that was fixed today, so if you have any issues with
 it i suggest you upgrading wicket to see if it helps.

 -Matej

 On 4/30/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 
 As for your first question, I think the following is a better approach:


 public AddressFieldsetPanel(String id, IModel address) {
 super(id, new CompoundPropertyModel(address));
 }

 and :

 form.add(new AddressFieldsetPanel(billing, new
 PropertyModel(form.getModel(), billing;
 form.add(new AddressFieldsetPanel(shipping, new
 PropertyModel(form.getModel(), shipping;

 then the wiring of the addresses can be done in the model object itself:

 Invoice invoice = new Invoice();
 invoice.setBilling(new Address());
 invoice.setShipping(new Address());

 Martijn

 On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   
 imho all he should do is extend a panel, and make sure that panel is 
 always inside a form.
 there is no need to have a form to group a few fields together.
   
 Thanks, that's how I was thinking it should be a Fieldset so to speak. 
 Have progressed a bit
 down that route but still have a couple of related questions.

 Am new to Wicket and trying to learn how to do forms (binding and 
 validation) the Wicket way.
 Here's where I'm at so far with a simplistic example I'm using 
 (abbreviated syntax for clarity):

 PurchaseOrder {
  String customerName
  PostalAddress deliveryAddress
  PostalAddress invoiceAddress
 }

 PostalAddress {
  String addressLine
  String municipality
  String postalCode
  String country
 }

 PurchaseOrderForm extends Form
 {
public PurchaseOrderForm(String name)
{
   super(name, new CompoundPropertyModel(new PurchaseOrder()));
   add(new RequiredTextField(customerName));
   add(new PostalAddressFieldset(deliveryAddress, new 
 PostalAddress()));  //  ???
   add(new PostalAddressFieldset(invoiceAddress, new 
 PostalAddress()));   //  ???
)
 }

 PostalAddressFieldset extends Panel
 {
 public PostalAddressFieldset(String id, PostalAddress postalAddress)   
 // ???
 {
   super(id, new CompoundPropertyModel(postalAddress));  // ???
   add(new RequiredTextField(addressLine));
   add(new RequiredTextField(municipality));
   add(new RequiredTextField(postalCode));
   add(new RequiredTextField(country));
 }

 Bit I'm not sure about is how to wire up the binding of the nested model 
 object (PostalAddress)
 to the nested Fieldset (PostalAddressFieldset), see question marks in 
 comments above.
 Have done it like this so far to get it to compile but it is obviously 
 wrong as I'm
 interested in the nested PostalAddress objects, not new ones.

 Second question is whether Wicket provides support for creating unique 
 id's for elements.
 My html for the PostalAddressFieldset includes things like:

 input wicket:id=addressLine id=addressLine type=text size=40/

 Obviously this is no good as when I use this component multiple times on a 
 form, I end up
 with multiple fields with the same id.

 Any advice on best practice or pointers to examples that demonstrate these 
 techniques would be
 appreciated.

 Cheers,
 Derek









 -Original Message-
 From: [EMAIL PROTECTED] on behalf of Igor Vaynberg
 Sent: Sun 4/29/2007 8:19 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Nested Forms and onSubmit()?

 imho all he should do is extend a panel, and make sure that panel is 
 always inside a form.

 there is no need to have a form to group a few fields together.

 -igor



 On 4/29/07, Martijn Dashorst [EMAIL PROTECTED] wrote:

 One note: this is a 1.3 feature so only expect it to work there.

 What happens with the nested forms is that the buttons stay, and 
 iirc
 only the inner form is submitted when a button is pressed inside 
 that
 

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-04-30 Thread Eelco Hillenius
The issue you reported doesn't make sense to me atm, but I'm sure it's
not bug free yet. However, it'll be someday (and hopefully that is
soon), and the issue is not related to the datepicker I think. The
datetime project is still new, and the datepicker more limited than
the old one, but we can all work on that :)

Eelco


On 4/30/07, Martin Funk [EMAIL PROTECTED] wrote:
 Sorry Eelco for beeing such a pain ;-)

 but unless I missed something, wicket-datetime's DateField is still
 throwing NPE's, making it somewhat hard to use.

 Martin

 Eelco Hillenius schrieb:
  yeah. And there's a separate project with a new datepicker now as
  well: wicket-datetime.
 
  Eelco
 
  On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  ok, found it: 
  http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-datepicker
 
 
  -Original Message-
  From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
  Sent: Mon 4/30/2007 3:52 PM
  To: wicket-user@lists.sourceforge.net
  Subject: from 1.2.6 to 1.3.0 snapshot
 
  Ta, I've just upgraded and prefixed all wicket imports with org.apache.
 
  Only problemo seems to be that
 
  wicket.extensions.markup.html.datepicker.DatePicker
 
  has disappeared.
 
  Any idea where it went?
 
  Derek
 
 
  -Original Message-
  From: [EMAIL PROTECTED] on behalf of Matej Knopp
  Sent: Mon 4/30/2007 2:10 PM
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] Nested Forms and onSubmit()?
 
  hi,
 
  i just want to mentioned that there were a nasty bug in 1.3 nested
  form processing that was fixed today, so if you have any issues with
  it i suggest you upgrading wicket to see if it helps.
 
  -Matej
 
  On 4/30/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 
  As for your first question, I think the following is a better approach:
 
 
  public AddressFieldsetPanel(String id, IModel address) {
  super(id, new CompoundPropertyModel(address));
  }
 
  and :
 
  form.add(new AddressFieldsetPanel(billing, new
  PropertyModel(form.getModel(), billing;
  form.add(new AddressFieldsetPanel(shipping, new
  PropertyModel(form.getModel(), shipping;
 
  then the wiring of the addresses can be done in the model object itself:
 
  Invoice invoice = new Invoice();
  invoice.setBilling(new Address());
  invoice.setShipping(new Address());
 
  Martijn
 
  On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  imho all he should do is extend a panel, and make sure that panel is 
  always inside a form.
  there is no need to have a form to group a few fields together.
 
  Thanks, that's how I was thinking it should be a Fieldset so to speak. 
  Have progressed a bit
  down that route but still have a couple of related questions.
 
  Am new to Wicket and trying to learn how to do forms (binding and 
  validation) the Wicket way.
  Here's where I'm at so far with a simplistic example I'm using 
  (abbreviated syntax for clarity):
 
  PurchaseOrder {
   String customerName
   PostalAddress deliveryAddress
   PostalAddress invoiceAddress
  }
 
  PostalAddress {
   String addressLine
   String municipality
   String postalCode
   String country
  }
 
  PurchaseOrderForm extends Form
  {
 public PurchaseOrderForm(String name)
 {
super(name, new CompoundPropertyModel(new PurchaseOrder()));
add(new RequiredTextField(customerName));
add(new PostalAddressFieldset(deliveryAddress, new 
  PostalAddress()));  //  ???
add(new PostalAddressFieldset(invoiceAddress, new 
  PostalAddress()));   //  ???
 )
  }
 
  PostalAddressFieldset extends Panel
  {
  public PostalAddressFieldset(String id, PostalAddress postalAddress) 
// ???
  {
super(id, new CompoundPropertyModel(postalAddress));  // ???
add(new RequiredTextField(addressLine));
add(new RequiredTextField(municipality));
add(new RequiredTextField(postalCode));
add(new RequiredTextField(country));
  }
 
  Bit I'm not sure about is how to wire up the binding of the nested model 
  object (PostalAddress)
  to the nested Fieldset (PostalAddressFieldset), see question marks in 
  comments above.
  Have done it like this so far to get it to compile but it is obviously 
  wrong as I'm
  interested in the nested PostalAddress objects, not new ones.
 
  Second question is whether Wicket provides support for creating unique 
  id's for elements.
  My html for the PostalAddressFieldset includes things like:
 
  input wicket:id=addressLine id=addressLine type=text size=40/
 
  Obviously this is no good as when I use this component multiple times on 
  a form, I end up
  with multiple fields with the same id.
 
  Any advice on best practice or pointers to examples that demonstrate 
  these techniques would be
  appreciated.
 
  Cheers,
  Derek
 
 
 
 
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] on behalf of Igor Vaynberg
  Sent: Sun 4/29/2007 8:19 PM
  To: wicket-user@lists.sourceforge.net
  Subject: Re: