Re: [Wicket-user] Getting sent to PageExpiredErrorPage when page is not expired

2007-06-06 Thread Konstantinos Lazouras

it seems I'm having the same problem here...

any hints on how and when to check the jsessionid cookie at deployment mode?

Jay, did you have any luck with this?

Thanks in advance,
Konstantinos

- Original Message 
From: Jonathan Locke <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Tuesday, June 5, 2007 7:38:27 AM
Subject: Re: [Wicket-user] Getting sent to PageExpiredErrorPage when page is 
not expired



when i was running into this, it turned out that we were losing the session
cookie.  try checking the jsessionid cookie before and after and see if it
changes.


jayTSM wrote:
> 
> This behavior seems to be happening on non-ajax requests. The component
> being submitted is a basic subclass of the wicket Form class. The
> pre-processing before the submission involves setting the response page to
> the current page, via the setResponsePage method on the wicket Component
> class. In addition a couple of objects are saved using hibernate before
> submission. 
> 
> I am currently using the wicket 1.2.5 jar.
> 
> 
> Eelco Hillenius wrote:
>> 
>> We've had a couple of instances where this happened for Ajax requests.
>> Should be fixed now though.
>> 
>> Can you tell us more about which version you are using and what kind
>> of pages/ functionality you see this with?
>> 
>> On 6/4/07, jayTSM <[EMAIL PROTECTED]> wrote: 
>>> 
>>> Sporadically, I'm seeing form submissions rerouted by wicket internally
>>> to 
>>> the pageExpiredErrorPage, when it seems the requested page is not
>>> expired. 
>>> Does anyone have any ideas why this might be happening? These 
>>> page-expiration error cases seem to occur when the form's response page
>>> is 
>>> set to the current page. 
>>> 
>>> Thanks for the help in advance, 
>>> Jay 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Getting-sent-to-PageExpiredErrorPage-when-page-is-not-expired-tf3867462.html#a10962956
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







   

Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php-
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] Controlling back button of client

2007-03-21 Thread Konstantinos Lazouras
Hi,

some pages of our application have a back button (i.e. a button where we do 
stuff at onClick() and then do this.setResponsePage(somePage.class);).

I want to execute the same code when the user clicks the back button of the 
browser. Furthermore, I want to be able to disable the browser's button if the 
current page of our application doesn't have a back button. 

How can I do that?

Thanks,
Konstantinos





 

The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php-
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] Unable to render resource stream Exception

2007-02-05 Thread Konstantinos Lazouras
Hi all, thanx for your help so far and apologies for getting back so late... to 
the problem now:

To what you suggested, I didn't get something useful from yourkit and  
tmsMserver is not wicket related.

If the problem appears, it happens by clicking the datepicker icon (in a 
"monkey testing" context), where WebLogic 9.1 cannot get to the resources. It 
has nothing to do with browsers (speaking about firefox and ie). It is related 
to the environment used: For development we use eclipse, tomcat 5.5, java 1.5 
on windows and we also test inhouse with BEA WebLogic both on windows and 
linux. We cannot reproduce the problem locally, no matter what. At the client 
site, we deploy again on BEA WebLogic but this time on AIX. This is the only 
environment where we get the "Unable to render resource stream" error.

Inspired by the thread " Fighting "Too many open files" problem related to 
wicket resource files" we unpacked the wicket jars (we only use 2 jars, 
core+extensions), put everything in "classes" folder and deployed again.  We 
didn't get much, as the exception now became:

12:16:53,251 ERROR RequestCycle:1043 - Unable to render resource stream 
zip:/prod/applc/bea9/weblogic91/config/tmsdomain/./servers/tmsMserver/tmp/_WL_user/fc/2eqljk/war/WEB-INF/lib/_wl_cls_gen.jar!/wicket/extensions/markup/html/datepicker/style/aqua/status-bg.gif
wicket.WicketRuntimeException: Unable to render resource stream 
zip:/prod/applc/bea9/weblogic91/config/tmsdomain/./servers/tmsMserver/tmp/_WL_user/fc/2eqljk/war/WEB-INF/lib/_wl_cls_gen.jar!/wicket/extensions/markup/html/datepicker/style/aqua/status-bg.gif
at wicket.Resource.respond(Resource.java:279)
at wicket.Resource.onResourceRequested(Resource.java:135)
at 
wicket.request.target.resource.SharedResourceRequestTarget.respond(SharedResourceRequestTarget.java:192)
... (the rest are the same)


