Re: Changing IDEs to eclipse

2007-10-25 Thread Eelco Hillenius
> I didn't use Jetty, but I have been deploying on Tomcat 5.x using the
> Eclipse Web Tools Platform (http://www.eclipse.org/webtools/).
>
> The only tip I would give you is that Eclipse by default will filter out all
> .html files on the classpath. As Wicket uses HTML files on the classpath,
> you cannot possibly do any development in Eclipse until you have told
> Eclipse to not ignore the .html files.
>
> http://www.nabble.com/file/p13421274/WicketSetupEclipse.png
>
> This cost be a *lot* of time fairly recently. I found this tip on a blog
> somewhere, but in my mind, this should be prominent on the Wicket site
> itself.

Does it really do that by default though? I don't remember ever having
to do that tbh. Isn't this a plugin that does this? Maybe a version of
web tools?

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wizard - change the component outlook

2007-10-25 Thread Eelco Hillenius
> 1)How would i pass my new css...don't see any api to do so ?

Any way you like it. You could add a header contributor for instance,
or create a head section in your new markup file if you're providing
that, or even put it right in your markup.

> 2)The new css ?, shouldnt it have the same classes defined as expected by
> the Wizard Panel components ?

If you don't override with your own markup, you can look at the markup
of the wizard classes to see which classes it uses.

> 3) How would i go about changing the css for the FeedbackPanel? Question 2
> applies on it too.

Same answers :-)

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Changing IDEs to eclipse

2007-10-25 Thread Maurice Marrink
We use this plugin to run our apps with tomcat.
http://www.eclipsetotale.com/tomcatPlugin.html
No hassle with deploying a war, automatic class reloading, no special
main class required, its really quite nice.

Maurice

On 10/26/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>
> Yeah i have had a look, and the deployment doesn't resemble how we had the
> project setup in netbeans.
>
> Im completely stuck :S. I can see how you guys use your own jetty server
> built into the quick start project... which is very cool.
>
> THe project i am working with is being deployed directly as a web app with
> the built-in tomcat server in netbeans, so there is no main class, rather we
> use a web-app wrapper which is configured to point to the starting class.
>
> Argh my brain is melting.. im not sure even if anything i said just then
> makes sense... i think i need to go and cool off for a bit and revisit this
> problem in a few minutes.
>
>
> igor.vaynberg wrote:
> >
> > see instructions for quickstart on wicket.apache.org
> >
> > -igor
> >
> >
> > On 10/25/07, Ballist1c <[EMAIL PROTECTED]> wrote:
> >>
> >> Hey guys,
> >>
> >> I have been developing up until now, solely on netbeans and it is really
> >> starting to crap itself now. Netbeans did have alot of stuff setup with
> >> integrated tomcat which made things conveinient.
> >>
> >> So ive chosen to move to eclipse, and to jetty webserver and I am having
> >> alot of trouble setting up the whole IDE. I have heard alot of talk about
> >> maven, but i am not sure if its applicable as i have the wicket sources
> >> already jarred up and now just working on getting my own code compiled
> >> into
> >> a web app and automatically deploying.
> >>
> >> Anyone have any resources on this?  I am using the latest Eclipse Europa
> >> 3.3, with Jetty 6.1.5.
> >>
> >> Thanks guys :)
> >>
> >> Take care!
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13420874
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13421317
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get libs without installing Maven?

2007-10-25 Thread Thomas Singer

using maven IS a user friendly way. you CHOOSE not to use it, so...


Igor, you are assuming, that the user knows Maven and uses it for its own 
projects. This might be the case for a lot of developers, but not all. And I 
don't understand why I need to learn another tool which I do not need for my 
daily work just to get the dependent libraries for Wicket.


A user-friendly way for those developers who don't know/use Maven would be 
to provide the dependent libraries. If Maven can download them from 
different servers, why it's so hard to put links to these libraries on the 
Wicket download page so other users can grab them without the need of Maven?


Tom

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get libs without installing Maven?

2007-10-25 Thread Thomas Singer

I'm having these libraries in my classpath:

commons-collections-2.1.jar
commons-logging-1.0.4.jar
junit.jar
log4j-1.2.13.jar
portlet-api-1.0.jar
slf4j-api-1.4.0.jar
slf4j-log4j12-1.4.0.jar

But the checked out code does not compile. It requires at least 
org.apache.portals.bridges.util.ServletPortletSessionProxy.


Tom


Eelco Hillenius wrote:

For core Wicket, you only need slf4j (and maybe log4j if you want to
use that) and the servlet API (the latter just to compile your
project).

Eelco

On 10/25/07, Thomas Singer <[EMAIL PROTECTED]> wrote:

I only can find the wicket jars, but were are the required libraries? Should
I pick the out of the pom myself or is there a more user-friendly way?

Tom

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Intercept AjaxRequestTarget

2007-10-25 Thread Swaroop Belur
If there are any errors, call will  land in onError of Form.
There u just check if the current request target is ajaxrequesttarget.
if so and u don't have the exact reference to feedbackpanel  or it
is somewhere deep down the hierarchy then right a visitor which
will traverse the heirarchy and attach all feedbackpanels
to target.

FYI:
look up visitChildren(Class clazz,  IVisitor visitor) in MarkupContainer
class. Implement ur visitor accd to ur needs. Make clazz=FeedbackPanel.class

-swaroop



On 10/25/07, wheleph <[EMAIL PROTECTED]> wrote:
>
>
> Hello everyone!
>
> My application has a lot of ajax components. And every time validation
> error
> occurs I need to add my FeedbackPanel to AjaxRequestTarget. Is there a way
> to do it automatically? I mean to add my FeedbackPanel to every ajax
> response
>
> wheleph
> --
> View this message in context:
> http://www.nabble.com/Intercept-AjaxRequestTarget-tf4691130.html#a13407618
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Changing IDEs to eclipse

2007-10-25 Thread Ballist1c

Yeah i have had a look, and the deployment doesn't resemble how we had the
project setup in netbeans.

Im completely stuck :S. I can see how you guys use your own jetty server
built into the quick start project... which is very cool.  

THe project i am working with is being deployed directly as a web app with
the built-in tomcat server in netbeans, so there is no main class, rather we
use a web-app wrapper which is configured to point to the starting class. 

Argh my brain is melting.. im not sure even if anything i said just then
makes sense... i think i need to go and cool off for a bit and revisit this
problem in a few minutes.


igor.vaynberg wrote:
> 
> see instructions for quickstart on wicket.apache.org
> 
> -igor
> 
> 
> On 10/25/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>>
>> Hey guys,
>>
>> I have been developing up until now, solely on netbeans and it is really
>> starting to crap itself now. Netbeans did have alot of stuff setup with
>> integrated tomcat which made things conveinient.
>>
>> So ive chosen to move to eclipse, and to jetty webserver and I am having
>> alot of trouble setting up the whole IDE. I have heard alot of talk about
>> maven, but i am not sure if its applicable as i have the wicket sources
>> already jarred up and now just working on getting my own code compiled
>> into
>> a web app and automatically deploying.
>>
>> Anyone have any resources on this?  I am using the latest Eclipse Europa
>> 3.3, with Jetty 6.1.5.
>>
>> Thanks guys :)
>>
>> Take care!
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13420874
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13421317
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AccessControlException whenstarting Wicket1.3

2007-10-25 Thread Peter Neubauer
Ok,
thanks!

I tried to insert the permissions into the
/etc/tomcat5/policy.d/04webapps.policy file under kubuntu 7.10 but
without success. disabling the security in /etc/init.d/tomcat5 solved
the symptoms but is of course not optimal.

Maybe the mentioned permissions need to be set on system level in tomcat?

/peter

On 10/25/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On 10/25/07, Maurice Marrink <[EMAIL PROTECTED]> wrote:
> > Looks like tomcat is running under a securitymanager. according to the
> > wiki you might need to add a few permissions, however they did not
> > mention anything about mbeans.
> >
> > http://cwiki.apache.org/WICKET/java-security-permissions.html
>
> Indeed. I've added catch statements for the two properties. Should run
> without problems now.
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
GTalk:neubauer.peter
Skype:   peter.neubauer
ICQ:   18762544
Phone:   +46704 106975
Mail:   [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Changing IDEs to eclipse

2007-10-25 Thread Chris Ainsley

Hi,

I didn't use Jetty, but I have been deploying on Tomcat 5.x using the
Eclipse Web Tools Platform (http://www.eclipse.org/webtools/).

The only tip I would give you is that Eclipse by default will filter out all
.html files on the classpath. As Wicket uses HTML files on the classpath,
you cannot possibly do any development in Eclipse until you have told
Eclipse to not ignore the .html files.

http://www.nabble.com/file/p13421274/WicketSetupEclipse.png  

This cost be a *lot* of time fairly recently. I found this tip on a blog
somewhere, but in my mind, this should be prominent on the Wicket site
itself.

Regards,

Chris.


Ballist1c wrote:
> 
> 
> Anyone have any resources on this?  I am using the latest Eclipse Europa
> 3.3, with Jetty 6.1.5.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13421274
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wizard - change the component outlook

2007-10-25 Thread mfs

Questions - 

1)How would i pass my new css...don't see any api to do so ?
2)The new css ?, shouldnt it have the same classes defined as expected by
the Wizard Panel components ? 

3) How would i go about changing the css for the FeedbackPanel? Question 2
applies on it too.

Farhan.



Eelco Hillenius wrote:
> 
>> If i were to change the layout or lets say the default button names when
>> using the Wizard class, is there any way to do it other than extending
>> the
>> Wizard class itself and defining my custom markup ?
> 
> That depends on what you want to do. You can pass in false for the
> addDefaultCssStyle constructor argument and provide your own CSS. You
> can indeed override and provide custom markup. Or e.g. for the buttons
> override method newButtonBar and return a custom button bar. If you
> look at the code/ API you can see what extensions there are.
> 
> Eelco
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wizard---change-the-component-outlook-tf4665041.html#a13421096
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Changing IDEs to eclipse

2007-10-25 Thread Igor Vaynberg
see instructions for quickstart on wicket.apache.org

-igor


On 10/25/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>
> Hey guys,
>
> I have been developing up until now, solely on netbeans and it is really
> starting to crap itself now. Netbeans did have alot of stuff setup with
> integrated tomcat which made things conveinient.
>
> So ive chosen to move to eclipse, and to jetty webserver and I am having
> alot of trouble setting up the whole IDE. I have heard alot of talk about
> maven, but i am not sure if its applicable as i have the wicket sources
> already jarred up and now just working on getting my own code compiled into
> a web app and automatically deploying.
>
> Anyone have any resources on this?  I am using the latest Eclipse Europa
> 3.3, with Jetty 6.1.5.
>
> Thanks guys :)
>
> Take care!
>
> --
> View this message in context: 
> http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13420874
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Changing IDEs to eclipse

2007-10-25 Thread Ballist1c

Hey guys,

