Change default Log4J logger tapestry
Hi there. Do any of you know how I can specify which Log4J logger tapestry should use? You see, I'm trying to set Log4J up so I have two separate log files. One containing the internal tapestry log entries and one containing my own specified log entries. Here is my properties file: og4j.rootLogger=INFO,console, tapestryLog #Console appender log4j.appender.console = org.apache.log4j.ConsoleAppender log4j.appender.console.layout = org.apache.log4j.PatternLayout log4j.appender.console.layout.ConversionPattern = %t %-5p %c{2} - %m%n #TapestryAppender log4j.appender.tapestryLog=org.apache.log4j.FileAppender log4j.appender.tapestryLog.layout=org.apache.log4j.PatternLayout log4j.appender.tapestryLog.layout.ConversionPattern=%-22d{dd-MM- HH:mm:ss} %-8p %c [%t] - %m (%l)%n log4j.appender.tapestryLog.File=C:/tapestrylog.log log4j.appender.tapestryLog.threshold=INFO #CustomAppender log4j.logger.myLogger=INFO,myLog log4j.appender.myLog=org.apache.log4j.FileAppender log4j.appender.myLog.layout=org.apache.log4j.PatternLayout log4j.appender.myLog.layout.ConversionPattern=%-22d{dd-MM- HH:mm:ss} %-8p %c [%t] - %m (%l)%n log4j.appender.myLog.File=C:/myLog.log log4j.appender.myLog.threshold=INFO As you can see, I have two loggers (i.e. rootLogger and myLogger). The rootLogger has the tapestryLog fileappender which logs to c:\tapestryLog.log and the myLogger has the appLog fileappender which logs to c:\myLog.log. In my code I then access each logger as follows: Logger logger = LoggerFactory.getLogger(myLogger); //Log to myLog.log Logger logger = LoggerFactory.getLogger(ClassName.class); //Log to tapestryLog.log The problem is that even though, in my java code, I only log a statement to appLogger, it gets logged to the rootLogger as well. On the other hand when I log something to tapestryLog is does not get logged to appLog.log. Since everything gets logged to the rootLogger I would like to change it so tapestry uses another logger than the rootLogger. Thanks in advance! Best, David -- View this message in context: http://tapestry.1045711.n5.nabble.com/Change-default-Log4J-logger-tapestry-tp5716725.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: Tapestry 5.3.2 autocomplete mixin not working
Hey I fixed the problem. It turned out that some of my code in onActivate() caused it not to call onProvideCompletions(), so the error was a bit besides my question. Sorry about that. Anyway, thanks for your quick answers and help! /David From: Charlouze [via Tapestry] [mailto:ml-node+s1045711n5716484...@n5.nabble.com] Sent: 25. september 2012 14:28 To: David Teglbjærg Subject: Re: Tapestry 5.3.2 autocomplete mixin not working Hello, I had similar weird trouble once. I was using tapestry 5.3 and it did not found my setupRender() function in one of my page classes. I did not do anything specific to correct that bug except from restarting eclipse and adding the correct attributes (MarkupWriter and Event) to the function even if they are not required. I am really not sure what corrects the problem. I will briefly introduce myself given that it is the first time I am sending an email to this list. I'm a young french software architect working in a small and young company called Enyx. I'm using Tapestry for 1 year and a half but I just recently subscribe to the mailing-lists. Charles Capon. 2012/9/25 djst [hidden email]/user/SendEmail.jtp?type=nodenode=5716484i=0 Hey! Thanks for the reply, but I'm not using tapestry5-jquery. I did make some progress though. I just tried my sample code in a fresh new project and it works. Pretty weird, but I'll try to figure out what is interfering in my current project. Thanks for the replies. /David From: ccureau [via Tapestry] [mailto: [hidden email]/user/SendEmail.jtp?type=nodenode=5716484i=1] Sent: 25. september 2012 13:38 To: David Teglbjærg Subject: Re: Tapestry 5.3.2 autocomplete mixin not working Hi! This may or may not be your issue, but f you are using tapestry5-jquery, you may have some issues with autocomplete unless you use t:mixins=jquery/autocomplete or disable Prototype first. Just a thought... On Wed, Sep 12, 2012 at 9:48 AM, djst [hidden email]/user/SendEmail.jtp?type=nodenode=5716479i=0 wrote: Hi there. I'm trying to get the auto-completion mixin in Tapestry 5.3.2 to work put I cannot get it to function properly. Tapestry does not call my onProvideCompletionsFrom eventhandler. When inputting characters into the textfield I get a little loading icon on the right side of my text field but nothing further happens. If I uncomment my eventhandler function exactly the same happens. I can, though, see that a POST is sent since I'm getting the following debug message: 127.0.0.1 - - [12/sep/2012:14:29:19 +] POST /RMS/randomise.testfield:autocomplete HTTP/1.1 200 29 http://localhost:8080/RMS/randomise; Here is my code: From my Someclass.tml: t:textfield t:id=TestField t:value=testValue t:mixins=autocomplete/ From my Someclass.java: public class SomeClass{ @Property String testValue; ListString onProvideCompletionsFromTestField(String partial) { ListString matches = new ArrayListString(); String testString = help; if(testString.contains(partial)) matches.add(testString); return matches; } } I then try to type h in the textfield and I suppose I it should autocomplete to help, as I said, the loading icon just keeps spinning and nothing happens. I've tried different suggestions from other posts where people are having the same problem, but non of them turned out to be fixes. Do you have any idea how I can fix this issue? Thanks in advance. /David -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-2-autocomplete-mixin-not-working-tp5716234.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]/user/SendEmail.jtp?type=nodenode=5716479i=1 For additional commands, e-mail: [hidden email]/user/SendEmail.jtp?type=nodenode=5716479i=2 If you reply to this email, your message will be added to the discussion below: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-2-autocomplete-mixin-not-working-tp5716234p5716479.html To unsubscribe from Tapestry 5.3.2 autocomplete mixin not working, click here . NAML http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-2-autocomplete-mixin-not-working-tp5716234p5716483.html Sent from the Tapestry - User mailing list archive
Re: How to get selected value from Autocomplete list onto server side?
Okay... Isn't there a way another way of implementing this? Or is there a way to extend or configure the autocomplete mixin to provide submission when the user chooses from the dropdown menu? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-get-selected-value-from-Autocomplete-list-onto-server-side-tp5716506p5716508.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to get selected value from Autocomplete list onto server side?
Okay. I'll look in to it. Thanks for the help. :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-get-selected-value-from-Autocomplete-list-onto-server-side-tp5716506p5716510.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3.2 autocomplete mixin not working
Hmm okay. No I'm not getting any java errors. It seems like tapestry is not recognizing my onProvideCompletionsFrom function as an event handler. Sorry about my late reply. I've been on vacation from my work... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-2-autocomplete-mixin-not-working-tp5716234p5716476.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: Tapestry 5.3.2 autocomplete mixin not working
Hey! Thanks for the reply, but I'm not using tapestry5-jquery. I did make some progress though. I just tried my sample code in a fresh new project and it works. Pretty weird, but I'll try to figure out what is interfering in my current project. Thanks for the replies. /David From: ccureau [via Tapestry] [mailto:ml-node+s1045711n5716479...@n5.nabble.com] Sent: 25. september 2012 13:38 To: David Teglbjærg Subject: Re: Tapestry 5.3.2 autocomplete mixin not working Hi! This may or may not be your issue, but f you are using tapestry5-jquery, you may have some issues with autocomplete unless you use t:mixins=jquery/autocomplete or disable Prototype first. Just a thought... On Wed, Sep 12, 2012 at 9:48 AM, djst [hidden email]/user/SendEmail.jtp?type=nodenode=5716479i=0 wrote: Hi there. I'm trying to get the auto-completion mixin in Tapestry 5.3.2 to work put I cannot get it to function properly. Tapestry does not call my onProvideCompletionsFrom eventhandler. When inputting characters into the textfield I get a little loading icon on the right side of my text field but nothing further happens. If I uncomment my eventhandler function exactly the same happens. I can, though, see that a POST is sent since I'm getting the following debug message: 127.0.0.1 - - [12/sep/2012:14:29:19 +] POST /RMS/randomise.testfield:autocomplete HTTP/1.1 200 29 http://localhost:8080/RMS/randomise; Here is my code: From my Someclass.tml: t:textfield t:id=TestField t:value=testValue t:mixins=autocomplete/ From my Someclass.java: public class SomeClass{ @Property String testValue; ListString onProvideCompletionsFromTestField(String partial) { ListString matches = new ArrayListString(); String testString = help; if(testString.contains(partial)) matches.add(testString); return matches; } } I then try to type h in the textfield and I suppose I it should autocomplete to help, as I said, the loading icon just keeps spinning and nothing happens. I've tried different suggestions from other posts where people are having the same problem, but non of them turned out to be fixes. Do you have any idea how I can fix this issue? Thanks in advance. /David -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-2-autocomplete-mixin-not-working-tp5716234.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]/user/SendEmail.jtp?type=nodenode=5716479i=1 For additional commands, e-mail: [hidden email]/user/SendEmail.jtp?type=nodenode=5716479i=2 If you reply to this email, your message will be added to the discussion below: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-2-autocomplete-mixin-not-working-tp5716234p5716479.html To unsubscribe from Tapestry 5.3.2 autocomplete mixin not working, click herehttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5716234code=ZGF2aWRAY3R1LmRrfDU3MTYyMzR8MTAwOTA0NzY3OQ==. NAMLhttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-2-autocomplete-mixin-not-working-tp5716234p5716483.html Sent from the Tapestry - User mailing list archive at Nabble.com.
Tapestry 5.3.2 autocomplete mixin not working
Hi there. I'm trying to get the auto-completion mixin in Tapestry 5.3.2 to work put I cannot get it to function properly. Tapestry does not call my onProvideCompletionsFrom eventhandler. When inputting characters into the textfield I get a little loading icon on the right side of my text field but nothing further happens. If I uncomment my eventhandler function exactly the same happens. I can, though, see that a POST is sent since I'm getting the following debug message: 127.0.0.1 - - [12/sep/2012:14:29:19 +] POST /RMS/randomise.testfield:autocomplete HTTP/1.1 200 29 http://localhost:8080/RMS/randomise; Here is my code: From my Someclass.tml: t:textfield t:id=TestField t:value=testValue t:mixins=autocomplete/ From my Someclass.java: public class SomeClass{ @Property String testValue; ListString onProvideCompletionsFromTestField(String partial) { ListString matches = new ArrayListString(); String testString = help; if(testString.contains(partial)) matches.add(testString); return matches; } } I then try to type h in the textfield and I suppose I it should autocomplete to help, as I said, the loading icon just keeps spinning and nothing happens. I've tried different suggestions from other posts where people are having the same problem, but non of them turned out to be fixes. Do you have any idea how I can fix this issue? Thanks in advance. /David -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-2-autocomplete-mixin-not-working-tp5716234.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org