Re: Portlet howto

2007-10-19 Thread Charles CHAHBAZIAN
Hi Ate, Ate Douma a écrit : Charly wrote: Hello, I have the beginning of a solution ! Cool ! My code is based on Liferay's struts support with some adaptations. At this time, Guestbook portlet sample is ok, and I've made a modification in wicket to get Navom

Re: Double "intercept"

2007-10-19 Thread Cristi Manole
my mistake. one intercept is enough. i tried to call redirectToInterceptPage() in Sign In and in WhatEver. Tks again. - Original Message - From: "Cristi Manole" <[EMAIL PROTECTED]> To: Sent: Friday, October 19, 2007 10:58 PM Subject: Re: Double "intercept" I think you didn't under

Re: Double "intercept"

2007-10-19 Thread Cristi Manole
I think you didn't understand, but tks a lot for your idea. What i need is: 1. i have a page which is annotated to be created only if authenticated. 2. if the user is not autheticated and wants to go to that page, he will be redirected to sign in page. 3. on the sign in page, after the user log

Re: Application scope pages

2007-10-19 Thread Igor Vaynberg
this is already how 1.3 works. only the current page is stored in session, older pages are swapped off to disk. -igor On 10/19/07, John Patterson <[EMAIL PROTECTED]> wrote: > HI, > > Is there anyway to have stateless pages that live in the application > scope so I can use AJAX behaviours and oth

Application scope pages

2007-10-19 Thread John Patterson
HI, Is there anyway to have stateless pages that live in the application scope so I can use AJAX behaviours and other listeners? Failing that, can I turn off storing all pages except for the current active page? Cheers, John.

Re: Double "intercept"

2007-10-19 Thread Maurice Marrink
Not sure why you would want the double redirect . but here goes. Use either Swarm, Auth-roles or a custom security implementation to redirect you to a login page. After sign-in use setResponsePage to redirect the user to your other page. In that page you can then return the user to the original

Re: Weird Ajax non-English characters encoding problem.

2007-10-19 Thread Fabio Fioretti
PS: I'm using Wicket 1.2.6. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: wicket-auth-roles updated for wicket 1.3 ?

2007-10-19 Thread auron
Damn, talk about a brain fart - Thanks Igor, much appreciated - Jin igor.vaynberg wrote: > > read the error message > > move that code from constructor to init() > > -igor > > > On 10/19/07, auron <[EMAIL PROTECTED]> wrote: >> >> Hi all - >> >> I am trying to integrate wicket 1.3 beta 4,

Weird Ajax non-English characters encoding problem.

2007-10-19 Thread Fabio Fioretti
Hi all, thanks in advance for your time and suggestions. I'm building a really simple page made up of a form with a text area and a submit button (instance of Button). An AjaxFormSubmitBehavior that performs the "save" operation is added to the button. The page is encoded as follows: Everythin

Re: Best practises and advice for integrating Wicket with Spring