I have been developing up until now, solely on netbeans and it is really
starting to crap itself now. Netbeans did have alot of stuff setup with
integrated tomcat which made things conveinient.

So ive chosen to move to eclipse, and to jetty webserver and I am having
alot of trouble setting up the whole IDE. I have heard alot of talk about
maven, but i am not sure if its applicable as i have the wicket sources
already jarred up and now just working on getting my own code compiled into
a web app and automatically deploying.

Anyone have any resources on this?  I am using the latest Eclipse Europa
3.3, with Jetty 6.1.5.

Thanks guys :) 

Take care!

-- 
View this message in context: 
http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13420874
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reload Captcha Image

2007-10-25 Thread Toscano

Thank you!!

Finally I just made a submitlink and just make the image refresh in the
onsubmit of the form. That worked fine.

Thank you for your time and your help!
Oskar
-- 
View this message in context: 
http://www.nabble.com/Reload-Captcha-Image-tf4674760.html#a13419561
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: is it a bug? (using beta 4)

2007-10-25 Thread Otan
The problem with the extra dot-dot in the image src that arises when the
filter is map to /* seems to be fixed when I do this:
mountBookmarkablePage("/home", HomePage.class);

Now, the URL I see in the browser when I access the homepage is this:
http://server/context-path/home
instead of http://server/context-path/

that makes the extra dot-dot in the images src acceptable.



To reproduce the problem,
1. map the filter to /*
2. have an unmounted page (page not mounted to a path).
3. Access the the page. The src paths in the images will be problematic
because of the extra dot-dot (..)

On 26/10/2007, Otan <[EMAIL PROTECTED]> wrote:
>
> And another thing, the problem occurs only on the homepage.
>
> On 26/10/2007, Otan <[EMAIL PROTECTED]> wrote:
> >
> > When mapped with /*
> > the URL of the homepage that I see in my browser is
> > http://server/context_path/
> >
> > But a generated image path, which is wrong, looks like this:
> > ../images/mainmenu- home.jpg which translates to
> > http://server/images/mainmenu-home.jpg
> >
> > The correct path of the image src should be images/mainmenu- 
> > home.jpg(without the extra dot-dot ..) which is equivalent to
> > http://server/context_path/images/mainmenu-home.jpg
> >
> > But as I've said, the problem only occurs when the filter map is /* but
> > everything works fine when the filter is map to /app/*
> >
> > On 26/10/2007, Al Maw < [EMAIL PROTECTED]> wrote:
> > >
> > > This should work just fine.
> > >
> > > What's the URL in your browser's address bar?
> > >
> > > Wicket will automatically prepend things to make paths relative to the
> > > context root.
> > >
> > > Regards,
> > >
> > > Al
> > >
> > > Johan Compagner wrote:
> > > > filter should be mapped on /* thats why we have the filter.
> > > > I don't know why the ../ is generated what is the url that you see
> > > in the
> > > > browser?
> > > > Maybe AlMaw can pitch in a bit.
> > > >
> > > > johan
> > > >
> > > >
> > > >
> > > > On 10/18/07, Otan <[EMAIL PROTECTED]> wrote:
> > > >> I'm using wicket beta 4 release.
> > > >>
> > > >> Images source path is wrong when my wicket filter is mapped to the
> > > url /*
> > > >> The reason is because the src path of each images changes into
> > > something
> > > >> with double dot (..)
> > > >>
> > > >> Example:
> > > >> my wicket filter:
> > > >>
> > > >> 
> > > >>Wicket
> > > >>org.apache.wicket.protocol.http.WicketFilter
> > > >> 
> > > >>
> > > >>applicationClassName
> > > >>fackage.MyApplication
> > > >>
> > > >>
> > > >>
> > > >>Wicket
> > > >>/*
> > > >>
> > > >>
> > > >> the html...
> > > >>  > > >> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
> > > >> http://www.w3.org/1999/xhtml"; xmlns:wicket="
> > > >> http://wicket.apache.org ">
> > > >>
> > > >>~
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> 
> > > >>
> > > >>
> > > >> then the img tag in the html becomes...
> > > >> 
> > > >>
> > > >> the rendered src path is wrong because of the extra dot-dot-slash.
> > > But
> > > >> it's
> > > >> correct if the wicket filter is mapped with /something/*
> > > >>
> > > >> If it's not a bug, am I discouraged to map my filter using /* ?
> > > >>
> > > >
> > > >
> > > > !DSPAM:471a337530941545816891!
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>


Re: is it a bug? (using beta 4)

2007-10-25 Thread Otan
And another thing, the problem occurs only on the homepage.

On 26/10/2007, Otan <[EMAIL PROTECTED]> wrote:
>
> When mapped with /*
> the URL of the homepage that I see in my browser is
> http://server/context_path/
>
> But a generated image path, which is wrong, looks like this:
> ../images/mainmenu- home.jpg which translates to
> http://server/images/mainmenu-home.jpg
>
> The correct path of the image src should be images/mainmenu-home.jpg(without 
> the extra dot-dot ..) which is equivalent to
> http://server/context_path/images/mainmenu-home.jpg
>
> But as I've said, the problem only occurs when the filter map is /* but
> everything works fine when the filter is map to /app/*
>
> On 26/10/2007, Al Maw <[EMAIL PROTECTED]> wrote:
> >
> > This should work just fine.
> >
> > What's the URL in your browser's address bar?
> >
> > Wicket will automatically prepend things to make paths relative to the
> > context root.
> >
> > Regards,
> >
> > Al
> >
> > Johan Compagner wrote:
> > > filter should be mapped on /* thats why we have the filter.
> > > I don't know why the ../ is generated what is the url that you see in
> > the
> > > browser?
> > > Maybe AlMaw can pitch in a bit.
> > >
> > > johan
> > >
> > >
> > >
> > > On 10/18/07, Otan <[EMAIL PROTECTED]> wrote:
> > >> I'm using wicket beta 4 release.
> > >>
> > >> Images source path is wrong when my wicket filter is mapped to the
> > url /*
> > >> The reason is because the src path of each images changes into
> > something
> > >> with double dot (..)
> > >>
> > >> Example:
> > >> my wicket filter:
> > >>
> > >> 
> > >>Wicket
> > >>org.apache.wicket.protocol.http.WicketFilter
> > >> 
> > >>
> > >>applicationClassName
> > >>fackage.MyApplication
> > >>
> > >>
> > >>
> > >>Wicket
> > >>/*
> > >>
> > >>
> > >> the html...
> > >>  > >> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
> > >> http://www.w3.org/1999/xhtml"; xmlns:wicket="
> > >> http://wicket.apache.org ">
> > >>
> > >>~
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> 
> > >>
> > >>
> > >> then the img tag in the html becomes...
> > >> 
> > >>
> > >> the rendered src path is wrong because of the extra dot-dot-slash.
> > But
> > >> it's
> > >> correct if the wicket filter is mapped with /something/*
> > >>
> > >> If it's not a bug, am I discouraged to map my filter using /* ?
> > >>
> > >
> > >
> > > !DSPAM:471a337530941545816891!
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: is it a bug? (using beta 4)

2007-10-25 Thread Otan
When mapped with /*
the URL of the homepage that I see in my browser is
http://server/context_path/

But a generated image path, which is wrong, looks like this:
../images/mainmenu-home.jpg which translates to
http://server/images/mainmenu-home.jpg

The correct path of the image src should be
images/mainmenu-home.jpg(without the extra dot-dot ..) which is
equivalent to
http://server/context_path/images/mainmenu-home.jpg

But as I've said, the problem only occurs when the filter map is /* but
everything works fine when the filter is map to /app/*

On 26/10/2007, Al Maw <[EMAIL PROTECTED]> wrote:
>
> This should work just fine.
>
> What's the URL in your browser's address bar?
>
> Wicket will automatically prepend things to make paths relative to the
> context root.
>
> Regards,
>
> Al
>
> Johan Compagner wrote:
> > filter should be mapped on /* thats why we have the filter.
> > I don't know why the ../ is generated what is the url that you see in
> the
> > browser?
> > Maybe AlMaw can pitch in a bit.
> >
> > johan
> >
> >
> >
> > On 10/18/07, Otan <[EMAIL PROTECTED]> wrote:
> >> I'm using wicket beta 4 release.
> >>
> >> Images source path is wrong when my wicket filter is mapped to the url
> /*
> >> The reason is because the src path of each images changes into
> something
> >> with double dot (..)
> >>
> >> Example:
> >> my wicket filter:
> >>
> >> 
> >>Wicket
> >>org.apache.wicket.protocol.http.WicketFilter
> >> 
> >>
> >>applicationClassName
> >>fackage.MyApplication
> >>
> >>
> >>
> >>Wicket
> >>/*
> >>
> >>
> >> the html...
> >>  >> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> >> http://www.w3.org/1999/xhtml"; xmlns:wicket="
> >> http://wicket.apache.org";>
> >>
> >>~
> >>
> >>
> >>
> >>
> >>
> >>
> >> 
> >>
> >>
> >> then the img tag in the html becomes...
> >> 
> >>
> >> the rendered src path is wrong because of the extra dot-dot-slash. But
> >> it's
> >> correct if the wicket filter is mapped with /something/*
> >>
> >> If it's not a bug, am I discouraged to map my filter using /* ?
> >>
> >
> >
> > !DSPAM:471a337530941545816891!
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Get libs without installing Maven?

2007-10-25 Thread Johan Maasing
At least for beta3 you only need slf4j http://www.slf4j.org/
Actually it is two slf4j JARs that you need:
http://cwiki.apache.org/WICKET/newuserguide.html

Enjoy wicket.

On 10/25/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> using maven IS a user friendly way. you CHOOSE not to use it, so...
>
> -igor
>
>
> On 10/25/07, Thomas Singer <[EMAIL PROTECTED]> wrote:
> > I only can find the wicket jars, but were are the required libraries? Should
> > I pick the out of the pom myself or is there a more user-friendly way?
> >
> > Tom
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: is it a bug? (using beta 4)

2007-10-25 Thread Al Maw

This should work just fine.

What's the URL in your browser's address bar?

Wicket will automatically prepend things to make paths relative to the 
context root.


Regards,

Al

Johan Compagner wrote:

filter should be mapped on /* thats why we have the filter.
I don't know why the ../ is generated what is the url that you see in the
browser?
Maybe AlMaw can pitch in a bit.

johan



On 10/18/07, Otan <[EMAIL PROTECTED]> wrote:

I'm using wicket beta 4 release.

Images source path is wrong when my wicket filter is mapped to the url /*
The reason is because the src path of each images changes into something
with double dot (..)

Example:
my wicket filter:
   

   Wicket
   org.apache.wicket.protocol.http.WicketFilter

   
   applicationClassName
   fackage.MyApplication
   
   
   
   Wicket
   /*
   

the html...
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml"; xmlns:wicket="
http://wicket.apache.org";>
   
   ~
   
   
   
   
   
   



then the img tag in the html becomes...


the rendered src path is wrong because of the extra dot-dot-slash. But
it's
correct if the wicket filter is mapped with /something/*

If it's not a bug, am I discouraged to map my filter using /* ?




!DSPAM:471a337530941545816891!




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: LoadableDetachableModel and anonymous inner classes - unwanted serialization overhead?

2007-10-25 Thread Eelco Hillenius
> Thanks for your reply. In deed, I declared the LoadableDetachableModel
> inside the IDataProvider. So the bottom line of your post is, that it is
> serialized anyway altogether?

That data provider will be stored as component state of your repeater.
Anything on your page will be serialized. We provide things like
detachable models to minimize that at the end of a request, right
before it might be serialized. Also note that whether there is any
serialization done depends on the session store you use, and any
serialization is only done either for back button support or to
synchronize across a cluster if you use that.

> Are there some docs for wicket serialization around? As I figured out,
> wicket likes serialization. But so far I wasn't able to find some docs
> explaining what is serialized and when. If you - or somebody else - would
> give me the right pointers, I'd start a new page in the wiki, that
> especially talks about what is serialized and when, what should be
> transient, how to troubleshoot/debug/optimize serialization, and so forth.

Not really, because it depends largely on your configuration. The
default one - SecondLevelCacheSessionStore - stores n older page
instances/ versions to 'second level cache' (by default a file per
session in your temp dir) using serialization for back button support.
And that's pretty much it.

You can trace the calls to Objects.objectToByteArray
/byteArrayToObject/ cloneObject/ cloneModel to get an idea of where
Wicket uses serialization.

Eelco

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get libs without installing Maven?

2007-10-25 Thread Eelco Hillenius
For core Wicket, you only need slf4j (and maybe log4j if you want to
use that) and the servlet API (the latter just to compile your
project).

Eelco

On 10/25/07, Thomas Singer <[EMAIL PROTECTED]> wrote:
> I only can find the wicket jars, but were are the required libraries? Should
> I pick the out of the pom myself or is there a more user-friendly way?
>
> Tom
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Final Wicket course of 2007 in London & November User Group

2007-10-25 Thread jweekend

Al and I have not had so much time of late but we have just agreed to run one
last scheduled London  http://jweekend.co.uk/dev/JW703/ 2 day Wicket course 
in 2007, over the weekend of November 3, 4. 

As interest in our intensive courses slowly increases (we are even starting
to get enquiries from large organisations that would like us to run our
courses on-site; probably further evidence of the growing Wicket user base
in the corporate world), we have been receiving excellent student reviews
and recommendations, so we hope more of you can make it. If your training
managers or bosses need more information, they can contact us 
http://jweekend.co.uk/dev/ContactUsBody/ here .

Students will receive free access to  http://chillenious.wordpress.com/
Eelco  and  http://martijndashorst.com/blog Martijn 's new book 
http://manning.com/dashorst/ Wicket In Action (MEAP) .

Regards - Cemal
http://jweekend.co.uk/ jWeekend.co.uk 

PS For those of you that have been asking about our November, London Wicket
User Group, thanks for your patience. I can now announce that it'll be on
Tuesday, November 6 and both Al and I will again be  presenting some
instructive material. One option (wrt location) open to us on that date is 
http://maps.google.co.uk/maps?f=q&hl=en&geocode=&time=&date=&ttype=&q=nw6+4hy&ie=UTF8&z=16&om=1
NW6 4HY  (near West Hampstead Thameslink & tube or Kilburn/Kilburn Park Tube
and any buses that go up the Edgware Road/Kilburn High Road). Let me know if
that works for you, or just register  http://jweekend.co.uk/dev/LWUGReg/
here . If there are any confirmed registrations, despite the short notice,
Al and I have decided to go ahead regardless of numbers.

-- 
View this message in context: 
http://www.nabble.com/Final-Wicket-course-of-2007-in-London---November-User-Group-tf4694167.html#a13417808
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Confirmation message after form submit

2007-10-25 Thread Eelco Hillenius
On 10/25/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> are you not missing istemporary() { return true; } in there...that
> would be helpful i would imagine...

You're right.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: not escaping strings.

2007-10-25 Thread Igor Vaynberg
not in 1.2

-igor


On 10/25/07, Andrew MacKenzie <[EMAIL PROTECTED]> wrote:
> I have a  in my HTML that has a key like the following:
> themessage=Company Slogan ™
>
> But Wicket escapes the ™ such that we don't see (tm) in the output.
>
> Is there a way to tell message not to escape its data?
>
> Wicket 1.2 BTW.
>
> --
> // Andrew MacKenzie  |  http://www.edespot.com
> // GPG public key: http://www.edespot.com/~amackenz/public.key
> // The very ink with which all history is written is merely fluid prejudice.
> // -- Mark Twain
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Confirmation message after form submit

2007-10-25 Thread Igor Vaynberg
are you not missing istemporary() { return true; } in there...that
would be helpful i would imagine...

-igor


On 10/25/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On 10/25/07, Swaroop Belur <[EMAIL PROTECTED]> wrote:
> > Do it like this:
> >
> > In js file
> >
> > function yourconfirmationjsfunction( urltogotoonok , urltogotooncancel) {
> >
> >
> > var retValue =  confirm(" Are you sure ");
> > if(retValue == false){
> >  window.location.href=urltogotooncancel;
> > }
> >
> >  window.location.href=urltogotoonok ;
> > }
>
> You can even do it completely generic, e.g. like this:
>
> private static class AlertMessageContributor extends 
> HeaderContributor {
>
> public AlertMessageContributor(final AlertMsg alertMsg) {
> super(new IHeaderContributor() {
>
> private static final long serialVersionUID = 
> 1L;
>
> public void renderHead(IHeaderResponse 
> response) {
> 
> response.renderOnLoadJavascript("alert('"
> + 
> alertMsg.getMessage() + "');");
> }
> });
> }
> }
>
>
> ...
>
> Page page = requestCycle.getResponsePage();
> if (page != null) {
> page.add(new AlertMessageContributor(alertMsg));
> }
>
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get libs without installing Maven?

2007-10-25 Thread Igor Vaynberg
using maven IS a user friendly way. you CHOOSE not to use it, so...

-igor


On 10/25/07, Thomas Singer <[EMAIL PROTECTED]> wrote:
> I only can find the wicket jars, but were are the required libraries? Should
> I pick the out of the pom myself or is there a more user-friendly way?
>
> Tom
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Internationalizing Paragraphs w/ Links

2007-10-25 Thread Igor Vaynberg
you have to do what a wiki does, define the whole paragraph as a
property file and have some special ways to invoke links, for example
something like this:

add(new InternationalizedLabel("label", new ResourceModel("para") {
  onclick(int index) {
if (index==1)
 }

with para defined as

para=What [ever] is inside square [brackets] becomes a link
[accessible by its index]

the insides are left as an exercise to the reader :)

-igor


On 10/25/07, spencer.c <[EMAIL PROTECTED]> wrote:
>
> If we have a link that is in the body of a paragraph, what is the best way to
> internationalize the entire paragraph?  As far as I can tell, we would have
> to define 3 key/value pairs, ie. before.link.text, link.text,
> after.link.text and define the values for each in the properties file(s).
>
> Is that the simplest approach?  It doesn't seem to scale if you have a
> paragraph with 3 or 4 links in it, so I just wanted to see if there was an
> easier way to go about it.
>
>
> --
> View this message in context: 
> http://www.nabble.com/Internationalizing-Paragraphs-w--Links-tf4692728.html#a13413084
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



not escaping strings.

2007-10-25 Thread Andrew MacKenzie
I have a  in my HTML that has a key like the following:
themessage=Company Slogan ™

But Wicket escapes the ™ such that we don't see (tm) in the output.

Is there a way to tell message not to escape its data?

Wicket 1.2 BTW.

-- 
// Andrew MacKenzie  |  http://www.edespot.com
// GPG public key: http://www.edespot.com/~amackenz/public.key
// The very ink with which all history is written is merely fluid prejudice.
// -- Mark Twain


pgpxag3nPUArf.pgp
Description: PGP signature


Re: RadioChoice not allow setEscapeModelStrings(false) ?

2007-10-25 Thread Martijn Dashorst
Use the RadioGroup instead. RadioChoice is merely for convenience and
quick'n dirty lists of radio buttons.

Martijn

On 10/25/07, mi11h0use <[EMAIL PROTECTED]> wrote:
>
> Hi, I'm trying to do something like this:
>
> add(new RadioChoice("testid", Arrays
> .asList(new Boolean[] { new 
> Boolean(true),
> new Boolean(false) }),
> 
> createBooleanIChoiceRenderer("Test 1", "Test
> 2")).setEscapeModelStrings(false));
>
> the method createBooleanIChoiceRenderer basically takes in the two strings
> and displays one for true and one for false. However, on my HTML page, the
> are still getting printed out and not being escaped. Any Ideas?
>
> Thanks in advance
> --
> View this message in context: 
> http://www.nabble.com/RadioChoice-not-allow-setEscapeModelStrings%28false%29---tf4692915.html#a13413655
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get libs without installing Maven?

2007-10-25 Thread Thomas Singer
I only can find the wicket jars, but were are the required libraries? Should 
I pick the out of the pom myself or is there a more user-friendly way?


Tom

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get libs without installing Maven?

2007-10-25 Thread Thomas Singer
The binary distribution seems not to contain the dependent jars, but "just" 
the own wicket jars. Here is the list of the lib directory:


wicket-1.3.0-beta4.jar
wicket-auth-roles-1.3.0-beta4.jar
wicket-datetime-1.3.0-beta4.jar
wicket-extensions-1.3.0-beta4.jar
wicket-guice-1.3.0-beta4.jar
wicket-ioc-1.3.0-beta4.jar
wicket-jmx-1.3.0-beta4.jar
wicket-objectsizeof-agent-1.3.0-beta4.jar
wicket-spring-1.3.0-beta4.jar
wicket-spring-annot-1.3.0-beta4.jar
wicket-velocity-1.3.0-beta4.jar
wicket-examples-1.3.0-beta4.war

Tom


Frank Bille wrote:

There is always the standard distribution, which contains binaries and
sources.

http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4

Frank

On 10/25/07, Thomas Singer <[EMAIL PROTECTED]> wrote:

I'm currently trying to update from 1.4beta2 to 1.4beta4 by changing the
revision of our project's wicket-external
(http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.4/wicket/src/main/java
).
Unfortunately it does not build any more because it seems to require a new
library.

Where can I download the currently required jar files? I don't want to
install maven for such a trivial task, because we don't need it for other
stuff.

--
Thanks,
Tom

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get libs without installing Maven?

2007-10-25 Thread Eelco Hillenius
On 10/25/07, Thomas Singer <[EMAIL PROTECTED]> wrote:
> Maybe I'm blind, but I could not find the jars for Wicket 1.3.0beta4 (the
> version number in the initial posting was wrong), I just could find versions
> up to 1.2.6:
>
>   http://repo1.maven.org/maven2/wicket/wicket/

We changed package names but also maven project names since we
incubated with Apache. See
http://repo1.maven.org/maven2/org/apache/wicket/

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get libs without installing Maven?

2007-10-25 Thread Thomas Singer
Maybe I'm blind, but I could not find the jars for Wicket 1.3.0beta4 (the 
version number in the initial posting was wrong), I just could find versions 
up to 1.2.6:


 http://repo1.maven.org/maven2/wicket/wicket/

Tom

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RadioChoice not allow setEscapeModelStrings(false) ?

2007-10-25 Thread mi11h0use

Hi, I'm trying to do something like this:  

add(new RadioChoice("testid", Arrays
.asList(new Boolean[] { new 
Boolean(true),
new Boolean(false) }),
createBooleanIChoiceRenderer("Test 
1", "Test
2")).setEscapeModelStrings(false));

the method createBooleanIChoiceRenderer basically takes in the two strings
and displays one for true and one for false. However, on my HTML page, the 
are still getting printed out and not being escaped. Any Ideas?

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/RadioChoice-not-allow-setEscapeModelStrings%28false%29---tf4692915.html#a13413655
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Confirmation message after form submit

2007-10-25 Thread Eelco Hillenius
On 10/25/07, Swaroop Belur <[EMAIL PROTECTED]> wrote:
> Do it like this:
>
> In js file
>
> function yourconfirmationjsfunction( urltogotoonok , urltogotooncancel) {
>
>
> var retValue =  confirm(" Are you sure ");
> if(retValue == false){
>  window.location.href=urltogotooncancel;
> }
>
>  window.location.href=urltogotoonok ;
> }

You can even do it completely generic, e.g. like this:

private static class AlertMessageContributor extends HeaderContributor {

public AlertMessageContributor(final AlertMsg alertMsg) {
super(new IHeaderContributor() {

private static final long serialVersionUID = 1L;

public void renderHead(IHeaderResponse 
response) {

response.renderOnLoadJavascript("alert('"
+ alertMsg.getMessage() 
+ "');");
}
});
}
}


...

Page page = requestCycle.getResponsePage();
if (page != null) {
page.add(new AlertMessageContributor(alertMsg));
}


Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AccessControlException whenstarting Wicket1.3

2007-10-25 Thread Eelco Hillenius
On 10/25/07, Maurice Marrink <[EMAIL PROTECTED]> wrote:
> Looks like tomcat is running under a securitymanager. according to the
> wiki you might need to add a few permissions, however they did not
> mention anything about mbeans.
>
> http://cwiki.apache.org/WICKET/java-security-permissions.html

Indeed. I've added catch statements for the two properties. Should run
without problems now.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Internationalizing Paragraphs w/ Links

2007-10-25 Thread spencer.c

If we have a link that is in the body of a paragraph, what is the best way to
internationalize the entire paragraph?  As far as I can tell, we would have
to define 3 key/value pairs, ie. before.link.text, link.text,
after.link.text and define the values for each in the properties file(s).

Is that the simplest approach?  It doesn't seem to scale if you have a
paragraph with 3 or 4 links in it, so I just wanted to see if there was an
easier way to go about it.  


-- 
View this message in context: 
http://www.nabble.com/Internationalizing-Paragraphs-w--Links-tf4692728.html#a13413084
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get libs without installing Maven?

2007-10-25 Thread Frank Bille
There is always the standard distribution, which contains binaries and
sources.

http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4

Frank

On 10/25/07, Thomas Singer <[EMAIL PROTECTED]> wrote:
>
> I'm currently trying to update from 1.4beta2 to 1.4beta4 by changing the
> revision of our project's wicket-external
> (http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.4/wicket/src/main/java
> ).
> Unfortunately it does not build any more because it seems to require a new
> library.
>
> Where can I download the currently required jar files? I don't want to
> install maven for such a trivial task, because we don't need it for other
> stuff.
>
> --
> Thanks,
> Tom
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Get libs without installing Maven?

2007-10-25 Thread Igor Vaynberg
On 10/25/07, Thomas Singer <[EMAIL PROTECTED]> wrote:
> > goto maven2 repo and get them from there
>
> How to do that?

http://repo1.maven.org/maven2/

-igor

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Model "inheritance" question

2007-10-25 Thread Martin-2

Hi there,

we have a simple Problem and may be too blind to find the obvious
solution...We have a base page (AbstractUserPage) that has a model which
wraps basic properties of a user (like login). Next we have a bunch of
specialized pages that inherit from AbstractUserPage and these pages' models
extend the base model with special properties.

Since our models are basically just wrapping a DB query (they extend
LoadableDetachableModels) and the model objects are the result set beans,
using normal inheritance for the model objects would lead to a lot of
duplication in code and in the sql queries (meaning that each "extended
query" must fetch the basic properties as well).

We currently implement this using a custom model that holds other models in
a map and delegates all lifecycle calls (detach() and the like) to them so
that a child class can simply add new models (queries) to the parent's model
and still has access to the basic properties.

Is there a better way to do this or did we just overlook some wicket
functionallity?

Thanks in advance,
Martin
-- 
View this message in context: 
http://www.nabble.com/Model-%22inheritance%22-question-tf4692432.html#a13412063
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicketstuff push and sharing an IChannelService

2007-10-25 Thread Xavier Hanin
On 10/25/07, Michael Sparer <[EMAIL PROTECTED]> wrote:
>
>
> Hi Xavier,
>
> thanks for your effort but please don't take too much time investigating
> my
> issues :-)
>
> I'm using wicket 1.3.0-beta3 and wicketstuff push... well since it doesn't
> show the svn version numbers the version of monday this week.


This is very similar to what I use (with a new version of wicketstuff-push I
pushed on tuesday I think, which fixes a problem with backward button). But
if you use the dojo based implementation, I can't speak much about it since
Vincent did all the job.

Yesterday I
> had a more thorough look into what's exactly happening i.e. how the push
> project interacts with the wicketstuff dojo project and integrates cometd.
> There I found out that in order to communicate with wicket there's an
> extra
> round trip to the server taking place. So the channel sends a message to
> the
> client-javascript (including the data to be shown on page) which then
> makes
> an ajax call back to the server where the data gets rendered into xml and
> is
> then shown on the page. I wondered if that was intentional and if yes,
> what
> purpose it serves.


>From my understanding (but I didn't develop this) the problem is that it's
not straightforward to render a wicket component outside a web request, so
the additional cycle is there to call the rendering in a "normal" web
request: comet is only used to detect there is something to refresh, then
the refresh is done with a usual wicket ajax call. But I may be wrong...

For my project I've changed the java-script function which starts the AJAX
> call sothat it renderes the message to proper javascript and directly
> inserts it in the document's DOM without making an additional call. This
> however, makes the server site less flexible as only a javascript string
> can
> be processed on client site - but that's ok for my app.


Indeed if you don't need component rendering reducing the cycles is better.
I had plan to work on a comet based implementation of IPushService some time
ago, but I've never found the time... If I do one day I'll try to reduce the
cycles to as less as possible, and I may also have to review some component
refresing concepts, like refreshing a RepeatingView when only one line has
been added. The only easy way to do this for the moment is to add the
component to the target request, but then the whole component is rendered
and sent to the client. Having something finer would be nice. But that's
only ideas, and I'm really lacking of time.

Xavier

Xavier Hanin wrote:
> >
> > Michael,
> >
> > As I said I don't use the ChannelService myself, but I used to have
> > similar
> > troubles with the PushService, which I think I finally fixed, but it
> > wasn't
> > easy. Since the fix is in TimerChannelBehavior (which is used by both
> the
> > push and channel timer based implementation, it should work for both,
> but
> > I
> > haven't tested. Can I ask which version of wicket and wicketstuff-push
> > you're using, and also which implementation of IChannelService? If you
> > want
> > to investigate in the code, the core of the fix relies on the redirect
> and
> > setRedirectId in TimerChannelBehavior.
> >
> > Xavier
> >
> > On 10/24/07, Michael Sparer <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hi Xavier,
> >>
> >> first of all thank you for the effort you've done for the push-project.
> >> Up
> >> to now it really provided the features I need for my app. But now I'm
> >> kind
> >> of stuck. My problem is: I have two panels on one page. Both panel
> >> subscribe
> >> themselves as ChannelListener for the same channel. But unfortunately
> >> whenever an event invoking the listeners occurred, the onEvent method
> >> gets
> >> executed twice on both listeners (i.e. four times). It occurrs only if
> >> you
> >> have two panels i.e. two listeners on the same page.
> >>
> >> IMO the error is somewhere in the javascript where a function gets
> >> executed
> >> twice...but I haven't found it so far. So do you have any clue?
> >>
> >> thanks
> >>
> >> Michael
> >>
> >> Xavier Hanin wrote:
> >> >
> >> > On 10/23/07, Michael Sparer <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>
> >> >> Hi Xavier,
> >> >>
> >> >> thanks for your reply - well yes, that's certainly right. I've just
> >> lost
> >> >> sight of it. But I got another question: how stable is the
> >> >> wicketstuff-push
> >> >> project or what sections are stable and which have to be improved
> for
> >> use
> >> >> in
> >> >> a professional webapp?
> >> >
> >> >
> >> > AFAIK wicketstuff-push is developed by vincent demay and myself.
> >> Vincent
> >> > worked on the cometd channel implementation, and I've worked mostly
> on
> >> the
> >> > timer based IPushService implementation (where events do not come
> from
> >> the
> >> > client at all). I don't know how stable is the channel implementation
> >> > since
> >> > I don't use it myself, maybe Vincent could give more details (not
> sure
> >> if
> >> > it's used in production o

Re: Get libs without installing Maven?

2007-10-25 Thread Thomas Singer
goto maven2 repo and get them from there 


How to do that?


ask someone that has a running wicket to give you them


That's what I'm doing with this thread? ;)

Cheers,
Tom

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Component autorefresh with Ajax

2007-10-25 Thread Sam Hough

We do this, although have a few places where we mark a component dirty
manually (obscure change in model etc). 

We use an identity hash map to record components considered dirty then a
simple algorithm to remove descendants of already dirty components.

Wicket is not great for getting this to work as I couldn't find good hooks
to monitor changes in enabled, children etc...

The dirty list is stored in WebRequestCycle so it gets cleaned out every
request. I've raised this topic a few times if you want to look at previous
threads.


Artur W. wrote:
> 
> Hi!
> 
> I have complex dependencies between components on my page.
> e.g. when user clicks on a button coupe of other components change.
> 
> Now I refresh them with AjaxRequestTarget and a lots of conditions.
> Is it possible that Wicket automatically adds dirty component to the
> AjaxRequestTarget.addComponent(...)?
> 
> 
> Thanks for help,
> Artur
> 

-- 
View this message in context: 
http://www.nabble.com/Component-autorefresh-with-Ajax-tf4691652.html#a13411063
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get libs without installing Maven?

2007-10-25 Thread Nino Saturnino Martinez Vazquez Wael
goto maven2 repo and get them from there or ask someone that has a 
running wicket to give you them..:)


Thomas Singer wrote:

No possibility?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Creating google-sitemap for wicket application

2007-10-25 Thread Nino Saturnino Martinez Vazquez Wael
if some of your pages are predictable you could just have a "masterpage" 
using parameters, and making that bookmarkable.. Like this:


http://mynicesite.com/masterpage/products/toys

This will give the parameter called products with the value toys to the 
master page you could then redirect appropaitely..


or this:

http://mynicesite.com/sitemap/pages/pageA

eek lousy spelling today..

martinf wrote:

Hi,

basically yes. Depending on your package structure one of the other 'mount'
implementations in WebApplication might be of help to you.
About the performace I can't say much. But 500 path/Page associations
doesn't sound too scary in my ears. At least worth a try.

mf


BatiB80 wrote:
  

Hi,

thanks for the answer, I tried it out and it seems to be working. But one
more question on this: 


If I have 500 pages in my webapplication, would this mean, that I have to
call the method: 


   mountBookmarkablePage("/somelink", SomePage.class);

500 times during the initialisation of my application. If yes, what is the
limit of having such bookmarks? 


Thanks, Sebastian




  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get libs without installing Maven?

2007-10-25 Thread Igor Vaynberg
snapshots are here: http://wicketstuff.org/maven/repository/

-igor

On 10/25/07, Thomas Singer <[EMAIL PROTECTED]> wrote:
> No possibility?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Setting charset of javascript includes?

2007-10-25 Thread kent lai

Sounds like thats the only way.
Probably will stick to this until jquery.validate.js has an update.

Thanks!

On 25 Oct 2007, at 5:33 PM, Matej Knopp wrote:


I see, well, in that case you can use IHeaderResponse.renderText() to
render the entire script tag on your own (you can look at the
implementation of renderJavascriptReference to do something similiar
just put the encoding attribute in there)

-Matej

On 10/25/07, kent lai <[EMAIL PROTECTED]> wrote:

My document is using charset utf-8, but the jquery.validate.js is
encoded with iso-8859-1. It caused javascript errors on ie6, and the
recommended resolution they had was to set the charset of the

Re: Creating google-sitemap for wicket application

2007-10-25 Thread John Patterson
You can also mount whole packages at a time.  Or if you have too many  
packages you can add your own IRequestTargetUrlCodingStrategy and  
mount that and write your own logic for finding Bookmarkable pages  
pages with nice URL's.


John

On 25 Oct 2007, at 09:09, martinf wrote:



Hi,

basically yes. Depending on your package structure one of the other  
'mount'

implementations in WebApplication might be of help to you.
About the performace I can't say much. But 500 path/Page associations
doesn't sound too scary in my ears. At least worth a try.

mf


BatiB80 wrote:


Hi,

thanks for the answer, I tried it out and it seems to be working.  
But one

more question on this:

If I have 500 pages in my webapplication, would this mean, that I  
have to

call the method:

   mountBookmarkablePage("/somelink", SomePage.class);

500 times during the initialisation of my application. If yes,  
what is the

limit of having such bookmarks?

Thanks, Sebastian



--
View this message in context: http://www.nabble.com/Creating-google- 
sitemap-for-wicket-application-tf4690334.html#a13408731

Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Re: Component autorefresh with Ajax

2007-10-25 Thread Matej Knopp
Wicket doesn't track dirty components (because there are lot of 
different ways you can consider a component "dirty"). But you can mark 
your dirty dirty yourself (e.g. setting some flags) and then use a 
visitor (MarkupContainer.visitChildren()) to find dirty components and 
add them to AjaxRequestTarget.


-Matej

Artur W.  wrote / napísal(a):

Hi!

I have complex dependencies between components on my page.
e.g. when user clicks on a button coupe of other components change.

Now I refresh them with AjaxRequestTarget and a lots of conditions.
Is it possible that Wicket automatically adds dirty component to the
AjaxRequestTarget.addComponent(...)?


Thanks for help,
Artur



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Component autorefresh with Ajax

2007-10-25 Thread Artur W.

Hi!

I have complex dependencies between components on my page.
e.g. when user clicks on a button coupe of other components change.

Now I refresh them with AjaxRequestTarget and a lots of conditions.
Is it possible that Wicket automatically adds dirty component to the
AjaxRequestTarget.addComponent(...)?


Thanks for help,
Artur
-- 
View this message in context: 
http://www.nabble.com/Component-autorefresh-with-Ajax-tf4691652.html#a13409367
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get libs without installing Maven?

2007-10-25 Thread Thomas Singer

No possibility?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DropDownChoice model being lost.

2007-10-25 Thread Andrew MacKenzie
I'm having a number of problems with DropDownChoices in Wicket.

I have a rather complex page that has a form with multiple submit buttons
and ListView within ListView within ListView.

In the lowest ListView I have a drop down and a text field.  The text field
works fine, but the drop down gives me many headaches.

I'm using setReuseItems(true) on each ListView.  The selection list for the
drop down is driven by a Hibernate DAO, as is the selected choice (for the
TextFields as well).

When the default submit button is clicked the Model backing the
DropDownChoices is not updated - the TextField is updated fine however.

When a non-default submit button which calls "getForm().process()" is
clicked the DropDownChoices 'lose' their state and all display the default
choice ("Choose One").  

I can't really include a simple 'quick start' to demostrate this as it's
rather complex to setup and would take some time...  

Are there any known 'pitfalls' or 'gotchas' with drop downs that I am
missing?  The TextFields seem to behave just fine.  

-- 
// Andrew MacKenzie  |  http://www.edespot.com
// GPG public key: http://www.edespot.com/~amackenz/public.key
// Re graphics: A picture is worth 10K words - but only those to describe
// the picture. Hardly any sets of 10K words can be adequately described with
// pictures.
// - Alan Perlis


pgpC5QSP8enGW.pgp
Description: PGP signature


ResourceLocator question.

2007-10-25 Thread Andrew MacKenzie

The documentation doesn't seem clear on this. 

I'm using Wicket 1.2 and need 'some' pages to be loaded from different
locations than the default.

I've found the documentation here:
http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html

In that example the custom locator is added via:
locator.add(0, new WebPageResourceStreamLocator(resourceFinder));

If rather than specify the '0' in that statement I just add my custom
resource locator, would it be tried after the locators before it (so most
pages would work with the default locator, and only fall back to my custom
locator if the file wasn't found)?

-- 
// Andrew MacKenzie  |  http://www.edespot.com
// GPG public key: http://www.edespot.com/~amackenz/public.key
// "Money is flat and was meant to be piled up."
// -- Scottish Proverb


pgplcWE1WxWpu.pgp
Description: PGP signature


Re: Creating google-sitemap for wicket application

2007-10-25 Thread martinf

Hi,

basically yes. Depending on your package structure one of the other 'mount'
implementations in WebApplication might be of help to you.
About the performace I can't say much. But 500 path/Page associations
doesn't sound too scary in my ears. At least worth a try.

mf


BatiB80 wrote:
> 
> Hi,
> 
> thanks for the answer, I tried it out and it seems to be working. But one
> more question on this: 
> 
> If I have 500 pages in my webapplication, would this mean, that I have to
> call the method: 
> 
>mountBookmarkablePage("/somelink", SomePage.class);
> 
> 500 times during the initialisation of my application. If yes, what is the
> limit of having such bookmarks? 
> 
> Thanks, Sebastian
> 

-- 
View this message in context: 
http://www.nabble.com/Creating-google-sitemap-for-wicket-application-tf4690334.html#a13408731
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WicketTester - reload page after model changed

2007-10-25 Thread David Shepherdson
On Thursday 25 October 2007 3.27.07 pm Per Newgro wrote:

> how can i reload the page managed by my wicketTester instance.

We're doing it with something like this in a subclass of WicketTester:

public Page refresh() {

final WebRequestCycle cycle = createRequestCycle();
try {
cycle.request(new PageRequestTarget(getLastRenderedPage()));
} finally {
cycle.getResponse().close();
}

//postProcessRequestCycle(cycle);

return getLastRenderedPage();
}

The only difficulty is the commented-out line: the 
postProcessRequestCycle(...) method in MockWebApplication is private, 
so we had to copy the code into our tester class.

David


.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Back button and AjaxLazyLoadPanel

2007-10-25 Thread Matej Knopp
you can try to add cache-control: no-store header to your page. If
that doesn't help, fill a jira issue with attached quickstart.

-Matej

On 10/25/07, Evan Chooly <[EMAIL PROTECTED]> wrote:
> I'm having issues using the ALLP and the back button.  I'm getting the
> following error:
>
> java.lang.IllegalStateException: No behavior listener found with
> behaviorId 0; Component: [MarkupContainer [Component id = content,
> page = WorkflowPage, path = 7:content:content.WorkflowUsersListPanel,
> isVisible = true, isVersioned = true]]
>  at 
> org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:95)
>  at 
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:90)
>
>
> Has anyone else seen this and know how to fix it?
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



WicketTester - reload page after model changed

2007-10-25 Thread Per Newgro
Hi *,

how can i reload the page managed by my wicketTester instance. The background 
is that i try to test the markup on a css-class after the model of component 
has changed.

In production mode everything works, but howto test it?

Cheers
Per
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Intercept AjaxRequestTarget

2007-10-25 Thread wheleph

Hello everyone!

My application has a lot of ajax components. And every time validation error
occurs I need to add my FeedbackPanel to AjaxRequestTarget. Is there a way
to do it automatically? I mean to add my FeedbackPanel to every ajax
response 

wheleph
-- 
View this message in context: 
http://www.nabble.com/Intercept-AjaxRequestTarget-tf4691130.html#a13407618
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AccessControlException whenstarting Wicket1.3

2007-10-25 Thread Maurice Marrink
Looks like tomcat is running under a securitymanager. according to the
wiki you might need to add a few permissions, however they did not
mention anything about mbeans.

http://cwiki.apache.org/WICKET/java-security-permissions.html

Anybody else been here before?

Maurice

On 10/25/07, Peter Neubauer <[EMAIL PROTECTED]> wrote:
> Hi there,
> trying to start a very simple Wicket app under Tomcat5 on Linux, I get
> the following Exception. Is there a problem with the Java permissions
> or maybe Linux file permisstions?
>
> This is a standard Tomcat installation, the web.xml looks like:
>
> 
> http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/TR/xmlschema-1/";
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
> version="2.4">
> MyApp
> 
> WicketFilter
> org.apache.wicket.protocol.http.WicketFilter
> 
> applicationClassName
> myapp.hello.MyApp
> 
> 
> 
> WicketFilter
> /app/*
> 
> 
>
>
> Any hints are appreciated!
>
> Cheers
>
> /peter
>
>
> 2007-10-25 14:04:10 StandardContext[/MyApp]Exception starting filter
> WicketFilter
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission wicket.mbean.server.agentid read)
> at 
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
> at 
> java.security.AccessController.checkPermission(AccessController.java:427)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> at 
> java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
> at java.lang.System.getProperty(System.java:628)
> at org.apache.wicket.jmx.Initializer.init(Initializer.java:99)
> at 
> org.apache.wicket.Application.callInitializers(Application.java:804)
> at 
> org.apache.wicket.Application.initializeComponents(Application.java:638)
> at 
> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:485)
> at 
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
> at 
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
> at 
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:79)
> at 
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3702)
> at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4329)
> at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
> at 
> org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:811)
> at 
> org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143)
> at java.security.AccessController.doPrivileged(Native Method)
> at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805)
> at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
> at 
> org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at 
> org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
> at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:216)
> at org.apache.commons.digester.Rule.end(Rule.java:230)
> at org.apache.commons.digester.Digester.endElement(Digester.java:1163)
> at 
> org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
> Source)
> at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
> Source)
> at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.commons.digester.Digester.parse(Digester.java:1699)
> at 
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
> at 
> org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
> at 
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
> at 
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
>   

AutoCompleteTextField / combobox

2007-10-25 Thread Clay Lehman
Hey everyone,

 

I need a combobox, where a user types in part of the entry, and the
possible choices are looked up and presented for the user to select.  

The AutoCompleteTextField looks like it is close to what I want, but I
was hoping there is a way to have an object behind the component's
model, rather than simply a String.   

 

Let's say I have a Person table with ID,  name, and address...  I want
the user to type in part of the name and select a person, the field will
display name/address pairs so that the entries are unique, but when the
form submits, I really just want the ID so I don't have to parse the
textfield string and lookup the object.   Is there a way I can achieve
this using a custom Renderer / converter / behavior?

 

Is there a different component or extension that already does this?  Or
is there an easy way to achieve this with the AutoCompleteTextField?

 

Thanks for any help!

-Clay



Back button and AjaxLazyLoadPanel

2007-10-25 Thread Evan Chooly
I'm having issues using the ALLP and the back button.  I'm getting the
following error:

java.lang.IllegalStateException: No behavior listener found with
behaviorId 0; Component: [MarkupContainer [Component id = content,
page = WorkflowPage, path = 7:content:content.WorkflowUsersListPanel,
isVisible = true, isVersioned = true]]
 at 
org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:95)
 at 
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:90)


Has anyone else seen this and know how to fix it?


Re: Creating google-sitemap for wicket application

2007-10-25 Thread BatiB80

Hi,

thanks for the answer, I tried it out and it seems to be working. But one
more question on this: 

If I have 500 pages in my webapplication, would this mean, that I have to
call the method: 

   mountBookmarkablePage("/somelink", SomePage.class);

500 times during the initialisation of my application. If yes, what is the
limit of having such bookmarks? 

Thanks, Sebastian
-- 
View this message in context: 
http://www.nabble.com/Creating-google-sitemap-for-wicket-application-tf4690334.html#a13406830
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Confirmation message after form submit

2007-10-25 Thread Swaroop Belur
Do it like this:

In js file

function yourconfirmationjsfunction( urltogotoonok , urltogotooncancel) {


var retValue =  confirm(" Are you sure ");
if(retValue == false){
 window.location.href=urltogotooncancel;
}

 window.location.href=urltogotoonok ;
}

In java file... construct these 2 urls using RequestCylce.get().urlFor
methods to ur
behaviors for example.

Then call this js function using these 2 urls

-swaroop



On 10/25/07, Federico Fanton <[EMAIL PROTECTED]> wrote:
>
> Hi everyone!
> I have a form with a submit button, and I need to implement a sequence
> like this:
> - user presses the button
> - form submit
> - server-side validation of submitted data
> - popup with confirmation message (like javascript confirm() )
> - if user presses "yes", call Java method X
> - if user presses "no", call Java method Y
>
> Is this possible?
> Many thanks for your time!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Clearing Session

2007-10-25 Thread Johan Compagner
call remove page then the page is gone and can't be reconstructed anymore
Ofcourse people can still use the back button (if the url did change from
the first to the second page)
and when they do that they will get a page expired.
Or maybe on the second page you have some javascript that clears the window
history somehow.

johan



On 10/25/07, Suad AlShamsi <[EMAIL PROTECTED]> wrote:
>
> Your right, actually what I need is to stop the browser back button, which
> means I need to disable the default second cache, writting to the file
> system. How can I do so.
>
> Another question, what is a temporary session, how can been created, when
> to use it?
>
> Johan Compagner wrote:
>
> you go to another page so the previous page is not in the session anymore
> (wicket 1.3)
>
>
>
> On 10/24/07, Suad AlShamsi <[EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >After submitting a form the input data will be persisted in the
> > database and the user  will be directed to another page. How can I clear
> >
> > the input data from the session?!
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


AccessControlException whenstarting Wicket1.3

2007-10-25 Thread Peter Neubauer
Hi there,
trying to start a very simple Wicket app under Tomcat5 on Linux, I get
the following Exception. Is there a problem with the Java permissions
or maybe Linux file permisstions?

This is a standard Tomcat installation, the web.xml looks like:


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/TR/xmlschema-1/";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">
MyApp

WicketFilter
org.apache.wicket.protocol.http.WicketFilter

applicationClassName
myapp.hello.MyApp



WicketFilter
/app/*




Any hints are appreciated!

Cheers

/peter


2007-10-25 14:04:10 StandardContext[/MyApp]Exception starting filter
WicketFilter
java.security.AccessControlException: access denied
(java.util.PropertyPermission wicket.mbean.server.agentid read)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at 
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at 
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
at java.lang.System.getProperty(System.java:628)
at org.apache.wicket.jmx.Initializer.init(Initializer.java:99)
at org.apache.wicket.Application.callInitializers(Application.java:804)
at 
org.apache.wicket.Application.initializeComponents(Application.java:638)
at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:485)
at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
at 
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:79)
at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3702)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4329)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at 
org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:811)
at 
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at 
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:216)
at org.apache.commons.digester.Rule.end(Rule.java:230)
at org.apache.commons.digester.Digester.endElement(Digester.java:1163)
at 
org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1699)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at 
org.apache.catalina.core.StandardEngine.

Re: Creating google-sitemap for wicket application

2007-10-25 Thread martinf

Hi,

how about

WebApplication.mountBookmarkablePage(final String path, final Class
bookmarkablePageClass)

For usage also look into
org.apache.wicket.examples.niceurl.NiceUrlApplication.init()

mf


BatiB80 wrote:
> 
> Hi,
> 
> I have created a wicket application and now want to make it public.
> Therefor I need to create a google sitemap. Unfortunately the sitemap
> expects some normal links which points to the files (e.g.
> www.sample.com/mypage.htm). All my links are generated dynamically by
> wicket. Furthermore it's not possible to add a Servlet-Mapping for each
> page because there are several hundreds of pages. 
> 
> What is the best way to create a sitemap for google?
> 
> Thanks in advance, Sebastian
> 

-- 
View this message in context: 
http://www.nabble.com/Creating-google-sitemap-for-wicket-application-tf4690334.html#a13406053
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: possible bug in 1.2.6 / 1.3 Include

2007-10-25 Thread Al Maw

Jeremy Levy wrote:

I found this while working on 1.2.6 and checked it out in 1.3 and it's the
same. It appears as though Include does not pay attention to the contextpath
if it is explicitly set.

Line 162 (In 1.2.6) or line 233 (in 1.3b4) of Include is the following line
which as I understands it builds a absolute URL from a relative path from
the model:

buildUrl.append(req.getContextPath()).append('/').append(url);

It's using the request's context path to build the absolute URL, if this is
behind a proxy it will fail, I changed my copy to this:

buildUrl.append
(getApplication().getApplicationSettings().getContextPath()).append('/').append(url);

Am I misunderstanding this?


Yeah, looks like a bug. Please open a JIRA issue and I'll look into it.

Regards,

Al

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Creating google-sitemap for wicket application

2007-10-25 Thread BatiB80

Hi,

I have created a wicket application and now want to make it public. Therefor
I need to create a google sitemap. Unfortunately the sitemap expects some
normal links which points to the files (e.g. www.sample.com/mypage.htm). All
my links are generated dynamically by wicket. Furthermore it's not possible
to add a Servlet-Mapping for each page because there are several hundreds of
pages. 

What is the best way to create a sitemap for google?

Thanks in advance, Sebastian
-- 
View this message in context: 
http://www.nabble.com/Creating-google-sitemap-for-wicket-application-tf4690334.html#a13405119
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Confirmation message after form submit

2007-10-25 Thread Dipu Seminlal
yes  a modal window,
i am not sure about how would you pop up a javascript confirm()  after doing
a server side validation.

there might be a way, but i don't know how

Dipu

On 10/25/07, Federico Fanton <[EMAIL PROTECTED]> wrote:
>
> On Thu, 25 Oct 2007 10:40:20 +0100
> "Dipu Seminlal" <[EMAIL PROTECTED]> wrote:
>
> > I think you can make use of a modal window to do this
>
> You mean, a modal window instead of the javascript confirm() ?
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: FormComponentFeedbackIndicator not triggered with 1.3b4?

2007-10-25 Thread Eelco Hillenius
On 10/24/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> No, there shouldn't be as far as I know. This might be a regression
> though, could you file a jira issue and attach a quickstart that
> demonstrates the problem? Thanks.

Or unit test... that's even better.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Confirmation message after form submit

2007-10-25 Thread Federico Fanton
On Thu, 25 Oct 2007 10:40:20 +0100
"Dipu Seminlal" <[EMAIL PROTECTED]> wrote:

> I think you can make use of a modal window to do this

You mean, a modal window instead of the javascript confirm() ?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: LoadableDetachableModel and anonymous inner classes - unwanted serialization overhead?

2007-10-25 Thread Stefan Fußenegger

Hi Matej

Thanks for your reply. In deed, I declared the LoadableDetachableModel
inside the IDataProvider. So the bottom line of your post is, that it is
serialized anyway altogether?

Are there some docs for wicket serialization around? As I figured out,
wicket likes serialization. But so far I wasn't able to find some docs
explaining what is serialized and when. If you - or somebody else - would
give me the right pointers, I'd start a new page in the wiki, that
especially talks about what is serialized and when, what should be
transient, how to troubleshoot/debug/optimize serialization, and so forth.

I am very interested in the inner workings of wicket and this might be a
good starting point to getting into it, so at least for me its worth the
effort ;)


Matej Knopp-2 wrote:
> 
> Where do you have your LoadableDetachableModel declared? And what kind
> of IDataProvider are you talking about? If it is wicket's
> IDataProvider than it has to be serializable, because DataView/Table
> keep it's reference.
> 
> LoadableDetachableModel is usually declared as anonymous class inside
> component/page, which is serialized anyway, so the implicit reference
> makes no difference.
> 
> -Matej
> 
> On 10/25/07, Stefan Fußenegger <[EMAIL PROTECTED]> wrote:
>>
>> Hi folks,
>>
>> I am quite new to wicket but I already figured out that it deserved its
>> name
>> ;) Currently, I am playing around with IDataProvider in conjunction with
>> LoadableDetachableModels. As far as I understand, the main purpose of
>> LoadableDetachableModels is to tune serialization performance. At the
>> beginning I looked at the API doc, which suggested using anonymous inner
>> classes for detachable models:
>>
>>
>> public IModel model(Object object) {
>> return new LoadableDetachableModel() {
>> protected Object load() {
>> /* snip - (re)load the object */
>> }
>> };
>> }
>>
>>
>> However, this might not be suited for serialization, as inner classes
>> have
>> an implicit reference on their enclosing object - which was the
>> IDataProvider implementation in my case. As a consequence the
>> IDataProvider
>> object  (and all its possible fileds!) would be serialized together with
>> every serialized LoadableDetachableModel - which would lead to an
>> unwanted
>> serialization overhead.
>>
>> Am I missing something here? Like some Wicket serialization voodoo that
>> takes care of it? If not, it would be worth mentioning in the API doc and
>> probably in the wiki as well (I would take care of the wiki if I get
>> green
>> lights).
>>
>> Regards, Stefan
>> --
>> View this message in context:
>> http://www.nabble.com/LoadableDetachableModel-and-anonymous-inner-classes---unwanted-serialization-overhead--tf4689309.html#a13402266
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/LoadableDetachableModel-and-anonymous-inner-classes---unwanted-serialization-overhead--tf4689309.html#a13403458
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Changing DocType of the page.

