Re: [Wicket-user] Still link problems

2006-03-02 Thread Igor Vaynberg
absolutely. check out AutoLinkResolver to get started.-IgorOn 3/2/06, Thomas Singer <[EMAIL PROTECTED]> wrote:
Igor, thanks for clarification. Is it possible to plug-in an own"link-resolver", which manages the path-correction in the  area?
--Best regards,Thomas SingerPS: I'm not THE SmartCVS/SVN guy - we are two, Marc Strapetz and me. Butunfortunately experience in developing desktop applications does not helpmuch with web applications.
Igor Vaynberg schrieb:> ok i got the links figured out. this is a bit tricky so walk with me.>>  resolves links /relative/ to the package of the current> template
> you have two links> >> when the index page loads wicket will resolve the links thus:>> page package: 
com.foo.website.pages>> 1->com.foo.website.pages.Index> 2->com.foo.website.pages.about.Index>> this is correct>> now when you hit the about page the following happens:
>> page package: com.foo.website.pages.about>> 1->com.foo.website.pages.about.Index> 2->com.foo.website.pages.about.about.Index -> class does not exist ->> markup unchanged
>> this is why on the about page the first link is disabled and the second> one causes 404> it wouldve been easier to catch but because both pages were called Index> it was confusing.
>> the problem is of course the relative nature of the > resolver. there is not much we can do about this. what you will have to> do is to use PageLink components (which keep the full classname) in your
> template.>> -Igor>>> On 3/2/06, *Thomas Singer* <[EMAIL PROTECTED] [EMAIL PROTECTED]>>
> wrote:>> OK, you are right, having the PageTemplate class in a different> package than> the Index class and having the PageTemplate.html in the same> directory as
> the Index.html markup is not that easy do achieve on deploying.> Looks like> in my case I need to keep my IResourceStreamLocator instance for the> mapping. Or I move the PageTemplate class in the same package as the
> Index> class...>> --> Best regards,> Thomas Singer>>> Thomas Singer schrieb:>  > OK, at the moment I have code to find the markups in the pages/
> dir, but>  > it also should be possible to copy them into the packages while> deploying.>  >>  > But does this solve the problems with the *links* shown in my
> example?>  >>  > -->  > Best regards,>  > Thomas Singer>  >>  >>  > Igor Vaynberg schrieb:>  >> still tricky
>  >>>  >> notice that your Index.html is in pages dir and so is your>  >> PageTemplate.html, but the corresponding classes are in two> different>  >> packages: 
com.foo.website.pages.Index.html and>  >> com.foo.website.templates.PageTemplate so somehow you need to handle>  >> that mapping. which you in fact can, you can say any class can look
>  >> for its template in pages dir, but then you have about/Index.html>  >> mapped to com.foo.website.pages.about.Index.html which throws> things off.>  >>>  >> you can setup alternative loading of resources but unless you
> want to>  >> do some extensive mapping of your classes to template folders the>  >> easiest approach is to mirror your package structure in your> template>  >> base dir structure.
>  >>>  >> what you have to do is to implement your own IResourceStreamLocator>  >> and add it to the resource settings. implementations of this> interface
>  >> are responsible for figuring out where the html template is for a>  >> given component and loading it.>  >>>  >> you can achieve any effect you want using this, but remember you
> dont>  >> want to paint yourself into a corner so i would start simple and see>  >> how far that carries you.>  >>>  >> -Igor>  >>
>  >>>  >>>  >>>  >> On 3/2/06, *Thomas Singer* <[EMAIL PROTECTED]> 
[EMAIL PROTECTED]>>  >> [EMAIL PROTECTED] [EMAIL PROTECTED]>>> wrote:>  >>
>  >> Would it be possible for wicket to handle such a>  >> after-deploy-structure>  >> without major head-aches:>  >>>  >> +---graphics
>  >> |   logo.gif>  >> |>  >> \---WEB-INF>  >>  |   web.xml>  >>  |>  >>  +---classes
>  >>  |   +---com>  >>  |   |   \---foo>  >>  |   |   \---website>  >>  |   |   |   FooWebApplication.class
>  >>  |   |   |   FooWebApplication$1.class>  >>  |   |   |>  >>  |   |   +---pages>  >>  |   |   |   |   
Index.class>  >>  |   |   |   |>  >>  |   |   |   \---about>  >>  |   |   |   Index.class>  >>  |   |   |
>  >>  |   |   \---templates>  >>  |   |   PageTemplate.class>  >>  |   |>  >>  |   \---page

Re: [Wicket-user] Still link problems

2006-03-02 Thread Thomas Singer
Igor, thanks for clarification. Is it possible to plug-in an own 
"link-resolver", which manages the path-correction in the  area?


--
Best regards,
Thomas Singer

PS: I'm not THE SmartCVS/SVN guy - we are two, Marc Strapetz and me. But 
unfortunately experience in developing desktop applications does not help 
much with web applications.



Igor Vaynberg schrieb:

ok i got the links figured out. this is a bit tricky so walk with me.

 resolves links /relative/ to the package of the current 
template

you have two links
 (1) and  (2)

when the index page loads wicket will resolve the links thus:

page package: com.foo.website.pages

1->com.foo.website.pages.Index
2->com.foo.website.pages.about.Index

this is correct

now when you hit the about page the following happens:

page package: com.foo.website.pages.about

1->com.foo.website.pages.about.Index
2->com.foo.website.pages.about.about.Index -> class does not exist -> 
markup unchanged


this is why on the about page the first link is disabled and the second 
one causes 404
it wouldve been easier to catch but because both pages were called Index 
it was confusing.


the problem is of course the relative nature of the  
resolver. there is not much we can do about this. what you will have to 
do is to use PageLink components (which keep the full classname) in your 
template.


-Igor


On 3/2/06, *Thomas Singer* <[EMAIL PROTECTED] > 
wrote:


OK, you are right, having the PageTemplate class in a different
package than
the Index class and having the PageTemplate.html in the same
directory as
the Index.html markup is not that easy do achieve on deploying.
Looks like
in my case I need to keep my IResourceStreamLocator instance for the
mapping. Or I move the PageTemplate class in the same package as the
Index
class...

--
Best regards,
Thomas Singer


Thomas Singer schrieb:
 > OK, at the moment I have code to find the markups in the pages/
dir, but
 > it also should be possible to copy them into the packages while
deploying.
 >
 > But does this solve the problems with the *links* shown in my
example?
 >
 > --
 > Best regards,
 > Thomas Singer
 >
 >
 > Igor Vaynberg schrieb:
 >> still tricky
 >>
 >> notice that your Index.html is in pages dir and so is your
 >> PageTemplate.html, but the corresponding classes are in two
different
 >> packages: com.foo.website.pages.Index.html and
 >> com.foo.website.templates.PageTemplate so somehow you need to handle
 >> that mapping. which you in fact can, you can say any class can look
 >> for its template in pages dir, but then you have about/Index.html
 >> mapped to com.foo.website.pages.about.Index.html which throws
things off.
 >>
 >> you can setup alternative loading of resources but unless you
want to
 >> do some extensive mapping of your classes to template folders the
 >> easiest approach is to mirror your package structure in your
template
 >> base dir structure.
 >>
 >> what you have to do is to implement your own IResourceStreamLocator
 >> and add it to the resource settings. implementations of this
interface
 >> are responsible for figuring out where the html template is for a
 >> given component and loading it.
 >>
 >> you can achieve any effect you want using this, but remember you
dont
 >> want to paint yourself into a corner so i would start simple and see
 >> how far that carries you.
 >>
 >> -Igor
 >>
 >>
 >>
 >>
 >> On 3/2/06, *Thomas Singer* <[EMAIL PROTECTED]

 >> mailto:[EMAIL PROTECTED]>>> wrote:
 >>
 >> Would it be possible for wicket to handle such a
 >> after-deploy-structure
 >> without major head-aches:
 >>
 >> +---graphics
 >> |   logo.gif
 >> |
 >> \---WEB-INF
 >>  |   web.xml
 >>  |
 >>  +---classes
 >>  |   +---com
 >>  |   |   \---foo
 >>  |   |   \---website
 >>  |   |   |   FooWebApplication.class
 >>  |   |   |   FooWebApplication$1.class
 >>  |   |   |
 >>  |   |   +---pages
 >>  |   |   |   |   Index.class
 >>  |   |   |   |
 >>  |   |   |   \---about
 >>  |   |   |   Index.class
 >>  |   |   |
 >>  |   |   \---templates
 >>  |   |   PageTemplate.class
 >>  |   |
 >>  |   \---pages
 >>  |   |   Index.html
 >>  |   |   PageTemplate.html
 >>  |   |
 >>  |   \---about
 >>  |   Index.html
 >>

Re: [Wicket-user] Still link problems

2006-03-02 Thread Igor Vaynberg
ok i got the links figured out. this is a bit tricky so walk with me. resolves links /relative/ to the package of the current templateyou have two linkswhen the index page loads wicket will resolve the links thus:page package: com.foo.website.pages1->com.foo.website.pages.Index2->com.foo.website.pages.about.Indexthis is correct
now when you hit the about page the following happens:page package: com.foo.website.pages.about1->com.foo.website.pages.about.Index2->com.foo.website.pages.about.about.Index -> class does not exist -> markup unchanged
this is why on the about page the first link is disabled and the second one causes 404it wouldve been easier to catch but because both pages were called Index it was confusing.the problem is of course the relative nature of the  resolver. there is not much we can do about this. what you will have to do is to use PageLink components (which keep the full classname) in your template.
-IgorOn 3/2/06, Thomas Singer <[EMAIL PROTECTED]> wrote:
OK, you are right, having the PageTemplate class in a different package thanthe Index class and having the PageTemplate.html in the same directory asthe Index.html markup is not that easy do achieve on deploying. Looks like
in my case I need to keep my IResourceStreamLocator instance for themapping. Or I move the PageTemplate class in the same package as the Indexclass...--Best regards,Thomas SingerThomas Singer schrieb:
> OK, at the moment I have code to find the markups in the pages/ dir, but> it also should be possible to copy them into the packages while deploying.>> But does this solve the problems with the *links* shown in my example?
>> --> Best regards,> Thomas Singer>>> Igor Vaynberg schrieb:>> still tricky notice that your Index.html is in pages dir and so is your
>> PageTemplate.html, but the corresponding classes are in two different>> packages: com.foo.website.pages.Index.html and>> com.foo.website.templates.PageTemplate so somehow you need to handle
>> that mapping. which you in fact can, you can say any class can look>> for its template in pages dir, but then you have about/Index.html>> mapped to com.foo.website.pages.about.Index.html which throws things off.
 you can setup alternative loading of resources but unless you want to>> do some extensive mapping of your classes to template folders the>> easiest approach is to mirror your package structure in your template
>> base dir structure. what you have to do is to implement your own IResourceStreamLocator>> and add it to the resource settings. implementations of this interface>> are responsible for figuring out where the html template is for a
>> given component and loading it. you can achieve any effect you want using this, but remember you dont>> want to paint yourself into a corner so i would start simple and see
>> how far that carries you. -Igor>> On 3/2/06, *Thomas Singer* <[EMAIL PROTECTED]>> [EMAIL PROTECTED]>> wrote: Would it be possible for wicket to handle such a>> after-deploy-structure>> without major head-aches:
 +---graphics>> |   logo.gif>> |>> \---WEB-INF>>  |   web.xml>>  |>>  +---classes>>  |   +---com
>>  |   |   \---foo>>  |   |   \---website>>  |   |   |   FooWebApplication.class>>  |   |   |   FooWebApplication$1.class>>  |   |   |
>>  |   |   +---pages>>  |   |   |   |   Index.class>>  |   |   |   |>>  |   |   |   \---about>>  |   |   |   
Index.class>>  |   |   |>>  |   |   \---templates>>  |   |   PageTemplate.class>>  |   |>>  |   \---pages
>>  |   |   Index.html>>  |   |   PageTemplate.html>>  |   |>>  |   \---about>>  |   Index.html>>  |
>>  \---lib>>  commons-logging-1.0.4.jar>>  log4j-1.2.12.jar>>  wicket-1.2-20060227-0200-src.zip>>  
wicket-1.2-20060227-0200.jar and having the markup-files and images in the same directory>> structure at>> design-time? -->> Best regards,
>> Thomas Singer>> Johan Compagner schrieb:>>  > if you don't want to make components for youre image or other>> resource tags.>>  > Then the only thing i can think of is that you put all youre
>> pages in>>  > the doc root>>  > and then all youre other stuff in images above that so>>  >>>  > Page.html>>  > graphics/
>>  > style/>>  >>>  > The big problem with this at runtime is that youre wicket html>> pages are>>  > also accessible through an url
>>  > just ask for /foo/Page.html>>  >>>  > So then they just have youre wicket page without the touching of>> wicket.>>  >>>  >
>>  > A

Re: [Wicket-user] Still link problems

2006-03-02 Thread Thomas Singer
OK, you are right, having the PageTemplate class in a different package than 
the Index class and having the PageTemplate.html in the same directory as 
the Index.html markup is not that easy do achieve on deploying. Looks like 
in my case I need to keep my IResourceStreamLocator instance for the 
mapping. Or I move the PageTemplate class in the same package as the Index 
class...


--
Best regards,
Thomas Singer


Thomas Singer schrieb:
OK, at the moment I have code to find the markups in the pages/ dir, but 
it also should be possible to copy them into the packages while deploying.


But does this solve the problems with the *links* shown in my example?

--
Best regards,
Thomas Singer


Igor Vaynberg schrieb:

still tricky

notice that your Index.html is in pages dir and so is your 
PageTemplate.html, but the corresponding classes are in two different 
packages: com.foo.website.pages.Index.html and 
com.foo.website.templates.PageTemplate so somehow you need to handle 
that mapping. which you in fact can, you can say any class can look 
for its template in pages dir, but then you have about/Index.html 
mapped to com.foo.website.pages.about.Index.html which throws things off.


you can setup alternative loading of resources but unless you want to 
do some extensive mapping of your classes to template folders the 
easiest approach is to mirror your package structure in your template 
base dir structure.


what you have to do is to implement your own IResourceStreamLocator 
and add it to the resource settings. implementations of this interface 
are responsible for figuring out where the html template is for a 
given component and loading it.


you can achieve any effect you want using this, but remember you dont 
want to paint yourself into a corner so i would start simple and see 
how far that carries you.


-Igor




On 3/2/06, *Thomas Singer* <[EMAIL PROTECTED] 
> wrote:


Would it be possible for wicket to handle such a 
after-deploy-structure

without major head-aches:

+---graphics
|   logo.gif
|
\---WEB-INF
 |   web.xml
 |
 +---classes
 |   +---com
 |   |   \---foo
 |   |   \---website
 |   |   |   FooWebApplication.class
 |   |   |   FooWebApplication$1.class
 |   |   |
 |   |   +---pages
 |   |   |   |   Index.class
 |   |   |   |
 |   |   |   \---about
 |   |   |   Index.class
 |   |   |
 |   |   \---templates
 |   |   PageTemplate.class
 |   |
 |   \---pages
 |   |   Index.html
 |   |   PageTemplate.html
 |   |
 |   \---about
 |   Index.html
 |
 \---lib
 commons-logging-1.0.4.jar
 log4j-1.2.12.jar
 wicket-1.2-20060227-0200-src.zip
 wicket-1.2-20060227-0200.jar

and having the markup-files and images in the same directory
structure at
design-time?

--
Best regards,
Thomas Singer


Johan Compagner schrieb:
 > if you don't want to make components for youre image or other
resource tags.
 > Then the only thing i can think of is that you put all youre
pages in
 > the doc root
 > and then all youre other stuff in images above that so
 >
 > Page.html
 > graphics/
 > style/
 >
 > The big problem with this at runtime is that youre wicket html
pages are
 > also accessible through an url
 > just ask for /foo/Page.html
 >
 > So then they just have youre wicket page without the touching of
