Re: [Wicket-user] Whats Wickets way of searching all resource files

2006-12-04 Thread Jesper Preuss
Now I have testet it again.

The layout on the Page.html:
Page
Form id=formId
wicket:message 
key=theform.messagedata[testdata]/wicket:message
div wicket:id=theform.resourcedata /

Checking order using:
Using -- wicket:message key=theform.messagedata[testdata]/wicket:message
or
Using -- new ResourceModel(theform.resourcedata, defaultValue)
where we use defaultValue it will output defaultValue instead 
of [testdata]
Looking for theform.messagedata it will use this order of checking:
1. Page.properties, theform.messagedata
2. Page.properties, formId.theform.messagedata (tries to add id = formId )
3. Form.properties, theform.messagedata
4. Application.properties, theform.messagedata
5. Application.properties, formId.theform.messagedata
6. does not find anything and will not change the [testdata] or
defaultValue if using defaultValue in ResourceModel

Checking order using: div wicket:id=theform.resourcedata /
Using -- new StringResourceModel(theform.resourcedata, form, null)
Looking for theform.resourcedata it will use this order of checking:
1. Page.properties, theform.resourcedata
2. Page.properties, formId.theform.resourcedata (tries to add id = formId )
3. Form.properties, theform.resourcedata
4. Application.properties, theform.resourcedata
5. Application.properties, formId.theform.messagedata
6. Will throw an exception -- java.util.MissingResourceException:
Unable to find resource: theform.resourcedata for component: loginForm

Checking order using: div wicket:id=theform.resourcedata /
Using -- new ResourceModel(theform.resourcedata)
Looking for theform.resourcedata
1. Page.properties, theform.resourcedata
2. Page.properties, formId.theform.resourcedata (tries to add id = formId )
3. Form.properties, theform.resourcedata
4. Application.properties, theform.resourcedata
6. Will throw an exception -- java.util.MissingResourceException:
Unable to find resource: theform.resourcedata for component: loginForm

I have testet with a locale or with only default locale. This is very
advanced, there is many things to lookout for. I have found out it
will fir search for Page_locale.properties and then if it's not found
look for Page.properties.

But what I'm asking for is, if Wicket is looking for user.version
and it finds the file Page_locale.properties. And the user.version
is not in this file it will never look in Page.properties for the
property. I would think it should.

Why does it ignore Page.properties if the property is not in
Page_locale.properties ? It will try to use Page.properties only if it
does not find Page_locale.properties ?

On 12/4/06, Erik van Oosten [EMAIL PROTECTED] wrote:
 Interesting. Can you see what happens if the *_en.properties file is not
 there?
 Perhaps we need to change the text on the wiki, or else we should file
 an issue in Jira.

 Regards,
  Erik.


 Jesper Preuss schreef:
  I have a question about what Wicket should traverse properties files
  and what it does.
 
  Take a look in 
  http://cwiki.apache.org/WICKET/i18n-and-resource-boundles.html
  here it says Wicket will look in properties files according to this:
  1. MyPanel_locale.properties
  2. then MyPanel.properties
  3. MyPage_locale.properties
  4. then MyPage.properties
  5. MyApplication_locale.properties
  6. then MyApplication.properties
 
  According to my tests (with en english locale) it will only traverse
  the properties with locale english. Not the default locale.
 
  Have I misunderstood anything?
 
 
 

 --
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Whats Wickets way of searching all resource files

2006-12-04 Thread Jesper Preuss
I have made a bug report http://issues.apache.org/jira/browse/WICKET-137

If any have an idea where to look to fix this, I would like to try.

On 12/4/06, Erik van Oosten [EMAIL PROTECTED] wrote:
 Hi Jesper,

 I agree and also think this is not correct. You can create a JIRA issue
 here: http://issues.apache.org/jira/browse/WICKET
 Its more likely to get fixed quickly if you have a patch.

 Please add a link to the issue on the wiki page.

 Regards,
  Erik.

 Jesper Preuss schreef:
  Now I have testet it again.
 
  The layout on the Page.html:
  Page
Form id=formId
wicket:message 
  key=theform.messagedata[testdata]/wicket:message
div wicket:id=theform.resourcedata /
 
  Checking order using:
  Using -- wicket:message 
  key=theform.messagedata[testdata]/wicket:message
  or
  Using -- new ResourceModel(theform.resourcedata, defaultValue)
where we use defaultValue it will output defaultValue 
  instead of [testdata]
  Looking for theform.messagedata it will use this order of checking:
  1. Page.properties, theform.messagedata
  2. Page.properties, formId.theform.messagedata (tries to add id = formId )
  3. Form.properties, theform.messagedata
  4. Application.properties, theform.messagedata
  5. Application.properties, formId.theform.messagedata
  6. does not find anything and will not change the [testdata] or
  defaultValue if using defaultValue in ResourceModel
 
  Checking order using: div wicket:id=theform.resourcedata /
  Using -- new StringResourceModel(theform.resourcedata, form, null)
  Looking for theform.resourcedata it will use this order of checking:
  1. Page.properties, theform.resourcedata
  2. Page.properties, formId.theform.resourcedata (tries to add id = formId )
  3. Form.properties, theform.resourcedata
  4. Application.properties, theform.resourcedata
  5. Application.properties, formId.theform.messagedata
  6. Will throw an exception -- java.util.MissingResourceException:
  Unable to find resource: theform.resourcedata for component: loginForm
 
  Checking order using: div wicket:id=theform.resourcedata /
  Using -- new ResourceModel(theform.resourcedata)
  Looking for theform.resourcedata
  1. Page.properties, theform.resourcedata
  2. Page.properties, formId.theform.resourcedata (tries to add id = formId )
  3. Form.properties, theform.resourcedata
  4. Application.properties, theform.resourcedata
  6. Will throw an exception -- java.util.MissingResourceException:
  Unable to find resource: theform.resourcedata for component: loginForm
 
  I have testet with a locale or with only default locale. This is very
  advanced, there is many things to lookout for. I have found out it
  will fir search for Page_locale.properties and then if it's not found
  look for Page.properties.
 
  But what I'm asking for is, if Wicket is looking for user.version
  and it finds the file Page_locale.properties. And the user.version
  is not in this file it will never look in Page.properties for the
  property. I would think it should.
 
  Why does it ignore Page.properties if the property is not in
  Page_locale.properties ? It will try to use Page.properties only if it
  does not find Page_locale.properties ?
 
  On 12/4/06, Erik van Oosten [EMAIL PROTECTED] wrote:
 
  Interesting. Can you see what happens if the *_en.properties file is not
  there?
  Perhaps we need to change the text on the wiki, or else we should file
  an issue in Jira.
 
  Regards,
   Erik.
 
 
  Jesper Preuss schreef:
 
  I have a question about what Wicket should traverse properties files
  and what it does.
 
  Take a look in 
  http://cwiki.apache.org/WICKET/i18n-and-resource-boundles.html
  here it says Wicket will look in properties files according to this:
  1. MyPanel_locale.properties
  2. then MyPanel.properties
  3. MyPage_locale.properties
  4. then MyPage.properties
  5. MyApplication_locale.properties
  6. then MyApplication.properties
 
  According to my tests (with en english locale) it will only traverse
  the properties with locale english. Not the default locale.
 
  Have I misunderstood anything?
 
 

 --
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http

[Wicket-user] Whats Wickets way of searching all resource files

2006-12-03 Thread Jesper Preuss
I have a question about what Wicket should traverse properties files
and what it does.

Take a look in http://cwiki.apache.org/WICKET/i18n-and-resource-boundles.html
here it says Wicket will look in properties files according to this:
1. MyPanel_locale.properties
2. then MyPanel.properties
3. MyPage_locale.properties
4. then MyPage.properties
5. MyApplication_locale.properties
6. then MyApplication.properties

According to my tests (with en english locale) it will only traverse
the properties with locale english. Not the default locale.

Have I misunderstood anything?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] About links

2006-03-31 Thread Jesper Preuss
I would like to know if there is a reason why the class
wicket.markup.html.link.Link is not a parent to ExternalLink?

Because Link is extends by all these AjaxFallbackLink,
BookmarkablePageLink, DummyHomePage.TestLink, PageLink,
PagingNavigationIncrementLink, PagingNavigationLink, PopupCloseLink,
ResourceLink.

