Re: [Wicket-user] PageLink called request two times

2006-03-03 Thread Johan Compagner
is it the same request when that happens?For example also set a breakpoint in WicketServlet.doGet()is that called again before the second onbeginrequest?Because then it looks like that the redirect to buffer doesn't work quite right 
if a redirect is done then (don't know because you do things with bookmarkable urls)johanOn 3/3/06, R.A 
[EMAIL PROTECTED] wrote:Hi Johan,I set a breakpoint, the thread of onBeginRequest was runnning two times.
I use WebSphere Studio and WebSphere Test Environment.In trial I deployed Wicket Examples on Tomcat, onBeginRequest is called justone time.This problem is thought that WebSphere is cause.I'll check this out.
Thanks a lot!R.A--View this message in context: http://www.nabble.com/PageLink-called-request-two-times-t1205926.html#a3214470
Sent from the Wicket - User forum at Nabble.com.---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=lnkkid=110944bid=241720dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] submitting wicket examples

2006-03-03 Thread Nino Wael
Title: submitting wicket examples






Hi 

Im in the mist of developing a bunch of controls for wicket, one for example will be able to populate a listbox based on the selection of another listbox. I guess this is something that could be of interest for the typical wicket user. So how do I submit my examples so that others may benefit from them, like Ive benefittet from the ones http://www.wicket-library.com/?


- regards Nino






Re: [Wicket-user] submitting wicket examples

2006-03-03 Thread Juergen Donnerstag
You send them to me and I'll add them to either wicket-examples or
wicket-contrib-examples. And I'll deploy them on wicket-library.

Juergen

On 3/3/06, Nino Wael [EMAIL PROTECTED] wrote:


 Hi

 Im in the mist of developing a bunch of controls for wicket, one for example
 will be able to populate a listbox based on the selection of another
 listbox. I guess this is something that could be of interest for the typical
 wicket user. So how do I submit my examples so that others may benefit from
 them, like I've benefittet from the ones http://www.wicket-library.com/?


 - regards Nino




---
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] submitting wicket examples

2006-03-03 Thread Juergen Donnerstag
Sorry one more note on this: Like you used the examples to learn
Wicket many others do which is why we try hard to explain (javadoc)
them as good as possible.

Juergen

On 3/3/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 You send them to me and I'll add them to either wicket-examples or
 wicket-contrib-examples. And I'll deploy them on wicket-library.

 Juergen

 On 3/3/06, Nino Wael [EMAIL PROTECTED] wrote:
 
 
  Hi
 
  Im in the mist of developing a bunch of controls for wicket, one for example
  will be able to populate a listbox based on the selection of another
  listbox. I guess this is something that could be of interest for the typical
  wicket user. So how do I submit my examples so that others may benefit from
  them, like I've benefittet from the ones http://www.wicket-library.com/?
 
 
  - regards Nino
 
 



---
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] submitting wicket examples

2006-03-03 Thread Nino Wael
Yeah, the javadoc is great. However sometimes you can explain all you want and 
still be stuck, but an example will give you the correct kick to get running. 
Also I feel that sometimes the javadoc Is pretty simple in the examples given, 
because it is a javadoc and must explain what the different methods etc does. 
Examples however can be more complicated, because they are not just limited to 
what goes on in the base code.



-Nino


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Juergen 
Donnerstag
Sent: Friday, March 03, 2006 12:07 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] submitting wicket examples

Sorry one more note on this: Like you used the examples to learn
Wicket many others do which is why we try hard to explain (javadoc)
them as good as possible.

Juergen

On 3/3/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 You send them to me and I'll add them to either wicket-examples or
 wicket-contrib-examples. And I'll deploy them on wicket-library.

 Juergen

 On 3/3/06, Nino Wael [EMAIL PROTECTED] wrote:
 
 
  Hi
 
  Im in the mist of developing a bunch of controls for wicket, one for example
  will be able to populate a listbox based on the selection of another
  listbox. I guess this is something that could be of interest for the typical
  wicket user. So how do I submit my examples so that others may benefit from
  them, like I've benefittet from the ones http://www.wicket-library.com/?
 
 
  - regards Nino
 
 