wicket.
 >
 >
 > Also map youre wicket servlet not on /* but do it on /app/* or
something
 > so that the doc root is not also served through wicket servlet.
Thats a
 > waste.
 >
 > johan



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

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

 


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

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





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

and join the prime developer group breakin

Re: [Wicket-user] Still link problems

2006-03-02 Thread Igor Vaynberg
lol, just noticed you are the smartsvn/cvs guy. great products. used them both in the past. props. :)-IgorOn 3/2/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:havent taken a look at the links issue yet, one thing at a time.
-IgorOn 3/2/06, 
Thomas Singer <[EMAIL PROTECTED]
> wrote:OK, at the moment I have code to find the markups in the pages/ dir, but it
also should be possible to copy them into the packages while deploying.But does this solve the problems with the *links* shown in my example?--Best regards,Thomas SingerIgor Vaynberg schrieb:
> still tricky>> notice that your Index.html is in pages dir and so is your> PageTemplate.html, but the corresponding classes are in two different> packages: com.foo.website.pages.Index.html

 and> com.foo.website.templates.PageTemplate so somehow you need to handle> that mapping. which you in fact can, you can say any class can look for> its template in pages dir, but then you have about/Index.html mapped to
> com.foo.website.pages.about.Index.html which throws things off.>> you can setup alternative loading of resources but unless you want to do> some extensive mapping of your classes to template folders the easiest
> approach is to mirror your package structure in your template base dir> structure.>> what you have to do is to implement your own IResourceStreamLocator and> add it to the resource settings. implementations of this interface are
> responsible for figuring out where the html template is for a given> component and loading it.>> you can achieve any effect you want using this, but remember you dont> want to paint yourself into a corner so i would start simple and see how
> far that carries you.>> -Igor> On 3/2/06, *Thomas Singer* <
[EMAIL PROTECTED] 
[EMAIL PROTECTED]>>> wrote:>> Would it be possible for wicket to handle such a after-deploy-structure> without major head-aches:>> +---graphics> |   
logo.gif> |> \---WEB-INF>  |   web.xml>  |>  +---classes>  |   +---com>  |   |   \---foo>  |   |   \---website
>  |   |   |   FooWebApplication.class>  |   |   |   FooWebApplication$1.class>  |   |   |>  |   |   +---pages>  |   |   |   |   
Index.class>  |   |   |   |>  |   |   |   \---about>  |   |   |   Index.class>  |   |   |>  |   |   \---templates
>  |   |   PageTemplate.class>  |   |>  |   \---pages>  |   |   Index.html>  |   |   PageTemplate.html>  |   |
>  |   \---about>  |   Index.html>  |>  \---lib>  commons-logging-1.0.4.jar>  log4j-1.2.12.jar
>  
wicket-1.2-20060227-0200-src.zip>  wicket-1.2-20060227-0200.jar>> and having the markup-files and images in the same directory> structure at> design-time?

>> --> Best regards,> Thomas Singer>>> Johan Compagner schrieb:>  > if you don't want to make components for youre image or other> resource tags.
>  > Then the only thing i can think of is that you put all youre> pages in>  > the doc root>  > and then all youre other stuff in images above that so>  >
>  > Page.html>  > graphics/>  > style/>  >>  > The big problem with this at runtime is that youre wicket html> pages are>  > also accessible through an url
>  > just ask for /foo/Page.html>  >>  > So then they just have youre wicket page without the touching of> wicket.>  >>  >>  > Also map youre wicket servlet not on /* but do it on /app/* or
> something>  > so that the doc root is not also served through wicket servlet.> Thats a>  > waste.>  >>  > johan ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting> language> that extends applications into web and mobile media. Attend the live> webcast> and join the prime developer group breaking into this new coding
> territory!> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

> > ___
> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> Wicket-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 webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid

Re: [Wicket-user] Still link problems

2006-03-02 Thread Igor Vaynberg
havent taken a look at the links issue yet, one thing at a time.-IgorOn 3/2/06, Thomas Singer <[EMAIL PROTECTED]
> wrote:OK, at the moment I have code to find the markups in the pages/ dir, but it
also should be possible to copy them into the packages while deploying.But does this solve the problems with the *links* shown in my example?--Best regards,Thomas SingerIgor Vaynberg schrieb:
> still tricky>> notice that your Index.html is in pages dir and so is your> PageTemplate.html, but the corresponding classes are in two different> packages: com.foo.website.pages.Index.html
 and> com.foo.website.templates.PageTemplate so somehow you need to handle> that mapping. which you in fact can, you can say any class can look for> its template in pages dir, but then you have about/Index.html mapped to
> com.foo.website.pages.about.Index.html which throws things off.>> you can setup alternative loading of resources but unless you want to do> some extensive mapping of your classes to template folders the easiest
> approach is to mirror your package structure in your template base dir> structure.>> what you have to do is to implement your own IResourceStreamLocator and> add it to the resource settings. implementations of this interface are
> responsible for figuring out where the html template is for a given> component and loading it.>> you can achieve any effect you want using this, but remember you dont> want to paint yourself into a corner so i would start simple and see how
> far that carries you.>> -Igor> On 3/2/06, *Thomas Singer* <[EMAIL PROTECTED] 
[EMAIL PROTECTED]>>> wrote:>> Would it be possible for wicket to handle such a after-deploy-structure> without major head-aches:>> +---graphics> |   
logo.gif> |> \---WEB-INF>  |   web.xml>  |>  +---classes>  |   +---com>  |   |   \---foo>  |   |   \---website
>  |   |   |   FooWebApplication.class>  |   |   |   FooWebApplication$1.class>  |   |   |>  |   |   +---pages>  |   |   |   |   
Index.class>  |   |   |   |>  |   |   |   \---about>  |   |   |   Index.class>  |   |   |>  |   |   \---templates
>  |   |   PageTemplate.class>  |   |>  |   \---pages>  |   |   Index.html>  |   |   PageTemplate.html>  |   |
>  |   \---about>  |   Index.html>  |>  \---lib>  commons-logging-1.0.4.jar>  log4j-1.2.12.jar>  
wicket-1.2-20060227-0200-src.zip>  wicket-1.2-20060227-0200.jar>> and having the markup-files and images in the same directory> structure at> design-time?
>> --> Best regards,> Thomas Singer>>> Johan Compagner schrieb:>  > if you don't want to make components for youre image or other> resource tags.
>  > Then the only thing i can think of is that you put all youre> pages in>  > the doc root>  > and then all youre other stuff in images above that so>  >
>  > Page.html>  > graphics/>  > style/>  >>  > The big problem with this at runtime is that youre wicket html> pages are>  > also accessible through an url
>  > just ask for /foo/Page.html>  >>  > So then they just have youre wicket page without the touching of> wicket.>  >>  >>  > Also map youre wicket servlet not on /* but do it on /app/* or
> something>  > so that the doc root is not also served through wicket servlet.> Thats a>  > waste.>  >>  > johan ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting> language> that extends applications into web and mobile media. Attend the live> webcast> and join the prime developer group breaking into this new coding
> territory!> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > ___
> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> Wicket-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 webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo

Re: [Wicket-user] Still link problems

2006-03-02 Thread Thomas Singer
OK, at the moment I have code to find the markups in the pages/ dir, but it 
also should be possible to copy them into the packages while deploying.


But does this solve the problems with the *links* shown in my example?

--
Best regards,
Thomas Singer


Igor Vaynberg schrieb:

still tricky

notice that your Index.html is in pages dir and so is your 
PageTemplate.html, but the corresponding classes are in two different 
packages: com.foo.website.pages.Index.html and 
com.foo.website.templates.PageTemplate so somehow you need to handle 
that mapping. which you in fact can, you can say any class can look for 
its template in pages dir, but then you have about/Index.html mapped to 
com.foo.website.pages.about.Index.html which throws things off.


you can setup alternative loading of resources but unless you want to do 
some extensive mapping of your classes to template folders the easiest 
approach is to mirror your package structure in your template base dir 
structure.


what you have to do is to implement your own IResourceStreamLocator and 
add it to the resource settings. implementations of this interface are 
responsible for figuring out where the html template is for a given 
component and loading it.


you can achieve any effect you want using this, but remember you dont 
want to paint yourself into a corner so i would start simple and see how 
far that carries you.


-Igor




On 3/2/06, *Thomas Singer* <[EMAIL PROTECTED] > 
wrote:


Would it be possible for wicket to handle such a after-deploy-structure
without major head-aches:

+---graphics
|   logo.gif
|
\---WEB-INF
 |   web.xml
 |
 +---classes
 |   +---com
 |   |   \---foo
 |   |   \---website
 |   |   |   FooWebApplication.class
 |   |   |   FooWebApplication$1.class
 |   |   |
 |   |   +---pages
 |   |   |   |   Index.class
 |   |   |   |
 |   |   |   \---about
 |   |   |   Index.class
 |   |   |
 |   |   \---templates
 |   |   PageTemplate.class
 |   |
 |   \---pages
 |   |   Index.html
 |   |   PageTemplate.html
 |   |
 |   \---about
 |   Index.html
 |
 \---lib
 commons-logging-1.0.4.jar
 log4j-1.2.12.jar
 wicket-1.2-20060227-0200-src.zip
 wicket-1.2-20060227-0200.jar

and having the markup-files and images in the same directory
structure at
design-time?

--
Best regards,
Thomas Singer


Johan Compagner schrieb:
 > if you don't want to make components for youre image or other
resource tags.
 > Then the only thing i can think of is that you put all youre
pages in
 > the doc root
 > and then all youre other stuff in images above that so
 >
 > Page.html
 > graphics/
 > style/
 >
 > The big problem with this at runtime is that youre wicket html
pages are
 > also accessible through an url
 > just ask for /foo/Page.html
 >
 > So then they just have youre wicket page without the touching of
wicket.
 >
 >
 > Also map youre wicket servlet not on /* but do it on /app/* or
something
 > so that the doc root is not also served through wicket servlet.
Thats a
 > waste.
 >
 > johan



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

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

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





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


Re: [Wicket-user] Re: Refreshing dynamic images

2006-03-02 Thread Gili


	Take a look at CachedLazyResource I posted here: 
http://sourceforge.net/tracker/index.php?func=detail&aid=1431567&group_id=119783&atid=684977


It works excellent for cached dynamic images.

Gili

Anders Peterson wrote:
1) "setCacheable": Done! With dynamic images it seems like a good idea 
to have this set to false by default.



2) "random number as a query parameter": I had thought about giving the 
images different names with each request, but I didn't know (still 
don't) how to do that. The generated html looks like this:


src="/BLApp/app?path=3:image2&interface=IResourceListener"/>


I'll look for documentation on how to do this...


3) "Set the headers on the response": You mean some header that tells 
the browser(s) not to cache the page - is there a standard for that? I 
have no idea which browsers will be used, and I want the app to work 
with any browser.



Thanks, /Anders


Anders Peterson wrote:

Hi,

On one page I'm displaying dynamic charts (JFreeChart) as images. The 
charts, the data they're based on, are constantly changed by the users.


The problem (as I understand it): The web browser doesn't know that 
the image has changed and therefore (sometimes) uses a cached image. 
Which means incorrect data is displayed.


How can I make sure the browser always asks for a fresh image?

/Anders


Image tmpImage2 = new Image("image2", new SpclChartResource() {

public AbstractChartFactory getFactory() {

this.setHeight(300);
this.setWidth(600);

DefaultCategoryDatasetFactory retVal = new 
DefaultCategoryDatasetFactory();

retVal.setLegend(true);
retVal.setType(AbstractChartFactory.TYPE_BarChart);
...





--
http://www.desktopbeautifier.com/


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


Re: [Wicket-user] Still link problems

2006-03-02 Thread Igor Vaynberg
still trickynotice that your Index.html is in pages dir and so is your PageTemplate.html, but the corresponding classes are in two different packages: com.foo.website.pages.Index.html and com.foo.website.templates.PageTemplate
 so somehow you need to handle that mapping. which you in fact can, you can say any class can look for its template in pages dir, but then you have about/Index.html mapped to com.foo.website.pages.about.Index.html which throws things off.
you can setup alternative loading of resources but unless you want to do some extensive mapping of your classes to template folders the easiest approach is to mirror your package structure in your template base dir structure.
what you have to do is to implement your own IResourceStreamLocator and add it to the resource settings. implementations of this interface are responsible for figuring out where the html template is for a given component and loading it.
you can achieve any effect you want using this, but remember you dont want to paint yourself into a corner so i would start simple and see how far that carries you.-Igor
On 3/2/06, Thomas Singer <[EMAIL PROTECTED]> wrote:
Would it be possible for wicket to handle such a after-deploy-structurewithout major head-aches:+---graphics|   logo.gif|\---WEB-INF |   web.xml | +---classes |   +---com
 |   |   \---foo |   |   \---website |   |   |   FooWebApplication.class |   |   |   FooWebApplication$1.class |   |   | |   |   +---pages
 |   |   |   |   Index.class |   |   |   | |   |   |   \---about |   |   |   Index.class |   |   | |   |   \---templates
 |   |   PageTemplate.class |   | |   \---pages |   |   Index.html |   |   PageTemplate.html |   | |   \---about |   
Index.html | \---lib commons-logging-1.0.4.jar log4j-1.2.12.jar wicket-1.2-20060227-0200-src.zip wicket-1.2-20060227-0200.jarand having the markup-files and images in the same directory structure at
design-time?--Best regards,Thomas SingerJohan Compagner schrieb:> if you don't want to make components for youre image or other resource tags.> Then the only thing i can think of is that you put all youre pages in
> the doc root> and then all youre other stuff in images above that so>> Page.html> graphics/> style/>> The big problem with this at runtime is that youre wicket html pages are
> also accessible through an url> just ask for /foo/Page.html>> So then they just have youre wicket page without the touching of wicket.>>> Also map youre wicket servlet not on /* but do it on /app/* or something
> so that the doc root is not also served through wicket servlet. Thats a> waste.>> johan---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Still link problems

2006-03-02 Thread Thomas Singer
Would it be possible for wicket to handle such a after-deploy-structure 
without major head-aches:


+---graphics
|   logo.gif
|
\---WEB-INF
|   web.xml
|
+---classes
|   +---com
|   |   \---foo
|   |   \---website
|   |   |   FooWebApplication.class
|   |   |   FooWebApplication$1.class
|   |   |
|   |   +---pages
|   |   |   |   Index.class
|   |   |   |
|   |   |   \---about
|   |   |   Index.class
|   |   |
|   |   \---templates
|   |   PageTemplate.class
|   |
|   \---pages
|   |   Index.html
|   |   PageTemplate.html
|   |
|   \---about
|   Index.html
|
\---lib
commons-logging-1.0.4.jar
log4j-1.2.12.jar
wicket-1.2-20060227-0200-src.zip
wicket-1.2-20060227-0200.jar

and having the markup-files and images in the same directory structure at 
design-time?


--
Best regards,
Thomas Singer


Johan Compagner schrieb:

if you don't want to make components for youre image or other resource tags.
Then the only thing i can think of is that you put all youre pages in 
the doc root

and then all youre other stuff in images above that so

Page.html
graphics/
style/

The big problem with this at runtime is that youre wicket html pages are 
also accessible through an url

just ask for /foo/Page.html

So then they just have youre wicket page without the touching of wicket.


Also map youre wicket servlet not on /* but do it on /app/* or something
so that the doc root is not also served through wicket servlet. Thats a 
waste.


johan




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


Re: [Wicket-user] AJAX-updated listview crashes occasionally

2006-03-02 Thread Igor Vaynberg
i think a LoadableDetachableModel would be good. it is attached once
per request and the data is held for the duration of the request. you
can have a sync block inside load() where you would copy the list from
your datasource into a local copy.

-Igor
On 3/2/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
One way could be to not update the model until you are attachingagain, or - kind of the same principle - update the model from thebuffer on detach. You still need some more synchronization though: theattach/ detach models need to be synchronized in that case, and you
want to do it it such a way that you don't have a bunch of clientswaiting for it.EelcoOn 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote:
>  Spoke too soon... that doesn't work and I see why. Let me think more to> come with a solution.>>  -Ramnivas>>>  Ramnivas Laddad wrote:>  Okay... I solved my problem by making the model thread-aware...
>>  class TestModel implements IModel {>  private List asyncBuffer = new ArrayList();>  private List underlying = new ArrayList();
>>  synchronized public Object getObject(Component component) {>  underlying.addAll(asyncBuffer);>  asyncBuffer.clear();>  return underlying;>  }
>>  synchronized public void add(String message) {>  asyncBuffer.add(message);>  }>>  public IModel getNestedModel() {>  return null;>  }
>>  public void setObject(Component component, Object object) {>  }>>  public void detach() {>  }>  }>>  Thanks Igor for your help.>
>  -Ramnivas>>  Ramnivas Laddad wrote:>  So more like the Swing's single thread policy... In that case, how do I> update model when I receive model data asynchronously? Does Wicket has> something like 
EventQueue.invokeLater() or EventQueue.invokeAndWait()?>>  -Ramnivas>>  Igor Vaynberg wrote:> doh, i guess i should have looked at the code before jumping to conclusions.> i assumed you were updating the listview in the callback of the ajax
> behavior. assumption is the mother of ...>>  you have a thread that is running unsynchronized! and updating the model of> the component.>>  we synchronize on the session for you so the code inside components you
> write does not have to be threadsafe. your TestModelUpdater breaks that.>>  so the listview maybe rendering and looping over its model WHILE your> thread adds another item to the list! that can cause all sorts of weird
> things.>>  long story short, you cannot have a run away thread updating wicket> components or their models. its not meant for that.>>  -Igor On 3/2/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:> >> > here is what i am getting after a minute or so> > interesting> >> > -Igor> >
> > 18:09:06.263 WARN!! Exception for> /quickstart/app?wicket:interface=:3:wmc:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=> 0.46824654938259036> >> > wicket.WicketRuntimeException
: Internal Error: Could not render error page> class wicket.markup.html.pages.InternalErrorPage> >> > at> wicket.request.compound.DefaultExceptionResponseStrategy.respond> (DefaultExceptionResponseStrategy.java
:106)> > at> wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:76)> > at wicket.RequestCycle.step(RequestCycle.java :971)
> >> > at wicket.RequestCycle.steps(RequestCycle.java:1005)> > at wicket.RequestCycle.request(RequestCycle.java:451)> >> > at> wicket.protocol.http.WicketServlet.doGet
(WicketServlet.java:209)> >> > at javax.servlet.http.HttpServlet.service> (HttpServlet.java:740)> > at> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)> > at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)> > at> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch> (WebApplicationHandler.java:294)> > at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)> > at> org.mortbay.http.HttpContext.handle(HttpContext.java:1807)> > at> org.mortbay.jetty.servlet.WebApplicationContext.handle
> (WebApplicationContext.java:525)> > at> org.mortbay.http.HttpContext.handle(HttpContext.java:1757)> > at> org.mortbay.http.HttpServer.service(HttpServer.java:879)> > at
> org.mortbay.http.HttpConnection.service(HttpConnection.java> :790)> > at> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)> > at> org.mortbay.http.HttpConnection.handle
(HttpConnection.java:807)> > at> org.mortbay.http.SocketListener.handleConnection(SocketListener.java> :218)> > at> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java
:300)> > at> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)> >> > Caused by: java.lang.ClassCastException:> wicket.ajax.AjaxRequestTarget$EncodingResponse
> > at> wicket.protocol.http.WebRequestCycle.getWebResponse(WebRequestCycle.java:99)> > at> wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:130)> > 

Re: [Wicket-user] AJAX-updated listview crashes occasionally

2006-03-02 Thread Eelco Hillenius
One way could be to not update the model until you are attaching
again, or - kind of the same principle - update the model from the
buffer on detach. You still need some more synchronization though: the
attach/ detach models need to be synchronized in that case, and you
want to do it it such a way that you don't have a bunch of clients
waiting for it.

Eelco

On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote:
>  Spoke too soon... that doesn't work and I see why. Let me think more to
> come with a solution.
>
>  -Ramnivas
>
>
>  Ramnivas Laddad wrote:
>  Okay... I solved my problem by making the model thread-aware...
>
>  class TestModel implements IModel {
>  private List asyncBuffer = new ArrayList();
>  private List underlying = new ArrayList();
>
>  synchronized public Object getObject(Component component) {
>  underlying.addAll(asyncBuffer);
>  asyncBuffer.clear();
>  return underlying;
>  }
>
>  synchronized public void add(String message) {
>  asyncBuffer.add(message);
>  }
>
>  public IModel getNestedModel() {
>  return null;
>  }
>
>  public void setObject(Component component, Object object) {
>  }
>
>  public void detach() {
>  }
>  }
>
>  Thanks Igor for your help.
>
>  -Ramnivas
>
>  Ramnivas Laddad wrote:
>  So more like the Swing's single thread policy... In that case, how do I
> update model when I receive model data asynchronously? Does Wicket has
> something like EventQueue.invokeLater() or EventQueue.invokeAndWait()?
>
>  -Ramnivas
>
>  Igor Vaynberg wrote:
> doh, i guess i should have looked at the code before jumping to conclusions.
> i assumed you were updating the listview in the callback of the ajax
> behavior. assumption is the mother of ...
>
>  you have a thread that is running unsynchronized! and updating the model of
> the component.
>
>  we synchronize on the session for you so the code inside components you
> write does not have to be threadsafe. your TestModelUpdater breaks that.
>
>  so the listview maybe rendering and looping over its model WHILE your
> thread adds another item to the list! that can cause all sorts of weird
> things.
>
>  long story short, you cannot have a run away thread updating wicket
> components or their models. its not meant for that.
>
>  -Igor
>
>
>
> On 3/2/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > here is what i am getting after a minute or so
> > interesting
> >
> > -Igor
> >
> > 18:09:06.263 WARN!! Exception for
> /quickstart/app?wicket:interface=:3:wmc:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=
> 0.46824654938259036
> >
> > wicket.WicketRuntimeException: Internal Error: Could not render error page
> class wicket.markup.html.pages.InternalErrorPage
> >
> > at
> wicket.request.compound.DefaultExceptionResponseStrategy.respond
> (DefaultExceptionResponseStrategy.java:106)
> > at
> wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:76)
> > at wicket.RequestCycle.step(RequestCycle.java :971)
> >
> > at wicket.RequestCycle.steps(RequestCycle.java:1005)
> > at wicket.RequestCycle.request(RequestCycle.java:451)
> >
> > at
> wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:209)
> >
> > at javax.servlet.http.HttpServlet.service
> (HttpServlet.java:740)
> > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
> > at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> (WebApplicationHandler.java:294)
> > at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
> > at
> org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
> > at
> org.mortbay.jetty.servlet.WebApplicationContext.handle
> (WebApplicationContext.java:525)
> > at
> org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
> > at
> org.mortbay.http.HttpServer.service(HttpServer.java:879)
> > at
> org.mortbay.http.HttpConnection.service(HttpConnection.java
> :790)
> > at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
> > at
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
> > at
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java
> :218)
> > at
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
> > at
> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
> >
> > Caused by: java.lang.ClassCastException:
> wicket.ajax.AjaxRequestTarget$EncodingResponse
> > at
> wicket.protocol.http.WebRequestCycle.getWebResponse(WebRequestCycle.java:99)
> > at
> wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:130)
> > at
> wicket.request.target.component.PageRequestTarget.respond
> (PageRequestTarget.java:60)
> >
> > at
> wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStra

Re: [Wicket-user] AJAX-updated listview crashes occasionally

2006-03-02 Thread Ramnivas Laddad




Spoke too soon... that doesn't work and I see why. Let me think more to
come with a solution.

-Ramnivas

Ramnivas Laddad wrote:

  
Okay... I solved my problem by making the model thread-aware...
  
class TestModel implements IModel {
    private List asyncBuffer = new
ArrayList();
    private List underlying = new
ArrayList();
    
    synchronized public Object getObject(Component component) {
    underlying.addAll(asyncBuffer);
    asyncBuffer.clear();
    return underlying;
    }
  
    synchronized public void add(String message) {
    asyncBuffer.add(message);
    }
    
    public IModel getNestedModel() {
    return null;
    }
  
    public void setObject(Component component, Object object) {
    }
  
    public void detach() {
    }
}
  
Thanks Igor for your help.
  
-Ramnivas
  
Ramnivas Laddad wrote:
  


So more like the Swing's single thread policy... In that case, how do I
update model when I receive model data asynchronously? Does Wicket has
something like EventQueue.invokeLater() or EventQueue.invokeAndWait()?

-Ramnivas

Igor Vaynberg wrote:
doh, i guess i should have looked at the code before
jumping to conclusions. i assumed you were updating the listview in the
callback of the ajax behavior. assumption is the mother of ...
  
you have a thread that is running unsynchronized! and updating the
model of the component. 
  
we synchronize on the session for you so the code inside components you
write does not have to be threadsafe. your TestModelUpdater breaks that.
  
so the listview maybe rendering and looping over its model WHILE your
thread adds another item to the list! that can cause all sorts of weird
things. 
  
long story short, you cannot have a run away thread updating wicket
components or their models. its not meant for that.
  
-Igor
  
  
  On 3/2/06, 
Igor Vaynberg <[EMAIL PROTECTED]>
wrote:
  
here is what i am getting after a
minute or so
interesting

-Igor

18:09:06.263 WARN!! Exception for
/quickstart/app?wicket:interface=:3:wmc:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=
0.46824654938259036

wicket.WicketRuntimeException: Internal Error: Could not render error
page class wicket.markup.html.pages.InternalErrorPage

    at
wicket.request.compound.DefaultExceptionResponseStrategy.respond
(DefaultExceptionResponseStrategy.java:106)
    at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:76)
    at wicket.RequestCycle.step(RequestCycle.java
:971)

    at wicket.RequestCycle.steps(RequestCycle.java:1005)
    at wicket.RequestCycle.request(RequestCycle.java:451)

    at
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:209)

    at javax.servlet.http.HttpServlet.service
(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
    at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
(WebApplicationHandler.java:294)
    at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
    at org.mortbay.jetty.servlet.WebApplicationContext.handle
(WebApplicationContext.java:525)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
    at org.mortbay.http.HttpServer.service(HttpServer.java:879)
    at org.mortbay.http.HttpConnection.service(HttpConnection.java
:790)
    at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
    at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
    at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java
:218)
    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)

Caused by:
java.lang.ClassCastException:
wicket.ajax.AjaxRequestTarget$EncodingResponse 
    at
wicket.protocol.http.WebRequestCycle.getWebResponse(WebRequestCycle.java:99)
    at
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:130)
    at wicket.request.target.component.PageRequestTarget.respond
(PageRequestTarget.java:60)

    at
wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47)
    at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond
(AbstractCompoundRequestCycleProcessor.java
:66)

    at
wicket.RequestCycle.respond(RequestCycle.java:877)
    at wicket.RequestCycle.step(RequestCycle.java:946)
    ... 18 more




On 3/2/06, 
Ramnivas Laddad <[EMAIL PROTECTED]>
wrote:

   Sending again. Sourceforge is
rejecting .zip attachment, so please
change extension of the attached file to .zip.
  
-Ramnivas
===
Here it is... (

Re: [Wicket-user] AJAX-updated listview crashes occasionally

2006-03-02 Thread Ramnivas Laddad




Okay... I solved my problem by making the model thread-aware...

class TestModel implements IModel {
    private List asyncBuffer = new
ArrayList();
    private List underlying = new
ArrayList();
    
    synchronized public Object getObject(Component component) {
    underlying.addAll(asyncBuffer);
    asyncBuffer.clear();
    return underlying;
    }

    synchronized public void add(String message) {
    asyncBuffer.add(message);
    }
    
    public IModel getNestedModel() {
    return null;
    }

    public void setObject(Component component, Object object) {
    }

    public void detach() {
    }
}

Thanks Igor for your help.

-Ramnivas

Ramnivas Laddad wrote:

  
  
So more like the Swing's single thread policy... In that case, how do I
update model when I receive model data asynchronously? Does Wicket has
something like EventQueue.invokeLater() or EventQueue.invokeAndWait()?
  
-Ramnivas
  
Igor Vaynberg wrote:
  doh, i guess i should have looked at the code before
jumping to conclusions. i assumed you were updating the listview in the
callback of the ajax behavior. assumption is the mother of ...

you have a thread that is running unsynchronized! and updating the
model of the component. 

we synchronize on the session for you so the code inside components you
write does not have to be threadsafe. your TestModelUpdater breaks that.

so the listview maybe rendering and looping over its model WHILE your
thread adds another item to the list! that can cause all sorts of weird
things. 

long story short, you cannot have a run away thread updating wicket
components or their models. its not meant for that.

-Igor


On 3/2/06, 
Igor Vaynberg <[EMAIL PROTECTED]>
wrote:

  here is what i am getting after a
minute or so
interesting
  
-Igor
  
18:09:06.263 WARN!! Exception for
/quickstart/app?wicket:interface=:3:wmc:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=
0.46824654938259036
  
wicket.WicketRuntimeException: Internal Error: Could not render error
page class wicket.markup.html.pages.InternalErrorPage
  
      at
wicket.request.compound.DefaultExceptionResponseStrategy.respond
(DefaultExceptionResponseStrategy.java:106)
    at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:76)
    at wicket.RequestCycle.step(RequestCycle.java
:971)
  
    at wicket.RequestCycle.steps(RequestCycle.java:1005)
    at wicket.RequestCycle.request(RequestCycle.java:451)
  
      at
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:209)
  
    at javax.servlet.http.HttpServlet.service
(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
    at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
(WebApplicationHandler.java:294)
    at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
    at org.mortbay.jetty.servlet.WebApplicationContext.handle
(WebApplicationContext.java:525)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
    at org.mortbay.http.HttpServer.service(HttpServer.java:879)
    at org.mortbay.http.HttpConnection.service(HttpConnection.java
:790)
    at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
    at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
    at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java
:218)
    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
  
  Caused by:
java.lang.ClassCastException:
wicket.ajax.AjaxRequestTarget$EncodingResponse 
    at
wicket.protocol.http.WebRequestCycle.getWebResponse(WebRequestCycle.java:99)
    at
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:130)
    at wicket.request.target.component.PageRequestTarget.respond
(PageRequestTarget.java:60)
  
      at
wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47)
    at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond
(AbstractCompoundRequestCycleProcessor.java
:66)
  
      at
wicket.RequestCycle.respond(RequestCycle.java:877)
    at wicket.RequestCycle.step(RequestCycle.java:946)
    ... 18 more
  
  
  
  
  On 3/2/06, 
Ramnivas Laddad <[EMAIL PROTECTED]>
wrote:
  
 Sending again. Sourceforge is
rejecting .zip attachment, so please
change extension of the attached file to .zip.

-Ramnivas
===
Here it is... (removed lib/*.jar to cut down size).


-Ramnivas


Igor Vaynberg wrote:
any chance you can stick those two files into a quickstart
project?
  
-Igor
  
  
  

Re: [Wicket-user] AJAX-updated listview crashes occasionally

2006-03-02 Thread Ramnivas Laddad




So more like the Swing's single thread policy... In that case, how do I
update model when I receive model data asynchronously? Does Wicket has
something like EventQueue.invokeLater() or EventQueue.invokeAndWait()?

-Ramnivas

Igor Vaynberg wrote:
doh, i guess i should have looked at the code before
jumping to conclusions. i assumed you were updating the listview in the
callback of the ajax behavior. assumption is the mother of ...
  
you have a thread that is running unsynchronized! and updating the
model of the component.
  
  
we synchronize on the session for you so the code inside components you
write does not have to be threadsafe. your TestModelUpdater breaks that.
  
so the listview maybe rendering and looping over its model WHILE your
thread adds another item to the list! that can cause all sorts of weird
things.
  
  
long story short, you cannot have a run away thread updating wicket
components or their models. its not meant for that.
  
-Igor
  
  
  On 3/2/06, 
Igor Vaynberg <[EMAIL PROTECTED]>
wrote:
  
here is what i am getting after a
minute or so
interesting

-Igor

18:09:06.263 WARN!! Exception for
/quickstart/app?wicket:interface=:3:wmc:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=
0.46824654938259036

wicket.WicketRuntimeException: Internal Error: Could not render error
page class wicket.markup.html.pages.InternalErrorPage

    at
wicket.request.compound.DefaultExceptionResponseStrategy.respond
(DefaultExceptionResponseStrategy.java:106)
    at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:76)
    at wicket.RequestCycle.step(RequestCycle.java
:971)

    at wicket.RequestCycle.steps(RequestCycle.java:1005)
    at wicket.RequestCycle.request(RequestCycle.java:451)

    at
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:209)

    at javax.servlet.http.HttpServlet.service
(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
    at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
(WebApplicationHandler.java:294)
    at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
    at org.mortbay.jetty.servlet.WebApplicationContext.handle
(WebApplicationContext.java:525)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
    at org.mortbay.http.HttpServer.service(HttpServer.java:879)
    at org.mortbay.http.HttpConnection.service(HttpConnection.java
:790)
    at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
    at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
    at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java
:218)
    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)

Caused by:
java.lang.ClassCastException:
wicket.ajax.AjaxRequestTarget$EncodingResponse

    at
wicket.protocol.http.WebRequestCycle.getWebResponse(WebRequestCycle.java:99)
    at
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:130)
    at wicket.request.target.component.PageRequestTarget.respond
(PageRequestTarget.java:60)

    at
wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47)
    at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond
(AbstractCompoundRequestCycleProcessor.java
:66)

    at
wicket.RequestCycle.respond(RequestCycle.java:877)
    at wicket.RequestCycle.step(RequestCycle.java:946)
    ... 18 more




On 3/2/06, 
Ramnivas Laddad <[EMAIL PROTECTED]>
wrote:

   Sending again. Sourceforge is
rejecting .zip attachment, so please
change extension of the attached file to .zip.
  
-Ramnivas
===
Here it is... (removed lib/*.jar to cut down size).
  
  
-Ramnivas
  
  
Igor Vaynberg wrote:
  any chance you can stick those two files into a quickstart
project?

-Igor


On 3/2/06, Ramnivas
Laddad <
[EMAIL PROTECTED]> wrote:
Hi,
  
I now have an AJAXified listview working. However, occasionally (very 
frequently on a real application and less frequently on a simplified
application :-() it crashes (program and stack trace at the end of this
email).
  
I have an updater thread that adds new entries to the model for the 
listview.
  
A few observations:
1. In the onRender() method, size returned by getViewSize() is 1, and
the index of the item to be rendered is 1. This all seems correct, as
the updater thread has just added a new item. However, item returned by
  
(ListItem)get(Integer.toString(index)) is null.
  
2. When the crashed view is re-rendered, I do no see the following
snippet in mark

Re: [Wicket-user] AJAX-updated listview crashes occasionally

2006-03-02 Thread Igor Vaynberg
doh, i guess i should have looked at the code before jumping to conclusions. i assumed you were updating the listview in the callback of the ajax behavior. assumption is the mother of ...you have a thread that is running unsynchronized! and updating the model of the component.
we synchronize on the session for you so the code inside components you write does not have to be threadsafe. your TestModelUpdater breaks that.so the listview maybe rendering and looping over its model WHILE your thread adds another item to the list! that can cause all sorts of weird things.
long story short, you cannot have a run away thread updating wicket components or their models. its not meant for that.-IgorOn 3/2/06, 
Igor Vaynberg <[EMAIL PROTECTED]> wrote:
here is what i am getting after a minute or sointeresting-Igor18:09:06.263 WARN!! Exception for /quickstart/app?wicket:interface=:3:wmc:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=
0.46824654938259036wicket.WicketRuntimeException: Internal Error: Could not render error page class wicket.markup.html.pages.InternalErrorPage
    at wicket.request.compound.DefaultExceptionResponseStrategy.respond
(DefaultExceptionResponseStrategy.java:106)    at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:76)    at wicket.RequestCycle.step(RequestCycle.java

:971)    at wicket.RequestCycle.steps(RequestCycle.java:1005)    at wicket.RequestCycle.request(RequestCycle.java:451)
    at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:209)    at javax.servlet.http.HttpServlet.service
(HttpServlet.java:740)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)    at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch

(WebApplicationHandler.java:294)    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)    at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)    at org.mortbay.jetty.servlet.WebApplicationContext.handle

(WebApplicationContext.java:525)    at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)    at org.mortbay.http.HttpServer.service(HttpServer.java:879)    at org.mortbay.http.HttpConnection.service(HttpConnection.java

:790)    at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)    at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)    at org.mortbay.http.SocketListener.handleConnection(SocketListener.java

:218)    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)Caused by: 
java.lang.ClassCastException: wicket.ajax.AjaxRequestTarget$EncodingResponse
    at wicket.protocol.http.WebRequestCycle.getWebResponse(WebRequestCycle.java:99)    at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:130)    at wicket.request.target.component.PageRequestTarget.respond

(PageRequestTarget.java:60)    at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47)    at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond
(AbstractCompoundRequestCycleProcessor.java
:66)    at wicket.RequestCycle.respond(RequestCycle.java:877)    at wicket.RequestCycle.step(RequestCycle.java:946)    ... 18 more
On 3/2/06, 
Ramnivas Laddad <[EMAIL PROTECTED]> wrote:




  


Sending again. Sourceforge is rejecting .zip attachment, so please
change extension of the attached file to .zip.

-Ramnivas
===
Here it is... (removed lib/*.jar to cut down size).

-Ramnivas

Igor Vaynberg wrote:
any chance you can stick those two files into a quickstart
project?
  
-Igor
  
  
  On 3/2/06, Ramnivas
Laddad <
[EMAIL PROTECTED]> wrote:
  Hi,

I now have an AJAXified listview working. However, occasionally (very 
frequently on a real application and less frequently on a simplified
application :-() it crashes (program and stack trace at the end of this
email).

I have an updater thread that adds new entries to the model for the 
listview.

A few observations:
1. In the onRender() method, size returned by getViewSize() is 1, and
the index of the item to be rendered is 1. This all seems correct, as
the updater thread has just added a new item. However, item returned by

(ListItem)get(Integer.toString(index)) is null.

2. When the crashed view is re-rendered, I do no see the following
snippet in markup produced:

type="text/_javascript_" 

src=""> As a result, no AJAX updates take place. While it seems to be concurrency-related bug, the model itself as I have written seems thread-safe. Thanks. -Ramnivas Source code: == public class AJAXListHome extends WebPage { public AJAXListHome() { TestModel model = new TestModel(); WebMarkupContainer wmc = new WebMarkupContainer("wmc"); add(wmc); ListView testListView = new

Re: [Wicket-user] AJAX-updated listview crashes occasionally

2006-03-02 Thread Igor Vaynberg
here is what i am getting after a minute or sointeresting-Igor18:09:06.263 WARN!! Exception for /quickstart/app?wicket:interface=:3:wmc:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=
0.46824654938259036wicket.WicketRuntimeException: Internal Error: Could not render error page class wicket.markup.html.pages.InternalErrorPage    at wicket.request.compound.DefaultExceptionResponseStrategy.respond
(DefaultExceptionResponseStrategy.java:106)    at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:76)    at wicket.RequestCycle.step(RequestCycle.java
:971)    at wicket.RequestCycle.steps(RequestCycle.java:1005)    at wicket.RequestCycle.request(RequestCycle.java:451)    at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:209)    at javax.servlet.http.HttpServlet.service
(HttpServlet.java:740)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)    at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
(WebApplicationHandler.java:294)    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)    at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)    at org.mortbay.jetty.servlet.WebApplicationContext.handle
(WebApplicationContext.java:525)    at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)    at org.mortbay.http.HttpServer.service(HttpServer.java:879)    at org.mortbay.http.HttpConnection.service(HttpConnection.java
:790)    at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)    at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)    at org.mortbay.http.SocketListener.handleConnection(SocketListener.java
:218)    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)Caused by: java.lang.ClassCastException: wicket.ajax.AjaxRequestTarget$EncodingResponse
    at wicket.protocol.http.WebRequestCycle.getWebResponse(WebRequestCycle.java:99)    at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:130)    at wicket.request.target.component.PageRequestTarget.respond
(PageRequestTarget.java:60)    at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47)    at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java
:66)    at wicket.RequestCycle.respond(RequestCycle.java:877)    at wicket.RequestCycle.step(RequestCycle.java:946)    ... 18 moreOn 3/2/06, 
Ramnivas Laddad <[EMAIL PROTECTED]> wrote:



  


Sending again. Sourceforge is rejecting .zip attachment, so please
change extension of the attached file to .zip.

-Ramnivas
===
Here it is... (removed lib/*.jar to cut down size).

-Ramnivas

Igor Vaynberg wrote:
any chance you can stick those two files into a quickstart
project?
  
-Igor
  
  
  On 3/2/06, Ramnivas
Laddad <
[EMAIL PROTECTED]> wrote:
  Hi,

I now have an AJAXified listview working. However, occasionally (very 
frequently on a real application and less frequently on a simplified
application :-() it crashes (program and stack trace at the end of this
email).

I have an updater thread that adds new entries to the model for the 
listview.

A few observations:
1. In the onRender() method, size returned by getViewSize() is 1, and
the index of the item to be rendered is 1. This all seems correct, as
the updater thread has just added a new item. However, item returned by

(ListItem)get(Integer.toString(index)) is null.

2. When the crashed view is re-rendered, I do no see the following
snippet in markup produced:

type="text/_javascript_" 

src=""> As a result, no AJAX updates take place. While it seems to be concurrency-related bug, the model itself as I have written seems thread-safe. Thanks. -Ramnivas Source code: == public class AJAXListHome extends WebPage { public AJAXListHome() { TestModel model = new TestModel(); WebMarkupContainer wmc = new WebMarkupContainer("wmc"); add(wmc); ListView testListView = new TestListView("dates", model); wmc.add(testListView); wmc.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(2))); new Thread(new TestModelUpdater(model, testListView)).start(); } } class TestListView extends ListView { public TestListView(String id, TestModel model) { super(id, model); } @Override protected void populateItem(ListItem item) { String date = (String)item.getModelObject(); item.add(new Label("date", date)); } } class TestModel implements IModel { private List underlying = new ArrayList(); synchronized public Object getObject(Component component) { return underlying; } synchronized public void add(String me

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

2006-03-02 Thread R.A

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 just
one 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 webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView not working with AJAX

2006-03-02 Thread Eelco Hillenius
Nice

Eelco

On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote:
>  Of course, for me, an enforcement aspect does the job :-).
>
>  The following version reflects my current understanding, but over time a
> more general purpose selection logic (the pointcut) and more enforcements
> can be added.
>
>  package com.aspectivity.wicket.policyEnforcement;
>
>  import wicket.Component;
>  import wicket.markup.html.list.ListView;
>  import wicket.behavior.IBehavior;
>  import wicket.behavior.AbstractAjaxBehavior;
>
>  public aspect BehaviorPolicyEnforcementAspect {
>  before() : call(Component Component.add(IBehavior))
> && target(ListView)
> && args(AbstractAjaxBehavior) {
>  throw new IllegalArgumentException(
>  "Adding AJAX behaviors to listview will have no effect."
>+ "Consider wrapping the listview in a WebMarkupContainer "
>+ "and adding the behavior to it instead");
>  }
>  }
>
>  -Ramnivas
>
>
>  Igor Vaynberg wrote:
> this would be a pain to maintain. we cant just lock out /all/ behaviors from
> being added to listview, some might make sense.
>
>  -Igor
>
>
>
> On 3/2/06, Riyad Kalla <[EMAIL PROTECTED]> wrote:
> > I second this request (about runtime notification of invalid states)
> >
> > On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote:
> > >  Thanks, Igor. It works now.
> > >
> > >  Would it be possible to throw an exception when someone tries to add an
> > > unacceptable Behavior such as AjaxSelfUpdatingTimerBehavior to a
> listview
> > > (or any other class doesn't produce any markup itself).
> > >
> > >  -Ramnivas
> > >
> > >
> > >  Igor Vaynberg wrote:
> > > you cannot update a listview itself directly because it does not produce
> any
> > > markup itself. you need to put it into a webmarkupcontainer and attach
> the
> > > update behavior to that.
> > >
> > >  WebMarkupContainer wmc=new WebMarkupContainer("wmc");
> > >  wmcv
> > >  add(wmc);
> > >  wmc.add(new ListView(
> > >  wmc.add(new AjaxSelfUpdatingBehavio.
> > >
> > >  and in markup ...listview
> > >
> > >  -Igor
> > >
> > >
> > >
> > > On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I have a ListView with a dynamic model. I am trying to update the view
> > > > using AjaxSelfUpdatingTimerBehavior. It doesn't seem to be working,
> > > > however (with snapshot version 20060227-0200). It seems that the
> > > > AjaxSelfUpdatingTimerBehavior.onTimer() methods gets
> > > called only once.
> > > >
> > > > The following code (a much simplified version of the real code)
> > > > illustrates the problem.
> > > >
> > > > -Ramnivas
> > > >
> > > > public class AJAXListHome extends WebPage {
> > > > public AJAXListHome() {
> > > > ListView testListView = new TestListView("dates");
> > > > add(testListView);
> > > > testListView.add(new
> > > > AjaxSelfUpdatingTimerBehavior( Duration.seconds(5)));
> > > > }
> > > > }
> > > >
> > > > class TestListView extends ListView {
> > > > public TestListView(String id) {
> > > > super(id);
> > > > }
> > > >
> > > > public IModel getModel() {
> > > > List list = new ArrayList();
> > > > list.add(new Date().toString());
> > > > return new Model((Serializable)list);
> > > > }
> > > >
> > > > @Override
> > > > protected void populateItem(ListItem item) {
> > > > String date = (String)item.getModelObject();
> > > > item.add(new Label("date", date));
> > > > }
> > > > }
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> ---
> > > > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > > language
> > > > that extends applications into web and mobile media. Attend the live
> > > webcast
> > > > and join the prime developer group breaking into this new coding
> > > territory!
> > > >
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> > >
> ---
> > > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > > that extends applications into web and mobile media. Attend the live
> webcast
> > > and join the prime developer group breaking into this new coding
> territory!
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > > ___
> Wicket-user
> > > mailing list Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
>

Re: [Wicket-user] ListView not working with AJAX

2006-03-02 Thread Ramnivas Laddad




Of course, for me, an enforcement aspect does the job :-). 

The following version reflects my current understanding, but over time
a more general purpose selection logic (the pointcut) and more
enforcements can be added.

package com.aspectivity.wicket.policyEnforcement;

import wicket.Component;
import wicket.markup.html.list.ListView;
import wicket.behavior.IBehavior;
import wicket.behavior.AbstractAjaxBehavior;

public aspect BehaviorPolicyEnforcementAspect {
    before() : call(Component Component.add(IBehavior)) 
   && target(ListView)
   && args(AbstractAjaxBehavior) {
    throw new IllegalArgumentException(
    "Adding AJAX behaviors to listview will have no effect."
  + "Consider wrapping the listview in a WebMarkupContainer
"
  + "and adding the behavior to it instead");
    }
}

-Ramnivas

Igor Vaynberg wrote:
this would be a pain to maintain. we cant just lock out
/all/ behaviors from being added to listview, some might make sense.
  
-Igor
  
  
  On 3/2/06, Riyad
Kalla
   <[EMAIL PROTECTED]>
wrote:
  I
second this request (about runtime notification of invalid states)


On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]>
wrote:
>  Thanks, Igor. It works now.
>
>  Would it be possible to throw an exception when someone tries to
add an

> unacceptable Behavior such as AjaxSelfUpdatingTimerBehavior to a
listview
> (or any other class doesn't produce any markup itself).
>
>  -Ramnivas
>
>
>  Igor Vaynberg wrote:
> you cannot update a listview itself directly because it does not
produce any
> markup itself. you need to put it into a webmarkupcontainer and
attach the
> update behavior to that.
>
>  WebMarkupContainer wmc=new WebMarkupContainer("wmc");

>  wmcv
>  add(wmc);
>  wmc.add(new ListView(
>  wmc.add(new AjaxSelfUpdatingBehavio.
>
>  and in markup ...listview
>

>  -Igor
>
>
>
> On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]>
wrote:
> > Hi,
> >
> > I have a ListView with a dynamic model. I am trying to update
the view

> > using AjaxSelfUpdatingTimerBehavior. It doesn't seem to be
working,
> > however (with snapshot version 20060227-0200). It seems that
the
> > AjaxSelfUpdatingTimerBehavior.onTimer() methods gets

> called only once.
> >
> > The following code (a much simplified version of the real
code)
> > illustrates the problem.
> >
> > -Ramnivas
> >
> > public class AJAXListHome extends WebPage {

> > public AJAXListHome() {
> > ListView testListView = new TestListView("dates");
> > add(testListView);
> > testListView.add(new
> > AjaxSelfUpdatingTimerBehavior(
Duration.seconds(5)));
> > }
> > }
> >
> > class TestListView extends ListView {
> > public TestListView(String id) {
> > super(id);
> > }

> >
> > public IModel getModel() {
> > List list = new
ArrayList();
> > list.add(new Date().toString());
> > return new Model((Serializable)list);

> > }
> >
> > @Override
> > protected void populateItem(ListItem item) {
> > String date = (String)item.getModelObject();
> > item.add(new Label("date", date));

> > }
> > }
> >
> >
> >
> >
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking
scripting

> language
> > that extends applications into web and mobile media. Attend
the live
> webcast
> > and join the prime developer group breaking into this new
coding
> territory!
> >

> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > ___

> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > 
https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>  ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
language

> that extends applications into web and mobile media. Attend the
live webcast
> and join the prime developer group breaking into this new coding
territory!
> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___ Wicket-user
> mailing list 
Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


---

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

http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___

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

  
  
  





--

Re: [Wicket-user] ListView not working with AJAX

2006-03-02 Thread Igor Vaynberg
this would be a pain to maintain. we cant just lock out /all/ behaviors from being added to listview, some might make sense.-IgorOn 3/2/06, Riyad Kalla
 <[EMAIL PROTECTED]> wrote:I second this request (about runtime notification of invalid states)
On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote:>  Thanks, Igor. It works now.>>  Would it be possible to throw an exception when someone tries to add an
> unacceptable Behavior such as AjaxSelfUpdatingTimerBehavior to a listview> (or any other class doesn't produce any markup itself).>>  -Ramnivas>>>  Igor Vaynberg wrote:
> you cannot update a listview itself directly because it does not produce any> markup itself. you need to put it into a webmarkupcontainer and attach the> update behavior to that.>>  WebMarkupContainer wmc=new WebMarkupContainer("wmc");
>  wmcv>  add(wmc);>  wmc.add(new ListView(>  wmc.add(new AjaxSelfUpdatingBehavio.>>  and in markup ...listview>
>  -Igor On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote:> > Hi,> >> > I have a ListView with a dynamic model. I am trying to update the view
> > using AjaxSelfUpdatingTimerBehavior. It doesn't seem to be working,> > however (with snapshot version 20060227-0200). It seems that the> > AjaxSelfUpdatingTimerBehavior.onTimer() methods gets
> called only once.> >> > The following code (a much simplified version of the real code)> > illustrates the problem.> >> > -Ramnivas> >> > public class AJAXListHome extends WebPage {
> > public AJAXListHome() {> > ListView testListView = new TestListView("dates");> > add(testListView);> > testListView.add(new> > AjaxSelfUpdatingTimerBehavior(
Duration.seconds(5)));> > }> > }> >> > class TestListView extends ListView {> > public TestListView(String id) {> > super(id);> > }
> >> > public IModel getModel() {> > List list = new ArrayList();> > list.add(new Date().toString());> > return new Model((Serializable)list);
> > }> >> > @Override> > protected void populateItem(ListItem item) {> > String date = (String)item.getModelObject();> > item.add(new Label("date", date));
> > }> > }> >> >> >> >> >> >> > ---> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language> > that extends applications into web and mobile media. Attend the live> webcast> > and join the prime developer group breaking into this new coding> territory!> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> > ___
> > Wicket-user mailing list> > Wicket-user@lists.sourceforge.net> > 
https://lists.sourceforge.net/lists/listinfo/wicket-user>   ---> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast> and join the prime developer group breaking into this new coding territory!> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> ___ Wicket-user> mailing list 
Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



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

2006-03-02 Thread Igor Vaynberg
TabbedPanel is a good example of replacing panels. it lives in wicket-extensions.-IgorOn 3/2/06, Eelco Hillenius <
[EMAIL PROTECTED]> wrote:> However, at any time the user can re-set the options and re-submit,
> causing a completely different DataTable based on a new DataProvider.First of all, ask yourself whether it is a completely differentdatatable, or whether the it's just a different model.> What tools does Wicket provide to allow me to replace one DataTable with
> a new one?  Or, to be more general, 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.)If it *is* a completely different datatable and you want to replace itwith something completely different, use panels. Put your differentoptions in different panels, and use 'replace' to replace one
component with the other.Deleting is not allowed as that would result in an inconsistencebetween the component hierarchy and the markup. However, you canalways replace with an empty panel.Eelco
---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView not working with AJAX

2006-03-02 Thread Riyad Kalla
I second this request (about runtime notification of invalid states)

On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote:
>  Thanks, Igor. It works now.
>
>  Would it be possible to throw an exception when someone tries to add an
> unacceptable Behavior such as AjaxSelfUpdatingTimerBehavior to a listview
> (or any other class doesn't produce any markup itself).
>
>  -Ramnivas
>
>
>  Igor Vaynberg wrote:
> you cannot update a listview itself directly because it does not produce any
> markup itself. you need to put it into a webmarkupcontainer and attach the
> update behavior to that.
>
>  WebMarkupContainer wmc=new WebMarkupContainer("wmc");
>  wmcv
>  add(wmc);
>  wmc.add(new ListView(
>  wmc.add(new AjaxSelfUpdatingBehavio.
>
>  and in markup ...listview
>
>  -Igor
>
>
>
> On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I have a ListView with a dynamic model. I am trying to update the view
> > using AjaxSelfUpdatingTimerBehavior. It doesn't seem to be working,
> > however (with snapshot version 20060227-0200). It seems that the
> > AjaxSelfUpdatingTimerBehavior.onTimer() methods gets
> called only once.
> >
> > The following code (a much simplified version of the real code)
> > illustrates the problem.
> >
> > -Ramnivas
> >
> > public class AJAXListHome extends WebPage {
> > public AJAXListHome() {
> > ListView testListView = new TestListView("dates");
> > add(testListView);
> > testListView.add(new
> > AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
> > }
> > }
> >
> > class TestListView extends ListView {
> > public TestListView(String id) {
> > super(id);
> > }
> >
> > public IModel getModel() {
> > List list = new ArrayList();
> > list.add(new Date().toString());
> > return new Model((Serializable)list);
> > }
> >
> > @Override
> > protected void populateItem(ListItem item) {
> > String date = (String)item.getModelObject();
> > item.add(new Label("date", date));
> > }
> > }
> >
> >
> >
> >
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>  ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___ Wicket-user
> mailing list Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


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


Re: [Wicket-user] AJAX-updated listview crashes occasionally

2006-03-02 Thread Ramnivas Laddad




Sending again. Sourceforge is rejecting .zip attachment, so please
change extension of the attached file to .zip.

-Ramnivas
===
Here it is... (removed lib/*.jar to cut down size).

-Ramnivas

Igor Vaynberg wrote:
any chance you can stick those two files into a quickstart
project?
  
-Igor
  
  
  On 3/2/06, Ramnivas
Laddad <
[EMAIL PROTECTED]> wrote:
  Hi,

I now have an AJAXified listview working. However, occasionally (very 
frequently on a real application and less frequently on a simplified
application :-() it crashes (program and stack trace at the end of this
email).

I have an updater thread that adds new entries to the model for the 
listview.

A few observations:
1. In the onRender() method, size returned by getViewSize() is 1, and
the index of the item to be rendered is 1. This all seems correct, as
the updater thread has just added a new item. However, item returned by

(ListItem)get(Integer.toString(index)) is null.

2. When the crashed view is re-rendered, I do no see the following
snippet in markup produced:

type="text/_javascript_" 

src="">
As a result, no AJAX updates take place. While it seems to be concurrency-related bug, the model itself as I have written seems thread-safe. Thanks. -Ramnivas Source code: == public class AJAXListHome extends WebPage { public AJAXListHome() { TestModel model = new TestModel(); WebMarkupContainer wmc = new WebMarkupContainer("wmc"); add(wmc); ListView testListView = new TestListView("dates", model); wmc.add(testListView); wmc.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(2))); new Thread(new TestModelUpdater(model, testListView)).start(); } } class TestListView extends ListView { public TestListView(String id, TestModel model) { super(id, model); } @Override protected void populateItem(ListItem item) { String date = (String)item.getModelObject(); item.add(new Label("date", date)); } } class TestModel implements IModel { private List underlying = new ArrayList(); synchronized public Object getObject(Component component) { return underlying; } synchronized public void add(String message) { underlying.add(message); } public IModel getNestedModel() { return null; } public void setObject(Component component, Object object) { } public void detach() { } } class TestModelUpdater implements Runnable { private TestModel model; private Component view; static int counter = 0; public TestModelUpdater(TestModel model, Component view) { this.model = model; this.view = view; } public void run() { while(true) { model.add("string" + counter); // notifying model doesn't seem to be required; should it be notified? //view.modelChanged(); counter++; try { TimeUnit.SECONDS.sleep(1); } catch (InterruptedException ignored) { } } } } === Stack trace: Root cause: java.lang.NullPointerException at wicket.markup.html.list.ListView.renderItem(ListView.java:606) at wicket.markup.html.list.ListView.onRender(ListView.java :567) at wicket.Component.render(Component.java:1516) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1206) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:875) at wicket.MarkupContainer.onComponentTagBody (MarkupContainer.java:795) at wicket.Component.renderComponent(Component.java:1602) at wicket.MarkupContainer.onRender(MarkupContainer.java:805) at wicket.Component.render(Component.java:1516) at wicket.MarkupContainer.renderNext (MarkupContainer.java:1206) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:875) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:795) at wicket.Component.renderComponent(Component.java :1602) at wicket.MarkupContainer.onRender(MarkupContainer.java:805) at wicket.Component.render(Component.java:1516) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1206) at wicket.MarkupContainer.renderAll (MarkupContainer.java:822) at wicket.Page.onRender(Page.java:846) at wicket.Component.render(Component.java:1516) at wicket.Page.doRender(Page.java:390) at wicket.request.target.component.BookmarkablePageRequestTarget.respond (BookmarkablePageRequestTarget.java:224) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java :66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:824) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:851) at wicket.RequestCycle.step(RequestCycle.java:931) at wicket.Re

Re: [Wicket-user] AJAX-updated listview crashes occasionally

2006-03-02 Thread Ramnivas Laddad
Also, after keeping the page up for a while (about 10 minutes), I get 
the following stack:


15:15:28.546 WARN!! Exception for 
/quickstart/app?wicket:interface=:21:wmc:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=0.05419159267419782
wicket.WicketRuntimeException: Internal Error: Could not render error 
page class wicket.markup.html.pages.InternalErrorPage
   at 
wicket.request.compound.DefaultExceptionResponseStrategy.respond(DefaultExceptionResponseStrategy.java:97)
   at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:76)

   at wicket.RequestCycle.step(RequestCycle.java:971)
   at wicket.RequestCycle.steps(RequestCycle.java:1005)
   at wicket.RequestCycle.request(RequestCycle.java:451)
   at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
   at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)

   at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
   at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)

   at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
   at org.mortbay.http.HttpServer.service(HttpServer.java:879)
   at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
   at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
   at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
   at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)

   at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
   at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
Caused by: java.lang.ClassCastException: 
wicket.ajax.AjaxRequestTarget$EncodingResponse
   at 
wicket.protocol.http.WebRequestCycle.getWebResponse(WebRequestCycle.java:99)
   at 
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:130)
   at 
wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:60)
   at 
wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47)
   at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)

   at wicket.RequestCycle.respond(RequestCycle.java:877)
   at wicket.RequestCycle.step(RequestCycle.java:946)
   ... 18 more



Ramnivas Laddad wrote:


Hi,

I now have an AJAXified listview working. However, occasionally (very 
frequently on a real application and less frequently on a simplified 
application :-() it crashes (program and stack trace at the end of 
this email).


I have an updater thread that adds new entries to the model for the 
listview.


A few observations:
1. In the onRender() method, size returned by getViewSize() is 1, and 
the index of the item to be rendered is 1. This all seems correct, as 
the updater thread has just added a new item. However, item returned 
by (ListItem)get(Integer.toString(index)) is null.


2. When the crashed view is re-rendered, I do no see the following 
snippet in markup produced:

   
src="/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js">

As a result, no AJAX updates take place.

While it seems to be concurrency-related bug, the model itself as I 
have written seems thread-safe.


Thanks.

-Ramnivas

Source code:
==
public class AJAXListHome extends WebPage {
   public AJAXListHome() {
   TestModel model = new TestModel();

   WebMarkupContainer wmc = new WebMarkupContainer("wmc");
   add(wmc);
   ListView testListView = new TestListView("dates", model);
   wmc.add(testListView);
   wmc.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(2)));
 new Thread(new TestModelUpdater(model, 
testListView)).start();

   }
}

class TestListView extends ListView {
   public TestListView(String id, TestModel model) {
   super(id, model);
   }
 @Override
   protected void populateItem(ListItem item) {
   String date = (String)item.getModelObject();
   item.add(new Label("date", date));
   }
}

class TestModel implements IModel {
   private List underlying = new ArrayList();
 synchronized public Object getObject(Component component) {
   return underlying;
   }

   synchronized public void add(String message) {
   underlying.add(message);
   }
 public IModel getNestedModel() {
   return null;
   }

   public void setObject(Component component, Object object) {
   }

   public void detach() {
   }
}

class TestModelUpdater implements Runnable {
   private TestModel model;
   private Component view;
 
   static int counter = 0;

 

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

2006-03-02 Thread Eelco Hillenius
> However, at any time the user can re-set the options and re-submit,
> causing a completely different DataTable based on a new DataProvider.

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

> What tools does Wicket provide to allow me to replace one DataTable with
> a new one?  Or, to be more general, 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.)

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.

Deleting is not allowed as that would result in an inconsistence
between the component hierarchy and the markup. However, you can
always replace with an empty panel.

Eelco


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


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

2006-03-02 Thread Frank Silbermann

I have a form which provides the user with a number of options.  Based
on those options chosen, I will display a DataTable.  The user can play
with the DataTable in terms of paging through it, re-sorting the
columns, and so on.

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

What tools does Wicket provide to allow me to replace one DataTable with
a new one?  Or, to be more general, 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.)

For simplity, assume that the replacement component can use the same
Page mark-up, e.g. replacing one Panel with another.  Putting all the
possible components on the page and disabling/hiding all but one at a
time is not an option for me.
 


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


Re: [Wicket-user] AJAX-updated listview crashes occasionally

2006-03-02 Thread Igor Vaynberg
any chance you can stick those two files into a quickstart project?-IgorOn 3/2/06, Ramnivas Laddad <
[EMAIL PROTECTED]> wrote:Hi,I now have an AJAXified listview working. However, occasionally (very
frequently on a real application and less frequently on a simplifiedapplication :-() it crashes (program and stack trace at the end of thisemail).I have an updater thread that adds new entries to the model for the
listview.A few observations:1. In the onRender() method, size returned by getViewSize() is 1, andthe index of the item to be rendered is 1. This all seems correct, asthe updater thread has just added a new item. However, item returned by
(ListItem)get(Integer.toString(index)) is null.2. When the crashed view is re-rendered, I do no see the followingsnippet in markup produced:type="text/_javascript_"


src="">As a result, no AJAX updates take place.While it seems to be concurrency-related bug, the model itself as I have written seems thread-safe.Thanks.-RamnivasSource code:==public class AJAXListHome extends WebPage {public AJAXListHome() {TestModel model = new TestModel(); WebMarkupContainer wmc = new WebMarkupContainer("wmc");add(wmc);ListView testListView = new TestListView("dates", model);wmc.add(testListView); wmc.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(2)));new Thread(new TestModelUpdater(model, testListView)).start();}}class TestListView extends ListView {public TestListView(String id, TestModel model) { super(id, model);}@Overrideprotected void populateItem(ListItem item) {String date = (String)item.getModelObject();item.add(new Label("date", date)); }}class TestModel implements IModel {private List underlying = new ArrayList();synchronized public Object getObject(Component component) {return underlying; }synchronized public void add(String message) {underlying.add(message);}public IModel getNestedModel() {return null;}public void setObject(Component component, Object object) { }public void detach() {}}class TestModelUpdater implements Runnable {private TestModel model;private Component view;static int counter = 0;public TestModelUpdater(TestModel model, Component view) { this.model = model;this.view = view;}public void run() {while(true) {model.add("string" + counter); // notifying model doesn't seem to be required; should it be notified?//view.modelChanged();counter++;try {TimeUnit.SECONDS.sleep(1);} catch (InterruptedException ignored) {} }}}===Stack trace:Root cause:java.lang.NullPointerExceptionat wicket.markup.html.list.ListView.renderItem(ListView.java:606)at wicket.markup.html.list.ListView.onRender(ListView.java :567)at wicket.Component.render(Component.java:1516)at wicket.MarkupContainer.renderNext(MarkupContainer.java:1206)at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:875)at wicket.MarkupContainer.onComponentTagBody (MarkupContainer.java:795)at wicket.Component.renderComponent(Component.java:1602)at wicket.MarkupContainer.onRender(MarkupContainer.java:805)at wicket.Component.render(Component.java:1516)at wicket.MarkupContainer.renderNext (MarkupContainer.java:1206)at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:875)at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:795)at wicket.Component.renderComponent(Component.java :1602)at wicket.MarkupContainer.onRender(MarkupContainer.java:805)at wicket.Component.render(Component.java:1516)at wicket.MarkupContainer.renderNext(MarkupContainer.java:1206)at wicket.MarkupContainer.renderAll (MarkupContainer.java:822)at wicket.Page.onRender(Page.java:846)at wicket.Component.render(Component.java:1516)at wicket.Page.doRender(Page.java:390)atwicket.request.target.component.BookmarkablePageRequestTarget.respond (BookmarkablePageRequestTarget.java:224)atwicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47)atwicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java :66)at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:824)at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:851)at wicket.RequestCycle.step(RequestCycle.java:931)at wicket.RequestCycle.steps (RequestCycle.java:1005)at wicket.RequestCycle.request(RequestCycle.java:451)at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208)at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)atorg.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java :294)at org.mortbay.jetty.serv

[Wicket-user] AJAX-updated listview crashes occasionally

2006-03-02 Thread Ramnivas Laddad

Hi,

I now have an AJAXified listview working. However, occasionally (very 
frequently on a real application and less frequently on a simplified 
application :-() it crashes (program and stack trace at the end of this 
email).


I have an updater thread that adds new entries to the model for the 
listview.


A few observations:
1. In the onRender() method, size returned by getViewSize() is 1, and 
the index of the item to be rendered is 1. This all seems correct, as 
the updater thread has just added a new item. However, item returned by 
(ListItem)get(Integer.toString(index)) is null.


2. When the crashed view is re-rendered, I do no see the following 
snippet in markup produced:

   
src="/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js">

As a result, no AJAX updates take place.

While it seems to be concurrency-related bug, the model itself as I have 
written seems thread-safe.


Thanks.

-Ramnivas

Source code:
==
public class AJAXListHome extends WebPage {
   public AJAXListHome() {
   TestModel model = new TestModel();

   WebMarkupContainer wmc = new WebMarkupContainer("wmc");
   add(wmc);
   ListView testListView = new TestListView("dates", model);
   wmc.add(testListView);
   wmc.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(2)));
  
   new Thread(new TestModelUpdater(model, testListView)).start();

   }
}

class TestListView extends ListView {
   public TestListView(String id, TestModel model) {
   super(id, model);
   }
  
   @Override

   protected void populateItem(ListItem item) {
   String date = (String)item.getModelObject();
   item.add(new Label("date", date));
   }
}

class TestModel implements IModel {
   private List underlying = new ArrayList();
  
   synchronized public Object getObject(Component component) {

   return underlying;
   }

   synchronized public void add(String message) {
   underlying.add(message);
   }
  
   public IModel getNestedModel() {

   return null;
   }

   public void setObject(Component component, Object object) {
   }

   public void detach() {
   }
}

class TestModelUpdater implements Runnable {
   private TestModel model;
   private Component view;
 
   static int counter = 0;
  
   public TestModelUpdater(TestModel model, Component view) {

   this.model = model;
   this.view = view;
   }
  
   public void run() {

   while(true) {
   model.add("string" + counter);
// notifying model doesn't seem to be required; should it 
be notified?

//view.modelChanged();
   counter++;
   try {
   TimeUnit.SECONDS.sleep(1);
   } catch (InterruptedException ignored) {
   }
   }
   }
}
===
Stack trace:
Root cause:

java.lang.NullPointerException
at wicket.markup.html.list.ListView.renderItem(ListView.java:606)
at wicket.markup.html.list.ListView.onRender(ListView.java:567)
at wicket.Component.render(Component.java:1516)
at wicket.MarkupContainer.renderNext(MarkupContainer.java:1206)
at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:875)
at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:795)
at wicket.Component.renderComponent(Component.java:1602)
at wicket.MarkupContainer.onRender(MarkupContainer.java:805)
at wicket.Component.render(Component.java:1516)
at wicket.MarkupContainer.renderNext(MarkupContainer.java:1206)
at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:875)
at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:795)
at wicket.Component.renderComponent(Component.java:1602)
at wicket.MarkupContainer.onRender(MarkupContainer.java:805)
at wicket.Component.render(Component.java:1516)
at wicket.MarkupContainer.renderNext(MarkupContainer.java:1206)
at wicket.MarkupContainer.renderAll(MarkupContainer.java:822)
at wicket.Page.onRender(Page.java:846)
at wicket.Component.render(Component.java:1516)
at wicket.Page.doRender(Page.java:390)
at 
wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:224)
at 
wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47)
at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)

at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:824)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:851)
at wicket.RequestCycle.step(RequestCycle.java:931)
at wicket.RequestCycle.steps(RequestCycle.java:1005)
at wicket.RequestCycle.request(RequestCycle.java:451)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
at 
org.mortbay.jetty.servlet.WebApplicationHand

Re: [Wicket-user] Still link problems

2006-03-02 Thread Johan Compagner
if you don't want to make components for youre image or other resource tags.Then the only thing i can think of is that you put all youre pages in the doc rootand then all youre other stuff in images above that so
Page.htmlgraphics/style/The big problem with this at runtime is that youre wicket html pages are also accessible through an urljust ask for /foo/Page.htmlSo then they just have youre wicket page without the touching of wicket.
Also map youre wicket servlet not on /* but do it on /app/* or somethingso that the doc root is not also served through wicket servlet. Thats a waste.johan
On 3/2/06, Thomas Singer <[EMAIL PROTECTED]> wrote:
Hi Johan,Thank you very much for taking the time to take a look at my first stepsproject.> you have really the most strange setup i have every seen.>> everything is pretty much scrambled.
Well, as said before, I'm completely new to web-application development andI try to set it up that way, that I can edit the HTML files with my favoriteHTML-editor (IDEA), which esp. can check the paths/image sizes and I can see
them in WYSIWYG-editors (DreamWeaver). To my understanding this only ispossible using relative paths.> 
>> that one tells me it sits in the WEBAPP root dir (so the dir just below youre WEB-INF dir)Interesting, what you are reading in that line. ;) I just want the logo.gifto be in the subdirectory "graphics" of the current file (at design-time). I
don't care, where everything is put at the time of deploying.> >> and context is in youre place 'foo'
>> But logo.gif doesn't sit in that location. No it sits (looking at the root of youre webapp in:>> "/resources/pages/graphics/logo.gif"OK, this one I understand. From the browser's point of view it should occur
at "/CONTEXT/graphics/logo.gif", when the path to the current page is, e.g.,  "/CONTEXT/index". I guess, you want me to say, that the graphics directoryshould be at the same level as WEB-INF, because that's the standard way of
loading graphics at that path, isn't it?> >> and add a ImageLink or something like that to the page and make a PackageResourceReference to youre 
logo.gif.Well, that's something I want to avoid, because I don't want to add acomponent for every graphic I add on the web-site. This seems to be tooerror prone to me.> of if you really want youre images and pages in the webroot dir do make it so that it matches the web app root
> in youre caseI don't care where the files are located after deploying, I just want tohave them in a "nice structure" at design-time and want wicket to correctthe paths as required. Why I'm so "stubborn" with my design-time paths?
Because wicket advertises previewability at design-time (because the markupstill is valid HTML code) and I want to go a step further and also want touse graphics, other resources and links at design-time.
If there should be a more difficult deployment process to copy image filesto a different path than the classes or markup-files, OK, that's fine, aslong as I get my design-time previewability. ;)I hope, I could sketch my vision somehow understandable, although it might
sound weird to web-application experts.--Best regards,Thomas Singer_smartcvs.comsmartsvn.comJohan Compagner schrieb:
> you have really the most strange setup i have every seen.>> everything is pretty much scrambled.> I guess you want youre pages in the web-root and not in the classes yes?> If you want that then please set it up a bit different.
> Because how do we expect to know where you pages are and what the root> is for you pages if you load them completely yourself from a totally> different> then wicket way location?>> Just look at youre logo:
>> >> that one tells me it sits in the WEBAPP root dir (so the dir just below> youre WEB-INF dir)
> and it is not a wicketised tag so wicket only makes it this:>> >> and context is in youre place 'foo'
>> But logo.gif doesn't sit in that location. No it sits (looking at the> root of youre webapp in:>> "/resources/pages/graphics/logo.gif">> so tell me in the current setup how do we ever know expect to know that??
>> you have 2 choices i think.>> Move everything in the classes dir. And make a package resource out of> it then you need to do this:>> > height="100" alt="Logo"/>>> and add a ImageLink or something like that to the page and make a> PackageResourceReference to youre logo.gif.>> of if you really want youre images and pages in the webroot dir do make
> it so that it matches the web app root> in youre case>> /resources/pages should be the root of youre webapp.>> johan>>> On 3/2/06, *Thomas Singer* <
[EMAIL PROTECTED] [EMAIL PROTECTED]>>> wrote:>>  > you have a better chance of having people look at your code if
> you post>  > it with jetty and eclipse project files so that we can import it,> click>  > run, and have a look. see quickstart for how its setup.>> OK, I've got it up and running. Please download the bundle from
> http://www.regnis.de/_wicket/wicket-link-test-060302.zip (

Re: [Wicket-user] ListView not working with AJAX

2006-03-02 Thread Ramnivas Laddad




Thanks, Igor. It works now.

Would it be possible to throw an exception when someone tries to add an
unacceptable Behavior such as AjaxSelfUpdatingTimerBehavior to a
listview (or any other class doesn't produce any markup itself).

-Ramnivas

Igor Vaynberg wrote:
you cannot update a listview itself directly because it
does not produce any markup itself. you need to put it into a
webmarkupcontainer and attach the update behavior to that.
  
WebMarkupContainer wmc=new WebMarkupContainer("wmc");
  
wmcv
add(wmc);
wmc.add(new ListView(
wmc.add(new AjaxSelfUpdatingBehavio.
  
and in markup ...listview
  
-Igor
  
  
  On 3/2/06, Ramnivas
Laddad <[EMAIL PROTECTED]>
wrote:
  Hi,

I have a ListView with a dynamic model. I am trying to update the view
using AjaxSelfUpdatingTimerBehavior. It doesn't seem to be working,
however (with snapshot version 20060227-0200). It seems that the
AjaxSelfUpdatingTimerBehavior.onTimer() methods gets called only once.

The following code (a much simplified version of the real code)
illustrates the problem.

-Ramnivas

public class AJAXListHome extends WebPage {

public AJAXListHome() {
ListView testListView = new TestListView("dates");
add(testListView);
testListView.add(new
AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));

}
}

class TestListView extends ListView {
public TestListView(String id) {
super(id);
}

public IModel getModel() {
List list = new ArrayList();

list.add(new Date().toString());
return new Model((Serializable)list);
}

@Override
protected void populateItem(ListItem item) {
String date = (String)item.getModelObject();

item.add(new Label("date", date));
}
}






---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language

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





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


Re: [Wicket-user] Still link problems

2006-03-02 Thread Thomas Singer

Hi Johan,

Thank you very much for taking the time to take a look at my first steps 
project.



you have really the most strange setup i have every seen.

everything is pretty much scrambled.


Well, as said before, I'm completely new to web-application development and 
I try to set it up that way, that I can edit the HTML files with my favorite 
HTML-editor (IDEA), which esp. can check the paths/image sizes and I can see 
them in WYSIWYG-editors (DreamWeaver). To my understanding this only is 
possible using relative paths.





that one tells me it sits in the WEBAPP root dir (so the dir just below youre 
WEB-INF dir)


Interesting, what you are reading in that line. ;) I just want the logo.gif 
to be in the subdirectory "graphics" of the current file (at design-time). I 
don't care, where everything is put at the time of deploying.





and context is in youre place 'foo'

But logo.gif doesn't sit in that location. No it sits (looking at the root of 
youre webapp in:

"/resources/pages/graphics/logo.gif"


OK, this one I understand. From the browser's point of view it should occur 
at "/CONTEXT/graphics/logo.gif", when the path to the current page is, e.g., 
 "/CONTEXT/index". I guess, you want me to say, that the graphics directory 
should be at the same level as WEB-INF, because that's the standard way of 
loading graphics at that path, isn't it?





and add a ImageLink or something like that to the page and make a 
PackageResourceReference to youre logo.gif.


Well, that's something I want to avoid, because I don't want to add a 
component for every graphic I add on the web-site. This seems to be too 
error prone to me.



of if you really want youre images and pages in the webroot dir do make it so 
that it matches the web app root
in youre case


I don't care where the files are located after deploying, I just want to 
have them in a "nice structure" at design-time and want wicket to correct 
the paths as required. Why I'm so "stubborn" with my design-time paths? 
Because wicket advertises previewability at design-time (because the markup 
still is valid HTML code) and I want to go a step further and also want to 
use graphics, other resources and links at design-time.


If there should be a more difficult deployment process to copy image files 
to a different path than the classes or markup-files, OK, that's fine, as 
long as I get my design-time previewability. ;)


I hope, I could sketch my vision somehow understandable, although it might 
sound weird to web-application experts.


--
Best regards,
Thomas Singer
_
smartcvs.com
smartsvn.com


Johan Compagner schrieb:

you have really the most strange setup i have every seen.

everything is pretty much scrambled.
I guess you want youre pages in the web-root and not in the classes yes?
If you want that then please set it up a bit different.
Because how do we expect to know where you pages are and what the root 
is for you pages if you load them completely yourself from a totally 
different

then wicket way location?

Just look at youre logo:



that one tells me it sits in the WEBAPP root dir (so the dir just below 
youre WEB-INF dir)

and it is not a wicketised tag so wicket only makes it this:



and context is in youre place 'foo'

But logo.gif doesn't sit in that location. No it sits (looking at the 
root of youre webapp in:


"/resources/pages/graphics/logo.gif"

so tell me in the current setup how do we ever know expect to know that??

you have 2 choices i think.

Move everything in the classes dir. And make a package resource out of 
it then you need to do this:


height="100" alt="Logo"/>


and add a ImageLink or something like that to the page and make a 
PackageResourceReference to youre logo.gif.


of if you really want youre images and pages in the webroot dir do make 
it so that it matches the web app root

in youre case

/resources/pages should be the root of youre webapp.

johan






On 3/2/06, *Thomas Singer* <[EMAIL PROTECTED] > 
wrote:


 > you have a better chance of having people look at your code if
you post
 > it with jetty and eclipse project files so that we can import it,
click
 > run, and have a look. see quickstart for how its setup.

OK, I've got it up and running. Please download the bundle from
http://www.regnis.de/_wicket/wicket-link-test-060302.zip (3MB).
Thanks in
advance.

--
Best regards,
Thomas Singer


Igor Vaynberg schrieb:
 > many committers dont have the time to setup deployment to tomcat, ide
 > setup, etc.
 >
 > you have a better chance of having people look at your code if
you post
 > it with jetty and eclipse project files so that we can import it,
click
 > run, and have a look. see quickstart for how its setup.
 >
 > if you want you are more then welcome to post the bug report, but
you
 > would probably benefit more from doing the above.
 >
 > -Igor
 >
 

Re: [Wicket-user] Resource Lookup

2006-03-02 Thread Jonathan Carlson
I "CVS update"d again and the test didn't fail this time.  Thanks!

- Jon


>>> [EMAIL PROTECTED] 2006-03-02 2:56:46 PM >>>
maven 1 tries to execute an abstract class causing the error. This
behavior is not present in maven 2 (download it! it is much faster
than maven 1). Eclipse also doesn't show this awkward behavior.

You can also download an updated project.xml from sourceforge web cvs,
or

add:


**/Abstract*Test.java


