Re: Handling OnKeyPress event

2010-12-29 Thread Tejash Tarun
Hi,

I guess if we add
 AjaxFormComponentUpdatingBehavior() to the component then
we can get the string from the model
and then we can extract the (last) character keyed-in.
This should work for normal characters.

Regards,
Tejash

On Wed, Dec 29, 2010 at 1:05 PM, Josh Kamau joshnet2...@gmail.com wrote:

 Hi Team;

 Is there a way of handling onKey.. events in wicket, where by i will know
 which key was pressed. I specifically want to do some ajax update when
 Return key is pressed.

 Kind regards.
 Josh.



Re: Handling OnKeyPress event

2010-12-29 Thread Martin Grigorov
Hi Josh,

This is pure JavaScript task. You need something like : onkeypress=if
(event.keyCode !== 13) return; doSomething();. I.e. fast return if the key
is not ENTER, otherwise do what you need to do.

If you need this for Ajax component/behavior then see its
getAjaxCallDecorator() method.

See also Wicket's helper JS
functions: wicketKeyCode(Wicket.fixEvent(event)).

On Wed, Dec 29, 2010 at 8:35 AM, Josh Kamau joshnet2...@gmail.com wrote:

 Hi Team;

 Is there a way of handling onKey.. events in wicket, where by i will know
 which key was pressed. I specifically want to do some ajax update when
 Return key is pressed.

 Kind regards.
 Josh.



Re: Handling OnKeyPress event

2010-12-29 Thread Bas Gooren

Hi Josh,

Have a look at 
http://databinder.net/javadoc/net/databinder/components/AjaxOnKeyPausedUpdater.html
It's a Java + Javascript ready-to-run component, of which the source is 
available.


Bas

- Original Message - 
From: Martin Grigorov mgrigo...@apache.org

To: users@wicket.apache.org
Sent: Wednesday, December 29, 2010 9:40 AM
Subject: Re: Handling OnKeyPress event



Hi Josh,

This is pure JavaScript task. You need something like : onkeypress=if
(event.keyCode !== 13) return; doSomething();. I.e. fast return if the 
key

is not ENTER, otherwise do what you need to do.

If you need this for Ajax component/behavior then see its
getAjaxCallDecorator() method.

See also Wicket's helper JS
functions: wicketKeyCode(Wicket.fixEvent(event)).

On Wed, Dec 29, 2010 at 8:35 AM, Josh Kamau joshnet2...@gmail.com wrote:


Hi Team;

Is there a way of handling onKey.. events in wicket, where by i will know
which key was pressed. I specifically want to do some ajax update when
Return key is pressed.

Kind regards.
Josh.






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



Re: Moving wicketstuff to github

2010-12-29 Thread Martijn Dashorst
Martin Grigorov tested git trunk against svn trunk and both were
equal. We're going to move some stuff around between the test import
and final repository. My guess is somewhere later today or tomorrow in
pacific time.

Martijn

On Tue, Dec 28, 2010 at 12:20 PM, Sebastian nospam...@gmx.net wrote:
 Hi Martijn,

 can we commit to wicketstuff again? If so, where: sf.net or github?

 Regards,

 Seb

 On 23.12.2010 11:04, Martijn Dashorst wrote:

 All,

 Last week we (wicket+wicketstuff devs) had a discussion on dev@ and
 decided to move all wicketstuff code to github.com. Reasons to move to
 github are:

  - using git
  - social features for interacting with grander community (merging,
 pull requests, forking)
  - integrated wiki, issue tracker (no more maintenance for
 confluence/jira)

 The import is currently running (albeit slowly) and as a consequence
 we have disabled write access to the SVN repository at sourceforge.

 We'll let you know when we're up and running again.

 Martijn

 -
 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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

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



Adding openid-authentication to spring/wicket-auth-roles?

2010-12-29 Thread Tom Howe
I have followed the instructions at
https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html to
integrate basic user/pass authentication using Spring security into my
wicket app.
How would I go about adding open-id authentication? Spring security supports
openid-login as a config option but adding this has no effect. I think
this is because the example integration with wicket-auth-roles on that page
seems geared only towards user/password authentication.

Are there any examples for adding openid login in a similar manner to
stackoverflow to a wicket app, preferably using spring?

Thanks, Tom


Re: Adding openid-authentication to spring/wicket-auth-roles?

2010-12-29 Thread Eric Hamel
This might help...

http://www.ibm.com/developerworks/java/library/j-openid/index.html

On Wed, Dec 29, 2010 at 5:04 AM, Tom Howe tomh...@artcore.com wrote:

 I have followed the instructions at
 https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.htmlto
 integrate basic user/pass authentication using Spring security into my
 wicket app.
 How would I go about adding open-id authentication? Spring security
 supports
 openid-login as a config option but adding this has no effect. I think
 this is because the example integration with wicket-auth-roles on that page
 seems geared only towards user/password authentication.

 Are there any examples for adding openid login in a similar manner to
 stackoverflow to a wicket app, preferably using spring?

 Thanks, Tom




-- 
Sent by Eric Hamel


Re: Adding openid-authentication to spring/wicket-auth-roles?