---
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=kkid0944bid$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] best place for corr'ding .html files? (using maven 2 + version control)

2006-03-03 Thread Rob Dickens

Thanks goes to Martijn and Eelco.

I managed to get away with adding just the following (to the pom.xml,  
to copy the files into place):


project
  ...
  build
resources
  resource
directorysrc/main/java/directory
includes
  include**/*.html/include
/includes
  /resource
/resources
...
  /build
  ...
/project

Rob



---
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=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Header Contribution on inherited panels

2006-03-03 Thread Andre Matheus
Hi, do you have any news for me?

Was the test case right?

___
André Matheus

On 2/27/06, Andre Matheus [EMAIL PROTECTED] wrote:
 Hi,

  I would very much appreciate if could prepare a little test case for
  me (like in src/test and based on WicketTestCase) for me to validate
  the implementation.

 Sure. I am sending it attached.
 I just don't know if it is what you need.

 Case you need it in a different way, please tell me.

 --
 __
 André Matheus

 On 2/27/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  Yes, it is the default behavior and the only one currently supported.
  Planned for the next snapshot is to introduce a scope for the header
  which by by default would be the class name of the extended component
  (PersonListPanel, PersonFormPanel). The scope can be defined like
  wicket:head wicket:scope=myScope .../wicket:head.
  A 2nd (more dynamic) choice will be to override
  newHeaderPartContainer() in your Panel to provide your own
  HeaderPartContainer (extended from HeaderPartContainer) and to allow
  you to provide whatever scope (it is a String) you want to.
 
  I would very much appreciate if could prepare a little test case for
  me (like in src/test and based on WicketTestCase) for me to validate
  the implementation.
 
  Juergen
 
  On 2/27/06, Andre Matheus [EMAIL PROTECTED] wrote:
   Hi all, I am using wicket-1.2-20060227-0200.jar
  
   I found an strange thing in the Header Contribution on inherited panels.
  
   I have the following panel hierarchy, all them with wicket:head 
   contribution:
   BasePanel
  -- BaseListPanel
  -- PersonListPanel
  -- BaseFormPanel
  -- PersonFormPanel
  
   In the page, these panels are added like a master/detail page:
  
   Page p
  -- PersonListPanel l
  -- PersonFormPanel f
  
   When I look at the source code of the generated page, I see the header
   contribution of BasePanel twice. For instance, if I add a javascript
   alert(test) in the wicket:head section of BasePanel, it will be
   executed twice.
  
   It looks like that the BasePanel is contributing as many times as a
   inherited Panel is added to the page. Is it the expected behaviour? Is
   it possible to make it contribute only once per page?
  
   Thank you very much.
  
   --
   __
   André Matheus
  
  
   ---
   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
 


 --
 __
 André Matheus





--
__
André Matheus


---
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] Replacing Page components in response to user input

2006-03-03 Thread Frank Silbermann

Me:
 However, at any time the user can re-set the options and re-submit,
 causing a completely different DataTable based on a new DataProvider.

Eelco Hillenius:
 First of all, ask yourself whether it is a completely different
 datatable, or whether the it's just a different model.

Suppose it's just a different model.  DataTable seems to have no
constructor that takes a PropertyModel so that the IDataProvider can
change dynamically, nor a method in DataTable to replace the
IDataProvider manually.

In this case, would you recommend simply to changing the state of my
IDataProvider so that IDataProvider.iterator(first, count) method
returns the new data, and call DataTable.setCurrentPage(1)?


Me:
 How do I code a page to replace one component with a new one
 in response to user input?  (I see plenty of examples of adding
 a component to a page, but only in the constructor -- and no
 examples of removing/replacing a component.)

Eelco Hillenius:
 If it *is* a completely different datatable and you want to
 replace it with something completely different, use panels.
 Put your different options in different panels, and use
 'replace' to replace one component with the other.

Would that be the MarkupContainer.replace(component) method?  This
method returns a MarkupContainer -- is the return value merely self --
a convenience in case you want to replace several components in one
line?

I can see the motivation for putting my replaceable components in a
Panel if the HTML requirements differ.  Likewise, if I have enough
components to replace that I'd rather not have to replace them one at a
time.  But if it's just a single component that I'm replacing, is there
really any need to put it in its own panel? 


---
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] pom.xml: correct way to specify dependency on Wicket jar?

2006-03-03 Thread Rob Dickens

To those using Maven 2 to build their Wicket projects,

The following appears to cause the Wicket jar, *together with all of  
its dependencies* to be copied into the WEB-INF/lib/ of the target  
war file:


  dependencies
dependency
  groupIdwicket/groupId
  artifactIdwicket/artifactId
  version1.1.1/version
/dependency

Jars copied to WEB-INF/lib/:

commons-logging-1.0.4.jar
junit-3.8.1.jar
log4j-1.2.11.jar
ognl-2.6.7.jar
servlet-api-2.3.jar
wicket-1.1.1.jar

I don't think this is ideal--e.g. the servlet-api jar does not belong  
here.


Could anyone help out.

Thanks,

Rob

ps Is there a Wicket project architype available, does anyone know?


---
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=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Header Contribution on inherited panels

2006-03-03 Thread Juergen Donnerstag
I'm working on it, but it seems there are more changes necessary than
I thought. I suggest to try find a work around. Not sure when it'll be
ready.

Juergen

On 3/3/06, Andre Matheus [EMAIL PROTECTED] wrote:
 Hi, do you have any news for me?

 Was the test case right?

 ___
 André Matheus

 On 2/27/06, Andre Matheus [EMAIL PROTECTED] wrote:
  Hi,
 
   I would very much appreciate if could prepare a little test case for
   me (like in src/test and based on WicketTestCase) for me to validate
   the implementation.
 
  Sure. I am sending it attached.
  I just don't know if it is what you need.
 
  Case you need it in a different way, please tell me.
 
  --
  __
  André Matheus
 
  On 2/27/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
   Yes, it is the default behavior and the only one currently supported.
   Planned for the next snapshot is to introduce a scope for the header
   which by by default would be the class name of the extended component
   (PersonListPanel, PersonFormPanel). The scope can be defined like
   wicket:head wicket:scope=myScope .../wicket:head.
   A 2nd (more dynamic) choice will be to override
   newHeaderPartContainer() in your Panel to provide your own
   HeaderPartContainer (extended from HeaderPartContainer) and to allow
   you to provide whatever scope (it is a String) you want to.
  
   I would very much appreciate if could prepare a little test case for
   me (like in src/test and based on WicketTestCase) for me to validate
   the implementation.
  
   Juergen
  
   On 2/27/06, Andre Matheus [EMAIL PROTECTED] wrote:
Hi all, I am using wicket-1.2-20060227-0200.jar
   
I found an strange thing in the Header Contribution on inherited panels.
   
I have the following panel hierarchy, all them with wicket:head 
contribution:
BasePanel
   -- BaseListPanel
   -- PersonListPanel
   -- BaseFormPanel
   -- PersonFormPanel
   
In the page, these panels are added like a master/detail page:
   
Page p
   -- PersonListPanel l
   -- PersonFormPanel f
   
When I look at the source code of the generated page, I see the header
contribution of BasePanel twice. For instance, if I add a javascript
alert(test) in the wicket:head section of BasePanel, it will be
executed twice.
   
It looks like that the BasePanel is contributing as many times as a
inherited Panel is added to the page. Is it the expected behaviour? Is
it possible to make it contribute only once per page?
   
Thank you very much.
   
--
__
André Matheus
   
   
---
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
  
 
 
  --
  __
  André Matheus
 
 
 


 --
 __
 André Matheus


 ---
 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] pom.xml: correct way to specify dependency on Wicket jar?

2006-03-03 Thread Martijn Dashorst
This is because the wicket 1.1.1 pom.xml is automatically converted from the maven 1 project.xml file.this conversion doesn't distinguish between compile, test and provided dependencies.you can edit your POM for 
1.1.1 in your local repository to make the correct adjustments.MartijnOn 3/3/06, Rob Dickens [EMAIL PROTECTED]
 wrote:To those using Maven 2 to build their Wicket projects,The following appears to cause the Wicket jar, *together with all of
its dependencies* to be copied into the WEB-INF/lib/ of the targetwar file: dependencies dependency groupIdwicket/groupId artifactIdwicket/artifactId
 version1.1.1/version /dependencyJars copied to WEB-INF/lib/:commons-logging-1.0.4.jarjunit-3.8.1.jarlog4j-1.2.11.jarognl-2.6.7.jarservlet-api-2.3.jar
wicket-1.1.1.jarI don't think this is ideal--e.g. the servlet-api jar does not belonghere.Could anyone help out.Thanks,Robps Is there a Wicket project architype available, does anyone know?
---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?cmd=lnkkid=110944bid=241720dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorst
Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1


Re: [Wicket-user] is IValidatorResourceKeyFactory being used

2006-03-03 Thread sven
I really like your refactorings on the validation stuff.

One additional request:

Thanks to Johan's addition I now get the following error message for my 
component 'bar' with a missing resource:

java.util.MissingResourceException: Unable to find resource:
 BazValidator for component: sub:form:foo

If we changed FormComponent#error(List,Map) so that localizer#getString() is 
called with 'this' instead of getParent(), we would get the following message:

java.util.MissingResourceException: Unable to find resource:
 CustomerValidator for component: sub:form:foo:bar

It should do no harm to extend the component stack by one component, but we'll 
get a more precise error message.

Thanks

Sven

 
i dont think it works like that.

the localizer searches up the component hierarchy, RequiredValidator is not 
in it so the validators have to explicitly ask localizer for both keys: 
formcompid.validator-key and validator-key. i dont think localizer knows 
enough to do it for us.

-Igor


---
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=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] CustomLayoutAjaxAutocompleteTextField

2006-03-03 Thread Mats Norén
Hi,
I've been trying to use the CustomLayoutAjaxAutocompleteTextField from
wicket-contrib-scriptaculous. Everything works as expected but for my
usecase it doesn't quite fit. I was wondering how I could achieve the
following:

What I want to do is to let the user search for a Party by full name
so when the user
writes mats the textfield displays a list with Party-objects with
the full name mats. When I select one in a list the textfield is
populated with the name of the Party. So far so good. But apart from
that I would like to set a hidden field with the *id* of the party.
This hidden field is what I want to save in the database on form
submit.

Has anyone else tried something similar?

/Mats


---
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] submitting wicket examples

2006-03-03 Thread Igor Vaynberg
what juergen ment is that it would be nice if you had good javadoc for your submissions :)-IgorOn 3/3/06, Nino Wael 
[EMAIL PROTECTED] wrote:Yeah, the javadoc is great. However sometimes you can explain all you want and still be stuck, but an example will give you the correct kick to get running. Also I feel that sometimes the javadoc Is pretty simple in the examples given, because it is a javadoc and must explain what the different methods etc does. Examples however can be more complicated, because they are not just limited to what goes on in the base code.
-Nino-Original Message-From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]] On Behalf Of Juergen DonnerstagSent: Friday, March 03, 2006 12:07 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] submitting wicket examples
Sorry one more note on this: Like you used the examples to learnWicket many others do which is why we try hard to explain (javadoc)them as good as possible.JuergenOn 3/3/06, Juergen Donnerstag 
[EMAIL PROTECTED] wrote: You send them to me and I'll add them to either wicket-examples or wicket-contrib-examples. And I'll deploy them on wicket-library.
 Juergen On 3/3/06, Nino Wael [EMAIL PROTECTED] wrote:Hi   Im in the mist of developing a bunch of controls for wicket, one for example
  will be able to populate a listbox based on the selection of another  listbox. I guess this is something that could be of interest for the typical  wicket user. So how do I submit my examples so that others may benefit from
  them, like I've benefittet from the ones http://www.wicket-library.com/?- regards Nino  
---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?cmd=kkid0944bid$1720dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user---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?cmdlnkkid0944bid$1720dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] best place for corr'ding .html files? (using maven 2 + version control)

2006-03-03 Thread Igor Vaynberg
it is a much better practice to use include everythig but java like eelco and martijn showed you. if later you decide to add a .properties file for any reason (validator messages, i18n, whatever) or a package resource (.css, images) they will magically not appear in the war and you will have to go digging and figuring out why.
just my humble opinion-IgorOn 3/3/06, Rob Dickens [EMAIL PROTECTED] wrote:
Thanks goes to Martijn and Eelco.I managed to get away with adding just the following (to the 
pom.xml,to copy the files into place):project ... build resources resourcedirectorysrc/main/java/directoryincludes
include**/*.html/include/includes /resource /resources ... /build .../projectRob
---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?cmd=lnkkid=110944bid=241720dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Header Contribution on inherited panels

