Re: Initiating File Download through Ajax is not working

2010-12-04 Thread Sven Meier
Looks fine to me. Does you filename have an extension (e.g. .txt)?

Sven

On Fri, 2010-12-03 at 13:42 -0800, val360 wrote:
 final AJAXDownload download = new AJAXDownload() {
   @Override
   protected IResourceStream getResourceStream() {
   return new FileResourceStream(theDatabase.getFile());
   }
 
   @Override
   protected String getFileName() {
   return theDatabase.getFile().getAbsoluteFile().getName();  //FIX!!! the
 filename gets .html appended to it.
   }
 };
 add(download);
 
 add( new AjaxLink(download) {
   public void onClick( AjaxRequestTarget target ) {
   if( theDatabase.isOpen() ) {
   target.appendJavascript( alert('The database is open, 
 close or pause the
 db first.'); );
   } else {
   download.initiate( target );
   }
   }
 });
 
 And this class is unchanged:
 
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.behavior.AbstractAjaxBehavior;
 import
 org.apache.wicket.request.target.resource.ResourceStreamRequestTarget;
 import org.apache.wicket.util.resource.IResourceStream;
 
 /**
  * @author Sven Meier
  * @author Ernesto Reinaldo Barreiro (reier...@gmail.com)
  */
 public abstract class AJAXDownload extends AbstractAjaxBehavior
 {
   /**
* Call this method to initiate the download.
*/
   public void initiate(AjaxRequestTarget target)
   {
   CharSequence url = getCallbackUrl();
 
   target.appendJavascript(window.location.href=' + url + ');
   }
 
   public void onRequest()
   {
   getComponent().getRequestCycle().setRequestTarget(
   new 
 ResourceStreamRequestTarget(getResourceStream(), getFileName()));
   }
   
   /**
* @see ResourceStreamRequestTarget#getFileName()
*/
   protected String getFileName()
   {
   return null;
   }
 
   /**
* Hook method providing the actual resource stream.
*/
   protected abstract IResourceStream getResourceStream();
 }



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Logout (Session destroy) on the last (stateful) page?

2010-12-04 Thread robert.mcguinness

maybe i misunderstood, but wouldn't removing the page from the page map be
sufficient?   we do this for our confirmation pages that show sensitive data
(like temporary passwords).  
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Logout-Session-destroy-on-the-last-stateful-page-tp3067753p3072309.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Logout (Session destroy) on the last (stateful) page?

2010-12-04 Thread Randy S.
If that bookmarkable uri is a stateless page, will that prevent a new
session from being established? (Assuming the default session store is in
use)
On Dec 3, 2010 10:14 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 it is a good idea to always redirect to a bookmarkable url after
 invalidating your session.

 -igor

 On Thu, Dec 2, 2010 at 2:08 AM, Ernesto Reinaldo Barreiro
 reier...@gmail.com wrote:
 e.g. you could:

 1-Place and AbstractDefaultAjaxBehavior on you page (e.g. to some div
 on your page). Use urlFor to generate the URL to this behavior.  On

 respond(AjaxRequestTarget target) {
Invalidate your session.
 }

 2-Make your page implement IHeaderContributor and on

 public void renderHead(IHeaderResponse response)  {
response.renderOnDomReadyJavascript(here use jquery AJAX
to call
 URL of step 1);
 }

 Ernesto

 On Thu, Dec 2, 2010 at 10:54 AM, Ernesto Reinaldo Barreiro
 reier...@gmail.com wrote:
 Hi Matt,

 I see. Then maybe adding some onDomReady javascript to
 ConfirmationPage that simply goes back to the server and invalidates
 the session? Probably this can't use wicket AJAX machinery: because
 that will probably will also trigger a redirect.

 Regards,

 Ernesto

 On Thu, Dec 2, 2010 at 10:46 AM, Matthias Keller
 matthias.kel...@ergon.ch wrote:
 Hi Ernesto

 No that's not possible because the ConfirmationPage is *stateful* and
 contains lots of information from the session/page state, so it must be
 allowed to display the pre-rendered page once but after that request,
the
 session must be invalidated.

 Thanks

 Matt

 On 2010-12-02 10:34, Ernesto Reinaldo Barreiro wrote:

 Matt,

 Can't you just do some kind of trick so that your ConfirmationPage is
 served as the home page? So that you invalidate the session but at
 getHomePage() you temporarily return your ConfirmationPage?

 Regards,

 Ernesto

 On Thu, Dec 2, 2010 at 10:06 AM, Matthias Keller
 matthias.kel...@ergon.ch  wrote:

 Hi Randy

 Yes it appears to have something to do with that. Our app uses the
 REDIRECT_BUFFER by default (we never actively configured this though)
 which
 appears to be a sensible option for normal operation. I'm not very
 familiar
 with the render strategies but you appear to be right: The page is
 actually
 rendered at the end of the previous request where the session is
 invalidated
 too. Then a redirect happens to the pre-rendered page which fails
because
 the Session is already gone...

 Is there any hook that will be called at the end of the second
request
 serving the pre-rendered content?
 I found a workaround for the moment: In the previous page, I
explicitly
 set
 setRedirect(false); but this has the consequence that if the user
hits
 reload on the confirmation page, he will first be asked about
resending
 the
 POST parameters...

 Anything we could do to invalidate the session at the end of the
serving
 of
 the prerendered page?

 Thanks a lot

 Matt

 On 2010-12-01 20:44, Randy S. wrote:

 Does the redirect to the home page happen because of Wicket's
default
 render
 strategy (REDIRECT_TO_BUFFER) that causes two requests?  You
invalidate
 session on the first which redirects to the buffered response. When
the
 second request comes in expecting to get the already-rendered
response,
 you
 get a new session.


 On Wed, Dec 1, 2010 at 11:53 AM, Martin Makundi
 martin.maku...@koodaripalvelut.comwrote:

 Hi!

 I am curious too. For this reason we had to build our logoutpage so
 that it invalidtes session logically but not in httpsession sense.

 Only clicking something from login page will do that.

 But it's a hack, I would like to know what's the proper way ;)

 **
 Martin



 2010/12/1 Matthias Kellermatthias.kel...@ergon.ch:

 Hi

 I've got the following problem:
 After a user completes a wizard, he sees a last confirmation page

 containing

 some data, thus it must be a stateful page called by the following
 code

 from

 the wizard:

 setResponsePage(new ConfirmationPage(myBean));

 This ConfirmationPage must only be displayed once, thus if the
user
 does

 a

 refresh it must not be available anymore.
 I expected that I would be able to call  session.invalidate() from

 somewhere

 within the ConfirmationPage's onAfterRender or onDetach methods.
 Unfortunately, whenever I do this, the user is automatically
 redirected

 to

 the home page without a trace in the logs
 Any idea how to do that?

 Thanks

 Matt







 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



Re: mount QueryStringUrlCodingStrategy issue when coming via Apache

2010-12-04 Thread Arjun Dhar

The issue seemed to be only on my Host Providers Servers. On my local APache
- tomcat setup I did not get this issue.

However, because its the Hosting that counts and I do not have much access
into their environment, i changed the URL structure from
site/admin/login to site/admin.login and that solved the issue.

The best i got; just incase anyone ever faces this issue.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/mount-QueryStringUrlCodingStrategy-issue-when-coming-via-Apache-tp3069010p3072412.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Remove Child in IVisitor causes problems

2010-12-04 Thread jbrookover

My first JIRA issue for Wicket!

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

Thanks,

Jake
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Remove-Child-in-IVisitor-causes-problems-tp3071290p3072421.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax and ModalWindow Strange behaviour

2010-12-04 Thread Einar Bjerve
Could it be that the modalwindow detaches your models when it closes? 
 
Den 3. des. 2010 kl. 15.22 skrev Poko Booth:

 Hmmm.. Turns out it's not the modal window the one causing the problem.
 The modal was activated by an ajaxsubmitlink and the page form had required
 components thus errors took place.
 I changed those links to ajaxlinks and the problem now appears only after
 the user submits the page form with required errors.
 Is this the normal behavior?
 
 On Fri, Dec 3, 2010 at 4:12 PM, Poko Booth poko.bo...@gmail.com wrote:
 
 Nope...Just tried that, same result. I can't understand why
 components.modalChanged() fixes this problematic behavior... Why is the
 modal window messing with the parent page's components model???
 
 Thanx for the answer though, you were too fast, thought it would be it :)
 
 
 On Fri, Dec 3, 2010 at 3:58 PM, Martin Makundi 
 martin.maku...@koodaripalvelut.com wrote:
 
 Maybe this:
 http://www.mail-archive.com/users@wicket.apache.org/msg35946.html
 
 **
 Martin
 
 2010/12/3 Poko Booth poko.bo...@gmail.com:
 Hi all, here's the case:
 
 I have an object, let's say a, which has a member b which has two
 members:
 owner and driver of same type.
 In a page I have a checkbox which when being pressed, sets driver =
 owner
 and the opposite and I have the components bellow:
 
 TextFieldString ownerName with PropertyModel(a,b.owner.firstname);
 TextFieldString driverName with PropertyModel(a,b.driver.firstname);
 
 When the checkbox is pressed [true] the driverName component is
 disabled.
 The checkbox has an ajax event behavior to do the job/rerendering of the
 appropriate components.
 So far so good.
 
 I have a modal window in the page at another point and after I
 open/close it
 [without messing with the b object at all] the checkbox's behiavior
 becomes weird.
 When the driverName is rerendered, it has no value. The driverName was
 one
 of 20 components that need to be rerendered. Before openening the modal
 window everything works fine, after I close it the inputs are being
 drawn
 with empty strings instead of the real values.
 *If I call driverName.modelChanged() in the checkbox's ajax event
 behavior
 then everything goes as expected.
 Why is that?*
 
 
 Any ideas?
 Thanx,
 Poko
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Multithreaded construction of pages

2010-12-04 Thread NielsBo

Hi

I would like to share my experience with implementing multithreading in my
Wicket application.
The problem was pages containing many independent panels each fething data
from external services, and the result being slow pages because each panel
is processed one at a time in Wicket. 

The solution involved creating a AsyncLoadableDetachableModel class that
does the loading in a separate thread. I use the
java.util.concurrent.ExecutorService threadpool and the
AsyncLoadableDetachableModel then contains a Future object that synchronizes
with the main thread when getObject() is called. 
The threads are started by an IComponentOnBeforeRenderListener on the
application.

Session data is attached/detached to the Threads so they execute the loading
in a context of the end user. I don't use the Wicket Session for this, but a
separate class that implements a MySession interface with properties like
userid, locale etc. that are copied from the Wicket session before starting
the threads.

I think this turned out very nice, and I can now simply replace a use of
LoadableDetachableModel with my new AsyncLoadableDetachableModel where data
is loaded from external services. And it works perfectly! Response time on
the pages are now the time of the slowest panel. Even with just one panel
use the Async model, there can still be an effect if another slow panel is
before the async one in the page/panel hierachy. 

Best regards
Niels Bo



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Multithreaded-construction-of-pages-tp3072354p3072354.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Initiating File Download through Ajax is not working

2010-12-04 Thread val360