So far, my question is: shouldn't unpacking the jars fix the problem?



Searching a bit more, we found that "_wl_cls_gen.jar" is the way WebLogic 
handles dynamic libraries (so it shouldn't be something suspicious there). From 
this I understand that WebLogic makes this jar because it finds the datepicker 
resources in the "/WEB-INF/classes/..." dir and not in "/", as happens with the 
other resources.  What should I do if I want to move datepicker resources away 
from "/WEB-INF/classes/..." dir?
Do you think that replacing the whole datepicker component with something 
external would be a solution (how do I do this)?



On the other hand, a few minutes ago I came across the following post while 
searching for answers: 
 
http://opensource.atlassian.com/projects/spring/browse/SPR-3043;jsessionid=anu8vO15emAayNy2Ua?page=all
 

I think the problem described is very similar to mine.  Do you have any 
suggestions on how to apply and test the answer given?

Thanks again,

Konstantinos





- Original Message 
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Saturday, January 27, 2007 1:17:45 AM
Subject: Re: [Wicket-user] Unable to render resource stream Exception

well i guess we need to know if this is wicket related or something inside 
weblogic going bad, or the combination of the two

-igor


On 1/26/07, Martijn Dashorst
 <[EMAIL PROTECTED]> wrote:
I never have heard of it... And if you don't like shelling out $$$ for
YourKit immediately, they have a 30 day trial. Should be enough to at
least find this problem.

After that you'll instantly know that the 500 bucks they charge are

worth every penny.

(I'm not affiliated with them).

Martijn

On 1/26/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> is tmsMserver one of our threads?

>
> -igor
>
>
> On 1/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > Wicket is pretty efficient, so likely there is something very resource

> > heavy in your application, or there is a fat memory leak (resulting in
> > the VM having to do a lot of GC). Can you track down what happens? If
> > you use a profiler like the excellent YourKit

> > (http://www.yourkit.com/), you should be able to track down
> > bottlenecks and/ or memory leaks pretty quickly.
> >
> > Eelco
> >

> >
> > On 1/26/07, Konstantinos Lazouras <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Thanks Martjin,

> > >
> > > your answer makes sense but doesn't actually solve my problem, which in
> fact
> > > is that users complain that the wicket web-app is slow.
> > > A check with the server side shows that the thread for 'tmsMserver' is

> > > taking up 100% of CPU resource.
> > > After a restart of the server and a walk through, the slowness creeps
> back
> > > almost immediately.

Re: [Wicket-user] Unable to render resource stream Exception

2007-01-26 Thread Konstantinos Lazouras

Thanks Martjin,

your answer makes sense but doesn't actually solve my problem, which in fact is 
that users complain that the wicket web-app is slow.
A check with the server side 
shows that the thread for 'tmsMserver' is taking up 100% of CPU 
resource.
After a restart of the server and a walk through, the 
slowness creeps back almost immediately. All I get in the server 
log are exceptions like the one I posted. 
I suppose what happens is users do something --> they wait --> they get bored 
--> they kill the request --> exception gets written.

So, the main question is why the wicket application is slow?
(also, in web.xml I have no specific statement for development/deployment, and 
expect deployment to be the default)

Konstantinos

- Original Message 
From: Martijn Dashorst <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Friday, January 26, 2007 3:10:34 PM
Subject: Re: [Wicket-user] Unable to render resource stream Exception

Broken pipe means that users (or their browsers) have killed the
request. This log report has been disabled in newer versions. Not sure
if that is the case for 1.2.4, but most certainly for 1.3 and 2.0.

Martijn


On 1/26/07, Konstantinos Lazouras <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> does anyone know why this exception appears at the logs?  (using wicket
> 1.2.3)
>
> 10:18:52,547 ERROR RequestCycle:1043 - Unable to render resource stream
> zip:/prod/applc/bea9/weblogic91/config/tmsdomain/./servers/tmsMserver/tmp/_WL_user/fc/2eqljk/war/WEB-INF/lib/wicket-extensions-1.2.3.jar!/wicket/extensions/markup/html/datepicker/style/aqua/title-bg.gif
> wicket.WicketRuntimeException: Unable to render resource stream
> zip:/prod/applc/bea9/weblogic91/config/tmsdomain/./servers/tmsMserver/tmp/_WL_user/fc/2eqljk/war/WEB-INF/lib/wicket-extensions-1.2.3.jar!/wicket/extensions/markup/html/datepicker/style/aqua/title-bg.gif
> at wicket.Resource.respond(Resource.java:279)
> at
> wicket.Resource.onResourceRequested(Resource.java:135)
> at
> wicket.request.target.resource.SharedResourceRequestTarget.respond(SharedResourceRequestTarget.java:192)
> at
> wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49)
> at
> wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
> at
> wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:902)
> at
> wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:934)
> at wicket.RequestCycle.step(RequestCycle.java:1010)
> at wicket.RequestCycle.steps(RequestCycle.java:1084)
> at wicket.RequestCycle.request(RequestCycle.java:454)
> at
> wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:751)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at
> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
> at
> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
> at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
> at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> at
> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
> at
> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
> at
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
> at
> weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
> at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
> Caused by:
> java.net.SocketException: Broken pipe
> at java.net.SocketOutputStream.socketWrite0(Native
> Method)
> at
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:105)
> at
> java.net.SocketOutputStream.write(SocketOutputStream.java:149)
> at
> weblogic.utils.io.ChunkedOutputStream.writeTo(ChunkedOutputStream.java:185)
> at
> weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:346)
> at
> weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java:1098)
> at
> weblogic.servlet.intern