2007-10-25 Thread ravi.gidwani

Hi All:

Wicket used: 1.2.6

I know this will sound a bit not common. But I have a requirement as
follows:

AbstractPage1 extends WebPage{
  //The Html of this page has 
}

ChildPage1 extends AbstractPage1 {
 // This page provides the extending HTMl code. And requires DocType in the
rendered HTMl.
.// All is fine here.
}

ChildPage2 extends AbstractPage1 {
//This page again provides the html code. BUT this page requires a
different(rather no) DocType in the rendered HTML.
}

Now how do I achieve modifying/deleting/adding the DocType in such a case.

TIA.
~Ravi.
-- 
View this message in context: 
http://www.nabble.com/Changing-DocType-of-the-page.-tf4689657.html#a13403330
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I dynamically populate TreeTable nodes

2007-10-25 Thread Matej Knopp
It's about how you implement the TreeModel. You need to roll your own
TreeNode implementation that loads the children lazily when then
children() method is called. That way you don't have to populate the
whole tree upfront.

-Matej

On 10/25/07, lubosp <[EMAIL PROTECTED]> wrote:
>
> I use extensions TreeTable and populating the all nodes is quite expensive.
> So I would like to display initially only first level of the nodes and keep
> the nodes with children collapsed. Only if they are getting expanded, I
> would populate the children of the currently expanded node. I have hard time
> figuring it out just from javadoc. Is there a way to do that for TreeTable
> or do I have to populate all tree nodes when I display the TreeTable even if
> the nodes with children are collapsed.
>
> --
> View this message in context: 
> http://www.nabble.com/How-do-I-dynamically-populate-TreeTable-nodes-tf4688372.html#a13399533
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Confirmation message after form submit