Yes it does, it's .fp7

Which is not an extension web server would recognize, could that be the
issue?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Initiating-File-Download-through-Ajax-is-not-working-tp2289784p3072514.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Initiating File Download through Ajax is not working

2010-12-04 Thread Sven Meier
Wicket sets the content type for you *if*
- it is provided by the resource stream
- can be looked up via servlet context from web.xml
- can be derived from URLConnection.

See Response#detectContentType(). Please try out the first option, i.e. 
override FileResourceStream#getContentType().

Sven

Am 04.12.2010 um 16:57 schrieb val360:

 
 Yes it does, it's .fp7
 
 Which is not an extension web server would recognize, could that be the
 issue?
 -- 
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Initiating-File-Download-through-Ajax-is-not-working-tp2289784p3072514.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: mounting SharedResource with known parameters, i.e. MixedParamUrlCodingStrategy

2010-12-04 Thread Doug Leeper

Never mind...IndexedSharedResourceCodingStrategy is what I needed.

Missed that in my initial search.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/mounting-SharedResource-with-known-parameters-i-e-MixedParamUrlCodingStrategy-tp3071302p3072687.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Peter Karich

 Hi,

do you know of any examples for wicket which uses twitter's oAuth?
In my app I can easily login and use the twitter api,
but I'm kind of stuck how to avoid that the user needs to login every 
time after the session expires.


Any other hints, links or best practices?

Kind regards,
Peter.

--
http://jetwick.com twitter search prototype


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Igor Vaynberg
store the token in a cookie and attempt to auto-reologin user based on it?

-igor

On Sat, Dec 4, 2010 at 11:51 AM, Peter Karich peat...@yahoo.de wrote:
  Hi,

 do you know of any examples for wicket which uses twitter's oAuth?
 In my app I can easily login and use the twitter api,
 but I'm kind of stuck how to avoid that the user needs to login every time
 after the session expires.

 Any other hints, links or best practices?

 Kind regards,
 Peter.

 --
 http://jetwick.com twitter search prototype


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Peter Karich

 Igor,

there is token_secure. So storing it in clean text should be ok, right?
Or do I need to encrypt (or at leat base64ing) it?

