Re: [Wicket-user] Form submit and RestartResponseAtInterceptPageException

2007-06-13 Thread Andrew Berman

Actually, I did something much easier, I just created a page which all it
does is redirect to the page I wanted my form to redirect to and changed the
form responsePage to the redirect page.  Works perfectly.  For now, I'm
going to go with this since it's dirt simple and took all of 1 minute to do.

On 6/13/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


no, you can just do what it does. look at the code, it doesnt do anything
special.

-igor


On 6/13/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
>
> So are you also saying I have to write my own PageMap class for the
> continueToOriginalDestination?
>
> On 6/13/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> >
> > you would basically have to rewrite this functionality.
> >
> > create your own restartresponse flavor exception and throw post params
> > into session. then create your own continuetooriginaldestination()
> >
> > -igor
> >
> >
> > On 6/13/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> > >
> > > Is there some workaround I can do?  I'm not on 1.3, I'm on 1.2.6.  I
> > > gotta get this to work, I really cannot wait on a new release or fix at 
this
> > > point.
> > >
> > > On 6/13/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > >
> > > > its actually correct. he wants to resume form-processing because
> > > > his page _submits_ to a page that requires login. right now
> > > > restartresponseatinterceptpage remembers the url and does a get on that 
url.
> > > > it looks like we might have to remember the url/the request type/and 
post
> > > > parameters as well, and then instead of doing a get on the return url we
> > > > might have to do a post.
> > > >
> > > > dont think we have that yet, so please add an rfe.
> > > >
> > > > -igor
> > > >
> > > >
> > > > On 6/13/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > It shouldn't. Certainly not in 1.3. Are you sure you didn't
> > > > > overlook something?
> > > > >
> > > > > Eelco
> > > > >
> > > > > On 6/13/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> > > > > > I've seen posts on this before but never a solution.  I have a
> > > > > form which
> > > > > > submits to a page which requires login.  As a result, I throw
> > > > > a
> > > > > > RestartResponseAtInterceptPageException which takes the
> > > > > > user to a login screen.  Once done with the login screen it's
> > > > > supposed to go
> > > > > > to the page the form submit sent the user to.  The problem is
> > > > > that it goes
> > > > > > back to the form page instead.  Is there any solution to this
> > > > > problem?
> > > > > >
> > > > > > Thanks.
> > > > > >
> > > > > >
> > > > > 
-
> > > > > > This SF.net email is sponsored by DB2 Express
> > > > > > Download DB2 Express C - the FREE version of DB2 express and
> > > > > take
> > > > > > control of your XML. No limits. Just data. Click to get it
> > > > > now.
> > > > > > http://sourceforge.net/powerbar/db2/
> > > > > > ___
> > > > > > Wicket-user mailing list
> > > > > > Wicket-user@lists.sourceforge.net
> > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > 
-
> > > > > This SF.net email is sponsored by DB2 Express
> > > > > Download DB2 Express C - the FREE version of DB2 express and
> > > > > take
> > > > > control of your XML. No limits. Just data. Click to get it now.
> > > > > http://sourceforge.net/powerbar/db2/
> > > > > ___
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > >
> > > >
>

Re: [Wicket-user] Form submit and RestartResponseAtInterceptPageException

2007-06-13 Thread Andrew Berman

So are you also saying I have to write my own PageMap class for the
continueToOriginalDestination?

On 6/13/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


you would basically have to rewrite this functionality.

create your own restartresponse flavor exception and throw post params
into session. then create your own continuetooriginaldestination()

-igor


On 6/13/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
>
> Is there some workaround I can do?  I'm not on 1.3, I'm on 1.2.6.  I
> gotta get this to work, I really cannot wait on a new release or fix at this
> point.
>
> On 6/13/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > its actually correct. he wants to resume form-processing because his
> > page _submits_ to a page that requires login. right now
> > restartresponseatinterceptpage remembers the url and does a get on that url.
> > it looks like we might have to remember the url/the request type/and post
> > parameters as well, and then instead of doing a get on the return url we
> > might have to do a post.
> >
> > dont think we have that yet, so please add an rfe.
> >
> > -igor
> >
> >
> > On 6/13/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> > >
> > > It shouldn't. Certainly not in 1.3. Are you sure you didn't overlook
> > > something?
> > >
> > > Eelco
> > >
> > > On 6/13/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> > > > I've seen posts on this before but never a solution.  I have a
> > > form which
> > > > submits to a page which requires login.  As a result, I throw a
> > > > RestartResponseAtInterceptPageException which takes the
> > > > user to a login screen.  Once done with the login screen it's
> > > supposed to go
> > > > to the page the form submit sent the user to.  The problem is that
> > > it goes
> > > > back to the form page instead.  Is there any solution to this
> > > problem?
> > > >
> > > > Thanks.
> > > >
> > > >
> > > -
> > > > This SF.net email is sponsored by DB2 Express
> > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > control of your XML. No limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > > >
> > >
> > >
> > > -
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Form submit and RestartResponseAtInterceptPageException

2007-06-13 Thread Andrew Berman

Is there some workaround I can do?  I'm not on 1.3, I'm on 1.2.6.  I gotta
get this to work, I really cannot wait on a new release or fix at this
point.

On 6/13/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


its actually correct. he wants to resume form-processing because his page
_submits_ to a page that requires login. right now
restartresponseatinterceptpage remembers the url and does a get on that url.
it looks like we might have to remember the url/the request type/and post
parameters as well, and then instead of doing a get on the return url we
might have to do a post.

dont think we have that yet, so please add an rfe.

-igor


On 6/13/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
>
> It shouldn't. Certainly not in 1.3. Are you sure you didn't overlook
> something?
>
> Eelco
>
> On 6/13/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> > I've seen posts on this before but never a solution.  I have a form
> which
> > submits to a page which requires login.  As a result, I throw a
> > RestartResponseAtInterceptPageException which takes the
> > user to a login screen.  Once done with the login screen it's supposed
> to go
> > to the page the form submit sent the user to.  The problem is that it
> goes
> > back to the form page instead.  Is there any solution to this problem?
> >
> > Thanks.
> >
> >
> -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Form submit and RestartResponseAtInterceptPageException

2007-06-13 Thread Andrew Berman

I've seen posts on this before but never a solution.  I have a form which
submits to a page which requires login.  As a result, I throw a
RestartResponseAtInterceptPageException which takes the user to a login
screen.  Once done with the login screen it's supposed to go to the page the
form submit sent the user to.  The problem is that it goes back to the form
page instead.  Is there any solution to this problem?

Thanks.
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-21 Thread Andrew Berman

I commented out the DefaultServlet that comes with Tomcat and that seems to
have resolved the issue (at least I can no longer replicate it on my local
machine).  I don't know why, but I'm guessing that since my app is mapped to
/ and tomcat's DefaultServlet is mapped to / it creates a session for the
DefaultServlet and then for mine which explains why the session ids did not
match.  I'm going to test it in production and see if the problem is indeed
resolved.

On 5/19/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:




sorry, no.  that was not wicket's javascript.


Andrew Berman wrote:
>
> Interesting.  I'm only using Wicket for my AJAX, so are you saying that
> something is wrong with the Wicket AJAX JavaScript?
>
> On 5/19/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> i discovered in my case that this was related to cookie overflow
created
>> by some errant javascript on the page doing ajax callbacks.  it had
>> nothing
>> to do with wicket.  you might try modifying a build of wicket to
diagnose
>> your problem.  i wound up putting some print statements in wicket where
>> sessions are created to dump the jsessionid then finally putting alert
>> statements
>> in the javascript.
>>
>>
>> Andrew Berman wrote:
>> >
>> > I haven't found a solution yet.  I'm still debugging stuff and have
no
>> > solution.  The problem definitely occurs when the initial redirect
>> occurs
>> > from /context to /context/YourHomePage.
>> >
>> > On 5/17/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >>
>> >> Did we find a resolution for this yet?  We are having the same
problem
>> in
>> >> Wicket 1.3 trunk and I'm about to start investigating.  Any definite
>> >> information or conclusions (whether complete or not) would be very
>> much
>> >> appreciated.
>> >>
>> >>
>> >> Andrew Berman wrote:
>> >> >
>> >> > I am having a strange issue.  If I access my site for the first
time
>> (I
>> >> > clear all cookies, sessions, and cache before going to the site),
>> the
>> >> page
>> >> > comes up fine.  However, if I click one of the AJAX links, I get a
>> page
>> >> > expired error.  Any thoughts why this is happening?  I see it
create
>> a
>> >> new
>> >> > session and the cookie, but it looks like the Ajax link is not
valid
>> >> for
>> >> > some reason.  I am using Wicket 1.2.6.  Any thoughts?
>> >> >
>> >> > Thanks for any help,
>> >> >
>> >> > Andrew
>> >> >
>> >> >
>> >>
>>
-
>> >> > This SF.net email is sponsored by DB2 Express
>> >> > Download DB2 Express C - the FREE version of DB2 express and take
>> >> > control of your XML. No limits. Just data. Click to get it now.
>> >> > http://sourceforge.net/powerbar/db2/
>> >> > ___
>> >> > Wicket-user mailing list
>> >> > Wicket-user@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>>
http://www.nabble.com/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10669922
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>>
-
>> >> This SF.net email is sponsored by DB2 Express
>> >> Download DB2 Express C - the FREE version of DB2 express and take
>> >> control of your XML. No limits. Just data. Click to get it now.
>> >> http://sourceforge.net/powerbar/db2/
>> >> ___
>> >> Wicket-user mailing list
>> >> Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >
>> >
>>
-
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. 

Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-19 Thread Andrew Berman

Interesting.  I'm only using Wicket for my AJAX, so are you saying that
something is wrong with the Wicket AJAX JavaScript?

On 5/19/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:




i discovered in my case that this was related to cookie overflow created
by some errant javascript on the page doing ajax callbacks.  it had
nothing
to do with wicket.  you might try modifying a build of wicket to diagnose
your problem.  i wound up putting some print statements in wicket where
sessions are created to dump the jsessionid then finally putting alert
statements
in the javascript.


Andrew Berman wrote:
>
> I haven't found a solution yet.  I'm still debugging stuff and have no
> solution.  The problem definitely occurs when the initial redirect
occurs
> from /context to /context/YourHomePage.
>
> On 5/17/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Did we find a resolution for this yet?  We are having the same problem
in
>> Wicket 1.3 trunk and I'm about to start investigating.  Any definite
>> information or conclusions (whether complete or not) would be very much
>> appreciated.
>>
>>
>> Andrew Berman wrote:
>> >
>> > I am having a strange issue.  If I access my site for the first time
(I
>> > clear all cookies, sessions, and cache before going to the site), the
>> page
>> > comes up fine.  However, if I click one of the AJAX links, I get a
page
>> > expired error.  Any thoughts why this is happening?  I see it create
a
>> new
>> > session and the cookie, but it looks like the Ajax link is not valid
>> for
>> > some reason.  I am using Wicket 1.2.6.  Any thoughts?
>> >
>> > Thanks for any help,
>> >
>> > Andrew
>> >
>> >
>>
-
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10669922
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>>
-
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
>
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context:
http://www.nabble.com/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10700976
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-19 Thread Andrew Berman

I haven't found a solution yet.  I'm still debugging stuff and have no
solution.  The problem definitely occurs when the initial redirect occurs
from /context to /context/YourHomePage.

On 5/17/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:




Did we find a resolution for this yet?  We are having the same problem in
Wicket 1.3 trunk and I'm about to start investigating.  Any definite
information or conclusions (whether complete or not) would be very much
appreciated.


Andrew Berman wrote:
>
> I am having a strange issue.  If I access my site for the first time (I
> clear all cookies, sessions, and cache before going to the site), the
page
> comes up fine.  However, if I click one of the AJAX links, I get a page
> expired error.  Any thoughts why this is happening?  I see it create a
new
> session and the cookie, but it looks like the Ajax link is not valid for
> some reason.  I am using Wicket 1.2.6.  Any thoughts?
>
> Thanks for any help,
>
> Andrew
>
>
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context:
http://www.nabble.com/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10669922
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-16 Thread Andrew Berman

So I've been debugging this pretty extensively now.  I put a breakpoint in
WicketServlet.

