[Wicket-user] wicket 1.2 beta 2 DropDownChoice default display value.. "Please Choose one"

2006-04-05 Thread Nino Wael








Hi

 

I looked at the dialog between Igor and Stefan,
thought what a nice way to select the default value with the property model. However
and then remembered why it did not do it that way, I wanted to replace the
Choose One text with something else, well at least in some cases. Im replacing
the text by overriding the getDefaultChoice method. However that doesn’t seem
to work any longer(im pretty sure I had it working with wicket 1.1.1), see
sniplet below? Also I noticed these lines in the documentation :

 

    // Note that when the selection is null, Wicket will lookup a localized string to    // represent this null with key: "id + '.null'". In this case, this is 'site.null'    // which can be found in DropDownChoicePage.properties    form.add(new DropDownChoice("site", SITES));

Does this mean that I could write in my own version
of Please Choose one in the properties file or am I reading it wrong?

 

/**Sniplet start**/

 

 dropdown
= new DropDownChoice("dropdown", DropdownList.toArray()

 .getList(),
new rowRenderer()) {

   protected
String getDefaultChoice(Object selected) {

 //
The  tag buffer

 final
StringBuffer buffer = new StringBuffer();

 if
(isNullValid()) {

   return
super.getDefaultChoice(selected);

 }
else {

   //
Null is not valid. Is it selected anyway?

   if
(selected == null) {

     //
Force the user to pick a non-null value

     final
String option = dropDownInitial;

     buffer

    .append(

    "\n")

    .append(option).append("");

   }

 

 }

 return
buffer.toString();

   }

 

   protected
void onSelectionChanged(Object newSelection) {

 fill.setEnabled(true);

 invoke.setEnabled(true);

 selectAll.setEnabled(true);

     deselectAll.setEnabled(true);

 btn_add.setEnabled(true);

  

Re: [Wicket-user] PopupSettings Center

2006-04-05 Thread Alexander Lohse

I did so.

Regards,

Alex

Am 01.04.2006 um 23:31 schrieb Eelco Hillenius:


Didn't think about that yet. A patch would be welcome. If you have
one, please attach it to an RFE
(http://sourceforge.net/tracker/?group_id=119783&atid=684978)

Eelco

On 3/31/06, Alexander Lohse <[EMAIL PROTECTED]> wrote:

Hi,

are there any efforts yet to add a centering option to the
PopupSettings?

Something like: script.append("mywindow.moveTo((screen.availWidth-" +
width +")/2,(screen.availHeight-" + height + ")/5*2);\n");

Regards,

Alex

–––
Alexander Lohse
(Entwicklungsleitung & Projektmanagement)

Human Touch Medienproduktion GmbH
Am See 1
17440 Klein Jasedow
Deutschland

Tel: +49 38374 752 11
Fax: +49 38374 752 23
e-mail: [EMAIL PROTECTED]
Internet: http://www.webjazz.de
–––




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting  
language
that extends applications into web and mobile media. Attend the  
live webcast
and join the prime developer group breaking into this new coding  
territory!

http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting  
language
that extends applications into web and mobile media. Attend the  
live webcast
and join the prime developer group breaking into this new coding  
territory!

http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


–––
Alexander Lohse
(Entwicklungsleitung & Projektmanagement)

Human Touch Medienproduktion GmbH
Am See 1
17440 Klein Jasedow
Deutschland

Tel: +49 38374 752 11
Fax: +49 38374 752 23
e-mail: [EMAIL PROTECTED]
Internet: http://www.webjazz.de
–––




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] update from beta2 to beta3 broke in context of

2006-04-05 Thread Ari Suutari

There seems to be also problems if  is used
in page's html directly ie. in beta2 I was able to use
markup inheritance on page level, but not in beta3.

   Ari S.

- Original Message - 
From: "Juergen Donnerstag" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, April 05, 2006 9:41 AM
Subject: Re: [Wicket-user] update from beta2 to beta3 broke  in context 
of 



Thanks. I'll check it out.

Juergen

On 4/5/06, Ari Suutari <[EMAIL PROTECTED]> wrote:

There is a simple example in
http://download.syncrontech.com/public/wicketheadproblem.zip

Ari S.

- Original Message -
From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, April 04, 2006 3:02 PM
Subject: Re: [Wicket-user] update from beta2 to beta3 broke  in context 
of 


> Note that  MUST be before , ,
> ,  and . Unfortunately no
> error message is thrown yet. Its currently only my laptop. I need to
> test it further before committing.
>
> If that is not the case in your example, please send me a stripped
> down version of the page and panels etc preferably as junit test case
> like in src/test
>
> Juergen
>
> On 4/4/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> We just updates from 1.2 beta2 to beta3 and noticted that
>> some our components using  stuff to add things to
>> page's head no longer work. Closer examination shows that those
>> components are also using  tags.
>>
>> Things work if we put an empty 
>> to base panel's html file - after that stuff from derived panel's 

>> section appears on page.
>>
>>Ari S.
>>
>>
>>
>> ---
>> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>> that extends applications into web and mobile media. Attend the live webcast
>> and join the prime developer group breaking into this new coding territory!
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> 
http://sel.as-us.falkag.net/sel?cmd___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] update from beta2 to beta3 broke in context of

2006-04-05 Thread Juergen Donnerstag
What exactly do you mean. Inheritance for Pages is still supported.
Like with the other issue, I always appreciate simple unit test to
verify it and to add it to the existing ones. What makes me a little
worry (and sad) is that we have plenty of unit tests for headers and
inheritance and I don't remember I changed the expected output, but
still there are quite some issues poping up with it currently. So,
junit tests are more than welcome.

Juergen

On 4/5/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
> There seems to be also problems if  is used
> in page's html directly ie. in beta2 I was able to use
> markup inheritance on page level, but not in beta3.
>
>Ari S.
>
> - Original Message -
> From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, April 05, 2006 9:41 AM
> Subject: Re: [Wicket-user] update from beta2 to beta3 broke  in 
> context of 
>
>
> > Thanks. I'll check it out.
> >
> > Juergen
> >
> > On 4/5/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
> >> There is a simple example in
> >> http://download.syncrontech.com/public/wicketheadproblem.zip
> >>
> >> Ari S.
> >>
> >> - Original Message -
> >> From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
> >> To: 
> >> Sent: Tuesday, April 04, 2006 3:02 PM
> >> Subject: Re: [Wicket-user] update from beta2 to beta3 broke  
> >> in context of 
> >>
> >>
> >> > Note that  MUST be before , ,
> >> > ,  and . Unfortunately no
> >> > error message is thrown yet. Its currently only my laptop. I need to
> >> > test it further before committing.
> >> >
> >> > If that is not the case in your example, please send me a stripped
> >> > down version of the page and panels etc preferably as junit test case
> >> > like in src/test
> >> >
> >> > Juergen
> >> >
> >> > On 4/4/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
> >> >> Hi,
> >> >>
> >> >> We just updates from 1.2 beta2 to beta3 and noticted that
> >> >> some our components using  stuff to add things to
> >> >> page's head no longer work. Closer examination shows that those
> >> >> components are also using  tags.
> >> >>
> >> >> Things work if we put an empty 
> >> >> to base panel's html file - after that stuff from derived panel's 
> >> >> 
> >> >> section appears on page.
> >> >>
> >> >>Ari S.
> >> >>
> >> >>
> >> >>
> >> >> ---
> >> >> This SF.Net email is sponsored by xPML, a groundbreaking scripting 
> >> >> language
> >> >> that extends applications into web and mobile media. Attend the live 
> >> >> webcast
> >> >> and join the prime developer group breaking into this new coding 
> >> >> territory!
> >> >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> >> >> ___
> >> >> Wicket-user mailing list
> >> >> Wicket-user@lists.sourceforge.net
> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >> >>
> >> >
> >> >
> >> > ---
> >> > This SF.Net email is sponsored by xPML, a groundbreaking scripting 
> >> > language
> >> > that extends applications into web and mobile media. Attend the live 
> >> > webcast
> >> > and join the prime developer group breaking into this new coding 
> >> > territory!
> >> > http://sel.as-us.falkag.net/sel?cmd___
> >> > Wicket-user mailing list
> >> > Wicket-user@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >> >
> >> >
> >>
> >>
> >> ---
> >> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> >> that extends applications into web and mobile media. Attend the live 
> >> webcast
> >> and join the prime developer group breaking into this new coding territory!
> >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> > that extends applications into web and mobile media. Attend the live webcast
> > and join the prime developer group breaking into this new coding territory!
> > http://sel.as-us.falkag.net/sel?cmd___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>

Re: [Wicket-user] update from beta2 to beta3 broke in context of

2006-04-05 Thread Ari Suutari

Hi,


What exactly do you mean. Inheritance for Pages is still supported.


   There is a simple example at
   http://download.syncrontech.com/public/wicketpageinheritanceproblem.zip
   
   trying to view TestExtendedPage2 with 1.2-beta3:


Caused by: wicket.WicketRuntimeException: Expected to find  in 
base markup
at wicket.markup.MergedMarkup.merge(MergedMarkup.java:315)
at wicket.markup.MergedMarkup.(MergedMarkup.java:50)
at wicket.markup.MarkupCache.checkForMarkupInheritance(MarkupCache.java:440)
at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:248)
at wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:312)
at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:189)
at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:105)
at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:775)

   But the same code works perfectly with beta2. It seems that
   just simple markup inheritance is not eought to trigger the problem,
   there must be another class which is derived from class using
   markup inheritance (ie. in the example, TestExtendPage works,
   TestExtendedPage2 doesn't).


Like with the other issue, I always appreciate simple unit test to
verify it and to add it to the existing ones.


   I'm very sorry for not providing these examples as junit test cases.
   Getting more familiar with junit tests is on my to-do list, but currently
   I just cannot find time for it. Our applications are all quite large so I 
cannot
   directly post parts of them - because of this I always ask if the
   problem would already be known before building a simple example
   of the problem.


What makes me a little
worry (and sad) is that we have plenty of unit tests for headers and
inheritance and I don't remember I changed the expected output, but
still there are quite some issues poping up with it currently. So,
junit tests are more than welcome.


   I understand this. If I promise that I'll start making junit
   test cases about my problems during next summer could you
   check these two problems with the example applications 
   I provided :)



   Ari S.



Juergen

On 4/5/06, Ari Suutari <[EMAIL PROTECTED]> wrote:

There seems to be also problems if  is used
in page's html directly ie. in beta2 I was able to use
markup inheritance on page level, but not in beta3.

   Ari S.

- Original Message -
From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, April 05, 2006 9:41 AM
Subject: Re: [Wicket-user] update from beta2 to beta3 broke  in context 
of 