2006-03-03 Thread Andre Matheus
Don't worry.
Just tell me if I can help.

Regards,

___
André Matheus


On 3/3/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 I'm working on it, but it seems there are more changes necessary than
 I thought. I suggest to try find a work around. Not sure when it'll be
 ready.

 Juergen

 On 3/3/06, Andre Matheus [EMAIL PROTECTED] wrote:
  Hi, do you have any news for me?
 
  Was the test case right?
 
  ___
  André Matheus
 
  On 2/27/06, Andre Matheus [EMAIL PROTECTED] wrote:
   Hi,
  
I would very much appreciate if could prepare a little test case for
me (like in src/test and based on WicketTestCase) for me to validate
the implementation.
  
   Sure. I am sending it attached.
   I just don't know if it is what you need.
  
   Case you need it in a different way, please tell me.
  
   --
   __
   André Matheus
  
   On 2/27/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
Yes, it is the default behavior and the only one currently supported.
Planned for the next snapshot is to introduce a scope for the header
which by by default would be the class name of the extended component
(PersonListPanel, PersonFormPanel). The scope can be defined like
wicket:head wicket:scope=myScope .../wicket:head.
A 2nd (more dynamic) choice will be to override
newHeaderPartContainer() in your Panel to provide your own
HeaderPartContainer (extended from HeaderPartContainer) and to allow
you to provide whatever scope (it is a String) you want to.
   