1.  On the first request (http://blah.com/context), the session id in the
URL and in the session all match and when I look at the cookie the
jsessionid also matches.
2.  On the last request, the session id is the same as in the first
request.
3.  When all requests are finished, the URL displays the original session
id, BUT the cookie is showing some new session id.  So somehow, the original
cookie is being overwritten with a new cookie which includes a new
jsessionid.

Anyone have any thoughts on this?  A new cookie should not be created when a
redirect occurs, right?  If the URL could change to the new session id this
would also solve the problem.

On 5/16/07, Andrew Berman <[EMAIL PROTECTED]> wrote:


HomePage is the actual page itself.  The mount is just what I mounted in
the Application class using: mount("/app", PackageName.forClass
(getHomePage()));

On 5/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> if your homepage is mounted to /app then the url should be /context/app.
> so where does HomePage come from?
>
> -igor
>
>
> On 5/15/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> >
> > It's mapped to /context/* and the HomePage class is mounted to /app,
> > so the url for the homepage is http://blah.com/context/app/HomePage.
> > Going directly to http://blah.com/context redirects to
> > http://blah.com/context/app/HomePage
> >
> > On 5/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > >
> > > so wicket is mapped to /* but homepage is mounted to /app/homepage?
> > >
> > > -igor
> > >
> > >
> > > On 5/15/07, Andrew Berman < [EMAIL PROTECTED] > wrote:
> > > >
> > > > I'm not doing any redirect using index.html and a meta redirect.
> > > > I just call blah.com/context and Wicket is doing the redirect to
> > > > /app/homepage.  /app is what I use for the mount point.
> > > >
> > > > On 5/15/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > i dont think that is it. jsessionid is only appended when there
> > > > > is a session.
> > > > >
> > > > > when you hit blah.com/context you are probably hitting
> > > > > index.html that does a metaredirect to
> > > > > blah.com/context/app/homepage. so on the first hit to
> > > > > blah.com/context there is no session. now when you hit /app/home
> > > > > a session is created, and cookie is set.
> > > > >
> > > > > -igor
> > > > >
> > > > >
> > > > > On 5/15/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> > > > > >
> > > > > > I'm going to debug it a bit more to see what's going on.  The
> > > > > > jsessionid is not appended to the URL until Wicket performs a 
redirect from
> > > > > > the context to the actual home page (e.g. from
> > > > > > http://blah.com/context redirects to
> > > > > > http://blah.com/context/app/HomePage), so I'm wondering if the
> > > > > > redirect is doing something that's causing Tomcat to think it's a 
new
> > > > > > session, thereby making the jsessionid in the URL not equal the one 
in the
> > > > > > cookie.
> > > > > >
> > > > > > Eelco, I'll take a look at what you're saying too and see if I
> > > > > > can reconfigure Tomcat as well.
> > > > > >
> > > > > > On 5/15/07, Eelco Hillenius < [EMAIL PROTECTED]>
> > > > > > wrote:
> > > > > > >
> > > > > > > Also, sessions are managed by the app server, not by Wicket
> > > > > > > or Spring
> > > > > > > MVC. I had a problem a while ago losing sessions going from
> > > > > > > foo.mydomain.com to bar.mydomain.com, and that only worked
> > > > > > > well when I
> > > > > > > configured Jetty's session manager to use .mydomain.com as
> > > > > > > it's
> > > > > > > session domain. Maybe your problem is similar? Or even if it
> > > > > > > isn't,
> > > > > > > what I'm saying is that it is very unlikely Wicket or any
> > > > > > > other
> > > > > > > framework is the bad guy

Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-16 Thread Andrew Berman

HomePage is the actual page itself.  The mount is just what I mounted in the
Application class using: mount("/app", PackageName.forClass(getHomePage()));

On 5/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


if your homepage is mounted to /app then the url should be /context/app.
so where does HomePage come from?

-igor


On 5/15/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
>
> It's mapped to /context/* and the HomePage class is mounted to /app, so
> the url for the homepage is http://blah.com/context/app/HomePage.  Going
> directly to http://blah.com/context redirects to
> http://blah.com/context/app/HomePage
>
> On 5/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > so wicket is mapped to /* but homepage is mounted to /app/homepage?
> >
> > -igor
> >
> >
> > On 5/15/07, Andrew Berman < [EMAIL PROTECTED] > wrote:
> > >
> > > I'm not doing any redirect using index.html and a meta redirect.  I
> > > just call blah.com/context and Wicket is doing the redirect to
> > > /app/homepage.  /app is what I use for the mount point.
> > >
> > > On 5/15/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > > >
> > > > i dont think that is it. jsessionid is only appended when there is
> > > > a session.
> > > >
> > > > when you hit blah.com/context you are probably hitting index.htmlthat 
does a metaredirect to
> > > > blah.com/context/app/homepage. so on the first hit to
> > > > blah.com/context there is no session. now when you hit /app/home a
> > > > session is created, and cookie is set.
> > > >
> > > > -igor
> > > >
> > > >
> > > > On 5/15/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> > > > >
> > > > > I'm going to debug it a bit more to see what's going on.  The
> > > > > jsessionid is not appended to the URL until Wicket performs a 
redirect from
> > > > > the context to the actual home page (e.g. from
> > > > > http://blah.com/context redirects to
> > > > > http://blah.com/context/app/HomePage), so I'm wondering if the
> > > > > redirect is doing something that's causing Tomcat to think it's a new
> > > > > session, thereby making the jsessionid in the URL not equal the one 
in the
> > > > > cookie.
> > > > >
> > > > > Eelco, I'll take a look at what you're saying too and see if I
> > > > > can reconfigure Tomcat as well.
> > > > >
> > > > > On 5/15/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Also, sessions are managed by the app server, not by Wicket or
> > > > > > Spring
> > > > > > MVC. I had a problem a while ago losing sessions going from
> > > > > > foo.mydomain.com to bar.mydomain.com, and that only worked
> > > > > > well when I
> > > > > > configured Jetty's session manager to use .mydomain.com as
> > > > > > it's
> > > > > > session domain. Maybe your problem is similar? Or even if it
> > > > > > isn't,
> > > > > > what I'm saying is that it is very unlikely Wicket or any
> > > > > > other
> > > > > > framework is the bad guy as Wicket just uses the servlet API
> > > > > > as-is.
> > > > > >
> > > > > > Eelco
> > > > > >
> > > > > >
> > > > > > On 5/15/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > > > > > can you look at the first request if the wicket session is
> > > > > > really
> > > > > > > pushed to the http session (so is the http session created?)
> > > > > > you can
> > > > > > > look at that in the set atribute of the session store
> > > > > > >
> > > > > > > On 5/15/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> > > > > > > > I think I found the crux of the problem.  When you first
> > > > > > go to the app, as
> > > > > > > > I've mentioned, it puts the jsessionid in the URL.  Well,
> > > > > > I compared that
> > > > > > > > sessionid to the one in the cookie created and they are
> > > > > > different!  That has
> > > > > 

Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-15 Thread Andrew Berman

It's mapped to /context/* and the HomePage class is mounted to /app, so the
url for the homepage is http://blah.com/context/app/HomePage.  Going
directly to http://blah.com/context redirects to
http://blah.com/context/app/HomePage

On 5/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


so wicket is mapped to /* but homepage is mounted to /app/homepage?

-igor


On 5/15/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
>
> I'm not doing any redirect using index.html and a meta redirect.  I just
> call blah.com/context and Wicket is doing the redirect to
> /app/homepage.  /app is what I use for the mount point.
>
> On 5/15/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> >
> > i dont think that is it. jsessionid is only appended when there is a
> > session.
> >
> > when you hit blah.com/context you are probably hitting index.html that
> > does a metaredirect to blah.com/context/app/homepage. so on the first
> > hit to blah.com/context there is no session. now when you hit
> > /app/home a session is created, and cookie is set.
> >
> > -igor
> >
> >
> > On 5/15/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> > >
> > > I'm going to debug it a bit more to see what's going on.  The
> > > jsessionid is not appended to the URL until Wicket performs a redirect 
from
> > > the context to the actual home page (e.g. from
> > > http://blah.com/context redirects to
> > > http://blah.com/context/app/HomePage), so I'm wondering if the
> > > redirect is doing something that's causing Tomcat to think it's a new
> > > session, thereby making the jsessionid in the URL not equal the one in the
> > > cookie.
> > >
> > > Eelco, I'll take a look at what you're saying too and see if I can
> > > reconfigure Tomcat as well.
> > >
> > > On 5/15/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> > > >
> > > > Also, sessions are managed by the app server, not by Wicket or
> > > > Spring
> > > > MVC. I had a problem a while ago losing sessions going from
> > > > foo.mydomain.com to bar.mydomain.com, and that only worked well
> > > > when I
> > > > configured Jetty's session manager to use .mydomain.com as it's
> > > > session domain. Maybe your problem is similar? Or even if it
> > > > isn't,
> > > > what I'm saying is that it is very unlikely Wicket or any other
> > > > framework is the bad guy as Wicket just uses the servlet API
> > > > as-is.
> > > >
> > > > Eelco
> > > >
> > > >
> > > > On 5/15/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > > > can you look at the first request if the wicket session is
> > > > really
> > > > > pushed to the http session (so is the http session created?) you
> > > > can
> > > > > look at that in the set atribute of the session store
> > > > >
> > > > > On 5/15/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> > > > > > I think I found the crux of the problem.  When you first go to
> > > > the app, as
> > > > > > I've mentioned, it puts the jsessionid in the URL.  Well, I
> > > > compared that
> > > > > > sessionid to the one in the cookie created and they are
> > > > different!  That has
> > > > > > to be the reason it creates a new session.  Now to figure out
> > > > why it's doing
> > > > > > that.
> > > > > >
> > > > > > On 5/14/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > Spring MVC does put the jsessionid in the URL.  What I don't
> > > > understand is
> > > > > > > that when coming into the Wicket app for the first time, it
> > > > goes to the
> > > > > > home
> > > > > > > page fine with the jsessionid in the URL, and then I click
> > > > any link and
> > > > > > all
> > > > > > > session attributes are gone.  Literally a brand new session
> > > > is created no
> > > > > > > matter what link I click.  However, once I click that next
> > > > link, all is
> > > > > > fine
> > > > > > > and that second new session is the one that is used.  Just
> > > > doesn't make
> > > > 

Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-15 Thread Andrew Berman

I'm not doing any redirect using index.html and a meta redirect.  I just
call blah.com/context and Wicket is doing the redirect to /app/homepage.
/app is what I use for the mount point.

On 5/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


i dont think that is it. jsessionid is only appended when there is a
session.

when you hit blah.com/context you are probably hitting index.html that
does a metaredirect to blah.com/context/app/homepage. so on the first hit
to blah.com/context there is no session. now when you hit /app/home a
session is created, and cookie is set.

-igor


On 5/15/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
>
> I'm going to debug it a bit more to see what's going on.  The jsessionid
> is not appended to the URL until Wicket performs a redirect from the context
> to the actual home page (e.g. from http://blah.com/context redirects to
> http://blah.com/context/app/HomePage), so I'm wondering if the redirect
> is doing something that's causing Tomcat to think it's a new session,
> thereby making the jsessionid in the URL not equal the one in the cookie.
>
> Eelco, I'll take a look at what you're saying too and see if I can
> reconfigure Tomcat as well.
>
> On 5/15/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> >
> > Also, sessions are managed by the app server, not by Wicket or Spring
> > MVC. I had a problem a while ago losing sessions going from
> > foo.mydomain.com to bar.mydomain.com, and that only worked well when I
> > configured Jetty's session manager to use .mydomain.com as it's
> > session domain. Maybe your problem is similar? Or even if it isn't,
> > what I'm saying is that it is very unlikely Wicket or any other
> > framework is the bad guy as Wicket just uses the servlet API as-is.
> >
> > Eelco
> >
> >
> > On 5/15/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > can you look at the first request if the wicket session is really
> > > pushed to the http session (so is the http session created?) you can
> >
> > > look at that in the set atribute of the session store
> > >
> > > On 5/15/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> > > > I think I found the crux of the problem.  When you first go to the
> > app, as
> > > > I've mentioned, it puts the jsessionid in the URL.  Well, I
> > compared that
> > > > sessionid to the one in the cookie created and they are
> > different!  That has
> > > > to be the reason it creates a new session.  Now to figure out why
> > it's doing
> > > > that.
> > > >
> > > > On 5/14/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Spring MVC does put the jsessionid in the URL.  What I don't
> > understand is
> > > > > that when coming into the Wicket app for the first time, it goes
> > to the
> > > > home
> > > > > page fine with the jsessionid in the URL, and then I click any
> > link and
> > > > all
> > > > > session attributes are gone.  Literally a brand new session is
> > created no
> > > > > matter what link I click.  However, once I click that next link,
> > all is
> > > > fine
> > > > > and that second new session is the one that is used.  Just
> > doesn't make
> > > > any
> > > > > sense.
> > > > >
> > > > > On 5/14/07, Eelco Hillenius <[EMAIL PROTECTED] > wrote:
> > > > > >
> > > > > > > Definitely not what I want, but it's the only thing that
> > > > > > works.  There's
> > > > > > > clearly a problem in how Wicket is getting the session from
> > the
> > > > > > cookie.  My
> > > > > > > Spring MVC app which uses the same WAR has no issues pulling
> > the
> > > > > > session
> > > > > > > info.
> > > > > >
> > > > > > I don't really understand the problem though. Like Johan said,
> > the
> > > > > > first time a persistent session is made, Tomcat puts the
> > session id in
> > > > > > the URL as it doesn't know yet whether it can rely on cookies
> > (if I
> > > > > > understand correctly). Spring MVC might not do that for the
> > particular
> > > > > > things you test it for as it doesn't create a session? If you
> > would
> > > > > > use stateless pag

Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-15 Thread Andrew Berman

I'm going to debug it a bit more to see what's going on.  The jsessionid is
not appended to the URL until Wicket performs a redirect from the context to
the actual home page (e.g. from http://blah.com/context redirects to
http://blah.com/context/app/HomePage), so I'm wondering if the redirect is
doing something that's causing Tomcat to think it's a new session, thereby
making the jsessionid in the URL not equal the one in the cookie.

Eelco, I'll take a look at what you're saying too and see if I can
reconfigure Tomcat as well.

On 5/15/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


Also, sessions are managed by the app server, not by Wicket or Spring
MVC. I had a problem a while ago losing sessions going from
foo.mydomain.com to bar.mydomain.com, and that only worked well when I
configured Jetty's session manager to use .mydomain.com as it's
session domain. Maybe your problem is similar? Or even if it isn't,
what I'm saying is that it is very unlikely Wicket or any other
framework is the bad guy as Wicket just uses the servlet API as-is.

Eelco


On 5/15/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> can you look at the first request if the wicket session is really
> pushed to the http session (so is the http session created?) you can
> look at that in the set atribute of the session store
>
> On 5/15/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> > I think I found the crux of the problem.  When you first go to the
app, as
> > I've mentioned, it puts the jsessionid in the URL.  Well, I compared
that
> > sessionid to the one in the cookie created and they are
different!  That has
> > to be the reason it creates a new session.  Now to figure out why it's
doing
> > that.
> >
> > On 5/14/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> > >
> > > Spring MVC does put the jsessionid in the URL.  What I don't
understand is
> > > that when coming into the Wicket app for the first time, it goes to
the
> > home
> > > page fine with the jsessionid in the URL, and then I click any link
and
> > all
> > > session attributes are gone.  Literally a brand new session is
created no
> > > matter what link I click.  However, once I click that next link, all
is
> > fine
> > > and that second new session is the one that is used.  Just doesn't
make
> > any
> > > sense.
> > >
> > > On 5/14/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > Definitely not what I want, but it's the only thing that
> > > > works.  There's
> > > > > clearly a problem in how Wicket is getting the session from the
> > > > cookie.  My
> > > > > Spring MVC app which uses the same WAR has no issues pulling the
> > > > session
> > > > > info.
> > > >
> > > > I don't really understand the problem though. Like Johan said, the
> > > > first time a persistent session is made, Tomcat puts the session
id in
> > > > the URL as it doesn't know yet whether it can rely on cookies (if
I
> > > > understand correctly). Spring MVC might not do that for the
particular
> > > > things you test it for as it doesn't create a session? If you
would
> > > > use stateless pages Wicket wouldn't either.
> > > >
> > > > Anyway, there have been discussions about jsessionid on the lists
> > > > before, and typically it was from people worrying it would mess up
> > > > search bots etc. If you are worried about that, don't, as bots can
> > > > filter it. Also, the url is stable as it is not part of the
parameters
> > > > part (which comes after the question mark). It's a universal Java
app
> > > > server thingy, and Wicket has nothing to do with it other than it
> > > > probably relies on the HttpSession sooner than e.g. model 2
> > > > frameworks.
> > > >
> > > > Eelco
> > > >
> > > >
> > > >
> >
-
> > > > This SF.net email is sponsored by DB2 Express
> > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > control of your XML. No limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
&

Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-14 Thread Andrew Berman

I think I found the crux of the problem.  When you first go to the app, as
I've mentioned, it puts the jsessionid in the URL.  Well, I compared that
sessionid to the one in the cookie created and they are different!  That has
to be the reason it creates a new session.  Now to figure out why it's doing
that.

On 5/14/07, Andrew Berman <[EMAIL PROTECTED]> wrote:


Spring MVC does put the jsessionid in the URL.  What I don't understand is
that when coming into the Wicket app for the first time, it goes to the home
page fine with the jsessionid in the URL, and then I click any link and all
session attributes are gone.  Literally a brand new session is created no
matter what link I click.  However, once I click that next link, all is fine
and that second new session is the one that is used.  Just doesn't make any
sense.

On 5/14/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> > Definitely not what I want, but it's the only thing that
> works.  There's
> > clearly a problem in how Wicket is getting the session from the
> cookie.  My
> > Spring MVC app which uses the same WAR has no issues pulling the
> session
> > info.
>
> I don't really understand the problem though. Like Johan said, the
> first time a persistent session is made, Tomcat puts the session id in
> the URL as it doesn't know yet whether it can rely on cookies (if I
> understand correctly). Spring MVC might not do that for the particular
> things you test it for as it doesn't create a session? If you would
> use stateless pages Wicket wouldn't either.
>
> Anyway, there have been discussions about jsessionid on the lists
> before, and typically it was from people worrying it would mess up
> search bots etc. If you are worried about that, don't, as bots can
> filter it. Also, the url is stable as it is not part of the parameters
> part (which comes after the question mark). It's a universal Java app
> server thingy, and Wicket has nothing to do with it other than it
> probably relies on the HttpSession sooner than e.g. model 2
> frameworks.
>
> Eelco
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-14 Thread Andrew Berman

Spring MVC does put the jsessionid in the URL.  What I don't understand is
that when coming into the Wicket app for the first time, it goes to the home
page fine with the jsessionid in the URL, and then I click any link and all
session attributes are gone.  Literally a brand new session is created no
matter what link I click.  However, once I click that next link, all is fine
and that second new session is the one that is used.  Just doesn't make any
sense.

On 5/14/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> Definitely not what I want, but it's the only thing that works.  There's
> clearly a problem in how Wicket is getting the session from the
cookie.  My
> Spring MVC app which uses the same WAR has no issues pulling the session
> info.

I don't really understand the problem though. Like Johan said, the
first time a persistent session is made, Tomcat puts the session id in
the URL as it doesn't know yet whether it can rely on cookies (if I
understand correctly). Spring MVC might not do that for the particular
things you test it for as it doesn't create a session? If you would
use stateless pages Wicket wouldn't either.

Anyway, there have been discussions about jsessionid on the lists
before, and typically it was from people worrying it would mess up
search bots etc. If you are worried about that, don't, as bots can
filter it. Also, the url is stable as it is not part of the parameters
part (which comes after the question mark). It's a universal Java app
server thingy, and Wicket has nothing to do with it other than it
probably relies on the HttpSession sooner than e.g. model 2
frameworks.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-14 Thread Andrew Berman

Definitely not what I want, but it's the only thing that works.  There's
clearly a problem in how Wicket is getting the session from the cookie.  My
Spring MVC app which uses the same WAR has no issues pulling the session
info.

On 5/14/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


On 5/14/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> Ok, if I paste the jsessionid into the URL for the second request, all
works
> well.  ON the third request, it works fine without pasting the
jsessionid.
> How can I append the jsessionid to all requests?

Turn cookie support off at your servlet container. Probably not really
what you want, but that should force it for every request.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-14 Thread Andrew Berman

Ok, well the only solution I've found is to disable cookies in Tomcat.
Works as desired, but the jsessionid is in every url.

On 5/14/07, Andrew Berman <[EMAIL PROTECTED]> wrote:


Ok, if I paste the jsessionid into the URL for the second request, all
works well.  ON the third request, it works fine without pasting the
jsessionid.  How can I append the jsessionid to all requests?

On 5/14/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
>
> I've debugged in DefaultRequestTargetResolverStrategy, particularly line
> 214-215.  It looks like when it hits line 214, it's clearly using a brand
> new session which has none of the information that the original session was
> holding.  Then when it calls Session.getPage(...), it yields a null and
> hence hits the ExpiredPageClassRequestTarget code.  So, for some reason a
> new session is being created and this seems to be the problem.  Could it be
> what Igor said that the AJAX links don't have the jsessionid in them and
> this is why it's losing the original session?
>
> On 5/14/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> >
> > There is no WebRequestCycleProcessor class in Wicket 1.2.6.
> >
> > On 5/14/07, Johan Compagner < [EMAIL PROTECTED] > wrote:
> > >
> > > place a breakpoint in: WebRequestCycleProcessor
> > > and then line 78: boolean processRequest = true;
> > >
> > > then look what happens the code should go into: target =
> > > resolveRenderedPage(requestCycle, requestParameters); (line 137)
> > >
> > > Then Session.getPage() is called and that should also return the
> > > page..
> > >
> > > johan
> > >
> > >
> > > On 5/14/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> > > >
> > > > I'm willing to try anything to try to workaround or fix this
> > > > problem.  Does anyone have any suggestions where I should start looking 
or
> > > > playing around in the Wicket code to figure out possibly what is going 
on?
> > > >
> > > > On 5/13/07, Jonathan Locke <[EMAIL PROTECTED] > wrote:
> > > > >
> > > > >
> > > > >
> > > > > we're getting some issue like this too and on only one server.
> > > > >
> > > > >
> > > > > Eelco Hillenius wrote:
> > > > > >
> > > > > > Are you working on multiple servers?
> > > > > >
> > > > > > On 5/12/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> > > > > >> Igor, Eelco, anyone?  This issue is pretty major as I'm
> > > > > losing all the
> > > > > >> session info when they first come into the app
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> On 5/11/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> > > > > >> > Could there be an issue with the PageMap?
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> > > > > >> > > I am having a strange issue.  If I access my site for the
> > > > > first time
> > > > > >> (I
> > > > > >> clear all cookies, sessions, and cache before going to the
> > > > > site), the
> > > > > >> page
> > > > > >> comes up fine.  However, if I click one of the AJAX links, I
> > > > > get a page
> > > > > >> expired error.  Any thoughts why this is happening?  I see it
> > > > > create a
> > > > > >> new
> > > > > >> session and the cookie, but it looks like the Ajax link is
> > > > > not valid for
> > > > > >> some reason.  I am using Wicket 1.2.6.  Any thoughts?
> > > > > >> > >
> > > > > >> > > Thanks for any help,
> > > > > >> > >
> > > > > >> > > Andrew
> > > > > >> > >
> > > > > >> >
> > > > > >> >
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > 
-
> > > > > >> This SF.net email is sponsored by D

Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-14 Thread Andrew Berman

Ok, if I paste the jsessionid into the URL for the second request, all works
well.  ON the third request, it works fine without pasting the jsessionid.
How can I append the jsessionid to all requests?

On 5/14/07, Andrew Berman <[EMAIL PROTECTED]> wrote:


I've debugged in DefaultRequestTargetResolverStrategy, particularly line
214-215.  It looks like when it hits line 214, it's clearly using a brand
new session which has none of the information that the original session was
holding.  Then when it calls Session.getPage(...), it yields a null and
hence hits the ExpiredPageClassRequestTarget code.  So, for some reason a
new session is being created and this seems to be the problem.  Could it be
what Igor said that the AJAX links don't have the jsessionid in them and
this is why it's losing the original session?

On 5/14/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
>
> There is no WebRequestCycleProcessor class in Wicket 1.2.6.
>
> On 5/14/07, Johan Compagner < [EMAIL PROTECTED] > wrote:
> >
> > place a breakpoint in: WebRequestCycleProcessor
> > and then line 78: boolean processRequest = true;
> >
> > then look what happens the code should go into: target =
> > resolveRenderedPage(requestCycle, requestParameters); (line 137)
> >
> > Then Session.getPage() is called and that should also return the
> > page..
> >
> > johan
> >
> >
> > On 5/14/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> > >
> > > I'm willing to try anything to try to workaround or fix this
> > > problem.  Does anyone have any suggestions where I should start looking or
> > > playing around in the Wicket code to figure out possibly what is going on?
> > >
> > > On 5/13/07, Jonathan Locke <[EMAIL PROTECTED] > wrote:
> > > >
> > > >
> > > >
> > > > we're getting some issue like this too and on only one server.
> > > >
> > > >
> > > > Eelco Hillenius wrote:
> > > > >
> > > > > Are you working on multiple servers?
> > > > >
> > > > > On 5/12/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> > > > >> Igor, Eelco, anyone?  This issue is pretty major as I'm losing
> > > > all the
> > > > >> session info when they first come into the app
> > > > >>
> > > > >>
> > > > >>
> > > > >> On 5/11/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> > > > >> > Could there be an issue with the PageMap?
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> > > > >> > > I am having a strange issue.  If I access my site for the
> > > > first time
> > > > >> (I
> > > > >> clear all cookies, sessions, and cache before going to the
> > > > site), the
> > > > >> page
> > > > >> comes up fine.  However, if I click one of the AJAX links, I
> > > > get a page
> > > > >> expired error.  Any thoughts why this is happening?  I see it
> > > > create a
> > > > >> new
> > > > >> session and the cookie, but it looks like the Ajax link is not
> > > > valid for
> > > > >> some reason.  I am using Wicket 1.2.6.  Any thoughts?
> > > > >> > >
> > > > >> > > Thanks for any help,
> > > > >> > >
> > > > >> > > Andrew
> > > > >> > >
> > > > >> >
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > 
-
> > > > >> This SF.net email is sponsored by DB2 Express
> > > > >> Download DB2 Express C - the FREE version of DB2 express and
> > > > take
> > > > >> control of your XML. No limits. Just data. Click to get it now.
> > > > >> http://sourceforge.net/powerbar/db2/
> > > > >> ___
> > > > >> Wicket-user mailing list
> > > > >> Wicket-user@lists.sourceforge.net
> > > > >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >>
> > > > >>
> > > > >
> > > > &

Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-14 Thread Andrew Berman

I've debugged in DefaultRequestTargetResolverStrategy, particularly line
214-215.  It looks like when it hits line 214, it's clearly using a brand
new session which has none of the information that the original session was
holding.  Then when it calls Session.getPage(...), it yields a null and
hence hits the ExpiredPageClassRequestTarget code.  So, for some reason a
new session is being created and this seems to be the problem.  Could it be
what Igor said that the AJAX links don't have the jsessionid in them and
this is why it's losing the original session?

On 5/14/07, Andrew Berman <[EMAIL PROTECTED]> wrote:


There is no WebRequestCycleProcessor class in Wicket 1.2.6.

On 5/14/07, Johan Compagner <[EMAIL PROTECTED] > wrote:
>
> place a breakpoint in: WebRequestCycleProcessor
> and then line 78: boolean processRequest = true;
>
> then look what happens the code should go into: target =
> resolveRenderedPage(requestCycle, requestParameters); (line 137)
>
> Then Session.getPage() is called and that should also return the page..
>
> johan
>
>
> On 5/14/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> >
> > I'm willing to try anything to try to workaround or fix this problem.
> > Does anyone have any suggestions where I should start looking or playing
> > around in the Wicket code to figure out possibly what is going on?
> >
> > On 5/13/07, Jonathan Locke <[EMAIL PROTECTED] > wrote:
> > >
> > >
> > >
> > > we're getting some issue like this too and on only one server.
> > >
> > >
> > > Eelco Hillenius wrote:
> > > >
> > > > Are you working on multiple servers?
> > > >
> > > > On 5/12/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> > > >> Igor, Eelco, anyone?  This issue is pretty major as I'm losing
> > > all the
> > > >> session info when they first come into the app
> > > >>
> > > >>
> > > >>
> > > >> On 5/11/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> > > >> > Could there be an issue with the PageMap?
> > > >> >
> > > >> >
> > > >> >
> > > >> > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> > > >> > > I am having a strange issue.  If I access my site for the
> > > first time
> > > >> (I
> > > >> clear all cookies, sessions, and cache before going to the site),
> > > the
> > > >> page
> > > >> comes up fine.  However, if I click one of the AJAX links, I get
> > > a page
> > > >> expired error.  Any thoughts why this is happening?  I see it
> > > create a
> > > >> new
> > > >> session and the cookie, but it looks like the Ajax link is not
> > > valid for
> > > >> some reason.  I am using Wicket 1.2.6.  Any thoughts?
> > > >> > >
> > > >> > > Thanks for any help,
> > > >> > >
> > > >> > > Andrew
> > > >> > >
> > > >> >
> > > >> >
> > > >>
> > > >>
> > > >>
> > > -
> > > >> This SF.net email is sponsored by DB2 Express
> > > >> Download DB2 Express C - the FREE version of DB2 express and take
> > > >> control of your XML. No limits. Just data. Click to get it now.
> > > >> http://sourceforge.net/powerbar/db2/
> > > >> ___
> > > >> Wicket-user mailing list
> > > >> Wicket-user@lists.sourceforge.net
> > > >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >>
> > > >>
> > > >
> > > >
> > > -
> > > > This SF.net email is sponsored by DB2 Express
> > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > control of your XML. No limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > > >
> > >
> >

Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-14 Thread Andrew Berman

There is no WebRequestCycleProcessor class in Wicket 1.2.6.

On 5/14/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


place a breakpoint in: WebRequestCycleProcessor
and then line 78: boolean processRequest = true;

then look what happens the code should go into: target =
resolveRenderedPage(requestCycle, requestParameters); (line 137)

Then Session.getPage() is called and that should also return the page..

johan


On 5/14/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
>
> I'm willing to try anything to try to workaround or fix this problem.
> Does anyone have any suggestions where I should start looking or playing
> around in the Wicket code to figure out possibly what is going on?
>
> On 5/13/07, Jonathan Locke <[EMAIL PROTECTED] > wrote:
> >
> >
> >
> > we're getting some issue like this too and on only one server.
> >
> >
> > Eelco Hillenius wrote:
> > >
> > > Are you working on multiple servers?
> > >
> > > On 5/12/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> > >> Igor, Eelco, anyone?  This issue is pretty major as I'm losing all
> > the
> > >> session info when they first come into the app
> > >>
> > >>
> > >>
> > >> On 5/11/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> > >> > Could there be an issue with the PageMap?
> > >> >
> > >> >
> > >> >
> > >> > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> > >> > > I am having a strange issue.  If I access my site for the first
> > time
> > >> (I
> > >> clear all cookies, sessions, and cache before going to the site),
> > the
> > >> page
> > >> comes up fine.  However, if I click one of the AJAX links, I get a
> > page
> > >> expired error.  Any thoughts why this is happening?  I see it
> > create a
> > >> new
> > >> session and the cookie, but it looks like the Ajax link is not
> > valid for
> > >> some reason.  I am using Wicket 1.2.6.  Any thoughts?
> > >> > >
> > >> > > Thanks for any help,
> > >> > >
> > >> > > Andrew
> > >> > >
> > >> >
> > >> >
> > >>
> > >>
> > >>
> > -
> > >> This SF.net email is sponsored by DB2 Express
> > >> Download DB2 Express C - the FREE version of DB2 express and take
> > >> control of your XML. No limits. Just data. Click to get it now.
> > >> http://sourceforge.net/powerbar/db2/
> > >> ___
> > >> Wicket-user mailing list
> > >> Wicket-user@lists.sourceforge.net
> > >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >>
> > >>
> > >
> > >
> > -
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> > --
> > View this message in context:
> > 
http://www.nabble.com/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10457848
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> >
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click 

Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-14 Thread Andrew Berman

I'm willing to try anything to try to workaround or fix this problem.  Does
anyone have any suggestions where I should start looking or playing around
in the Wicket code to figure out possibly what is going on?

On 5/13/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:




we're getting some issue like this too and on only one server.


Eelco Hillenius wrote:
>
> Are you working on multiple servers?
>
> On 5/12/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
>> Igor, Eelco, anyone?  This issue is pretty major as I'm losing all the
>> session info when they first come into the app
>>
>>
>>
>> On 5/11/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
>> > Could there be an issue with the PageMap?
>> >
>> >
>> >
>> > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
>> > > I am having a strange issue.  If I access my site for the first
time
>> (I
>> clear all cookies, sessions, and cache before going to the site), the
>> page
>> comes up fine.  However, if I click one of the AJAX links, I get a page
>> expired error.  Any thoughts why this is happening?  I see it create a
>> new
>> session and the cookie, but it looks like the Ajax link is not valid
for
>> some reason.  I am using Wicket 1.2.6.  Any thoughts?
>> > >
>> > > Thanks for any help,
>> > >
>> > > Andrew
>> > >
>> >
>> >
>>
>>
>>
-
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>
>
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context:
http://www.nabble.com/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10457848
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-13 Thread Andrew Berman

I've been trying to debug, but am not sure what to really look for.  No, I
do not get the same session.  One is definitely created on the first request
and then I see another one created on the second request.

On 5/13/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


can you debug it some how?
Can you figure out why the page is not found?
Do you get the second time the same httpsession (that should be created on
the first request)

johan

On 5/13/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
>
> There's two things here:
>
> 1.  When I click the Ajax link and it doesn't work and the page
> redirects to the home page, the links are exactly the same
> 2.  When I do a refresh on the browser, the Ajax links are different and
> there is no jsessionid in the url in the browser.
>
> Is this the same problem you posted about?  Is there any workaround
> right now?
>
> On 5/12/07, Johan Compagner < [EMAIL PROTECTED]> wrote:
>
> > that really looks at the problem i already posted to the dev  list,
> > can you compare the pages before and after you refresh the page? look
> > at the urls
> >
> > On 5/12/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> > > Hey Guys,
> > >
> > > Thanks for your replies.
> > >
> > > James:  I'll try what you are talking about and see if that fixes
> > the
> > > problem.  I hope it does
> > >
> > > Eelco:  No multiple servers.  I am able to replicate the issue on my
> > local
> > > machine as well.
> > >
> > > Johan:  The url coming in is http://localhost/consumer which Wicket
> > auto
> > > redirects to /consumer/app/HomePage.  However, even if I use the
> > full URL of
> > > /consumer/app/HomePage, I still get the issue.
> > >
> > > You can actually see the issue in action if you go to
> > > http://www.cellphonetradeins.com and click, for example, the Cell
> > Phones
> > > link on the side.  I set the PageExpired page to be the home page,
> > so the
> > > page simply refreshes or doesn't work at all.  However, when you
> > reload the
> > > page and then click the link, it works as desired.  So basically,
> > all AJAX
> > > links and buttons fail when you first go to the site when you have
> > no
> > > cache.  You can continue to replicate the issue if you keep clearing
> > your
> > > cache and then go to the site again.
> > >
> > > Thanks again for your help,
> > >
> > > Andrew
> > >
> > > On 5/12/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > >
> > > > what is your url you are comming into your app?
> > > > do you redirect then? What is the final url?
> > > >
> > > > johan
> > > >
> > > >
> > > > On 5/12/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> > > >
> > > > > Igor, Eelco, anyone?  This issue is pretty major as I'm losing
> > all the
> > > > > session info when they first come into the app
> > > > >
> > > > > On 5/11/07, Andrew Berman < [EMAIL PROTECTED] > wrote:
> > > > > >
> > > > > > Could there be an issue with the PageMap?
> > > > > >
> > > > > > On 5/11/07, Andrew Berman < [EMAIL PROTECTED] > wrote:
> > > > > > >
> > > > > > > I am having a strange issue.  If I access my site for the
> > first time
> > > > > > > (I clear all cookies, sessions, and cache before going to
> > the site),
> > > the
> > > > > > > page comes up fine.  However, if I click one of the AJAX
> > links, I
> > > get a page
> > > > > > > expired error.  Any thoughts why this is happening?  I see
> > it create
> > > a new
> > > > > > > session and the cookie, but it looks like the Ajax link is
> > not valid
> > > for
> > > > > > > some reason.  I am using Wicket 1.2.6.  Any thoughts?
> > > > > > >
> > > > > > > Thanks for any help,
> > > > > > >
> > > > > > > Andrew
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > >
> > -
> > > > > This SF.net email is sponsored by DB2 Express
> > 

Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-12 Thread Andrew Berman

There's two things here:

1.  When I click the Ajax link and it doesn't work and the page redirects to
the home page, the links are exactly the same
2.  When I do a refresh on the browser, the Ajax links are different and
there is no jsessionid in the url in the browser.

Is this the same problem you posted about?  Is there any workaround right
now?

On 5/12/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


that really looks at the problem i already posted to the dev  list,
can you compare the pages before and after you refresh the page? look
at the urls

On 5/12/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> Hey Guys,
>
> Thanks for your replies.
>
> James:  I'll try what you are talking about and see if that fixes the
> problem.  I hope it does
>
> Eelco:  No multiple servers.  I am able to replicate the issue on my
local
> machine as well.
>
> Johan:  The url coming in is http://localhost/consumer which Wicket auto
> redirects to /consumer/app/HomePage.  However, even if I use the full
URL of
> /consumer/app/HomePage, I still get the issue.
>
> You can actually see the issue in action if you go to
> http://www.cellphonetradeins.com and click, for example, the Cell Phones
> link on the side.  I set the PageExpired page to be the home page, so
the
> page simply refreshes or doesn't work at all.  However, when you reload
the
> page and then click the link, it works as desired.  So basically, all
AJAX
> links and buttons fail when you first go to the site when you have no
> cache.  You can continue to replicate the issue if you keep clearing
your
> cache and then go to the site again.
>
> Thanks again for your help,
>
> Andrew
>
> On 5/12/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> >
> > what is your url you are comming into your app?
> > do you redirect then? What is the final url?
> >
> > johan
> >
> >
> > On 5/12/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> >
> > > Igor, Eelco, anyone?  This issue is pretty major as I'm losing all
the
> > > session info when they first come into the app
> > >
> > > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> > > >
> > > > Could there be an issue with the PageMap?
> > > >
> > > > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> > > > >
> > > > > I am having a strange issue.  If I access my site for the first
time
> > > > > (I clear all cookies, sessions, and cache before going to the
site),
> the
> > > > > page comes up fine.  However, if I click one of the AJAX links,
I
> get a page
> > > > > expired error.  Any thoughts why this is happening?  I see it
create
> a new
> > > > > session and the cookie, but it looks like the Ajax link is not
valid
> for
> > > > > some reason.  I am using Wicket 1.2.6.  Any thoughts?
> > > > >
> > > > > Thanks for any help,
> > > > >
> > > > > Andrew
> > > > >
> > > >
> > > >
> > >
> > >
> > >
>
-
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
-
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-12 Thread Andrew Berman

Hey Guys,

Thanks for your replies.

James:  I'll try what you are talking about and see if that fixes the
problem.  I hope it does

Eelco:  No multiple servers.  I am able to replicate the issue on my local
machine as well.

Johan:  The url coming in is http://localhost/consumer which Wicket auto
redirects to /consumer/app/HomePage.  However, even if I use the full URL of
/consumer/app/HomePage, I still get the issue.

You can actually see the issue in action if you go to
http://www.cellphonetradeins.com and click, for example, the Cell Phones
link on the side.  I set the PageExpired page to be the home page, so the
page simply refreshes or doesn't work at all.  However, when you reload the
page and then click the link, it works as desired.  So basically, all AJAX
links and buttons fail when you first go to the site when you have no
cache.  You can continue to replicate the issue if you keep clearing your
cache and then go to the site again.

Thanks again for your help,

Andrew

On 5/12/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


what is your url you are comming into your app?
do you redirect then? What is the final url?

johan


On 5/12/07, Andrew Berman < [EMAIL PROTECTED]> wrote:

> Igor, Eelco, anyone?  This issue is pretty major as I'm losing all the
> session info when they first come into the app....
>
> On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> >
> > Could there be an issue with the PageMap?
> >
> > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote:
> > >
> > > I am having a strange issue.  If I access my site for the first time
> > > (I clear all cookies, sessions, and cache before going to the site), the
> > > page comes up fine.  However, if I click one of the AJAX links, I get a 
page
> > > expired error.  Any thoughts why this is happening?  I see it create a new
> > > session and the cookie, but it looks like the Ajax link is not valid for
> > > some reason.  I am using Wicket 1.2.6.  Any thoughts?
> > >
> > > Thanks for any help,
> > >
> > > Andrew
> > >
> >
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-11 Thread Andrew Berman

Igor, Eelco, anyone?  This issue is pretty major as I'm losing all the
session info when they first come into the app

On 5/11/07, Andrew Berman <[EMAIL PROTECTED]> wrote:


Could there be an issue with the PageMap?

On 5/11/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
>
> I am having a strange issue.  If I access my site for the first time (I
> clear all cookies, sessions, and cache before going to the site), the page
> comes up fine.  However, if I click one of the AJAX links, I get a page
> expired error.  Any thoughts why this is happening?  I see it create a new
> session and the cookie, but it looks like the Ajax link is not valid for
> some reason.  I am using Wicket 1.2.6.  Any thoughts?
>
> Thanks for any help,
>
> Andrew
>


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-11 Thread Andrew Berman

Could there be an issue with the PageMap?

On 5/11/07, Andrew Berman <[EMAIL PROTECTED]> wrote:


I am having a strange issue.  If I access my site for the first time (I
clear all cookies, sessions, and cache before going to the site), the page
comes up fine.  However, if I click one of the AJAX links, I get a page
expired error.  Any thoughts why this is happening?  I see it create a new
session and the cookie, but it looks like the Ajax link is not valid for
some reason.  I am using Wicket 1.2.6.  Any thoughts?

Thanks for any help,

Andrew

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Page Expiration when first clicking AJAX

2007-05-11 Thread Andrew Berman

I am having a strange issue.  If I access my site for the first time (I
clear all cookies, sessions, and cache before going to the site), the page
comes up fine.  However, if I click one of the AJAX links, I get a page
expired error.  Any thoughts why this is happening?  I see it create a new
session and the cookie, but it looks like the Ajax link is not valid for
some reason.  I am using Wicket 1.2.6.  Any thoughts?

Thanks for any help,

Andrew
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2.6 Yielding ClassCastException

2007-05-02 Thread Andrew Berman

https://issues.apache.org/jira/browse/WICKET-524

On 5/2/07, Andrew Berman <[EMAIL PROTECTED]> wrote:


I am using CryptedUrlWebRequestCodingStrategy by the way

On 5/2/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of
> WebRequestCodingStrategy.  When it calls 
request.getParameter(BEHAVIOR_ID_PARAMETER_NAME)
> it is expecting a String, but it is returning a String array so I get a
> classcastexception.  As a result, I cannot use 1.2.6
>
> --Andrew
>


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2.6 Yielding ClassCastException

2007-05-02 Thread Andrew Berman

I am using CryptedUrlWebRequestCodingStrategy by the way

On 5/2/07, Andrew Berman <[EMAIL PROTECTED]> wrote:


Hello,

I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of
WebRequestCodingStrategy.  When it calls 
request.getParameter(BEHAVIOR_ID_PARAMETER_NAME)
it is expecting a String, but it is returning a String array so I get a
classcastexception.  As a result, I cannot use 1.2.6

--Andrew

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket 1.2.6 Yielding ClassCastException

2007-05-02 Thread Andrew Berman

Hello,

I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of
WebRequestCodingStrategy.  When it calls
request.getParameter(BEHAVIOR_ID_PARAMETER_NAME)
it is expecting a String, but it is returning a String array so I get a
classcastexception.  As a result, I cannot use 1.2.6

--Andrew
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Variable Interpolation within the HTML

2007-03-28 Thread Andrew Berman

Awesome, builds now.

Thanks,

Andrew

On 3/28/07, James McLaughlin <[EMAIL PROTECTED]> wrote:


Are you using mvn to build? I changed the wicket dependency in the
WICKET_1_2 branch from SNAPSHOT to 1.2.5, so maybe this will help you.
Let me know if it doesn't.

best,
jim

On 3/27/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> Can this only be built against version 1.3 of Wicket?  I'm unable to
build
> it against 1.2.5  I also checked out the code form
>
https://svn.sourceforge.net/svnroot/wicket-stuff/branches/WICKET_1_2/wicket-contrib-velocity/
> and couldn't get it to build either.  How do I get this to work?
>
> Thanks.
>
>
> On 3/20/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> > Cool, thanks guys, I'll check both options out.
> >
> >
> >
> > On 3/20/07, Eelco Hillenius < [EMAIL PROTECTED] > wrote:
> > > Alternatively, you could use post processing filters for that. Can't
> > > remember the exact name from the top of my head.
> > >
> > > Eelco
> > >
> > >
> > > On 3/20/07, James McLaughlin < [EMAIL PROTECTED]> wrote:
> > > > On 3/20/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> > > > > I have a use case where the text of the a page can change
depending
> on the
> > > > > skin that is selected.  There is some dynamic text in the
original
> text,
> > > > > such as website name, which also changes depending on skin.
> However,
> > > > > currently I have added a fixed number of Label objects to deal
with
> the
> > > > > website name, but this doesn't really work because the text of
the
> page
> > > > > might need more instances of the website name.  I can't
dynamically
> add more
> > > > > Label objects, so I was wondering how I could do something like
> Velocity
> > > > > where I can put ${websiteName} in the HTML for a page or panel,
set
> the
> > > > > variable in the page, and have it rendered properly.  I saw that
> Wicket
> > > > > includes MapVariableInterpolator but how do I do it with the
HTML
> for the
> > > > > page?  I don't want to specify a filename because the filename
is
> dependent
> > > > > on the style/skin.
> > > > >
> > > >
> > > > wicket-contrib-velocity provides exactly what you want
> > > >
> > > > you can get it here with subversion:
> > > >
>
https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-velocity
> > > >
> > > >
>
-
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> > > > opinions on IT & business topics through brief surveys-and earn
cash
> > > >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
>
-
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > > opinions on IT & business topics through brief surveys-and earn cash
> > >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-

Re: [Wicket-user] Variable Interpolation within the HTML

2007-03-27 Thread Andrew Berman

Can this only be built against version 1.3 of Wicket?  I'm unable to build
it against 1.2.5  I also checked out the code form
https://svn.sourceforge.net/svnroot/wicket-stuff/branches/WICKET_1_2/wicket-contrib-velocity/and
couldn't get it to build either.  How do I get this to work?

Thanks.

On 3/20/07, Andrew Berman <[EMAIL PROTECTED]> wrote:


Cool, thanks guys, I'll check both options out.

On 3/20/07, Eelco Hillenius <[EMAIL PROTECTED] > wrote:
>
> Alternatively, you could use post processing filters for that. Can't
> remember the exact name from the top of my head.
>
> Eelco
>
>
> On 3/20/07, James McLaughlin <[EMAIL PROTECTED]> wrote:
> > On 3/20/07, Andrew Berman < [EMAIL PROTECTED]> wrote:
> > > I have a use case where the text of the a page can change depending
> on the
> > > skin that is selected.  There is some dynamic text in the original
> text,
> > > such as website name, which also changes depending on
> skin.  However,
> > > currently I have added a fixed number of Label objects to deal with
> the
> > > website name, but this doesn't really work because the text of the
> page
> > > might need more instances of the website name.  I can't dynamically
> add more
> > > Label objects, so I was wondering how I could do something like
> Velocity
> > > where I can put ${websiteName} in the HTML for a page or panel, set
> the
> > > variable in the page, and have it rendered properly.  I saw that
> Wicket
> > > includes MapVariableInterpolator but how do I do it with the HTML
> for the
> > > page?  I don't want to specify a filename because the filename is
> dependent
> > > on the style/skin.
> > >
> >
> > wicket-contrib-velocity provides exactly what you want
> >
> > you can get it here with subversion:
> >
> 
https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-velocity
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
> -
>
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


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


Re: [Wicket-user] Variable Interpolation within the HTML

2007-03-20 Thread Andrew Berman

Cool, thanks guys, I'll check both options out.

On 3/20/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


Alternatively, you could use post processing filters for that. Can't
remember the exact name from the top of my head.

Eelco


On 3/20/07, James McLaughlin <[EMAIL PROTECTED]> wrote:
> On 3/20/07, Andrew Berman <[EMAIL PROTECTED]> wrote:
> > I have a use case where the text of the a page can change depending on
the
> > skin that is selected.  There is some dynamic text in the original
text,
> > such as website name, which also changes depending on skin.  However,
> > currently I have added a fixed number of Label objects to deal with
the
> > website name, but this doesn't really work because the text of the
page
> > might need more instances of the website name.  I can't dynamically
add more
> > Label objects, so I was wondering how I could do something like
Velocity
> > where I can put ${websiteName} in the HTML for a page or panel, set
the
> > variable in the page, and have it rendered properly.  I saw that
Wicket
> > includes MapVariableInterpolator but how do I do it with the HTML for
the
> > page?  I don't want to specify a filename because the filename is
dependent
> > on the style/skin.
> >
>
> wicket-contrib-velocity provides exactly what you want
>
> you can get it here with subversion:
>
https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-velocity
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

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

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


[Wicket-user] Variable Interpolation within the HTML

2007-03-20 Thread Andrew Berman

I have a use case where the text of the a page can change depending on the
skin that is selected.  There is some dynamic text in the original text,
such as website name, which also changes depending on skin.  However,
currently I have added a fixed number of Label objects to deal with the
website name, but this doesn't really work because the text of the page
might need more instances of the website name.  I can't dynamically add more
Label objects, so I was wondering how I could do something like Velocity
where I can put ${websiteName} in the HTML for a page or panel, set the
variable in the page, and have it rendered properly.  I saw that Wicket
includes MapVariableInterpolator but how do I do it with the HTML for the
page?  I don't want to specify a filename because the filename is dependent
on the style/skin.

Thanks for any help,

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


Re: [Wicket-user] Wicket Ajax Javascript Error

2006-12-15 Thread Andrew Berman

Cool, I'll give it a shot Igor.

Thanks,

Andrew

On 12/15/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


try removing firebug from firefox, it has caused me to have this error in
the past

-igor


On 12/15/06, Andrew Berman < [EMAIL PROTECTED]> wrote:

> Hello,
>
> I repeatedly get the following error: t has no properties  (got the info
> using Firebug with Firefox)
>
> It bombs on line 586 of wicket-ajax.js:
>
> if (t.readyState == 4)
>
> Looks like t which is set to this.transport is null.  There are many
> situations where this happens in my application.  One instance of this is
> where I have two dropdowns, the first dropdown has an onchange event where
> it updates the second dropdown.  If the second dropdown yields nothing in
> the list (except Choose One), it results in this error.  Also, if you select
> Choose One in the first dropdown it yields this error.  Another instance
> when I get this error is when I perform an AJAX request, then make some
> other normal request, then click the back button and attempt to make another
> AJAX request. There are other cases where I seem to be getting this error as
> well.  I think it only started happening when I upgraded to 1.2.3.
>
> Any thoughts?
>
> --Andrew
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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



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


[Wicket-user] Wicket Ajax Javascript Error

2006-12-15 Thread Andrew Berman

Hello,

I repeatedly get the following error: t has no properties  (got the info
using Firebug with Firefox)

It bombs on line 586 of wicket-ajax.js:

if (t.readyState == 4)

Looks like t which is set to this.transport is null.  There are many
situations where this happens in my application.  One instance of this is
where I have two dropdowns, the first dropdown has an onchange event where
it updates the second dropdown.  If the second dropdown yields nothing in
the list (except Choose One), it results in this error.  Also, if you select
Choose One in the first dropdown it yields this error.  Another instance
when I get this error is when I perform an AJAX request, then make some
other normal request, then click the back button and attempt to make another
AJAX request. There are other cases where I seem to be getting this error as
well.  I think it only started happening when I upgraded to 1.2.3.

Any thoughts?

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


Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-31 Thread Andrew Berman
Tried it already, still doesn't work.  I also tried putting a dummy page between the PageBeforeAuthententicationRequiredPage and the 
MyPageThatRequiresAnAuthenticatedUser which simply does a setRedirect to the 
MyPageThatRequiresAnAuthenticatedUser, but still no dice.  Does it make sense for me to play around with the PageMap?On 10/31/06, Johan Compagner
 <[EMAIL PROTECTED]> wrote:
PageBeforeAuthententicationRequiredPage:...onSubmit {
 setResponsePage(MyPageThatRequiresAnAuthenticatedUser.class); setRedirect(true)}johan
On 10/31/06, Andrew Berman
 <[EMAIL PROTECTED]> wrote:
Hey Guys,
This is the way I have it working.Unfortunately I'm so swamped with work so I can't put together a QuickStart right now, but maybe within the next couple weeks.
MyApplication:getSecuritySettings().setAuthorizationStrategy(    new IAuthorizationStrategy() {    @SuppressWarnings("unchecked")    public boolean isInstantiationAuthorized(
    Class componentClass) {    if (WebPage.class.isAssignableFrom(componentClass)) {    if (SignInRequired.class    .isAssignableFrom(componentClass)) {
    if (!MySession.get().isAuthenticated())    throw new RestartResponseAtInterceptPageException(    SignInPage.class


);    }    }    return true;    }    public boolean isActionAuthorized(Component component,    Action action) {
    return true;    }    });PageBeforeAuthententicationRequiredPage:...onSubmit {
 setResponsePage(MyPageThatRequiresAnAuthenticatedUser.class);}MyPageThatRequiresAnAuthenticatedUser:MyPageThatRequiresAnAuthenticatedUser implements SignInRequired {
 }SignInPage:...continueToOriginalDestination();So, when I go to the MyPageThatRequiresAnAuthenticatedUser page when I'm not authenticated, it does go to the SignInPage, but after I authenticate, it goes back to PageBeforeAuthententicationRequiredPage instead of MyPageThatRequiresAnAuthenticatedUser.
Hope this helps you understand things and thanks again for your help,AndrewOn 10/28/06, 
Igor Vaynberg <
[EMAIL PROTECTED]> wrote:yep, how about a quickstart
-igorOn 10/28/06, Johan Compagner <


[EMAIL PROTECTED]> wrote:
so in the onsubmit you first redirect to another pageAnd in the constructor of that page you check it it is signed in?
And if not then you throw that restart exception?That should work fine. johan
On 10/28/06, Andrew Berman <[EMAIL PROTECTED]
> wrote:
Igor,For the onSubmit of the form's button, though, I do a setResponsePage(MyPageThatRequiresSignIn.class);So shouldn't the original destination be the page I'm trying to go to?--Andrew

On 10/27/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:
original destination is the url - the page that the form is onthe exception does not remember params submitted via post - this does pop up now and then, any reason why you dont do the auth check before the form submit? thats the easy way out
the hard way out is to submit an rfe to our jira, and even better a patch-igorOn 10/27/06, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:
Hello,Here is my setup:1.  I have an AuthorizationStrategy which checks a page to see if the SIgnIn is required.  If it is, it throws a RestartResponseAtInterceptPageException to my SignInPage.
2.  I have a page which has a form which does some validation and when you click submit it goes to a page that requires the user to be logged in and it hits the AuthStrategy I wrote in #1.
The problem I'm having is that when you click submit on the form (with no validation errors), and then go to the signin page, and then actually sign in, it takes me back to the form page with a validation error saying that the fields are not filled in.  Why is it not going to the original destination?
Thanks,Andrew

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo






http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list






Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Applica

Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-30 Thread Andrew Berman
Hey Guys,This is the way I have it working.Unfortunately I'm so swamped with work so I can't put together a QuickStart right now, but maybe within the next couple weeks.
MyApplication:getSecuritySettings().setAuthorizationStrategy(    new IAuthorizationStrategy() {    @SuppressWarnings("unchecked")    public boolean isInstantiationAuthorized(
    Class componentClass) {    if (WebPage.class.isAssignableFrom(componentClass)) {    if (SignInRequired.class    .isAssignableFrom(componentClass)) {
    if (!MySession.get().isAuthenticated())    throw new RestartResponseAtInterceptPageException(    SignInPage.class
);    }    }    return true;    }    public boolean isActionAuthorized(Component component,    Action action) {
    return true;    }    });PageBeforeAuthententicationRequiredPage:...onSubmit {
 setResponsePage(MyPageThatRequiresAnAuthenticatedUser.class);}MyPageThatRequiresAnAuthenticatedUser:MyPageThatRequiresAnAuthenticatedUser implements SignInRequired {
 }SignInPage:...continueToOriginalDestination();So, when I go to the MyPageThatRequiresAnAuthenticatedUser page when I'm not authenticated, it does go to the SignInPage, but after I authenticate, it goes back to PageBeforeAuthententicationRequiredPage instead of MyPageThatRequiresAnAuthenticatedUser.
Hope this helps you understand things and thanks again for your help,AndrewOn 10/28/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:yep, how about a quickstart
-igorOn 10/28/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:
so in the onsubmit you first redirect to another pageAnd in the constructor of that page you check it it is signed in?
And if not then you throw that restart exception?That should work fine. johan
On 10/28/06, Andrew Berman <[EMAIL PROTECTED]
> wrote:
Igor,For the onSubmit of the form's button, though, I do a setResponsePage(MyPageThatRequiresSignIn.class);So shouldn't the original destination be the page I'm trying to go to?--Andrew

On 10/27/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:
original destination is the url - the page that the form is onthe exception does not remember params submitted via post - this does pop up now and then, any reason why you dont do the auth check before the form submit? thats the easy way out
the hard way out is to submit an rfe to our jira, and even better a patch-igorOn 10/27/06, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:
Hello,Here is my setup:1.  I have an AuthorizationStrategy which checks a page to see if the SIgnIn is required.  If it is, it throws a RestartResponseAtInterceptPageException to my SignInPage.
2.  I have a page which has a form which does some validation and when you click submit it goes to a page that requires the user to be logged in and it hits the AuthStrategy I wrote in #1.
The problem I'm having is that when you click submit on the form (with no validation errors), and then go to the signin page, and then actually sign in, it takes me back to the form page with a validation error saying that the fields are not filled in.  Why is it not going to the original destination?
Thanks,Andrew

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo




http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list




Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo



http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list



Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v

Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-27 Thread Andrew Berman
Igor,For the onSubmit of the form's button, though, I do a setResponsePage(MyPageThatRequiresSignIn.class);So shouldn't the original destination be the page I'm trying to go to?--Andrew
On 10/27/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
original destination is the url - the page that the form is onthe exception does not remember params submitted via post - this does pop up now and then, any reason why you dont do the auth check before the form submit? thats the easy way out
the hard way out is to submit an rfe to our jira, and even better a patch-igorOn 10/27/06, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:
Hello,Here is my setup:1.  I have an AuthorizationStrategy which checks a page to see if the SIgnIn is required.  If it is, it throws a RestartResponseAtInterceptPageException to my SignInPage.
2.  I have a page which has a form which does some validation and when you click submit it goes to a page that requires the user to be logged in and it hits the AuthStrategy I wrote in #1.
The problem I'm having is that when you click submit on the form (with no validation errors), and then go to the signin page, and then actually sign in, it takes me back to the form page with a validation error saying that the fields are not filled in.  Why is it not going to the original destination?
Thanks,Andrew

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list

Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-27 Thread Andrew Berman
Hello,Here is my setup:1.  I have an AuthorizationStrategy which checks a page to see if the SIgnIn is required.  If it is, it throws a RestartResponseAtInterceptPageException to my SignInPage.2.  I have a page which has a form which does some validation and when you click submit it goes to a page that requires the user to be logged in and it hits the AuthStrategy I wrote in #1.
The problem I'm having is that when you click submit on the form (with no validation errors), and then go to the signin page, and then actually sign in, it takes me back to the form page with a validation error saying that the fields are not filled in.  Why is it not going to the original destination?
Thanks,Andrew
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] IFrames

2006-09-03 Thread Andrew Berman
All,Just a minor note that IFRAME stands for Inline Frame (http://www.w3.org/TR/REC-html40/present/frames.html#h-16.5), not Internal Frame as it is in the API using InternalFrame.  Maybe we should rename it in 
2.0?--Andrew
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Filtering Messages in FeedbackPanel

2006-06-22 Thread Andrew Berman
Very nice.  And for your next trick..--AndrewOn 6/23/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:, fixed before the bug is filed...how is that for customer service? :)
-IgorOn 6/22/06, Andrew Berman <

[EMAIL PROTECTED]> wrote:Ok, I did a little more research and it looks like if you have any FeedbackPanel with a ContainerFeedbackMessageFilter and a Session error, you get the IllegalArgumentException, so this looks like a bug.  I filed it here: 
http://sourceforge.net/tracker/index.php?func=detail&aid=1511076&group_id=119783&atid=684975

Thanks,AndrewOn 6/23/06, Andrew Berman <

[EMAIL PROTECTED]> wrote:
On one form I set the error on the session so I can have a flash message and display the error on a different page.  On that other page I have a FeedbackPanel which takes in a ContainerFeedbackMessageFilter only for a particular form.  However, I get an exception from the Session's feedback messages:
java.lang.IllegalArgumentException: argument component may not be null    at wicket.MarkupContainer.contains(MarkupContainer.java:211)    at wicket.feedback.ContainerFeedbackMessageFilter.accept(ContainerFeedbackMessageFilter.java



:54)    at wicket.feedback.FeedbackMessages.messages(FeedbackMessages.java:264)It looks as though the session's error which has no component associated with it is causing the exception.  I am going to revert the FeedbackPanel to not include the filter which should correct the problem, but I'm not sure if this is a bug or something stupid on my part.
--AndrewOn 6/22/06, Andrew Berman <


[EMAIL PROTECTED]> wrote:
Awesome, I'll check it out.  Thanks as always Igor.On 6/22/06, Igor Vaynberg <



[EMAIL PROTECTED]> wrote:
see ContainerFeedbackMessageFilterso new FeedbackPanel(...,new ContainerFeedbackMessageFilter(form));
-IgorOn 6/22/06, Andrew Berman
 <[EMAIL PROTECTED]> wrote:




I currently have multiple feedback panels on one page due to the fact that I use quite a bit of DHTML to display different forms.  As a result, I want each form's feedback panel to only display its own feedback.  However, when one form throws an error and then I bring up another form, that feedback panel is also showing with the errors (since the forms all exist on the same page and I'm just changing their CSS display property).  So, I've looked at the filtering mechanism for FeedbackPanel and at ComponentFeedbackPanel, but it won't work because the errors are attached to each form component not the form itself.  So, I guess the question is how do you attach the errors to the form itself or how do you just filter the errors for all components within a particular form?  Is this possible?
Thanks for your help,Andrew

Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server 
v.1.0.1
 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user










Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1

 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1
 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Filtering Messages in FeedbackPanel

2006-06-22 Thread Andrew Berman
Ok, I did a little more research and it looks like if you have any FeedbackPanel with a ContainerFeedbackMessageFilter and a Session error, you get the IllegalArgumentException, so this looks like a bug.  I filed it here: 
http://sourceforge.net/tracker/index.php?func=detail&aid=1511076&group_id=119783&atid=684975
Thanks,AndrewOn 6/23/06, Andrew Berman <[EMAIL PROTECTED]> wrote:
On one form I set the error on the session so I can have a flash message and display the error on a different page.  On that other page I have a FeedbackPanel which takes in a ContainerFeedbackMessageFilter only for a particular form.  However, I get an exception from the Session's feedback messages:
java.lang.IllegalArgumentException: argument component may not be null    at wicket.MarkupContainer.contains(MarkupContainer.java:211)    at wicket.feedback.ContainerFeedbackMessageFilter.accept(ContainerFeedbackMessageFilter.java

:54)    at wicket.feedback.FeedbackMessages.messages(FeedbackMessages.java:264)It looks as though the session's error which has no component associated with it is causing the exception.  I am going to revert the FeedbackPanel to not include the filter which should correct the problem, but I'm not sure if this is a bug or something stupid on my part.
--AndrewOn 6/22/06, Andrew Berman <
[EMAIL PROTECTED]> wrote:
Awesome, I'll check it out.  Thanks as always Igor.On 6/22/06, Igor Vaynberg <

[EMAIL PROTECTED]> wrote:
see ContainerFeedbackMessageFilterso new FeedbackPanel(...,new ContainerFeedbackMessageFilter(form));
-IgorOn 6/22/06, Andrew Berman
 <[EMAIL PROTECTED]> wrote:


I currently have multiple feedback panels on one page due to the fact that I use quite a bit of DHTML to display different forms.  As a result, I want each form's feedback panel to only display its own feedback.  However, when one form throws an error and then I bring up another form, that feedback panel is also showing with the errors (since the forms all exist on the same page and I'm just changing their CSS display property).  So, I've looked at the filtering mechanism for FeedbackPanel and at ComponentFeedbackPanel, but it won't work because the errors are attached to each form component not the form itself.  So, I guess the question is how do you attach the errors to the form itself or how do you just filter the errors for all components within a particular form?  Is this possible?
Thanks for your help,Andrew

Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server 
v.1.0.1
 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user







Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Filtering Messages in FeedbackPanel

2006-06-22 Thread Andrew Berman
On one form I set the error on the session so I can have a flash message and display the error on a different page.  On that other page I have a FeedbackPanel which takes in a ContainerFeedbackMessageFilter only for a particular form.  However, I get an exception from the Session's feedback messages:
java.lang.IllegalArgumentException: argument component may not be null    at wicket.MarkupContainer.contains(MarkupContainer.java:211)    at wicket.feedback.ContainerFeedbackMessageFilter.accept(ContainerFeedbackMessageFilter.java
:54)    at wicket.feedback.FeedbackMessages.messages(FeedbackMessages.java:264)It looks as though the session's error which has no component associated with it is causing the exception.  I am going to revert the FeedbackPanel to not include the filter which should correct the problem, but I'm not sure if this is a bug or something stupid on my part.
--AndrewOn 6/22/06, Andrew Berman <[EMAIL PROTECTED]> wrote:
Awesome, I'll check it out.  Thanks as always Igor.On 6/22/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:
see ContainerFeedbackMessageFilterso new FeedbackPanel(...,new ContainerFeedbackMessageFilter(form));
-IgorOn 6/22/06, Andrew Berman
 <[EMAIL PROTECTED]> wrote:

I currently have multiple feedback panels on one page due to the fact that I use quite a bit of DHTML to display different forms.  As a result, I want each form's feedback panel to only display its own feedback.  However, when one form throws an error and then I bring up another form, that feedback panel is also showing with the errors (since the forms all exist on the same page and I'm just changing their CSS display property).  So, I've looked at the filtering mechanism for FeedbackPanel and at ComponentFeedbackPanel, but it won't work because the errors are attached to each form component not the form itself.  So, I guess the question is how do you attach the errors to the form itself or how do you just filter the errors for all components within a particular form?  Is this possible?
Thanks for your help,Andrew

Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server 
v.1.0.1
 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Filtering Messages in FeedbackPanel

2006-06-22 Thread Andrew Berman
Awesome, I'll check it out.  Thanks as always Igor.On 6/22/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
see ContainerFeedbackMessageFilterso new FeedbackPanel(...,new ContainerFeedbackMessageFilter(form));
-IgorOn 6/22/06, Andrew Berman
 <[EMAIL PROTECTED]> wrote:
I currently have multiple feedback panels on one page due to the fact that I use quite a bit of DHTML to display different forms.  As a result, I want each form's feedback panel to only display its own feedback.  However, when one form throws an error and then I bring up another form, that feedback panel is also showing with the errors (since the forms all exist on the same page and I'm just changing their CSS display property).  So, I've looked at the filtering mechanism for FeedbackPanel and at ComponentFeedbackPanel, but it won't work because the errors are attached to each form component not the form itself.  So, I guess the question is how do you attach the errors to the form itself or how do you just filter the errors for all components within a particular form?  Is this possible?
Thanks for your help,Andrew

Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server 
v.1.0.1
 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Filtering Messages in FeedbackPanel

2006-06-22 Thread Andrew Berman
I currently have multiple feedback panels on one page due to the fact that I use quite a bit of DHTML to display different forms.  As a result, I want each form's feedback panel to only display its own feedback.  However, when one form throws an error and then I bring up another form, that feedback panel is also showing with the errors (since the forms all exist on the same page and I'm just changing their CSS display property).  So, I've looked at the filtering mechanism for FeedbackPanel and at ComponentFeedbackPanel, but it won't work because the errors are attached to each form component not the form itself.  So, I guess the question is how do you attach the errors to the form itself or how do you just filter the errors for all components within a particular form?  Is this possible?
Thanks for your help,Andrew
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AJAX within a Border gives an error

2006-06-08 Thread Andrew Berman
Ok, I'll see if I can find some time to whip something upOn 6/8/06, Juergen Donnerstag <[EMAIL PROTECTED]
> wrote:A junit test case or at least a quickstart would make much easier for
us to validate.JuergenOn 6/8/06, Andrew Berman <[EMAIL PROTECTED]> wrote:> I have a case where the hierarchy is set up like this:>> Border
> ->  WebMarkupContainer> ->  Border>>  > Ajax Link which adds the WebMarkupContainer to the> AjaxRequestTarget.
>> I get this error:>> wicket.markup.MarkupException: There must be exactly one  tag> for each border compoment.>> So it seems like an Ajax link cannot refresh a Border.  Is this a bug or as
> designed?>> Thanks,>> Andrew>>>> ___> Wicket-user mailing list> 
Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user>>>___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

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


[Wicket-user] AJAX within a Border gives an error

2006-06-07 Thread Andrew Berman
I have a case where the hierarchy is set up like this:Border    ->  WebMarkupContainer                                            ->  Border > Ajax Link which adds the WebMarkupContainer to the AjaxRequestTarget.
I get this error:wicket.markup.MarkupException: There must be exactly one  tag for each border compoment.So it seems like an Ajax link cannot refresh a Border.  Is this a bug or as designed?
Thanks,Andrew
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help, CheckGroup

2006-05-30 Thread Andrew Berman
You need _javascript_ to do that.  As far as I know Wicket has not built in functionality for what you want to do.  You should check this out for a pre-canned version of what you want: 
http://developer.yahoo.com/yui/examples/treeview/check.html?mode=distDownload the Yahoo UI Library and you should be good to go.  Otherwise, you'll need to write your own homegrown _javascript_ (which isn't hard).
On 5/30/06, ketan gote <[EMAIL PROTECTED]> wrote:


we are trying to implement checkgroup , and checkgroupselector,
we want to creat multiple checkgroup within first checkgroup and respective , checkgroupselector,
consider 
first checkbox is selected then its respective childs will selected and
when this child is selected then its child will also be selected 
wating for reply..-- RegardsKetan D.Gote




Re: [Wicket-user] Appending to AJAX Submit Button onclick

2006-05-28 Thread Andrew Berman
Cool, thanks IgorOn 5/28/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
my bad, i forgot to add a way to let you add your own call decorator, i am attaching two files that i modified to let you do this, i will check them into 1.2 and 2.0 later today when i have a bit of time, for now drop them into your own code or into wicket's src if you use the source.
-IgorOn 5/28/06, Andrew Berman <

[EMAIL PROTECTED]> wrote:
I have an AjaxSubmitButton which in addition to performing an AJAX submit I want it to do some other _javascript_.  I added my custom _javascript_ to the onclick of the button in the HTML and when it is rendered, Wicket overwrites anything I had in the onclick attribute.  I also tried adding the onclick attribute in the onComponentTag method of the button, but still the same thing.  So, how can I add my own onclick _javascript_ to the AJAX button?  
I'm not looking to have the AJAX call add the _javascript_, I want it so that upon clicking the button it immediately calls my _javascript_ in addition to making the AJAX call.Thanks for any help,


Andrew








[Wicket-user] Appending to AJAX Submit Button onclick

2006-05-28 Thread Andrew Berman
I have an AjaxSubmitButton which in addition to performing an AJAX submit I want it to do some other _javascript_.  I added my custom _javascript_ to the onclick of the button in the HTML and when it is rendered, Wicket overwrites anything I had in the onclick attribute.  I also tried adding the onclick attribute in the onComponentTag method of the button, but still the same thing.  So, how can I add my own onclick _javascript_ to the AJAX button?  
I'm not looking to have the AJAX call add the _javascript_, I want it so that upon clicking the button it immediately calls my _javascript_ in addition to making the AJAX call.Thanks for any help,Andrew



[Wicket-user] Re: Understanding models with dynamic form elements

2006-05-26 Thread Andrew Berman
I think I figured it out.On 5/26/06, Andrew Berman <[EMAIL PROTECTED]> wrote:
I'm having problems filling in a model when I use dynamic form elements.  I have surveys which are built depending on whatever the database calls for.  So, the hierarchy is this:Page    > Form
      -> ListView
          ---> Fragment (depending on type, it creates a different Fragment)       --> (e.g.) DropDownChoice

So, basically I pass each Fragment a question which contains a list of valid responses.  I ultimately want a list of the valid responses.  I set the modelObject in the Form to be a List.  So, how do I fill in this list properly with the selected either responseid or response object?  I think I'm just getting confused by all the layers in the hierarchy, so hopefully someone can help me sort this out.
Thanks for any help,Andrew




[Wicket-user] Understanding models with dynamic form elements

2006-05-26 Thread Andrew Berman
I'm having problems filling in a model when I use dynamic form elements.  I have surveys which are built depending on whatever the database calls for.  So, the hierarchy is this:Page    > Form      -> ListView
          ---> Fragment (depending on type, it creates a different Fragment)       --> (e.g.) DropDownChoice
So, basically I pass each Fragment a question which contains a list of valid responses.  I ultimately want a list of the valid responses.  I set the modelObject in the Form to be a List.  So, how do I fill in this list properly with the selected either responseid or response object?  I think I'm just getting confused by all the layers in the hierarchy, so hopefully someone can help me sort this out.
Thanks for any help,Andrew


Re: [Wicket-user] "Choose One" disappears after submissions

2006-05-26 Thread Andrew Berman
No, didn't know it existed.  I'll give it a shot.  Thanks Martijn.On 5/26/06, Martijn Dashorst <[EMAIL PROTECTED]
> wrote:did you set 'setNullValid(true)' on your component?Martijn
On 5/26/06, Andrew Berman <
[EMAIL PROTECTED]
> wrote:I have a page and when it first loads up, the null value is there with the appropriate "Choose One."  However, if I choose a selection from the dropdown and submit the form, when validation fails (and it goes back to the form page), the null value is gone and the user cannot change it back to Choose One if they want to nullify their response.  This behavior also seems to occur in Wicket-Examples on the Comp reference for DropDownChoice.  How do you keep the null response without actually adding it to the list passed to DropDownChoice?
Thanks,Andrew

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




[Wicket-user] "Choose One" disappears after submissions

2006-05-26 Thread Andrew Berman
I have a page and when it first loads up, the null value is there with the appropriate "Choose One."  However, if I choose a selection from the dropdown and submit the form, when validation fails (and it goes back to the form page), the null value is gone and the user cannot change it back to Choose One if they want to nullify their response.  This behavior also seems to occur in Wicket-Examples on the Comp reference for DropDownChoice.  How do you keep the null response without actually adding it to the list passed to DropDownChoice?
Thanks,Andrew


Re: [Wicket-user] Re: Rating component added to wicket 1.2 branch

2006-05-26 Thread Andrew Berman
Fair enoughThe way I did it has far less CSS hacking, but it still requires some CSS knowledgeOn 5/26/06, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:The ajax is primarily used to submit the score. The refresh of the component(s) is an additional bonus. And it doesn't work for 6-10 star rating systems, or alternatives such as F-A.
Also, it is possible to have different pictures for star 1, 2, 3, 4, 5, 6, 7 and so forth, depending on how far you want to go.
I like the tricks in the mentioned article, especially the way he has made it possible to show half of a star. However, I hardly find it simpler. There's some serious CSS hackery going on, and if you were to customize it to show other images than those provided by Wicket, you'll have to implement a lot of CSS yourself again.
The ajax return is still necessary, to update the width of the current-rating list item. So you won't gain much there either.Martijn

On 5/26/06, Andrew Berman <[EMAIL PROTECTED]> wrote:



I just looked in SVN at your code.  My solution is a bit simpler and I'm willing to donate it if you want.  It uses pure CSS to change the star, no AJAX involved at all.  You can customize the image by changing the CSS since it uses background-image.  It uses one image...it's based on this:
http://komodomedia.com/blog/index.php/2006/01/09/css-star-rating-part-deux/
On 5/26/06, 
Andrew Berman <[EMAIL PROTECTED]> wrote:




What does the HTML and _javascript_ look like?  I just wrote a Ratings class (requires Prototype) in _javascript_ which does it similarly to how Yahoo's ratings work, except that when you mouse over the star it not only changes colors, but it also has a tooltip with the meaning of the star.  It uses hidden radio buttons for the form so clicking a rating changes the radio button and then in Wicket I just use a standard RadioChoice object.
On 5/26/06, Jonathan Locke <




[EMAIL PROTECTED]> wrote:
awesome!  thanks!On 5/26/06, Martijn Dashorst <





[EMAIL PROTECTED]> wrote:

All,I just wanted to let you know that I implemented a rating component in wicket-extensions, and it is in the wicket 1.2 branch, as such it will be part of the next Wicket 1.2 maintenance release. It will also be added to the trunk in the near future. If you want to check it out, and see its usage, you'll have to check out the code from SVN, located under 
branches/WICKET_1_2/wicket-extensions and branches/WICKET_1_2/wicket-examplesYou can find the example in src/wicket/examples/ajax/builtin/RatingsPage.javaFeatures of the component:

 - use your own icons for the images - allow a user to vote only once (the implementation is up to you) - customize the styling - customizable rating system (it's all in the model, so ratings from 1-10, 1-5, F-A, are all possible)
 - label showing the absolute value of the rating (3.7 from 5 votes) can be turned off, or replaced with your own implementationExample code:        add(new RatingPanel("rating", new PropertyModel(rating, "rating"), 5, new PropertyModel(
                rating1, "nrOfVotes"), true)        {            protected boolean onIsStarActive(int star)            {                return RatingsPage.rating1.isActive(star);            }
            protected void onRated(int rating, AjaxRequestTarget target)            {                RatingsPage.rating1.addRating(rating);            }        });I know that Jonathan Locke was anxious to get this component, so Jonathan, this one is for you!
Martijn-- Download Wicket 1.2 now! Write Ajax applications without touching _javascript_!-- 







http://wicketframework.org








-- Download Wicket 1.2 now! Write Ajax applications without touching _javascript_!-- 


http://wicketframework.org






Re: [Wicket-user] Re: Rating component added to wicket 1.2 branch

2006-05-26 Thread Andrew Berman
I just looked in SVN at your code.  My solution is a bit simpler and I'm willing to donate it if you want.  It uses pure CSS to change the star, no AJAX involved at all.  You can customize the image by changing the CSS since it uses background-image.  It uses one image...it's based on this:
http://komodomedia.com/blog/index.php/2006/01/09/css-star-rating-part-deux/On 5/26/06, 
Andrew Berman <[EMAIL PROTECTED]> wrote:
What does the HTML and _javascript_ look like?  I just wrote a Ratings class (requires Prototype) in _javascript_ which does it similarly to how Yahoo's ratings work, except that when you mouse over the star it not only changes colors, but it also has a tooltip with the meaning of the star.  It uses hidden radio buttons for the form so clicking a rating changes the radio button and then in Wicket I just use a standard RadioChoice object.
On 5/26/06, Jonathan Locke <
[EMAIL PROTECTED]> wrote:
awesome!  thanks!On 5/26/06, Martijn Dashorst <

[EMAIL PROTECTED]> wrote:

All,I just wanted to let you know that I implemented a rating component in wicket-extensions, and it is in the wicket 1.2 branch, as such it will be part of the next Wicket 1.2 maintenance release. It will also be added to the trunk in the near future. If you want to check it out, and see its usage, you'll have to check out the code from SVN, located under 
branches/WICKET_1_2/wicket-extensions and branches/WICKET_1_2/wicket-examplesYou can find the example in src/wicket/examples/ajax/builtin/RatingsPage.javaFeatures of the component:

 - use your own icons for the images - allow a user to vote only once (the implementation is up to you) - customize the styling - customizable rating system (it's all in the model, so ratings from 1-10, 1-5, F-A, are all possible)
 - label showing the absolute value of the rating (3.7 from 5 votes) can be turned off, or replaced with your own implementationExample code:        add(new RatingPanel("rating", new PropertyModel(rating, "rating"), 5, new PropertyModel(
                rating1, "nrOfVotes"), true)        {            protected boolean onIsStarActive(int star)            {                return RatingsPage.rating1.isActive(star);            }
            protected void onRated(int rating, AjaxRequestTarget target)            {                RatingsPage.rating1.addRating(rating);            }        });I know that Jonathan Locke was anxious to get this component, so Jonathan, this one is for you!
Martijn-- Download Wicket 1.2 now! Write Ajax applications without touching _javascript_!-- 



http://wicketframework.org









Re: [Wicket-user] Re: Rating component added to wicket 1.2 branch

2006-05-26 Thread Andrew Berman
What does the HTML and _javascript_ look like?  I just wrote a Ratings class (requires Prototype) in _javascript_ which does it similarly to how Yahoo's ratings work, except that when you mouse over the star it not only changes colors, but it also has a tooltip with the meaning of the star.  It uses hidden radio buttons for the form so clicking a rating changes the radio button and then in Wicket I just use a standard RadioChoice object.
On 5/26/06, Jonathan Locke <[EMAIL PROTECTED]> wrote:
awesome!  thanks!On 5/26/06, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:

All,I just wanted to let you know that I implemented a rating component in wicket-extensions, and it is in the wicket 1.2 branch, as such it will be part of the next Wicket 1.2 maintenance release. It will also be added to the trunk in the near future. If you want to check it out, and see its usage, you'll have to check out the code from SVN, located under 
branches/WICKET_1_2/wicket-extensions and branches/WICKET_1_2/wicket-examplesYou can find the example in src/wicket/examples/ajax/builtin/RatingsPage.javaFeatures of the component:

 - use your own icons for the images - allow a user to vote only once (the implementation is up to you) - customize the styling - customizable rating system (it's all in the model, so ratings from 1-10, 1-5, F-A, are all possible)
 - label showing the absolute value of the rating (3.7 from 5 votes) can be turned off, or replaced with your own implementationExample code:        add(new RatingPanel("rating", new PropertyModel(rating, "rating"), 5, new PropertyModel(
                rating1, "nrOfVotes"), true)        {            protected boolean onIsStarActive(int star)            {                return RatingsPage.rating1.isActive(star);            }
            protected void onRated(int rating, AjaxRequestTarget target)            {                RatingsPage.rating1.addRating(rating);            }        });I know that Jonathan Locke was anxious to get this component, so Jonathan, this one is for you!
Martijn-- Download Wicket 1.2 now! Write Ajax applications without touching _javascript_!-- 


http://wicketframework.org







Re: [Wicket-user] Collapsing Bar in Wicket

2006-05-23 Thread Andrew Berman
I haven't put it in a Wicket component.  I've only implemented it using plain ol' _javascript_.  If you look in the email trail for this subject you'll see the _javascript_ I used.  If I can find some time I'll try to write a component, but no promises as I've been swamped with work work.
On 5/23/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
standardizing dojo and Scriptaculous for the extension stuffs will be a great. and andrew pls can i get some documents on how yu implemented Scriptaculous for this accordion effect..thanksonce again igor..congrats 
On 5/22/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:
do you know where in svn this donation lives? i would like to take a look.-IgorOn 5/22/06, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:Scriptaculous is not really that big unless you use all of its script components.  To do the effects I show above you only need to include 
effects.js and prototype.js.  The big guy is prototype, but it's such a valuable library anyway who cares.  I agree that dojo and scriptaculous should be included as the standards in Wicket; it makes sense to build off of the two best libraries right now.  Who knows though, the Zimbra libraries which were donated to Apache might become the de facto standard at some point.
On 5/22/06, Igor Vaynberg <


[EMAIL PROTECTED]> wrote:
the reason i suggested moo is because it is small and scruptaculous is
rather large, so if you only use it for accordian its kind of a waste.

i think what we need is to put into extensions things that include the
major js files like dojo and scriptaculous, that way other components
can reuse them. something to think about for 2.0

-Igor
On 5/22/06, Andrew Berman <[EMAIL PROTECTED]
> wrote:
Just so you know, Moo's accordian does not work in IE 5.5. 
That's the main reason I chose not to use it with my site.  There
are still plenty of people using Win2k with IE 5.5.  When I
switched to Scriptaculous, all was good.  The switchover was
pretty painless.  Here is basically how I did it:
var opened;stretchers = $$("div.stretcher");triggers = $$("a.trigger");function toggle(num) {                if (opened != null) {                        Effect.BlindUp(stretchers[opened], {duration: 
0.15,queue: 'front'});                   }                 if (opened != num) {                    opened = num;               
        return new
Effect.BlindDown(stretchers[num], {duration: 0.15,queue: 'end'});
        }                opened = null;        return;    }
Some text hereThe
number passed into the _javascript_ is the number in the array of the
stretcher.  Just thought I'd document here how to do it in case
anyone wants to make the change or use something like this with
Scriptaculous.
--AndrewOn 5/22/06, Ayodeji Aladejebi <




[EMAIL PROTECTED]> wrote:
aawwh!! lovely baby boyOn 5/22/06, Igor Vaynberg <





[EMAIL PROTECTED]> wrote:
i wont be able to do code review for a little while, my son was
born friday evening, so a little short on time :) if i can get to it in
time then we will put it into 1.2, if not we will put it into 1.2.1.
will let you know when i reviewed it. of course if someone else from
the core team wants to review it and put it into extensions dont
hesitate.
i know martijn likes components like this :) i ran the quickstart and it looked really awesome!-Igor
On 5/22/06, Ayodeji Aladejebi <
[EMAIL PROTECTED]> wrote:






hey igor...how is it going...du u think it needs more touches? should i go ahead and refactor it to 
wicket.extensions.collapsingpanel or something?On 5/21/06, 

Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:









Well here is the file...give it a try again. they are functional now and look at the quick start before writing yours
On 5/20/06, ali <
[EMAIL PROTECTED]> wrote:i get ClassCastException soprotected void populateItem(ListItem item) {
//CollapsingPair pair = (CollapsingPair)item.getModel();CollapsingPair pair = (CollapsingPair)item.getModelObject();  //@TODO :Ali Reza Sharghi , i addalso if i correctly use your component , where is tag of header or content
components of client of component ? and surely you want choosing thesetags give to client of components.i get exception   wicket.WicketRuntimeException: The component(s) below failed torender. A common problem is that you have added a
   component in code but forgot to reference it in the markup (thus thecomponent will never be rendered).when use your component in this way : List listItems = new ArrayList();
 listItems.add(new CollapsingPair(new Label("label1", "one"),getPanel("panel1"))); listItems.add(new CollapsingPair(new Label("label2", "two"),
getPanel("panel2"))); listItems.add(new CollapsingPair(new Label("label3", "three"),getPanel(&q

Re: [Wicket-user] Collapsing Bar in Wicket

2006-05-23 Thread Andrew Berman
It's called Kabuki: http://wiki.apache.org/incubator/KabukiProposalThere's nothing in the SVN repo yet.On 5/23/06, 
Igor Vaynberg <[EMAIL PROTECTED]> wrote:
do you know where in svn this donation lives? i would like to take a look.-IgorOn 5/22/06, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:Scriptaculous is not really that big unless you use all of its script components.  To do the effects I show above you only need to include 
effects.js and prototype.js.  The big guy is prototype, but it's such a valuable library anyway who cares.  I agree that dojo and scriptaculous should be included as the standards in Wicket; it makes sense to build off of the two best libraries right now.  Who knows though, the Zimbra libraries which were donated to Apache might become the de facto standard at some point.
On 5/22/06, Igor Vaynberg <

[EMAIL PROTECTED]> wrote:
the reason i suggested moo is because it is small and scruptaculous is
rather large, so if you only use it for accordian its kind of a waste.

i think what we need is to put into extensions things that include the
major js files like dojo and scriptaculous, that way other components
can reuse them. something to think about for 2.0

-Igor
On 5/22/06, Andrew Berman <[EMAIL PROTECTED]
> wrote:
Just so you know, Moo's accordian does not work in IE 5.5. 
That's the main reason I chose not to use it with my site.  There
are still plenty of people using Win2k with IE 5.5.  When I
switched to Scriptaculous, all was good.  The switchover was
pretty painless.  Here is basically how I did it:
var opened;stretchers = $$("div.stretcher");triggers = $$("a.trigger");function toggle(num) {                if (opened != null) {                        Effect.BlindUp(stretchers[opened], {duration: 
0.15,queue: 'front'});                   }                 if (opened != num) {                    opened = num;               
        return new
Effect.BlindDown(stretchers[num], {duration: 0.15,queue: 'end'});
        }                opened = null;        return;    }
Some text hereThe
number passed into the _javascript_ is the number in the array of the
stretcher.  Just thought I'd document here how to do it in case
anyone wants to make the change or use something like this with
Scriptaculous.
--AndrewOn 5/22/06, Ayodeji Aladejebi <



[EMAIL PROTECTED]> wrote:
aawwh!! lovely baby boyOn 5/22/06, Igor Vaynberg <




[EMAIL PROTECTED]> wrote:
i wont be able to do code review for a little while, my son was
born friday evening, so a little short on time :) if i can get to it in
time then we will put it into 1.2, if not we will put it into 1.2.1.
will let you know when i reviewed it. of course if someone else from
the core team wants to review it and put it into extensions dont
hesitate.
i know martijn likes components like this :) i ran the quickstart and it looked really awesome!-Igor
On 5/22/06, Ayodeji Aladejebi <
[EMAIL PROTECTED]> wrote:





hey igor...how is it going...du u think it needs more touches? should i go ahead and refactor it to 
wicket.extensions.collapsingpanel or something?On 5/21/06, 

Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:








Well here is the file...give it a try again. they are functional now and look at the quick start before writing yours
On 5/20/06, ali <
[EMAIL PROTECTED]> wrote:i get ClassCastException soprotected void populateItem(ListItem item) {
//CollapsingPair pair = (CollapsingPair)item.getModel();CollapsingPair pair = (CollapsingPair)item.getModelObject();  //@TODO :Ali Reza Sharghi , i addalso if i correctly use your component , where is tag of header or content
components of client of component ? and surely you want choosing thesetags give to client of components.i get exception   wicket.WicketRuntimeException: The component(s) below failed torender. A common problem is that you have added a
   component in code but forgot to reference it in the markup (thus thecomponent will never be rendered).when use your component in this way : List listItems = new ArrayList();
 listItems.add(new CollapsingPair(new Label("label1", "one"),getPanel("panel1"))); listItems.add(new CollapsingPair(new Label("label2", "two"),
getPanel("panel2"))); listItems.add(new CollapsingPair(new Label("label3", "three"),getPanel("panel3"))); add(new CollapsablePane("pane", listItems, 
Duration.ONE_SECOND,true)); //Test Pane   } private Panel getPanel(String id) { Panel panel = new Panel(id); panel.add









(new Label( id +"a", id + "a")); panel.add(new Label( id +"b", id + "b")); panel.add(new Label( id +"c", id + "c" )); return panel;
 }in summary , my labels an panels wh

Re: [Wicket-user] Collapsing Bar in Wicket

2006-05-22 Thread Andrew Berman
Scriptaculous is not really that big unless you use all of its script components.  To do the effects I show above you only need to include effects.js and prototype.js.  The big guy is prototype, but it's such a valuable library anyway who cares.  I agree that dojo and scriptaculous should be included as the standards in Wicket; it makes sense to build off of the two best libraries right now.  Who knows though, the Zimbra libraries which were donated to Apache might become the de facto standard at some point.
On 5/22/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
the reason i suggested moo is because it is small and scruptaculous is
rather large, so if you only use it for accordian its kind of a waste.

i think what we need is to put into extensions things that include the
major js files like dojo and scriptaculous, that way other components
can reuse them. something to think about for 2.0

-Igor
On 5/22/06, Andrew Berman <[EMAIL PROTECTED]
> wrote:
Just so you know, Moo's accordian does not work in IE 5.5. 
That's the main reason I chose not to use it with my site.  There
are still plenty of people using Win2k with IE 5.5.  When I
switched to Scriptaculous, all was good.  The switchover was
pretty painless.  Here is basically how I did it:
var opened;stretchers = $$("div.stretcher");triggers = $$("a.trigger");function toggle(num) {                if (opened != null) {                        Effect.BlindUp(stretchers[opened], {duration: 
0.15,queue: 'front'});                   }                 if (opened != num) {                    opened = num;               
        return new
Effect.BlindDown(stretchers[num], {duration: 0.15,queue: 'end'});
        }                opened = null;        return;    }
Some text hereThe
number passed into the _javascript_ is the number in the array of the
stretcher.  Just thought I'd document here how to do it in case
anyone wants to make the change or use something like this with
Scriptaculous.
--AndrewOn 5/22/06, Ayodeji Aladejebi <

[EMAIL PROTECTED]> wrote:
aawwh!! lovely baby boyOn 5/22/06, Igor Vaynberg <


[EMAIL PROTECTED]> wrote:
i wont be able to do code review for a little while, my son was
born friday evening, so a little short on time :) if i can get to it in
time then we will put it into 1.2, if not we will put it into 1.2.1.
will let you know when i reviewed it. of course if someone else from
the core team wants to review it and put it into extensions dont
hesitate.
i know martijn likes components like this :) i ran the quickstart and it looked really awesome!-Igor
On 5/22/06, Ayodeji Aladejebi <
[EMAIL PROTECTED]> wrote:



hey igor...how is it going...du u think it needs more touches? should i go ahead and refactor it to 
wicket.extensions.collapsingpanel or something?On 5/21/06, 

Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:






Well here is the file...give it a try again. they are functional now and look at the quick start before writing yours
On 5/20/06, ali <
[EMAIL PROTECTED]> wrote:i get ClassCastException soprotected void populateItem(ListItem item) {
//CollapsingPair pair = (CollapsingPair)item.getModel();CollapsingPair pair = (CollapsingPair)item.getModelObject();  //@TODO :Ali Reza Sharghi , i addalso if i correctly use your component , where is tag of header or content
components of client of component ? and surely you want choosing thesetags give to client of components.i get exception   wicket.WicketRuntimeException: The component(s) below failed torender. A common problem is that you have added a
   component in code but forgot to reference it in the markup (thus thecomponent will never be rendered).when use your component in this way : List listItems = new ArrayList();
 listItems.add(new CollapsingPair(new Label("label1", "one"),getPanel("panel1"))); listItems.add(new CollapsingPair(new Label("label2", "two"),
getPanel("panel2"))); listItems.add(new CollapsingPair(new Label("label3", "three"),getPanel("panel3"))); add(new CollapsablePane("pane", listItems, 
Duration.ONE_SECOND,true)); //Test Pane   } private Panel getPanel(String id) { Panel panel = new Panel(id); panel.add







(new Label( id +"a", id + "a")); panel.add(new Label( id +"b", id + "b")); panel.add(new Label( id +"c", id + "c" )); return panel;
 }in summary , my labels an panels where thier tags defined in markup ?please help==On Fri, 19 May 2006 18:59:43 +0430, Ayodeji Aladejebi<






[EMAIL PROTECTED]
> wrote:> yeah... lots of lazy developers like myslef..okay then..but i made this> one...hey igor am i in a good direction? :)>> On 5/19/06, Ayodeji Aladejebi <







[EMAIL P

Re: [Wicket-user] Collapsing Bar in Wicket

2006-05-22 Thread Andrew Berman
Congrats Igor.On 5/22/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
i wont be able to do code review for a little while, my son was born friday evening, so a little short on time :) if i can get to it in time then we will put it into 1.2, if not we will put it into 1.2.1. will let you know when i reviewed it. of course if someone else from the core team wants to review it and put it into extensions dont hesitate.
i know martijn likes components like this :) i ran the quickstart and it looked really awesome!-Igor
On 5/22/06, Ayodeji Aladejebi <
[EMAIL PROTECTED]> wrote:
hey igor...how is it going...du u think it needs more touches? should i go ahead and refactor it to 
wicket.extensions.collapsingpanel or something?On 5/21/06, 

Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:



Well here is the file...give it a try again. they are functional now and look at the quick start before writing yours
On 5/20/06, ali <
[EMAIL PROTECTED]> wrote:i get ClassCastException soprotected void populateItem(ListItem item) {
//CollapsingPair pair = (CollapsingPair)item.getModel();CollapsingPair pair = (CollapsingPair)item.getModelObject();  //@TODO :Ali Reza Sharghi , i addalso if i correctly use your component , where is tag of header or content
components of client of component ? and surely you want choosing thesetags give to client of components.i get exception   wicket.WicketRuntimeException: The component(s) below failed torender. A common problem is that you have added a
   component in code but forgot to reference it in the markup (thus thecomponent will never be rendered).when use your component in this way : List listItems = new ArrayList();
 listItems.add(new CollapsingPair(new Label("label1", "one"),getPanel("panel1"))); listItems.add(new CollapsingPair(new Label("label2", "two"),
getPanel("panel2"))); listItems.add(new CollapsingPair(new Label("label3", "three"),getPanel("panel3"))); add(new CollapsablePane("pane", listItems, 
Duration.ONE_SECOND,true)); //Test Pane   } private Panel getPanel(String id) { Panel panel = new Panel(id); panel.add




(new Label( id +"a", id + "a")); panel.add(new Label( id +"b", id + "b")); panel.add(new Label( id +"c", id + "c" )); return panel;
 }in summary , my labels an panels where thier tags defined in markup ?please help==On Fri, 19 May 2006 18:59:43 +0430, Ayodeji Aladejebi<



[EMAIL PROTECTED]
> wrote:> yeah... lots of lazy developers like myslef..okay then..but i made this> one...hey igor am i in a good direction? :)>> On 5/19/06, Ayodeji Aladejebi <




[EMAIL PROTECTED]> wrote: okay then..but i made this one...hey igor am i in a good direction?>> On 5/19/06, Johan Compagner <




[EMAIL PROTECTED] > wrote:>> >>> > Not contribute anymore? no time?>> > They only have to work for 8 hours for the boss!>> > thats still 16 hours left of the 24 that you have in a day..
>> >>> > johan>> >>> >>> >>> > On 5/18/06, Martijn Dashorst <



[EMAIL PROTECTED]> wrote:
>> > >>> > > The dojo.js library is a product under very high construction. Our>> > > full time students had a really hard time of working with it. This>> makes is
>> > > very hard to actually implement anything stable. The students have>> now>> > > joined our company, but we put a lot of work on their shoulders so>> that they



>> > > can't contribute anymore.
>> > >>> > > I heard someone volunteering to pick the pieces up (don't remember>> > > who), so if anyone wants to get his/her hands dirty on supporting>> an open




>> > > source project, now is your chance.>> > >>> > > The wicket stuff project has been created to allow anyone to>> > > contribute to wicket, and support those packages the core
>> developers don't>> > > have time for. Dojo, scriptaculous and such are those packages.>> > >>> > >>> > > Martijn>> > >>> > > On 5/18/06, Ayodeji Aladejebi < 
[EMAIL PROTECTED]> wrote:>> > > >>> > > > are we still someday soon expecting wicket-dojo-contrib...jeez i
>> > > > really loved what i was learning with the old wicket-dojo until
>> Wicket>> > > > 1.2 was no longer compatible.>> > > >>> > > >>> > > > On 5/18/06, Martijn Dashorst <




[EMAIL PROTECTED]> wrote:>> > > > >>> > > > > rico has one, and Dojo also.>> > > > >>> > > > > Martijn>> > > > >
>> > > > >>> > > > > On 5/18/06, Ayodeji Aladejebi < [EMAIL PROTECTED]
> wrote:>> > > > > >>> > > > > > :D. okay pls who has links to any free cross browser
>> _javascript_>> > > > > > library that can do this?>> > > > > >>> > > > > > thank yu>> > > > > >>> > > > > > On 5/18/06, Igor Vaynberg < 
[EMAIL PROTECTED]> wrote:>> > > > > > >>> > > > > > > i dont think there is a component like that right now, but
>> > > > > > > feel free to contribute one :)>> > > > > > >>> > > > > > > -Igor>> > > > > > >>> > > > > > >
>> > > > > > >>> > > > > > > On 5/18/06, Ayodeji Aladejebi < 



[EMAIL PROTECTED]> wrote:>> > > > > > > >
>> > > > > > > > This sliding effect 

Re: [Wicket-user] Collapsing Bar in Wicket

2006-05-22 Thread Andrew Berman
Just so you know, Moo's accordian does not work in IE 5.5.  That's the main reason I chose not to use it with my site.  There are still plenty of people using Win2k with IE 5.5.  When I switched to Scriptaculous, all was good.  The switchover was pretty painless.  Here is basically how I did it:
var opened;stretchers = $$("div.stretcher");triggers = $$("a.trigger");function toggle(num) {                if (opened != null) {                        Effect.BlindUp(stretchers[opened], {duration: 
0.15,queue: 'front'});                   }                 if (opened != num) {                    opened = num;                        return new Effect.BlindDown(stretchers[num], {duration: 0.15,queue: 'end'});
        }                opened = null;        return;    }
Some text hereThe number passed into the _javascript_ is the number in the array of the stretcher.  Just thought I'd document here how to do it in case anyone wants to make the change or use something like this with Scriptaculous.
--AndrewOn 5/22/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
aawwh!! lovely baby boyOn 5/22/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:
i wont be able to do code review for a little while, my son was born friday evening, so a little short on time :) if i can get to it in time then we will put it into 1.2, if not we will put it into 1.2.1. will let you know when i reviewed it. of course if someone else from the core team wants to review it and put it into extensions dont hesitate.
i know martijn likes components like this :) i ran the quickstart and it looked really awesome!-Igor
On 5/22/06, Ayodeji Aladejebi <
[EMAIL PROTECTED]> wrote:

hey igor...how is it going...du u think it needs more touches? should i go ahead and refactor it to 
wicket.extensions.collapsingpanel or something?On 5/21/06, 

Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:




Well here is the file...give it a try again. they are functional now and look at the quick start before writing yours
On 5/20/06, ali <
[EMAIL PROTECTED]> wrote:i get ClassCastException soprotected void populateItem(ListItem item) {
//CollapsingPair pair = (CollapsingPair)item.getModel();CollapsingPair pair = (CollapsingPair)item.getModelObject();  //@TODO :Ali Reza Sharghi , i addalso if i correctly use your component , where is tag of header or content
components of client of component ? and surely you want choosing thesetags give to client of components.i get exception   wicket.WicketRuntimeException: The component(s) below failed torender. A common problem is that you have added a
   component in code but forgot to reference it in the markup (thus thecomponent will never be rendered).when use your component in this way : List listItems = new ArrayList();
 listItems.add(new CollapsingPair(new Label("label1", "one"),getPanel("panel1"))); listItems.add(new CollapsingPair(new Label("label2", "two"),
getPanel("panel2"))); listItems.add(new CollapsingPair(new Label("label3", "three"),getPanel("panel3"))); add(new CollapsablePane("pane", listItems, 
Duration.ONE_SECOND,true)); //Test Pane   } private Panel getPanel(String id) { Panel panel = new Panel(id); panel.add





(new Label( id +"a", id + "a")); panel.add(new Label( id +"b", id + "b")); panel.add(new Label( id +"c", id + "c" )); return panel;
 }in summary , my labels an panels where thier tags defined in markup ?please help==On Fri, 19 May 2006 18:59:43 +0430, Ayodeji Aladejebi<




[EMAIL PROTECTED]
> wrote:> yeah... lots of lazy developers like myslef..okay then..but i made this> one...hey igor am i in a good direction? :)>> On 5/19/06, Ayodeji Aladejebi <





[EMAIL PROTECTED]> wrote: okay then..but i made this one...hey igor am i in a good direction?>> On 5/19/06, Johan Compagner <





[EMAIL PROTECTED] > wrote:>> >>> > Not contribute anymore? no time?>> > They only have to work for 8 hours for the boss!>> > thats still 16 hours left of the 24 that you have in a day..
>> >>> > johan>> >>> >>> >>> > On 5/18/06, Martijn Dashorst <




[EMAIL PROTECTED]> wrote:
>> > >>> > > The dojo.js library is a product under very high construction. Our>> > > full time students had a really hard time of working with it. This>> makes is
>> > > very hard to actually implement anything stable. The students have>> now>> > > joined our company, but we put a lot of work on their shoulders so>> that they




>> > > can't contribute anymore.
>> > >>> > > I heard someone volunteering to pick the pieces up (don't remember>> > > who), so if anyone wants to get his/her hands dirty on supporting>> an open





>> > > source project, now is your chance.>> > >>> > > The wicket stuff project has been created to allow anyone to>> > > contribute to wicket, and support those packages the core
>> developers don't>> > > have time for. Dojo, scriptaculous and such are those packages.>> > >>> > >>> > > Martijn>> > >>> > > On 5/18/0

Re: [Wicket-user] Collapsing Bar in Wicket

2006-05-19 Thread Andrew Berman
I wouldn't use Moo's effects.  I had problems on some browsers with it.  I was able to do it much simpler and with better support using Scriptaculous.  I used a combination of BlindUp and BlindDown.
On 5/19/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
i glanced at the code and it looks neat. if you dont mind throwing together a wicket-quickstart demo i will even play around with it (very short on time right now) do you want to contribute it to extensions?
-Igor
On 5/19/06, Ayodeji Aladejebi <[EMAIL PROTECTED]
> wrote:
yeah... lots of lazy developers like myslef..okay then..but i made this one...hey igor am i in a good direction? :)On 5/19/06, Ayodeji Aladejebi
 <

[EMAIL PROTECTED]> wrote:okay then..but i made this one...hey igor am i in a good direction?
On 5/19/06, Johan Compagner <


[EMAIL PROTECTED]
> wrote:Not contribute anymore? no time?They only have to work for 8 hours for the boss!
thats still 16 hours left of the 24 that you have in a day..johanOn 5/18/06, 

Martijn Dashorst <[EMAIL PROTECTED]> wrote:




The dojo.js library is a product under very high construction. Our full time students had a really hard time of working with it. This makes is very hard to actually implement anything stable. The students have now joined our company, but we put a lot of work on their shoulders so that they can't contribute anymore.
I heard someone volunteering to pick the pieces up (don't remember who), so if anyone wants to get his/her hands dirty on supporting an open source project, now is your chance.The wicket stuff project has been created to allow anyone to contribute to wicket, and support those packages the core developers don't have time for. Dojo, scriptaculous and such are those packages.
MartijnOn 5/18/06, Ayodeji Aladejebi <




[EMAIL PROTECTED]> wrote:
are we still someday soon expecting wicket-dojo-contrib...jeez i really loved what i was learning with the old wicket-dojo until Wicket 1.2 was no longer compatible.
On 5/18/06, 
Martijn Dashorst <[EMAIL PROTECTED]> wrote:






rico has one, and Dojo also.MartijnOn 5/18/06, Ayodeji Aladejebi <






[EMAIL PROTECTED]> wrote:
:D. okay pls who has links to any free cross browser _javascript_ library that can do this?
thank yuOn 5/18/06, Igor Vaynberg <








[EMAIL PROTECTED]> wrote:i dont think there is a component like that right now, but feel free to contribute one :)
-IgorOn 5/18/06, Ayodeji Aladejebi <









[EMAIL PROTECTED]> wrote:This sliding effect collapsing side menu bar like the one in the Echo2 App Demo 
http://demo.nextapp.com/Demo/app i was tryin to do it with wicket but i was tempted to go the _javascript_ way again. Is there an wicket-extension package that can make this easy to build in wicket just like the TabbedPane?
thank yu





-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 






http://wicketframework.org



-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 




http://wicketframework.org












Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Andrew Berman
The only reason why I like the setAnchor over overriding the getUrl() method is that it gives it a more standard feel to add anchors.  Overriding getUrl() to me signifies that you really want to do something more complicated to the URL than just adding an anchor.  Just my two cents.
On 5/11/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
yeahyou need that # so the link renders like a link when you preview in the browser.-Igor
On 5/11/06, 
Philip A. Chapman <[EMAIL PROTECTED]> wrote:




  
  


You might want to check for content after the #.  As a general rule, I put "#" in the href of my template's  tags.  I picked that up from examples and such.  I think it'd work fine to have the # hanging on the end, but there's no need for it.


On Thu, 2006-05-11 at 08:21 -0600, Vincent Jenks wrote:


+1 - I think that's pretty cool!

Couldn't that be done w/ an ExternalLink?  AttributeModifier?

On 5/11/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Yeah, I like that idea. So, if the contents of the url start with #,
> we append that to the url... that's the idea, right?
>
> What do other people think/ votes?
>
> Eelco
>
>
> On 5/11/06, Ali Zaid <[EMAIL PROTECTED]> wrote:
> > Hay Guys;
> >
> > I was testing RC3 and I have noticed that anchors are not implemented,
> > I think I file a request for this, let me explain
> >
> > if I have a link that say
> >
> > new Client
> >
> > when redirect to the new client page it should jump to that anchor,
> > the way I do it now is
> >
> > @Override
> > protected CharSequence getURL() {
> >return super.getURL() + "#clientPanel";
> > }
> >
> > I think link should be able to read the what's in href and do that
> > automatically ;), I think this is more wicket way than have to inser
> > some html thing in java.
> >
> > --
> > Regards, Ali
> > -
> > Fight back spam! Download the Blue Frog.
> > http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D

> >
> >
> > ---
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642

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

> >
>
>
> ---
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642

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

>


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd___

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







-- Philip A. ChapmanDesktop and Web Application Development:Java, .NET, PostgreSQL, MySQL, MSSQLLinux, Windows 2000, Windows XP






-BEGIN PGP SIGNATURE-Version: GnuPG v1.4.1 (GNU/Linux)iD8DBQBEY2VwAdpynRSGw3URAvbBAJ9pFQxk7MKs7AgmZcLMDj7oD2agfQCcCsrIybI6wST1Z1xCxPWPfhVVEWQ==TINi-END PGP SIGNATURE-






Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Andrew Berman
I'd rather have a setter added to Link called setAnchor which appends the #anchor automatically to the url.  On 5/11/06, Vincent Jenks <
[EMAIL PROTECTED]> wrote:+1 - I think that's pretty cool!Couldn't that be done w/ an ExternalLink?  AttributeModifier?
On 5/11/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:> Yeah, I like that idea. So, if the contents of the url start with #,> we append that to the url... that's the idea, right?
>> What do other people think/ votes?>> Eelco>>> On 5/11/06, Ali Zaid <[EMAIL PROTECTED]> wrote:> > Hay Guys;> >
> > I was testing RC3 and I have noticed that anchors are not implemented,> > I think I file a request for this, let me explain> >> > if I have a link that say> >> > new Client
> >> > when redirect to the new client page it should jump to that anchor,> > the way I do it now is> >> > @Override> > protected CharSequence getURL() {> >return 
super.getURL() + "#clientPanel";> > }> >> > I think link should be able to read the what's in href and do that> > automatically ;), I think this is more wicket way than have to inser
> > some html thing in java.> >> > --> > Regards, Ali> > -> > Fight back spam! Download the Blue Frog.> > 
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D> >> >> > ---> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job easier> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> > 
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642> > ___> > Wicket-user mailing list> > 
Wicket-user@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/wicket-user>  ---
> Using Tomcat but need to do more? Need to support web services, security?> Get stuff done quickly with pre-integrated technology to make your job easier> Download IBM WebSphere Application Server v.1.0.1
 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642> ___
> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user
>---Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Localization

2006-05-09 Thread Andrew Berman
So are we saying that there is going to be some MarkupFilter to replace whatever the developer decides to use for a localization demarcator?I had another idea.  What if wicket:message was enhanced?  Would something like this work:
  This way we could still have the previewability of the HTML page and have the localization applied at runtime.
--AndrewOn 5/9/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Martijn is writing about localization for Wicket In Action now. I'msure he'd appreciate it if someone would write up some notes about howto do this on the WIKI.EelcoOn 5/9/06, Matej Knopp <
[EMAIL PROTECTED]> wrote:> Matej Knopp wrote:> > Juergen Donnerstag wrote:> >> On 5/9/06, Matej Knopp <[EMAIL PROTECTED]> wrote:> >>> $${key}? Or whatever you want.
> >>> I don't need this behavior to be in wicket core. I'm much more> >>> interested in clean and simple preprocessing filters, something wicket> >>> lacks currently.> >>>
> Oh, stupid me. It is possible. Was it possible in 1.1 too? I guess I was> evaluating this and it was not possible back then.>> Anyway, it seems that markup filter should be enough.>
> > Unfortunately IMarkupFilter does not seem to be capable of replacing> > things in RawMarkup elements, does it? So it seems not to be able to> > replace ${key} to localized value, or am I missing anything here?
> >> > > > about load the > > file as string. Then let the preprocessor process it and then send it to
> > MarkupParser? (Just a thoght).> >> > -Matej> >>> >> That is true, we don't have something that allow to pre-processor the> >> plain input string and IMO it is not needed and when I think about
> >>  it could be dangerous. IMarkupFilter serve a> >> similar function but are already aware of the xml structure, the> >> encoding, etc.. And it is trivial to register them with the
> >> application.> >>> >> Juergen> >>> >>> >> ---> >> Using Tomcat but need to do more? Need to support web services, security?
> >> Get stuff done quickly with pre-integrated technology to make your job> >> easier> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache> >> Geronimo
> >> http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642> >> ___
> >> Wicket-user mailing list> >> Wicket-user@lists.sourceforge.net> >> 
https://lists.sourceforge.net/lists/listinfo/wicket-user> >>> >> >> >> > ---> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job> > easier> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> > 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > ___> > Wicket-user mailing list> > 
Wicket-user@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/wicket-user> > ---
> Using Tomcat but need to do more? Need to support web services, security?> Get stuff done quickly with pre-integrated technology to make your job easier> Download IBM WebSphere Application Server v.1.0.1
 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/wicket-user>---Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Localization

2006-05-08 Thread Andrew Berman
Hey Guys,I think adding something to support localized attributes would be a big plus.  I know that when Wicket added wicket:message it really saved a lot of extra Java code on my part.  I think the same thing would happen if we came up with something to do it in attributes.  AttributeModifiers obviously work, but when you have a lot of things you want to localize on the same page it's a lot of extra Java code that needs to be written to support this because you need to add the specific Component and add an AttributeModifier.
What about a compromise?  I think the experimental stuff in WicketMessageTagHandler is cumbersome to add to the HTML, so what if we created a component whose sole purpose is to add attributes to some HTML element.  Or can this already be done like this:
Java:add(new WebComponent("imageAlt").add(new AttributeModifier("alt", true, new ResourceModel("my.key";HTML:
I haven't tested if this works, but if not, maybe some kind of Component could be created which allows something like this.  It will allow for multiple attributes to be replaced as well.Thoughts?--Andrew
On 5/4/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
On 5/4/06, Ralf Ebert <[EMAIL PROTECTED]> wrote:> Hi Juergen,>> > please see WicketMessageTagHandler.java. It is experimental only and> > disabled by default. Reason: it is realy ugly to have something like
> > wicket:example="tag=key". AttributeModifier are much more convinent> > and far less ugly, IMO.> if you have a page with like, say, 20 labels with static text (like> you have sometimes in complex forms for explaining things) I don't see
> something to win by adding AttributeModifiers to the component tree. I> see localization of static text as "markup issue" because there is> almost no logic to define there. The format you described is rather
> ugly, that's right: What about:> bla (if you want to go the> message as text between the tags)this is default and
already available.>  (for> localizing the attribute value, probably the second : is not valid xml> any more, but another separation char like _ or  maybe no separation
> char at all could be used)>It is all not realy nice, isn't it? That is what we struggled with. Wedidn't find a syntax which we realy liked and which is standardscompliant (e.g. XML namespace, schema).
> This would be very helpful for quick & easy localization of static> content in pages, something that's missing at the moment from my point> of view. Tell me what you think, if I have time I would like to
> implement this and contribute it...>your help is very much appreciated but the syntax should be right.> > That is default. Localizer implements a search hierarchy up the> > component tree. You only need one properties files per language per
> > Panel which contains X number of component. Thinking ... That is not> > your question, isn't it? Like Application.properties is the last> > resort for all messages, you ask for one per java package, right? So,
> > in addition to the my.pkg.MyPanel.properties it should look in> > my/pkg/Wicket.properties as well (may be Wicket.properties is not the> > best name).> That's what I want to do and it would be a nice feature if such a
> lookup strategy could be added by just setting an option and defining> a name for the property file. I tried to do it quick myself but> stopped after finding out that the property file name is quite tightly
> coupled to some class name for the moment...>It is fairly easy to add. Please see Settings.addStringResourceLoader,Application.getResourceStreamLocator andCompoundResourceStreamLocator.java
Let me know if you need any more helpJuergen> Regards,> Ralf>>> ---> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> 
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642> ___> Wicket-user mailing list> 
Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user>---
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-04-11 Thread Andrew Berman
You need Open Session In View --> http://www.hibernate.org/43.htmlOn 4/11/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:in that case your container's persistence mechanism is closing the underlying hibernate session after the end of the invocation? this is a container specific problem not a wicket one. you need to figure out how to tell your container to keep the underlying entity manager session open so that lazy collections can be fetched even outside the session/stateless bean's method invocation.
-IgorOn 4/11/06, Vincent Jenks <
[EMAIL PROTECTED]> wrote:
I changed the param to look like yours:new PropertyModel(blogModel, "categories")...and I get the same exception...no luck!On 4/11/06, Igor Vaynberg <

[EMAIL PROTECTED]> wrote:> you are still not using a model for the listview, you are binding the> listview to hibernate's lazy initializable set instead in this line:>>> add(new ListView("categoriesView", ((Blog)getModelObject())
>  .getCategories())>> try changing that to:>> add(new ListView("categoriesView", new PropertyModel(blogModel,> "categories"));>> or create a simple wrapper around blogmodel directly if you dont want to use
> "soft binding" and reflection.>> -Igor> On 4/11/06, Vincent Jenks <
[EMAIL PROTECTED]> wrote:
> >>  OK, this doesn't appear to work.  I finally got around to testing this> and I still get a> LazyInitializationException.>> I passed the model around and it's barfing.
>
> "main" page (ViewBlog.class):>> //get object graph in detachable model> IModel blogModel = new LoadableDetachableModel()> {

> protected Object load()> {> //get blog & entries> Blog blog => BlogProxy.getDefault

();> return blog;> }> };>> //set as page model> setModel(blogModel);>
> //add panel components> add(new TopicsPanel("topicsPanel", blogModel));>> In the TopicsPanel class:>> public class TopicsPanel extends Panel
> {> public TopicsPanel(String id, IModel blogModel)> {> super(id, blogModel);>> //get model object> Blog blog = (Blog)getModelObject();
>> //add list view repeater> add(new ListView("categoriesView",> ((Blog)getModelObject()).getCategories())> {> protected void
> populateItem(ListItem item)> {> //get row model> final Category category => (Category)item.getModelObject();
>> //create link> Link categoryLink = new> PageLink("categoryLink", ViewBlog.class)> {
> public void> onClick()> {>> info("booyah!");> }
> };>> //add category name label> categoryLink.add(new> Label("topic", category.getName

()));>> //add link> item.add(categoryLink);> }> });> }> }

>> Where I'm trying to retrive the lazy collection in the ListView the> session has still been lost.>> What have I done wrong?  How can I get the lazily loaded collection> and not have to resort to eager fetching?
>> Remember, I'm not using Hibernate directly...I'm using JBoss EJB3 in> JBoss 4.0.4RC1...I don't have a lot of control over Hibernate...no do> I want to if I want to keep my project container-independent.
>> Thanks!>> On 3/20/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >> > or pass the same model :)> >> >
> > -Igor> >> >>  >> > On 3/20/06, Vincent Jenks <[EMAIL PROTECTED]
> wrote:> > >> > > Well, in the previous page which passes the Product into this page...the
> object was wrapped in a detachable model...not just called directly...so I> should try and wrap it again in the current page?> > >> > >> > >> > >  On 3/20/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:> > > >> > > > instead of using the product object directly, use a detachable model.
> > > >
> > > > you might also need to use an open session in view interceptor in case> jboss closes the hibernate session after your bean's method is finished> executing. if it does this, then by the time wicket code runs the object is
> already disconnected from its session and thus cant load any child> collections.> > > >> > > >> > > > -Igor> > > >> > > >

> > > >> > > >> > > > On 3/20/06,  Vincent Jenks < [EMAIL PROTECTED]
> wrote:> > > > >> > > > > OK, so I'm in a bit of a quagmire.
> > > > >> > > > > I'm using Wicket + EJB3 (JBoss 4.0.4RC1) which uses Hibern

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

2006-04-06 Thread Andrew Berman
Johan and Nathan, that's exactly how I'm doing it.  However, the problem is that I have a single web app which has two different servlets mapped to different URLs.  I have the Spring MVC servlet mapped to /*.htm (which is older but will be migrated to Wicket at some point :-)) and I have the Wicket servlet mapped to /foo/*.  Both apps use common services, including the same db, so I didn't want to split them out into separate web apps and use remote EJBs or JMS or something of the sort.
So, the URLs I want are like this:http://foo.whatever.com --> Spring MVC apphttp://bar.something.com --> Wicket app
Things seem to work fine for the Spring app, but the Wicket app doesn't work right because Wicket is mapped to a directory and not an extension.  So, when I go to http://bar.something.com
 I get my homepage fine.  However, I click a link and the link automatically appends the /foo to the url so you get http://bar.something.com/foo?wicket., which still works, though it's not correct.  However, when you submit a form it goes back to the home page because the session is new because Tomcat thinks its a new session due to the way the webapp is being accessed.  No matter what I do it seems that Tomcat just keeps creating a new session so Wicket takes the user back to the homepage.
Thanks for your help,AndrewOn 4/6/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
this should work:
ServerAdmin [EMAIL PROTECTED]DocumentRoot 
"youredocrootdir"ServerName www.yourevirtualhost.com
...
ProxyRequests OffOrder 
deny,allowAllow from allProxyPass / http://localhost:9090/
ProxyPassReverse / 
http://localhost:9090/
On 4/6/06, Johan Compagner <[EMAIL PROTECTED]
> wrote:that is something apache/mod_rewrite should do.
Don't know why this doesn't work we only set the complete path.But a redirect has to be the full url. So tomcat really sends the complete url to the browser. But apache should rewrite that to use the virtual host address.
johanOn 4/6/06, Andrew Berman <

[EMAIL PROTECTED]> wrote:
I'm using Virtual Hosts along with mod_proxy and mod_rewrite and one thing I've noticed is that when I use a DropDownChoice along with the onSelectionChange method which simply does a setResponsePage(...), it redirects the user to the 
http://localhost:8080/ address instead of the 


http://bar.com address from which they originally came to the page.  Any thoughts on how to fix this?
--AndrewOn 4/6/06, Johan Compagner <


[EMAIL PROTECTED]> wrote:
what you want is virtual hosting. Wicket does touch the "http://.xxx" It only generates the "/contextpath/servletpath/X"
And you can set the contextpath to "" so and map with apache to a different server so that 
http://localhost:8080/context/ is mapped to 



http://bar.comjohanOn 4/6/06, 

Andrew Berman <[EMAIL PROTECTED]> wrote:




But that wouldn't work for all Wicket urls.  The problem I have is that I have one war file with multiple applications.  Right now, I'm having problems mapping urls to each of those webapps.  One app uses .htm (Spring MVC) and the other is a Wicket app which is mapped based on url folder.  So, I want to be able to map 
http://foo.com to the Spring one via the .htm extension and 




http://bar.com to the Wicket app via some other extension instead of a folder.  Currently, I'm playing around with mod_proxy and mod_rewrite in Apache and forwarding the requests to Tomcat.
Anyone have any thoughts on how to do this?On 4/5/06, Igor Vaynberg
 <[EMAIL PROTECTED]> wrote:
did you try doing mountBookmarkablePage("/HomePage.htm", 
HomePage.class) ?-IgorOn 4/5/06, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:I was wondering if there is a way in 
1.2 to map Wicket's urls to an extension instead of to a directory.  For example, is it possible to do http://localhost/HomePage.htm
 instead of the usual 
http://localhost/wicket/HomePage?Thanks,
Andrew
















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

2006-04-06 Thread Andrew Berman
I'm using Virtual Hosts along with mod_proxy and mod_rewrite and one thing I've noticed is that when I use a DropDownChoice along with the onSelectionChange method which simply does a setResponsePage(...), it redirects the user to the 
http://localhost:8080/ address instead of the http://bar.com address from which they originally came to the page.  Any thoughts on how to fix this?
--AndrewOn 4/6/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
what you want is virtual hosting. Wicket does touch the "http://.xxx" It only generates the "/contextpath/servletpath/X"
And you can set the contextpath to "" so and map with apache to a different server so that 
http://localhost:8080/context/ is mapped to 
http://bar.comjohanOn 4/6/06, 

Andrew Berman <[EMAIL PROTECTED]> wrote:

But that wouldn't work for all Wicket urls.  The problem I have is that I have one war file with multiple applications.  Right now, I'm having problems mapping urls to each of those webapps.  One app uses .htm (Spring MVC) and the other is a Wicket app which is mapped based on url folder.  So, I want to be able to map 
http://foo.com to the Spring one via the .htm extension and 

http://bar.com to the Wicket app via some other extension instead of a folder.  Currently, I'm playing around with mod_proxy and mod_rewrite in Apache and forwarding the requests to Tomcat.
Anyone have any thoughts on how to do this?On 4/5/06, Igor Vaynberg
 <[EMAIL PROTECTED]> wrote:
did you try doing mountBookmarkablePage("/HomePage.htm", 
HomePage.class) ?-IgorOn 4/5/06, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:I was wondering if there is a way in 
1.2 to map Wicket's urls to an extension instead of to a directory.  For example, is it possible to do http://localhost/HomePage.htm
 instead of the usual 
http://localhost/wicket/HomePage?Thanks,
Andrew










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

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






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

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


[Wicket-user] Getting Page After Intercept Page

2006-03-29 Thread Andrew Berman
Is there a way to get the page the intercept page is supposed to go to inside the intercept page?  The PageMap has no method which allows me to get the continuation url, but I need some way of getting the Page after the intercept page because I want something to show up only if the continuation page is a specific page.  Hopefully this email makes sense...
Thanks for any help,--Andrew


[Wicket-user] Re: www.wicketframework.org does not work

2006-03-19 Thread Andrew Berman
Should mention that wicketframework.org works fine, just www.wicketframework.org does not.On 3/19/06, 
Andrew Berman <[EMAIL PROTECTED]> wrote:
FYI - The DNS entries need to be fixed for wicketframework.org.  Need to add a CNAME with www pointing to whatever A record you have already in the DNS entries
--Andrew




[Wicket-user] www.wicketframework.org does not work

2006-03-19 Thread Andrew Berman
FYI - The DNS entries need to be fixed for wicketframework.org.  Need to add a CNAME with www pointing to whatever A record you have already in the DNS entries--Andrew


[Wicket-user] Authentication and redirectToInterceptPage

2006-03-17 Thread Andrew Berman
I'm currently migrating over to the new Authentication stuff in Wicket 1.2.  My current code in my Application class is:getSecuritySettings().setAuthorizationStrategy(    new SimplePageAuthorizationStrategy(
ISecurePage.class) {    @Override    protected boolean isAuthorized() {        return MySession.get().isUserAuthenticated();    }
    });So, with this code, it redirects to the AccessDenied page.  How can I have it do a redirectToInterceptPage instead?--Andrew


[Wicket-user] Found a bug

2006-03-17 Thread Andrew Berman
Entered it in bug tracker: http://sourceforge.net/tracker/index.php?func=detail&aid=1452553&group_id=119783&atid=684975
It should be a pretty simple fix so hopefully someone can take care of it before 1.2 beta 2 comes out...Thanks,Andrew


Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Andrew Berman
That would be awesome Eelco if that happens.  It does make more sense to have the request available before the session is created.  Please let me know if and when you make this change so I can change my code and/or test this for you.
On 3/16/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
It's actually pretty awfull. I don't really see the point of having tocreate the session upfront AND delegating the creation of the requestcycle to the session which in turn delegates it to the factory whichis set in the application. The problems I have with the current
handling:1) It seems to stem from an optimization (RequestCycle sets theSession as a final field so it doesn't have to use the thread local)only. I don't think we need the optimization and besides the same
could have been accomplished by just lazy loading it.2) I find it illogical that the session is there before therequest(cycle). The other way around would be more initiutive anduseful.3) All that that one-liner delegation method does is tighten coupling.
The factory method in session is meant for internal use only. Weshould loose it.What I propose:1) Create RequestCycle before the session.2) Use the Application's factory directly instead of passing via
Session, and remove the method in Session.3) The session is lazily created in getSession of Application. Ipropose to 'touch' that method in RequestCycle's constructor to ensureit is available for any user that wants to access it in the
constructor of any custom RequestCycle.4) Make the change ASAP/ before beta 2.EelcoOn 3/16/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> great.>>> On 3/16/06, Andrew Berman <[EMAIL PROTECTED]> wrote:> >> > Yeah it works.  However, since the new request cycle is called on every
> request I had to put in an if statement to test for session.isNew().> >> >> >> > On 3/16/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:> > >> > > let me know if that worked.> > >> > >> > > -Igor> > >> > >> > >> > > On 3/16/06, Andrew Berman <
[EMAIL PROTECTED]> wrote:> > > >> > > > Cool.  Thanks Igor.> > > >> > > >> > > >> > > > On 3/16/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:> > > > >> > > > > instead of using a session factory try using a request cycle factory> and setting the style into the created websession there.
> > > > >> > > > >> > > > > -Igor> > > > >> > > > >> > > > >> > > > > On 3/16/06, Andrew Berman <
[EMAIL PROTECTED]> wrote:> > > > > >> > > > > > It looks like the RequestCycle is not filled in until RequestCycle> cycle = session.newRequestCycle
(request, response); in WicketServlet (line> 209 for Wicket 1.2 Beta 1)> > > > > >> > > > > >> > > > > >> > > > > > On 3/16/06, Andrew Berman <
[EMAIL PROTECTED]> wrote:> > > > > > >> > > > > > > I should've mentioned that I already tried that and when I call> RequestCycle.get
(), I get a null.> > > > > > >> > > > > > >> > > > > > >> > > > > > > On 3/16/06, Igor Vaynberg < 
[EMAIL PROTECTED]> wrote:> > > > > > > >> > > > > > > > you can try:> ((WebRequest)RequestCycle.get().getRequest()).> > > > > > > >
> > > > > > > >> > > > > > > > -Igor> > > > > > > >> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > > On 3/16/06, Andrew Berman <[EMAIL PROTECTED] > wrote:> > > > > > > > >
> > > > > > > > > I have a requirement where I need to parse the URL to> extract a username on session creation.  For example,> http://username.foo.com/..
., I need to pull out the username and set a style> in the session.  So, I figured that upon session creation I could parse the> request and set the style.  In my application class I have:> > > > > > > > >
> > > > > > > > > protected ISessionFactory getSessionFactory() {> > > > > > > > > return new ISessionFactory() {> > > > > > > > > private static final long serialVersionUID = 1L;
> > > > > > > > >> > > > > > > > > public Session newSession() {> > > > > > > > > return new FooSession();
> > > > > > > > > }> > > > > > > > > };> > > > > > > > > }> > > > > > > > >
> > > > > > > > > So in the newSession method how can I get the URL or request> object?> > > > > > > > >> > > > > > > > > Thanks,
> > > > > > > > >> > > > > > > > >> > > > > > > > > Andrew> > > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > >> > > > > > >> > > > > >> > > > > >> > > > >> > > > >
> > > >> > > >> > >> > >> >> >>>---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Andrew Berman
Yeah it works.  However, since the new request cycle is called on every request I had to put in an if statement to test for session.isNew().  On 3/16/06, Igor Vaynberg
 <[EMAIL PROTECTED]> wrote:
let me know if that worked.-IgorOn 3/16/06, 
Andrew Berman <[EMAIL PROTECTED]> wrote:

Cool.  Thanks Igor.On 3/16/06, Igor Vaynberg
 <[EMAIL PROTECTED]> wrote:


instead of using a session factory try using a request cycle factory and setting the style into the created websession there.
-IgorOn 3/16/06, Andrew Berman
 <[EMAIL PROTECTED]> wrote:



It looks like the RequestCycle is not filled in until RequestCycle cycle = session.newRequestCycle(request, response); in WicketServlet (line 209 for Wicket 1.2 Beta 1)
On 3/16/06, 
Andrew Berman <[EMAIL PROTECTED]> wrote:




I should've mentioned that I already tried that and when I call RequestCycle.get(), I get a null.
On 3/16/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:you can try: ((WebRequest)RequestCycle.get().getRequest()).
-IgorOn 3/16/06, 
Andrew Berman <[EMAIL PROTECTED]
> wrote:I have a requirement where I need to parse the URL to extract a username on session creation.  For example, 
http://username.foo.com/..., I need to pull out the username and set a style in the session.  So, I figured that upon session creation I could parse the request and set the style.  In my application class I have:
protected ISessionFactory getSessionFactory() {    return new ISessionFactory() {    private static final long serialVersionUID = 1L;    public Session newSession() {    
    return new FooSession();    }    };    }So in the newSession method how can I get the URL or request object?Thanks,






Andrew
















Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Andrew Berman
Cool.  Thanks Igor.On 3/16/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
instead of using a session factory try using a request cycle factory and setting the style into the created websession there.
-IgorOn 3/16/06, Andrew Berman
 <[EMAIL PROTECTED]> wrote:

It looks like the RequestCycle is not filled in until RequestCycle cycle = session.newRequestCycle(request, response); in WicketServlet (line 209 for Wicket 1.2 Beta 1)
On 3/16/06, 
Andrew Berman <[EMAIL PROTECTED]> wrote:


I should've mentioned that I already tried that and when I call RequestCycle.get(), I get a null.
On 3/16/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:you can try: ((WebRequest)RequestCycle.get().getRequest()).....
-IgorOn 3/16/06, 
Andrew Berman <[EMAIL PROTECTED]
> wrote:I have a requirement where I need to parse the URL to extract a username on session creation.  For example, 
http://username.foo.com/..., I need to pull out the username and set a style in the session.  So, I figured that upon session creation I could parse the request and set the style.  In my application class I have:
protected ISessionFactory getSessionFactory() {    return new ISessionFactory() {    private static final long serialVersionUID = 1L;    public Session newSession() {    
    return new FooSession();    }    };    }So in the newSession method how can I get the URL or request object?Thanks,




Andrew












Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Andrew Berman
It looks like the RequestCycle is not filled in until RequestCycle cycle = session.newRequestCycle(request, response); in WicketServlet (line 209 for Wicket 1.2 Beta 1)On 3/16/06, 
Andrew Berman <[EMAIL PROTECTED]> wrote:
I should've mentioned that I already tried that and when I call RequestCycle.get(), I get a null.
On 3/16/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:you can try: ((WebRequest)RequestCycle.get().getRequest()).
-IgorOn 3/16/06, 
Andrew Berman <[EMAIL PROTECTED]
> wrote:I have a requirement where I need to parse the URL to extract a username on session creation.  For example, 
http://username.foo.com/..., I need to pull out the username and set a style in the session.  So, I figured that upon session creation I could parse the request and set the style.  In my application class I have:
protected ISessionFactory getSessionFactory() {    return new ISessionFactory() {    private static final long serialVersionUID = 1L;    public Session newSession() {    
    return new FooSession();    }    };    }So in the newSession method how can I get the URL or request object?Thanks,


Andrew








Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Andrew Berman
I should've mentioned that I already tried that and when I call RequestCycle.get(), I get a null.On 3/16/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:you can try: ((WebRequest)RequestCycle.get().getRequest()).
-IgorOn 3/16/06, 
Andrew Berman <[EMAIL PROTECTED]
> wrote:I have a requirement where I need to parse the URL to extract a username on session creation.  For example, 
http://username.foo.com/..., I need to pull out the username and set a style in the session.  So, I figured that upon session creation I could parse the request and set the style.  In my application class I have:
protected ISessionFactory getSessionFactory() {    return new ISessionFactory() {    private static final long serialVersionUID = 1L;    public Session newSession() {    
    return new FooSession();    }    };    }So in the newSession method how can I get the URL or request object?Thanks,

Andrew






[Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Andrew Berman
I have a requirement where I need to parse the URL to extract a username on session creation.  For example, http://username.foo.com/..., I need to pull out the username and set a style in the session.  So, I figured that upon session creation I could parse the request and set the style.  In my application class I have:
protected ISessionFactory getSessionFactory() {    return new ISessionFactory() {    private static final long serialVersionUID = 1L;    public Session newSession() {    
    return new FooSession();    }    };    }So in the newSession method how can I get the URL or request object?Thanks,Andrew


Re: [Wicket-user] Added i18n page to wiki

2006-03-14 Thread Andrew Berman
What is your localized target?  Is it static HTML or does it go to a Wicket page?On 3/14/06, David Leangen <[EMAIL PROTECTED]
> wrote:Thanks for the input!In any case, unless I missed something, I don't think that this is relevant
to what I was after.As I write in the document, I am concerned with the link target, not themessage. I know that Wicket already provides great support for localizedmessages.IOW, this is perfectly supported:
  No problems there.What I want is:  < href="">Wicket, as far as I can see, does not support this out-of-the-box.
If the explanation on the wiki is unclear, let me know and I'll try to fixit.Thanks again!-Original Message-From: 
[EMAIL PROTECTED][mailto:[EMAIL PROTECTED]]On Behalf Of Andrew BermanSent: 14 March 2006 22:49To: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Added i18n page to wikiDon't you mean the  tag and not ?On 3/14/06, Martijn Dashorst <
[EMAIL PROTECTED] > wrote:David,I see that you have not found the (under documented)  element.This has been backported to 1.1.1
 and helps to make i18n pages more easilyfor languages that share the same structure (left to right reading).The wicket:key makes it much easier to add localized or i18n text to astandard page, so you don't need to mimic the whole structure in markup
files.MartijnOn 3/14/06, David Leangen <[EMAIL PROTECTED]> wrote:After much tinkering, I finally figured out a way to do what I wanted to
do. I explain it on the updated page:   http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_WicketI just know that I'm going to get a big slap on the wrist from the
Wicket developers. ;-)I'm bracing myself...Cheers,Dave---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user--Nominate Wicket for the 
SourceForge.net's Choice awards!http://www.wilsonresearch.com/2006/ostgawards06/ostgawards4.php---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] Added i18n page to wiki

2006-03-14 Thread Andrew Berman
Don't you mean the  tag and not ?On 3/14/06, Martijn Dashorst <[EMAIL PROTECTED]
> wrote:David,I see that you have not found the (under documented)  element. This has been backported to 
1.1.1 and helps to make i18n pages more easily for languages that share the same structure (left to right reading).
The wicket:key makes it much easier to add localized or i18n text to a standard page, so you don't need to mimic the whole structure in markup files.Martijn
On 3/14/06, 
David Leangen <[EMAIL PROTECTED]> wrote:

After much tinkering, I finally figured out a way to do what I wanted todo. I explain it on the updated page:  
http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket
I just know that I'm going to get a big slap on the wrist from theWicket developers. ;-)I'm bracing myself...Cheers,Dave---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-- Nominate Wicket for the SourceForge.net's Choice awards!
http://www.wilsonresearch.com/2006/ostgawards06/ostgawards4.php





Re: [Wicket-user] Role-Based AND Spring Aware WebApplication

2006-03-09 Thread Andrew Berman
Yeah, I noticed that as I looked more in the AuthenticatedWebApp class that it really doesn't do much, but the fact of the matter is that I have to copy code over to my class.  However, what happens if there is another WebApp class that is useful in the future but I'm already extending the SpringWebApp class?  It just seems like a lack of reuse. 
On 3/9/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
The distracting thing here is the way AuthenticatedWebApplication isimplemented. It's elegant by itself, but as you noticed not veryuseful if you want to use it together with another base class.The only thing that application does though, is register itself as
IRoleCheckingStrategy and IUnauthorizedComponentInstantiationListener.The only thing you need to do is pull those implementations out ofthat webapplication class and register them in yours. You probablywant to work with your own session object anyway?
EelcoOn 3/9/06, Andrew Berman <[EMAIL PROTECTED]> wrote:> Ok,>> So we all know that a class in Java cannot extend multiple classes, so
> because of this there is no way to have extend the> AuthenticatedWebApplication and the SpringWebApplication classes for a> single app.  So, does this mean I have to copy the code of one of them into
> my class which only extends one of them?  Seems kind of wrong in my opinion.>  Maybe some sort of chain needs to be implemented in WebApplications so> instead of extending a specific WebApp class, you define in your WebApp
> class the handlers you wish to use.>> Thoughts or did I miss something major?>> Andrew>---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Role-Based AND Spring Aware WebApplication

2006-03-09 Thread Andrew Berman
Ok,So we all know that a class in Java cannot extend multiple classes, so because of this there is no way to have extend the AuthenticatedWebApplication and the SpringWebApplication classes for a single app.  So, does this mean I have to copy the code of one of them into my class which only extends one of them?  Seems kind of wrong in my opinion.  Maybe some sort of chain needs to be implemented in WebApplications so instead of extending a specific WebApp class, you define in your WebApp class the handlers you wish to use.
Thoughts or did I miss something major?Andrew


Re: [Wicket-user] orienting myself

2006-02-20 Thread Andrew Berman
To expand a little on what Igor said, you basically want to create two Panels, one for the cancellation type and one for the adjustment type.  Then you can use a ListView.  In the ListView populateItem method, add whichever Panel you need based on whatever factors you use and make sure to use the same id for both types of panels, like this:
if (item.isCancellation())    listItem.add(new CancellationPanel("myPanelId"));else   listItem.add(new AdjustmentPanel("myPanelId"));In your HTML:<... wicket:id="yourList">
    Hope this helps,AndrewOn 2/20/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:dont think you need a special imodel or anything here.
just use a listview for the order lines and based on the order line type include a proper panel that represents that order line type.-Igor

On 2/20/06, Scott Swank <[EMAIL PROTECTED]> wrote:

Hello all,I'm entirely new to Wicket, and thus far impressed with what it seemsto offer.  I've put together a couple of sample pages and now I wantto create a sample for my co-workers that re-works one of our existing
pages via Wicket.  (Our home-grown template engine has become a painpoint).  This page comes in two varieties, so it seems like a fineopportunity for an abstract page with two concrete implementations.

It looks like this:customer infoorder infoorder lineorder lineorder lineThe order lines differ as follows:1) cancellation variety --checkbox  itemName  quantity  itemCost  cancellationFee  refundAmount
(where the refundAmount = quantity*itemCost-cancellationFee, and thecancellationFee is editable)2) adjustment variety --checkbox  itemName  quantity  itemCost  itemAdjustment  refundAmount

(refundAmount = quantity*itemAdjustment, where the itemAdjustment is editable)At this point I want to know whether best-practice is to:1. Create a IModel for the refundLine and a component for the refundLine
2. Create a IModel for each piece of the refund line and use standardhtml components3. Hybrid: one IModel for the refundLine that is share among variousstandard components -- is this even possible?

Additionally, the examples make it pretty clear how components fitinto a package structure -- but how do folk tend to structure thepackages for their IModel implementations?Feel free to simply point me toward a corner of the Wiki or a
JavaLobby article that I haven't come across yet.  I don't want towaste anyone's time.Many thanks,Scott---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!

http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642___Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





Re: [Wicket-user] VOTE

2006-02-16 Thread Andrew Berman
#1.  Better to have to make major changes once.--AndrewOn 2/17/06, Janne Hietamäki <[EMAIL PROTECTED]
> wrote:On Feb 17, 2006, at 3:33 AM, Eelco Hillenius wrote:>> 1. Give me the constructor change and the Java 5 functionality in one
> pass (Wicket 2.0)+1.We are still forced to run Java 1.4, but I'm testing ifretrotranslator is stable enough for production.--Janne HietamäkiCemron Ltd
http://www.cemron.fi/---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wingS 2.0 v. wicket 1.1

2005-12-12 Thread Andrew Berman
Well, I can tell you two disadvantages of using wingS:1. It uses Layout managers.  Why it needs these if it uses HTML is beyond me, but it uses the Swing layout managers.  I don't know how many here have used Swing, but coding those layout managers by hand is a horrendous experience, especially the GridBagLayout.
2. No one has heard of the library (I learned of it from TSS also) even though it is apparently a 2.0 version already.  I personally think that Wicket is going to just get a bigger and bigger user-base as time goes on and people learn how easy it is to use.
--AndrewOn 12/12/05, Christopher Gardner <[EMAIL PROTECTED]> wrote:
I'm still cross posting to the ServerSide, as I'm trying to get thethoughts of wingS users.---Some of the responses mention the separation of concerns: Web pagedesigners can focus on the usability and beauty of the page, while
Java developers can hook up that page to that application.I see advantages to that approach, but there is duplication in thewicket approach. If I add a component to the page, I most likely wouldhave to add the same component to the code.
So, does the duplication in wicket lead to:* more performant page rendering over wingS (this is quite important to me)* highly productive development, i.e., is the effort to produce andmaintain an HTML page /and/ the wicket components less than that to
produce an equivalent set of components in wingS (as measured indeveloper time)* any other advantageOn 12/12/05, Dorel Vaida <[EMAIL PROTECTED]> wrote:
> Michael Jouravlev wrote:>> >On 12/11/05, Andrew Lombardi <[EMAIL PROTECTED]> wrote:> >> >> >>Programmers work in Java, Designers work in HTML, wicket follows the
> >>separation of concerns fairly eloquently.> >>> >>> >> >This is a wrong principle. Modern-day web programming is not a CGI> >script + HTML 2.0. Web browsers are capable of _javascript_, DOM, CSS,
> >XML parsing, XSLT and other stuff. Designers cannot do that. This is> >programmers' job.> >> Let's say that designers and programmers must work as a team to fullfill> all those tasks you've mentioned. As I said in a previous email I don't
> think that a programmer/developer should have anything to do with at> least HTML, css etc. That's the ideal case, the real one is when your> Java fellow knows as much HTML as he can tell you, the web designer,
> what the markup he needs should look like so everything works as> expected. HTML + css makes things much easier in this respect. No matter> how much they try, a programmer/developer with no, or few knowledges of
> graphic/creative design will not be able to produce a decent looking web> application. And because people do not know about, or tend to mix, or> even ignore these different skillsets, most of the web applications (
> written in java or whatever) you'll see, look like s**t :-).>> >Never before web dev was so fun (and gore) as it in> >last two-three years.> >> Well, if fun means complex, well, yes, you're right. I think, that's why
> simple, well designed, specialized frameworks have so much success> lately and that's why almost nobody uses XML parsing + XSLT in the> browser :-P.>> > And it will get better. That is why I think that
> >JSF and such are very unflexible, they spit out predefined HTML,> >sometimes not really pretty one, and they do not allow to use the full> >power of modern client web development.> >
> >Michael.> >> >> >---> >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files> >for problems?  Stop!  Download the new AJAX search engine that makes
> >searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!> >http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> >___> >Wicket-user mailing list> >Wicket-user@lists.sourceforge.net> >
https://lists.sourceforge.net/lists/listinfo/wicket-user> >> >> > ---> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!> 
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user>---This 
SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&opclick___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Submit a Form by a method call

2005-12-10 Thread Andrew Berman
Don't use a submit button.  Do this instead1.  Give each form an id using the HTML id attribute2.  Add the buttons like below--Andrew
On 12/10/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
I think the problem is not so much Wicket here, but the fact that youwant to break out of the HTML boundaries. One strategy you can utilizeis to use _javascript_ to collect your form values and submit them as if
they were part of one form. If you need such functionality often, youmight even try to generalize this into a custom Wicket component.EelcoOn 12/10/05, Ali Zaid <
[EMAIL PROTECTED]> wrote:> Hi;>> I want to to submit a Form by a link or a button that don't belong to that> Form, the idea is that I have 2 Forms in a page, one is a client details> Form and the other is a ListView with a Form to add Contact Info to that
> client. I want to add a button (link) in the bottom of the page that say> save that will save the whole client object and redirect to another page,> what I want to do is to submit that form when this link is clicked.
>> > .> .> .> >> >  .>  .>  .>  
>> > wicket:id="lnk_save"/>>> So the idea is to submit the form clientDetails with the  button lnk_save.
> hope it's doable ;)>> --> Regards, Ali---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!http://ads.osdn.com/?ad_idv37&alloc_id865&opclick___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] Wicket job

2005-12-05 Thread Andrew Berman
Cool, I just wanted to make sure I wasn't overstepping any bounds. I've attached the official job posting that we have.--AndrewOn 12/5/05, 
Martijn Dashorst <[EMAIL PROTECTED]> wrote:
For Wicket developers, I think this is the best place to do so. Idon't mind the job listing, as long as it concerns Wicket. I don't seea use for tapestry/struts/etc job offerings here :-)Perhaps we should add a mailing list?
[EMAIL PROTECTED], or would that be stretching thepolicy of the sourceforge charter too much? Currently the traffic forsuch job offerings is too low for the effort, but it would give a nice
statistic on jobs for the framework.MartijnOn 12/5/05, Andrew Berman <[EMAIL PROTECTED]> wrote:> Hey guys,>> I hope this is ok to do, but I thought I'd ask you guys first.  I'm going to
> be hiring a Java developer and the application is being developed in Wicket.>  Our company is located in the Los Angeles, CA area.  If you guys are> interested, email me your resume.>> On the same note, what is the best service these days to find Java
> developers?>> Thanks guys,>> Andrew>--Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorst
Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Java Engineer.doc
Description: MS-Word document


[Wicket-user] Wicket job

2005-12-05 Thread Andrew Berman
Hey guys,I hope this is ok to do, but I thought I'd ask you guys first.  I'm going to be hiring a Java developer and the application is being developed in Wicket.  Our company is located in the Los Angeles, CA area.  If you guys are interested, email me your resume. 
On the same note, what is the best service these days to find Java developers?Thanks guys,Andrew


Re: [Wicket-user] Adding Support for

2005-12-04 Thread Andrew Berman
Actually I agree with Igor on this.  The entire purpose to the Select/SelectionOptions was to make it completely flexible to the developer and to allow him to do whatever he wanted.  Adding a default option for null detracts from that flexibility a bit because the developer didn't manually add it to his Select object.  I feel that only what the developer wants to add to the Select object should show up.
--AndrewOn 12/3/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
it is just a matter of easy choice.In the DropDown you can choose if you want or not depeding on what the model value is If you don't want that message just override one methodelse you get that message if the model value is null.
It is just a matter of what is handy and easy to doNow in youre case you need to do much more work if you want the message.johan
On 12/3/05, 
Igor Vaynberg <[EMAIL PROTECTED]> wrote:

i dont really understand why this is a /problem/adding it yourself gives you options to add styles, your own text, etc.also most of the time i dont even want a "select one" message, i just want the box to default to the first choice. so when the page first renders the model is null and no options are selected. when the form is submitted the choice will default to the first option visible.
-IgorOn 12/3/05, Johan Compagner <


[EMAIL PROTECTED]
> wrote:still the same problem then i am affraid.I have to control the
visibilty if toat selectoption depending on what the model object is of
the Select itself. (null or something)On 12/3/05, 
Igor Vaynberg <[EMAIL PROTECTED]> wrote:




but a SelectOption is not in your collection - its a component. The
whole point of the Select component is to have full control over the
markup. All our core choice elements limit your access to markup by
producing the entire  output for you including all the
options. The point of Select/SelectOption is to have total control.
So for the previous example you cao do something like this:Collection smallCars=getSmallCars();Collection bigCars=getBigCars();IOptionRenderer carRenderer=new IOptionRenderer() {...}Select carSelect=new Select("carSelect").add(
RequiredValidator.getInstance());carSelect.add(new SelectOption("none", new Model(/*NULL*/));carSelect.add(new SelectOptions("small", smallCars, carRenderer));carSelect.add(new SelectOptions("big", bigCars, carRenderer));
and then in markupPlease Select One   
   personally