[Wicket-user] Unable to render resource stream Exception

2007-01-26 Thread Konstantinos Lazouras

Hi all,

does anyone know why this exception appears at the logs?  (using wicket 1.2.3)

10:18:52,547 ERROR RequestCycle:1043 - Unable to render resource stream 
zip:/prod/applc/bea9/weblogic91/config/tmsdomain/./servers/tmsMserver/tmp/_WL_user/fc/2eqljk/war/WEB-INF/lib/wicket-extensions-1.2.3.jar!/wicket/extensions/markup/html/datepicker/style/aqua/title-bg.gif
wicket.WicketRuntimeException: Unable to render resource stream 
zip:/prod/applc/bea9/weblogic91/config/tmsdomain/./servers/tmsMserver/tmp/_WL_user/fc/2eqljk/war/WEB-INF/lib/wicket-extensions-1.2.3.jar!/wicket/extensions/markup/html/datepicker/style/aqua/title-bg.gif
at wicket.Resource.respond(Resource.java:279)
at wicket.Resource.onResourceRequested(Resource.java:135)
at 
wicket.request.target.resource.SharedResourceRequestTarget.respond(SharedResourceRequestTarget.java:192)
at 
wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49)
at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:902)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:934)
at wicket.RequestCycle.step(RequestCycle.java:1010)
at wicket.RequestCycle.steps(RequestCycle.java:1084)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:751)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at 
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at 
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at 
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at 
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at 
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
at 
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
at 
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Caused by:
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:105)
at java.net.SocketOutputStream.write(SocketOutputStream.java:149)
at 
weblogic.utils.io.ChunkedOutputStream.writeTo(ChunkedOutputStream.java:185)
at 
weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:346)
at 
weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java:1098)
at 
weblogic.servlet.internal.ServletOutputStreamImpl.sendHeaders(ServletOutputStreamImpl.java:238)
at 
weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:107)
at wicket.Resource.respond(Resource.java:245)
... 24 more

Thanks,
Konstantinos





 

Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.
http://farechase.yahoo.com/promo-generic-14795097-
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] How to set a markup ID of a HTML element to javascript

2007-01-26 Thread Konstantinos Lazouras


- Original Message 
From: Carfield Yim <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Friday, January 26, 2007 12:01:05 PM
Subject: Re: [Wicket-user] How to set a markup ID of a HTML element to 
javascript

