Re: Portlet howto
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 Navomatic and other bookmarkablePage working. The main point is that Liferay want a new HttpServletRequest (from theirs object) in ServletContextProvider implementation of ServletContextProvider and we must copy the request's parameters from the original request to the new one. Weird, but I guess it is something Liferay specific. You're right. Because if I keep the same HttpServletRequest, I have a ClassCastException later because Liferay use these specific objects... I translate also the "_wu" (WicketPortlet.WICKET_URL_PORTLET_PARAMETER) parameter into differents parameters Why? The WicketPortlet dispatches to the servlet/filter using this url, so the underlying web container (e.g. catalina) should already provide the query string parameters as request parameters (as required by the servlet spec). You can have a look to my 3 classes at the end of this mail. I notice that you don't set the provided Map portletArg arguments on the created PortletURLImpl in createResourceURL method. You probably should... I tried that solution first. In that case, the url looks like that : http://localhost:8080/user/joebloggs/3?p_p_id=NavomaticApplication_WAR_wicketexamples&p_p_action=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_NavomaticApplication_WAR_wicketexamples__wuview=%2Fnavomatic%2F%3Fwicket%3AbookmarkablePage%3D%253Aorg.apache.wicket.examples.navomatic.Page2 But the WebRequestCodingStrategy (at line : 518) use the request.getParameter() and on my debug sessions i saw that the portletArgs i've put in the PortletURLImpl parameters are available in the queryString but not in the parameters of the request ... (looks strange for me too, it seems to be a liferay's bug) I've got a problem for all bookmarkablePage, because the argument are encoded by Wicket, and Liferay encode it second time. Liferay shouldn't be doing that: you should get back the parameters previously set on a PortletURL exactly the same. Seems like a Liferay bug to me. About that question, as you can see in the sample url I've put, we have wicket%3AbookmarkablePage%3D%253Aorg.apache.wicket.examples.navomatic.Page2 you can see that the there are 2 encoding : 1) wicket set the parameter from ":org.apache.wicket.examples.navomatic.Page2" to "%3Aorg.apache.wicket.examples.navomatic.Page2" 2) Liferay encode the "%" character to "%25" When Liferay get back the Encoded parameter, the "%25" is set into "%" but no Wicket Code transform back the "%3A" to ":" Note : Wicket Encoding is done by : org.apache.wicket.request.target.coding.WebRequestEncoder : line 86 escapedValue = URLEncoder.encode(escapedValue, application.getRequestCycleSettings().getResponseRequestEncoding()); and I can't find a decode for this level in Wicket's code. The parameter received is like "%3Aorg.apache.wicket.examples.navomatic.Page2". So I add a call to decode function from "org.apache.wicket.protocol.http.RequestUtils" Here is my code modification (it's maybe possible to find a another solution too) in the class "org.apache.wicket.protocol.http.request.WebRequestCodingStrategy", method addBookmarkablePageParameters(final Request request, final RequestParameters parameters) (line : 521 / SVN revision : 585043) I change from final String[] components = Strings.split(requestString, Component.PATH_SEPARATOR); to final String[] components = Strings.split(RequestUtils.decode(requestString),Component.PATH_SEPARATOR); (Note: I test it with jetspeed and it works) The main remaining problem is about Ajax portlet. I have this Error : === 15:38:53,248 ERROR [[default]:731] "Servlet.service()" pour la servlet default a lancé une exception java.lang.NullPointerException at org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:204) at org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:66) Seems like a strange NPE to me. Looking at WebResponse.java:204, the only null reference in that code line could be the url string itself, but as the stacktrace indicates, the redirect is called from BufferedWebResponse.java:66 and there it only does that *if* the url != null. Can you further debug this? Your Right, the redirectURL is not null in BufferedWebResponse.java:66, but is set to null by Liferay's code on : com.liferay.portlet.PortletServletResponse code is : public String encodeRedirectURL(String url) { return null; } I don't know why, but I have to see wi
Re: Double "intercept"
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 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 logges in, i want the user to be redirected to another page, where by pressing a button he will end up in the original page (now being authenticated). My problem is if i put setResponsePage(WhatEverPage.class) in SignIn class, when i'm on WhatEver class, i cannot say continueToOriginalDestination cause the original page will no longer be on PageMap (i think) -> it will return false always. So , again, how can i do this? :-? Tks in advance. - Original Message - From: "Maurice Marrink" <[EMAIL PROTECTED]> To: Sent: Friday, October 19, 2007 9:48 PM Subject: Re: Double "intercept" 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 page by calling continueToOriginalDestination() followed by a return in the constructor. However keep in mind that there is not always an original destination (see return value of continueToOriginalDestination()). The above is just as easily accomplished with just one intercept. By using this little construct in your sign-in page after signing in. if (!getPage().continueToOriginalDestination()) { setResponsePage(WhatEverPage.class); //or new WhatEverPage(complex constructor); } Maurice On 10/19/07, Cristi Manole <[EMAIL PROTECTED]> wrote: 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 the user to the original page. How could I accomplish this? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Double "intercept"
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 logges in, i want the user to be redirected to another page, where by pressing a button he will end up in the original page (now being authenticated). My problem is if i put setResponsePage(WhatEverPage.class) in SignIn class, when i'm on WhatEver class, i cannot say continueToOriginalDestination cause the original page will no longer be on PageMap (i think) -> it will return false always. So , again, how can i do this? :-? Tks in advance. - Original Message - From: "Maurice Marrink" <[EMAIL PROTECTED]> To: Sent: Friday, October 19, 2007 9:48 PM Subject: Re: Double "intercept" 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 page by calling continueToOriginalDestination() followed by a return in the constructor. However keep in mind that there is not always an original destination (see return value of continueToOriginalDestination()). The above is just as easily accomplished with just one intercept. By using this little construct in your sign-in page after signing in. if (!getPage().continueToOriginalDestination()) { setResponsePage(WhatEverPage.class); //or new WhatEverPage(complex constructor); } Maurice On 10/19/07, Cristi Manole <[EMAIL PROTECTED]> wrote: 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 the user to the original page. How could I accomplish this? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Application scope pages
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 other listeners? Failing > that, can I turn off storing all pages except for the current active > page? > > Cheers, > > John. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Application scope pages
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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Double "intercept"
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 page by calling continueToOriginalDestination() followed by a return in the constructor. However keep in mind that there is not always an original destination (see return value of continueToOriginalDestination()). The above is just as easily accomplished with just one intercept. By using this little construct in your sign-in page after signing in. if (!getPage().continueToOriginalDestination()) { setResponsePage(WhatEverPage.class); //or new WhatEverPage(complex constructor); } Maurice On 10/19/07, Cristi Manole <[EMAIL PROTECTED]> wrote: > 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 the user to the original page. > > How could I accomplish this? > > Thanks in advance. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Weird Ajax non-English characters encoding problem.
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 ?
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, 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 the following error message: >> >> 2007-10-19 08:37:33.686::WARN: failed wicket.myapp >> org.apache.wicket.WicketRuntimeException: Use Application.init() method >> for >> conf >> iguring your application object >> at >> org.apache.wicket.Application.getSettings(Application.java:829) >> at >> org.apache.wicket.Application.getSecuritySettings(Application.java:56 >> 6) >> at >> edu.ucsd.acp.web.WicketApplication.(WicketApplication.java:21) >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct >> orAccessorImpl.java:39) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC >> onstructorAccessorImpl.java:27) >> at >> java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> at java.lang.Class.newInstance0(Class.java:355) >> at java.lang.Class.newInstance(Class.java:308) >> [...] >> >> Here is my Application code: >> >> public class WicketApplication extends AuthenticatedWebApplication { >> //to be injected by Spting >> private AuthenticationManager authenticationManager; >> /** >> * Constructor >> */ >> public WicketApplication() { >> super.init(); >> //Security Settings >> getSecuritySettings().setAuthorizationStrategy(new >> MetaDataRoleAuthorizationStrategy(this)); >> >> MetaDataRoleAuthorizationStrategy.authorize(BasePage.class, >> SecurityConstants.ROLE_ADMIN); >> } >> >> >> Could this be due to an incompatibility between wicket 1.3 and >> wicket-auth-roles? >> >> Thanks, >> Jin >> -- >> View this message in context: >> http://www.nabble.com/wicket-auth-roles-updated-for-wicket-1.3---tf4654119.html#a13297288 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/wicket-auth-roles-updated-for-wicket-1.3---tf4654119.html#a13299261 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Weird Ajax non-English characters encoding problem.
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: Everything works fine until a user submits a non-English text (French or Spanish, with characters like "íéñ", still supported by the ISO-8859-1 encoding): all non-English characters are scrambled. What appears weird to me is that the problem doesn't happen if I use, for example, a SubmitLink instead of an Ajax-enabled Button. This makes me point to Ajax as the responsible, and to the fact that Wicket uses UTF-8 for requests... but I really have no clue about how to fix it. Any idea? Thank you very much and have a nice week-end. Fabio Fioretti - WindoM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practises and advice for integrating Wicket with Spring
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(clazz, id); } // for testing public void setSessionFactory(SessionFactory sf) { this.sf=sf; } } add(new UserEditorPanel("editor", new EntityModel(User.class, 15L))); with salve.googlecode.com you can! :) -igor On 10/19/07, kent lai <[EMAIL PROTECTED]> wrote: > 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 bean locator class. > > My bean locator also customized the lookup via class type (since I > don't really have multiple classes of the same 'type') > > Guess I just liked to keep my pages lean... > > > On 19 Oct 2007, at 11:40 PM, James Perry wrote: > > > 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 the proxy- > > based > > Service POJOs into the Application or just inject them into each > > component > > that needs to use my service's methods? > > > > Look forward to your advice, > > James. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practises and advice for integrating Wicket with Spring
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 bean locator class. My bean locator also customized the lookup via class type (since I don't really have multiple classes of the same 'type') Guess I just liked to keep my pages lean... On 19 Oct 2007, at 11:40 PM, James Perry wrote: 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 the proxy- based Service POJOs into the Application or just inject them into each component that needs to use my service's methods? Look forward to your advice, James. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practises and advice for integrating Wicket with Spring
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 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 the proxy-based > Service POJOs into the Application or just inject them into each component > that needs to use my service's methods? > > Look forward to your advice, > James. > -- Scott Swank reformed mathematician - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-auth-roles updated for wicket 1.3 ?
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/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 the following error message: > > 2007-10-19 08:37:33.686::WARN: failed wicket.myapp > org.apache.wicket.WicketRuntimeException: Use Application.init() method for > conf > iguring your application object > at org.apache.wicket.Application.getSettings(Application.java:829) > at > org.apache.wicket.Application.getSecuritySettings(Application.java:56 > 6) > at > edu.ucsd.acp.web.WicketApplication.(WicketApplication.java:21) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct > orAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC > onstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at java.lang.Class.newInstance0(Class.java:355) > at java.lang.Class.newInstance(Class.java:308) > [...] > > Here is my Application code: > > public class WicketApplication extends AuthenticatedWebApplication { > //to be injected by Spting > private AuthenticationManager authenticationManager; > /** > * Constructor > */ > public WicketApplication() { > super.init(); > //Security Settings > getSecuritySettings().setAuthorizationStrategy(new > MetaDataRoleAuthorizationStrategy(this)); > MetaDataRoleAuthorizationStrategy.authorize(BasePage.class, > SecurityConstants.ROLE_ADMIN); > } > > > Could this be due to an incompatibility between wicket 1.3 and > wicket-auth-roles? > > Thanks, > Jin > -- > View this message in context: > http://www.nabble.com/wicket-auth-roles-updated-for-wicket-1.3---tf4654119.html#a13297288 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wicket-auth-roles updated for wicket 1.3 ?
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 the following error message: 2007-10-19 08:37:33.686::WARN: failed wicket.myapp org.apache.wicket.WicketRuntimeException: Use Application.init() method for conf iguring your application object at org.apache.wicket.Application.getSettings(Application.java:829) at org.apache.wicket.Application.getSecuritySettings(Application.java:56 6) at edu.ucsd.acp.web.WicketApplication.(WicketApplication.java:21) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) [...] Here is my Application code: public class WicketApplication extends AuthenticatedWebApplication { //to be injected by Spting private AuthenticationManager authenticationManager; /** * Constructor */ public WicketApplication() { super.init(); //Security Settings getSecuritySettings().setAuthorizationStrategy(new MetaDataRoleAuthorizationStrategy(this)); MetaDataRoleAuthorizationStrategy.authorize(BasePage.class, SecurityConstants.ROLE_ADMIN); } Could this be due to an incompatibility between wicket 1.3 and wicket-auth-roles? Thanks, Jin -- View this message in context: http://www.nabble.com/wicket-auth-roles-updated-for-wicket-1.3---tf4654119.html#a13297288 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best practises and advice for integrating Wicket with Spring
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 the proxy-based Service POJOs into the Application or just inject them into each component that needs to use my service's methods? Look forward to your advice, James.
Double "intercept"
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 the user to the original page. How could I accomplish this? Thanks in advance.
Re: Ajax question
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 this message in context: http://www.nabble.com/Ajax-question-tf4644668.html#a13296296 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SLF4J Usage
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 org.grlea.log simple-log 2.0.1 jar org.grlea.log.adapters simple-log-slf4j 2.0.1 jar Philip A. Chapman wrote: > > 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 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 >> jar >> >> >> org.slf4j >> slf4j-simple >> 1.4.3 >> jar >> >> >> I am also using the jetty plugin, ala: >> >> >> org.mortbay.jetty >> maven-jetty-plugin >> >> >> org.apache.maven.plugins >> maven-compiler-plugin >> >> 1.6 >> 1.6 >> >> >> >> >> I have a simplelog.properties file in /classes, with the following >> content: >> simplelog.logFile = output.log >> >> I get no error messages, but the log file is never created, and it >> appears >> all logging is going straight to the console. >> >> Anyone see what I'm missing? If so, thanks in advance! >> > -- > Philip A. Chapman > > Desktop and Web Application Development: > Java, .NET, PostgreSQL, MySQL, MSSQL > Linux, Windows 2000, Windows XP > > > > -- View this message in context: http://www.nabble.com/SLF4J-Usage-tf4653167.html#a13295527 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SLF4J Usage
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 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 > jar > > > org.slf4j > slf4j-simple > 1.4.3 > jar > > > I am also using the jetty plugin, ala: > > > org.mortbay.jetty > maven-jetty-plugin > > > org.apache.maven.plugins > maven-compiler-plugin > > 1.6 > 1.6 > > > > > I have a simplelog.properties file in /classes, with the following content: > simplelog.logFile = output.log > > I get no error messages, but the log file is never created, and it appears > all logging is going straight to the console. > > Anyone see what I'm missing? If so, thanks in advance! > -- Philip A. Chapman Desktop and Web Application Development: Java, .NET, PostgreSQL, MySQL, MSSQL Linux, Windows 2000, Windows XP signature.asc Description: This is a digitally signed message part
SLF4J Usage
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 jar org.slf4j slf4j-simple 1.4.3 jar I am also using the jetty plugin, ala: org.mortbay.jetty maven-jetty-plugin org.apache.maven.plugins maven-compiler-plugin 1.6 1.6 I have a simplelog.properties file in /classes, with the following content: simplelog.logFile = output.log I get no error messages, but the log file is never created, and it appears all logging is going straight to the console. Anyone see what I'm missing? If so, thanks in advance! -- View this message in context: http://www.nabble.com/SLF4J-Usage-tf4653167.html#a13294464 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Update page asynchronus through the server
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 found the > javadoc)? you should checkout wicket-stuff from svn, then you'll find it. best regards, --- jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Update page asynchronus through the server
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. Oktober 2007 09:40 An: users@wicket.apache.org Betreff: Re: Update page asynchronus through the server 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 'wicketstuff-push' which you could consult/use. best regards, --- jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Update page asynchronus through the server
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)? Stefan Lindner -Ursprüngliche Nachricht- Von: Jan Kriesten [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 19. Oktober 2007 09:40 An: users@wicket.apache.org Betreff: Re: Update page asynchronus through the server 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 'wicketstuff-push' which you could consult/use. best regards, --- jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Update page asynchronus through the server
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 'wicketstuff-push' which you could consult/use. best regards, --- jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Update page asynchronus through the server
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 and tell the client to reload it's table? Of course, I can use a Ajax self updating Timer behavior that polls the server but that ist not what I dream of. Any hints? I remember a mailing som moths ago concerning this case but I did not find a sufficent search prhase for nabble. Stefan Lindner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax question
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.mozilla.org/en-US/firefox/addon/1843 -- > View this message in context: > http://www.nabble.com/Ajax-question-tf4644668.html#a13288186 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >