[Lift] liftAjax Yahoo issue?

2009-04-06 Thread Charles F. Munat

I'm using YUI to build an application interface. I built it in plain 
HTML and it runs just fine, but when I copy and paste that code into my 
lift app -- only difference: the liftAjax.js script -- I get the 
following errors in Firebug:

uncaught exception: [Exception... Component returned failure code: 
0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML] 
nsresult: 0x80004003 (NS_ERROR_INVALID_POINTER) location: JS frame :: 
http://localhost:9876/scripts/build/treeview/treeview-debug.js :: 
anonymous :: line 498 data: no]

[Exception... Component returned failure code: 0x80004003 
(NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML] nsresult: 
0x80004003 (NS_ERROR_INVALID_POINTER) location: JS frame :: 
http://localhost:9876/scripts/build/treeview/treeview-debug.js :: 
anonymous :: line 1204 data: no]
[Break on this error] f.innerHTML = sb.join();

This treeview component worked fine in the plain HTML, but now that it's 
in Lift, no go. Yes, I am using the Yahoo version of liftAjax. I added a 
link to the YUI connections.js script. Otherwise, I've changed nothing.

Any ideas?

Chas.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Howto re-initialize database

2009-04-06 Thread Tobias Daub

Hi Derek,

This was something that confused me a bit, too. Which kind of database 
is Lift using? Its not mentioned at all in the tutorial, or?

I just know it from Turbogears, that they had a tool that could play 
with the underlying database and do stuff like delete all tables and 
create new empty ones. With Grok its really easy to create a new empty 
database, too.

I think this is really helpful for testing, because you dont have waste 
so much time with doing it manually.

I just asked, because I thought maybe there's something similar to do so.

thanks
Tobias
 If you're talking about one of the archetypes (using Derby), just 
 delete the Derby directory in your project root. Otherwise, you could 
 look at the destroyTables_!! method on Schemifier. Could you give some 
 more details?

 Derek

 On Sun, Apr 5, 2009 at 1:06 PM, Tobias Daub hannes.flo...@gmx.li 
 mailto:hannes.flo...@gmx.li wrote:


 Hi There,

 How can I initialize the database again, e.g. to have all tables emtpy
 again?

 Do I have to modify Boot.scala?

 thanks
 Tobias




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Howto re-initialize database

2009-04-06 Thread TylerWeir

The default setup uses Apache Derby[1], which is an in-memory db.

You are free to use other DBs, most commonly used would be MySQL and
PostgreSQL, although there are others.
Take a look here, 
http://wiki.liftweb.net/index.php?title=Cheat_Sheet#Connection_String_Quickies

[1] http://db.apache.org/derby/


On Apr 6, 3:25 am, Tobias Daub hannes.flo...@gmx.li wrote:
 Hi Derek,

 This was something that confused me a bit, too. Which kind of database
 is Lift using? Its not mentioned at all in the tutorial, or?

 I just know it from Turbogears, that they had a tool that could play
 with the underlying database and do stuff like delete all tables and
 create new empty ones. With Grok its really easy to create a new empty
 database, too.

 I think this is really helpful for testing, because you dont have waste
 so much time with doing it manually.

 I just asked, because I thought maybe there's something similar to do so.

 thanks
 Tobias



  If you're talking about one of the archetypes (using Derby), just
  delete the Derby directory in your project root. Otherwise, you could
  look at the destroyTables_!! method on Schemifier. Could you give some
  more details?

  Derek

  On Sun, Apr 5, 2009 at 1:06 PM, Tobias Daub hannes.flo...@gmx.li
  mailto:hannes.flo...@gmx.li wrote:

      Hi There,

      How can I initialize the database again, e.g. to have all tables emtpy
      again?

      Do I have to modify Boot.scala?

      thanks
      Tobias
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Who did the hungarian translation?

2009-04-06 Thread Timothy Perrett

Thanks Marius :)

