[Lift] A question on radio button

2009-12-01 Thread sunanda
Hi,

I have got two radio button fields(Yes,No)


In my form I need to display an input field onclick of the button
Yes  else the field needs to be hidden.
How can I achieve this inside the form.

Regards,
Sunanda


--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: Need for lift application to coexist with spring in the same webapp

2009-11-25 Thread sunanda
Many Many thanks to David and Chris.
Your suggestions helped me a lot and I am now able to run  my
application using both  Lift Filter and Spring Servlet .
Regards,
Sunanda.

On Nov 25, 11:35 pm, Chris Lewis burningodzi...@gmail.com wrote:
 Don't forget that if the lift filter is inspecting the request before
 your servlet, you'll need to tell lift to pass it on. In boot:

 LiftRules.passNotFoundToChain = true

 chris



 sunandawrote:
  Hi David,

  Thank for all the help so far.

   My lift  application needs to  coexist  with the spring servlet in
  the same web application. I have configured the web.xml file for both
  of the spring servlet and lift filter.
  Hence I need to configure the url pattern in such a way that  /grid/*
  request will be handled by lift application  and  other urls will be
  processed by spring.

  What I need to understand is how to set up the rules such that this
  can be achieved.

  --

  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 
  liftweb+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/liftweb?hl=en.- Hide quoted text -

 - Show quoted text -

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: Configuring web.xml

2009-11-23 Thread sunanda
I get the HTTP  Status  404 Error: The requested resource () is not
available


On Nov 24, 11:21 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
 On Mon, Nov 23, 2009 at 4:13 PM, sunanda sunanda.pa...@gmail.com wrote:
  Hi,
  I need the url pattern for my application to be /grid/*.

  I configured the web.xml file like this:
  web-app
  filter
   filter-nameLiftFilter/filter-name
   display-nameLift Filter/display-name
   descriptionThe Filter that intercepts lift calls/description
   filter-classnet.liftweb.http.LiftFilter/filter-class
  /filter

  filter-mapping
   filter-nameLiftFilter/filter-name
   url-pattern/grid/*/url-pattern
  /filter-mapping

  /web-app

  But my application does not run with this pattern (e.g.
 http://localhost:8080/SortableGridViewApp-0.0.1/grid/).
  What other seetings I need to make?

 What do you mean by does not run?







  Regards,
  Sunanda

  --

  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
  liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com­
  .
  For more options, visit this group at
 http://groups.google.com/group/liftweb?hl=.

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://www.apress.com/book/view/1430219890
 Follow me:http://twitter.com/dpp
 Surf the harmonics- Hide quoted text -

 - Show quoted text -- Hide quoted text -

 - Show quoted text -

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=.




[Lift] Re: Configuring web.xml

2009-11-23 Thread sunanda
No I don't have.
 Do I need to have this.

On Nov 24, 11:49 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
 On Mon, Nov 23, 2009 at 4:27 PM, sunanda sunanda.pa...@gmail.com wrote:
  I get the HTTP  Status  404 Error: The requested resource () is not
  available

 Do you have items and SiteMap entries for
 /grid/index
 /grid/

 ?







  On Nov 24, 11:21 am, David Pollak feeder.of.the.be...@gmail.com
  wrote:
   On Mon, Nov 23, 2009 at 4:13 PM, sunanda sunanda.pa...@gmail.com
  wrote:
Hi,
I need the url pattern for my application to be /grid/*.

I configured the web.xml file like this:
web-app
filter
 filter-nameLiftFilter/filter-name
 display-nameLift Filter/display-name
 descriptionThe Filter that intercepts lift calls/description
 filter-classnet.liftweb.http.LiftFilter/filter-class
/filter

filter-mapping
 filter-nameLiftFilter/filter-name
 url-pattern/grid/*/url-pattern
/filter-mapping

/web-app

But my application does not run with this pattern (e.g.
   http://localhost:8080/SortableGridViewApp-0.0.1/grid/).
What other seetings I need to make?

   What do you mean by does not run?

Regards,
Sunanda

--

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
liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com­
  liftweb%2bunsubscr...@googlegroups.comliftweb%252bunsubscr...@googlegroup­s.com
  ­
.
For more options, visit this group at
   http://groups.google.com/group/liftweb?hl=.

   --
   Lift, the simply functional web frameworkhttp://liftweb.net
   Beginning Scalahttp://www.apress.com/book/view/1430219890
   Follow me:http://twitter.com/dpp
   Surf the harmonics- Hide quoted text -

   - Show quoted text -- Hide quoted text -

   - Show quoted text -

  --

  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
  liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com­
  .
  For more options, visit this group at
 http://groups.google.com/group/liftweb?hl=.

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://www.apress.com/book/view/1430219890
 Follow me:http://twitter.com/dpp
 Surf the harmonics- Hide quoted text -

 - Show quoted text -

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Need for lift application to coexist with spring in the same webapp

2009-11-23 Thread sunanda
Hi David,

Thank for all the help so far.

 My lift  application needs to  coexist  with the spring servlet in
the same web application. I have configured the web.xml file for both
of the spring servlet and lift filter.
Hence I need to configure the url pattern in such a way that  /grid/*
request will be handled by lift application  and  other urls will be
processed by spring.


What I need to understand is how to set up the rules such that this
can be achieved.

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Unit Test Error

2009-11-09 Thread sunanda

Hi,
I have set the unitils properties for h2 database.
I am getting the following error message for the unit test.
Can anyone tell me what am I missing?
Thanks.
Sunanda


java.lang.NullPointerException: Looking for Connection Identifier
ConnectionIdentifier(lift) but failed to find either a
JNDI data source with the name lift or a lift connection manager with
the correct name
at net.liftweb.mapper.DB$$anonfun$3$$anonfun$apply$7.apply(DB.scala:
95)
at net.liftweb.mapper.DB$$anonfun$3$$anonfun$apply$7.apply(DB.scala:
95)
at net.liftweb.util.EmptyBox.openOr(Box.scala:372)
at net.liftweb.mapper.DB$$anonfun$3.apply(DB.scala:95)
at net.liftweb.mapper.DB$$anonfun$3.apply(DB.scala:95)
at net.liftweb.util.EmptyBox.openOr(Box.scala:372)
at net.liftweb.mapper.DB$.newConnection(DB.scala:89)
at net.liftweb.mapper.DB$.getConnection(DB.scala:136)
at net.liftweb.mapper.DB$.use(DB.scala:303)
at net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
1397)
at net.irisinteractive.brandnet.gridxml.model.GridConfig$.findDb
(GridConfig.scala:69)
at net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
1393)
at net.irisinteractive.brandnet.gridxml.model.GridConfig$.findDb
(GridConfig.scala:69)
at net.liftweb.mapper.KeyedMetaMapper$class.find(MetaMapper.scala:
1390)
at net.irisinteractive.brandnet.gridxml.model.GridConfig$.find
(GridConfig.scala:69)
at
net.irisinteractive.brandnet.gridxml.snippet.GridConfigRegistry.getGridConfiguration
(GridConfigRegistry.scala:20)
at
net.irisinteractive.brandnet.gridxml.test.GridXmlComputationService.getGridXml
(GridXmlComputationService.scala:28)
at net.irisinteractive.brandnet.gridxml.test.TestGridConfig.test1
(TestGridConfig.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:66)
at org.junit.internal.runners.MethodRoadie.runTestMethod
(MethodRoadie.java:105)
at org.unitils.UnitilsJUnit4TestClassRunner
$TestListenerInvokingMethodRoadie.runTestMethod
(UnitilsJUnit4TestClassRunner.java:174)
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:
86)
at
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters
(MethodRoadie.java:94)
at org.unitils.UnitilsJUnit4TestClassRunner
$TestListenerInvokingMethodRoadie.runBeforesThenTestThenAfters
(UnitilsJUnit4TestClassRunner.java:156)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:
84)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49)
at org.unitils.UnitilsJUnit4TestClassRunner.invokeTestMethod
(UnitilsJUnit4TestClassRunner.java:95)
at org.junit.internal.runners.JUnit4ClassRunner.runMethods
(JUnit4ClassRunner.java:59)
at org.unitils.UnitilsJUnit4TestClassRunner.access$000
(UnitilsJUnit4TestClassRunner.java:44)
at org.unitils.UnitilsJUnit4TestClassRunner$1.run
(UnitilsJUnit4TestClassRunner.java:62)
at org.junit.internal.runners.ClassRoadie.runUnprotected
(ClassRoadie.java:34)
at org.junit.internal.runners.ClassRoadie.runProtected
(ClassRoadie.java:44)
at org.unitils.UnitilsJUnit4TestClassRunner.run
(UnitilsJUnit4TestClassRunner.java:68)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run
(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run
(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:197)


--~--~-~--~~~---~--~~
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] H2 Database

2009-11-05 Thread sunanda

Hi,
Though this question is not related to Lift I would appreciate if
anyone can suggest me how to configure
h2 database on eclipse.
I was trying with Hsql , but came to know that Lift does not support
Hsql.

Sunanda.
--~--~-~--~~~---~--~~
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] JUnit test on Eclipse

2009-11-03 Thread sunanda

Hi,
I am using eclipse to  write JUnit test.
For the following sample code I am getting error:No Junit tests
found. Where am I going wrong?

package test
import junit.framework.TestCase

class UnitTest extends TestCase{
  def test1() ={
println(Hello)
  }

}
--~--~-~--~~~---~--~~
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] Refresh Session Variable

2009-11-02 Thread sunanda

Hi,
I need to refresh a session variable  to empty string on load of  a
page and need to set the variable to some string (e.g. abcd) on
click of a button. How can I do this.
Sunanda.

--~--~-~--~~~---~--~~
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] Unit Testing

2009-11-02 Thread sunanda

Hi,
How to do unit testing in Lift Framework.
Sunanda.
--~--~-~--~~~---~--~~
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: How to give a time lmit to display a message

2009-10-26 Thread sunanda

Thanks Ross

On Oct 27, 2:33 am, Ross Mellgren dri...@gmail.com wrote:
 SetHtml(msg, Text(hello))  After(1 minute, SetHtml(msg, Empty))

 -Ross

 On Oct 25, 2009, at 9:03 PM,sunandawrote:





  Hi,
  I need to display a message only for few seconds using SetHtml.
  E.g. SetHtml(msg,Text(Hello)).
  How can I do this

  Thanks.
 Sunanda- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: How to give a time lmit to display a message

2009-10-26 Thread sunanda

 I am trying to display the message for 2 seconds and remove the
message using following code. It is  displaying the meassage but not
removing after 2 seconds. Where am I going wrong.

SetHtml(editcoldefmsg,Text(Edited Column Definition
+coldef.displayname)) After(2 seconds, SetHtml(editcoldefmsg, Text
()))


Sunanda

On Oct 27, 8:50 am, sunanda sunanda.pa...@gmail.com wrote:
 Thanks Ross

 On Oct 27, 2:33 am, Ross Mellgren dri...@gmail.com wrote:



  SetHtml(msg, Text(hello))  After(1 minute, SetHtml(msg, Empty))

  -Ross

  On Oct 25, 2009, at 9:03 PM,sunandawrote:

   Hi,
   I need to display a message only for few seconds using SetHtml.
   E.g. SetHtml(msg,Text(Hello)).
   How can I do this

   Thanks.
  Sunanda- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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] Problem with RequestVar

2009-10-26 Thread sunanda

Hi,
I need to retain the value of gridid throughout the session.

The sample code is given below.


object gridid extends RequestVar(S.param(gridid) openOr )
class CreateDominoColDefinition extends StatefulSnippet{

   def dispatch = {
case createColDef = createColDef _
  }
def createColDef(html:NodeSeq):NodeSeq ={


}

The value is retained with the submit button clicked for the fist
time.

Then its value becomes empty string with the click of the submit
button more than once.

 What do I need to do  to retain the  value for the gridid .

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] How to give a time lmit to display a message

2009-10-25 Thread sunanda

Hi,
I need to display a message only for few seconds using SetHtml.
E.g. SetHtml(msg,Text(Hello)).
How can I do this

Thanks.
Sunanda
--~--~-~--~~~---~--~~
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: Dynamic radio button

2009-10-22 Thread sunanda

Hi Derek,

I am displaying the contents of a table in ReadOnly mode as follows.
The sample code is given below

 table
   tr
   td bDisplay Name/b/td
   td{coldef.displayname}/td
   /tr
   tr
   tdbRequire Cookies for Link/b /td
   td {coldef.requirecookies}/td
   /tr
button onclick={SHtml.ajaxInvoke(getEditMode _)._2}Edit2/
button
table

onclick of Edit2 button I make it editable by making the
coldef.displayname using ajaxText. But the coldef.requirecookies is a
raidio button field(which has got two options Yes and No)
Hence in editable mode I need to insert two radio buttons (with one
button checked based on the value of coldef.requirecookies) .  I was
able to insert using Shtml.radio
But I need to do ajax call on click of the button to modify the value
of requirecookies field.

Could you please suggest me how to achieve this.
Thanks
Sunanda







On Oct 23, 1:39 am, Derek Chen-Becker dchenbec...@gmail.com wrote:
 I don't quite understand what you're trying to do. Could you give some more
 details? Are you trying to add more radios to an existing radio button set?



 On Wed, Oct 21, 2009 at 8:45 PM, sunanda sunanda.pa...@gmail.com wrote:

  Hi,
  I need to add radio button dynamically with one of the button checked
  and  I need to invoke ajaxCall onclick of a radio button.
  How can I do this.
  Sunanda- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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] Calling a method from other snippet

2009-10-21 Thread sunanda

Hi,
I have a method updateColumn() in ColumnInfo.scala snippet.
I need to call this method form another snippet GridInfo.scala

How can I do this.

Sunanda
--~--~-~--~~~---~--~~
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] Dynamic radio button

2009-10-21 Thread sunanda

Hi,
I need to add radio button dynamically with one of the button checked
and  I need to invoke ajaxCall onclick of a radio button.
How can I do this.
Sunanda
--~--~-~--~~~---~--~~
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: How to disable a textfield

2009-10-20 Thread sunanda

Thanks Tim

On Oct 20, 6:02 pm, Timothy Perrett timo...@getintheloop.eu wrote:
 Change - to -%

 Doing this preserves any element attributes, for example:
 disabled=disabled

 Cheers, Tim

 On Oct 20, 6:30 am, sunanda sunanda.pa...@gmail.com wrote:



  Hi,
  I need to disable all the textfield and then want to enable the fields
  for editing on click of a button.
  How can i do this with the following sample  code.
  Thanks
  Regards,
  Sunanda.

  bind(add,html,
                       displayname-coldef.displayname.toForm,
                       columntype-coldef.coltype.toForm,
                       sourceview-coldef.sourceview.toForm)- Hide quoted 
  text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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] Setting Table Border

2009-10-19 Thread sunanda

Hi,
I need to display the table with border.
Following is the sample code.
But it is not displaying the border.Is this the correct way of setting
the border.

Sunanda


def displayColDef(selectedname:String):NodeSeq={

val coldef = getColDef(selectedname)
   table border=2
   tr
   td bDisplay Name/b/td
   td{coldef.displayname}/td
   /tr
   tr
   tdbColumn Type/b /td
   td {coldef.coltype}/td
   /tr
/table
}
--~--~-~--~~~---~--~~
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: Setting Table Border

2009-10-19 Thread sunanda

Thats what I wonder. It should work. When I refer to a css file with
the border setting it works,
but not with the setting from the snippet. I need to figure it out.
Thanks for your reply.
Sunanda.

On Oct 20, 2:35 pm, Ross Mellgren dri...@gmail.com wrote:
 That looks right to me -- it should show a border with a default  
 stylesheet. When I throw that table.../table into a HTML file by  
 itself, I get a border.

 -Ross

 On Oct 19, 2009, at 8:47 PM, sunanda wrote:





  Hi,
  I need to display the table with border.
  Following is the sample code.
  But it is not displaying the border.Is this the correct way of setting
  the border.

  Sunanda

  def displayColDef(selectedname:String):NodeSeq={

         val coldef = getColDef(selectedname)
            table border=2
            tr
            td bDisplay Name/b/td
            td{coldef.displayname}/td
            /tr
            tr
            tdbColumn Type/b /td
            td {coldef.coltype}/td
            /tr
  /table
  }- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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 disable a textfield

2009-10-19 Thread sunanda

Hi,
I need to disable all the textfield and then want to enable the fields
for editing on click of a button.
How can i do this with the following sample  code.
Thanks
Regards,
Sunanda.

bind(add,html,
 displayname-coldef.displayname.toForm,
 columntype-coldef.coltype.toForm,
 sourceview-coldef.sourceview.toForm)
--~--~-~--~~~---~--~~
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 set uniqueFieldId

2009-10-18 Thread sunanda

Hi,
How to set the uniqueFieldId for a mapper.

Following is the sample code how I set the uniqueFieldId.


object colpos extends MappedInt(this){
   override def validations = checkForColPos _ :: super.validations
   override def uniqueFieldId=Full(abc)
def checkForColPos(pos:Int) = {
   if(pos 0) Nil
  else List(FieldError(this, bProvide valid Column Position/
b))

}
  }

println(xs(0) displays the followinf information
Full(abc) : bProvide valid Column Position/b

I need to extract the identifierid abc.
When I try to do like this:
 var fld = xs(0).field
 println(fld=+fld)
It prints 0 instead of abc.

Can anyone suggest me where am I going wrong.
Thanks.
Regards,
Sunanda.




--~--~-~--~~~---~--~~
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: How to set uniqueFieldId

2009-10-18 Thread sunanda

Hi Naftoli,
Thank you so much. It works now.
Sunanda

On Oct 19, 2:28 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
 Try fld.uniqueFieldId openOr n/a



 On Sun, Oct 18, 2009 at 11:19 PM, sunanda sunanda.pa...@gmail.com wrote:

  Hi,
  How to set the uniqueFieldId for a mapper.

  Following is the sample code how I set the uniqueFieldId.

  object colpos extends MappedInt(this){
    override def validations = checkForColPos _ :: super.validations
    override def uniqueFieldId=Full(abc)
     def checkForColPos(pos:Int) = {
        if(pos 0) Nil
       else List(FieldError(this, bProvide valid Column Position/
  b))

     }
   }

  println(xs(0) displays the followinf information
  Full(abc) : bProvide valid Column Position/b

  I need to extract the identifierid abc.
  When I try to do like this:
   var fld = xs(0).field
   println(fld=+fld)
  It prints 0 instead of abc.

  Can anyone suggest me where am I going wrong.
  Thanks.
  Regards,
  Sunanda.- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Extracting FieldIdentifer names from a list of FieldErrors

2009-10-14 Thread sunanda

Hi David,
Thanks for your reply.
I need to find out the fieldnames that causes the error from the list
of FieldErrors resulted from the validation.
But I find  all the FieldIdentifier  names as Empty.

Below is the sample code I have used  for the validations.
object colpos extends MappedInt(this){

override def validations = checkForColPos _ :: super.validations

def checkForColPos(pos:Int) = {


if(pos 0) Nil

else List(FieldError(this, bProvide valid Column Position/b))

}
}
Could you please suggest me how can I  get the field  names/
FieldIdentifierthat can be retrieved from the list of FieldErrors.

Thanks.
Regards,
Sunanda.


On Oct 15, 7:35 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
 val fieldErrors: List[FieldError] = ...val fieldNames: List[String] =
 fieldErrors.flatMap(_.field)

 On Tue, Oct 13, 2009 at 10:44 PM, sunanda sunanda.pa...@gmail.com wrote:

   Hi,
   I need to extract the FieldIdentifer names from a list of
  FieldErrors. Can anyone suggest me how to achieve this.

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://www.apress.com/book/view/1430219890
 Follow me:http://twitter.com/dpp
 Surf the harmonics
--~--~-~--~~~---~--~~
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] Extracting FieldIdentifer names from a list of FieldErrors

2009-10-13 Thread sunanda

 Hi,
  I need to extract the FieldIdentifer names from a list of
FieldErrors. Can anyone suggest me how to achieve this.
--~--~-~--~~~---~--~~
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: Javascript Commands

2009-10-01 Thread sunanda


Thanks Derek.
But I get the following errors:
found : net.liftweb.http.js.JE.Call
required: java.lang.String
x= JE.Call(foo,2)
^
C:\J\BrandNET\eclipse_workspace\GridXml_Lift2.0\src\main\scala\net
\irisinteractive\lift\grid\snippet\CreateGridConfigTable.scala:47:
error: value CrVar is not a member of object
net.liftweb.http.js.JsCmds
JsCmds.CrVar(myVar, JE.Call(foo, 2))


On Oct 2, 12:07 am, Derek Chen-Becker dchenbec...@gmail.com wrote:
 If you have a javascript function foo(a, b) where a is a String and b
 is an integer then you can call that with

 JE.Call(foo, one, 2)

 for example. If you wanted to set some variable to the result of the
 function, you could do:

 JsCmds.CrVar(myVar, JE.Call(foo, one, 2))

 Derek



 On Wed, Sep 30, 2009 at 6:17 PM, sunanda sunanda.pa...@gmail.com wrote:

  Hi David,
  Thanks for your prompt reply.
  As a beginner I have started reading the book Exploring Lift.

  It says

  If you need to write large portions of JavaScript code for your
  pages, we recommend writing that code in
  pure JavaScript in an external file and then including that file in
  your pages. In particular, if you write your code as JavaScript
  functions, you can use the JE.Call class to execute those functions
  from your Lift code.

  I just want to know how can I use JE.Call function fro my external
  javascript file and also how to use JE abstractions like (JsFunc,
  ValById etc..)

  Could you please provide a simple example so that my understanding
  will be clear.

  Thanks
  Sunanda

  On Oct 1, 9:56 am, David Pollak feeder.of.the.be...@gmail.com wrote:
   Seehttp://demo.liftweb.net/ajax
   Specifically:

   var cnt = 0    def doClicker(text: NodeSeq) =
       a(() = {cnt = cnt + 1; SetHtml(spanName, Text( cnt.toString))},
  text)

   It increments a counter.

   On Wed, Sep 30, 2009 at 4:50 PM, sunanda sunanda.pa...@gmail.com
  wrote:

Hi,
I am totally new to lift framework.
Can any one give me a simple example of how to call a function form a
javascript file and store the results
in  scala variable.

Thanks.

   --
   Lift, the simply functional web frameworkhttp://liftweb.net
   Beginning Scalahttp://www.apress.com/book/view/1430219890
   Follow me:http://twitter.com/dpp
   Surf the harmonics- Hide quoted text -

 - Show quoted text -

--~--~-~--~~~---~--~~
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] JE Abstractions

2009-09-30 Thread sunanda

Hi,
Can any one provide a simple example to explain how to use JE
abstractions (Call,JsFunc) in lift code . I am new to  Lift Framework

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
-~--~~~~--~~--~--~---