Is there a specific reason, or is it something you not have thougt of.


---
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=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] About links

2006-03-31 Thread Jesper Preuss
I would just think it was easier to understand that all types of links
did inherit or implement some class.

Because I'm makeing a dynamic menu, where you can put your own links.
Here I have to do more because it's not all using extends Link.

On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 Because ExternalLink does not point to a Wicket resource or listener.
 It points to some wicket external address (e.g. google, ebay, amazon)
 and hence doesn't need all the features/functionalities (and the
 overhead) of Link and it derivatives.

 Juergen

 On 3/31/06, Jesper Preuss [EMAIL PROTECTED] wrote:
  I would like to know if there is a reason why the class
  wicket.markup.html.link.Link is not a parent to ExternalLink?
 
  Because Link is extends by all these AjaxFallbackLink,
  BookmarkablePageLink, DummyHomePage.TestLink, PageLink,
  PagingNavigationIncrementLink, PagingNavigationLink, PopupCloseLink,
  ResourceLink.
 
  Is there a specific reason, or is it something you not have thougt of.
 
 
  ---
  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?cmdlnkkid0944bid$1720dat1642
  ___
  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?cmdlnkkid0944bid$1720dat1642
 ___
 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=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] About links

2006-03-31 Thread Jesper Preuss
I'm thinking that if you make a superclass of Link. Link AbstractLink
extends Link.

Then BookmarkablePageLink could inherit from AbstractLink. Because
BookmarkablePageLink is not using onClick() and it's in Link class.

This is refactoring stuff, It's not because I would like to change all
of how it's going on.

Sorry I'm just coming with my view, and it's because I'm trying to
understand Wicket and why something is made a certain way.


On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 Because ExternalLink does not point to a Wicket resource or listener.
 It points to some wicket external address (e.g. google, ebay, amazon)
 and hence doesn't need all the features/functionalities (and the
 overhead) of Link and it derivatives.

 Juergen

 On 3/31/06, Jesper Preuss [EMAIL PROTECTED] wrote:
  I would like to know if there is a reason why the class
  wicket.markup.html.link.Link is not a parent to ExternalLink?
 
  Because Link is extends by all these AjaxFallbackLink,
  BookmarkablePageLink, DummyHomePage.TestLink, PageLink,
  PagingNavigationIncrementLink, PagingNavigationLink, PopupCloseLink,
  ResourceLink.
 
  Is there a specific reason, or is it something you not have thougt of.
 
 
  ---
  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?cmdlnkkid0944bid$1720dat1642
  ___
  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?cmdlnkkid0944bid$1720dat1642
 ___
 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=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] About links

2006-03-31 Thread Jesper Preuss
On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 Do you? What exactly are the differences.

You talk about it being bloatware if ExternalLink extends from Link.
And BookmarkablePageLinkis extinding the method onClick() but this
method is /not used/ then this BookmarkablePageLink is also bloatware.
Then I just say that if you make an AbstractLink where all the links
have something similar.


 On 3/31/06, Jesper Preuss [EMAIL PROTECTED] wrote:
  I would just think it was easier to understand that all types of links
  did inherit or implement some class.
 
  Because I'm makeing a dynamic menu, where you can put your own links.
  Here I have to do more because it's not all using extends Link.
 
  On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
   Because ExternalLink does not point to a Wicket resource or listener.
   It points to some wicket external address (e.g. google, ebay, amazon)
   and hence doesn't need all the features/functionalities (and the
   overhead) of Link and it derivatives.
  
   Juergen
  
   On 3/31/06, Jesper Preuss [EMAIL PROTECTED] wrote:
I would like to know if there is a reason why the class
wicket.markup.html.link.Link is not a parent to ExternalLink?
   
Because Link is extends by all these AjaxFallbackLink,
BookmarkablePageLink, DummyHomePage.TestLink, PageLink,
PagingNavigationIncrementLink, PagingNavigationLink, PopupCloseLink,
ResourceLink.
   
Is there a specific reason, or is it something you not have thougt of.
   
   
---
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?cmdlnkkid0944bid$1720dat1642
___
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?cmdlnkkid0944bid$1720dat1642
   ___
   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?cmdlnkkid0944bid$1720dat1642
  ___
  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?cmdlnkkid0944bid$1720dat1642
 ___
 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=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] About links

2006-03-31 Thread Jesper Preuss
It's just easier and more understandable to use:

Link myLink;
myLink = new ExternalLink(xxx);
code
myLink = new BookmarkablePageLink(xx);

than
WebMarkupContainer myLink = new ExternalLink(xxx);
code
myLink = new BookmarkablePageLink(xx);

On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 Do you? What exactly are the differences.

 On 3/31/06, Jesper Preuss [EMAIL PROTECTED] wrote:
  I would just think it was easier to understand that all types of links
  did inherit or implement some class.
 
  Because I'm makeing a dynamic menu, where you can put your own links.
  Here I have to do more because it's not all using extends Link.
 
  On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
   Because ExternalLink does not point to a Wicket resource or listener.
   It points to some wicket external address (e.g. google, ebay, amazon)
   and hence doesn't need all the features/functionalities (and the
   overhead) of Link and it derivatives.
  
   Juergen
  
   On 3/31/06, Jesper Preuss [EMAIL PROTECTED] wrote:
I would like to know if there is a reason why the class
wicket.markup.html.link.Link is not a parent to ExternalLink?
   
Because Link is extends by all these AjaxFallbackLink,
BookmarkablePageLink, DummyHomePage.TestLink, PageLink,
PagingNavigationIncrementLink, PagingNavigationLink, PopupCloseLink,
ResourceLink.
   
Is there a specific reason, or is it something you not have thougt of.
   
   
---
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?cmdlnkkid0944bid$1720dat1642
___
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?cmdlnkkid0944bid$1720dat1642
   ___
   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?cmdlnkkid0944bid$1720dat1642
  ___
  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?cmdlnkkid0944bid$1720dat1642
 ___
 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=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] About links

2006-03-31 Thread Jesper Preuss
Ok I have attached some examples. Meaby you could tell me a better way
of using the Link and ExternalLink.

It's not because you can't live without the inheritance hierarchy, but
I have thought of the following cons of all links extends Links.
1. It's easier for the IDE to auto suggest what kind of Link you wan't.
when you write Link link = new the you can get the editor to suggest
what kind of link you wan't
2. It easier to find in the Javadoc API. You can find all the Direct
Known Subclasses in the API.
3. ExternalLink would have the methods from Link. Like
link.setPopupSettings(), because it would be nice to have popup of
external links with easy.
4. Like Generics in Java 5, it's more logical to understand.
It's easier to understand that /all/ links all is a class Link.
5. Faster for beginners to understand the language if it is easier to
understand.
I myself had trouble to understand how I could have an external link.
And have also seen it with other beginners. We have either used the
IDE auto suggest or looked in the APIs Direct Known Subclasses
first. I know you would say that you should look in the
wicket.markup.html.link package. But this still don't contain all the
links.

Ohh this turned out much bigger stand I imagined.


On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 Sorry, might questionwas referring to
 Because I'm makeing a dynamic menu, where you can put your own links.
 Here I have to do more because it's not all using extends Link.

 On 3/31/06, Jesper Preuss [EMAIL PROTECTED] wrote:
  On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
   Do you? What exactly are the differences.
 
  You talk about it being bloatware if ExternalLink extends from Link.
  And BookmarkablePageLinkis extinding the method onClick() but this
  method is /not used/ then this BookmarkablePageLink is also bloatware.
  Then I just say that if you make an AbstractLink where all the links
  have something similar.
 
  
   On 3/31/06, Jesper Preuss [EMAIL PROTECTED] wrote:
I would just think it was easier to understand that all types of links
did inherit or implement some class.
   
Because I'm makeing a dynamic menu, where you can put your own links.
Here I have to do more because it's not all using extends Link.
   