2010-12-29 Thread Tom Howe
Hi Eric,
I have seen this and maybe it is the approach I should take, however it
makes no mention of Spring and Id like to be able to have it load the user
roles from my spring config.

If I use openid4java http://code.google.com/ to determine whether I can
authenticate, how do I then tell Spring that I have authenticated them?

Tom

On Wed, Dec 29, 2010 at 12:49 PM, Eric Hamel dantehick...@gmail.com wrote:

 This might help...

 http://www.ibm.com/developerworks/java/library/j-openid/index.html

 On Wed, Dec 29, 2010 at 5:04 AM, Tom Howe tomh...@artcore.com wrote:

  I have followed the instructions at
 
 https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.htmlto
  integrate basic user/pass authentication using Spring security into my
  wicket app.
  How would I go about adding open-id authentication? Spring security
  supports
  openid-login as a config option but adding this has no effect. I think
  this is because the example integration with wicket-auth-roles on that
 page
  seems geared only towards user/password authentication.
 
  Are there any examples for adding openid login in a similar manner to
  stackoverflow to a wicket app, preferably using spring?
 
  Thanks, Tom
 



 --
 Sent by Eric Hamel



Re: Display component feedback message once: safety net renders them always before

2010-12-29 Thread joseph.pachod

Hi Pedro Santos

I hadn't seen your answer, sorry. 

In between, I had time again to look into my issue. 

Actually, the root of it was about not displaying the feedback message
twice: once in the general feedback panel and once close from the generating
component.

As such, while helpful, your solution didn't help there.

But I now found this workaround for this:
  add(new FeedbackPanel(plainFeedback, new IFeedbackMessageFilter()
{

@Override
public boolean accept(final FeedbackMessage message)
{
ListIBehavior behaviors =
message.getReporter().getBehaviors();
for (IBehavior behavior : behaviors)
{
if (behavior instanceof FeedbackHighlightBehavior)
{
return false;
}
}
return true;
}
}));

= the feedback panel doesn't display the message twice :)

I have yet to put this change in production, where maybe I would have to do
extra check (like to check that the reporter component is effectively
visible in order to be sure of the feedback message display), but at least
I've found a way to go.

:)

++
joseph


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Display-component-feedback-message-once-safety-net-renders-them-always-before-tp3068969p3167130.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: IResourceSettings.setUseTimestampOnResources(true) and performance

2010-12-29 Thread mf

What about Version 1.4.15?  I got this message for each request. I think i
slows down, too?


DEBUG | 29.12. 13:31:55 | cannot convert url:
jar:file:/D:/eclipse_jee_helios/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mytest/WEB-INF/lib/wicket-1.4.15.jar!/org/apache/wicket/markup/html/wicket-event.js
to file (URI is not hierarchical), falling back to the inputstream for
polling | UrlResourceStream.init() |
org.apache.wicket.util.resource.UrlResourceStream 
class org.apache.wicket.ajax.WicketAjaxReference,
org/apache/wicket/ajax/wicket-ajax.js
DEBUG | 29.12. 13:31:55 | Attempting to locate resource
'org/apache/wicket/ajax/wicket-ajax.js' on path [folders = [], webapppaths:
[]] | ResourceStreamLocator.locateByResourceFinder() |
org.apache.wicket.util.resource.locator.ResourceStreamLocator 
DEBUG | 29.12. 13:31:55 | Attempting to locate resource
'org/apache/wicket/ajax/wicket-ajax.js' using classloader WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
-- Parent Classloader:
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IResourceSettings-setUseTimestampOnResources-true-and-performance-tp3057946p3167187.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: IResourceSettings.setUseTimestampOnResources(true) and performance

2010-12-29 Thread Peter Ertl
1.4 is not affected - timestamps on resources are currently only available in 
wicket 1.5

Am 29.12.2010 um 15:49 schrieb mf:

 
 What about Version 1.4.15?  I got this message for each request. I think i
 slows down, too?
 
 
 DEBUG | 29.12. 13:31:55 | cannot convert url:
 jar:file:/D:/eclipse_jee_helios/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mytest/WEB-INF/lib/wicket-1.4.15.jar!/org/apache/wicket/markup/html/wicket-event.js
 to file (URI is not hierarchical), falling back to the inputstream for
 polling | UrlResourceStream.init() |
 org.apache.wicket.util.resource.UrlResourceStream 
 class org.apache.wicket.ajax.WicketAjaxReference,
 org/apache/wicket/ajax/wicket-ajax.js
 DEBUG | 29.12. 13:31:55 | Attempting to locate resource
 'org/apache/wicket/ajax/wicket-ajax.js' on path [folders = [], webapppaths:
 []] | ResourceStreamLocator.locateByResourceFinder() |
 org.apache.wicket.util.resource.locator.ResourceStreamLocator 
 DEBUG | 29.12. 13:31:55 | Attempting to locate resource
 'org/apache/wicket/ajax/wicket-ajax.js' using classloader WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
 -- Parent Classloader:
 -- 
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/IResourceSettings-setUseTimestampOnResources-true-and-performance-tp3057946p3167187.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