[Lift] How to redirect to a specify url when logged in successfully?

2009-11-29 Thread Neil.Lv
Hi all, I want to redirecto to a specify URL like this /all_users when logged in successfully via the default link, http://localhost:8080/user_mgt/login Is there a help method (i dont't find it) to configure it? When i logged in successfully via /user_mgt/login link and redirect to the

[Lift] Re: Forms without automatically generated names

2009-11-29 Thread Marius
On Nov 29, 10:53 am, Elazar Leibovich elaz...@gmail.com wrote: Is there any way to cause lift's built-in SHtml.* functions not to auto-generate form names? You can manually associate names with AFuncHolder using S.addFunctionMap. But this would mean to build your own helpers for for input

[Lift] Re: How to redirect to a specify url when logged in successfully?

2009-11-29 Thread Neil.Lv
The /user_mgt/login link is supported by the Lift's User Module. Maybe can i override some method to change the param of the redirectTo method .? What's the DispatchPF that how to use it ? I haven't use the DispathPF yet!~ Thanks very much! :) Cheers, Neil On Nov 29, 5:36 pm,

Re: [Lift] Sitemap + Menu Names + Change Order

2009-11-29 Thread Heiko Seeberger
Hannes, 2009/11/29 Hannes hannes.flo...@gmx.li I couldn't find anything about how to change a menu name, that is generated from CRUDify. Overwrite CRUDify.createMenuName, etc. Furthermore, I want to change the internal order of CRUDify menus. I believe that its more natural to use, when

Re: [Lift] Re: How to get the servlet context

2009-11-29 Thread Jeppe Nejsum Madsen
Neil.Lv anim...@gmail.com writes: Hi Jeppe, I have the same question about the image folder. Can you paste come example code ( or link ) that the Nginx how to configure the mapping URL for images ? Have a look at the nginx example: http://wiki.nginx.org/NginxFullExample specifically

Re: [Lift] Sitemap + Menu Names + Change Order

2009-11-29 Thread Hannes
Hi Heiko, thanks for the quick and helpful answer! The renaming was quite easy, but what do I've to write inside CRUDify.menus? thanks. Hannes, 2009/11/29 Hannes hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li I couldn't find anything about how to change a menu name, that is

[Lift] Re: Forms without automatically generated names

2009-11-29 Thread Timothy Perrett
Elazar, Forms in lift are *not* meant to be used for an api layer... as Marius suggested, make sure you design your code with a service layer and then call into that from the snippet(s) and DispatchPF... Cheers, Tim On Nov 29, 8:53 am, Elazar Leibovich elaz...@gmail.com wrote: Is there any way

Re: [Lift] Sitemap + Menu Names + Change Order

2009-11-29 Thread Heiko Seeberger
Hi Hannes, 2009/11/29 Hannes hannes.flo...@gmx.li thanks for the quick and helpful answer! You're welcome ;-) The renaming was quite easy, but what do I've to write inside CRUDify.menus? Please take a look at the source code (CRUDify.scala): def menus: List[Menu] =

Re: [Lift] Sitemap + Menu Names + Change Order

2009-11-29 Thread Hannes
Thanks! It was the box again, I'm still not really comfortable in getting things out of it Hi Hannes, 2009/11/29 Hannes hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li thanks for the quick and helpful answer! You're welcome ;-) The renaming was quite easy, but what

[Lift] method call from out of nowhere

2009-11-29 Thread Hannes
Hey Lifters, I've some really strange things going on here. Please consider this method definition. I've put alot of print debug statements between other statements. There's a while-loop that only starts, when the given list (orders) is not empty. It stops when done is set to true. So far, so

[Lift] Re: How to redirect to a specify url when logged in successfully?

2009-11-29 Thread Marius
About DisptachPF I replied privately to your email. I didn't realize that you were using Mapper. Here are a few threads that may help you: http://groups.google.com/group/liftweb/browse_thread/thread/bdd5accd4bb623c9/d56e054c4037470f?lnk=gstq=Login#d56e054c4037470f

Re: [Lift] method call from out of nowhere

2009-11-29 Thread Timothy Perrett
Hannes, Firstly, I really, really wouldn't write your code like that... Things of note: - two defs inside defs... you usually wouldnt do this without a good reason (like SHtml.submit(whatever _)) - dont use while loops. period. you have a List[T], use foreach if you have a unit operation def