i dont see what the point of "select one" is if a choice is required.
easier to just not add one and let the box default to the first choice.
sure it requires more attention on the part of the user - but thats
what confirmation pages are for :)
-Igor
On 12/2/05, Johan Compagner <[EMAIL PROTECTED]
> wrote:
yes then  it is exactly what i say.for "Choose one.." you shouldn't have to need a SelectChoice == option element in youre collectionBecause "Choose one" should only be there if nothing is selected and null value isn't allowed...
johanOn 12/2/05, Igor Vaynberg <





[EMAIL PROTECTED]> wrote:no,
SelectChoice is a component that represents a single 
element. you add that to the Select component. SelectChoices is a
convinience component that draws out a bunch of  tags
much like our current components.
-IgorOn 12/2/05, Johan Compagner <






[EMAIL PROTECTED]> wrote:
That selectchoice is a thing you have to add to the collection of choices?then
that is not that nice. Because choose one should only be there if no
one is selected and null is required (or something like that)Because of that you can't add it easily to the collection because you have to know that you want to add it or not...
I like the getDefaultValue() or what is that method  called of DropDown..johanOn 12/2/05, 
Igor Vaynberg <
[EMAIL PROTECTED]> wrote:just
checked in a fix. also the Select element does not add a "choose one"
choice for you, you have to do it yourself by adding a SelectChoice
that represents that element.
-Igor
On 12/2/05, Davide Savazzi <[EMAIL PROTECTED]> wrote:

On 11/30/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> any feedback on this yet? if not, i guess i will polish it with its current
> feature set and that will be that.
I have a Map that contains List of choices, my code is:Map choicesMap = getChoicesMap();Select select = new Select("mySelect", new PropertyModel(myModel,"propertyName"));IOptionRenderer renderer = new IOptionRenderer() {
  public String getDisplayValue(Object selection) {return ((Selection) selection).getName();  }  public IModel getModel(Object selection) {return new Model(new Integer(((Selection) selection).getId()));
  }};select.add(new SelectOptions("group1", new Model((Serializable)choicesMap.get("group1")), renderer));select.add(new SelectOptions("group2", new Model((Serializable)









choicesMap.get("group2")), renderer));When myModel.getPropertyName() is null I get a WicketException:09:50:07,679 ERROR [RequestCycle] Select[3:step1Form:section4Border:mySelect] contains a null model object,
must be an object of type java.

Re: [Wicket-user] JavaOne 2006 - Wicket presentation?

2005-12-01 Thread Andrew Berman
Oh and one more thing.  Everyone keeps bringing up Spring/Hibernate integration.  I'm not sure I understand why this is.  If you are building your app, IMHO, properly, Wicket should know absolutely nothing about the use of Hibernate.  All Hibernate integration should occur within Spring, and Wicket should communicate directly with your services or DAOs using Spring (if you're using Spring).
--AndrewOn 12/1/05, Andrew Berman <[EMAIL PROTECTED]> wrote:
Honestly, I don't think there ever was a Spring Integration problem.  I think people were just looking for a cookie-cutter approach to using Spring within Wicket.  It's actually quite easy to do without using any of the Spring stuff that Igor and others wrote, but it's always a good thing to have a common approach that everyone can follow.
As far as session usage, there was an article I read a while ago that actually talked about how developers are not using the session enough.  Basically, since a lot of servers have oodles of RAM and disk space, the article's point was that there's no reason not to use the resources available in order to increase speed (not having to go to DB all the time, for example).  Obviously, there are a lot of other factors that are involved in session usage, such as number of simultaneous users, but the article certainly made sense.  As Eelco pointed out, there are definitely pros and cons, but honestly I don't think Wicket's usage of the session should push anyone away from using it.
--AndrewOn 12/1/05, Iman RahmatiZadeh <
[EMAIL PROTECTED]> wrote:
>Why? Igor and a couple of others build some pretty decent Spring>support now? It's all in HEAD, and there has to be a proper build for>it made, but I think we now have Spring integration that most people