> Thanks. I'll check it out.
>
> Juergen
>
> On 4/5/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
>> There is a simple example in
>> http://download.syncrontech.com/public/wicketheadproblem.zip
>>
>> Ari S.
>>
>> - Original Message -
>> From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Tuesday, April 04, 2006 3:02 PM
>> Subject: Re: [Wicket-user] update from beta2 to beta3 broke  in 
context of 
>>
>>
>> > Note that  MUST be before , ,
>> > ,  and . Unfortunately no
>> > error message is thrown yet. Its currently only my laptop. I need to
>> > test it further before committing.
>> >
>> > If that is not the case in your example, please send me a stripped
>> > down version of the page and panels etc preferably as junit test case
>> > like in src/test
>> >
>> > Juergen
>> >
>> > On 4/4/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
>> >> Hi,
>> >>
>> >> We just updates from 1.2 beta2 to beta3 and noticted that
>> >> some our components using  stuff to add things to
>> >> page's head no longer work. Closer examination shows that those
>> >> components are also using  tags.
>> >>
>> >> Things work if we put an empty 
>> >> to base panel's html file - after that stuff from derived panel's 

>> >> section appears on page.
>> >>
>> >>Ari S.
>> >>
>> >>
>> >>
>> >> ---
>> >> This SF.Net email is sponsored by xPML, a groundbreaking scripting 
language
>> >> that extends applications into web and mobile media. Attend the live 
webcast
>> >> and join the prime developer group breaking into this new coding 
territory!
>> >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>> >> ___
>> >> Wicket-user mailing list
>> >> Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >
>> >
>> > ---
>> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>> > that extends applications into web and mobile media. Attend the live 
webcast
>> > and join the prime developer group breaking into this new coding territory!
>> > 
http://sel.as-us.falkag.net/sel?cmd___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>>

[Wicket-user] SimplePageAuthorizationStrategy broken when using Spring

2006-04-05 Thread Mark Derricutt
Hey all,I finally got around to updating my local copy of wicket 1.2 to the latest subversion HEAD snapshots and notice a problem with SimplePageAuthorizationStrategy.Looking at:  
http://papernapkin.org/pastebin/app/view/202I see a default IUnauthorizedComponentInstantiationListener is added, however this is blindly using Application.get() which for me is null at the time I construct my AuthorisationStrategy due to wireing it up with Spring.
I can easily repeat the content of the SimplePageAuthorizationStrategy class in my own (theres not much code to SPAS itself), but if one could lower reuse it'd be good.Easiest quick-fix is to check if Application.get
() returns null before adding the default listener and if not, carry on without leaving me to assign the/my listener as normal.-- i like my video games - mamma said they are gonna melt my brains
i like my video games - i don't care what daddy said; they're my reality  - henning pauly


Re: [Wicket-user] update from beta2 to beta3 broke in context of

2006-04-05 Thread Juergen Donnerstag
Yes, sure. I'll check them both.

Juergen

On 4/5/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > What exactly do you mean. Inheritance for Pages is still supported.
>
>There is a simple example at
>http://download.syncrontech.com/public/wicketpageinheritanceproblem.zip
>
>trying to view TestExtendedPage2 with 1.2-beta3:
>
> Caused by: wicket.WicketRuntimeException: Expected to find  in 
> base markup
>  at wicket.markup.MergedMarkup.merge(MergedMarkup.java:315)
>  at wicket.markup.MergedMarkup.(MergedMarkup.java:50)
>  at wicket.markup.MarkupCache.checkForMarkupInheritance(MarkupCache.java:440)
>  at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:248)
>  at 
> wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:312)
>  at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:189)
>  at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:105)
>  at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:775)
>
>But the same code works perfectly with beta2. It seems that
>just simple markup inheritance is not eought to trigger the problem,
>there must be another class which is derived from class using
>markup inheritance (ie. in the example, TestExtendPage works,
>TestExtendedPage2 doesn't).
>
> > Like with the other issue, I always appreciate simple unit test to
> > verify it and to add it to the existing ones.
>
>I'm very sorry for not providing these examples as junit test cases.
>Getting more familiar with junit tests is on my to-do list, but currently
>I just cannot find time for it. Our applications are all quite large so I 
> cannot
>directly post parts of them - because of this I always ask if the
>problem would already be known before building a simple example
>of the problem.
>
> > What makes me a little
> > worry (and sad) is that we have plenty of unit tests for headers and
> > inheritance and I don't remember I changed the expected output, but
> > still there are quite some issues poping up with it currently. So,
> > junit tests are more than welcome.
>
>I understand this. If I promise that I'll start making junit
>test cases about my problems during next summer could you
>check these two problems with the example applications
>I provided :)
>
>
>Ari S.
>
> >
> > Juergen
> >
> > On 4/5/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
> >> There seems to be also problems if  is used
> >> in page's html directly ie. in beta2 I was able to use
> >> markup inheritance on page level, but not in beta3.
> >>
> >>Ari S.
> >>
> >> - Original Message -
> >> From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
> >> To: 
> >> Sent: Wednesday, April 05, 2006 9:41 AM
> >> Subject: Re: [Wicket-user] update from beta2 to beta3 broke  
> >> in context of 
> >>
> >>
> >> > Thanks. I'll check it out.
> >> >
> >> > Juergen
> >> >
> >> > On 4/5/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
> >> >> There is a simple example in
> >> >> http://download.syncrontech.com/public/wicketheadproblem.zip
> >> >>
> >> >> Ari S.
> >> >>
> >> >> - Original Message -
> >> >> From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
> >> >> To: 
> >> >> Sent: Tuesday, April 04, 2006 3:02 PM
> >> >> Subject: Re: [Wicket-user] update from beta2 to beta3 broke 
> >> >>  in context of 
> >> >>
> >> >>
> >> >> > Note that  MUST be before , ,
> >> >> > ,  and . Unfortunately no
> >> >> > error message is thrown yet. Its currently only my laptop. I need to
> >> >> > test it further before committing.
> >> >> >
> >> >> > If that is not the case in your example, please send me a stripped
> >> >> > down version of the page and panels etc preferably as junit test case
> >> >> > like in src/test
> >> >> >
> >> >> > Juergen
> >> >> >
> >> >> > On 4/4/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
> >> >> >> Hi,
> >> >> >>
> >> >> >> We just updates from 1.2 beta2 to beta3 and noticted that
> >> >> >> some our components using  stuff to add things to
> >> >> >> page's head no longer work. Closer examination shows that those
> >> >> >> components are also using  tags.
> >> >> >>
> >> >> >> Things work if we put an empty 
> >> >> >> to base panel's html file - after that stuff from derived panel's 
> >> >> >> 
> >> >> >> section appears on page.
> >> >> >>
> >> >> >>Ari S.
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> ---
> >> >> >> This SF.Net email is sponsored by xPML, a groundbreaking scripting 
> >> >> >> language
> >> >> >> that extends applications into web and mobile media. Attend the live 
> >> >> >> webcast
> >> >> >> and join the prime developer group breaking into this new coding 
> >> >> >> territory!
> >> >> >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> >> >> >> ___
> >> >> >> Wicket-user mailing list
> >> >> >> Wicket-user@lists.sourceforge.net
> >> >> >> https://lists.sourcefor

Re: [Wicket-user] wicket 1.2 beta 2 DropDownChoice default display value.. "Please Choose one"

2006-04-05 Thread Johan Compagner
what doesn't work exactly?Because looking at the code it should work fine. The getDefaultChoice(selected) is called and appended to the output.johanP.S. Now i think about it getDefaultChoice is a perfect candidate for returning a CharSequence instead of a string. So that you don't have to call toString() on it.
On 4/5/06, Nino Wael <[EMAIL PROTECTED]> wrote:













Hi

 

I looked at the dialog between Igor and Stefan,
thought what a nice way to select the default value with the property model. However
and then remembered why it did not do it that way, I wanted to replace the
Choose One text with something else, well at least in some cases. Im replacing
the text by overriding the getDefaultChoice method. However that doesn't seem
to work any longer(im pretty sure I had it working with wicket 1.1.1), see
sniplet below? Also I noticed these lines in the documentation :

 

    // Note that when the selection is null, Wicket will lookup a localized string to
    // represent this null with key: "id + '.null'". In this case, this is 'site.null'
    // which can be found in DropDownChoicePage.properties    form.add(new DropDownChoice("site", SITES));


Does this mean that I could write in my own version
of Please Choose one in the properties file or am I reading it wrong?

 

/**Sniplet start**/

 

 dropdown