Regards,
Peter.


store the token in a cookie and attempt to auto-reologin user based on it?

-igor

On Sat, Dec 4, 2010 at 11:51 AM, Peter Karichpeat...@yahoo.de  wrote:

  Hi,

do you know of any examples for wicket which uses twitter's oAuth?
In my app I can easily login and use the twitter api,
but I'm kind of stuck how to avoid that the user needs to login every time
after the session expires.

Any other hints, links or best practices?

Kind regards,
Peter.

--
http://jetwick.com twitter search prototype


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





--
http://jetwick.com twitter search prototype


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Igor Vaynberg
not sure, but i would think it would be ok. i think the token should
already be url safe, but once again - not sure.

-igor

On Sat, Dec 4, 2010 at 12:38 PM, Peter Karich peat...@yahoo.de wrote:
  Igor,

 there is token_secure. So storing it in clean text should be ok, right?
 Or do I need to encrypt (or at leat base64ing) it?

 Regards,
 Peter.

 store the token in a cookie and attempt to auto-reologin user based on it?

 -igor

 On Sat, Dec 4, 2010 at 11:51 AM, Peter Karichpeat...@yahoo.de  wrote:

  Hi,

 do you know of any examples for wicket which uses twitter's oAuth?
 In my app I can easily login and use the twitter api,
 but I'm kind of stuck how to avoid that the user needs to login every
 time
 after the session expires.

 Any other hints, links or best practices?

 Kind regards,
 Peter.

 --
 http://jetwick.com twitter search prototype


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 http://jetwick.com twitter search prototype


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Peter Karich

 Hi Igor!

thanks! I will try it out. (I also think token is url safe)

BTW: I meant, there is also 'token_secure', not only 'token' in 
twitter's oAuth (+ the app credentials).
So a hacker cannot easily guess the 'token' for the user and get a fake 
login via modifying its cookie.

like it would be the case if I would store the user name in the cookie only.

(But this method is not safe if you as a user are connected via an 
unsecured WLAN)


Regards,
Peter.


not sure, but i would think it would be ok. i think the token should
already be url safe, but once again - not sure.

-igor

On Sat, Dec 4, 2010 at 12:38 PM, Peter Karichpeat...@yahoo.de  wrote:

  Igor,

there is token_secure. So storing it in clean text should be ok, right?
Or do I need to encrypt (or at leat base64ing) it?

Regards,
Peter.


store the token in a cookie and attempt to auto-reologin user based on it?

-igor

On Sat, Dec 4, 2010 at 11:51 AM, Peter Karichpeat...@yahoo.dewrote:

  Hi,

do you know of any examples for wicket which uses twitter's oAuth?
In my app I can easily login and use the twitter api,
but I'm kind of stuck how to avoid that the user needs to login every
time
after the session expires.

Any other hints, links or best practices?

Kind regards,
Peter.



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Igor Vaynberg
you can mark the cookie as secure so it will only be transferred over https.

-igor

On Sat, Dec 4, 2010 at 12:56 PM, Peter Karich peat...@yahoo.de wrote:
  Hi Igor!

 thanks! I will try it out. (I also think token is url safe)

 BTW: I meant, there is also 'token_secure', not only 'token' in twitter's
 oAuth (+ the app credentials).
 So a hacker cannot easily guess the 'token' for the user and get a fake
 login via modifying its cookie.
 like it would be the case if I would store the user name in the cookie only.

 (But this method is not safe if you as a user are connected via an unsecured
 WLAN)

 Regards,
 Peter.

 not sure, but i would think it would be ok. i think the token should
 already be url safe, but once again - not sure.

 -igor

 On Sat, Dec 4, 2010 at 12:38 PM, Peter Karichpeat...@yahoo.de  wrote:

  Igor,

 there is token_secure. So storing it in clean text should be ok, right?
 Or do I need to encrypt (or at leat base64ing) it?

 Regards,
 Peter.

 store the token in a cookie and attempt to auto-reologin user based on
 it?

 -igor

 On Sat, Dec 4, 2010 at 11:51 AM, Peter Karichpeat...@yahoo.de
  wrote:

  Hi,

 do you know of any examples for wicket which uses twitter's oAuth?
 In my app I can easily login and use the twitter api,
 but I'm kind of stuck how to avoid that the user needs to login every
 time
 after the session expires.

 Any other hints, links or best practices?

 Kind regards,
 Peter.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Validate after Submit?

2010-12-04 Thread splitshade