>are happy with.I'm looking forward to see a real final solution to the spring integration problem, I've seen most examples about it, and am currently using my own solution in my app, but just think its time for everybody to agree on the best solution, integrate it into 
the core, and stick to it from now on. And BIG thanks for all the good work ! Iman






Re: [Wicket-user] JavaOne 2006 - Wicket presentation?

2005-12-01 Thread Andrew Berman
Honestly, I don't think there ever was a Spring Integration problem.  I think people were just looking for a cookie-cutter approach to using Spring within Wicket.  It's actually quite easy to do without using any of the Spring stuff that Igor and others wrote, but it's always a good thing to have a common approach that everyone can follow.
As far as session usage, there was an article I read a while ago that actually talked about how developers are not using the session enough.  Basically, since a lot of servers have oodles of RAM and disk space, the article's point was that there's no reason not to use the resources available in order to increase speed (not having to go to DB all the time, for example).  Obviously, there are a lot of other factors that are involved in session usage, such as number of simultaneous users, but the article certainly made sense.  As Eelco pointed out, there are definitely pros and cons, but honestly I don't think Wicket's usage of the session should push anyone away from using it.
--AndrewOn 12/1/05, Iman RahmatiZadeh <[EMAIL PROTECTED]> wrote:
>Why? Igor and a couple of others build some pretty decent Spring>support now? It's all in HEAD, and there has to be a proper build for>it made, but I think we now have Spring integration that most people