= new DropDownChoice("dropdown", DropdownList.toArray()

 .getList(),
new rowRenderer()) {

   protected
String getDefaultChoice(Object selected) {

 //
The  tag buffer

 final
StringBuffer buffer = new StringBuffer();

 if
(isNullValid()) {

   return
super.getDefaultChoice(selected);

 }
else {

   //
Null is not valid. Is it selected anyway?

   if
(selected == null) {

     //
Force the user to pick a non-null value

     final
String option = dropDownInitial;

     buffer


    .append(


    "\n")

    .append(option).append("");


   }


 

 }


 return
buffer.toString();

   }

 

   protected
void onSelectionChanged(Object newSelection) {

 fill.setEnabled(true);


 invoke.setEnabled
(true);


Re: [Wicket-user] SimplePageAuthorizationStrategy broken when using Spring

2006-04-05 Thread Johan Compagner
If we don't add it then the behaviour of SimplePageAuthorizationStrategy is very strange if you ask me...Why is there then a login page as constructor param. It is the whole point of that class to configure everything for you.
So you just should implement youre own sublcass of AbstractPageAuthorizationStrategy for this.Or see why the application isn't there yet. So the wiring of spring should be done in the initalize phase of the application/wicket servlet.
johanOn 4/5/06, Mark Derricutt <[EMAIL PROTECTED]> wrote:
Hey all,I finally got around to updating my local copy of wicket 1.2 to the latest subversion HEAD snapshots and notice a problem with SimplePageAuthorizationStrategy.Looking at:
  
http://papernapkin.org/pastebin/app/view/202I see a default IUnauthorizedComponentInstantiationListener is added, however this is blindly using Application.get() which for me is null at the time I construct my AuthorisationStrategy due to wireing it up with Spring.
I can easily repeat the content of the SimplePageAuthorizationStrategy class in my own (theres not much code to SPAS itself), but if one could lower reuse it'd be good.Easiest quick-fix is to check if Application.get

() returns null before adding the default listener and if not, carry on without leaving me to assign the/my listener as normal.-- i like my video games - mamma said they are gonna melt my brains
i like my video games - i don't care what daddy said; they're my reality  - henning pauly




RE: [Wicket-user] wicket 1.2 beta 2 DropDownChoice default display value.. "Please Choose one"

2006-04-05 Thread Nino Wael








The value of dropDownInitial
is not used, instead it uses the first object from the model.

 

So instead of displaying whats held in
dropDownInitial it displays the object from the model.

 

-regards Nino

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: 5. april 2006 13:02
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] wicket
1.2 beta 2 DropDownChoice default display value.. "Please Choose one"



 

what doesn't work
exactly?
Because looking at the code it should work fine. The getDefaultChoice(selected)
is called and appended to the output.

johan

P.S. Now i think about it getDefaultChoice is a perfect candidate for returning
a CharSequence instead of a string. So that you don't have to call toString()
on it. 





On 4/5/06, Nino Wael
<[EMAIL PROTECTED]> wrote:





Hi

 

I looked at the dialog between Igor and Stefan, thought what a nice way
to select the default value with the property model. However and then
remembered why it did not do it that way, I wanted to replace the Choose One
text with something else, well at least in some cases. Im replacing the text by
overriding the getDefaultChoice method. However that doesn't seem to work any
longer(im pretty sure I had it working with wicket 1.1.1), see sniplet below?
Also I noticed these lines in the documentation :

 

    // Note that when the selection is null, Wicket will lookup a localized string to // represent this null with key: "id + '.null'". In this case, this is 'site.null' // which can be found in DropDownChoicePage.properties    form.add(new DropDownChoice("site", SITES));

Does this mean that I could write in my own version of Please Choose one
in the properties file or am I reading it wrong?

 

/**Sniplet start**/

 


dropdown = new DropDownChoice("dropdown", DropdownList.toArray()


.getList(), new rowRenderer()) {

  
protected String getDefaultChoice(Object selected) {


// The  tag buffer


final StringBuffer buffer = new StringBuffer();


if (isNullValid()) {

  
return super.getDefaultChoice(selected);


} else {

  
// Null is not valid. Is it selected anyway?

  
if (selected == null) {

  
 
// Force the user to pick a non-null value

  
 
final String option = dropDownInitial;

  
 
buffer 

  

.append( 

  

"\n")

  

.append(option).append(""); 

  
} 

 


}


return buffer.toString();

  
}

 

  

Re: [Wicket-user] SimplePageAuthorizationStrategy broken when using Spring

2006-04-05 Thread Mark Derricutt
On 4/5/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
So you just should implement youre own sublcass of AbstractPageAuthorizationStrategy for this.Or see why the application isn't there yet.The application's not there simply because its not there - my Application instance is configured IN the spring configuration file, example:
    
 
 So the wiring of spring should be done in the initalize phase of the application/wicket servlet.
The wicket servlet is using the SpringWebApplicationFactory application factory which looks up the wicketApplication bean.I'll just rework my code to use AbstractPageAuthorizationStrategy as you say..



[Wicket-user] wicket:message

2006-04-05 Thread Marieke Vandamme

Hello, 

I get an error while using wicket:message
in my html. Did you forget to add 'message' to the wellKnownTagNames or
do I need to do this myself?
thanks!

stacktrace :
Root cause:
java.text.ParseException: Unkown tag
name with Wicket namespace: 'message'. Might be you haven't installed the
appropriate resolver?
     at wicket.markup.parser.filter.WicketTagIdentifier.nextTag(WicketTagIdentifier.java:104)
     at wicket.markup.parser.filter.TagTypeHandler.nextTag(TagTypeHandler.java:83)
     at wicket.markup.parser.filter.HtmlHandler.nextTag(HtmlHandler.java:86)
     at wicket.markup.parser.filter.WicketRemoveTagHandler.nextTag(WicketRemoveTagHandler.java:70)
...

Complete stack:
wicket.markup.MarkupException: Unkown
tag name with Wicket namespace: 'message'. Might be you haven't installed
the appropriate resolver?
[markup = file:/C:/jproject/qs6-wicket/QS6/WEB-INF/classes/com/tvh/qs/app/Index.html,
index = 29, current = [Raw markup]]
     at wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:349)
     at wicket.markup.MarkupParser.readAndParse(MarkupParser.java:191)
     at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:243)
     at wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:312)
     at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:189)
...



MARIEKE VANDAMME


ATTENTION !!

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. 
If you are not the intended recipient of this message you are hereby notified that any use, distribution or reproduction of this message and any files is prohibited. 
If you have received this email in error please notify the system manager by sending this email to [EMAIL PROTECTED]
Any views expressed in this email are those of the  individual sender and may not necessarily reflect the views of TVH - Group Thermote & Vanhalst.

This footnote also confirms that this email message has been swept by our virus-scanning software for the presence of computer viruses.



Re: [Wicket-user] wicket:message

2006-04-05 Thread Juergen Donnerstag
yes, and it is already fixed in SVN trunk.

Juergen

On 4/5/06, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I get an error while using wicket:message in my html. Did you forget to add 
> 'message' to the wellKnownTagNames or do I need to do this myself?
> thanks!
>
> stacktrace :
> Root cause:
> java.text.ParseException: Unkown tag name with Wicket namespace: 'message'. 
> Might be you haven't installed the appropriate resolver?
> at 
> wicket.markup.parser.filter.WicketTagIdentifier.nextTag(WicketTagIdentifier.java:104)
> at 
> wicket.markup.parser.filter.TagTypeHandler.nextTag(TagTypeHandler.java:83)
> at wicket.markup.parser.filter.HtmlHandler.nextTag(HtmlHandler.java:86)
> at 
> wicket.markup.parser.filter.WicketRemoveTagHandler.nextTag(WicketRemoveTagHandler.java:70)
> ...
>
> Complete stack:
>
> wicket.markup.MarkupException: Unkown tag name with Wicket namespace: 
> 'message'. Might be you haven't installed the appropriate resolver?
> [markup = 
> file:/C:/jproject/qs6-wicket/QS6/WEB-INF/classes/com/tvh/qs/app/Index.html, 
> index = 29, current = [Raw markup]]
> at wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:349)
> at wicket.markup.MarkupParser.readAndParse(MarkupParser.java:191)
> at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:243)
> at 
> wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:312)
> at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:189)
> ...
>
>
>
> MARIEKE VANDAMME
> 
>
> ATTENTION !!
>
> This email and any files transmitted with it are confidential and intended 
> solely for the use of the individual or entity to whom they are addressed.
> If you are not the intended recipient of this message you are hereby notified 
> that any use, distribution or reproduction of this message and any files is 
> prohibited.
> If you have received this email in error please notify the system manager by 
> sending this email to [EMAIL PROTECTED]
> Any views expressed in this email are those of the individual sender and may 
> not necessarily reflect the views of TVH - Group Thermote & Vanhalst.
>
> This footnote also confirms that this email message has been swept by our 
> virus-scanning software for the presence of computer viruses.
> 
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] update from beta2 to beta3 broke in context of

2006-04-05 Thread sven
Seems to me that the following bug is a duplicate:

http://sourceforge.net/tracker/index.php?func=detail&aid=1464309&group_id=119783&atid=684975

It has a unit test though ;).

Sven

>Yes, sure. I'll check them both.
>
>Juergen
>
>On 4/5/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> > What exactly do you mean. Inheritance for Pages is still supported.
>>
>>There is a simple example at
>>http://download.syncrontech.com/public/wicketpageinheritanceproblem.zip
>>
>>trying to view TestExtendedPage2 with 1.2-beta3:
>>
>> Caused by: wicket.WicketRuntimeException: Expected to find  
>in base markup
>>  at wicket.markup.MergedMarkup.merge(MergedMarkup.java:315)
>>  at wicket.markup.MergedMarkup.(MergedMarkup.java:50)
>>  at 
>wicket.markup.MarkupCache.checkForMarkupInheritance(MarkupCache.java:440)
>>  at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:248)
>>  at 
>wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:312)
>>  at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:189)
>>  at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:105)
>>  at 
>wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:775)
>>
>>But the same code works perfectly with beta2. It seems that
>>just simple markup inheritance is not eought to trigger the problem,
>>there must be another class which is derived from class using
>>markup inheritance (ie. in the example, TestExtendPage works,
>>TestExtendedPage2 doesn't).
>>
>> > Like with the other issue, I always appreciate simple unit test to
>> > verify it and to add it to the existing ones.
>>
>>I'm very sorry for not providing these examples as junit test cases.
>>Getting more familiar with junit tests is on my to-do list, but 
>currently
>>I just cannot find time for it. Our applications are all quite large so I 
>cannot
>>directly post parts of them - because of this I always ask if the
>>problem would already be known before building a simple example
>>of the problem.
>>
>> > What makes me a little
>> > worry (and sad) is that we have plenty of unit tests for headers and
>> > inheritance and I don't remember I changed the expected output, but
>> > still there are quite some issues poping up with it currently. So,
>> > junit tests are more than welcome.
>>
>>I understand this. If I promise that I'll start making junit
>>test cases about my problems during next summer could you
>>check these two problems with the example applications
>>I provided :)
>>
>>
>>Ari S.
>>
>> >
>> > Juergen
>> >
>> > On 4/5/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
>> >> There seems to be also problems if  is used
>> >> in page's html directly ie. in beta2 I was able to use
>> >> markup inheritance on page level, but not in beta3.
>> >>
>> >>Ari S.
>> >>
>> >> - Original Message -
>> >> From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
>> >> To: 
>> >> Sent: Wednesday, April 05, 2006 9:41 AM
>> >> Subject: Re: [Wicket-user] update from beta2 to beta3 broke  
>in context of 
>> >>
>> >>
>> >> > Thanks. I'll check it out.
>> >> >
>> >> > Juergen
>> >> >
>> >> > On 4/5/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
>> >> >> There is a simple example in
>> >> >> http://download.syncrontech.com/public/wicketheadproblem.zip
>> >> >>
>> >> >> Ari S.
>> >> >>
>> >> >> - Original Message -
>> >> >> From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
>> >> >> To: 
>> >> >> Sent: Tuesday, April 04, 2006 3:02 PM
>> >> >> Subject: Re: [Wicket-user] update from beta2 to beta3 broke 
> in context of 
>> >> >>
>> >> >>
>> >> >> > Note that  MUST be before , ,
>> >> >> > ,  and . Unfortunately 
>no
>> >> >> > error message is thrown yet. Its currently only my laptop. I need 
>to
>> >> >> > test it further before committing.
>> >> >> >
>> >> >> > If that is not the case in your example, please send me a stripped
>> >> >> > down version of the page and panels etc preferably as junit test 
>case
>> >> >> > like in src/test
>> >> >> >
>> >> >> > Juergen
>> >> >> >
>> >> >> > On 4/4/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
>> >> >> >> Hi,
>> >> >> >>
>> >> >> >> We just updates from 1.2 beta2 to beta3 and noticted that
>> >> >> >> some our components using  stuff to add things to
>> >> >> >> page's head no longer work. Closer examination shows that those
>> >> >> >> components are also using  tags.
>> >> >> >>
>> >> >> >> Things work if we put an empty 
>> >> >> >> to base panel's html file - after that stuff from derived panel's 
>
>> >> >> >> section appears on page.
>> >> >> >>
>> >> >> >>Ari S.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> ---
>> >> >> >> This SF.Net email is sponsored by xPML, a groundbreaking scripting 
>language
>> >> >> >> that extends applications into web and mobile media. Attend the 
>live webcast
>> >> >> >> and join the prime developer group breaking into this new coding 
>territory

[Wicket-user] Wicket Big Picture

2006-04-05 Thread Matt Carlson
 My team and I are new to Wicket but have been sold by the various blogs, examples and code we've read and are therefore committed to using it on our latest large development project. However, we're currently struggling a bit with
contextualizing what the setup and flow of a large wicket application would look like based upon examining the smaller examples in wicket stuff etc.  It could just be part of the mental block of moving to a component framework and away from our experience with struts, rails etc - we have bits and pieces up
and running but don't yet have the larger Wicket picture.  I was wondering if anyone might have good examples or suggestions to share or if anyone knows if Wicket in Action is indeed coming out and whether it will be released as a MEAP book by Manning?
Thanks