to the unittest section of the project.xml

And maven -Dmaven.test.skip=true jar also works

Martijn


On 3/2/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> I don't have any test failing on me currently.
>
> johan
>
>
>
> On 3/2/06, Jonathan Carlson <[EMAIL PROTECTED] > wrote:
> > Thanks Juergen.  I did a CVS update and ran "maven jar", however
one of
> > the tests failed:
> >
> > [junit] Running
> >
> wicket.markup.html.navigation.paging.AbstractPagingNavigationTest
> > [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed:
0.343
> > sec
> > [junit] [ERROR] TEST
> >
> wicket.markup.html.navigation.paging.AbstractPagingNavigationTest
> > FAILED
> >
> > I forget how to create the jar without running the tests so if
anyone
> > could remind me, I'd appreciate it.
> >
> > Thanks!
> >
> > - Jonathan
> >
> >
> >
> > >>> [EMAIL PROTECTED] 2006-03-02 12:13:44 PM >>>
> > The code always covered this topic but this code underwent some
> > changes in almost all releases. I'm not sure it worked flawless in
all
> > releases. It should in CVS head (and hopefully we have an unit
test
> > for it as well). You would do me a great favour you were to test
it
> > with CVS head.
> >
> > Juergen
> >
> > On 3/2/06, Jonathan Carlson < [EMAIL PROTECTED]> wrote:
> > > Until this week I haven't had any images to lookup in my Wicket
1.1
> > > Panels.  Now that I've added some images, it appears that the
image
> > > resource lookup code is not looking in my superclass package for
> > > images.
> > >
> > > If this really is the case, that is a problem because I have
> > reusable
> > > panels that are abstract and intended to be subclassed (either
> > anonymous
> > > or named subclasses) in other packages to supply the necessary
> > > information.  I want my images to be in the abstract superclass
> > package,
> > > not in the using class package.
> > >
> > > Does this ring any bells for anyone?
> > >
> > > Thanks!
> > >
> > > - Jonathan
> > >
> > > P.S. I tried Wicket 1.1.1 to see if that would fix it but it
didn't.
> > >
> > > P.P.S. Wicket is beautiful!
> > >
> > >
> >
>
__
> > > This email and any files transmitted with it are confidential
and
> > > intended solely for the use of the individual or entity to whom
they
> > > are addressed. If you have received this email in error please
> > notify
> > > the system manager.
> > >
> > > Katun Corporation -- www.katun.com 
> > >
> >
>
_
> > >
> > >
> > > ---
> > > This SF.Net email is sponsored by xPML, a groundbreaking
scripting
> > language
> > > that extends applications into web and mobile media. Attend the
live
> > webcast
> > > and join the prime developer group breaking into this new coding
> > territory!
> > >
> >
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

> >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net 
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user 
> > >
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language
> > that extends applications into web and mobile media. Attend the
live
> > webcast
> > and join the prime developer group breaking into this new coding
> > territory!
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net 
> > https://lists.sourceforge.net/lists/listinfo/wicket-user 
> >
> >
>
__
> > This email has been scanned by the MessageLabs Email Security
System.
> > For more information please visit
> http://www.messagelabs.com/email 
> >
>
__
> >
> >
>
__
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom
they
> > are addressed. If you have received this email in error please
notify
> > the system manager.
> >
> > Katun Corporation -- www.katun.com 
> >
>
_
> >
> >
> > ---
> > T

[Wicket-user] Req: Ajax FileUpload component with progressbar

2006-03-02 Thread Martijn Dashorst
All,

I'm looking for a ajax file upload form component with a progressbar,
as can be found here:

http://www.java.net/pub/a/today/2006/02/09/file-uploads-with-ajax-and-jsf.html

but then in wicket 1.2 code.

Has someone already built such a component, and does he/she care to
share it with the community?

Martijn

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


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


Re: [Wicket-user] Resource Lookup

2006-03-02 Thread Martijn Dashorst
maven 1 tries to execute an abstract class causing the error. This
behavior is not present in maven 2 (download it! it is much faster
than maven 1). Eclipse also doesn't show this awkward behavior.

You can also download an updated project.xml from sourceforge web cvs, or

add:


**/Abstract*Test.java


to the unittest section of the project.xml

And maven -Dmaven.test.skip=true jar also works

Martijn


On 3/2/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> I don't have any test failing on me currently.
>
> johan
>
>
>
> On 3/2/06, Jonathan Carlson <[EMAIL PROTECTED] > wrote:
> > Thanks Juergen.  I did a CVS update and ran "maven jar", however one of
> > the tests failed:
> >
> > [junit] Running
> >
> wicket.markup.html.navigation.paging.AbstractPagingNavigationTest
> > [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.343
> > sec
> > [junit] [ERROR] TEST
> >
> wicket.markup.html.navigation.paging.AbstractPagingNavigationTest
> > FAILED
> >
> > I forget how to create the jar without running the tests so if anyone
> > could remind me, I'd appreciate it.
> >
> > Thanks!
> >
> > - Jonathan
> >
> >
> >
> > >>> [EMAIL PROTECTED] 2006-03-02 12:13:44 PM >>>
> > The code always covered this topic but this code underwent some
> > changes in almost all releases. I'm not sure it worked flawless in all
> > releases. It should in CVS head (and hopefully we have an unit test
> > for it as well). You would do me a great favour you were to test it
> > with CVS head.
> >
> > Juergen
> >
> > On 3/2/06, Jonathan Carlson < [EMAIL PROTECTED]> wrote:
> > > Until this week I haven't had any images to lookup in my Wicket 1.1
> > > Panels.  Now that I've added some images, it appears that the image
> > > resource lookup code is not looking in my superclass package for
> > > images.
> > >
> > > If this really is the case, that is a problem because I have
> > reusable
> > > panels that are abstract and intended to be subclassed (either
> > anonymous
> > > or named subclasses) in other packages to supply the necessary
> > > information.  I want my images to be in the abstract superclass
> > package,
> > > not in the using class package.
> > >
> > > Does this ring any bells for anyone?
> > >
> > > Thanks!
> > >
> > > - Jonathan
> > >
> > > P.S. I tried Wicket 1.1.1 to see if that would fix it but it didn't.
> > >
> > > P.P.S. Wicket is beautiful!
> > >
> > >
> >
> __
> > > This email and any files transmitted with it are confidential and
> > > intended solely for the use of the individual or entity to whom they
> > > are addressed. If you have received this email in error please
> > notify
> > > the system manager.
> > >
> > > Katun Corporation -- www.katun.com
> > >
> >
> _
> > >
> > >
> > > ---
> > > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language
> > > that extends applications into web and mobile media. Attend the live
> > webcast
> > > and join the prime developer group breaking into this new coding
> > territory!
> > >
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language
> > that extends applications into web and mobile media. Attend the live
> > webcast
> > and join the prime developer group breaking into this new coding
> > territory!
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> __
> > This email has been scanned by the MessageLabs Email Security System.
> > For more information please visit
> http://www.messagelabs.com/email
> >
> __
> >
> >
> __
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom they
> > are addressed. If you have received this email in error please notify
> > the system manager.
> >
> > Katun Corporation -- www.katun.com
> >
> _
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media.

Re: [Wicket-user] Resource Lookup

2006-03-02 Thread Johan Compagner
I don't have any test failing on me currently.johanOn 3/2/06, Jonathan Carlson <[EMAIL PROTECTED]
> wrote:Thanks Juergen.  I did a CVS update and ran "maven jar", however one of
the tests failed:[junit] Runningwicket.markup.html.navigation.paging.AbstractPagingNavigationTest[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.343sec[junit] [ERROR] TEST
wicket.markup.html.navigation.paging.AbstractPagingNavigationTestFAILEDI forget how to create the jar without running the tests so if anyonecould remind me, I'd appreciate it.Thanks!- Jonathan
>>> [EMAIL PROTECTED] 2006-03-02 12:13:44 PM >>>The code always covered this topic but this code underwent somechanges in almost all releases. I'm not sure it worked flawless in all
releases. It should in CVS head (and hopefully we have an unit testfor it as well). You would do me a great favour you were to test itwith CVS head.JuergenOn 3/2/06, Jonathan Carlson <
[EMAIL PROTECTED]> wrote:> Until this week I haven't had any images to lookup in my Wicket 1.1> Panels.  Now that I've added some images, it appears that the image> resource lookup code is not looking in my superclass package for
> images.>> If this really is the case, that is a problem because I havereusable> panels that are abstract and intended to be subclassed (eitheranonymous> or named subclasses) in other packages to supply the necessary
> information.  I want my images to be in the abstract superclasspackage,> not in the using class package.>> Does this ring any bells for anyone?>> Thanks!>> - Jonathan
>> P.S. I tried Wicket 1.1.1 to see if that would fix it but it didn't.>> P.P.S. Wicket is beautiful!>>__
> This email and any files transmitted with it are confidential and> intended solely for the use of the individual or entity to whom they> are addressed. If you have received this email in error please
notify> the system manager.>> Katun Corporation -- www.katun.com>_>>
> ---> This SF.Net email is sponsored by xPML, a groundbreaking scriptinglanguage> that extends applications into web and mobile media. Attend the live
webcast> and join the prime developer group breaking into this new codingterritory!>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/wicket-user>---This SF.Net email is sponsored by xPML, a groundbreaking scriptinglanguage
that extends applications into web and mobile media. Attend the livewebcastand join the prime developer group breaking into this new codingterritory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user__This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
This email and any files transmitted with it are confidential andintended solely for the use of the individual or entity to whom theyare addressed. If you have received this email in error please notifythe system manager.
Katun Corporation -- www.katun.com_---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] Resource Lookup

2006-03-02 Thread Igor Vaynberg
this has already been fixed in head. if you dont want to wait i believe the syntax ismaven -Dmaven.test.skip=true jarif that is not correct google it :)-Igor
On 3/2/06, Jonathan Carlson <[EMAIL PROTECTED]> wrote:
Thanks Juergen.  I did a CVS update and ran "maven jar", however one ofthe tests failed:[junit] Runningwicket.markup.html.navigation.paging.AbstractPagingNavigationTest[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 
0.343sec[junit] [ERROR] TESTwicket.markup.html.navigation.paging.AbstractPagingNavigationTestFAILEDI forget how to create the jar without running the tests so if anyonecould remind me, I'd appreciate it.
Thanks!- Jonathan>>> [EMAIL PROTECTED] 2006-03-02 12:13:44 PM >>>The code always covered this topic but this code underwent some
changes in almost all releases. I'm not sure it worked flawless in allreleases. It should in CVS head (and hopefully we have an unit testfor it as well). You would do me a great favour you were to test itwith CVS head.
JuergenOn 3/2/06, Jonathan Carlson <[EMAIL PROTECTED]> wrote:> Until this week I haven't had any images to lookup in my Wicket 1.1> Panels.  Now that I've added some images, it appears that the image
> resource lookup code is not looking in my superclass package for> images.>> If this really is the case, that is a problem because I havereusable> panels that are abstract and intended to be subclassed (either
anonymous> or named subclasses) in other packages to supply the necessary> information.  I want my images to be in the abstract superclasspackage,> not in the using class package.>> Does this ring any bells for anyone?
>> Thanks!>> - Jonathan>> P.S. I tried Wicket 1.1.1 to see if that would fix it but it didn't.>> P.P.S. Wicket is beautiful!>>__
> This email and any files transmitted with it are confidential and> intended solely for the use of the individual or entity to whom they> are addressed. If you have received this email in error please
notify> the system manager.>> Katun Corporation -- www.katun.com>_>>
> ---> This SF.Net email is sponsored by xPML, a groundbreaking scriptinglanguage> that extends applications into web and mobile media. Attend the live
webcast> and join the prime developer group breaking into this new codingterritory!>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/wicket-user>---This SF.Net email is sponsored by xPML, a groundbreaking scriptinglanguage
that extends applications into web and mobile media. Attend the livewebcastand join the prime developer group breaking into this new codingterritory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user__This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
This email and any files transmitted with it are confidential andintended solely for the use of the individual or entity to whom theyare addressed. If you have received this email in error please notifythe system manager.
Katun Corporation -- www.katun.com_---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] Re: Wicket and Tomcat session id reuse

2006-03-02 Thread Johan Compagner
ahh but then somehow youre session is already made again BEFORE our wicket.doGet() methodbecause we don't make a session in the doGet that only happens a few steps later when we really needto store a page in the session.
Do you use filters? that do request.getSession(true) ?Maybe we should listen to session destructions on some place and really clear the mapI now just made a commit that when you do invalidate through wicket the buffered map will be cleared.
So now only the time out sessions can have a buffer but that is not very likely because they aren't in a redirect.johanOn 3/2/06, jan_bar
 <[EMAIL PROTECTED]> wrote:Thanks Johan,
(I cannot indent your message, because it is not plain text). I have exactlythe situation you describe. I use the REDIREC_TO_BUFFER, invalidate a page ano redirect. With Jetty I get "session expired" page, which is expected, but
with Tomcat I get back the original page. Only after subsequent refresh orbutton click I get the "session expired". This is due to the fact, that thebuffered response was not cleared from the map.
Jan"Johan Compagner" <[EMAIL PROTECTED]> wrote in messagenews:[EMAIL PROTECTED]that map doesn't really matter
it is only filled with something if we send out a client side redirect to apage that we already renderd (REDIREC_TO_BUFFER)So it will only go "wrong" if the session got invalidated in a request then
a redirect is done to a page that was created for that requestBut i guess this is maybe even wat you want because maybe it is the ByeByepage?The problem is that a buffered response isn't even checked for a new session
(or better said not yet created session)because we don't create the session at that time..We could stored those redirect buffers in the session, but we don't wantthat because the session could be clusted ect and then it is constanlty
touched and updated and therefor replicated.johanOn 3/2/06, jan_bar <[EMAIL PROTECTED]> wrote:Hi,I created a little application that tests various session behaviour. I
notied something interesting with Tomcat. When session is invalidated andbrowser sends request to Tomcat with session id in cookie (the session wasinvalidated), Tomcat doesn't create new session with new id, it just reuse
the session id. Just to be clean about that, here is part of the log:PersistentSessionListener.sessionCreated(), id =94B93B22C9E1B8B2EFA96807764C12E9PersistentSessionListener.sessionDestroyed(), id =
94B93B22C9E1B8B2EFA96807764C12E9PersistentSessionListener.sessionCreated(), id =94B93B22C9E1B8B2EFA96807764C12E9Even if suprising behaviour, it is in my opinion correct. Why to generatenew session id when I can reuse the already generated one?
And now to the point. It seems to me that Wicket 1.1.1 is not prepared tohandle this correctly, for instance the WebApplication.redirectMap containsentries, that are not valid for the new session if it has the same id.
Can someone confirm this?I use JBoss 4.0.3SP1Thanks, Jan---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] Resource Lookup