>are happy with.I'm looking forward to see a real final solution to the spring integration problem, I've seen most examples about it, and am currently using my own solution in my app, but just think its time for everybody to agree on the best solution, integrate it into 
the core, and stick to it from now on. And BIG thanks for all the good work ! Iman




Re: [Wicket-user] Adding Support for

2005-11-30 Thread Andrew Berman
I haven't had a chance to use it yet.  I'm swamped with some other stuff I need to do.  Sorry--AndrewOn 11/30/05, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:any feedback on this yet? if not, i guess i will polish it with its current feature set and that will be that.
-IgorOn 11/23/05, Andrew Berman
 <[EMAIL PROTECTED]> wrote:
I should've known
On 11/23/05, Igor Vaynberg <

[EMAIL PROTECTED]> wrote:
your wish is my command. now you just have to wait a few hours until anon cvs syncs.-IgorOn 11/23/05, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:I won't be able to give it a shot until it works with HEAD as I've made
the switch already and am using 1.2 specific stuff.  Once it is
compatible with HEAD, I'll check it out.

--AndrewOn 11/23/05, Igor Vaynberg <



[EMAIL PROTECTED]> wrote:
just checked in my first pass at this so you guys can check it out and
give me feedback. i had to check it into wicket_1_1 branch because
component reference doesnt work in head yet. i also put the new
components into extensions because the core is getting too crowded
imho. if people want me to move it into core we can discuss that
separately. the components are in wicket.extensions.markup.html.form.select package.  and the examples are in component reference on the bottom of the form section.these
components give you pretty much total control of how the
select/option/optgroup tags are rendered. there is a convinience
SelectOptions class that will create a quick list of options like the
current choice components do. this one uses IOptionRenderer instead of
IChoiceRenderer since it uses the actual model object instead of a
string id. see the examples.
-IgorOn 11/22/05, Mark Derricutt <