[Wicket-user] PasswordTextField.setResetPassword

2006-04-05 Thread Rüdiger Schulz
Hello list,

I have a form with a PasswordTextField. If one of the validators of
the other fields creates an error, the content of the password field
is cleared, as oppossed to all the other fields, which keep their
entered values. resetPassword is set to false, but the only effect
from this is, that the password is kept *only* if the form was
submitted without an error from a validator.

Is there a way around this? I'd like the password field to keep its
value even if the form has errors elsewhere...

I'm using Wicket 1.1.1, and already found a similar thread in the list
archive from last November, but there was no help there either :(

thanks,

-- 
greetings from Berlin,

Rüdiger Schulz



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] PasswordTextField.setResetPassword

2006-04-05 Thread Johan Compagner
will see if i can fix that it is this piece of code:tag.put("value", getResetPassword() ? "" : getModelObjectAsString());The problem is that it should betag.put("value", getResetPassword() ? "" : getValue());
But don't know yet if i can do that for the password field.johanOn 4/5/06, Rüdiger Schulz <[EMAIL PROTECTED]
> wrote:Hello list,I have a form with a PasswordTextField. If one of the validators of
the other fields creates an error, the content of the password fieldis cleared, as oppossed to all the other fields, which keep theirentered values. resetPassword is set to false, but the only effectfrom this is, that the password is kept *only* if the form was
submitted without an error from a validator.Is there a way around this? I'd like the password field to keep itsvalue even if the form has errors elsewhere...I'm using Wicket 1.1.1, and already found a similar thread in the list
archive from last November, but there was no help there either :(thanks,--greetings from Berlin,Rüdiger Schulz---This 
SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] Wicket Big Picture

2006-04-05 Thread karthik Guru
ok i know its a tiny application but would a wicket pet store (with
ibatis) help :)  But I believe that there is enough functionality in
it to demo wicket capabilities. Uhm that reminds me that I just have
to check it into wicket-stuff and get the code reviewed by the wicket
lead developers.


On 4/5/06, Matt Carlson <[EMAIL PROTECTED]> wrote:
>  My team and I are new to Wicket but have been sold by the various blogs,
> examples and code we've read and are therefore committed to using it on our
> latest large development project. However, we're currently struggling a bit
> with
> contextualizing what the setup and flow of a large wicket application would
> look like based upon examining the smaller examples in wicket stuff etc.  It
> could just be part of the mental block of moving to a component framework
> and away from our experience with struts, rails etc - we have bits and
> pieces up
> and running but don't yet have the larger Wicket picture.  I was wondering
> if anyone might have good examples or suggestions to share or if anyone
> knows if Wicket in Action is indeed coming out and whether it will be
> released as a MEAP book by Manning?
> Thanks


--
 -- karthik --


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Iterating a for loop and rendering the results

2006-04-05 Thread Geertjan Wielenga


Hi all,

Part of my code goes like this:

   for (int k = 0; k < allsuggestions.size(); k++) {
   String onesuggestion = 
(String)allsuggestions.get(k);
   listItem.add(new 
MultiLineLabel("one_suggestion", onesuggestion));

   }

So, how do I render a new listitem for each iteration of this for loop?

Currently only the first item in the iteration is rendered.

Geertjan


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SimplePageAuthorizationStrategy broken when using Spring

2006-04-05 Thread Johan Compagner
this should work:public  class TimeTrackrApplication extends Application{   public TimeTrackrApplication()   {    Application.set(this);   }}At least i don't hope that spring first makes the refs then the bean itself..
johanOn 4/5/06, Mark Derricutt <[EMAIL PROTECTED]> wrote:
On 4/5/06, Johan Compagner <[EMAIL PROTECTED]
> wrote:

So you just should implement youre own sublcass of AbstractPageAuthorizationStrategy for this.Or see why the application isn't there yet.
The application's not there simply because its not there - my Application instance is configured IN the spring configuration file, example:
    
 
 
So the wiring of spring should be done in the initalize phase of the application/wicket servlet.
The wicket servlet is using the SpringWebApplicationFactory application factory which looks up the wicketApplication bean.I'll just rework my code to use AbstractPageAuthorizationStrategy as you say..





Re: [Wicket-user] Wicket Big Picture

2006-04-05 Thread Martijn Dashorst
The Wicket in Action is most surely coming out. Only not before this summer. According to my information, the MEAP is available for all authors that wish to do so, and I think both Eelco and I are not opposed to the program. However, the MEAP is not equal to the beta book program available from the pragmatic programmers.
To my knowledge, the MEAP is available when the book is finished in writing and no trees have yet been cut down. So the PDF books for the early access program will become available when the book itself has been finalized.
MartijnOn 4/5/06, Matt Carlson <[EMAIL PROTECTED]> wrote:
 My team and I are new to Wicket but have been sold by the various blogs, examples and code we've read and are therefore committed to using it on our latest large development project. However, we're currently struggling a bit with
contextualizing what the setup and flow of a large wicket application would look like based upon examining the smaller examples in wicket stuff etc.  It could just be part of the mental block of moving to a component framework and away from our experience with struts, rails etc - we have bits and pieces up
and running but don't yet have the larger Wicket picture.  I was wondering if anyone might have good examples or suggestions to share or if anyone knows if Wicket in Action is indeed coming out and whether it will be released as a MEAP book by Manning?
Thanks

-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- http://wicketframework.org


[Wicket-user] Wicket 1.2 beta3 tag broken?

2006-04-05 Thread Tom van Zummeren
I use quite a few  tags in my application. Since wicket 1.2 
beta3 this tag doesn't work anymore, Wicket acts like he has never heard of 
this tag before.

I looked a bit into it and found out the tag wasn't registered as a known tag.
So when I added this to my subclass of WebApplication:

WicketTagIdentifier.registerWellKnownTagName("message");

.. everything worked fine again.

I consider this to be a bug. The resolver of  obviously doesn't 
automatically register it's tag anymore. All the other resolvers do.


Tom

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.5/300 - Release Date: 4/3/2006
 


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2 beta3 tag broken?

2006-04-05 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

It was already said this was fixed in svn.

Tom van Zummeren wrote:
> I use quite a few  tags in my application. Since wicket 1.2 
> beta3 this tag doesn't work anymore, Wicket acts like he has never heard of 
> this tag before.
> 
> I looked a bit into it and found out the tag wasn't registered as a known tag.
> So when I added this to my subclass of WebApplication:
> 
> WicketTagIdentifier.registerWellKnownTagName("message");
> 
> .. everything worked fine again.
> 
> I consider this to be a bug. The resolver of  obviously 
> doesn't automatically register it's tag anymore. All the other resolvers do.
> 
> 
> Tom
> 

- --
Justin Lee
http://www.antwerkz.com
AIM : evan chooly
Phone: 720.299.0101
Skype : evan chooly
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)

iD8DBQFEM809JnQfEGuJ90MRA9m7AKDjR26oiuz0HhH8VA/ii0Nh9Fp20gCeMwoE
bqgmB9FB2SbUYpM949Xs8Mo=
=7BoV
-END PGP SIGNATURE-


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


RE: [Wicket-user] Question about DataTable and IDataProvider restated

2006-04-05 Thread Frank Silbermann
Me:
>> I suppose the usual approach is to trigger the download of 
>> IDataProvider's data via the event handler of the submit button.
>> That way, the data would be available for both "Iterator 
>> IDataProvider.iterate(first, count)" and "int IDataProvider.size()".

Eelco Hillenius Sent: Tuesday, April 04, 2006 5:58 PM:
>
> It's the responsibility of the model(s). Components may rely on models
> being properly initialized and available whenever they want to access
> them. Model implementations may or may implement detachable behavior,
> caching etc.


Perhaps the method "IModel IDataProvider.model(Object)" has something to
do with this.  How is this method to be used?


>> However, I do not have a single submit button - I have various sets
of
>> radio-buttons and a change to any one causes an immediate postback.
I do
>> not want to code an event handler for each one of them; I'd rather
put my
>> database query in a method that is called before the page is rendered
>> _regardless_ of the reason.  Can you suggest a suitable method?

Eelco:
> So, make that part of your model's implementation. Look at for example
> LoadableDetachableModel for ideas, or you can use the implementation
> directly too if you want.

I am guessing that the input to "IModel IDataProvider.model(Object)" is
some object in the session that provides the information needed for the
database download.  Any IDataProvider method that needs database data,
e.g. "int count()" and "Iterator iterate(first,count)" must call "IModel
IDataProvider.getModel(Object)" to get the wrapper, and then ask that
wrapper to provide the database-filled result.

In this way, whichever IDataProvider method needs the database data
first is the one that causes the database refresh.

Is that the idea?



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket 1.2 beta 2 DropDownChoice default display value.. "Please Choose one"

2006-04-05 Thread Johan Compagner
can't reproduce it if i do create this:ArrayList list = new ArrayList();        list.add("test1");        list.add("test2");        list.add("test3");        DropDownChoice choice = new DropDownChoice("dropdownchoice", new Model(null), new Model(
                list))So a normal default choice.The Choose one is displayed nicely.So if you override that getDefaultOption() but you do pretty much the same thing it should work fine.johan
On 4/5/06, Nino Wael <[EMAIL PROTECTED]> wrote:














The value of 
dropDownInitial
is not used, instead it uses the first object from the model.

 

So instead of displaying whats held in
dropDownInitial it displays the object from the model.

 

-regards Nino

 









From:

[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of 
Johan Compagner
Sent: 5. april 2006 13:02
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] wicket
1.2 beta 2 DropDownChoice default display value.. "Please Choose one"



 

what doesn't work
exactly?
Because looking at the code it should work fine. The getDefaultChoice(selected)
is called and appended to the output.

johan

P.S. Now i think about it getDefaultChoice is a perfect candidate for returning
a CharSequence instead of a string. So that you don't have to call toString()
on it. 





On 4/5/06, Nino Wael
<[EMAIL PROTECTED]> wrote:





Hi

 

I looked at the dialog between Igor and Stefan, thought what a nice way
to select the default value with the property model. However and then
remembered why it did not do it that way, I wanted to replace the Choose One
text with something else, well at least in some cases. Im replacing the text by
overriding the getDefaultChoice method. However that doesn't seem to work any
longer(im pretty sure I had it working with wicket 1.1.1), see sniplet below?
Also I noticed these lines in the documentation :

 

    // Note that when the selection is null, Wicket will lookup a localized string to
 // represent this null with key: "id + '.null'". In this case, this is '
site.null' // which can be found in 
DropDownChoicePage.properties    form.add(new DropDownChoice("site", SITES));

Does this mean that I could write in my own version of Please Choose one
in the properties file or am I reading it wrong?

 

/**Sniplet start**/

 