well,

attaching a validator to a specific id could possibly work, but this is not
very usable, because thus i would need to know about the internal structure
of a component.
But i do not have any better idea either, so thanks for the hint!

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Validate-after-Submit-tp3070168p3072763.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Peter Karich

 oh, but this would raise other questions :-)

e.g. how can I setup https with tomcat/wicket? Or do I need to setup 
this with apache only?


Regards,
Peter.


you can mark the cookie as secure so it will only be transferred over https.

-igor

On Sat, Dec 4, 2010 at 12:56 PM, Peter Karichpeat...@yahoo.de  wrote:

  Hi Igor!

thanks! I will try it out. (I also think token is url safe)

BTW: I meant, there is also 'token_secure', not only 'token' in twitter's
oAuth (+ the app credentials).
So a hacker cannot easily guess the 'token' for the user and get a fake
login via modifying its cookie.
like it would be the case if I would store the user name in the cookie only.

(But this method is not safe if you as a user are connected via an unsecured
WLAN)

Regards,
Peter.


not sure, but i would think it would be ok. i think the token should
already be url safe, but once again - not sure.

-igor

On Sat, Dec 4, 2010 at 12:38 PM, Peter Karichpeat...@yahoo.dewrote:

  Igor,

there is token_secure. So storing it in clean text should be ok, right?
Or do I need to encrypt (or at leat base64ing) it?

Regards,
Peter.


store the token in a cookie and attempt to auto-reologin user based on
it?

-igor

On Sat, Dec 4, 2010 at 11:51 AM, Peter Karichpeat...@yahoo.de
  wrote:

  Hi,

do you know of any examples for wicket which uses twitter's oAuth?
In my app I can easily login and use the twitter api,
but I'm kind of stuck how to avoid that the user needs to login every
time
after the session expires.

Any other hints, links or best practices?

Kind regards,
Peter.



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WiQuery broken by adding component to AjaxRequestTarget

2010-12-04 Thread guydog28

For anyone following this, here is a link to the issue on the WiQuery site,
where I have provided additional details and attached a sample project:

http://code.google.com/p/wiquery/issues/detail?id=143
http://code.google.com/p/wiquery/issues/detail?id=143 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WiQuery-broken-by-adding-component-to-AjaxRequestTarget-tp3066621p3072774.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Multithreaded construction of pages

2010-12-04 Thread robert.mcguinness

Can you show some code?  I created something similar but I'm curious about
your implementation.  

https://gist.github.com/706011 https://gist.github.com/706011 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Multithreaded-construction-of-pages-tp3072354p3072948.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: opening ModalWindow on page load

2010-12-04 Thread Ernesto Reinaldo Barreiro
Done. Added the class to:

https://cwiki.apache.org/confluence/display/WICKET/Modal+Windows


Regards,

Ernesto

On Tue, Nov 23, 2010 at 4:24 PM, Martin Grigorov mgrigo...@apache.org wrote:
 Wiki page is OK for now.
 1) it is easy to create if needed
 2) I don't remember such request in the mailing lists for the last 2 years,
 so it is not something everyone needs

 My 2c.

 On Tue, Nov 23, 2010 at 4:16 PM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:

 Hi,

 In one of the application we working at right now we have the
 requirement that the user should fill in some extra information before
 he/she is allowed to work with some pages. We wanted to do this with a
 modal window blocking the page till this information is provided. So,
 the requirement is:

 -Modal window should be opened immediately after a page is load.

 After a bit of messing around/googling we came up with this class, who
 seems to be doing the job:-)

 public class OpenOnLoadModalWindow extends ModalWindow implements
 IHeaderContributor {

        private static final long serialVersionUID = 1L;

        /**
         * @param id
         */
        public OpenOnLoadModalWindow(String id) {
                super(id);
        }

        /**
         * @param id
         * @param model
         */
        public OpenOnLoadModalWindow(String id, IModel? model) {
                super(id, model);
        }

        /**
         * Adds the JavaScript to initially open modal window.
         */
        public void renderHead(IHeaderResponse response)
        {

  response.renderOnDomReadyJavascript(getWindowOpenJavascript());
        }

        /*
         * (non-Javadoc)
         * @see
 org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow#makeContentVisible()
         */
       �...@override
        protected boolean makeContentVisible()
        {
                return true;
        }
 }

 Would this class, or one derived form this one, or a better solution
 if one is known:), be included on the framework. Or this is just a
 topic for wiki page?

 Regards,

 Ernesto

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org