2007-10-25 Thread Dipu Seminlal
I think you can make use of a modal window to do this

Regards
Dipu

On 10/25/07, Federico Fanton <[EMAIL PROTECTED]> wrote:
>
> Hi everyone!
> I have a form with a submit button, and I need to implement a sequence
> like this:
> - user presses the button
> - form submit
> - server-side validation of submitted data
> - popup with confirmation message (like javascript confirm() )
> - if user presses "yes", call Java method X
> - if user presses "no", call Java method Y
>
> Is this possible?
> Many thanks for your time!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: LoadableDetachableModel and anonymous inner classes - unwanted serialization overhead?

2007-10-25 Thread Matej Knopp
Where do you have your LoadableDetachableModel declared? And what kind
of IDataProvider are you talking about? If it is wicket's
IDataProvider than it has to be serializable, because DataView/Table
keep it's reference.

LoadableDetachableModel is usually declared as anonymous class inside
component/page, which is serialized anyway, so the implicit reference
makes no difference.

-Matej

On 10/25/07, Stefan Fußenegger <[EMAIL PROTECTED]> wrote:
>
> Hi folks,
>
> I am quite new to wicket but I already figured out that it deserved its name
> ;) Currently, I am playing around with IDataProvider in conjunction with
> LoadableDetachableModels. As far as I understand, the main purpose of
> LoadableDetachableModels is to tune serialization performance. At the
> beginning I looked at the API doc, which suggested using anonymous inner
> classes for detachable models:
>
>
> public IModel model(Object object) {
> return new LoadableDetachableModel() {
> protected Object load() {
> /* snip - (re)load the object */
> }
> };
> }
>
>
> However, this might not be suited for serialization, as inner classes have
> an implicit reference on their enclosing object - which was the
> IDataProvider implementation in my case. As a consequence the IDataProvider
> object  (and all its possible fileds!) would be serialized together with
> every serialized LoadableDetachableModel - which would lead to an unwanted
> serialization overhead.
>
> Am I missing something here? Like some Wicket serialization voodoo that
> takes care of it? If not, it would be worth mentioning in the API doc and
> probably in the wiki as well (I would take care of the wiki if I get green
> lights).
>
> Regards, Stefan
> --
> View this message in context: 
> http://www.nabble.com/LoadableDetachableModel-and-anonymous-inner-classes---unwanted-serialization-overhead--tf4689309.html#a13402266
> Sent from the Wicket - User mailing list archive at Nabble.com.
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Get libs without installing Maven?