[EMAIL PROTECTED]> wrote:
Something along those lines yeh.On 11/23/05, Igor Vaynberg <





[EMAIL PROTECTED]> wrote:
so you want to specify the optgroup tags in your model? something likeclass Category { String name; List choices }and provide List as the model? so that the name of categories become optgroup tags?















Re: [Wicket-user] Conditionally updating model

2005-11-26 Thread Andrew Berman
Whoops, my method should be getInput not getValueSorry.Should be:public String getInput() {
 String val = super.getInput(); if (val != null && val.trim().equals(""))   return null; return val;}On 11/26/05, 
Andrew Berman <[EMAIL PROTECTED]> wrote:
There are a bunch of ways to do it, but I think the easiest way is to override getInput() and return null if you do not want the model updated with this component's value.For example,public String getValue() {
 String val = super.getValue(); if (val != null && val.trim().equals(""))   return null; return val;}--Andrew
On 11/26/05, 
Nick Heudecker <[EMAIL PROTECTED]> wrote:

Hi,I have an "edit user" page that allows the admin to update variousdetails for a user, like email address, name, etc.  The admin can alsochange the password for a user, but I want to make that optional, like
the password is only updated if the admin actually types a newpassword, otherwise the User object backing the Form isn't updatedwith a blank password.Is there a suggested way to go about this? Do I end up overriding
getModelValue() or setModelValue()?Thanks for your time.---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&opclick___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