I would very much appreciate if could prepare a little test case for
me (like in src/test and based on WicketTestCase) for me to validate
the implementation.
   
Juergen
   
On 2/27/06, Andre Matheus [EMAIL PROTECTED] wrote:
 Hi all, I am using wicket-1.2-20060227-0200.jar

 I found an strange thing in the Header Contribution on inherited 
 panels.

 I have the following panel hierarchy, all them with wicket:head 
 contribution:
 BasePanel
-- BaseListPanel
-- PersonListPanel
-- BaseFormPanel
-- PersonFormPanel

 In the page, these panels are added like a master/detail page:

 Page p
-- PersonListPanel l
-- PersonFormPanel f

 When I look at the source code of the generated page, I see the header
 contribution of BasePanel twice. For instance, if I add a javascript
 alert(test) in the wicket:head section of BasePanel, it will be
 executed twice.

 It looks like that the BasePanel is contributing as many times as a
 inherited Panel is added to the page. Is it the expected behaviour? Is
 it possible to make it contribute only once per page?

 Thank you very much.

 --
 __
 André Matheus


 ---
 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
   
  
  
   --
   __
   André Matheus
  
  
  
 
 
  --
  __
  André Matheus
 
 
  ---
  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
 

Re: [Wicket-user] CustomLayoutAjaxAutocompleteTextField