2006-03-02 Thread Jonathan Carlson
Thanks Juergen.  I did a CVS update and ran "maven jar", however one of
the tests failed:

[junit] Running
wicket.markup.html.navigation.paging.AbstractPagingNavigationTest
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.343
sec
[junit] [ERROR] TEST
wicket.markup.html.navigation.paging.AbstractPagingNavigationTest
FAILED

I forget how to create the jar without running the tests so if anyone
could remind me, I'd appreciate it.

Thanks!

- Jonathan



>>> [EMAIL PROTECTED] 2006-03-02 12:13:44 PM >>>
The code always covered this topic but this code underwent some
changes in almost all releases. I'm not sure it worked flawless in all
releases. It should in CVS head (and hopefully we have an unit test
for it as well). You would do me a great favour you were to test it
with CVS head.

Juergen

On 3/2/06, Jonathan Carlson <[EMAIL PROTECTED]> wrote:
> Until this week I haven't had any images to lookup in my Wicket 1.1
> Panels.  Now that I've added some images, it appears that the image
> resource lookup code is not looking in my superclass package for
> images.
>
> If this really is the case, that is a problem because I have
reusable
> panels that are abstract and intended to be subclassed (either
anonymous
> or named subclasses) in other packages to supply the necessary
> information.  I want my images to be in the abstract superclass
package,
> not in the using class package.
>
> Does this ring any bells for anyone?
>
> Thanks!
>
> - Jonathan
>
> P.S. I tried Wicket 1.1.1 to see if that would fix it but it didn't.
>
> P.P.S. Wicket is beautiful!
>
>
__
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please
notify
> the system manager.
>
> Katun Corporation -- www.katun.com 
>
_
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
> that extends applications into web and mobile media. Attend the live
webcast
> and join the prime developer group breaking into this new coding
territory!
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

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


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

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com 
_


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