On Apr 6, 11:34 am, marius d. marius.dan...@gmail.com wrote:
 Tim,

 Undefined = meghatározatlan

 ... you may want to run native2ascii on it

 Br's,
 Marius

 On Apr 4, 8:36 pm, Timothy Perrett timo...@getintheloop.eu wrote:

  Hey Marius

  Sounds good. I just want to add an Undefined item to the Genders object in
  Mapper, however it needs updating in our core locale strings so just need a
  HU translation for Undefined

  Cheers, Tim

  On 04/04/2009 15:16, marius d. marius.dan...@gmail.com wrote:

   A co-worker of mine. I could have him do the translation on Monday ...
   just send the English text.

   Br's,
   Marius

   On Apr 4, 3:23 pm, Tim Perrett timo...@getintheloop.eu wrote:
   Hey guys,

   Who did the hungarian translations of lift core? I want to make an
   addition that needs adding to lift core properties files but I don't
   speak hungarian!

   Cheers, Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Thread safe configuration without abusing the session?

2009-04-06 Thread Tim Perrett

Guys,

Im working on a system where by there is a bunch of configuration
options that should exist for a given application, and are application
wide... Im handling this right now in a similar way to LiftRules.

However, I also have some configuration that can be done on a per
user / per session basis - what is the recommended strategy for
handling this without simply abusing the crap out of SessionVar?

Cheers, Tim



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Thread safe configuration without abusing the session?

2009-04-06 Thread Viktor Klang
If the config is on a per-session basis, then SessionVar should be the way
to go.
But of course, put it in _one_ SessionVar, and not hundreds... :)

On Mon, Apr 6, 2009 at 2:13 PM, Tim Perrett timo...@getintheloop.eu wrote:


 Guys,

 Im working on a system where by there is a bunch of configuration
 options that should exist for a given application, and are application
 wide... Im handling this right now in a similar way to LiftRules.

 However, I also have some configuration that can be done on a per
 user / per session basis - what is the recommended strategy for
 handling this without simply abusing the crap out of SessionVar?

 Cheers, Tim



 



-- 
Viktor Klang
Senior Systems Analyst

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Who did the hungarian translation?

2009-04-06 Thread marius d.

Tim,

Undefined = meghatározatlan

... you may want to run native2ascii on it

Br's,
Marius

On Apr 4, 8:36 pm, Timothy Perrett timo...@getintheloop.eu wrote:
 Hey Marius

 Sounds good. I just want to add an Undefined item to the Genders object in
 Mapper, however it needs updating in our core locale strings so just need a
 HU translation for Undefined

 Cheers, Tim

 On 04/04/2009 15:16, marius d. marius.dan...@gmail.com wrote:



  A co-worker of mine. I could have him do the translation on Monday ...
  just send the English text.

  Br's,
  Marius

  On Apr 4, 3:23 pm, Tim Perrett timo...@getintheloop.eu wrote:
  Hey guys,

  Who did the hungarian translations of lift core? I want to make an
  addition that needs adding to lift core properties files but I don't
  speak hungarian!

  Cheers, Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Thread safe configuration without abusing the session?

2009-04-06 Thread Timothy Perrett

Hey Viktor :)

What¹s the overhead associated with this? Little? Much?

Cheers, Tim

On 06/04/2009 13:17, Viktor Klang viktor.kl...@gmail.com wrote:

 If the config is on a per-session basis, then SessionVar should be the way to
 go.
 But of course, put it in _one_ SessionVar, and not hundreds... :)
 
 On Mon, Apr 6, 2009 at 2:13 PM, Tim Perrett timo...@getintheloop.eu wrote:
 
 Guys,
 
 Im working on a system where by there is a bunch of configuration
 options that should exist for a given application, and are application
 wide... Im handling this right now in a similar way to LiftRules.
 
 However, I also have some configuration that can be done on a per
 user / per session basis - what is the recommended strategy for
 handling this without simply abusing the crap out of SessionVar?
 
 Cheers, Tim
 
 
 
 
 
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Thread safe configuration without abusing the session?

2009-04-06 Thread Viktor Klang
On Mon, Apr 6, 2009 at 2:27 PM, Timothy Perrett timo...@getintheloop.euwrote:


 Hey Viktor :)

 What’s the overhead associated with this? Little? Much?


The overhead of many SessionVars version one? From a memory/cpu-perspective
it's negligible (dang, how to spell that?).