Re: [Wicket-user] Conditionally updating model

2005-11-26 Thread Andrew Berman
There are a bunch of ways to do it, but I think the easiest way is to override getInput() and return null if you do not want the model updated with this component's value.For example,public String getValue() {
 String val = super.getValue(); if (val != null && val.trim().equals(""))   return null; return val;}--AndrewOn 11/26/05, 
Nick Heudecker <[EMAIL PROTECTED]> wrote:
Hi,I have an "edit user" page that allows the admin to update variousdetails for a user, like email address, name, etc.  The admin can alsochange the password for a user, but I want to make that optional, like
the password is only updated if the admin actually types a newpassword, otherwise the User object backing the Form isn't updatedwith a blank password.Is there a suggested way to go about this? Do I end up overriding
getModelValue() or setModelValue()?Thanks for your time.---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!http://ads.osdn.com/?ad_idv37&alloc_id865&opclick___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] Web Continuation Servers

2005-11-26 Thread Andrew Berman
That was the point I was trying to make.  The point of
onSubmit/onClick handlers on each component is moot because you are
already within the method which is going to do the processing. 
I'm not sure if event handlers on a page would solve the issue
either.  What happens when you have multiple buttons on a page
that do different things?  The beauty of componentizing each
button is that the developer can specify exactly what this button alone
does on click.  However, with continuations, wouldn't we now have
to start right away with an if statement to test which button is
clicked?  I could be wrong, but this just seems to me to start
getting away from the whole point of using Wicket, no?

Perhaps however, continuations would be best used in flow situations
where you force the user go through a certain flow of
pages/panels.  But again, I'm not sure how each individual
component on each page/panel would act with continuations.  I
think from the Page standpoint, as Eelco points out, that it makes
sense.  But again, I'm not sure how interaction with the
individual components on each Page would work.

--AndrewOn 11/26/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
ahh so a program on the webserver just runs in its own thread. (every session has its own thread)And the webserver threads are dispatchting to those threads and then getting response from them.That doesn't look to hard to do. (the burden on the webserver would improved greatly)
If we build something like this in wicket. Where would youre code be in?Now youre pieces of youre code is in the event/interface methods like onclick or onsubmit.Would you then have an onClick/onSubmit on a Page? and every thing that comes in from that page
is called to there or better said it is continued there?How would you say to wicket i want to start this part in a "continue", a special interface that a page implements that is checked on in the response phase?
I do think this thing is not for all. Only small portions, one page. else i think you quicly get bigmonolitic code again.If i compare it to swing then i just see this continuations as the Modal Dialog...
That is the continuation in swing. You block youre current code and ask the user for something.Then it gets back (the modal dialog is closed) and you continue.lets think about some examples how we would do this in wicket and what would be a elegant way.
johanOn 11/26/05, Timo Stamm <
[EMAIL PROTECTED]> wrote:
Andrew Berman wrote:> I don't think continuations would fit at all in Wicket.  Components and> continuations just don't seem to me that they would mesh at all.Why is that? Components and Continuations work very well together.
> The> problem is that a form component, for example, contains the logic for> submission and you must build and add it to the page before the control is> sent to the user.  As a result, if you had a continuation, where would you
> continue to?  You've already written the code for what is supposed to happen> prior to the user doing anything.That's exactly the point of continuations. Instead of continuing with anonSubmit handler, your just continue *within the method*.
> As far as I know, RIFE is the only framework I know that uses continuations,Cocoon has them, too. RIFE/Continuations aims to become ageneral-purpose library for continuations. Jetty 6 has support for
continuations.Timo---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___Wicket-user mailing listWicket-user@lists.sourceforge.net

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




  1   2   >