2007-10-25 Thread Thomas Singer
I'm currently trying to update from 1.4beta2 to 1.4beta4 by changing the 
revision of our project's wicket-external 
(http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.4/wicket/src/main/java). 
Unfortunately it does not build any more because it seems to require a new 
library.


Where can I download the currently required jar files? I don't want to 
install maven for such a trivial task, because we don't need it for other stuff.


--
Thanks,
Tom

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Setting charset of javascript includes?

2007-10-25 Thread Matej Knopp
I see, well, in that case you can use IHeaderResponse.renderText() to
render the entire script tag on your own (you can look at the
implementation of renderJavascriptReference to do something similiar
just put the encoding attribute in there)

-Matej

On 10/25/07, kent lai <[EMAIL PROTECTED]> wrote:
> My document is using charset utf-8, but the jquery.validate.js is
> encoded with iso-8859-1. It caused javascript errors on ie6, and the
> recommended resolution they had was to set the charset of the
> 

Confirmation message after form submit

2007-10-25 Thread Federico Fanton
Hi everyone!
I have a form with a submit button, and I need to implement a sequence like 
this:
- user presses the button
- form submit
- server-side validation of submitted data
- popup with confirmation message (like javascript confirm() )
- if user presses "yes", call Java method X
- if user presses "no", call Java method Y