dropdown = new DropDownChoice("dropdown", DropdownList.toArray()


.getList(), new rowRenderer()) {

  
protected String getDefaultChoice(Object selected) {


// The  tag buffer


final StringBuffer buffer = new StringBuffer();


if (isNullValid()) {

  
return super.getDefaultChoice(selected);


} else {

  
// Null is not valid. Is it selected anyway?

  
if (selected == null) {

  
 
// Force the user to pick a non-null value

  
 
final String option = dropDownInitial;

  
 
buffer 

  

.append( 

  

"\n")

  

.append(opti

Re: [Wicket-user] Iterating a for loop and rendering the results

2006-04-05 Thread Johan Compagner
you have to use another listview inside a listitemBecause that is what you seem to do. so something like
and then the current listItem must add another ListView instance (called innertable)johanOn 4/5/06, Geertjan Wielenga
 <[EMAIL PROTECTED]> wrote:
Hi all,Part of my code goes like this:for (int k = 0; k < allsuggestions.size(); k++) {String >(String)allsuggestions.get(k);
listItem.add(newMultiLineLabel("one_suggestion", onesuggestion));}So, how do I render a new listitem for each iteration of this for loop?
Currently only the first item in the iteration is rendered.Geertjan---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


RE: [Wicket-user] ?Contract for "Iterator IDataProvider.iterator(int first, int count)" ???

2006-04-05 Thread Frank Silbermann








 

 

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: Tuesday, April 04, 2006 6:32 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
?Contract for "Iterator IDataProvider.iterator(int first, int count)"
???

 









If so, I would ask _which_ framework method _should_ trigger the retrieval of database
information needed by both IDataProvider methods?  If I knew which of the
two methods were called first – I could put the database query
there.  Or, perhaps the database query should be triggered by some other
framework method which is called before either of them.









you are meant to do two queries:

size() { return { select count(*) from blah } }

iterator(int first, int count) { return { select *
from blah where rownum>=first and rownum

-Igor

These
two methods could return inconsistent results if other users’ intervening
CRUD operations affected the number of rows returned.

So if I
want to guard against that, I should allow either one of these methods to
download the rows and count them.  Each
method should do that only if the other method hasn’t done it first. Is
that the idea?








Re: [Wicket-user] Wicket Big Picture

2006-04-05 Thread Matt Carlson
Hi Karthik,A petstore example would be a great help!  Please let me know when you get it checked in.ThanksOn 4/5/06, karthik Guru <
[EMAIL PROTECTED]> wrote:ok i know its a tiny application but would a wicket pet store (with
ibatis) help :)  But I believe that there is enough functionality init to demo wicket capabilities. Uhm that reminds me that I just haveto check it into wicket-stuff and get the code reviewed by the wicket
lead developers.On 4/5/06, Matt Carlson <[EMAIL PROTECTED]> wrote:>  My team and I are new to Wicket but have been sold by the various blogs,
> examples and code we've read and are therefore committed to using it on our> latest large development project. However, we're currently struggling a bit> with> contextualizing what the setup and flow of a large wicket application would
> look like based upon examining the smaller examples in wicket stuff etc.  It> could just be part of the mental block of moving to a component framework> and away from our experience with struts, rails etc - we have bits and
> pieces up> and running but don't yet have the larger Wicket picture.  I was wondering> if anyone might have good examples or suggestions to share or if anyone> knows if Wicket in Action is indeed coming out and whether it will be
> released as a MEAP book by Manning?> Thanks-- -- karthik -This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SimplePageAuthorizationStrategy broken when using Spring

2006-04-05 Thread Igor Vaynberg
actually it will. it will create the dependent objects first, since in the bean def app depends on the strat, the strat ben is created first and then passed to the app.you need ioioc here, the start needs to know when it is bound to the application so it can configure it.
-IgorOn 4/5/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
this should work:public  class TimeTrackrApplication extends Application{   public TimeTrackrApplication()   {    Application.set(this);   }}At least i don't hope that spring first makes the refs then the bean itself..
johanOn 4/5/06, 
Mark Derricutt <[EMAIL PROTECTED]> wrote:

On 4/5/06, Johan Compagner <[EMAIL PROTECTED]
> wrote:


So you just should implement youre own sublcass of AbstractPageAuthorizationStrategy for this.Or see why the application isn't there yet.

The application's not there simply because its not there - my Application instance is configured IN the spring configuration file, example:
    
 
 

So the wiring of spring should be done in the initalize phase of the application/wicket servlet.
The wicket servlet is using the SpringWebApplicationFactory application factory which looks up the wicketApplication bean.I'll just rework my code to use AbstractPageAuthorizationStrategy as you say..







Re: [Wicket-user] starting jetty with 1.2 beta3

2006-04-05 Thread Scott Swank
I should have known.  Thanks again.

On 4/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> from experience :)
>
>  -Igor
>
>
>
> On 4/4/06, Scott Swank <[EMAIL PROTECTED]> wrote:
> > Tomcat 4.1.31 -- that got it.  Thanks so much Alexandre.  Now just how
> > did y'all know that jasper was missing from the exception I posted?
> > :)
> >
> > Scott
> >
> >
> > On 4/4/06, Alexandre Bairos < [EMAIL PROTECTED]> wrote:
> > > The jars are in %tomcat%/common/lib. Jasper-runtime.jar and
> > > jasper-compile.jar. Use the ones from tomcat 4.x.
> > >
> > >
> > > On 4/4/06, Scott Swank < [EMAIL PROTECTED]> wrote:
> > > > Eelco -- I can't find either of those jars in the latest tomcat, nor
> > > > via google, nor do I see them in wicket 1.2 beta3.  Where do those
> > > > jasper jars originate?
> > > >
> > > > Igor -- I don't have maven installed, are there other options for me
> here?
> > > >
> > > > Thanks again,
> > > > Scott
> > > >
> > > >
> > > > On 4/4/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > > > > wicket-examples already comes with a configured eclipse project
> doesnt
> > > it?
> > > > >
> > > > > also if you have maven 2 installed and run mvn eclipse:eclipse it
> will
> > > > > download all the deps and build the eclipse project files for you.
> > > > >
> > > > > -Igor
> > > > >
> > > > >
> > > > >
> > > > > On 4/4/06, Eelco Hillenius < [EMAIL PROTECTED] > wrote:
> > > > > > It seems that it wants the jasper libs too (jasper-runtime-x.jar
> and
> > > > > > probably jasper-compiler-x.jar ).
> > > > > >
> > > > > > Eelco
> > > > > >
> > > > > >
> > > > > > On 4/4/06, Scott Swank < [EMAIL PROTECTED]> wrote:
> > > > > > > I just downloaded the beta3 wicket-examples and created a new
> Java
> > > > > > > project for it in Eclipse 3.1.  When I try to run StartExamples
> I
> > > > > > > receive the following -- which is rather odd since this jar
> > > > > > > (org.mortbay.jetty-4.2.24.jar) is visible under project
> properties:
> > > > > > > Java Build Path > Libraries.  Have I just mucked up some dumb
> detail
> > > > > > > in my Eclipse project this time around?
> > > > > > >
> > > > > > > 15:09: 19.862 EVENT  Started SocketListener on 0.0.0.0:8080
> > > > > > > FATAL - StartExamples  - Could not start the Jetty
> > > server:
> > > > > > >
> > > > >
> > >
> org.mortbay.util.MultiException[java.lang.ClassNotFoundException
> > > > > :
> > > > > > > org.apache.jasper.servlet.JspServlet ]
> > > > > > > 15:09:19.862 EVENT  Stopping Acceptor
> > > > > > >
> > > > >
> > > ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080
> ]
> > > > > > > 15:09:20.815 EVENT  Stopped SocketListener on 0.0.0.0:8080
> > > > > > > 15:09:20.815 EVENT  invoker: destroy
> > > > > > > 15:09: 20.815 EVENT  default: destroy
> > > > > > > 15:09:20.815 EVENT  Stopped
> > > > > > > WebApplicationContext[/wicket-examples,Wicket
> > > Examples]
> > > > > > > 15:09:20.815 EVENT  Stopped
> > > > > [EMAIL PROTECTED]
> > > > > > >
> > > > > > > --
> > > > > > > Scott Swank
> > > > > > > reformed mathematician
> > > > > > >
> > > > > > >
> > > > > > >
> > > ---
> > > > > > > This SF.Net email is sponsored by xPML, a groundbreaking
> scripting
> > > > > language
> > > > > > > that extends applications into web and mobile media. Attend the
> live
> > > > > webcast
> > > > > > > and join the prime developer group breaking into this new coding
> > > > > territory!
> > > > > > >
> > > > >
> > >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > > > > > > ___
> > > > > > > Wicket-user mailing list
> > > > > > > Wicket-user@lists.sourceforge.net
> > > > > > >
> > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > ---
> > > > > > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > > > > language
> > > > > > that extends applications into web and mobile media. Attend the
> live
> > > > > webcast
> > > > > > and join the prime developer group breaking into this new coding
> > > > > territory!
> > > > > >
> > > > >
> > >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > > > > > ___
> > > > > > Wicket-user mailing list
> > > > > > Wicket-user@lists.sourceforge.net
> > > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Scott Swank
> > > > reformed mathematician
> > > >
> > > >
> > > >
> ---
> > > > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > > language
> > > > that extends applications into web and mobile media. Attend the live
> > > webcast
> > > > and join the prime developer group breaking into this new coding
> > > territory!
> > > >
> > >
> http://sel.as

Re: [Wicket-user] Question about DataTable and IDataProvider restated

2006-04-05 Thread Igor Vaynberg
no, the model() is there to wrap every object returned from the iterator() call in its own (detachable) model. this model is used in Item components which represent a rows inside a dataview.-Igor
On 4/5/06, Frank Silbermann <[EMAIL PROTECTED]> wrote:
Me:>> I suppose the usual approach is to trigger the download of>> IDataProvider's data via the event handler of the submit button.>> That way, the data would be available for both "Iterator
>> IDataProvider.iterate(first, count)" and "int IDataProvider.size()".Eelco Hillenius Sent: Tuesday, April 04, 2006 5:58 PM:>> It's the responsibility of the model(s). Components may rely on models
> being properly initialized and available whenever they want to access> them. Model implementations may or may implement detachable behavior,> caching etc.Perhaps the method "IModel 
IDataProvider.model(Object)" has something todo with this.  How is this method to be used?>> However, I do not have a single submit button - I have various setsof>> radio-buttons and a change to any one causes an immediate postback.
I do>> not want to code an event handler for each one of them; I'd ratherput my>> database query in a method that is called before the page is rendered>> _regardless_ of the reason.  Can you suggest a suitable method?
Eelco:> So, make that part of your model's implementation. Look at for example> LoadableDetachableModel for ideas, or you can use the implementation> directly too if you want.I am guessing that the input to "IModel 
IDataProvider.model(Object)" issome object in the session that provides the information needed for thedatabase download.  Any IDataProvider method that needs database data,e.g. "int count()" and "Iterator iterate(first,count)" must call "IModel
IDataProvider.getModel(Object)" to get the wrapper, and then ask thatwrapper to provide the database-filled result.In this way, whichever IDataProvider method needs the database datafirst is the one that causes the database refresh.
Is that the idea?---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] 1.2 beta3 AjaxPagingNavigator odd behavior?

2006-04-05 Thread Jerry Smith
Here's my test Page:

public class HomePage extends WebPage {
public HomePage() {
List list = new ArrayList();
for(int i = 0; i < 40; i++) {
list.add(Integer.toString(i));
}

PageableListView lv = new PageableListView("items", (List)list,
5) {
public void populateItem(ListItem item) {
item.add(new Label("item",
item.getModelObject().toString()));
}
};
lv.setOutputMarkupId(true);
WebMarkupContainer wmc = new WebMarkupContainer("wmc");
wmc.setOutputMarkupId(true);
wmc.add(lv);
add(wmc);
add(new AjaxPagingNavigator("nav", lv));
}
}

This template DOES NOT work as expected:






1 2 3 4 5




test







Output with 3 selected:

<< <   1   2   3   4   5   6   7   8   > >>
10 11 12 13 14
0
1
2
3
4

This on DOES work as expected:






1 2 3 4 5




test







Output with 3 selected:

<< <   1   2   3   4   5   6   7   8   > >>
10
11
12
13
14


What's going on here do you think?


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] PopupSettings Center

2006-04-05 Thread Eelco Hillenius
Thanks, I'll try to look into it shortly.

Eelco

On 4/3/06, Alexander Lohse <[EMAIL PROTECTED]> wrote:
> I did so.
>
> Regards,
>
> Alex
>
> Am 01.04.2006 um 23:31 schrieb Eelco Hillenius:
>
> > Didn't think about that yet. A patch would be welcome. If you have
> > one, please attach it to an RFE
> > (http://sourceforge.net/tracker/?group_id=119783&atid=684978)
> >
> > Eelco
> >
> > On 3/31/06, Alexander Lohse <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >>
> >> are there any efforts yet to add a centering option to the
> >> PopupSettings?
> >>
> >> Something like: script.append("mywindow.moveTo((screen.availWidth-" +
> >> width +")/2,(screen.availHeight-" + height + ")/5*2);\n");
> >>
> >> Regards,
> >>
> >> Alex
> >>
> >> –––
> >> Alexander Lohse
> >> (Entwicklungsleitung & Projektmanagement)
> >>
> >> Human Touch Medienproduktion GmbH
> >> Am See 1
> >> 17440 Klein Jasedow
> >> Deutschland
> >>
> >> Tel: +49 38374 752 11
> >> Fax: +49 38374 752 23
> >> e-mail: [EMAIL PROTECTED]
> >> Internet: http://www.webjazz.de
> >> –––
> >>
> >>
> >>
> >>
> >> ---
> >> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> >> language
> >> that extends applications into web and mobile media. Attend the
> >> live webcast
> >> and join the prime developer group breaking into this new coding
> >> territory!
> >> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language
> > that extends applications into web and mobile media. Attend the
> > live webcast
> > and join the prime developer group breaking into this new coding
> > territory!
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>
> –––
> Alexander Lohse
> (Entwicklungsleitung & Projektmanagement)
>
> Human Touch Medienproduktion GmbH
> Am See 1
> 17440 Klein Jasedow
> Deutschland
>
> Tel: +49 38374 752 11
> Fax: +49 38374 752 23
> e-mail: [EMAIL PROTECTED]
> Internet: http://www.webjazz.de
> –––
>
>
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ?Contract for "Iterator IDataProvider.iterator(int first, int count)" ???

2006-04-05 Thread Igor Vaynberg
you cannot "guard" against such a thing in the database unless you have an exclusive lock on the table. size() and iterator() are independent of each other unless you are on the last page of the datatable. and even then there is not much you can do if someone is inserting/removing data from under you.
-IgorOn 4/5/06, Frank Silbermann <[EMAIL PROTECTED]> wrote:



















 

 


-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of 
Igor Vaynberg
Sent: Tuesday, April 04, 2006
 6:32 PM

To: wicket-user@lists.sourceforge.net

Subject: Re: [Wicket-user]
?Contract for "Iterator IDataProvider.iterator(int first, int count)"
???

 










If so, I would ask _which_ framework method _
should_ trigger the retrieval of database
information needed by both IDataProvider methods?  If I knew which of the
two methods were called first – I could put the database query
there.  Or, perhaps the database query should be triggered by some other
framework method which is called before either of them.









you are meant to do two queries:

size() { return { select count(*) from blah } }

iterator(int first, int count) { return { select *
from blah where rownum>=first and rownum

-Igor

These
two methods could return inconsistent results if other users' intervening
CRUD operations affected the number of rows returned.

So if I
want to guard against that, I should allow either one of these methods to
download the rows and count them.  Each
method should do that only if the other method hasn't done it first. Is
that the idea?









Re: [Wicket-user] 1.2 beta3 AjaxPagingNavigator odd behavior?

2006-04-05 Thread Martijn Dashorst
A listview doesn't have its own markup. So it can't redraw itself using AJAX.In your second example that does work, you have a webmarkup container surrounding the listview, so that *does* work in a AJAX refresh.
Also, you don't need the span here:    Just:    will do.In IE it is not possible to redraw a TR element of a table. So you need to redraw the whole table, or the TBODY part.
MartijnOn 4/5/06, Jerry Smith <[EMAIL PROTECTED]> wrote:
Here's my test Page:public class HomePage extends WebPage {public HomePage() {List list = new ArrayList();for(int i = 0; i < 40; i++) {
list.add(Integer.toString(i));}PageableListView lv = new PageableListView("items", (List)list,5) {public void populateItem(ListItem item) {item.add
(new Label("item",item.getModelObject().toString()));}};lv.setOutputMarkupId(true);WebMarkupContainer wmc = new WebMarkupContainer("wmc");
wmc.setOutputMarkupId(true);wmc.add(lv);add(wmc);add(new AjaxPagingNavigator("nav", lv));}}This template DOES NOT work as expected:
1 2 3 4 5
test
Output with 3 selected:<< <   1   2   3   4   5   6   7   8   > >>
10 11 12 13 1401234This on DOES work as expected:1 2 3 4 5
test
Output with 3 selected:<< <   1   2   3   4   5   6   7   8   > >>
1011121314What's going on here do you think?---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
-- http://wicketframework.org


Re: [Wicket-user] 1.2 beta3 AjaxPagingNavigator odd behavior?

2006-04-05 Thread Igor Vaynberg
tbody in ie doesnt work either with outerHTML, so you have to redraw the entire table.-IgorOn 4/5/06, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:A listview doesn't have its own markup. So it can't redraw itself using AJAX.
In your second example that does work, you have a webmarkup container surrounding the listview, so that *does* work in a AJAX refresh.
Also, you don't need the span here:    
Just:    will do.In IE it is not possible to redraw a TR element of a table. So you need to redraw the whole table, or the TBODY part.
MartijnOn 4/5/06, Jerry Smith <
[EMAIL PROTECTED]> wrote:
Here's my test Page:public class HomePage extends WebPage {public HomePage() {List list = new ArrayList();for(int i = 0; i < 40; i++) {
list.add(Integer.toString(i));}PageableListView lv = new PageableListView("items", (List)list,5) {public void populateItem(ListItem item) {item.add

(new Label("item",item.getModelObject().toString()));}};lv.setOutputMarkupId(true);WebMarkupContainer wmc = new WebMarkupContainer("wmc");
wmc.setOutputMarkupId(true);wmc.add(lv);add(wmc);add(new AjaxPagingNavigator("nav", lv));}}This template DOES NOT work as expected:

1 2 3 4 5
test
Output with 3 selected:<< <   1   2   3   4   5   6   7   8   > >>
10 11 12 13 1401234This on DOES work as expected:1 2 3 4 5
test
Output with 3 selected:<< <   1   2   3   4   5   6   7   8   > >>
1011121314What's going on here do you think?---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!

http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
-- http://wicketframework.org




Re: [Wicket-user] WicketAjaxIndicatorAppender

2006-04-05 Thread Steve Knight
I created a quickstart project to demonstrate the problem.  Then I decided to bump the quickstart up to beta 3 and the problem went away.  So, I guess I'll have to upgrade.Thanks Igor.Steve
On 4/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
hrm. ok. can you make me a quickstart project that reproduces the problem? and then i will try it against trunk and tell  you if its been fixed or not.
-IgorOn 4/4/06, 
Steve Knight <[EMAIL PROTECTED]> wrote:

Not easily.  I am using Databinder which I think is tied to beta2.Steve
On 4/4/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:can you try against trunk or beta3?


-IgorOn 4/4/06, 
Steve Knight <[EMAIL PROTECTED]> wrote:
I am trying to make an AjaxSubmitButton that uses WicketAjaxIndicatorAppender to display a busy indicator, but it's not quite working.  I used the IndicatingAjaxLink as a guideline, and everything seems to work except that the indicator does not disappear after the Ajax call is completed. 
Here is my IndicatingAjaxSubmitButton class:abstract class IndicatingAjaxSubmitButton extends AjaxSubmitButton implements IAjaxIndicatorAware {private final WicketAjaxIndicatorAppender indicatorAppender = new WicketAjaxIndicatorAppender(); 
public IndicatingAjaxSubmitButton(String id, Form form) {super(id, form);add(indicatorAppender);}public String getAjaxIndicatorMarkupId() {return  indicatorAppender.getMarkupId




();}}Here is the relevant bit of html that gets generated:Am I missing something?Steve  










RE: [Wicket-user] 1.2 beta3 AjaxPagingNavigator odd behavior?

2006-04-05 Thread Jerry Smith








Yep, it’s working now with the
table, thanks!

 











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: Wednesday, April 05, 2006
11:48 AM
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] 1.2
beta3 AjaxPagingNavigator odd behavior?



 

tbody in ie doesnt work
either with outerHTML, so you have to redraw the entire table.

-Igor





On 4/5/06, Martijn
Dashorst <
[EMAIL PROTECTED]> wrote:



A listview doesn't have its own markup. So it can't redraw itself using
AJAX. 

In your second example that does work, you have a webmarkup container
surrounding the listview, so that *does* work in a AJAX refresh.

Also, you don't need the span here:






   







Just:
    

will do.

In IE it is not possible to redraw a TR element of a table. So you need to
redraw the whole table, or the TBODY part. 

Martijn











On 4/5/06, Jerry
Smith <
[EMAIL PROTECTED]> wrote:

Here's my test Page:

public class HomePage extends WebPage {
public HomePage() {
List list = new
ArrayList();
for(int i = 0; i < 40; i++) {

list.add(Integer.toString(i));
}

PageableListView lv = new
PageableListView("items", (List)list,
5) {
public
void populateItem(ListItem item) {
item.add
(new Label("item",
item.getModelObject().toString()));
}
};
lv.setOutputMarkupId(true);
WebMarkupContainer wmc = new
WebMarkupContainer("wmc");
 wmc.setOutputMarkupId(true);
wmc.add(lv);
add(wmc);
add(new
AjaxPagingNavigator("nav", lv));
}
}

This template DOES NOT work as expected:






1 2 3 4 5

 


test








Output with 3 selected:

<< <   1   2   3  
4   5   6   7   8   >
>> 
10 11 12 13 14
0
1
2
3
4

This on DOES work as expected:






1 2 3 4 5 




test 







Output with 3 selected:

<< <   1   2   3  
4   5   6   7   8   >
>> 
10
11
12
13
14


What's going on here do you think?


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language 
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user