> 1) Why don't just just set the markup id in your markup?
>
>   
> Then you can access it normally with JavaScript. Wicket will
> honour HTML ids set in the HTML template.
>

Because that component will use mulitple time in same page, if I do so
that the ID will be confilct each other




Maybe something like: 

startTimeTextField.add(new SimpleAttributeModifier("id", 
"timeField"+customIndex));

from java could do the job






 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html-
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] https + closing ModalWindow

2007-01-03 Thread Konstantinos Lazouras
Hi all,

I'm having trouble closing a modal window hosting a non-secure page by using 
the ModalWindow.close(target).  The modal opened from a secure (https) page. To 
be a bit more precise:

if ( ((parentPage is https) && (page in modalWindow is https)) || ((parentPage 
is http) && (page in modalWindow is http)) )
   modalWindow closes as expected
else
   modalWindow stays opened!

Is this the way it should behave? Any ideas why this happens and how to avoid 
this behaviour? 


thanks,
Konstantinos







__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.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] Login to wicket-app from another site

2006-12-21 Thread Konstantinos Lazouras
Igor, Johan, thank you for your help,

yes, the case is from SiteA on ServerA to a ServerB with the wicket app.
It is not an sso case, as the user for the wicket app is irrelevant to the user 
of SiteA and will stay that way.
I think the solution is in   "... Then that SiteA just goes to a special mount 
in wicket. With the username and a special uuid..." 

To do this, one thought is to do http post from SiteA and get the 
PageParameters at the signIn Page of the wicket app (and let SiteA determine 
the use of ssl or not, up to this point). There, I just do authentication and 
forward user to wicket-home page, without any user interaction. If 
authentication fails then ok, display the existing wicket-signIn page with the 
appropriate message and let the user continue from there (and forget about 
SiteA).

Is there a better way to do this?

-konstantinos

- Original Message 
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Wednesday, December 20, 2006 11:18:51 PM
Subject: Re: [Wicket-user] Login to wicket-app from another site

if they are on a different server then just use an sso [1] solution

[1] http://www.ja-sig.org/products/cas/

-igor


On 12/20/06, 
Johan Compagner <[EMAIL PROTECTED]> wrote:
my question is is SiteA on the same server?

I have worked on another one that is really van SiteA on ServerA to a ServerB 
with the wicket app.
Then that SiteA just goes to a special mount in wicket. With the username and a 
special uuid. 


johan


On 12/20/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:
i suppose sitea can put the username into session

then either

your login page looks for that username in session and if there uses 
restartresponseexception to redirect to home page

or if you are using an authorization strategy then that bypass the login page


-igor


On 12/20/06, Konstantinos Lazouras <

[EMAIL PROTECTED]> wrote:





Hi all,

I have a wicket application running, that has a login page, where user puts 
username and password and continues to Home.class


. That works fine.  Now I need to bypass the login page, coming from a site 
(e.g. siteA, with its own username and passwd fields and not using wicket) and 
go directly to Home.class (only if the "login behind the scenes" succeeds).


The problems are
a) how should the url to the wicket app look like? (to use at siteA)
b) how to get username and passwd from siteA? 

Any suggestions? 

Cheers,

Konstantinos









__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
 protection around 
http://mail.yahoo.com 



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your

opinions on IT & business topics through brief surveys - and earn cash



http://www.techsay.com/default.php?page=join.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






-
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






__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yah

Re: [Wicket-user] Login to wicket-app from another site

2006-12-20 Thread Konstantinos Lazouras
Thanks Igor,

I 'll try this and get back with results tomorrow,

Konstantinos

- Original Message 
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Wednesday, December 20, 2006 7:04:10 PM
Subject: Re: [Wicket-user] Login to wicket-app from another site

i suppose sitea can put the username into session

then either

your login page looks for that username in session and if there uses 
restartresponseexception to redirect to home page

or if you are using an authorization strategy then that bypass the login page


-igor


On 12/20/06, Konstantinos Lazouras <[EMAIL PROTECTED]> wrote:


Hi all,