2006-03-03 Thread Ryan Sonnek
I wrote that autocomplete compoinent, and it's not too fancy.  if you
have a different usecase, i suggest writing your own component for
what you need it to do.  scriptaculous makes the ajax stuff pretty
easy, and wicket makes the rest a snap.

On 3/3/06, Mats Norén [EMAIL PROTECTED] wrote:
 Hi,
 I've been trying to use the CustomLayoutAjaxAutocompleteTextField from
 wicket-contrib-scriptaculous. Everything works as expected but for my
 usecase it doesn't quite fit. I was wondering how I could achieve the
 following:

 What I want to do is to let the user search for a Party by full name
 so when the user
 writes mats the textfield displays a list with Party-objects with
 the full name mats. When I select one in a list the textfield is
 populated with the name of the Party. So far so good. But apart from
 that I would like to set a hidden field with the *id* of the party.
 This hidden field is what I want to save in the database on form
 submit.

 Has anyone else tried something similar?

 /Mats


 ---
 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] pom.xml: correct way to specify dependency on Wicket jar?

2006-03-03 Thread Rob Dickens

Just confirming that this did the trick.

In the wicket-1.1.1.pom:

  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
+   scopetest/scope
/dependency
dependency
  groupIdlog4j/groupId
  artifactIdlog4j/artifactId
  version1.2.11/version