-- 
Wicket 1.2 is coming! Write Ajax applications without touching
_javascript_! 
-- http://wicketframework.org






 










[Wicket-user] cdapp-example download

2006-04-05 Thread Alexander Lohse

Hi,

I believe I am very stupid. I could not find any download for the  
cdapp example ...


Can anyone tell where to find the sources?

Thank you,

Alex




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Validations and the TabbedPanel

2006-04-05 Thread jw



but what if Ajax is not an option because the 
back-button is expected to work inbetween tab-navigation (an Ajax page looses 
history!)
?
 

  - Original Message - 
  From: 
  Igor 
  Vaynberg 
  Newsgroups: 
  gmane.comp.java.wicket.user
  Sent: Monday, April 03, 2006 7:19 
PM
  Subject: Re: Validations and the 
  TabbedPanel
  tabbedpanel isnt really meant to be used to cover up form 
  components, so you are right, what you need is a tabbedpanel that uses dhtml 
  instead of a server roundtrip.-Igor
  On 4/3/06, Bennett, 
  Timothy (JIS - Applications) <[EMAIL PROTECTED]> 
  wrote:
  

Wicketeers,
 
I'm using the TabbedPanel component in a 
Wicket 1.1.1 application.  Works great in a read-only view mode of my 
data, but using the TabbedPanel to present a create/edit form for my data is 
proving to be a bit problematic.  One big issue I'm having is that the 
validators of my form components are only firing for the components that are 
part of the "currently selected" tab panel.  The reason is because the 
TabbedPanel only renders the content of the selected tab, instead of doing 
some show/hide magic with all the tabbed panels.
 
Markup for my page looks basically 
like:
 
   
   [tabbed panel will be 
here]
 
As you can see, the TabbedPanel is 
inside a single form.  I need validations to fire on all the 
component in all the tab panels, not just the rendered panel.  My plan 
is to extend/modify/evolve the TabbedPanel component to (something like a 
TabbedFormPanel component) that effectively employs some show/hide 
magic so that all the panels are available in the form for 
validation.
 
Does this sound like the right approach, 
or am I missing something that would be simpler but accomplish the same 
thing...
 
Thanks in 
advance,

Timothy


Re: [Wicket-user] cdapp-example download

2006-04-05 Thread Eelco Hillenius
Hi,

It's part of wicket-contrib-examples, which you can find in the
repository of wicket-stuff
(https://svn.sourceforge.net/svnroot/wicket-stuff). *someday* we will
have a proper, recent release of that :).

Eelco


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WicketAjaxIndicatorAppender

2006-04-05 Thread Steve Knight
Okay, now that my indicator is working, I need to add a _javascript_ confirmation box to appear before my form is submitted.With a regular button I just used getOnClickScript(), but I don't see how to do it with AjaxSubmitButton.  Is there someway I can add my _javascript_ call before the ajax form submission?
SteveOn 4/5/06, Steve Knight <[EMAIL PROTECTED]> wrote:
I created a quickstart project to demonstrate the problem.  Then I decided to bump the quickstart up to beta 3 and the problem went away.  So, I guess I'll have to upgrade.Thanks Igor.
Steve
On 4/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

hrm. ok. can you make me a quickstart project that reproduces the problem? and then i will try it against trunk and tell  you if its been fixed or not.

-IgorOn 4/4/06, 
Steve Knight <[EMAIL PROTECTED]> wrote:


Not easily.  I am using Databinder which I think is tied to beta2.Steve
On 4/4/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:can you try against trunk or beta3?



-IgorOn 4/4/06, 
Steve Knight <[EMAIL PROTECTED]> wrote:
I am trying to make an AjaxSubmitButton that uses WicketAjaxIndicatorAppender to display a busy indicator, but it's not quite working.  I used the IndicatingAjaxLink as a guideline, and everything seems to work except that the indicator does not disappear after the Ajax call is completed. 
Here is my IndicatingAjaxSubmitButton class:abstract class IndicatingAjaxSubmitButton extends AjaxSubmitButton implements IAjaxIndicatorAware {private final WicketAjaxIndicatorAppender indicatorAppender = new WicketAjaxIndicatorAppender(); 
public IndicatingAjaxSubmitButton(String id, Form form) {super(id, form);add(indicatorAppender);}public String getAjaxIndicatorMarkupId() {return  indicatorAppender.getMarkupId





();}}Here is the relevant bit of html that gets generated:Am I missing something?Steve  












[Wicket-user] Is it possible to give wicket URLs an extension?

2006-04-05 Thread Andrew Berman
I was wondering if there is a way in 1.2 to map Wicket's urls to an extension instead of to a directory.  For example, is it possible to do http://localhost/HomePage.htm instead of the usual 
http://localhost/wicket/HomePage?Thanks,Andrew


Re: [Wicket-user] WicketAjaxIndicatorAppender

2006-04-05 Thread Eelco Hillenius
This might not be exactly what you want, but you can do any header
contribution using wicket.behavior.HeaderContributor. To make this a
little bit easier/ more specific for arbitrairy string contributions,
beta 3 has now wicket.behavior.StringHeaderContributor and a neat way
to do javascript contributions is using
wicket.extensions.util.resource.JavaScriptTemplate. That header
contributions (ie a javascript function) can then be called in your
onclick script.

Eelco

On 4/5/06, Steve Knight <[EMAIL PROTECTED]> wrote:
> Okay, now that my indicator is working, I need to add a javascript
> confirmation box to appear before my form is submitted.
>
> With a regular button I just used getOnClickScript(), but I don't see how to
> do it with AjaxSubmitButton.  Is there someway I can add my javascript call
> before the ajax form submission?
>
> Steve
>
>
>
> On 4/5/06, Steve Knight <[EMAIL PROTECTED]> wrote:
> >
> > I created a quickstart project to demonstrate the problem.  Then I decided
> to bump the quickstart up to beta 3 and the problem went away.  So, I guess
> I'll have to upgrade.
> >
> > Thanks Igor.
> >
> >
> > Steve
> >
> >
> > On 4/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > >
> > > hrm. ok. can you make me a quickstart project that reproduces the
> problem? and then i will try it against trunk and tell  you if its been
> fixed or not.
> > >
> > >
> > > -Igor
> > >
> > >
> > >
> > > On 4/4/06, Steve Knight <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Not easily.  I am using Databinder which I think is tied to beta2.
> > > >
> > > >
> > > > Steve
> > > >
> > > >
> > > >
> > > > On 4/4/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:
> > > > >
> > > > > can you try against trunk or beta3?
> > > > >
> > > > >
> > > > > -Igor
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On 4/4/06, Steve Knight <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > I am trying to make an AjaxSubmitButton that uses
> WicketAjaxIndicatorAppender to display a busy indicator, but it's not quite
> working.  I used the IndicatingAjaxLink as a guideline, and everything seems
> to work except that the indicator does not disappear after the Ajax call is
> completed.
> > > > > >
> > > > > > Here is my IndicatingAjaxSubmitButton class:
> > > > > >
> > > > > > abstract class IndicatingAjaxSubmitButton extends AjaxSubmitButton
> implements IAjaxIndicatorAware {
> > > > > > private final WicketAjaxIndicatorAppender indicatorAppender =
> new WicketAjaxIndicatorAppender();
> > > > > >
> > > > > > public IndicatingAjaxSubmitButton(String id,
> Form form) {
> > > > > > super(id, form);
> > > > > > add(indicatorAppender);
> > > > > > }
> > > > > >
> > > > > > public String getAjaxIndicatorMarkupId() {
> > > > > > return  indicatorAppender.getMarkupId ();
> > > > > > }
> > > > > > }
> > > > > >
> > > > > > Here is the relevant bit of html that gets generated:
> > > > > >
> > > > > >  wicket:id="ajax-submit-button"
> onclick="wicketShow('ajax-submit-button--ajax-indicator');var
> wicketAjaxCallMade=wicketSubmitFormById('selectForm',
> '/smarttag2/app?wicket:interface=:0:ajax-submit-button:-1:IUnversionedBehaviorListener&wicket:behaviorId=0'
> , function() {
> wicketHide('ajax-submit-button--ajax-indicator');});;
> return true;" id="ajax-submit-button"/> class="wicket-ajax-indicator"
> id="ajax-submit-button--ajax-indicator"> src="/smarttag2/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/indicator.gif"/>
> > > > > >
> > > > > > Am I missing something?
> > > > > >
> > > > > >
> > > > > > Steve
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Iterating a for loop and rendering the results

2006-04-05 Thread Geertjan Wielenga



Thanks. This helps. Must I do anything special to move to the next value 
in the list? Currently, I'm rendering the correct number of values, but 
in each case only the first value. So, if my list consists of "a", "b", 
"c", what is being rendered is "a", "a", "a" (which is the correct 
number -- 3 -- but in each case only the first value). Here's the 
relevant snippet:



List allsuggestions = ((Words)allwrongwords.get(i)).getSuggestions();

for (int k = 0; k < allsuggestions.size(); k++) {

   final String onesuggestion = (String)allsuggestions.get(k);

   listItem.add(new ListView("innerTable2", allsuggestions) {
   protected void populateItem(ListItem listItem) {
   MultiLineLabel listItemLabel = new 
MultiLineLabel("one_suggestion", onesuggestion);

   listItem.add(listItemLabel);
   }
   });

}


-- Geertjan



Johan Compagner wrote:

you have to use another listview inside a listitem
Because that is what you seem to do.

so something like




and then the current listItem must add another ListView instance 
(called innertable)


johan


On 4/5/06, *Geertjan Wielenga* <[EMAIL PROTECTED] 
> wrote:



Hi all,

Part of my code goes like this:

for (int k = 0; k < allsuggestions.size();
k++) {
String onesuggestion =
(String)allsuggestions.get(k);
listItem.add(new
MultiLineLabel("one_suggestion", onesuggestion));
}

So, how do I render a new listitem for each iteration of this for
loop?

Currently only the first item in the iteration is rendered.

Geertjan


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user






---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Validations and the TabbedPanel

2006-04-05 Thread Igor Vaynberg
dhtml != ajaxwhat i meant is you can have all parts of the form sent to the client, but certain parts of it hidden via style="display:none;" and ajvascript that toggles between those parts like a tabbed panel.
-IgorOn 4/5/06, jw <[EMAIL PROTECTED]> wrote:







but what if Ajax is not an option because the 
back-button is expected to work inbetween tab-navigation (an Ajax page looses 
history!)
?
 

  - Original Message - 
  
From: 
  Igor 
  Vaynberg 
  Newsgroups: 
  gmane.comp.java.wicket.user
  Sent: Monday, April 03, 2006 7:19 
PM
  Subject: Re: Validations and the 
  TabbedPanel
  tabbedpanel isnt really meant to be used to cover up form 
  components, so you are right, what you need is a tabbedpanel that uses dhtml 
  instead of a server roundtrip.-Igor
  On 4/3/06, Bennett, 
  Timothy (JIS - Applications) <[EMAIL PROTECTED]> 
  wrote:
  

Wicketeers,
 