On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 Because ExternalLink does not point to a Wicket resource or listener.
 It points to some wicket external address (e.g. google, ebay, amazon)
 and hence doesn't need all the features/functionalities (and the
 overhead) of Link and it derivatives.

 Juergen

 On 3/31/06, Jesper Preuss [EMAIL PROTECTED] wrote:
  I would like to know if there is a reason why the class
  wicket.markup.html.link.Link is not a parent to ExternalLink?
 
  Because Link is extends by all these AjaxFallbackLink,
  BookmarkablePageLink, DummyHomePage.TestLink, PageLink,
  PagingNavigationIncrementLink, PagingNavigationLink, PopupCloseLink,
  ResourceLink.
 
  Is there a specific reason, or is it something you not have thougt 
  of.
 
 
  ---
  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?cmdlnkkid0944bid$1720dat1642
  ___
  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?cmdlnkkid0944bid$1720dat1642
 ___
 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?cmdlnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
   ---
   This SF.Net email is sponsored

Re: [Wicket-user] About links

2006-03-31 Thread Jesper Preuss
Thanks for listening,

It's not because I wanted you to change it now, or change it at all.
But more to understand you and why you have made this decision in
Wicket.

Will do, I will make an RFE for it.

On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 Would you please create an RFE for it. Though it'll most likely be 1.3
 (not 1.2) where it gets implements. 1.2 is now in beta (and close to
 RC) and we try hard not to make (breaking) API change during this
 phases..

 Juergen

 On 3/31/06, Jesper Preuss [EMAIL PROTECTED] wrote:
  Ok I have attached some examples. Meaby you could tell me a better way
  of using the Link and ExternalLink.
 
  It's not because you can't live without the inheritance hierarchy, but
  I have thought of the following cons of all links extends Links.
  1. It's easier for the IDE to auto suggest what kind of Link you wan't.
  when you write Link link = new the you can get the editor to suggest
  what kind of link you wan't
  2. It easier to find in the Javadoc API. You can find all the Direct
  Known Subclasses in the API.
  3. ExternalLink would have the methods from Link. Like
  link.setPopupSettings(), because it would be nice to have popup of
  external links with easy.
  4. Like Generics in Java 5, it's more logical to understand.
  It's easier to understand that /all/ links all is a class Link.
  5. Faster for beginners to understand the language if it is easier to
  understand.
  I myself had trouble to understand how I could have an external link.
  And have also seen it with other beginners. We have either used the
  IDE auto suggest or looked in the APIs Direct Known Subclasses
  first. I know you would say that you should look in the
  wicket.markup.html.link package. But this still don't contain all the
  links.
 
  Ohh this turned out much bigger stand I imagined.
 
 
  On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
   Sorry, might questionwas referring to
   Because I'm makeing a dynamic menu, where you can put your own links.
   Here I have to do more because it's not all using extends Link.
  
   On 3/31/06, Jesper Preuss [EMAIL PROTECTED] wrote:
On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 Do you? What exactly are the differences.
   
You talk about it being bloatware if ExternalLink extends from Link.
And BookmarkablePageLinkis extinding the method onClick() but this
method is /not used/ then this BookmarkablePageLink is also bloatware.
Then I just say that if you make an AbstractLink where all the links
have something similar.
   

 On 3/31/06, Jesper Preuss [EMAIL PROTECTED] wrote:
  I would just think it was easier to understand that all types of 
  links
  did inherit or implement some class.
 
  Because I'm makeing a dynamic menu, where you can put your own 
  links.
  Here I have to do more because it's not all using extends Link.
 
  On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
   Because ExternalLink does not point to a Wicket resource or 
   listener.
   It points to some wicket external address (e.g. google, ebay, 
   amazon)
   and hence doesn't need all the features/functionalities (and the
   overhead) of Link and it derivatives.
  
   Juergen
  
   On 3/31/06, Jesper Preuss [EMAIL PROTECTED] wrote:
I would like to know if there is a reason why the class
wicket.markup.html.link.Link is not a parent to ExternalLink?
   
Because Link is extends by all these AjaxFallbackLink,
BookmarkablePageLink, DummyHomePage.TestLink, PageLink,
PagingNavigationIncrementLink, PagingNavigationLink, 
PopupCloseLink,
ResourceLink.
   
Is there a specific reason, or is it something you not have 
thougt of.
   
   
---
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?cmdlnkkid0944bid$1720dat1642
___
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?cmdlnkkid0944bid$1720dat1642
   ___
   Wicket-user mailing list
   Wicket

[Wicket-user] About SpringContextLocator

2006-03-10 Thread Jesper Preuss
Hi,

I wanted to understand wicket and hibernate3. So while looking at the
project wicket-contrib-examples-hibernate3, I found
SpringContextLocator.

But I'm not able to find SpringContextLocator. The referance to
wicket.contrib.spring.old.SpringContextLocator is located in
wicket.examples.cdapp2.CdRequestCycle.

Do any know where the SpringContextLocator comes from?. The closest I
have come to this is wicket.spring.ISpringContextLocator.

Thanks in advance.


---
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=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: About SpringContextLocator

2006-03-10 Thread Jesper Preuss
I have found out that SpringContextLocator should be in the project
wicket-contrib-spring.

But I can't get it from CVS, don't know if it's because is SF having
trouble with CVS or because it's not in there anymore.?

On 3/10/06, Jesper Preuss [EMAIL PROTECTED] wrote:
 Hi,

 I wanted to understand wicket and hibernate3. So while looking at the
 project wicket-contrib-examples-hibernate3, I found
 SpringContextLocator.

 But I'm not able to find SpringContextLocator. The referance to
 wicket.contrib.spring.old.SpringContextLocator is located in
 wicket.examples.cdapp2.CdRequestCycle.

 Do any know where the SpringContextLocator comes from?. The closest I
 have come to this is wicket.spring.ISpringContextLocator.

 Thanks in advance.



---
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=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Multiple PageParameters

2006-03-04 Thread Jesper Preuss
I would like to know how to get multiple values from PageParameters,
with the same key.

I have used
mountBookmarkablePage(/phonesearch, SearchPhonePage.class);
to make a nice url.

I have this url:
http://localhost/mywicketapp/app/phonesearch/phone/45/phone/45


I would like to get two (or more) phonenumbers in my SearchPhonePage,
but I only get the last one.
How do you do like in the old days where you could get the phone
values as an array:
?phone=45phone=45

and use this in jsp:
String phones [] = request.getParameterValues(phone);


---
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=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multiple PageParameters

2006-03-04 Thread Jesper Preuss
Thanks I will try it.

On 3/4/06, Johan Compagner [EMAIL PROTECTED] wrote:
 I made some changes so that the PageParameters can hold now String[] for a
 parameter that holds more then one value.

 current apps shouldn't notice any difference but you can now do

 String[] array = parameters.getStringArray (param2);

 See the nice url Page5.java example

 johan



 On 3/4/06, Jesper Preuss [EMAIL PROTECTED]  wrote:
 
 I would like to know how to get multiple values from PageParameters,
  with the same key.

 I have used
 mountBookmarkablePage(/phonesearch,
 SearchPhonePage.class);
 to make a nice url.

 I have this url:
 http://localhost/mywicketapp/app/phonesearch/phone/45/phone/45


 I would like to get two (or more) phonenumbers in my SearchPhonePage,
 but I only get the last one.
 How do you do like in the old days where you could get the phone
 values as an array:
 ?phone=45phone=45

 and use this in jsp:
 String phones [] = request.getParameterValues(phone);


 ---
 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?cmdlnkkid0944bid$1720dat1642
 ___
 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=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multiple PageParameters

2006-03-04 Thread Jesper Preuss
It would be nice to see what is in the PageParameters including the
arrays. So if you could replace the toString() in ValueMap.java with
this:
/**
 * Gets a string representation of this object
 *
 * @return String representation of map consistent with tag attribute 
style
 * of markup elements, for example: a=x b=y c=z
 */
public String toString()
{
final StringBuffer buffer = new StringBuffer();
for (final Iterator iterator = entrySet().iterator(); 
iterator.hasNext();)
{
Map.Entry entry = (Map.Entry)iterator.next();
buffer.append(entry.getKey());
Object value = entry.getValue();
if(value.getClass().isArray())
{
buffer.append( = \);
buffer.append(value == null ? null : 
Arrays.asList((String
[])value).toString());
buffer.append(\);
} else
{
buffer.append( = 
\).append(entry.getValue()).append(\);
}

if (iterator.hasNext())
{
buffer.append(' ');
}
}
return buffer.toString();
}