+   scopeprovided/scope
/dependency
...

Only wicket-1.1.1.jar now appears in the WEB-INF/lib/.

Thanks!

On 3 Mar 2006, at 14:46, Martijn Dashorst wrote:

This is because the wicket 1.1.1 pom.xml is automatically converted  
from the maven 1 project.xml file.


this conversion doesn't distinguish between compile, test and  
provided dependencies.


you can edit your POM for 1.1.1 in your local repository to make  
the correct adjustments.


Martijn




---
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=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


RE: [Wicket-user] Replacing Page components in response to user input

2006-03-03 Thread Frank Silbermann












I can see the motivation for putting my replaceable
components in a 
Panel if the HTML requirements differ.Likewise, if I have enough
components to replace that I'd rather not have to replace them one at a
time.But if it's just a single component that I'm replacing, is
there
really any need to put it in its own panel?






panel is the basic piece of wicket composition. so you will use them often. for
some situation (when the panel is not really reusable outside the page) you
might want to use Fragments because they make things tidier and easier. 
-Igor







Yes, but if I have but a single span
wicket:id=myDataTable in my HTML, and my Page is to replace
my DataTable component with another, couldnt I do without a separate
Panel _or_ Fragment? Why would I need _any_ special HTML container for my
DataTable?



(Or are we saying the same thing in that,
in its implementation, a DataTable _is_
a Panel?)








Re: [Wicket-user] Replacing Page components in response to user input

2006-03-03 Thread Igor Vaynberg
if the /only/ thing you are replacing is a datatable which is /already/ a panel then you dont need to do anything extra.-IgorOn 3/3/06, Frank Silbermann
 [EMAIL PROTECTED] wrote:






















I can see the motivation for putting my replaceable
components in a 
Panel if the HTML requirements differ.Likewise, if I have enough
components to replace that I'd rather not have to replace them one at a
time.But if it's just a single component that I'm replacing, is
there
really any need to put it in its own panel?






panel is the basic piece of wicket composition. so you will use them often. for
some situation (when the panel is not really reusable outside the page) you
might want to use Fragments because they make things tidier and easier. 
-Igor







Yes, but if I have but a single span
wicket:id="myDataTable" in my HTML, and my Page is to replace
my DataTable component with another, couldn't I do without a separate
Panel _or_ Fragment? Why would I need _any_ special HTML container for my
DataTable?



(Or are we saying the same thing in that,
in its implementation, a DataTable _is_
a Panel?)









RE: [Wicket-user] New RequiredValidator and DropDownChoice