I'm using the TabbedPanel component in a 
Wicket 1.1.1 application.  Works great in a read-only view mode of my 
data, but using the TabbedPanel to present a create/edit form for my data is 
proving to be a bit problematic.  One big issue I'm having is that the 
validators of my form components are only firing for the components that are 
part of the "currently selected" tab panel.  The reason is because the 
TabbedPanel only renders the content of the selected tab, instead of doing 
some show/hide magic with all the tabbed panels.
 
Markup for my page looks basically 
like:
 
      
   [tabbed panel will be 
here]
 
As you can see, the TabbedPanel is 
inside a single form.  I need validations to fire on all the 
component in all the tab panels, not just the rendered panel.  My plan 
is to extend/modify/evolve the TabbedPanel component to (something like a 
TabbedFormPanel component) that effectively employs some show/hide 
magic so that all the panels are available in the form for 
validation.
 
Does this sound like the right approach, 
or am I missing something that would be simpler but accomplish the same 
thing...
 
Thanks in 
advance,

Timothy




Re: [Wicket-user] Iterating a for loop and rendering the results

2006-04-05 Thread Johan Compagner
you look at it wrongSee it just as 2 independen lists..the outer listview must have the rows you want to have And the second listview must have the words you want in columns (youre suggestions)this: "for (int k = 0; k < 
allsuggestions.size(); k++) {" shouldn't be in the code anywhere. That is something the listview should do for you.johanOn 4/5/06, Geertjan Wielenga
 <[EMAIL PROTECTED]> wrote:
Thanks. This helps. Must I do anything special to move to the next valuein the list? Currently, I'm rendering the correct number of values, butin each case only the first value. So, if my list consists of "a", "b",
"c", what is being rendered is "a", "a", "a" (which is the correctnumber -- 3 -- but in each case only the first value). Here's therelevant snippet:List allsuggestions = ((Words)allwrongwords.get(i)).getSuggestions();
for (int k = 0; k < allsuggestions.size(); k++) {final String >listItem.add(new ListView("innerTable2", allsuggestions) {protected void populateItem(ListItem listItem) {
MultiLineLabel listItemLabel = newMultiLineLabel("one_suggestion", onesuggestion);listItem.add(listItemLabel);}});}-- Geertjan
Johan Compagner wrote:> you have to use another listview inside a listitem> Because that is what you seem to do.>> so something like> > 
> >> and then the current listItem must add another ListView instance> (called innertable)>> johan>>> On 4/5/06, *Geertjan Wielenga* <
[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote:>>> Hi all,>> Part of my code goes like this:
>> for (int k = 0; k < allsuggestions.size();> k++) {> String >> (String)allsuggestions.get(k);> 
listItem.add(new> MultiLineLabel("one_suggestion", onesuggestion));> }>> So, how do I render a new listitem for each iteration of this for> loop?
>> Currently only the first item in the iteration is rendered.>> Geertjan>>> ---> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language> that extends applications into web and mobile media. Attend the> live webcast> and join the prime developer group breaking into this new coding> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> <
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>> ___> Wicket-user mailing list> 
Wicket-user@lists.sourceforge.net> Wicket-user@lists.sourceforge.net>> 
https://lists.sourceforge.net/lists/listinfo/wicket-user>>---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Is it possible to give wicket URLs an extension?

2006-04-05 Thread Igor Vaynberg
did you try doing mountBookmarkablePage("/HomePage.htm", HomePage.class) ?-IgorOn 4/5/06, Andrew Berman <
[EMAIL PROTECTED]> wrote:I was wondering if there is a way in 
1.2 to map Wicket's urls to an extension instead of to a directory.  For example, is it possible to do http://localhost/HomePage.htm
 instead of the usual 
http://localhost/wicket/HomePage?Thanks,
Andrew




Re: [Wicket-user] WicketAjaxIndicatorAppender

2006-04-05 Thread Igor Vaynberg
you can add an IAjaxCallDecorator to the ajax behavior inside your submit button and prepend that little bit of _javascript_.-IgorOn 4/5/06, Steve Knight
 <[EMAIL PROTECTED]> wrote:
Okay, now that my indicator is working, I need to add a _javascript_ confirmation box to appear before my form is submitted.With a regular button I just used getOnClickScript(), but I don't see how to do it with AjaxSubmitButton.  Is there someway I can add my _javascript_ call before the ajax form submission?
SteveOn 4/5/06, 
Steve Knight <[EMAIL PROTECTED]> wrote:

I created a quickstart project to demonstrate the problem.  Then I decided to bump the quickstart up to beta 3 and the problem went away.  So, I guess I'll have to upgrade.Thanks Igor.
Steve
On 4/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


hrm. ok. can you make me a quickstart project that reproduces the problem? and then i will try it against trunk and tell  you if its been fixed or not.


-IgorOn 4/4/06, 
Steve Knight <[EMAIL PROTECTED]> wrote:



Not easily.  I am using Databinder which I think is tied to beta2.Steve
On 4/4/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:can you try against trunk or beta3?




-IgorOn 4/4/06, 
Steve Knight <[EMAIL PROTECTED]> wrote:
I am trying to make an AjaxSubmitButton that uses WicketAjaxIndicatorAppender to display a busy indicator, but it's not quite working.  I used the IndicatingAjaxLink as a guideline, and everything seems to work except that the indicator does not disappear after the Ajax call is completed. 
Here is my IndicatingAjaxSubmitButton class:abstract class IndicatingAjaxSubmitButton extends AjaxSubmitButton implements IAjaxIndicatorAware {private final WicketAjaxIndicatorAppender indicatorAppender = new WicketAjaxIndicatorAppender(); 
public IndicatingAjaxSubmitButton(String id, Form form) {super(id, form);add(indicatorAppender);}public String getAjaxIndicatorMarkupId() {return  indicatorAppender.getMarkupId






();}}Here is the relevant bit of html that gets generated:Am I missing something?Steve  














Re: [Wicket-user] Weird problem with AJAX and crypted url...

2006-04-05 Thread Ramnivas Laddad




Done...

http://sourceforge.net/tracker/index.php?func=detail&aid=1465359&group_id=119783&atid=684975

-Ramnivas

Igor Vaynberg wrote:
please file a bug so this doesnt slip through the cracks.
  
-Igor
  
  
  On 4/4/06, Ramnivas
Laddad <[EMAIL PROTECTED]
  > wrote:
  Just
a bit more information: I switched non-crypted  request and
response. With that change, application works just fine.


-Ramnivas

Ramnivas Laddad wrote:
> I have a tree with each node containing an AjaxLink. Clicking on
> certain links works correctly, but others fail with a 500 error.
>
> I am using WebRequestWithCryptedUrl, creating by my application as

> follows:
>protected WebRequest newWebRequest(HttpServletRequest
> servletRequest) {
>return new WebRequestWithCryptedUrl(servletRequest);
>}
>
> While trying to debug the problem, I see that for the failed
links, a

> BadPaddingException (with message "Given final block not properly
> padded") is thrown when AbstractCrypt.decryptStringToByteArray()
calls
> the crypt() method. This in turn throws a WicketRuntimeException

> leading to a 500 error.
>
> I am using just the default crypt factory and this is with
1.2-beta3.
>
> Any ideas what could be the problem.
>
> -Ramnivas
>
>
>

> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the
live

> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
https://lists.sourceforge.net/lists/listinfo/wicket-user
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast

and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Is it possible to give wicket URLs an extension?

2006-04-05 Thread Andrew Berman
But that wouldn't work for all Wicket urls.  The problem I have is that I have one war file with multiple applications.  Right now, I'm having problems mapping urls to each of those webapps.  One app uses .htm (Spring MVC) and the other is a Wicket app which is mapped based on url folder.  So, I want to be able to map 
http://foo.com to the Spring one via the .htm extension and http://bar.com to the Wicket app via some other extension instead of a folder.  Currently, I'm playing around with mod_proxy and mod_rewrite in Apache and forwarding the requests to Tomcat.
Anyone have any thoughts on how to do this?On 4/5/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
did you try doing mountBookmarkablePage("/HomePage.htm", 
HomePage.class) ?-IgorOn 4/5/06, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:I was wondering if there is a way in 
1.2 to map Wicket's urls to an extension instead of to a directory.  For example, is it possible to do http://localhost/HomePage.htm
 instead of the usual 
http://localhost/wicket/HomePage?Thanks,
Andrew






[Wicket-user] no en_US in dateformats.properties ?

2006-04-05 Thread Nathan Hamblen
DatePicker isn't setting a correct date string for me in beta3. It's
doing 2006/04/05, which the date converter won't understand. I stepped
into the code and saw that it's trying to find 'en_US' in a hashtable
built from dateformats.properties, which only has 'en' and 'en_ZA'
(where's that?).

I don't see anything in the code that would fall back to 'en' when it
can't find 'en_US'. So it goes with the default in the calendar
javascript, with the year first. Is my locale.toString() somehow wrong?
How is this supposed to work?

Sorry if this has been discussed before; there's a bunch of date/picker
stuff in the archives but I can't find this particular problem.

Nathan



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] no en_US in dateformats.properties ?

2006-04-05 Thread Eelco Hillenius
Hi,

On 4/5/06, Nathan Hamblen <[EMAIL PROTECTED]> wrote:
> DatePicker isn't setting a correct date string for me in beta3. It's
> doing 2006/04/05, which the date converter won't understand. I stepped
> into the code and saw that it's trying to find 'en_US' in a hashtable
> built from dateformats.properties, which only has 'en' and 'en_ZA'
> (where's that?).

en_ZA is english/ South Africa

> I don't see anything in the code that would fall back to 'en' when it
> can't find 'en_US'. So it goes with the default in the calendar
> javascript, with the year first. Is my locale.toString() somehow wrong?
> How is this supposed to work?

It should fall back on en. If it doesn't it's a bug. Could you please
file an issue?

 Thanks,

Eelco


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Is it possible to give wicket URLs an extension?

2006-04-05 Thread Igor Vaynberg
well, you have total control over how urls are generated, but its not trivial to implementwhat you want to do is to create your own IRequestTargetUrlCodingStrategy and IRequestTargetResolverStrategy. plug them into the WebRequestCycle and you can make any kind of urls you want.
-IgorOn 4/5/06, Andrew Berman <[EMAIL PROTECTED]> wrote:
But that wouldn't work for all Wicket urls.  The problem I have is that I have one war file with multiple applications.  Right now, I'm having problems mapping urls to each of those webapps.  One app uses .htm (Spring MVC) and the other is a Wicket app which is mapped based on url folder.  So, I want to be able to map 
http://foo.com to the Spring one via the .htm extension and 
http://bar.com to the Wicket app via some other extension instead of a folder.  Currently, I'm playing around with mod_proxy and mod_rewrite in Apache and forwarding the requests to Tomcat.
Anyone have any thoughts on how to do this?On 4/5/06, Igor Vaynberg
 <[EMAIL PROTECTED]> wrote:
did you try doing mountBookmarkablePage("/HomePage.htm", 
HomePage.class) ?-IgorOn 4/5/06, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:I was wondering if there is a way in 
1.2 to map Wicket's urls to an extension instead of to a directory.  For example, is it possible to do http://localhost/HomePage.htm
 instead of the usual 
http://localhost/wicket/HomePage?Thanks,
Andrew