2007-10-19 Thread Igor Vaynberg
but can you do class EntityModel extends LoadableDetachableModel { @Injectable private SessionFactory sf; private Class clazz; private Serializable id; pulblic(Class clazz, Serializable id) { this.clazz=clazz; this.id=id; } public Object load() { return sf.currentSession().load(claz

Re: Best practises and advice for integrating Wicket with Spring

2007-10-19 Thread kent lai
My personal practice has been to abstract the bean lookup with an interface called bean locator, and then create a subclass implementing it with ApplicationContextAware. Then inject that class into my WebApplication. Then my application looks up the required bean from the WebApplication's b

Re: Best practises and advice for integrating Wicket with Spring

2007-10-19 Thread Scott Swank
Have you looked at the phonebook example app? It's a demo application using Wicket, Spring & Hibernate. http://cwiki.apache.org/WICKET/wicket-phonebook.html On 10/19/07, James Perry <[EMAIL PROTECTED]> wrote: > Dear Wicket community, > > What are the best practises and advice for integrating Wic

Re: wicket-auth-roles updated for wicket 1.3 ?

2007-10-19 Thread Igor Vaynberg
read the error message move that code from constructor to init() -igor On 10/19/07, auron <[EMAIL PROTECTED]> wrote: > > Hi all - > > I am trying to integrate wicket 1.3 beta 4, acegi security, and > wicket-auth-roles. For the most part I followed the how-to on > http://cwiki.apache.org/WICKET/

wicket-auth-roles updated for wicket 1.3 ?

2007-10-19 Thread auron
Hi all - I am trying to integrate wicket 1.3 beta 4, acegi security, and wicket-auth-roles. For the most part I followed the how-to on http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html but modified it to use a simple Jdbc Dao for my authenticationDao. When I run the web-app I get

Best practises and advice for integrating Wicket with Spring

2007-10-19 Thread James Perry
Dear Wicket community, What are the best practises and advice for integrating Wicket with Spring. I have read the Wiki so I'm aware of injecting Spring's beans using annotations. I am also interested to know if I should just keep an Spring ApplicationContext in Wicket's Application class, inject t

Double "intercept"

2007-10-19 Thread Cristi Manole
Hello, I was wondering if the following use case can be implemented in wicket: -> a page requires authentification (@AuthorizeInstantiation()) -> if it's not authentif, it will be intercepted by a SignIn.class -> based on a rule, i want to send the user to another page. -> that page will redirect

Re: Ajax question

2007-10-19 Thread Doug Leeper
Gerolf...thanks for the tip. Very useful tool. Anyway I figured out a workaround. I placed my tree in a div and had the menu listen on the div for contextmenu events. Even though I resend the tree in an Ajax call, the contextmenu still works without resending the menu creation stuff. -- View

Re: SLF4J Usage

2007-10-19 Thread spencer.c
Wow. I'm sorry. Yeah, that was what I thought I was using. Thanks for keeping me sane. For appropriate pom dependencies are below, in case anyone needs them. They aren't under the slf4j project or the net/java/dev group. org.slf4j slf4j-api 1.4.3 jar

Re: SLF4J Usage

2007-10-19 Thread Philip A. Chapman
The "Simple" implementation only knows how to output to console: http://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html Perhaps what you want is the Simple-log implementation? http://simple-log.dev.java.net/ On Fri, 2007-10-19 at 06:32 -0700, spencer.c wrote: > This is only tangentially rela

SLF4J Usage

2007-10-19 Thread spencer.c
This is only tangentially related to wicket but I'm trying to get SLF4J set up for my wicket project using the Simplelog, rather than log4j. Has anyone else done this successfully? So far, I've done the following: In pom.xml, I have the following: org.slf4j slf4j-api 1.4.3 ja

Re: Update page asynchronus through the server

2007-10-19 Thread Jan Kriesten
hi stefan, > Thank your for your hint. But the only source I found was at > http://www.xoocode.org. The official www.wicketstuff.org does not know > anything about push/comt. Even the wicketstuff wiki says nothing about push > or comet. Is there any example or some more documentation (I only f

AW: Update page asynchronus through the server

2007-10-19 Thread Stefan Lindner
And where can I find the org.wicketstuff.dojo.AbstractRequireDojoBehavior class that is referenced by wicketstupp-push? It's not in the www.wicketstuff.org's contrib-dojo. Stefan Lindner -Ursprüngliche Nachricht- Von: Jan Kriesten [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 19. Oktob

AW: Update page asynchronus through the server

2007-10-19 Thread Stefan Lindner
Thank your for your hint. But the only source I found was at http://www.xoocode.org. The official www.wicketstuff.org does not know anything about push/comt. Even the wicketstuff wiki says nothing about push or comet. Is there any example or some more documentation (I only found the javadoc)? S

Re: Update page asynchronus through the server

2007-10-19 Thread Jan Kriesten
hi stefan, > Does Wicket provide any mechanism or can anyboldy helb me with a > suggestion for the following problem: wicket itself currently does not. you would either go the way of polling or have a comet service installed which could update asynchronously. in wicket-stuff is a project called

Update page asynchronus through the server

2007-10-19 Thread Stefan Lindner
Does Wicket provide any mechanism or can anyboldy helb me with a suggestion for the following problem: I need to update a page by a server component. Assume you have a list of item in a table and some other application produces a new row in the database. How can I inform the client of this update

Re: Ajax question

2007-10-19 Thread Gerolf Seitz
On 10/19/07, Doug Leeper <[EMAIL PROTECTED]> wrote: > > > At this point, I am not sure what I need to do to debug. Is there any JS > debugging tools that I could use in Firefox that anyone would recommend? you definitely want to use firefug [0] for that purpose. Gerolf [0] https://addons.mozil