I have a wicket application running, that has a login page, where user puts 
username and password and continues to Home.class
. That works fine.  Now I need to bypass the login page, coming from a site 
(e.g. siteA, with its own username and passwd fields and not using wicket) and 
go directly to Home.class (only if the "login behind the scenes" succeeds).


The problems are
a) how should the url to the wicket app look like? (to use at siteA)
b) how to get username and passwd from siteA? 

Any suggestions? 

Cheers,

Konstantinos









__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
 protection around 
http://mail.yahoo.com 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your

opinions on IT & business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.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






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


[Wicket-user] Login to wicket-app from another site

2006-12-20 Thread Konstantinos Lazouras

Hi all,

I have a wicket application running, that has a login page, where user puts 
username and password and continues to Home.class. That works fine.  Now I need 
to bypass the login page, coming from a site (e.g. siteA, with its own username 
and passwd fields and not using wicket) and go directly to Home.class (only if 
the "login behind the scenes" succeeds).

The problems are
a) how should the url to the wicket app look like? (to use at siteA)
b) how to get username and passwd from siteA? 

Any suggestions? 

Cheers,

Konstantinos








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


[Wicket-user] Indicator at DropDownChoice

2006-10-05 Thread Konstantinos Lazouras
Hi,I use two linked DropDownChoice components, just like the linked select boxes example. When the first choice is made, I go back to db to get the choices for the second select, but this takes a few seconds. I 'm trying to put an indicator next to the second select box while this happens, but it doesn't work. I do the following:I make a new DropDownChoice class like this:    public final class IndicatorDropDownChoice extends DropDownChoice implements wicket.ajax.IAjaxIndicatorAware {        private final WicketAjaxIndicatorAppender indicatorAppender = new WicketAjaxIndicatorAppender();        public
 IndicatorDropDownChoice(String id, PropertyModel model, IModel iModel, ChoiceRenderer cr){            super(id, model, iModel, cr);            add(indicatorAppender);        }        public java.lang.String getAjaxIndicatorMarkupId(){            return indicatorAppender.getMarkupId();        }        protected boolean wantOnSelectionChangedNotifications() {            return true;        }    }    Inside the form, I make the selects like this:    //
 countries    List countryList = packModel.loadCountries();    final DropDownChoice countrySelection = new DropDownChoice("countrySelection", new PropertyModel(packModel,                "countrySelection"), countryList, new CountryChoiceRenderer());    countrySelection.setOutputMarkupId(true);    add(countrySelection);    // cities    // reload the choices on display    IModel cityChoices = new AbstractReadOnlyModel() {        public Object getObject(Component component) {            return packModel.loadCities();        }    };    final DropDownChoice citySelection = new IndicatorDropDownChoice("citySelection", new
 PropertyModel(packModel,                "citySelection"), cityChoices, new CityChoiceRenderer());    citySelection.setOutputMarkupId(true);    add(citySelection);    // OnChange Ajax actions for countries    countrySelection.add(new AjaxFormComponentUpdatingBehavior("onchange") {        protected void onUpdate(AjaxRequestTarget target) {            target.addComponent(countrySelection);            citySelection.modelChanging();            target.addComponent(citySelection);            citySelection.modelChanged();        }   
 });    // OnChange Ajax actions for cities    citySelection.add(new AjaxFormComponentUpdatingBehavior("onchange") {        protected void onUpdate(AjaxRequestTarget target) {//            target.addComponent(citySelection);        }    });When I select a country, the 2nd select populates with options but the indicator image next to it doesn't show up while this happens ("Choose one" option is still the selectedat the end, which is ok). If I select a city, the image next to the 2nd box appears, stays for about 15 seconds and then hides (I expected it to appear for less than a second, as long as the change lasts).If I uncommend the line "target.addComponent(citySelection);", then the same happens butthe indicator never goes away. Furthermore, when I select
 another city, a second indicator image appears next to the first (which also stays forever) and so on.The html code of the page is (with the above line uncommended):         Country                Choose One        Cambodia        Greece   
     Italy        Maldives        Singapore        Thailand                    City               Choose One                               City and Country are objects and the renderers just return their names. I use wicket-1.2.2.Can you point me to a solution? What am I doing wrong?Thanx,Kostas-
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