On 3/4/06, Johan Compagner [EMAIL PROTECTED] wrote:
 I made some changes so that the PageParameters can hold now String[] for a
 parameter that holds more then one value.

 current apps shouldn't notice any difference but you can now do

 String[] array = parameters.getStringArray (param2);

 See the nice url Page5.java example

 johan



 On 3/4/06, Jesper Preuss [EMAIL PROTECTED]  wrote:
 
 I would like to know how to get multiple values from PageParameters,
  with the same key.

 I have used
 mountBookmarkablePage(/phonesearch,
 SearchPhonePage.class);
 to make a nice url.

 I have this url:
 http://localhost/mywicketapp/app/phonesearch/phone/45/phone/45


 I would like to get two (or more) phonenumbers in my SearchPhonePage,
 but I only get the last one.
 How do you do like in the old days where you could get the phone
 values as an array:
 ?phone=45phone=45

 and use this in jsp:
 String phones [] = request.getParameterValues(phone);


 ---
 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?cmdlnkkid0944bid$1720dat1642
 ___
 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=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multiple PageParameters

2006-03-04 Thread Jesper Preuss
I have an convience method for ValueMap you also may insert.
It's an add method where you can add more parameterValues for one key.:

/**
 * Associates the specified value with the specified key in this map
 * (optional operation).  If the map previously contained a mapping for
 * this key, the old value and the new value is inserted into an array.
 *
 * @param key
 *  The key for the mapping
 * @return previous value associated with specified key, or 
ttnull/tt
 * if there was no mapping for key.  A ttnull/tt return 
can
 * also indicate that the map previously associated 
ttnull/tt
 * with the specified key, if the implementation supports
 * ttnull/tt values.
 */
public final String getString(final String key)
{
final Object o = get(key);
if (o == null)
{
return null;
}
else if(o.getClass().isArray()  Array.getLength(o)  0)
{
// if it is an array just get the first value
final Object arrayValue = Array.get(o, 0);
if(arrayValue == null)
{
return null;
}
else
{
return arrayValue.toString();
}

}
else
{
return o.toString();
}
}

On 3/4/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Done, though with some slight improvements:

 public String toString()
 {
 final StringBuffer buffer = new StringBuffer();
 for (final Iterator iterator = entrySet().iterator(); 
 iterator.hasNext();)
 {
 final Map.Entry entry = (Map.Entry)iterator.next();
 buffer.append(entry.getKey());
 buffer.append( = \);
 final Object value = entry.getValue();
 if (value == null)
 {
 buffer.append(null);
 }
 else if (value.getClass().isArray())
 {
 buffer.append(Arrays.asList((Object[])value));
 }
 else
 {
 buffer.append(value);
 }

 buffer.append(\);
 if (iterator.hasNext())
 {
 buffer.append(' ');
 }
 }
 return buffer.toString();
 }

 Eelco

 On 3/4/06, Jesper Preuss [EMAIL PROTECTED] wrote:
  It would be nice to see what is in the PageParameters including the
  arrays. So if you could replace the toString() in ValueMap.java with
  this:
  /**
   * Gets a string representation of this object
   *
   * @return String representation of map consistent with tag 
  attribute style
   * of markup elements, for example: a=x b=y c=z
   */
  public String toString()
  {
  final StringBuffer buffer = new StringBuffer();
  for (final Iterator iterator = entrySet().iterator(); 
  iterator.hasNext();)
  {
  Map.Entry entry = (Map.Entry)iterator.next();
  buffer.append(entry.getKey());
  Object value = entry.getValue();
  if(value.getClass().isArray())
  {
  buffer.append( = \);
  buffer.append(value == null ? null : 
  Arrays.asList((String
  [])value).toString());
  buffer.append(\);
  } else
  {
  buffer.append( = 
  \).append(entry.getValue()).append(\);
  }
 
  if (iterator.hasNext())
  {
  buffer.append(' ');
  }
  }
  return buffer.toString();
  }
 
 
 
  On 3/4/06, Johan Compagner [EMAIL PROTECTED] wrote:
   I made some changes so that the PageParameters can hold now String[] for a
   parameter that holds more then one value.
  
   current apps shouldn't notice any difference but you can now do
  
   String[] array = parameters.getStringArray (param2);
  
   See the nice url Page5.java

Re: [Wicket-user] Multiple PageParameters

2006-03-04 Thread Jesper Preuss
Sorry wrong function, I hope you can use it. I like it :-).
I have an convience method for ValueMap you also may insert.
It's an add method where you can add more parameterValues for one key.:

public final Object add(final String key, final String value)
{
final Object o = get(key);
if (o == null)
{
return put(key, new String[] {value});
}
else if(o.getClass().isArray()  Array.getLength(o)  0)
{
String destArray [] = new String[Array.getLength(o)+1];
System.arraycopy(o, 0, destArray, 0, 
Array.getLength(o));

destArray[destArray.length-1] = value;

return put(key, destArray);
}
else
{
return put(key, new String[] {o.toString(), value});
}
}