Re: [Lift] method call from out of nowhere

2009-11-29 Thread Hannes
Hi Tim, Hannes, Firstly, I really, really wouldn't write your code like that... Things of note: - two defs inside defs... you usually wouldnt do this without a good reason (like SHtml.submit(whatever _)) The two defs only make sence together, that's why I put them together in one def.

Re: [Lift] method call from out of nowhere

2009-11-29 Thread Alex Boisvert
Where is joinOtherOrders()called within your code? alex On Sun, Nov 29, 2009 at 7:24 AM, Hannes hannes.flo...@gmx.li wrote: Hey Lifters, I've some really strange things going on here. Please consider this method definition. I've put alot of print debug statements between other statements.

[Lift] Re: method call from out of nowhere

2009-11-29 Thread Marius
You might want to try to trace the thread name as well ... On Nov 29, 6:49 pm, Marius marius.dan...@gmail.com wrote: In your code in what conditions  joinOtherOrders gets called ? Br's, Marius On Nov 29, 6:18 pm, Hannes hannes.flo...@gmx.li wrote: Hi Tim, Hannes, Firstly, I really,

Re: [Lift] More on bind and preserving attributes

2009-11-29 Thread Ross Mellgren
On Nov 29, 2009, at 5:54 AM, Jeppe Nejsum Madsen wrote: Ross Mellgren dri...@gmail.com writes: Very nice! I'll try to play with this and see how it works out. I think it serves the purpose well: For single element bind use -%%, for the rest use -. Now, is there a reason this

Re: [Lift] Foreign Key constraints are not created by schemify

2009-11-29 Thread Julian Backes
Hi Lift Community, this is a reply to my own question: I'm trying to get my first scala/lift app working and I have a problem: Schemifier.schemify(...) creates everything, i.e. tables, primary keys, indices but it does not create the foreign key constraints. After hours of compiling and

[Lift] Feedback on wizard code

2009-11-29 Thread Timothy Perrett
David, So I took a close look at the lift-wizard code with a view to do what we discussed on the committers call. From that, I have the following feedback and questions: - Wizard.scala, L192... You have hardcoded html tables; IMHO, these need to go, ASAP! Id suggest replacing them with a CSS div

[Lift] Re: How to redirect to a specify url when logged in successfully?

2009-11-29 Thread Neil.Lv
Got it, Thank you very much! I'm looking forward to your replied about the DispatchPF. Cheers, Neil On Nov 29, 11:55 pm, Marius marius.dan...@gmail.com wrote: About DisptachPF I replied privately to your email. I didn't realize that you were using Mapper. Here are a few threads that

[Lift] newbie question about record

2009-11-29 Thread Jarod Liu
how to setup table/column names of a record entity.(like override dbTableName field in mapper) -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to

Re: [Lift] method call from out of nowhere

2009-11-29 Thread David Pollak
On Sun, Nov 29, 2009 at 7:24 AM, Hannes hannes.flo...@gmx.li wrote: Hey Lifters, How is joinOtherOrders being invoked? I've some really strange things going on here. Please consider this method definition. I've put alot of print debug statements between other statements. There's a

Re: [Lift] method call from out of nowhere

2009-11-29 Thread Alex Boisvert
An easy way to determine who's calling is simply to print the call stack by adding the following line in your method, (new Exception).printStackTrace alex On Sun, Nov 29, 2009 at 9:24 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Nov 29, 2009 at 7:24 AM, Hannes

Re: [Lift] method call from out of nowhere

2009-11-29 Thread Donald McLean
Or you can get stack trace information from Thread. I have a utility function getCaller that does a getStackTrace and then looks at the proper element of the array. (second, third? I forget) On Mon, Nov 30, 2009 at 12:30 AM, Alex Boisvert alex.boisv...@gmail.com wrote: An easy way to determine

Re: [Lift] Re: Lift and LDAP

2009-11-29 Thread Xuefeng Wu
Such as http://code.google.com/p/rubycas-client/ This CAS client library is designed to work easily with Rails. I need a CAS SSO library with Rails. Thanks. On Sat, Nov 28, 2009 at 7:55 PM, Timothy Perrett timo...@getintheloop.euwrote: What kind of integration do you want? Cheers, Tim On