However, from a developer-perspective, it's far easier to keep the data
consistent if you put it in a data structure of it's own (In the future, you
might wish to persist it, and then the work is almost all done.).

Cheers,
Viktor



 Cheers, Tim


 On 06/04/2009 13:17, Viktor Klang viktor.kl...@gmail.com wrote:

 If the config is on a per-session basis, then SessionVar should be the way
 to go.
 But of course, put it in _one_ SessionVar, and not hundreds... :)

 On Mon, Apr 6, 2009 at 2:13 PM, Tim Perrett timo...@getintheloop.eu
 wrote:


 Guys,

 Im working on a system where by there is a bunch of configuration
 options that should exist for a given application, and are application
 wide... Im handling this right now in a similar way to LiftRules.

 However, I also have some configuration that can be done on a per
 user / per session basis - what is the recommended strategy for
 handling this without simply abusing the crap out of SessionVar?

 Cheers, Tim







 



-- 
Viktor Klang
Senior Systems Analyst

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Howto re-initialize database

2009-04-06 Thread Derek Chen-Becker
Actually, Derby doesn't have an in-memory mode (
http://db.apache.org/derby/faq.html#in_memory), and saves the data to disk
by default. The JDBC connection URL determines the directory that Derby
saves stuff in. In the ToDo app I believe it's lift_example, which should
be in your project root directory. You can just delete that directory and it
wipes the DB.

Derek

On Mon, Apr 6, 2009 at 5:53 AM, TylerWeir tyler.w...@gmail.com wrote:


 The default setup uses Apache Derby[1], which is an in-memory db.

 You are free to use other DBs, most commonly used would be MySQL and
 PostgreSQL, although there are others.
 Take a look here,
 http://wiki.liftweb.net/index.php?title=Cheat_Sheet#Connection_String_Quickies

 [1] http://db.apache.org/derby/


 On Apr 6, 3:25 am, Tobias Daub hannes.flo...@gmx.li wrote:
  Hi Derek,
 
  This was something that confused me a bit, too. Which kind of database
  is Lift using? Its not mentioned at all in the tutorial, or?
 
  I just know it from Turbogears, that they had a tool that could play
  with the underlying database and do stuff like delete all tables and
  create new empty ones. With Grok its really easy to create a new empty
  database, too.
 
  I think this is really helpful for testing, because you dont have waste
  so much time with doing it manually.
 
  I just asked, because I thought maybe there's something similar to do so.
 
  thanks
  Tobias
 
 
 
   If you're talking about one of the archetypes (using Derby), just
   delete the Derby directory in your project root. Otherwise, you could
   look at the destroyTables_!! method on Schemifier. Could you give some
   more details?
 
   Derek
 
   On Sun, Apr 5, 2009 at 1:06 PM, Tobias Daub hannes.flo...@gmx.li
   mailto:hannes.flo...@gmx.li wrote:
 
   Hi There,
 
   How can I initialize the database again, e.g. to have all tables
 emtpy
   again?
 
   Do I have to modify Boot.scala?
 
   thanks
   Tobias
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Hidden field in form

2009-04-06 Thread wapgui

Hi,

is there an equivalent in lift to the hidden input filed used in
forms. The SHtml.hidden is only for functions not for parameters, the
value is always true. I want set the hidden input via javascript.

Is there also a parameter for setting the name of the form itself?

Here the code:

object smlink extends RequestVar(Full())

var fp = new Widget()

  def show(xhtml: NodeSeq): NodeSeq = {
val temp =
  if (smlink.isEmpty || smlink.open_!.length == 0)  else
Received:  + smlink.open_!

bind(fp, xhtml,
  color - hidden({() = fp.color}),
  title - text(fp.title, fp.title = _) % (size - 10) %
(id - title),
  url - text(fp.url, fp.url = _) % (size - 56) % (id -
url),
  items - select((1 to 9).toList.reverse.map(v = (v.toString,
v.toString)),
Empty, fp.items = _),
  submit - submit(Send, () = {
Log.info(Submitted )
smlink(Full(fp.title))
  }),
  link - div{temp}/div
)
  }

generates this:

form method=post action=/
input name=F1142516722376UOU type=hidden value=true /br /
label for=titleTitle/label
input size=10 name=F1142516722377UCO type=text value=
id=title /br /
label for=urlURL/label
input size=56 name=F1142516722378IZS type=text value=
id=url /br /
label for=itemsItems/label
select name=F1142516722379K2Soption value=99/
optionoption value=88/optionoption value=77/optionoption
value=66/optionoption value=55/optionoption value=44/
optionoption value=33/optionoption value=22/optionoption
value=11/option/selectbr /
input name=F1142516722380W2M type=submit value=Send /
div/div
/form

Cheers
Torsten

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Hidden field in form

2009-04-06 Thread marius d.

Well putting an id to the hidden field allows you to manipulate it via
JavaScript.

Br's,
Marius

On Apr 6, 5:01 pm, wapgui torsten.schm...@wapgui.com wrote:
 Hi,

 is there an equivalent in lift to the hidden input filed used in
 forms. The SHtml.hidden is only for functions not for parameters, the
 value is always true. I want set the hidden input via javascript.

 Is there also a parameter for setting the name of the form itself?

 Here the code:

 object smlink extends RequestVar(Full())

 var fp = new Widget()

   def show(xhtml: NodeSeq): NodeSeq = {
     val temp =
       if (smlink.isEmpty || smlink.open_!.length == 0)  else
 Received:  + smlink.open_!

     bind(fp, xhtml,
       color - hidden({() = fp.color}),
       title - text(fp.title, fp.title = _) % (size - 10) %
 (id - title),
       url - text(fp.url, fp.url = _) % (size - 56) % (id -
 url),
       items - select((1 to 9).toList.reverse.map(v = (v.toString,
 v.toString)),
                         Empty, fp.items = _),
       submit - submit(Send, () = {
         Log.info(Submitted )
         smlink(Full(fp.title))
       }),
       link - div{temp}/div
     )
   }

 generates this:

 form method=post action=/
         input name=F1142516722376UOU type=hidden value=true /br /
         label for=titleTitle/label
         input size=10 name=F1142516722377UCO type=text value=
 id=title /br /
         label for=urlURL/label
         input size=56 name=F1142516722378IZS type=text value=
 id=url /br /
         label for=itemsItems/label
         select name=F1142516722379K2Soption value=99/
 optionoption value=88/optionoption value=77/optionoption
 value=66/optionoption value=55/optionoption value=44/
 optionoption value=33/optionoption value=22/optionoption
 value=11/option/selectbr /
         input name=F1142516722380W2M type=submit value=Send /
         div/div
         /form

 Cheers
 Torsten
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: one more stupid question

2009-04-06 Thread Timothy Perrett


I think you mean:

div id=sdfsd/div

You have two options for setting the ID parameter:

In code:

divsdfsdf/div % id - badger

In markup (where using bind):

pfx:item pfx:id=badger /

Does that help?

Cheers, Tim


On 06/04/2009 17:48, Tobias Daub hannes.flo...@gmx.li wrote:

 
 Hi There,
 
 I really don't want to waste your time, but I always have some things
 going on.
 
 TODO Tutorial:
 
 in main/webapp/index.html
 
 Why are all HTML options ignored? For example, I cannot say /table
 border/=1, the border does not show up. Neither I can do /td
 align/=left the left option is ignored as well.
 
 thanks
 Tobias
 
  
 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: liftAjax Yahoo issue?

2009-04-06 Thread marius d.

Charles,

Do you have a minimalistic example/project?  ... YUI  Lift used to
work just fine for me but I haven't looked at it in a while.

I could probably look on it sometimes this week ...

Br's,
Marius