Re: [Wicket-user] ListView not working with AJAX

2006-03-02 Thread Igor Vaynberg
you cannot update a listview itself directly because it does not produce any markup itself. you need to put it into a webmarkupcontainer and attach the update behavior to that.WebMarkupContainer wmc=new WebMarkupContainer("wmc");
wmcvadd(wmc);wmc.add(new ListView(wmc.add(new AjaxSelfUpdatingBehavio.and in markup ...listview-Igor
On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote:
Hi,I have a ListView with a dynamic model. I am trying to update the viewusing AjaxSelfUpdatingTimerBehavior. It doesn't seem to be working,however (with snapshot version 20060227-0200). It seems that the
AjaxSelfUpdatingTimerBehavior.onTimer() methods gets called only once.The following code (a much simplified version of the real code)illustrates the problem.-Ramnivaspublic class AJAXListHome extends WebPage {
public AJAXListHome() {ListView testListView = new TestListView("dates");add(testListView);testListView.add(newAjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
}}class TestListView extends ListView {public TestListView(String id) {super(id);}public IModel getModel() {List list = new ArrayList();
list.add(new Date().toString());return new Model((Serializable)list);}@Overrideprotected void populateItem(ListItem item) {String date = (String)item.getModelObject();
item.add(new Label("date", date));}}---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ListView not working with AJAX

2006-03-02 Thread Ramnivas Laddad

Hi,

I have a ListView with a dynamic model. I am trying to update the view
using AjaxSelfUpdatingTimerBehavior. It doesn't seem to be working,
however (with snapshot version 20060227-0200). It seems that the
AjaxSelfUpdatingTimerBehavior.onTimer() methods gets called only once.

The following code (a much simplified version of the real code)
illustrates the problem.

-Ramnivas

public class AJAXListHome extends WebPage {
   public AJAXListHome() {
   ListView testListView = new TestListView("dates");
   add(testListView);
   testListView.add(new
AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
   }
}

class TestListView extends ListView {
   public TestListView(String id) {
   super(id);
   }

   public IModel getModel() {
   List list = new ArrayList();
   list.add(new Date().toString());
   return new Model((Serializable)list);
   }

   @Override
   protected void populateItem(ListItem item) {
   String date = (String)item.getModelObject();
   item.add(new Label("date", date));
   }
}






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


Re: [Wicket-user] Still link problems

2006-03-02 Thread Johan Compagner
you have really the most strange setup i have every seen.everything is pretty much scrambled.I guess you want youre pages in the web-root and not in the classes yes?If you want that then please set it up a bit different.
Because how do we expect to know where you pages are and what the root is for you pages if you load them completely yourself from a totally differentthen wicket way location?Just look at youre logo:
that one tells me it sits in the WEBAPP root dir (so the dir just below youre WEB-INF dir)and it is not a wicketised tag so wicket only makes it this:
and context is in youre place 'foo' But logo.gif doesn't sit in that location. No it sits (looking at the root of youre webapp in: 
"/resources/pages/graphics/logo.gif"so tell me in the current setup how do we ever know expect to know that??you have 2 choices i think.Move everything in the classes dir. And make a package resource out of it then you need to do this:
and add a ImageLink or something like that to the page and make a PackageResourceReference to youre 
logo.gif.of if you really want youre images and pages in the webroot dir do make it so that it matches the web app rootin youre case/resources/pages should be the root of youre webapp.johan
On 3/2/06, Thomas Singer <[EMAIL PROTECTED]> wrote:
> you have a better chance of having people look at your code if you post> it with jetty and eclipse project files so that we can import it, click> run, and have a look. see quickstart for how its setup.
OK, I've got it up and running. Please download the bundle fromhttp://www.regnis.de/_wicket/wicket-link-test-060302.zip (3MB). Thanks inadvance.
--Best regards,Thomas SingerIgor Vaynberg schrieb:> many committers dont have the time to setup deployment to tomcat, ide> setup, etc.>> you have a better chance of having people look at your code if you post
> it with jetty and eclipse project files so that we can import it, click> run, and have a look. see quickstart for how its setup.>> if you want you are more then welcome to post the bug report, but you
> would probably benefit more from doing the above.>> -Igor>>> On 3/1/06, * Thomas Singer* <[EMAIL PROTECTED] 
[EMAIL PROTECTED]>>> wrote:>> Should I file a bug report because of the link problems?>> --> Best regards,> Thomas Singer>>> Thomas Singer schrieb:
>  > Hi David and others,>  >>  > I've converted my tiny project to Wicket 1.2, but encounter the same>  > problems as with Wicket 1.1.1.>  > - the image on the first page is not found,
>  > - clicking the About link shows the about page, but does not> render the>  > links correctly (About is still a link).>  >>  > My "exploded" directory contains this structure:
>  > +---META-INF>  > |   context.xml>  > |>  > +---pages>  > |   |   Index.html>  > |   |   PageTemplate.html>  > |   |
>  > |   +---about>  > |   |   Index.html>  > |   |>  > |   \---graphics>  > |   logo.gif>  > |>  > \---WEB-INF
>  > |   web.xml>  > |>  > +---classes>  > |   \---com>  > |   \---foo>  > |   \---website>  > |   |   FooWebApplication$1.class
>  > |   |   FooWebApplication.class>  > |   |>  > |   +---pages>  > |   |   |   Index.class>  > |   |   |
>  > |   |   \---about>  > |   |   Index.class>  > |   |>  > |   \---templates>  > |   
PageTemplate.class>  > |>  > \---lib>  > commons-logging-1.0.4.jar>  > log4j-1.2.12.jar>  > wicket-1.2-20060227-0200.jar
>  >>  > I'd really appreciate it, if someone please could take a look at the>  > tiny project (http://regnis.de/_wicket/wicket-060228.zip
) and give a>  > hint about what's wrong and how to make it better. Thanks in advance.>  >>  > -->  > Best regards,>  > Thomas Singer---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] Help With Popup Window

2006-03-02 Thread Igor Vaynberg
to set the name, but im not sure why it doesnt work when the name is set. if you dont mind please file a bug and one of us will look into it later.-IgorOn 3/2/06, 
Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
hmm works thanks... so wats the setWindowName() for...anyway
On 3/2/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:

try without the setWindowName() 
-Igor

On 3/2/06, Ayodeji Aladejebi <[EMAIL PROTECTED]
> wrote: 


How easy can it get...I did this and got no popups..any tips? 
    plink = new PageLink("popwin",new ImageViewer());    PopupSettings p = new PopupSettings();    p.setWidth(300).setHeight(300).setTop(23).setWindowName("Image Preview"); 
    plink.setPopupSettings(p);    add(plink);




Re: [Wicket-user] Resource Lookup

2006-03-02 Thread Juergen Donnerstag
The code always covered this topic but this code underwent some
changes in almost all releases. I'm not sure it worked flawless in all
releases. It should in CVS head (and hopefully we have an unit test
for it as well). You would do me a great favour you were to test it
with CVS head.

Juergen

On 3/2/06, Jonathan Carlson <[EMAIL PROTECTED]> wrote:
> Until this week I haven't had any images to lookup in my Wicket 1.1
> Panels.  Now that I've added some images, it appears that the image
> resource lookup code is not looking in my superclass package for
> images.
>
> If this really is the case, that is a problem because I have reusable
> panels that are abstract and intended to be subclassed (either anonymous
> or named subclasses) in other packages to supply the necessary
> information.  I want my images to be in the abstract superclass package,
> not in the using class package.
>
> Does this ring any bells for anyone?
>
> Thanks!
>
> - Jonathan
>
> P.S. I tried Wicket 1.1.1 to see if that would fix it but it didn't.
>
> P.P.S. Wicket is beautiful!
>
> __
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> Katun Corporation -- www.katun.com
> _
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


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


Re: [Wicket-user] Still link problems

2006-03-02 Thread Thomas Singer

you have a better chance of having people look at your code if you post
it with jetty and eclipse project files so that we can import it, click
run, and have a look. see quickstart for how its setup.


OK, I've got it up and running. Please download the bundle from
http://www.regnis.de/_wicket/wicket-link-test-060302.zip (3MB). Thanks in
advance.

--
Best regards,
Thomas Singer


Igor Vaynberg schrieb:
many committers dont have the time to setup deployment to tomcat, ide 
setup, etc.


you have a better chance of having people look at your code if you post 
it with jetty and eclipse project files so that we can import it, click 
run, and have a look. see quickstart for how its setup.


if you want you are more then welcome to post the bug report, but you 
would probably benefit more from doing the above.


-Igor


On 3/1/06, * Thomas Singer* <[EMAIL PROTECTED] > 
wrote:


Should I file a bug report because of the link problems?

--
Best regards,
Thomas Singer


Thomas Singer schrieb:
 > Hi David and others,
 >
 > I've converted my tiny project to Wicket 1.2, but encounter the same
 > problems as with Wicket 1.1.1.
 > - the image on the first page is not found,
 > - clicking the About link shows the about page, but does not
render the
 > links correctly (About is still a link).
 >
 > My "exploded" directory contains this structure:
 > +---META-INF
 > |   context.xml
 > |
 > +---pages
 > |   |   Index.html
 > |   |   PageTemplate.html
 > |   |
 > |   +---about
 > |   |   Index.html
 > |   |
 > |   \---graphics
 > |   logo.gif
 > |
 > \---WEB-INF
 > |   web.xml
 > |
 > +---classes
 > |   \---com
 > |   \---foo
 > |   \---website
 > |   |   FooWebApplication$1.class
 > |   |   FooWebApplication.class
 > |   |
 > |   +---pages
 > |   |   |   Index.class
 > |   |   |
 > |   |   \---about
 > |   |   Index.class
 > |   |
 > |   \---templates
 > |   PageTemplate.class
 > |
 > \---lib
 > commons-logging-1.0.4.jar
 > log4j-1.2.12.jar
 > wicket-1.2-20060227-0200.jar
 >
 > I'd really appreciate it, if someone please could take a look at the
 > tiny project (http://regnis.de/_wicket/wicket-060228.zip) and give a
 > hint about what's wrong and how to make it better. Thanks in advance.
 >
 > --
 > Best regards,
 > Thomas Singer



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


Re: [Wicket-user] Are the lists working?

2006-03-02 Thread Riyad Kalla
Yea, we've been chatting up a storm.

On 3/2/06, Jerry Smith <[EMAIL PROTECTED]> wrote:
>
>
>
> Are the lists working?


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


Re: [Wicket-user] Help With Popup Window

2006-03-02 Thread Ayodeji Aladejebi
hmm works thanks... so wats the setWindowName() for...anyway
On 3/2/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

try without the setWindowName() 
-Igor

On 3/2/06, Ayodeji Aladejebi <[EMAIL PROTECTED]
> wrote: 


How easy can it get...I did this and got no popups..any tips? 
    plink = new PageLink("popwin",new ImageViewer());    PopupSettings p = new PopupSettings();    p.setWidth(300).setHeight(300).setTop(23).setWindowName("Image Preview"); 
    plink.setPopupSettings(p);    add(plink);


Re: [Wicket-user] Are the lists working?

2006-03-02 Thread Igor Vaynberg
seem to be :)On 3/2/06, Jerry Smith <[EMAIL PROTECTED]> wrote:













Are the lists working?










[Wicket-user] Are the lists working?

2006-03-02 Thread Jerry Smith








Are the lists working?








Re: [Wicket-user] Wicket news for 2006-03-02

2006-03-02 Thread Riyad Kalla
I agree with Igor, confluence is extremely unintuitive for a lot of
people (me) and they (me) don't like it (me).

On 3/2/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> imho
> an ideal situation would be if we can have a site with a cms+jira+confluence
> (i know we can use confluence to host the site itself as well but those
> always look iffy)
>
> we can also use it to host the latest examples and keep those uptodate.
>
> everything else can stay at sf.net
>
> -Igor
>
>
>
> On 3/2/06, Riyad Kalla <[EMAIL PROTECTED] > wrote:
> > Oh wow sorry about that, I went off in left field there thinking about
> > a full site thing.
> >
> > Thanks for the clarification.
> >
> > On 3/2/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> > > Riyad,
> > >
> > > We won't be moving too soon. And the most infrastructure would be
> > > hosted at sourceforge. It all depends on where things hurt.
> > >
> > > The mailinglists can still go through sourceforge, and heck, I'd
> > > rather keep our cvs (svn) on sourceforge rather than roll our own.
> > >
> > > Site maintenance is already on our shoulders, so there wouldn't be too
> > > much extra effort involved there.
> > >
> > > The only thing we are trying to solve it the issue of updating the
> > > frontpage. Currently this is done from generating a maven website.
> > > This is rather cumbersome, as I'm the only one currenlty that
> > > maintains the docs. Having a CMS like drupal would open up some of the
> > > problems we currently have, and give us room to actually promote new
> > > things on the website without having to deploy it.
> > >
> > > As for a wicket based CMS hosting wicket itself, that will be a while
> > > before that happens ;-).
> > >
> > > Martijn
> > >
> > > On 3/2/06, Riyad Kalla < [EMAIL PROTECTED]> wrote:
> > > >  Martijn,
> > > >  I understand, this is why I asked for you to possibly give a
> ballpark. If
> > > > you guys are fine fitting a $50-ish bill a month, then going for a VPS
> would
> > > > be a great middle ground. If everyone is only ok with $30, then I
> would look
> > > > at some shared hosting plans at your favorite provider. And if someone
> in
> > > > the group hates money and thinks $100+ a month is great, then
> dedicated
> > > > hosting is an option (and I would also try and be best friends with
> that
> > > > person :)
> > > >
> > > >  I would point out the major downside to moving from SF though, and
> that is
> > > > site maintenance. All the sudden all the free time you guys had that
> was
> > > > going into Wicket will be responding to CVS problems, forum security
> issues,
> > > > database crash issues, people not receiving bugz notification issues
> and all
> > > > the other crud that goes along with a dev site working.
> > > >
> > > >  That being said, a Wicket portal would not only be cool, but be an
> awesome
> > > > tutorial and poster child for Wicket. So if you all decide this is in
> the
> > > > best interest of the team and it won't side track the project, go for
> it.
> > > > I've just been here and done that before and regretted it... as sucky
> as SF
> > > > is at times.
> > > >
> > > >  -R
> > > >
> > > >
> > > >  Martijn Dashorst wrote:
> > > >  For all of the Wicket committers, working on the core project is not
> a
> > > > business. Some of us make a living working on java projects, that
> > > > happen to be using Wicket, but that might change soon enough.
> > > >
> > > > So we don't get any money from our Wicket endeavours, so we also
> > > > wouldn't like to shell out 300$ per month :-).
> > > >
> > > > We haven't picked out anything yet, and we aren't even sure what we
> > > > exactly want. Perhaps we'll leave it the way it currenlty is, or we
> > > > might go the spring route (use drupal or another php CMS), or roll our
> > > > own...
> > > >
> > > > Martijn
> > > >
> > > >
> > > > On 3/2/06, Riyad Kalla < [EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > >  Maybe you should clarify the type of budget you are looking to spend
> on
> > > > this? That would make the difference between shared, vps, dedicated,
> etc.
> > > >
> > > >  But since it's free now, I'm assuming the cheaper the better as long
> as QoS
> > > > is good?
> > > >
> > > >  Martijn Dashorst wrote:
> > > >  Yeah, and they are also worth a cheque! :)
> > > >
> > > > Thanks for the pointer!
> > > >
> > > > Martijn
> > > >
> > > > On 3/2/06, Dorel Vaida <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > >  ...
> > > >
> > > >
> > > >
> > > >  but we are
> > > > looking at hosting options to have more cpu available for ourselves.
> > > >
> > > >
> > > >
> > > >   http://www.contegix.com/index.action
> > > >
> > > > Take a look here, I've heard some good things about them, worths a
> check.
> > > >
> > > >
> > > >
> ---
> > > > 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

Re: [Wicket-user] ListMultipleChoice and AJAX problem

2006-03-02 Thread Igor Vaynberg
i just checked in a fix to head.

here is a patch if you want it sooner, let me know if that helpsOn 3/2/06, Jerry Smith <[EMAIL PROTECTED]
> wrote:

















I'm using snapshot 20060227-0200 a ListMultipleChoice
with AjaxFormComponentUpdatingBehavior. The ListMultipleChoice's model is
getting set to only the first selected item in the list during the AJAX update.  I'm
guessing the problem might be in wicket-ajax.js:

 

function wicketGetValue(comp) {

    var type=comp.type;

    if
(type=="checkbox"||type=="radio") {

    return
comp.checked;

    } else {

    return
comp.value;  ß for select
will only return the first item

    }

}

 

If it's just a _javascript_ fix, it would probably be
faster for you guys to do it. If it's more involved, I'd be happy to
get a patch together if you could start me down the right path of the possible
classes involved.








### Eclipse Workspace Patch 1.0
#P wicket
Index: src/java/wicket/ajax/form/AjaxFormComponentUpdatingBehavior.java
===
RCS file: 
/cvsroot/wicket/wicket/src/java/wicket/ajax/form/AjaxFormComponentUpdatingBehavior.java,v
retrieving revision 1.7
diff -u -r1.7 AjaxFormComponentUpdatingBehavior.java
--- src/java/wicket/ajax/form/AjaxFormComponentUpdatingBehavior.java17 Feb 
2006 18:32:20 -  1.7
+++ src/java/wicket/ajax/form/AjaxFormComponentUpdatingBehavior.java2 Mar 
2006 16:52:46 -
@@ -75,10 +75,7 @@
AppendingStringBuffer buff = new 
AppendingStringBuffer(url.length() + 128);
buff.append("wicketAjaxGet('");
buff.append(url);
-   buff.append("&");
-   buff.append(fc.getInputName());
-   buff.append("='+");
-   buff.append("wicketGetValue(this));");
+   buff.append("&'+wicketSerialize(this))");
 
return buff.toString();
}
Index: src/java/wicket/ajax/wicket-ajax.js
===
RCS file: /cvsroot/wicket/wicket/src/java/wicket/ajax/wicket-ajax.js,v
retrieving revision 1.9
diff -u -r1.9 wicket-ajax.js
--- src/java/wicket/ajax/wicket-ajax.js 2 Mar 2006 07:59:34 -   1.9
+++ src/java/wicket/ajax/wicket-ajax.js 2 Mar 2006 16:52:45 -
@@ -5,14 +5,6 @@
 function wicketHide(id) {
 document.getElementById(id).style.display = "none";
 }
-function wicketGetValue(comp) {
-var type = comp.type;
-if (type == "checkbox" || type == "radio") {
-return comp.checked;
-} else {
-return comp.value;
-}
-}
 
  
 // AJAX FUNCTIONS


[Wicket-user] Re: Wicket and Tomcat session id reuse

2006-03-02 Thread jan_bar
Thanks Johan,

(I cannot indent your message, because it is not plain text). I have exactly
the situation you describe. I use the REDIREC_TO_BUFFER, invalidate a page a
no redirect. With Jetty I get "session expired" page, which is expected, but
with Tomcat I get back the original page. Only after subsequent refresh or
button click I get the "session expired". This is due to the fact, that the
buffered response was not cleared from the map.

Jan


"Johan Compagner" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
that map doesn't really matter
it is only filled with something if we send out a client side redirect to a
page that we already renderd (REDIREC_TO_BUFFER)

So it will only go "wrong" if the session got invalidated in a request then
a redirect is done to a page that was created for that request
But i guess this is maybe even wat you want because maybe it is the ByeBye
page?

The problem is that a buffered response isn't even checked for a new session
(or better said not yet created session)
because we don't create the session at that time..

We could stored those redirect buffers in the session, but we don't want
that because the session could be clusted ect and then it is constanlty
touched and updated and therefor replicated.

johan



On 3/2/06, jan_bar <[EMAIL PROTECTED]> wrote:
Hi,

I created a little application that tests various session behaviour. I
notied something interesting with Tomcat. When session is invalidated and
browser sends request to Tomcat with session id in cookie (the session was
invalidated), Tomcat doesn't create new session with new id, it just reuse
the session id. Just to be clean about that, here is part of the log:

PersistentSessionListener.sessionCreated(), id =
94B93B22C9E1B8B2EFA96807764C12E9
PersistentSessionListener.sessionDestroyed(), id =
94B93B22C9E1B8B2EFA96807764C12E9
PersistentSessionListener.sessionCreated(), id =
94B93B22C9E1B8B2EFA96807764C12E9

Even if suprising behaviour, it is in my opinion correct. Why to generate
new session id when I can reuse the already generated one?

And now to the point. It seems to me that Wicket 1.1.1 is not prepared to
handle this correctly, for instance the WebApplication.redirectMap contains
entries, that are not valid for the new session if it has the same id.

Can someone confirm this?

I use JBoss 4.0.3SP1

Thanks, Jan





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





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


Re: [Wicket-user] Wicket news for 2006-03-02

2006-03-02 Thread Igor Vaynberg
imhoan ideal situation would be if we can have a site with a cms+jira+confluence(i know we can use confluence to host the site itself as well but those always look iffy)we can also use it to host the latest examples and keep those uptodate.
everything else can stay at sf.net-IgorOn 3/2/06, Riyad Kalla <[EMAIL PROTECTED]
> wrote:Oh wow sorry about that, I went off in left field there thinking about
a full site thing.Thanks for the clarification.On 3/2/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:> Riyad,>> We won't be moving too soon. And the most infrastructure would be
> hosted at sourceforge. It all depends on where things hurt.>> The mailinglists can still go through sourceforge, and heck, I'd> rather keep our cvs (svn) on sourceforge rather than roll our own.
>> Site maintenance is already on our shoulders, so there wouldn't be too> much extra effort involved there.>> The only thing we are trying to solve it the issue of updating the> frontpage. Currently this is done from generating a maven website.
> This is rather cumbersome, as I'm the only one currenlty that> maintains the docs. Having a CMS like drupal would open up some of the> problems we currently have, and give us room to actually promote new
> things on the website without having to deploy it.>> As for a wicket based CMS hosting wicket itself, that will be a while> before that happens ;-).>> Martijn>> On 3/2/06, Riyad Kalla <
[EMAIL PROTECTED]> wrote:> >  Martijn,> >  I understand, this is why I asked for you to possibly give a ballpark. If> > you guys are fine fitting a $50-ish bill a month, then going for a VPS would
> > be a great middle ground. If everyone is only ok with $30, then I would look> > at some shared hosting plans at your favorite provider. And if someone in> > the group hates money and thinks $100+ a month is great, then dedicated
> > hosting is an option (and I would also try and be best friends with that> > person :)> >> >  I would point out the major downside to moving from SF though, and that is> > site maintenance. All the sudden all the free time you guys had that was
> > going into Wicket will be responding to CVS problems, forum security issues,> > database crash issues, people not receiving bugz notification issues and all> > the other crud that goes along with a dev site working.
> >> >  That being said, a Wicket portal would not only be cool, but be an awesome> > tutorial and poster child for Wicket. So if you all decide this is in the> > best interest of the team and it won't side track the project, go for it.
> > I've just been here and done that before and regretted it... as sucky as SF> > is at times.> >> >  -R> >> >> >  Martijn Dashorst wrote:> >  For all of the Wicket committers, working on the core project is not a
> > business. Some of us make a living working on java projects, that> > happen to be using Wicket, but that might change soon enough.> >> > So we don't get any money from our Wicket endeavours, so we also
> > wouldn't like to shell out 300$ per month :-).> >> > We haven't picked out anything yet, and we aren't even sure what we> > exactly want. Perhaps we'll leave it the way it currenlty is, or we
> > might go the spring route (use drupal or another php CMS), or roll our> > own...> >> > Martijn> >> >> > On 3/2/06, Riyad Kalla <
[EMAIL PROTECTED]> wrote:> >> >> >  Maybe you should clarify the type of budget you are looking to spend on> > this? That would make the difference between shared, vps, dedicated, etc.
> >> >  But since it's free now, I'm assuming the cheaper the better as long as QoS> > is good?> >> >  Martijn Dashorst wrote:> >  Yeah, and they are also worth a cheque! :)
> >> > Thanks for the pointer!> >> > Martijn> >> > On 3/2/06, Dorel Vaida <[EMAIL PROTECTED]> wrote:> >
> >> >  ...> >> >> >> >  but we are> > looking at hosting options to have more cpu available for ourselves.> >> >> >> >  
http://www.contegix.com/index.action> >> > Take a look here, I've heard some good things about them, worths a check.> >> >> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language> > that extends applications into web and mobile media. Attend the live webcast> > and join the prime developer group breaking into this new coding territory!
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> > ___
> > Wicket-user mailing list> > Wicket-user@lists.sourceforge.net> > 
https://lists.sourceforge.net/lists/listinfo/wicket-user> >> >> >> >> >  -- 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> > ---
> > 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 int