On 3/4/06, Jesper Preuss [EMAIL PROTECTED] wrote:
 I have an convience method for ValueMap you also may insert.
 It's an add method where you can add more parameterValues for one key.:

 /**
  * Associates the specified value with the specified key in this map
  * (optional operation).  If the map previously contained a mapping 
 for
  * this key, the old value and the new value is inserted into an 
 array.
  *
  * @param key
  *  The key for the mapping
  * @return previous value associated with specified key, or 
 ttnull/tt
  * if there was no mapping for key.  A ttnull/tt 
 return can
  * also indicate that the map previously associated 
 ttnull/tt
  * with the specified key, if the implementation supports
  * ttnull/tt values.
  */
 public final String getString(final String key)
 {
 final Object o = get(key);
 if (o == null)
 {
 return null;
 }
 else if(o.getClass().isArray()  Array.getLength(o)  0)
 {
 // if it is an array just get the first value
 final Object arrayValue = Array.get(o, 0);
 if(arrayValue == null)
 {
 return null;
 }
 else
 {
 return arrayValue.toString();
 }

 }
 else
 {
 return o.toString();
 }
 }

 On 3/4/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  Done, though with some slight improvements:
 
  public String toString()
  {
  final StringBuffer buffer = new StringBuffer();
  for (final Iterator iterator = entrySet().iterator(); 
  iterator.hasNext();)
  {
  final Map.Entry entry = (Map.Entry)iterator.next();
  buffer.append(entry.getKey());
  buffer.append( = \);
  final Object value = entry.getValue();
  if (value == null)
  {
  buffer.append(null);
  }
  else if (value.getClass().isArray())
  {
  
  buffer.append(Arrays.asList((Object[])value));
  }
  else
  {
  buffer.append(value);
  }
 
  buffer.append(\);
  if (iterator.hasNext())
  {
  buffer.append(' ');
  }
  }
  return buffer.toString();
  }
 
  Eelco
 
  On 3/4/06, Jesper Preuss [EMAIL PROTECTED] wrote:
   It would be nice to see what is in the PageParameters including the
   arrays. So if you could replace the toString() in ValueMap.java with
   this:
   /**
* Gets a string representation of this object
*
* @return String representation of map consistent with tag 
   attribute style
* of markup elements, for example: a=x b=y c=z
*/
   public String toString()
   {
   final StringBuffer buffer = new StringBuffer();
   for (final Iterator iterator = entrySet().iterator(); 
   iterator.hasNext();)
   {
   Map.Entry entry = (Map.Entry)iterator.next();
   buffer.append(entry.getKey

Re: Results so far (was Re: [Wicket-user] VOTE)

2006-02-21 Thread Jesper Preuss
It's not about not wanting to go for Java 1.5. But more a I can't or
my company can't. I have no choice here.

On 2/21/06, Christian Hvid [EMAIL PROTECTED] wrote:
 I am one for a move to Java 5 as fast as possible.

  From my perspective Wicket is a young framework and if we are
 adventurously enough to choose Wicket, we are adventurously enough to
 be on Java 5.

 On 21 Feb 2006, at 00:27, Al Maw wrote:

  Alexandru Popescu wrote:
  I know that this might be early considering the lenght of the thread,
  but what is the voting result? :-).
 
  So far I count:
40 votes for both at once (constructor and JDK5)
17 votes for split releases (16 plus me, I'm voting now. :-) )
 
  Al
 
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through
  log files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD
  SPLUNK!
  http://sel.as-us.falkag.net/sel?
  cmd=lnkkid=103432bid=230486dat=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: Splunk Inc. Do you grep through log files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] VOTE

2006-02-17 Thread Jesper Preuss
Vote for 2.

On 2/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Hi all,

 This is a non-binding (the developers ultimately decide) call votes
 concerning whether we should fold the upcomming constructor changes
 with our move to Java 5 or not. See for a discussion of those changes
 other threads, please use this thread for voting only.

 1. Give me the constructor change and the Java 5 functionality in one
 pass (Wicket 2.0)
 2. Do the constructor change in a seperate release (Wicket 1.3) and
 put Java 5 in the next (Wicket 2.0)
 3. I don't want either one and I want to stay on Wicket 1.2.

 This last option has no real effect except that you explicitly say
 that you prefer a long lasting support on 1.2 over new features.

 Also, take into consideration that the less versions we have to
 maintain seperately, the quicker we probably can implement them.

 Your votes please?

 Btw, it is still our plan to be up-to-date with Wicket In Action.

 Eelco


 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Post 1.2 roadmap

2006-02-15 Thread Jesper Preuss
I know I'm not an wicket expert. But would it help to change the
constructors in wicket to factory methods?

On 2/15/06, Johan Compagner [EMAIL PROTECTED] wrote:
 How is this method any different with our current Component.setParent(),
 called in Component.add()
 Then we still don't have the parent (==page) already available in the
 constructor.

 And what does that last part (flexibility lost) have to do with adding a
 parent in the constructor
 You just have to pass that thing through nothing more.

 johan


 On 2/15/06, Gili [EMAIL PROTECTED]  wrote:
 
  Instead of introducing extra arguments to the constructor, why not
  simply move all this logic into a new method?
 
  That is, introduce Component.bind(Component parent). We'd benefit
 from
  the fact that Wicket components could become JavaBeans and method-based
  binding is more flexible than constructor-based binding.
 
  From past experience, whenever classes require arguments in their
  constructors there is always some flexibility lost. For example, you
  absolutely cannot invoke any code before super() if you subclass such a
  class so if the value of one of the arguments needs to be calculated or
  modified in any way prior to the super() call you're out of luck.
 
  Gili
 
  Timo Stamm wrote:
   Johan Compagner schrieb:
   that would be very hard to maintain.
   For example if you have a panel that is rewritten by using only the new
   parent in constructor params.
   And you add that in youre own webpage/panel that doesn't use that
   parent in
   constructor param.
   Then you get all kind of errors because the child panel expect to have
 it
   all but because of the hierarchy problem
   that we have then, he doesn't have it.
  
   So i do think it is all or nothing.
  
   I see, thanks for the explanation.
  
   -1 for constructor change.
  
  
  
   On 2/14/06, Timo Stamm  [EMAIL PROTECTED] wrote:
   Martijn Dashorst schrieb:
- constructor refactor
   Wow, that's a /major/ change and will probably effect every custom
   component and every application written using Wicket.
  
   I see the benefit of having a complete component hierarchy availably
   right at the initialization of a class.
  
   But wouldn't it suffice to just make the new constructors available,
 and
   put a clear statement in the API docs? Then maybe deprecate the public
   add() in the next major version, and drop it in 2.0 or something like
   that?
  
  
   This opens up a lot of better markup parsing strategies for
 the
   core.
   Just get rid of markup, it sucks anyway ;)
  
  
- java 5 support
   +1
  
  
  
  
  
  
  
 ---
   This SF.net email is sponsored by: Splunk Inc. Do you grep through log
   files
   for problems?  Stop!  Download the new AJAX search engine that makes
   searching your log files as easy as surfing the  web.  DOWNLOAD
 SPLUNK!
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=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: Splunk Inc. Do you grep through log
   files
   for problems?  Stop!  Download the new AJAX search engine that makes
   searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
  --
  http://www.desktopbeautifier.com/
 
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Post 1.2 roadmap

2006-02-14 Thread Jesper Preuss
We are starting a Wicket project, we use JDK 1.4 because our old
software can't run on 1.5.

It's a problem, to move to 1.5, but we will eventually do it. But will
take a few years.

So I vote for waiting with Java 1.5 until Wicket version 3.0.

On 2/14/06, wang lei [EMAIL PROTECTED] wrote:
 Here is my opinions:

  - should the post 1.2 version of Wicket involve both changes?
 Absolutely not.
 I support the constructor change ,because it force the programmer to do in a
 right way.
 I don't want wicket support JDK1.5 soon.
 I know generics can bring many benefits.But there is a long time before most
 of us move to JDK1.5.
 Some projects from my clients are stilling run on JDK1.4 even JDK1.3.One
 year ,at least, is necessary for waiting.
 My clients would just move to  JDK1.4 easily,because they need to pay a lot
 of money and not sure the old software can move to the new JDK easily.

  - should we make different releases for either change, and thus
 postponing 1.5 to   Wicket 3?
 No, one version is enough. Wicket2 or wicket3 are not important.
 I think if you move to JDK1.5 too soon.You will lose many users.It's not
 good for wicket.
 Wicket still has a long way to go.


 - how many of you s till require for current or future projects to run on
 JDK 1.4?
 In fact,this question is suitable.Most time,the clients choose the
 platform,instead of us.
 Many clients are running different jdk, I can't predict. But for you,i would
 prefer JDK1.4.

  - how many would object to having a retroweaver build of a JDK 5 Wicket,
 which   enables you to run 1.5 code on a 1.4 JRE?
 I never try to do that.

  
 无限容量雅虎相册,原图等大下载,超快速度,赶快抢注!




Re: [Wicket-user] Localize label for the ComponentFeedbackPanel

2006-02-09 Thread Jesper Preuss
I have a LoginForm used in a LoginPanel in a HomePage

When I put the label in HomePage.properties it works.
loginPanel.loginform.username=username in homepage

But i wanted to put it in LoginPanel.properties or LoginForm.properties?
I can't get it to work when putting the label in LoginPanel.properties.


On 2/8/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 maybe this can help

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


 -Igor


  On 2/8/06, karthik Guru [EMAIL PROTECTED] wrote:
  May be you can try something like this ..
 
  username.addLabel(new StringResourceModel(label.username, this, null));
 
  In page.properties
 
  label.username=languageSpecificUsername
  RequiredValidator=Field '${label}' is required -- should translate to
 
  'Field languageSpecificUsername is required'
 
  -karthik
 
  On 2/8/06, Jesper Preuss [EMAIL PROTECTED] wrote:
   Hi,
  
   I would like to localize the error output from the
 ComponentFeedbackPanel.
  
   My form checks for required inputs, and then it prints the error. But
   I would like to translate the label it uses, because I write my code
   in english, but the username and password should be translated.
  
   This will come out with the following text Field 'username' is
   required and Field 'password' is required.
  
   But what I would like to do is change the username in the
   usernameError and passwordError.
   I would like it to output the following text Field
   'languageSpecificUsername' is required and Field
   'languageSpecificPassword' is required.
  
   Don't know if I have to add something to the ComponentFeedbackPanel,
   so it translates the username to languageSpecificUsername?.
  
  
   The form class:
   public class PersonForm extends Form
   {
   public PersonForm(String id, PersonBean person)
   {
   super(id, new CompoundPropertyModel(person));
   this.person = person;
   TextField username = new TextField(username);
   username.add(RequiredValidator.getInstance());
   add(username);
   ComponentFeedbackPanel usernameFeedback = new
   ComponentFeedbackPanel(usernameError, username);
   add(usernameFeedback);
  
   TextField password = new TextField(password);
   password.add(RequiredValidator.getInstance());
   add(password);
   ComponentFeedbackPanel passwordFeedback = new
   ComponentFeedbackPanel(passwordError, password);
   add(passwordFeedback);
   }
   }
  
   The property file:
   RequiredValidator=Field '${label}' is required
  
  
   ---
   This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files
   for problems?  Stop!  Download the new AJAX search engine that makes
   searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
  
 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Localize label for the ComponentFeedbackPanel

2006-02-08 Thread Jesper Preuss
Hi,

I would like to localize the error output from the ComponentFeedbackPanel.

My form checks for required inputs, and then it prints the error. But
I would like to translate the label it uses, because I write my code
in english, but the username and password should be translated.

This will come out with the following text Field 'username' is
required and Field 'password' is required.

But what I would like to do is change the username in the
usernameError and passwordError.
I would like it to output the following text Field
'languageSpecificUsername' is required and Field
'languageSpecificPassword' is required.

Don't know if I have to add something to the ComponentFeedbackPanel,
so it translates the username to languageSpecificUsername?.


The form class:
public class PersonForm extends Form
{
public PersonForm(String id, PersonBean person)
{
super(id, new CompoundPropertyModel(person));
this.person = person;
TextField username = new TextField(username);
username.add(RequiredValidator.getInstance());
add(username);
ComponentFeedbackPanel usernameFeedback = new
ComponentFeedbackPanel(usernameError, username);
add(usernameFeedback);

TextField password = new TextField(password);
password.add(RequiredValidator.getInstance());
add(password);
ComponentFeedbackPanel passwordFeedback = new
ComponentFeedbackPanel(passwordError, password);
add(passwordFeedback);
}
}

The property file:
RequiredValidator=Field '${label}' is required


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Localize label for the ComponentFeedbackPanel

2006-02-08 Thread Jesper Preuss
Perfect thanks karthik it was just what I needed to know.

On 2/8/06, karthik Guru [EMAIL PROTECTED] wrote:
 May be you can try something like this ..

 username.addLabel(new StringResourceModel(label.username, this, null));

 In page.properties

 label.username=languageSpecificUsername
 RequiredValidator=Field '${label}' is required -- should translate to

 'Field languageSpecificUsername is required'

 -karthik

 On 2/8/06, Jesper Preuss [EMAIL PROTECTED] wrote:
  Hi,
 
  I would like to localize the error output from the ComponentFeedbackPanel.
 
  My form checks for required inputs, and then it prints the error. But
  I would like to translate the label it uses, because I write my code
  in english, but the username and password should be translated.
 
  This will come out with the following text Field 'username' is
  required and Field 'password' is required.
 
  But what I would like to do is change the username in the
  usernameError and passwordError.
  I would like it to output the following text Field
  'languageSpecificUsername' is required and Field
  'languageSpecificPassword' is required.
 
  Don't know if I have to add something to the ComponentFeedbackPanel,
  so it translates the username to languageSpecificUsername?.
 
 
  The form class:
  public class PersonForm extends Form
  {
  public PersonForm(String id, PersonBean person)
  {
  super(id, new CompoundPropertyModel(person));
  this.person = person;
  TextField username = new TextField(username);
  username.add(RequiredValidator.getInstance());
  add(username);
  ComponentFeedbackPanel usernameFeedback = new
  ComponentFeedbackPanel(usernameError, username);
  add(usernameFeedback);
 
  TextField password = new TextField(password);
  password.add(RequiredValidator.getInstance());
  add(password);
  ComponentFeedbackPanel passwordFeedback = new
  ComponentFeedbackPanel(passwordError, password);
  add(passwordFeedback);
  }
  }
 
  The property file:
  RequiredValidator=Field '${label}' is required
 
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
  http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Choose location of validation messages

2006-01-21 Thread Jesper Preuss
I have now upgraded to Wicket HEAD, to use ComponentFeedbackPanel. It
took some time.

But when I use it, it comes with the following exception:
Caused by: java.io.NotSerializableException:
wicket.feedback.ComponentFeedbackMessageFilter

But as I can see, ComponentFeedbackMessageFilter is Serializable.

On 1/20/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 see ComponentFeedbackPanel in HEAD.

 its a feedback panel that filters messages for a certain component.

 so you do:
 TextField tf=new TextField(name);
 add(tf);
 add(new ComponentFeedbackPanel(nameError, tf));
 add(nf);

 and the same markup as in your example.

 -Igor



 On 1/20/06, Jesper Preuss [EMAIL PROTECTED]  wrote:
  Don't follow you complete, but:
 
  I have 3 files:
  - FormValidatePage.properties :
  RequiredValidator=Field '${label}' is required
 
  - FormValidatePage.java
  public class FormValidatePage extends WebPage {
  ...
  public FormValidatePage() {
  Person p = new Person(Corey, 3);
 
  final FeedbackPanel feedback = new
 FeedbackPanel(feedback);
  add(feedback);
 
  PersonForm personForm = new PersonForm(person, p);
  add(personForm);
  }
  ...
  }
 
  - FormValidatePage.html:
  html xmlns:wicket=http://wicket.sourceforge.net/; xml:lang=en
 lang=en
  head
  title/title
  /head
 
  body
  form wicket:id=person action=[This will be replaced]
  Person name: input type=text
 wicket:id=name/br/
  Person strength: input type=text
 wicket:id=strength/br/
 
  input type=submit/
  /form
  div id=
  span wicket:id=feedback/
  /div
  br/
  /body
  /html
 
  I would like to have:
  - FormValidatePage.html:
  ...
  form wicket:id=person action=[This will be replaced]
  Person name: input type=text
 wicket:id=name/br/
  span wicket:id=nameError/span
  Person strength: input type=text
 wicket:id=strength/br/
  span
 wicket:id=strengthError/span
  input type=submit/
  /form
  ...
 
  On 1/20/06, Johan Compagner  [EMAIL PROTECTED] wrote:
   messages are get through the localizer see:
   getApplication().getResourceSettings().getLocalizer()
  
   Where do you want to put youre validation messages?
   Not in resource bundles (propertie files) in the same dir as youre page
 or
   application object?
  
   johan
  
  
  
   On 1/20/06, Jesper Preuss  [EMAIL PROTECTED] wrote:
   
Hi,
   
I would like to be able to choose the location of my validation error
   messages.
   
I have med a Form where a TextField needs to be validated. And have
added this to the java final FeedbackPanel feedback = new
FeedbackPanel(feedback);
add(feedback);
and have added this span wicket:id=feedback/ to the html page.
   
But I need to choose the location for all error validation messages of
the TextField's in my form.
   
What do I need to do?
   
   
   
 ---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
   files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD
 SPLUNK!
   
  
 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Choose location of validation messages

2006-01-21 Thread Jesper Preuss
Here are the stack trace. It's in the attached app.htm

I have also included my FormValidate.java and FormValidate.html for
help if it's wrong.

J- Preuss

On 1/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 can you attach the entire stacktrace please.

 -Igor



 On 1/21/06, Jesper Preuss [EMAIL PROTECTED] wrote:
  I have now upgraded to Wicket HEAD, to use ComponentFeedbackPanel. It
  took some time.
 
  But when I use it, it comes with the following exception:
  Caused by: java.io.NotSerializableException:
  wicket.feedback.ComponentFeedbackMessageFilter
 
  But as I can see, ComponentFeedbackMessageFilter is Serializable.
 
  On 1/20/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   see ComponentFeedbackPanel in HEAD.
  
   its a feedback panel that filters messages for a certain component.
  
   so you do:
   TextField tf=new TextField(name);
   add(tf);
   add(new ComponentFeedbackPanel(nameError, tf));
   add(nf);
  
   and the same markup as in your example.
  
   -Igor
  
  
  
   On 1/20/06, Jesper Preuss [EMAIL PROTECTED]  wrote:
Don't follow you complete, but:
   
I have 3 files:
- FormValidatePage.properties :
RequiredValidator=Field '${label}' is required
   
- FormValidatePage.java
public class FormValidatePage extends WebPage {
...
public FormValidatePage() {
Person p = new Person(Corey, 3);
   
final FeedbackPanel feedback = new
   FeedbackPanel(feedback);
add(feedback);
   
PersonForm personForm = new PersonForm(person, p);
add(personForm);
}
...
}
   
- FormValidatePage.html:
html xmlns:wicket=http://wicket.sourceforge.net/; xml:lang=en
   lang=en
head
title/title
/head
   
body
form wicket:id=person action=[This will be
 replaced]
Person name: input type=text
   wicket:id=name/br/
Person strength: input type=text
   wicket:id=strength/br/
   
input type=submit/
/form
div id=
span wicket:id=feedback/
/div
br/
/body
/html
   
I would like to have:
- FormValidatePage.html:
...
form wicket:id=person action=[This will be
 replaced]
Person name: input type=text
   wicket:id=name/br/
span wicket:id=nameError/span
Person strength: input type=text
   wicket:id=strength/br/
span
   wicket:id=strengthError/span
input type=submit/
/form
...
   
On 1/20/06, Johan Compagner  [EMAIL PROTECTED] wrote:
 messages are get through the localizer see:

 getApplication().getResourceSettings().getLocalizer()

 Where do you want to put youre validation messages?
 Not in resource bundles (propertie files) in the same dir as youre
 page
   or
 application object?

 johan



 On 1/20/06, Jesper Preuss  [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I would like to be able to choose the location of my validation
 error
 messages.
 
  I have med a Form where a TextField needs to be validated. And
 have
  added this to the java final FeedbackPanel feedback = new
  FeedbackPanel(feedback);
  add(feedback);
  and have added this span wicket:id=feedback/ to the html page.
 
  But I need to choose the location for all error validation
 messages of
  the TextField's in my form.
 
  What do I need to do?
 
 
 
   ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through
 log
 files
  for problems?  Stop!  Download the new AJAX search engine that
 makes
  searching your log files as easy as surfing the  web.  DOWNLOAD
   SPLUNK!
 

  
 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 


   
   
   
 ---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
   files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD
 SPLUNK!
   
  
 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user

Re: [Wicket-user] Choose location of validation messages

2006-01-21 Thread Jesper Preuss
I occurs when I go to the page with the form. It never opens normally,
only the error.

I have the newest Wicket from the HEAD from yesterday. I can't connect
to CVS, so don't if the newest works.

On 1/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 this is very strange.
  ComponentFeedbackMessageFilter implements IFeedbackMessageFilter which
 extends Serializable, so the message filter is serializable itself.

  i tried serializing the filter using our Objects.clone method and it
 worked. i also dropped your page into an app and tried it, and everything
 seemed to work fine.

  when does this error happen?


  -Igor


 On 1/21/06, Jesper Preuss [EMAIL PROTECTED] wrote:
  Here are the stack trace. It's in the attached app.htm
 
  I have also included my FormValidate.java and FormValidate.html for
  help if it's wrong.
 
  J- Preuss
 
  On 1/21/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   can you attach the entire stacktrace please.
  
   -Igor
  
  
  
   On 1/21/06, Jesper Preuss [EMAIL PROTECTED]  wrote:
I have now upgraded to Wicket HEAD, to use ComponentFeedbackPanel. It
took some time.
   
But when I use it, it comes with the following exception:
Caused by: java.io.NotSerializableException:
wicket.feedback.ComponentFeedbackMessageFilter
   
But as I can see, ComponentFeedbackMessageFilter is Serializable.
   
On 1/20/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 see ComponentFeedbackPanel in HEAD.

 its a feedback panel that filters messages for a certain component.

 so you do:
 TextField tf=new TextField(name);
 add(tf);
 add(new ComponentFeedbackPanel(nameError, tf));
 add(nf);

 and the same markup as in your example.

 -Igor



 On 1/20/06, Jesper Preuss  [EMAIL PROTECTED]  wrote:
  Don't follow you complete, but:
 
  I have 3 files:
  - FormValidatePage.properties :
  RequiredValidator=Field '${label}' is required
 
  - FormValidatePage.java
  public class FormValidatePage extends WebPage {
  ...
  public FormValidatePage() {
  Person p = new Person(Corey, 3);
 
  final FeedbackPanel feedback = new
 FeedbackPanel(feedback);
  add(feedback);
 
  PersonForm personForm = new PersonForm(person,
 p);
  add(personForm);
  }
  ...
  }
 
  - FormValidatePage.html:
  html xmlns:wicket= http://wicket.sourceforge.net/; xml:lang=en
 lang=en
  head
  title/title
  /head
 
  body
  form wicket:id=person action=[This will be
   replaced]
  Person name: input type=text
 wicket:id=name/br/
  Person strength: input type=text
 wicket:id=strength/br/
 
  input type=submit/
  /form
  div id=
  span wicket:id=feedback/
  /div
  br/
  /body
  /html
 
  I would like to have:
  - FormValidatePage.html:
  ...
  form wicket:id=person action=[This will be
   replaced]
  Person name: input type=text
 wicket:id=name/br/
  span wicket:id=nameError/span
  Person strength: input type=text
 wicket:id=strength/br/
  span
 wicket:id=strengthError/span
  input type=submit/
  /form
  ...
 
  On 1/20/06, Johan Compagner  [EMAIL PROTECTED] wrote:
   messages are get through the localizer see:
  
   getApplication().getResourceSettings().getLocalizer()
  
   Where do you want to put youre validation messages?
   Not in resource bundles (propertie files) in the same dir as
 youre
   page
 or
   application object?
  
   johan
  
  
  
   On 1/20/06, Jesper Preuss  [EMAIL PROTECTED] wrote:
   
Hi,
   
I would like to be able to choose the location of my
 validation
   error
   messages.
   
I have med a Form where a TextField needs to be validated. And
   have
added this to the java final FeedbackPanel feedback = new
FeedbackPanel(feedback);
add(feedback);
and have added this span wicket:id=feedback/ to the html
 page.
   
But I need to choose the location for all error validation
   messages of
the TextField's in my form.
   
What do I need to do?
   
   
   

 ---
This SF.net email is sponsored by: Splunk Inc. Do you grep
 through
   log
   files
for problems?  Stop!  Download the new AJAX

Re: [Wicket-user] Choose location of validation messages

2006-01-21 Thread Jesper Preuss
Now I have clean the libs, recompiled Wicket from HEAD, and now it works.

I don't understand why.

Thanks Igor for testing it, and showing me it worked. That made me
think it was on my side the problem was, and it was.

Thankts again.

On 1/21/06, Jesper Preuss [EMAIL PROTECTED] wrote:
 I occurs when I go to the page with the form. It never opens normally,
 only the error.

 I have the newest Wicket from the HEAD from yesterday. I can't connect
 to CVS, so don't if the newest works.

 On 1/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  this is very strange.
   ComponentFeedbackMessageFilter implements IFeedbackMessageFilter which
  extends Serializable, so the message filter is serializable itself.
 
   i tried serializing the filter using our Objects.clone method and it
  worked. i also dropped your page into an app and tried it, and everything
  seemed to work fine.
 
   when does this error happen?
 
 
   -Igor
 
 
  On 1/21/06, Jesper Preuss [EMAIL PROTECTED] wrote:
   Here are the stack trace. It's in the attached app.htm
  
   I have also included my FormValidate.java and FormValidate.html for
   help if it's wrong.
  
   J- Preuss
  
   On 1/21/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
can you attach the entire stacktrace please.
   
-Igor
   
   
   
On 1/21/06, Jesper Preuss [EMAIL PROTECTED]  wrote:
 I have now upgraded to Wicket HEAD, to use ComponentFeedbackPanel. It
 took some time.

 But when I use it, it comes with the following exception:
 Caused by: java.io.NotSerializableException:
 wicket.feedback.ComponentFeedbackMessageFilter

 But as I can see, ComponentFeedbackMessageFilter is Serializable.

 On 1/20/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  see ComponentFeedbackPanel in HEAD.
 
  its a feedback panel that filters messages for a certain component.
 
  so you do:
  TextField tf=new TextField(name);
  add(tf);
  add(new ComponentFeedbackPanel(nameError, tf));
  add(nf);
 
  and the same markup as in your example.
 
  -Igor
 
 
 
  On 1/20/06, Jesper Preuss  [EMAIL PROTECTED]  wrote:
   Don't follow you complete, but:
  
   I have 3 files:
   - FormValidatePage.properties :
   RequiredValidator=Field '${label}' is required
  
   - FormValidatePage.java
   public class FormValidatePage extends WebPage {
   ...
   public FormValidatePage() {
   Person p = new Person(Corey, 3);
  
   final FeedbackPanel feedback = new
  FeedbackPanel(feedback);
   add(feedback);
  
   PersonForm personForm = new PersonForm(person,
  p);
   add(personForm);
   }
   ...
   }
  
   - FormValidatePage.html:
   html xmlns:wicket= http://wicket.sourceforge.net/; xml:lang=en
  lang=en
   head
   title/title
   /head
  
   body
   form wicket:id=person action=[This will be
replaced]
   Person name: input type=text
  wicket:id=name/br/
   Person strength: input type=text
  wicket:id=strength/br/
  
   input type=submit/
   /form
   div id=
   span wicket:id=feedback/
   /div
   br/
   /body
   /html
  
   I would like to have:
   - FormValidatePage.html:
   ...
   form wicket:id=person action=[This will be
replaced]
   Person name: input type=text
  wicket:id=name/br/
   span wicket:id=nameError/span
   Person strength: input type=text
  wicket:id=strength/br/
   span
  wicket:id=strengthError/span
   input type=submit/
   /form
   ...
  
   On 1/20/06, Johan Compagner  [EMAIL PROTECTED] wrote:
messages are get through the localizer see:
   
getApplication().getResourceSettings().getLocalizer()
   
Where do you want to put youre validation messages?
Not in resource bundles (propertie files) in the same dir as
  youre
page
  or
application object?
   
johan
   
   
   
On 1/20/06, Jesper Preuss  [EMAIL PROTECTED] wrote:

 Hi,

 I would like to be able to choose the location of my
  validation
error
messages.

 I have med a Form where a TextField needs to be validated. And
have
 added this to the java final FeedbackPanel feedback = new
 FeedbackPanel(feedback);
 add(feedback);
 and have added

Re: [Wicket-user] Choose location of validation messages

2006-01-21 Thread Jesper Preuss
It's very rare I can connecto to the sf.net CVS. And when I can it
often having problem downloading (using Eclipse).

The last Snapshot of 1.2 you made, you can downloade from sf. net was
from 2006-01-08. this is not new enough.

So when will you release 1.2? or will you release more snapshots?

On 1/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 this is really strange. i can open the page and submit the form without any
 problems.

  what servlet conainer are you using? are you starting the container from
 the debugger or deploying a war?


  -Igor



 On 1/21/06, Jesper Preuss [EMAIL PROTECTED] wrote:
  I occurs when I go to the page with the form. It never opens normally,
  only the error.
 
  I have the newest Wicket from the HEAD from yesterday. I can't connect
  to CVS, so don't if the newest works.
 
  On 1/21/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   this is very strange.
ComponentFeedbackMessageFilter implements
 IFeedbackMessageFilter which
   extends Serializable, so the message filter is serializable itself.
  
i tried serializing the filter using our Objects.clone method and it
   worked. i also dropped your page into an app and tried it, and
 everything
   seemed to work fine.
  
when does this error happen?
  
  
-Igor
  
  
   On 1/21/06, Jesper Preuss [EMAIL PROTECTED] wrote:
Here are the stack trace. It's in the attached app.htm
   
I have also included my FormValidate.java and FormValidate.html for
help if it's wrong.
   
J- Preuss
   
On 1/21/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 can you attach the entire stacktrace please.

 -Igor



 On 1/21/06, Jesper Preuss [EMAIL PROTECTED]  wrote:
  I have now upgraded to Wicket HEAD, to use ComponentFeedbackPanel.
 It
  took some time.
 
  But when I use it, it comes with the following exception:
  Caused by: java.io.NotSerializableException:
  wicket.feedback.ComponentFeedbackMessageFilter
 
  But as I can see, ComponentFeedbackMessageFilter is Serializable.
 
  On 1/20/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   see ComponentFeedbackPanel in HEAD.
  
   its a feedback panel that filters messages for a certain
 component.
  
   so you do:
   TextField tf=new TextField(name);
   add(tf);
   add(new ComponentFeedbackPanel(nameError,
 tf));
   add(nf);
  
   and the same markup as in your example.
  
   -Igor
  
  
  
   On 1/20/06, Jesper Preuss  [EMAIL PROTECTED]  wrote:
Don't follow you complete, but:
   
I have 3 files:
- FormValidatePage.properties :
RequiredValidator=Field '${label}' is required
   
- FormValidatePage.java
public class FormValidatePage extends WebPage {
...
public FormValidatePage() {
Person p = new Person(Corey, 3);
   
final FeedbackPanel feedback = new
   FeedbackPanel(feedback);
add(feedback);
   
PersonForm personForm = new
 PersonForm(person,
   p);
add(personForm);
}
...
}
   
- FormValidatePage.html :
html xmlns:wicket= http://wicket.sourceforge.net/;
 xml:lang=en
   lang=en
head
title/title
/head
   
body
form wicket:id=person action=[This will be
 replaced]
Person name: input type=text
   wicket:id=name/br/
Person strength: input type=text
   wicket:id=strength/br/
   
input type=submit/
/form
div id=
span wicket:id=feedback/
/div
br/
/body
/html
   
I would like to have:
- FormValidatePage.html:
...
form wicket:id=person action=[This will be
 replaced]
Person name: input type=text
   wicket:id=name/br/
span wicket:id=nameError/span
Person strength: input type=text
   wicket:id=strength/br/
span
   wicket:id=strengthError/span
input type=submit/
/form
...
   
On 1/20/06, Johan Compagner  [EMAIL PROTECTED] wrote:
 messages are get through the localizer see:


 getApplication().getResourceSettings().getLocalizer()

 Where do you want to put youre validation messages?
 Not in resource bundles (propertie files) in the same dir as
   youre
 page
   or
 application object?

 johan

[Wicket-user] Choose location of validation messages

2006-01-20 Thread Jesper Preuss
Hi,

I would like to be able to choose the location of my validation error messages.

I have med a Form where a TextField needs to be validated. And have
added this to the java final FeedbackPanel feedback = new
FeedbackPanel(feedback);
add(feedback);
and have added this span wicket:id=feedback/ to the html page.

But I need to choose the location for all error validation messages of
the TextField's in my form.

What do I need to do?


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Choose location of validation messages

2006-01-20 Thread Jesper Preuss
Don't follow you complete, but:

I have 3 files:
- FormValidatePage.properties:
RequiredValidator=Field '${label}' is required

- FormValidatePage.java
public class FormValidatePage extends WebPage {
...
public FormValidatePage() {
Person p = new Person(Corey, 3);

final FeedbackPanel feedback = new FeedbackPanel(feedback);
add(feedback);

PersonForm personForm = new PersonForm(person, p);
add(personForm);
}
...
}

- FormValidatePage.html:
html xmlns:wicket=http://wicket.sourceforge.net/; xml:lang=en lang=en
head
title/title
/head

body
form wicket:id=person action=[This will be replaced]
Person name: input type=text wicket:id=name/br/
Person strength: input type=text 
wicket:id=strength/br/

input type=submit/
/form
div id=
span wicket:id=feedback/
/div
br/
/body
/html

I would like to have:
- FormValidatePage.html:
...
form wicket:id=person action=[This will be replaced]
Person name: input type=text wicket:id=name/br/
span wicket:id=nameError/span
Person strength: input type=text 
wicket:id=strength/br/
span wicket:id=strengthError/span
input type=submit/
/form
...

On 1/20/06, Johan Compagner [EMAIL PROTECTED] wrote:
 messages are get through the localizer see:
 getApplication().getResourceSettings().getLocalizer()

 Where do you want to put youre validation messages?
 Not in resource bundles (propertie files) in the same dir as youre page or
 application object?

 johan



 On 1/20/06, Jesper Preuss [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I would like to be able to choose the location of my validation error
 messages.
 
  I have med a Form where a TextField needs to be validated. And have
  added this to the java final FeedbackPanel feedback = new
  FeedbackPanel(feedback);
  add(feedback);
  and have added this span wicket:id=feedback/ to the html page.
 
  But I need to choose the location for all error validation messages of
  the TextField's in my form.
 
  What do I need to do?
 
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How to separate java and html

2006-01-02 Thread Jesper Preuss
Hi,

I would like to be able to separate the java code and the html layout.

So I choose where the html lies for each html page. This is because I
would be able to let a html designer make the html and a programmer to
make the code.

Is this possible or not?

Preuss


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user