On Apr 6, 10:06 am, Charles F. Munat c...@munat.com wrote:
 I'm using YUI to build an application interface. I built it in plain
 HTML and it runs just fine, but when I copy and paste that code into my
 lift app -- only difference: the liftAjax.js script -- I get the
 following errors in Firebug:

 uncaught exception: [Exception... Component returned failure code:
 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML]
 nsresult: 0x80004003 (NS_ERROR_INVALID_POINTER) location: JS frame 
 ::http://localhost:9876/scripts/build/treeview/treeview-debug.js::
 anonymous :: line 498 data: no]

 [Exception... Component returned failure code: 0x80004003
 (NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML] nsresult:
 0x80004003 (NS_ERROR_INVALID_POINTER) location: JS frame 
 ::http://localhost:9876/scripts/build/treeview/treeview-debug.js::
 anonymous :: line 1204 data: no]
 [Break on this error] f.innerHTML = sb.join();

 This treeview component worked fine in the plain HTML, but now that it's
 in Lift, no go. Yes, I am using the Yahoo version of liftAjax. I added a
 link to the YUI connections.js script. Otherwise, I've changed nothing.

 Any ideas?

 Chas.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Scala-tools.org is down

2009-04-06 Thread TylerWeir

Boo-urns.

On Apr 6, 2:26 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
 Folks,
 Someone was doing a denial of service attack on scala-tools.org.  I've had
 to shut the machine down.  I'm working on getting the static snapshot of
 Scala-tools onto another machine.

 Sorry for the inconvenience... normal service shall be restored soon.

 Thanks,

 David

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://www.apress.com/book/view/1430219890
 Follow me:http://twitter.com/dpp
 Git some:http://github.com/dpp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Scala-tools.org is down

2009-04-06 Thread Derek Chen-Becker
I guess I would ask Why?, but that's really secondary as long as we can
get it back up.

Derek

On Mon, Apr 6, 2009 at 4:05 PM, TylerWeir tyler.w...@gmail.com wrote:


 Boo-urns.

 On Apr 6, 2:26 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
  Folks,
  Someone was doing a denial of service attack on scala-tools.org.  I've
 had
  to shut the machine down.  I'm working on getting the static snapshot of
  Scala-tools onto another machine.
 
  Sorry for the inconvenience... normal service shall be restored soon.
 
  Thanks,
 
  David
 
  --
  Lift, the simply functional web frameworkhttp://liftweb.net
  Beginning Scalahttp://www.apress.com/book/view/1430219890
  Follow me:http://twitter.com/dpp
  Git some:http://github.com/dpp
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Hidden field in form

2009-04-06 Thread wapgui

Did you mean something like that ?
color - hidden(() = fp.color) % (id - color)

But how can I get the value of the color and how to set the value
via js if the form has no name and the name of the input is generated.

form method=post action=/
input value=true type=hidden name=F9112749168471LP
id=color /br /

It's all so difficult if there are no examples. But I will post my
small experience on my website to help other newbies.

Cheers
Torsten

On Apr 6, 4:47 pm, marius d. marius.dan...@gmail.com wrote:
 Well putting an id to the hidden field allows you to manipulate it via
 JavaScript.

 Br's,
 Marius

 On Apr 6, 5:01 pm, wapgui torsten.schm...@wapgui.com wrote:

  Hi,

  is there an equivalent in lift to the hidden input filed used in
  forms. The SHtml.hidden is only for functions not for parameters, the
  value is always true. I want set the hidden input via javascript.

  Is there also a parameter for setting the name of the form itself?

  Here the code:

  object smlink extends RequestVar(Full())

  var fp = new Widget()

    def show(xhtml: NodeSeq): NodeSeq = {
      val temp =
        if (smlink.isEmpty || smlink.open_!.length == 0)  else
  Received:  + smlink.open_!

      bind(fp, xhtml,
        color - hidden({() = fp.color}),
        title - text(fp.title, fp.title = _) % (size - 10) %
  (id - title),
        url - text(fp.url, fp.url = _) % (size - 56) % (id -
  url),
        items - select((1 to 9).toList.reverse.map(v = (v.toString,
  v.toString)),
                          Empty, fp.items = _),
        submit - submit(Send, () = {
          Log.info(Submitted )
          smlink(Full(fp.title))
        }),
        link - div{temp}/div
      )
    }

  generates this:

  form method=post action=/
          input name=F1142516722376UOU type=hidden value=true /br /
          label for=titleTitle/label
          input size=10 name=F1142516722377UCO type=text value=
  id=title /br /
          label for=urlURL/label
          input size=56 name=F1142516722378IZS type=text value=
  id=url /br /
          label for=itemsItems/label
          select name=F1142516722379K2Soption value=99/
  optionoption value=88/optionoption value=77/optionoption
  value=66/optionoption value=55/optionoption value=44/
  optionoption value=33/optionoption value=22/optionoption
  value=11/option/selectbr /
          input name=F1142516722380W2M type=submit value=Send /
          div/div
          /form

  Cheers
  Torsten

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] The bandwidth useage