Is this possible?
Many thanks for your time!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Non-serializable objects and efficiency

2007-10-25 Thread WicketKeeper

Thanks for prompt reply.

Yes, I was thinking having 1 DataConn for every new request. So what i
envision is:
1. User goes to home page ("active window" being the browser window)
2. On connection, a new DataConn object should be initialised.
3. User does data enquiry stuff from that page (lots of tabs, form inputs
etc.) - components on the page are populated by making requests to DataConn.

Otherwise I could have just 1 DataConn for the entire application but it
might get a bit loaded if there are lots and lots of people connecting -
plus it does user authentication via the contructor so there has to be 1
DataConn per user.

Thanks for your help so far!
WK


Johan Compagner wrote:
> 
> opening a DataConn everytime for every request isn't really what you want
> i
> guess?
> (else you could have a custom request cycle that does this)
> 
> But what you could do is hold an transient field in your custom Wicket
> Session object
> and maybe besides that a id or description so that you can restore that
> transient field.
> And keep in in the session as long as possible. But it could be that the
> field (the dataconn)
> is sometimes null if the wicket sessions was serialized by the container.
> 
> What do you mean active window? What is the active window?
> Do you want an datacon object per browser window?
> You could look if you can have 1 per pagemap then
> 
> 
> johan
> 
> 
> On 10/25/07, WicketKeeper <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi
>> Thanks...
>> Then how do I get that object by it's id? (did you mean component id?)
>>
>> I guess what i'm asking is how to best structure things in Wicket when
>> there
>> is a resource that isn't serializable and is used by multiple components.
>>
>> So in my case I have a number of tabs, each with its own panel. Within
>> the
>> panel there's a bunch of fillable components, e.g. tables, which are
>> populated by using DataConn. However for every person that visits the
>> site
>> there can only ever be one instance of DataConn (so there would be
>> multiple
>> instances in the application if more then one person is hitting the home
>> page).
>>
>> Another question: DataConn should also be "wrapped up" so that GB can
>> deal
>> with it once a user closes the active window. Is there a way to do this?
>>
>> I keep coming back to the idea of Sessions here but I have a gap in my
>> understanding of how wicket is deploying objects here. Any help, much
>> appreciated.
>>
>> Thanks!
>> WW.
>>
>>
>>
>> Johan Compagner wrote:
>> >
>> > you can't keep hard (must be transient) references to those resources
>> > so you always should be able to look it up again. by, for example, some
>> id
>> > that isn't transient
>> >
>> > johan
>> >
>> >
>> >
>> > On 10/24/07, WicketKeeper <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hi
>> >>
>> >> I'm new to Wicket to this might be an ultra-dum question :)
>> >>
>> >> I'm creating a wicket application that gets its data from an online
>> >> resource. The connection logic to that resource is in an external jar
>> and
>> >> most of those classes don't implement Serializable. Fore ease of
>> >> explanation, let's call the entry class for the connection "DataConn".
>> So
>> >> whenever I want to get specific data to, say, fill in an
>> >> AutoCompleteTextField all i do is list=dataconn.getStuff().
>> >>
>> >> Moreover, whenever someone comes to the application's homepage they
>> >> shoult
>> >> only ever have ONE instance of DataConn, i.e. 1 instance for each
>> "user".
>> >>
>> >> So my question is - what's the best way to go about doing this in
>> Wicket?
>> >> I
>> >> am aware of Session and Models in wicket (though my understanding is
>> >> poor)
>> >> -
>> >> could anyone direct me to the appropriate examples or suggestions
>> please?
>> >>
>> >> Thanks
>> >> WK.
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Non-serializable-objects-and-efficiency-tf4684047.html#a13384755
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Non-serializable-objects-and-efficiency-tf4684047.html#a13401731
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Non-serializable-objects-and-efficiency-tf4684047.html#a13402917
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Non-serializable objects and efficiency