2006-03-03 Thread Bennett, Timothy (JIS - Applications)
What's the best way for me to this fix in the Wicket 1.1.1 codebase?  Do
I create a CustomValidator with essentially the impl below, and use this
custom validator for my 1.1.1 DropDowns?  

 -Original Message-
 From: Eelco Hillenius [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, February 19, 2006 12:33 AM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] New RequiredValidator and DropDownChoice
 
 Ok, I think this is the right fix (it's in HEAD now):
 
   public final void onValidate(final FormComponent 
 formComponent, final String value)
   {
   // Check value only if form component is enabled
   if (!formComponent.isEnabled())
   {
   // do not perform validation
   return;
   }
 
   // when null, check whether this is natural for 
 that component, or
   // whether - as is the case with text fields - 
 this can only happen
   // when the component was disabled
   if (value == null  (!formComponent.isInputNullable()))
   {
   // this value must have come from a 
 disabled field
   // do not perform validation
   return;
   }
 
   // peform validation by looking whether the 
 value is null or empty
   if (Strings.isEmpty(value))
   {
   error(formComponent);
   }
   }
 
 isInputNullable returns true by default, except for text 
 fields, which have empty strings as input even though the 
 user didn't even touch them.
 
 Agreed?
 
 Eelco
 
 On 2/18/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  Uh, another potential nastier problem is that you put in 
  disabled=disabled there yourself either directly or with an 
  attribute modifier. In that case, the old code makes sense, 
 though it 
  is not very generic. H... what should we do...
 
  Eelco
 
  On 2/18/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
   A potential, theoretic issue can be that isEnabled is based on an 
   algoritm in such a way that it was false during 
 rendering, but true 
   now that the post back comes in. Or the other way around. But I 
   think that is too theoretical to worry about, and even if 
 it would 
   show up sometime, somewhere for anyone, it would be easy 
 to fix for 
   that custom situation.
  
   Eelco
  
  
   On 2/18/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
I just took a look, and the 'fix' that isInputNullable 
 was wrong; 
it was fixing the wrong problem in the first place. I 
 removed that 
method again, and RequiredValidator now looks like:
   
public final void onValidate(final FormComponent 
formComponent, final String value)
{
// Check value only if form component 
 can take on a null value
if (formComponent.isEnabled())
{
// Check value
if (Strings.isEmpty(value))
{
error(formComponent);
}
}
}
   
Could you and anyone else (devs?) interested in this verify 
whether I didn't forget anything? The orignal code 
 before the fix was:
   
public final void onValidate(FormComponent 
 formComponent, String value)
{
// if input was null then value was not 
 submitted (disabled field),
// ignore it
// TODO General: For now only a test on 
 a text component is done for the
// disabled == null. Checkbox, 
 RadioChoice or CheckBoxMultipleChoice can
// all be null and not disabled.
if (formComponent instanceof 
 AbstractTextComponent  value == null)
{
return;
}
   
// Check value
if (Strings.isEmpty(value))
{
error(formComponent);
}
}
   
But I think what's in there now is better. Agreed everyone?
   
Eelco
   
   
On 2/18/06, Ingram Chen [EMAIL PROTECTED] wrote:
 Latest RequiredValidator only works for 
 FormComponent.isInputNullable() that return true.
 So basically RequiredValidator no longer work for 
 FormComponent 
 like DropDownChoice .

 I have one use case: the choices List may return zero 
 size, and 
 by  default, DropDownChoice will insert a Choose 
 One... for me. 
 If user submit with this blank choice, I need to prompt user 
 this is required field and he should add more choices before 
 processing. previously I use RequiredValidator and it works.

 How do I archive this now ? I knows I can overrwrite
 

[Wicket-user] previewable pages

2006-03-03 Thread Ryan Sonnek
One of my favorite features in wicket is that the pages are completely
previewable in a normal web browser even outside of wicket.  JSP is
simply a mess of nested scriptlets and xml and other junk.

That being said, I was getting frustrated that I would lose
previewable pages when I start extracting components.  Of course
extracting components is a good thing for reusability, but it has a
pretty big drawback when trying to design pages without seeing the
component in preview mode.

Well, I'd like to startup a discussion on a wicket feature I wrote up
and see if there's any interest for other people.  Basically, I use
some AJAX magic to load the component so that you can preview your
pages with your components.

http://jroller.com/page/wireframe/?anchor=auto_previewable_wicket_pages

Please let me know if there's any interest in this.  It definately has
reinforced how cool Wicket is!

Ryan


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