2009-04-06 Thread David Pollak
Folks,
In case you were wondering about what was happening to the
scala-tools.organd lift sites... enclosed, please find bandwidth
graphs.

I'll have scala-tools.org back up later tonight (no hudson yet).  I'll have
the static part of the lift web site back up tonight as well, but not the
media-wiki part.

Thanks,

David

-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] How to generate war file??

2009-04-06 Thread sailormoo...@gmail.com

Hi Hi :

   I am new to Lift and new to maven, I would just like to ask how to
generate a war file to put it into the real server. Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Scala-tools.org is back online

2009-04-06 Thread David Pollak
On Mon, Apr 6, 2009 at 8:03 PM, etorreborre etorrebo...@gmail.com wrote:


 Thanks a lot David for putting the machine back online.

 I'm wondering if there's an item missing in the list. I've been trying
 to upload a new jar to the Nexus repository but this didn't work. Is
 it also back up?


No.  Only the static service of the stuff in the Maven repository.  Nexus is
not up.  sftp is not up.  Hudson is not up.  WebDav is not up.



 Thanks,

 Eric.

 David Pollak wrote:
  Folks,
  scala-tools.org is back online.  Hudson is not building and we're not
  pulling from EPFL, so nightlies are not happening.  This will be
 rectified
  over the weekend.
 
  The machine running scala-tools.org, liftweb.net and wiki.liftweb.netwas
  not configured properly.  I did not have a firewall and port 25 was left
  open and was an open relay.  I was notified on Saturday that the machine
 was
  responsible for redistribution of some mail containing viruses.  At the
  point that I was notified, I shut down the mail server.  However, the
  machine become the target of what appears to be a denial of service
 attack.
   See the attached graphs indicating that the machine was saturating its
  100mbps bandwidth.
 
  I have taken the offending machine off-line and I mounted its disks on
  another machine and removed the static contents.  I have not been able to
  reboot the machine to pull its MySQL contents and thus am not able to put
  wiki.liftweb.net online.
 
  I will get a static version of the liftweb.net site up in the next day
 or
  two, but wiki.liftweb.net will wait until I can boot the machine in
  isolation (in the event that it was compromised) and dump the
  wiki.liftweb.net database.  I expect that the Lift-related sites will be
  fully functional by Tuesday 4/14.  Note that I'm on vacation this week
 and
  the incident cut significantly into fun time with the family.
 
  Going forward, I'm planning to do a couple of things:
 
 - Isolate the layers of the machine running scala-tools.org such that
 the
 administration of the machine is different from the functioning of
 scala-tools.org
 - Create a stand-alone Hudson build machine that is separate from
 scala-tools.org so one can be administered without the other
 - Create Xen snapshots of Hudson build machines that will be able to
 build untrusted code from untrusted repositories (this will help with
 GitHub
 integration)
 - Have a couple of scala-tools.org mirrors so that even if one of the
 machines goes down, the others will be available
 - Create a team of people, all of whom can take care of the various
 parts
 of scala-tools.org so that it's not all about me and DavidB
 
  Relating to the last item, if you're interested in being part of the
  scala-tools.org administration team, please contact me privately.  I
 hope to
  get this effort rolling the week of April 20th.  If you've got bandwidth
 and
  disk space available to be a scala-tools.org mirror, please contact me
  off-list as well.  I'm especially interested in people with machines on
 the
  east coast of the USA, in Europe, and in Asia.
 
  Sorry for the inconvenience.
 
  David
 
  --
  Lift, the simply functional web framework http://liftweb.net
  Beginning Scala http://www.apress.com/book/view/1430219890
  Follow me: http://twitter.com/dpp
  Git some: http://github.com/dpp
 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---