2007-10-25 Thread Johan Compagner
opening a DataConn everytime for every request isn't really what you want i
guess?
(else you could have a custom request cycle that does this)

But what you could do is hold an transient field in your custom Wicket
Session object
and maybe besides that a id or description so that you can restore that
transient field.
And keep in in the session as long as possible. But it could be that the
field (the dataconn)
is sometimes null if the wicket sessions was serialized by the container.

What do you mean active window? What is the active window?
Do you want an datacon object per browser window?
You could look if you can have 1 per pagemap then


johan


On 10/25/07, WicketKeeper <[EMAIL PROTECTED]> wrote:
>
>
> Hi
> Thanks...
> Then how do I get that object by it's id? (did you mean component id?)
>
> I guess what i'm asking is how to best structure things in Wicket when
> there
> is a resource that isn't serializable and is used by multiple components.
>
> So in my case I have a number of tabs, each with its own panel. Within the
> panel there's a bunch of fillable components, e.g. tables, which are
> populated by using DataConn. However for every person that visits the site
> there can only ever be one instance of DataConn (so there would be
> multiple
> instances in the application if more then one person is hitting the home
> page).
>
> Another question: DataConn should also be "wrapped up" so that GB can deal
> with it once a user closes the active window. Is there a way to do this?
>
> I keep coming back to the idea of Sessions here but I have a gap in my
> understanding of how wicket is deploying objects here. Any help, much
> appreciated.
>
> Thanks!
> WW.
>
>
>
> Johan Compagner wrote:
> >
> > you can't keep hard (must be transient) references to those resources
> > so you always should be able to look it up again. by, for example, some
> id
> > that isn't transient
> >
> > johan
> >
> >
> >
> > On 10/24/07, WicketKeeper <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hi
> >>
> >> I'm new to Wicket to this might be an ultra-dum question :)
> >>
> >> I'm creating a wicket application that gets its data from an online
> >> resource. The connection logic to that resource is in an external jar
> and
> >> most of those classes don't implement Serializable. Fore ease of
> >> explanation, let's call the entry class for the connection "DataConn".
> So
> >> whenever I want to get specific data to, say, fill in an
> >> AutoCompleteTextField all i do is list=dataconn.getStuff().
> >>
> >> Moreover, whenever someone comes to the application's homepage they
> >> shoult
> >> only ever have ONE instance of DataConn, i.e. 1 instance for each
> "user".
> >>
> >> So my question is - what's the best way to go about doing this in
> Wicket?
> >> I
> >> am aware of Session and Models in wicket (though my understanding is
> >> poor)
> >> -
> >> could anyone direct me to the appropriate examples or suggestions
> please?
> >>
> >> Thanks
> >> WK.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Non-serializable-objects-and-efficiency-tf4684047.html#a13384755
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Non-serializable-objects-and-efficiency-tf4684047.html#a13401731
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


LoadableDetachableModel and anonymous inner classes - unwanted serialization overhead?

2007-10-25 Thread Stefan Fußenegger

Hi folks,

I am quite new to wicket but I already figured out that it deserved its name
;) Currently, I am playing around with IDataProvider in conjunction with
LoadableDetachableModels. As far as I understand, the main purpose of
LoadableDetachableModels is to tune serialization performance. At the
beginning I looked at the API doc, which suggested using anonymous inner
classes for detachable models:


public IModel model(Object object) {
return new LoadableDetachableModel() {
protected Object load() {
/* snip - (re)load the object */
}
};
}


However, this might not be suited for serialization, as inner classes have
an implicit reference on their enclosing object - which was the
IDataProvider implementation in my case. As a consequence the IDataProvider
object  (and all its possible fileds!) would be serialized together with
every serialized LoadableDetachableModel - which would lead to an unwanted
serialization overhead.

Am I missing something here? Like some Wicket serialization voodoo that
takes care of it? If not, it would be worth mentioning in the API doc and
probably in the wiki as well (I would take care of the wiki if I get green
lights).

Regards, Stefan
-- 
View this message in context: 
http://www.nabble.com/LoadableDetachableModel-and-anonymous-inner-classes---unwanted-serialization-overhead--tf4689309.html#a13402266
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: Non-serializable objects and efficiency

2007-10-25 Thread WicketKeeper

Hi
Thanks... 
Then how do I get that object by it's id? (did you mean component id?)

I guess what i'm asking is how to best structure things in Wicket when there
is a resource that isn't serializable and is used by multiple components.

So in my case I have a number of tabs, each with its own panel. Within the
panel there's a bunch of fillable components, e.g. tables, which are
populated by using DataConn. However for every person that visits the site
there can only ever be one instance of DataConn (so there would be multiple
instances in the application if more then one person is hitting the home
page).

Another question: DataConn should also be "wrapped up" so that GB can deal
with it once a user closes the active window. Is there a way to do this?

I keep coming back to the idea of Sessions here but I have a gap in my
understanding of how wicket is deploying objects here. Any help, much
appreciated.

Thanks!
WW.



Johan Compagner wrote:
> 
> you can't keep hard (must be transient) references to those resources
> so you always should be able to look it up again. by, for example, some id
> that isn't transient
> 
> johan
> 
> 
> 
> On 10/24/07, WicketKeeper <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi
>>
>> I'm new to Wicket to this might be an ultra-dum question :)
>>
>> I'm creating a wicket application that gets its data from an online
>> resource. The connection logic to that resource is in an external jar and
>> most of those classes don't implement Serializable. Fore ease of
>> explanation, let's call the entry class for the connection "DataConn". So
>> whenever I want to get specific data to, say, fill in an
>> AutoCompleteTextField all i do is list=dataconn.getStuff().
>>
>> Moreover, whenever someone comes to the application's homepage they
>> shoult
>> only ever have ONE instance of DataConn, i.e. 1 instance for each "user".
>>
>> So my question is - what's the best way to go about doing this in Wicket?
>> I
>> am aware of Session and Models in wicket (though my understanding is
>> poor)
>> -
>> could anyone direct me to the appropriate examples or suggestions please?
>>
>> Thanks
>> WK.
>> --
>> View this message in context:
>> http://www.nabble.com/Non-serializable-objects-and-efficiency-tf4684047.html#a13384755
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Non-serializable-objects-and-efficiency-tf4684047.html#a13401731
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TagTester - Howto get the value?

2007-10-25 Thread Per Newgro
Hi *,

is there a way for getting the value between the tags?

If i try 
TagTester t = wicketTester.getTagByWicketId("myId");
i "only" get the tag with its attributes. 

But i would like to access the value enclosed by tags:
This value i'm looking for

A hint would be nice.
Thanks
Per
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicketstuff push and sharing an IChannelService

2007-10-25 Thread Michael Sparer

Hi Xavier, 

thanks for your effort but please don't take too much time investigating my
issues :-)

I'm using wicket 1.3.0-beta3 and wicketstuff push... well since it doesn't
show the svn version numbers the version of monday this week. Yesterday I
had a more thorough look into what's exactly happening i.e. how the push
project interacts with the wicketstuff dojo project and integrates cometd.
There I found out that in order to communicate with wicket there's an extra
round trip to the server taking place. So the channel sends a message to the
client-javascript (including the data to be shown on page) which then makes
an ajax call back to the server where the data gets rendered into xml and is
then shown on the page. I wondered if that was intentional and if yes, what
purpose it serves.
For my project I've changed the java-script function which starts the AJAX
call sothat it renderes the message to proper javascript and directly
inserts it in the document's DOM without making an additional call. This
however, makes the server site less flexible as only a javascript string can
be processed on client site - but that's ok for my app.

Xavier Hanin wrote:
> 
> Michael,
> 
> As I said I don't use the ChannelService myself, but I used to have
> similar
> troubles with the PushService, which I think I finally fixed, but it
> wasn't
> easy. Since the fix is in TimerChannelBehavior (which is used by both the
> push and channel timer based implementation, it should work for both, but
> I
> haven't tested. Can I ask which version of wicket and wicketstuff-push
> you're using, and also which implementation of IChannelService? If you
> want
> to investigate in the code, the core of the fix relies on the redirect and
> setRedirectId in TimerChannelBehavior.
> 
> Xavier
> 
> On 10/24/07, Michael Sparer <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi Xavier,
>>
>> first of all thank you for the effort you've done for the push-project.
>> Up
>> to now it really provided the features I need for my app. But now I'm
>> kind
>> of stuck. My problem is: I have two panels on one page. Both panel
>> subscribe
>> themselves as ChannelListener for the same channel. But unfortunately
>> whenever an event invoking the listeners occurred, the onEvent method
>> gets
>> executed twice on both listeners (i.e. four times). It occurrs only if
>> you
>> have two panels i.e. two listeners on the same page.
>>
>> IMO the error is somewhere in the javascript where a function gets
>> executed
>> twice...but I haven't found it so far. So do you have any clue?
>>
>> thanks
>>
>> Michael
>>
>> Xavier Hanin wrote:
>> >
>> > On 10/23/07, Michael Sparer <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hi Xavier,
>> >>
>> >> thanks for your reply - well yes, that's certainly right. I've just
>> lost
>> >> sight of it. But I got another question: how stable is the
>> >> wicketstuff-push
>> >> project or what sections are stable and which have to be improved for
>> use
>> >> in
>> >> a professional webapp?
>> >
>> >
>> > AFAIK wicketstuff-push is developed by vincent demay and myself.
>> Vincent
>> > worked on the cometd channel implementation, and I've worked mostly on
>> the
>> > timer based IPushService implementation (where events do not come from
>> the
>> > client at all). I don't know how stable is the channel implementation
>> > since
>> > I don't use it myself, maybe Vincent could give more details (not sure
>> if
>> > it's used in production or not). For the IPushService implementation,
>> it
>> > still requires more testing and improvements, because the problem is
>> not
>> > easy to solve with a timer based polling implementation: we have to
>> detect
>> > clients disconnection, and also handle back button where pages go back
>> to
>> > life from the a serialized form. And we also need to work on a comet
>> based
>> > implementation of this push service. So I think there's still need for
>> > improvement and bug fixing in this section.
>> >
>> > BTW, I've just checked in an improvement about this problem of page
>> > deserialization which required an API change for the IPushService. If
>> you
>> > plan to use it, do not forget to do an svn update.
>> >
>> > Xavier
>> >
>> > thanks in advance
>> >>
>> >> Michael
>> >>
>> >> Xavier Hanin wrote:
>> >> >
>> >> > On 10/22/07, Michael Sparer <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >>
>> >> >> Hi,
>> >> >>
>> >> >> today I wondered if there's a wicket-approach for pushing messages
>> >> from
>> >> >> the
>> >> >> server to the client (also called reverse ajax or pushlets). Well
>> yes,
>> >> >> there
>> >> >> is one called wicketstuff push. I looked at its examples and soon
>> >> managed
>> >> >> to
>> >> >> implement my own pushing stuff. In the examples (chat-example)
>> >> however,
>> >> >> the
>> >> >> ChannelService that delivers the messages to its listeners, is
>> stored
>> >> in
>> >> >> the
>> >> >> application. I.e. there is only one channel for the whole
>> application.
>> >> >> Now imagine I wan