Re: [Wicket-user] Wicket and JAAS integration

2006-03-02 Thread Eelco Hillenius
I'd prefer to implement everything in Wicket usually, but letting the
container do at least the authentication makes it easier to implement
things like single singon and when you have a mixed webapp (e.g. that
uses plain JSP's etc).

Eelco

On 3/2/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> A good way in between is to let the container handle authentication
> and implement authorization with Wicket, much in the fashion of
> something like wicket-auth-roles, but for the user you would use
> ((WebRequest)getRequest()).getHttpServletRequest().getUserPrincipal()
> and / or ((WebRequest)getRequest()).isUserInRole()
>
> Eelco
>
> On 3/2/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > this wouldn't really be the "wicket" way of doing stuff.
> > Because you want to base youre security on Request/Urls and that is just
> > what wicket wants to avoid.
> >
> > The security should be mapped on Components/Pages or Models (data).
> >
> > See for example our own security implementation wicket-auth-roles and
> > wicket-auth-roles-example
> >
> > http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=173489
> >
> > johan
> >
> >
> > On 3/2/06, Piotr Bzdyl <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > >
> > > How can I integrate wicket with the JAAS? I mean configuring web.xml
> > > with following configuration:
> > >
> > > 
> > > 
> > >   MySystem authorized
> > area
> > >   /app/*
> > >   DELETE
> > >   GET
> > >   POST
> > >   PUT
> > > 
> > > 
> > >   MySystemUser
> > > 
> > > 
> > >   
> > > NONE
> > >   
> > > 
> > >   
> > >   
> > > FORM
> > > MySystem
> > > 
> > >   /login.html
> > >
> > /loginFailed.html
> > > 
> > >   
> > >   
> > > MySystemUser
> > >   
> > >
> > > Another concern is what to do if I want to let the user to access my
> > > wicket home page but restrict access to other pages using container
> > > authorization?
> > >
> > > Best regards,
> > > Piotr
> > >
> > >
> > > ---
> > > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language
> > > that extends applications into web and mobile media. Attend the live
> > webcast
> > > and join the prime developer group breaking into this new coding
> > territory!
> > >
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
>


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


Re: [Wicket-user] Wicket and JAAS integration

2006-03-02 Thread Eelco Hillenius
A good way in between is to let the container handle authentication
and implement authorization with Wicket, much in the fashion of
something like wicket-auth-roles, but for the user you would use
((WebRequest)getRequest()).getHttpServletRequest().getUserPrincipal()
and / or ((WebRequest)getRequest()).isUserInRole()

Eelco

On 3/2/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> this wouldn't really be the "wicket" way of doing stuff.
> Because you want to base youre security on Request/Urls and that is just
> what wicket wants to avoid.
>
> The security should be mapped on Components/Pages or Models (data).
>
> See for example our own security implementation wicket-auth-roles and
> wicket-auth-roles-example
>
> http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=173489
>
> johan
>
>
> On 3/2/06, Piotr Bzdyl <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > How can I integrate wicket with the JAAS? I mean configuring web.xml
> > with following configuration:
> >
> > 
> > 
> >   MySystem authorized
> area
> >   /app/*
> >   DELETE
> >   GET
> >   POST
> >   PUT
> > 
> > 
> >   MySystemUser
> > 
> > 
> >   
> > NONE
> >   
> > 
> >   
> >   
> > FORM
> > MySystem
> > 
> >   /login.html
> >
> /loginFailed.html
> > 
> >   
> >   
> > MySystemUser
> >   
> >
> > Another concern is what to do if I want to let the user to access my
> > wicket home page but restrict access to other pages using container
> > authorization?
> >
> > Best regards,
> > Piotr
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>


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


Re: [Wicket-user] Help With Popup Window

2006-03-02 Thread Igor Vaynberg
try without the setWindowName()-IgorOn 3/2/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
How easy can it get...I did this and got no popups..any tips?

    plink = new PageLink("popwin",new ImageViewer());    PopupSettings p = new PopupSettings();    p.setWidth(300).setHeight(300).setTop(23).setWindowName("Image Preview");
    plink.setPopupSettings(p);    add(plink);




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

2006-03-02 Thread Eelco Hillenius
I thought maven already copies all resources from the webapp dir. For
you java dirs you should do this:

maven1:
  
src/java
 

  
src/java

  **


  **/*.java

  

  

maven 2:


src/java
...



false
src/java

**


**/*.java



  ...


Eelco

On 3/2/06, Rob Dickens <[EMAIL PROTECTED]> wrote:
> Dear list,
>
> I've just discovered that each Bla.java's corr'ding Bla.html file
> must be in my_project/src/main/webapp/WEB-INF/classes/.../ in order
> for it to be copied into the war file.
>
> So my question is, should I have maven COPY the .html file into the
> above directory (from my_project/src/main/java/...) when creating the
> war file, or start out with it there in the first place? If the
> former, how is this done?
>
> Many thanks in advance,
>
> 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=lnk&kid=110944&bid=241720&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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-02 Thread Martijn Dashorst
If you are using eclipse, then placing the HTML file next to the .java
file will automatically do that for you.

Maven will not automatically copy it, so you may want to add the
following things to the build section of your pom.xml


src/java
src/test



false
src/java

**


**/*.java




Wicket's project.xml of maven 1 should also contain this stuff

Martijn


On 3/2/06, Rob Dickens <[EMAIL PROTECTED]> wrote:
> Dear list,
>
> I've just discovered that each Bla.java's corr'ding Bla.html file
> must be in my_project/src/main/webapp/WEB-INF/classes/.../ in order
> for it to be copied into the war file.
>
> So my question is, should I have maven COPY the .html file into the
> above directory (from my_project/src/main/java/...) when creating the
> war file, or start out with it there in the first place? If the
> former, how is this done?
>
> Many thanks in advance,
>
> 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=lnk&kid=110944&bid=241720&dat=121642
> ___
> Wicket-user mailing list
> Wicket-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


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


Re: [Wicket-user] Question about application-scoped resources

2006-03-02 Thread Igor Vaynberg
not unless you can get 10 different wicket applications running under the same servlet with the same mapping - which of course you cannot because Application object is not shared between applications.-Igor
On 3/2/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
huh? created and or destroyed as a single unit?How is that possible? When should that happen?johan
On 3/2/06, Gili <

[EMAIL PROTECTED]> wrote:Hi,Looking at LocalizedImageResource.java

 and other resource-relatedsource code it seems to me that we assume that resources will be sharedin the scope of wicket.Application.classDoesn't this imply that if you have 10 Wicket applications running,
their combined resources are either created or destroyed as a singleunit? I would expect us to use application.getClass() as the scope where"application" is the current application (one out of the ten
applications). Is it possible to use the behavior I am describing?Thank you,Gili--
http://www.desktopbeautifier.com/---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





Re: [Wicket-user] Wicket and JAAS integration

2006-03-02 Thread Johan Compagner
this wouldn't really be the "wicket" way of doing stuff.Because you want to base youre security on Request/Urls and that is just what wicket wants to avoid.The security should be mapped on Components/Pages or Models (data). 
See for example our own security implementation wicket-auth-roles and wicket-auth-roles-examplehttp://sourceforge.net/project/showfiles.php?group_id=119783&package_id=173489
johanOn 3/2/06, Piotr Bzdyl <[EMAIL PROTECTED]> wrote:
Hello,How can I integrate wicket with the JAAS? I mean configuring web.xmlwith following configuration:  MySystem authorized area
  /app/*  DELETE  GET  POST  PUT
  MySystemUser  
NONE  FORMMySystem
  /login.html  /loginFailed.html  
  MySystemUser  Another concern is what to do if I want to let the user to access mywicket home page but restrict access to other pages using container
authorization?Best regards,Piotr---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=lnk&kid=110944&bid=241720&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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

2006-03-02 Thread Rob Dickens

Dear list,

I've just discovered that each Bla.java's corr'ding Bla.html file  
must be in my_project/src/main/webapp/WEB-INF/classes/.../ in order  
for it to be copied into the war file.


So my question is, should I have maven COPY the .html file into the  
above directory (from my_project/src/main/java/...) when creating the  
war file, or start out with it there in the first place? If the  
former, how is this done?


Many thanks in advance,

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


[Wicket-user] Resource Lookup

2006-03-02 Thread Jonathan Carlson
Until this week I haven't had any images to lookup in my Wicket 1.1
Panels.  Now that I've added some images, it appears that the image
resource lookup code is not looking in my superclass package for
images.

If this really is the case, that is a problem because I have reusable
panels that are abstract and intended to be subclassed (either anonymous
or named subclasses) in other packages to supply the necessary
information.  I want my images to be in the abstract superclass package,
not in the using class package.

Does this ring any bells for anyone?  

Thanks!

- Jonathan

P.S. I tried Wicket 1.1.1 to see if that would fix it but it didn't.

P.P.S. Wicket is beautiful!

__
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com 
_


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


Re: [Wicket-user] Wicket and Tomcat session id reuse

2006-03-02 Thread Johan Compagner
that map doesn't really matterit is only filled with something if we send out a client side redirect to a page that we already renderd (REDIREC_TO_BUFFER)So it will only go "wrong" if the session got invalidated in a request then a redirect is done to a page that was created for that request
But i guess this is maybe even wat you want because maybe it is the ByeBye page?The problem is that a buffered response isn't even checked for a new session (or better said not yet created session)because we don't create the session at that time..
We could stored those redirect buffers in the session, but we don't want that because the session could be clusted ect and then it is constanltytouched and updated and therefor replicated.johan
On 3/2/06, jan_bar <[EMAIL PROTECTED]> wrote:
Hi,I created a little application that tests various session behaviour. Inotied something interesting with Tomcat. When session is invalidated andbrowser sends request to Tomcat with session id in cookie (the session was
invalidated), Tomcat doesn't create new session with new id, it just reusethe session id. Just to be clean about that, here is part of the log:PersistentSessionListener.sessionCreated(), id =94B93B22C9E1B8B2EFA96807764C12E9
PersistentSessionListener.sessionDestroyed(), id =94B93B22C9E1B8B2EFA96807764C12E9PersistentSessionListener.sessionCreated(), id =94B93B22C9E1B8B2EFA96807764C12E9Even if suprising behaviour, it is in my opinion correct. Why to generate
new session id when I can reuse the already generated one?And now to the point. It seems to me that Wicket 1.1.1 is not prepared tohandle this correctly, for instance the WebApplication.redirectMap contains
entries, that are not valid for the new session if it has the same id.Can someone confirm this?I use JBoss 4.0.3SP1Thanks, Jan---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] Wicket news for 2006-03-02

2006-03-02 Thread Riyad Kalla
Oh wow sorry about that, I went off in left field there thinking about
a full site thing.

Thanks for the clarification.

On 3/2/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> Riyad,
>
> We won't be moving too soon. And the most infrastructure would be
> hosted at sourceforge. It all depends on where things hurt.
>
> The mailinglists can still go through sourceforge, and heck, I'd
> rather keep our cvs (svn) on sourceforge rather than roll our own.
>
> Site maintenance is already on our shoulders, so there wouldn't be too
> much extra effort involved there.
>
> The only thing we are trying to solve it the issue of updating the
> frontpage. Currently this is done from generating a maven website.
> This is rather cumbersome, as I'm the only one currenlty that
> maintains the docs. Having a CMS like drupal would open up some of the
> problems we currently have, and give us room to actually promote new
> things on the website without having to deploy it.
>
> As for a wicket based CMS hosting wicket itself, that will be a while
> before that happens ;-).
>
> Martijn
>
> On 3/2/06, Riyad Kalla <[EMAIL PROTECTED]> wrote:
> >  Martijn,
> >  I understand, this is why I asked for you to possibly give a ballpark. If
> > you guys are fine fitting a $50-ish bill a month, then going for a VPS would
> > be a great middle ground. If everyone is only ok with $30, then I would look
> > at some shared hosting plans at your favorite provider. And if someone in
> > the group hates money and thinks $100+ a month is great, then dedicated
> > hosting is an option (and I would also try and be best friends with that
> > person :)
> >
> >  I would point out the major downside to moving from SF though, and that is
> > site maintenance. All the sudden all the free time you guys had that was
> > going into Wicket will be responding to CVS problems, forum security issues,
> > database crash issues, people not receiving bugz notification issues and all
> > the other crud that goes along with a dev site working.
> >
> >  That being said, a Wicket portal would not only be cool, but be an awesome
> > tutorial and poster child for Wicket. So if you all decide this is in the
> > best interest of the team and it won't side track the project, go for it.
> > I've just been here and done that before and regretted it... as sucky as SF
> > is at times.
> >
> >  -R
> >
> >
> >  Martijn Dashorst wrote:
> >  For all of the Wicket committers, working on the core project is not a
> > business. Some of us make a living working on java projects, that
> > happen to be using Wicket, but that might change soon enough.
> >
> > So we don't get any money from our Wicket endeavours, so we also
> > wouldn't like to shell out 300$ per month :-).
> >
> > We haven't picked out anything yet, and we aren't even sure what we
> > exactly want. Perhaps we'll leave it the way it currenlty is, or we
> > might go the spring route (use drupal or another php CMS), or roll our
> > own...
> >
> > Martijn
> >
> >
> > On 3/2/06, Riyad Kalla <[EMAIL PROTECTED]> wrote:
> >
> >
> >  Maybe you should clarify the type of budget you are looking to spend on
> > this? That would make the difference between shared, vps, dedicated, etc.
> >
> >  But since it's free now, I'm assuming the cheaper the better as long as QoS
> > is good?
> >
> >  Martijn Dashorst wrote:
> >  Yeah, and they are also worth a cheque! :)
> >
> > Thanks for the pointer!
> >
> > Martijn
> >
> > On 3/2/06, Dorel Vaida <[EMAIL PROTECTED]> wrote:
> >
> >
> >  ...
> >
> >
> >
> >  but we are
> > looking at hosting options to have more cpu available for ourselves.
> >
> >
> >
> >  http://www.contegix.com/index.action
> >
> > Take a look here, I've heard some good things about them, worths a check.
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> > that extends applications into web and mobile media. Attend the live webcast
> > and join the prime developer group breaking into this new coding territory!
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
> >
> >  -- 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
> > ---
> > 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=k&kid0944&bid$1720&dat1642
> > __
> > _ Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lis

Re: [Wicket-user] Wicket and JAAS integration

2006-03-02 Thread Piotr Bzdyl

Hello,

I don't believe letting the webcontainer handle all the security has
come up on the mailing before. So i am afraid i cannot help you there.
However i have build a jaas securityframework for wicket (1.2)
allowing your wicket app to control what pages/ components are
displayed based on the information in your policy file. If you are
interested in that i could send you a jar.
  

Of course, I am interested is such library. Could you send it to me?

Thank you in advance,
Piotr


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


[Wicket-user] ListMultipleChoice and AJAX problem

2006-03-02 Thread Jerry Smith








I’m using snapshot 20060227-0200 a ListMultipleChoice
with AjaxFormComponentUpdatingBehavior. The ListMultipleChoice’s model is
getting set to only the first selected item in the list during the AJAX update.  I’m
guessing the problem might be in wicket-ajax.js:

 

function wicketGetValue(comp) {

    var type=comp.type;

    if
(type=="checkbox"||type=="radio") {

    return
comp.checked;

    } else {

    return
comp.value;  ß for select
will only return the first item

    }

}

 

If it’s just a _javascript_ fix, it would probably be
faster for you guys to do it. If it’s more involved, I’d be happy to
get a patch together if you could start me down the right path of the possible
classes involved.








[Wicket-user] Re: Wicket and Tomcat session id reuse

2006-03-02 Thread jan_bar
Resin has sesion id reuse by default, see 
http://www.caucho.com/resin-3.0/config/webapp.xtp#session-config, search for 
reuse-session-id. I suspect, that Tomcat has something similar, I just 
cannot find the config parameter.

Jan

"jan_bar" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi,
>
> I created a little application that tests various session behaviour. I 
> notied something interesting with Tomcat. When session is invalidated and 
> browser sends request to Tomcat with session id in cookie (the session was 
> invalidated), Tomcat doesn't create new session with new id, it just reuse 
> the session id. Just to be clean about that, here is part of the log:
>
> PersistentSessionListener.sessionCreated(), id = 
> 94B93B22C9E1B8B2EFA96807764C12E9
> PersistentSessionListener.sessionDestroyed(), id = 
> 94B93B22C9E1B8B2EFA96807764C12E9
> PersistentSessionListener.sessionCreated(), id = 
> 94B93B22C9E1B8B2EFA96807764C12E9
>
> Even if suprising behaviour, it is in my opinion correct. Why to generate 
> new session id when I can reuse the already generated one?
>
> And now to the point. It seems to me that Wicket 1.1.1 is not prepared to 
> handle this correctly, for instance the WebApplication.redirectMap 
> contains entries, that are not valid for the new session if it has the 
> same id.
>
> Can someone confirm this?
>
> I use JBoss 4.0.3SP1
>
> Thanks, Jan
>
>
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting 
> language
> that extends applications into web and mobile media. Attend the live 
> webcast
> and join the prime developer group breaking into this new coding 
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 





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


Re: [Wicket-user] Wicket and JAAS integration

2006-03-02 Thread Maurice Marrink
I don't believe letting the webcontainer handle all the security has
come up on the mailing before. So i am afraid i cannot help you there.
However i have build a jaas securityframework for wicket (1.2)
allowing your wicket app to control what pages/ components are
displayed based on the information in your policy file. If you are
interested in that i could send you a jar.

Maurice

On 3/2/06, Piotr Bzdyl <[EMAIL PROTECTED]> wrote:
> Hello,
>
> How can I integrate wicket with the JAAS? I mean configuring web.xml
> with following configuration:
>
> 
>
>  MySystem authorized area
>  /app/*
>  DELETE
>  GET
>  POST
>  PUT
>
>
>  MySystemUser
>
>
>  
>NONE
>  
>
>  
>  
>FORM
>MySystem
>
>  /login.html
>  /loginFailed.html
>
>  
>  
>MySystemUser
>  
>
> Another concern is what to do if I want to let the user to access my
> wicket home page but restrict access to other pages using container
> authorization?
>
> Best regards,
> Piotr
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


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


[Wicket-user] Wicket and Tomcat session id reuse

2006-03-02 Thread jan_bar
Hi,

I created a little application that tests various session behaviour. I 
notied something interesting with Tomcat. When session is invalidated and 
browser sends request to Tomcat with session id in cookie (the session was 
invalidated), Tomcat doesn't create new session with new id, it just reuse 
the session id. Just to be clean about that, here is part of the log:

PersistentSessionListener.sessionCreated(), id = 
94B93B22C9E1B8B2EFA96807764C12E9
PersistentSessionListener.sessionDestroyed(), id = 
94B93B22C9E1B8B2EFA96807764C12E9
PersistentSessionListener.sessionCreated(), id = 
94B93B22C9E1B8B2EFA96807764C12E9

Even if suprising behaviour, it is in my opinion correct. Why to generate 
new session id when I can reuse the already generated one?

And now to the point. It seems to me that Wicket 1.1.1 is not prepared to 
handle this correctly, for instance the WebApplication.redirectMap contains 
entries, that are not valid for the new session if it has the same id.

Can someone confirm this?

I use JBoss 4.0.3SP1

Thanks, Jan 





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


Re: [Wicket-user] Wicket news for 2006-03-02

2006-03-02 Thread Martijn Dashorst
Riyad,

We won't be moving too soon. And the most infrastructure would be
hosted at sourceforge. It all depends on where things hurt.

The mailinglists can still go through sourceforge, and heck, I'd
rather keep our cvs (svn) on sourceforge rather than roll our own.

Site maintenance is already on our shoulders, so there wouldn't be too
much extra effort involved there.

The only thing we are trying to solve it the issue of updating the
frontpage. Currently this is done from generating a maven website.
This is rather cumbersome, as I'm the only one currenlty that
maintains the docs. Having a CMS like drupal would open up some of the
problems we currently have, and give us room to actually promote new
things on the website without having to deploy it.

As for a wicket based CMS hosting wicket itself, that will be a while
before that happens ;-).

Martijn

On 3/2/06, Riyad Kalla <[EMAIL PROTECTED]> wrote:
>  Martijn,
>  I understand, this is why I asked for you to possibly give a ballpark. If
> you guys are fine fitting a $50-ish bill a month, then going for a VPS would
> be a great middle ground. If everyone is only ok with $30, then I would look
> at some shared hosting plans at your favorite provider. And if someone in
> the group hates money and thinks $100+ a month is great, then dedicated
> hosting is an option (and I would also try and be best friends with that
> person :)
>
>  I would point out the major downside to moving from SF though, and that is
> site maintenance. All the sudden all the free time you guys had that was
> going into Wicket will be responding to CVS problems, forum security issues,
> database crash issues, people not receiving bugz notification issues and all
> the other crud that goes along with a dev site working.
>
>  That being said, a Wicket portal would not only be cool, but be an awesome
> tutorial and poster child for Wicket. So if you all decide this is in the
> best interest of the team and it won't side track the project, go for it.
> I've just been here and done that before and regretted it... as sucky as SF
> is at times.
>
>  -R
>
>
>  Martijn Dashorst wrote:
>  For all of the Wicket committers, working on the core project is not a
> business. Some of us make a living working on java projects, that
> happen to be using Wicket, but that might change soon enough.
>
> So we don't get any money from our Wicket endeavours, so we also
> wouldn't like to shell out 300$ per month :-).
>
> We haven't picked out anything yet, and we aren't even sure what we
> exactly want. Perhaps we'll leave it the way it currenlty is, or we
> might go the spring route (use drupal or another php CMS), or roll our
> own...
>
> Martijn
>
>
> On 3/2/06, Riyad Kalla <[EMAIL PROTECTED]> wrote:
>
>
>  Maybe you should clarify the type of budget you are looking to spend on
> this? That would make the difference between shared, vps, dedicated, etc.
>
>  But since it's free now, I'm assuming the cheaper the better as long as QoS
> is good?
>
>  Martijn Dashorst wrote:
>  Yeah, and they are also worth a cheque! :)
>
> Thanks for the pointer!
>
> Martijn
>
> On 3/2/06, Dorel Vaida <[EMAIL PROTECTED]> wrote:
>
>
>  ...
>
>
>
>  but we are
> looking at hosting options to have more cpu available for ourselves.
>
>
>
>  http://www.contegix.com/index.action
>
> Take a look here, I've heard some good things about them, worths a check.
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>
>  -- 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
> ---
> 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=k&kid0944&bid$1720&dat1642
> __
> _ Wicket-user mailing list
> Wicket-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
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend t

Re: [Wicket-user] Wicket news for 2006-03-02

2006-03-02 Thread Riyad Kalla




Martijn,
I understand, this is why I asked for you to possibly give a ballpark.
If you guys are fine fitting a $50-ish bill a month, then going for a
VPS would be a great middle ground. If everyone is only ok with $30,
then I would look at some shared hosting plans at your favorite
provider. And if someone in the group hates money and thinks $100+ a
month is great, then dedicated hosting is an option (and I would also
try and be best friends with that person :)

I would point out the major downside to moving from SF though, and that
is site maintenance. All the sudden all the free time you guys had that
was going into Wicket will be responding to CVS problems, forum
security issues, database crash issues, people not receiving bugz
notification issues and all the other crud that goes along with a dev
site working.

That being said, a Wicket portal would not only be cool, but be an
awesome tutorial and poster child for Wicket. So if you all decide this
is in the best interest of the team and it won't side track the
project, go for it. I've just been here and done that before and
regretted it... as sucky as SF is at times.

-R

Martijn Dashorst wrote:

  For all of the Wicket committers, working on the core project is not a
business. Some of us make a living working on java projects, that
happen to be using Wicket, but that might change soon enough.

So we don't get any money from our Wicket endeavours, so we also
wouldn't like to shell out 300$ per month :-).

We haven't picked out anything yet, and we aren't even sure what we
exactly want. Perhaps we'll leave it the way it currenlty is, or we
might go the spring route (use drupal or another php CMS), or roll our
own...

Martijn


On 3/2/06, Riyad Kalla <[EMAIL PROTECTED]> wrote:
  
  
 Maybe you should clarify the type of budget you are looking to spend on
this? That would make the difference between shared, vps, dedicated, etc.

 But since it's free now, I'm assuming the cheaper the better as long as QoS
is good?

 Martijn Dashorst wrote:
 Yeah, and they are also worth a cheque! :)

Thanks for the pointer!

Martijn

On 3/2/06, Dorel Vaida <[EMAIL PROTECTED]> wrote:


 ...



 but we are
looking at hosting options to have more cpu available for ourselves.



 http://www.contegix.com/index.action

Take a look here, I've heard some good things about them, worths a check.


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




 -- 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
---
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=k&kid0944&bid$1720&dat1642
__
_ Wicket-user mailing list
Wicket-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


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

  





Re: [Wicket-user] Re: PopupWindow

2006-03-02 Thread Nick Heudecker
Not sure about the style, but make sure you're using a new page map for them.  That  bit me yesterday.  For example:new PopupSettings(PageMap.forName("popup-page-map"));


Re: [Wicket-user] Wicket news for 2006-03-02

2006-03-02 Thread Martijn Dashorst
For all of the Wicket committers, working on the core project is not a
business. Some of us make a living working on java projects, that
happen to be using Wicket, but that might change soon enough.

So we don't get any money from our Wicket endeavours, so we also
wouldn't like to shell out 300$ per month :-).

We haven't picked out anything yet, and we aren't even sure what we
exactly want. Perhaps we'll leave it the way it currenlty is, or we
might go the spring route (use drupal or another php CMS), or roll our
own...

Martijn


On 3/2/06, Riyad Kalla <[EMAIL PROTECTED]> wrote:
>  Maybe you should clarify the type of budget you are looking to spend on
> this? That would make the difference between shared, vps, dedicated, etc.
>
>  But since it's free now, I'm assuming the cheaper the better as long as QoS
> is good?
>
>  Martijn Dashorst wrote:
>  Yeah, and they are also worth a cheque! :)
>
> Thanks for the pointer!
>
> Martijn
>
> On 3/2/06, Dorel Vaida <[EMAIL PROTECTED]> wrote:
>
>
>  ...
>
>
>
>  but we are
> looking at hosting options to have more cpu available for ourselves.
>
>
>
>  http://www.contegix.com/index.action
>
> Take a look here, I've heard some good things about them, worths a check.
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>
>  -- 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
> ---
> 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=k&kid0944&bid$1720&dat1642
> __
> _ Wicket-user mailing list
> Wicket-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


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


Re: [Wicket-user] Wicket news for 2006-03-02

2006-03-02 Thread Riyad Kalla




Maybe you should clarify the type of budget you are looking to spend on
this? That would make the difference between shared, vps, dedicated,
etc.

But since it's free now, I'm assuming the cheaper the better as long as
QoS is good?

Martijn Dashorst wrote:

  Yeah, and they are also worth a cheque! :)

Thanks for the pointer!

Martijn

On 3/2/06, Dorel Vaida <[EMAIL PROTECTED]> wrote:
  
  
...



  but we are
looking at hosting options to have more cpu available for ourselves.


  

http://www.contegix.com/index.action

Take a look here, I've heard some good things about them, worths a check.


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


  
  

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


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

  





[Wicket-user] Help With Popup Window

2006-03-02 Thread Ayodeji Aladejebi
How easy can it get...I did this and got no popups..any tips?
    plink = new PageLink("popwin",new ImageViewer());    PopupSettings p = new PopupSettings();    p.setWidth(300).setHeight(300).setTop(23).setWindowName("Image Preview");
    plink.setPopupSettings(p);    add(plink);


[Wicket-user] Wicket and JAAS integration

2006-03-02 Thread Piotr Bzdyl

Hello,

How can I integrate wicket with the JAAS? I mean configuring web.xml 
with following configuration:



   
 MySystem authorized area
 /app/*
 DELETE
 GET
 POST
 PUT
   
   
 MySystemUser
   
   
 
   NONE
 
   
 
 
   FORM
   MySystem
   
 /login.html
 /loginFailed.html
   
 
 
   MySystemUser
 

Another concern is what to do if I want to let the user to access my 
wicket home page but restrict access to other pages using container 
authorization?


Best regards,
Piotr


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


Re: [Wicket-user] Wicket news for 2006-03-02

2006-03-02 Thread Martijn Dashorst
Yeah, and they are also worth a cheque! :)

Thanks for the pointer!

Martijn

On 3/2/06, Dorel Vaida <[EMAIL PROTECTED]> wrote:
> ...
>
> > but we are
> >looking at hosting options to have more cpu available for ourselves.
> >
> >
> http://www.contegix.com/index.action
>
> Take a look here, I've heard some good things about them, worths a check.
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


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


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


Re: [Wicket-user] Re: Re: Source of application using Wicket

2006-03-02 Thread Ronald Hemmink

Hi there,

We are working on this project @ Topicus as a graduationproject.
We managed to run the project and afterwards we've submitted changes to 
the cvs which concerns the wicket-contrib-dojo depencies (we've added it 
as a new snapshot)

Hope this will solve your problem.

Ronald & Michiel

jan_bar wrote:

Hi,

I cannot deploy it in JBoss jboss-4.0.3SP1:
13:05:32,090 ERROR [[/burgerweeshuis]] Servlet /burgerweeshuis threw load()
exception
java.lang.NoClassDefFoundError: wicket/AjaxHandler

I think something is missing in the war. I use wicket-1.2-20060227-0200.jar,
wicket-extensions-1.2-20060227-0200.jar and wicket-contrib-dojo-0.3.1.jar
instead of the original files in the lib/wicket.

Thanks for your time, Jan


"Eelco Hillenius" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Just get the latest or build a fresh one yourself.

Eelco

On 2/27/06, jan_bar <[EMAIL PROTECTED]> wrote:
  

Thanks Martijn,

I have latest version of burgerweeshuis, but it doesn't compile. It seems
that the wicket SNAPSHOT in the lib/wicket is out fo date. Which snapshot
should I use?

Jan



"Martijn Dashorst" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
wicket phonebook is a good example to start with.

Under construction, and more specifically /NOT/ by wicket guru's is the
Burgerweeshuis project hosted at sourceforge.

http://www.sourceforge.net/projects/burgerweeshuis

It is a dutch project, but you might find some interesting things there.


It
  

uses hibernate 3, annotations and wicket. It is a rewrite of a previously
Model2 application (based on maverick).

Martijn



On 2/27/06, jan_bar <[EMAIL PROTECTED]> wrote:
Hi,

the Wicket samples is basic source of how to start with Wicket. But I miss
some real world (more complex) applications. I like to learn from code
written by Wicket gurus. For instance Pet Store with Wicket. Can you help
me?

Thank you, Jan





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting


language
  

that extends applications into web and mobile media. Attend the live


webcast
  

and join the prime developer group breaking into this new coding


territory!
  

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




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





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting


language
  

that extends applications into web and mobile media. Attend the live


webcast
  

and join the prime developer group breaking into this new coding


territory!
  

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





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





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

  



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


Re: [Wicket-user] Wicket news for 2006-03-02

2006-03-02 Thread Dorel Vaida

...


but we are
looking at hosting options to have more cpu available for ourselves.
 


http://www.contegix.com/index.action

Take a look here, I've heard some good things about them, worths a check.


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


[Wicket-user] Re: PopupWindow

2006-03-02 Thread Ayodeji Aladejebi
If I have so many popups? is there are control mechanism i can use to arrange all the popup windows. Cascade Style etc
On 3/2/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:


sorry guys, dont bother i was only with wicket 1.1 API doc before, i have seen it in Wicket 1.2 docs
 
thanks 

On 3/2/06, Ayodeji Aladejebi <[EMAIL PROTECTED]
> wrote: 

Is there anyway using Wicket to make a Popup Window from a Link without doing HTML directly? Anything like PopupPanel etc?thanks 
-- "The more life's risk you take, the more life's reward you get" - MeAladejebi Ayodeji A., Project LeadsPentaSoft Technologies Nigeria Limited
Floor 1, AP Plaza, Ademola Adetokunbo Crescent, Wuse IIAbuja, Nigeria | Tel: 234-09-5233478 | Fax: 234-09-5233470 | www.pentanigeria.comVisit my blog: Ayodeji Aladejebi's Blog | 
http://dabar.cowblock.net/Community: Visit Cowblock.net, Nigeria


Re: [Wicket-user] Wicket news for 2006-03-02

2006-03-02 Thread Riyad Kalla

Martijn,
Fantastic to hear about KNAW, glad it went well.

Also, I think the hostname should be:
wicketframework.org

for 2 reasons:
1) Any time you use punctuation for your URL, you introduce a magnitude 
of complexity of folks trying to remember it.

2) springframework.org seems to work just as well ;)

As for hosting, I was looking for a good VPS recently and spent quite a 
bit of time reading through broadband reports and hosting review sites 
and seemed to find consistent good comments about LiquidWeb: 
http://www.liquidweb.com/index.htm


Now personally I've used RimUHosting before, they have excellent 
customer support and grew like wildfire, although I didn't like the 
speed of my VPS and the transfer speed wasn't the greatest for me 
because it was across the country.


GoDaddy is now the biggest registrar (with 1and1 comming in 2nd) but 
I've consistently seen complaints about their VPS service, so I wouldn't 
suggest them. If you really want to get into the big leagues then I 
would suggest ev1servers over Rackspace, although both are good.


-R

Martijn Dashorst wrote:

Here is a short update for all Wicket users and developers.

* Top level domain names
* New snapshots available
* Visit at a Wicket site

Enjoy!


* Top level domain names

I have registered two toplevel domain names for the wicket project.
For now, we have them point to the sourceforge servers, but we are
looking at hosting options to have more cpu available for ourselves.

>From now on (for various values of now) you can refer to our homepage
using the following domain names:

   wicketframework.org
   wicket-framework.org

Which one of these two feels better? (note: wicket.* was already taken
by some darn useless company).

* New snapshot avalailable

I have uploaded a new snapshot of all projects. It is quite possible
that the spring and authorization projects haven't been changed, with
the amount of release packages I tend to  just build and upload
everything, that is far less trouble than having to select all
packages separately.


* Visit at a Wicket site

Yesterday I had a great visit at the KNAW (http://www.knaw.nl), the
Royal Netherlands Academy of Arts and Sciences. I had the whole
afternoon to present Wicket, and have great discussions on how to use
Wicket, and where Wicket is standing.

You have no idea how great it is to see other people working with your
project, see it in action and see them enjoying working with Wicket. I
think the afternoon was great, and well received.

The KNAW is developing a website that enables researchers to search
through scientific papers and books. The site also gives
administrators the ability to add new content to the search library.
It is still under heavy development and from what I have seen, it uses
many features of Wicket, I even haven't used.

One quote that I remember was: "We are using ajax, and we didn't even
have to write one letter of JavaScript"


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


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

  



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


[Wicket-user] Re: PopupWindow

2006-03-02 Thread Ayodeji Aladejebi
sorry guys, dont bother i was only with wicket 1.1 API doc before, i have seen it in Wicket 1.2 docs
 
thanks 
On 3/2/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:

Is there anyway using Wicket to make a Popup Window from a Link without doing HTML directly? Anything like PopupPanel etc?thanks 


[Wicket-user] PopupWindow

2006-03-02 Thread Ayodeji Aladejebi
Is there anyway using Wicket to make a Popup Window from a Link without doing HTML directly? Anything like PopupPanel etc?thanks


[Wicket-user] Wicket news for 2006-03-02

2006-03-02 Thread Martijn Dashorst
Here is a short update for all Wicket users and developers.

* Top level domain names
* New snapshots available
* Visit at a Wicket site

Enjoy!


* Top level domain names

I have registered two toplevel domain names for the wicket project.
For now, we have them point to the sourceforge servers, but we are
looking at hosting options to have more cpu available for ourselves.

>From now on (for various values of now) you can refer to our homepage
using the following domain names:

   wicketframework.org
   wicket-framework.org

Which one of these two feels better? (note: wicket.* was already taken
by some darn useless company).

* New snapshot avalailable

I have uploaded a new snapshot of all projects. It is quite possible
that the spring and authorization projects haven't been changed, with
the amount of release packages I tend to  just build and upload
everything, that is far less trouble than having to select all
packages separately.


* Visit at a Wicket site

Yesterday I had a great visit at the KNAW (http://www.knaw.nl), the
Royal Netherlands Academy of Arts and Sciences. I had the whole
afternoon to present Wicket, and have great discussions on how to use
Wicket, and where Wicket is standing.

You have no idea how great it is to see other people working with your
project, see it in action and see them enjoying working with Wicket. I
think the afternoon was great, and well received.

The KNAW is developing a website that enables researchers to search
through scientific papers and books. The site also gives
administrators the ability to add new content to the search library.
It is still under heavy development and from what I have seen, it uses
many features of Wicket, I even haven't used.

One quote that I remember was: "We are using ajax, and we didn't even
have to write one letter of JavaScript"


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


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


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

2006-03-02 Thread Johan Compagner
can't reproduce it.I altered as you did i think:added onBeginRequest to the to the NonBookmarkablePagechanged PageLinkPage to use this construct:add(new PageLink("pageLink", new NonBookmarkablePage(this)));
instead of the lazy init page constructset a breakpoint on the onBeginRequest and clicked on the linkonly hit once.johanOn 3/2/06, 
R.A <[EMAIL PROTECTED]> wrote:
Hi Johan,The same thing occurred in Wicket Examples.I added System.out.println in NonBookmarkablePage.* wicket.examples.compref.NonBookmarkablePagepublic class NonBookmarkablePage extends WebPage
{/** * Constructor. * @param referer the refering page */public NonBookmarkablePage(final WebPage referer){if (referer == null){throw new IllegalArgumentException("Argument referer must not be
null");}// Add a link to navigate back to the refering page. We now use thePageLink// constructor with the Page instance argument, because we allreadyhave a page instance
// at our disposaladd(new PageLink("navigateBackLink", referer));// Note that this would have had the same effect////  add(new Link("navigateBackLink")
//  {//public void onClick()//{//setResponsePage(referer);//}//  });
}// addprotected void onBeginRequest() {System.out.println("Entering on BeginRequest");}}And original PageLinkPage code is here.
* wicket.examples.compref.PageLinkPagepublic class PageLinkPage extends WicketExamplePage{/** * Constructor */public PageLinkPage(){add(new PageLink("pageLink", new IPageLink()
{public Page getPage(){return new NonBookmarkablePage(PageLinkPage.this);}
public Class getPageIdentity(){return NonBookmarkablePage.class;}}));}
}And I accessed Wicket Examples -> complef ->wicket.markup.html.link.PageLink -> go to our private/ non bookmarkablepage, logs are made to output as follows.[06/03/02 19:12:30:203 JST] 1d54d85e SystemOut O Entering onBeginRequest
onBeginRequest was called one time.Then I changed PageLinkPage as follows.public class PageLinkPage extends WicketExamplePage{/** * Constructor */public PageLinkPage()
{/*add(new PageLink("pageLink", new IPageLink(){public Page getPage(){return new NonBookmarkablePage(
PageLinkPage.this);}public Class getPageIdentity(){return NonBookmarkablePage.class;}
}));*/// addadd(new PageLink("pageLink", new NonBookmarkablePage(this)));}}And I accessed Wicket Examples again, logs as follows.
Entering on BeginRequest[06/03/02 19:22:46:625 JST]  ae46607 SystemOut O Entering onBeginRequestonBeginRequest was called two times.Thank you.R.A--View this message in context: 
http://www.nabble.com/PageLink-called-request-two-times-t1205926.html#a3199970Sent from the Wicket - User forum at 
Nabble.com.---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=lnk&kid=110944&bid=241720&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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

2006-03-02 Thread R.A

Hi Johan,

The same thing occurred in Wicket Examples.
I added System.out.println in NonBookmarkablePage.

* wicket.examples.compref.NonBookmarkablePage
public class NonBookmarkablePage extends WebPage
{
/**
 * Constructor.
 * @param referer the refering page
 */
public NonBookmarkablePage(final WebPage referer)
{
if (referer == null)
{
throw new IllegalArgumentException("Argument referer must not be
null");
}

// Add a link to navigate back to the refering page. We now use the
PageLink
// constructor with the Page instance argument, because we allready
have a page instance
// at our disposal
add(new PageLink("navigateBackLink", referer));

// Note that this would have had the same effect
//
//  add(new Link("navigateBackLink")
//  {
//public void onClick()
//{
//setResponsePage(referer);
//}
//  });
}

// add
protected void onBeginRequest() {
System.out.println("Entering on BeginRequest");
}
}

And original PageLinkPage code is here.

* wicket.examples.compref.PageLinkPage
public class PageLinkPage extends WicketExamplePage
{
/**
 * Constructor
 */
public PageLinkPage()
{
add(new PageLink("pageLink", new IPageLink()
{
public Page getPage()
{
return new 
NonBookmarkablePage(PageLinkPage.this);
}

public Class getPageIdentity()
{
return NonBookmarkablePage.class;
}
}));
}
}

And I accessed Wicket Examples -> complef ->
wicket.markup.html.link.PageLink -> go to our private/ non bookmarkable
page, logs are made to output as follows.

[06/03/02 19:12:30:203 JST] 1d54d85e SystemOut O Entering onBeginRequest

onBeginRequest was called one time.

Then I changed PageLinkPage as follows.

public class PageLinkPage extends WicketExamplePage
{
/**
 * Constructor
 */
public PageLinkPage()
{
/*
add(new PageLink("pageLink", new IPageLink()
{
public Page getPage()
{
return new 
NonBookmarkablePage(PageLinkPage.this);
}

public Class getPageIdentity()
{
return NonBookmarkablePage.class;
}
}));
*/
// add
add(new PageLink("pageLink", new NonBookmarkablePage(this)));
}
}

And I accessed Wicket Examples again, logs as follows.

Entering on BeginRequest
[06/03/02 19:22:46:625 JST]  ae46607 SystemOut O Entering onBeginRequest

onBeginRequest was called two times.

Thank you.
R.A
--
View this message in context: 
http://www.nabble.com/PageLink-called-request-two-times-t1205926.html#a3199970
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 webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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

2006-03-02 Thread Johan Compagner
do you have a snippet/sample code where i can see this happening?On 3/2/06, R.A <[EMAIL PROTECTED]
> wrote:Hi Johan,I use iBATIS to access database and set the log to debugging mode.
I take notice of two times database access by logs, so I write the followingcode.protected void onBeginRequest() {System.out.println("Entering onBeginRequest");}Then logs are made to output as follows.
Entering onBeginRequest *snip*DEBUG - PreparedStatement  - {pstm-100010} PreparedStatement:SELECT*   FROM *snip* *snip*Entering onBeginRequest *snip*DEBUG - PreparedStatement  - {pstm-100010} PreparedStatement:
SELECT*   FROM *snip*In trial I rewrite PageLink code this,Link nextLink = new PageLink("nextLink", NextPage.class) {public void onClick() {setResponsePage(NextPage.class
);}}.setAutoEnable(true);Then onBeginRequest called just one time.Thank you.R.A--View this message in context: 
http://www.nabble.com/PageLink-called-request-two-times-t1205926.html#a3194962Sent from the Wicket - User forum at Nabble.com.---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] Customizing TypeValidator's "type"

2006-03-02 Thread Martijn Dashorst
My connection just timed out... ah... different time zones :)

Martijn


On 3/1/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> uhmno thankswho would want to be the head of something so broken?
> wouldnt be a fun place to be i would imagine :)
>
>
> -Igor
>
>
> On 3/1/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > Igor, head of cvs :)
> >
> > On 3/1/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > arent they one and the same?
> > >
> > > -Igor
> > >
> > >
> > >
> > > On 3/1/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > >
> > > Your's or CVS? ;)
> > >
> > > On 3/1/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > > > done in head
> > > >
> > > >
> > > > -Igor
> > > >
> > > >
> > > > On 3/1/06, Nick Heudecker <[EMAIL PROTECTED] > wrote:
> > >  > >
> > > > > Yeah, that will work very well.
> > > > >
> > > > >
> > > > >
> > > > > On 3/1/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > with my recent refactorings i can add another key to be searched
> that
> > > is
> > > > "TypeValidator".Type
> > > > > >
> > > > > > so keys like TypeValidator.BigDecimal will take priority over
> > > > TypeValidator
> > > > > >
> > > > > > that way you can create the keys for different types.
> > > > > >
> > > > > > sound good?
> > > > > >
> > > > > >
> > > > > > -Igor
> > >  > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 3/1/06, Nick Heudecker <[EMAIL PROTECTED] > wrote:
> > > > > > >
> > > > > > > TypeValidator adds a "${type}" key for validation messages.  Is
> > > there
> > > > any way to customize this for the specific case?  For instance, I use
> > >  > TypeValidator for BigDecimals and Dates.  I don't want my users
> seeing "
> > > > java.math.BigDecimal " or "java.util.Date" in the validation messages.
> > > > > > >
> > > > > > > Thanks for your time.
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > > ---
> > > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > > that extends applications into web and mobile media. Attend the live
> webcast
> > > and join the prime developer group breaking into this new coding
> territory!
> > >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>


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


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


Re: [Wicket-user] Question about application-scoped resources

2006-03-02 Thread Johan Compagner
huh? created and or destroyed as a single unit?How is that possible? When should that happen?johanOn 3/2/06, Gili <
[EMAIL PROTECTED]> wrote:Hi,Looking at LocalizedImageResource.java
 and other resource-relatedsource code it seems to me that we assume that resources will be sharedin the scope of wicket.Application.classDoesn't this imply that if you have 10 Wicket applications running,
their combined resources are either created or destroyed as a singleunit? I would expect us to use application.getClass() as the scope where"application" is the current application (one out of the ten
applications). Is it possible to use the behavior I am describing?Thank you,Gili--http://www.desktopbeautifier.com/---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user