You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@esme.apache.org by Richard Hirsch <hi...@gmail.com> on 2010/09/03 14:02:55 UTC

Problem with [ESME-221]

I'm trying to do a quick change (I just added one line to Boot.scala)
but I get a strange error.

Here is the line

   LiftRules.noticesAutoFadeOut.default.set((noticeType:
NoticeType.Value) => Full((1 seconds, 2 seconds)))

and here is the error

INFO] Compiling 1 source files to D:\apache\esme_patch\trunk\server\target\clas
es
WARNING] D:\apache\esme_patch\trunk\server\src\main\scala\bootstrap\liftweb\Boo
.scala:126: error: type mismatch;
WARNING]  found   : (net.liftweb.http.NoticeType.Value) => net.liftweb.common.F
ll[(net.liftweb.util.TimeHelpers.TimeSpan, net.liftweb.util.TimeHelpers.TimeSpa
)]
WARNING]  required: net.liftweb.util.Vendor[(net.liftweb.http.NoticeType.Value)
=> net.liftweb.common.Box[(net.liftweb.util.Helpers.TimeSpan, net.liftweb.util.
elpers.TimeSpan)]]
WARNING]      LiftRules.noticesAutoFadeOut.default.set((noticeType: NoticeType.
alue) => Full((1 seconds, 2 seconds)))
WARNING]
      ^
WARNING] one error found

Am I missing an import?

D.

Re: Problem with [ESME-221]

Posted by Richard Hirsch <hi...@gmail.com>.
Fixed it as well - it is now set at 3 secs

On Fri, Sep 3, 2010 at 2:55 PM, Imtiaz Ahmed H E <in...@gmail.com> wrote:
> Tried it. It works. The fade-out is too soon after display though with the
> current values used...
>
> Imtiaz
>
> ----- Original Message ----- From: "Richard Hirsch" <hi...@gmail.com>
> To: <es...@incubator.apache.org>
> Sent: Friday, September 03, 2010 6:07 PM
> Subject: Re: Problem with [ESME-221]
>
>
> On Fri, Sep 3, 2010 at 2:33 PM, Imtiaz Ahmed H E <in...@gmail.com>
> wrote:
>>
>> I found,
>>
>> comment out this line as follows:
>>
>> //import TimeHelpers.intToTimeSpanBuilder
>>
>> and use
>>
>> LiftRules
>> .noticesAutoFadeOut
>> .default
>> .set(Vendor((noticeType:NoticeType.Value) => Full((1 seconds, 2
>> seconds))))
>
> Thanks.
>
>>
>>
>> It compiles/builds successfully.
>>
>> Don't know if it gets you what you want !!
>>
>> Don't know if it's related...but teh API tests ran very slow after the
>> change.
>
> Strange - shouldn't have any impact on our tests inasmuch as it is
> purely a UI change. It just makes the lift error warning disappear
> automatically instead of requiring a page refresh.
>
>>
>> I could execute add new pool on the web ui.
>>
>> Imtiaz
>>
>> ----- Original Message ----- From: "Richard Hirsch"
>> <hi...@gmail.com>
>> To: <es...@incubator.apache.org>
>> Sent: Friday, September 03, 2010 5:32 PM
>> Subject: Problem with [ESME-221]
>>
>>
>>> I'm trying to do a quick change (I just added one line to Boot.scala)
>>> but I get a strange error.
>>>
>>> Here is the line
>>>
>>> LiftRules.noticesAutoFadeOut.default.set((noticeType:
>>> NoticeType.Value) => Full((1 seconds, 2 seconds)))
>>>
>>> and here is the error
>>>
>>> INFO] Compiling 1 source files to
>>> D:\apache\esme_patch\trunk\server\target\clas
>>> es
>>> WARNING]
>>> D:\apache\esme_patch\trunk\server\src\main\scala\bootstrap\liftweb\Boo
>>> .scala:126: error: type mismatch;
>>> WARNING] found : (net.liftweb.http.NoticeType.Value) =>
>>> net.liftweb.common.F
>>> ll[(net.liftweb.util.TimeHelpers.TimeSpan,
>>> net.liftweb.util.TimeHelpers.TimeSpa
>>> )]
>>> WARNING] required:
>>> net.liftweb.util.Vendor[(net.liftweb.http.NoticeType.Value)
>>> => net.liftweb.common.Box[(net.liftweb.util.Helpers.TimeSpan,
>>> net.liftweb.util.
>>> elpers.TimeSpan)]]
>>> WARNING] LiftRules.noticesAutoFadeOut.default.set((noticeType:
>>> NoticeType.
>>> alue) => Full((1 seconds, 2 seconds)))
>>> WARNING]
>>> ^
>>> WARNING] one error found
>>>
>>> Am I missing an import?
>>>
>>> D.
>>
>>
>
>

Re: Problem with [ESME-221]

Posted by Imtiaz Ahmed H E <in...@gmail.com>.
Tried it. It works. The fade-out is too soon after display though with the 
current values used...

Imtiaz

----- Original Message ----- 
From: "Richard Hirsch" <hi...@gmail.com>
To: <es...@incubator.apache.org>
Sent: Friday, September 03, 2010 6:07 PM
Subject: Re: Problem with [ESME-221]


On Fri, Sep 3, 2010 at 2:33 PM, Imtiaz Ahmed H E <in...@gmail.com> 
wrote:
> I found,
>
> comment out this line as follows:
>
> //import TimeHelpers.intToTimeSpanBuilder
>
> and use
>
> LiftRules
> .noticesAutoFadeOut
> .default
> .set(Vendor((noticeType:NoticeType.Value) => Full((1 seconds, 2
> seconds))))

Thanks.

>
>
> It compiles/builds successfully.
>
> Don't know if it gets you what you want !!
>
> Don't know if it's related...but teh API tests ran very slow after the
> change.

Strange - shouldn't have any impact on our tests inasmuch as it is
purely a UI change. It just makes the lift error warning disappear
automatically instead of requiring a page refresh.

>
> I could execute add new pool on the web ui.
>
> Imtiaz
>
> ----- Original Message ----- From: "Richard Hirsch" 
> <hi...@gmail.com>
> To: <es...@incubator.apache.org>
> Sent: Friday, September 03, 2010 5:32 PM
> Subject: Problem with [ESME-221]
>
>
>> I'm trying to do a quick change (I just added one line to Boot.scala)
>> but I get a strange error.
>>
>> Here is the line
>>
>> LiftRules.noticesAutoFadeOut.default.set((noticeType:
>> NoticeType.Value) => Full((1 seconds, 2 seconds)))
>>
>> and here is the error
>>
>> INFO] Compiling 1 source files to
>> D:\apache\esme_patch\trunk\server\target\clas
>> es
>> WARNING]
>> D:\apache\esme_patch\trunk\server\src\main\scala\bootstrap\liftweb\Boo
>> .scala:126: error: type mismatch;
>> WARNING] found : (net.liftweb.http.NoticeType.Value) =>
>> net.liftweb.common.F
>> ll[(net.liftweb.util.TimeHelpers.TimeSpan,
>> net.liftweb.util.TimeHelpers.TimeSpa
>> )]
>> WARNING] required:
>> net.liftweb.util.Vendor[(net.liftweb.http.NoticeType.Value)
>> => net.liftweb.common.Box[(net.liftweb.util.Helpers.TimeSpan,
>> net.liftweb.util.
>> elpers.TimeSpan)]]
>> WARNING] LiftRules.noticesAutoFadeOut.default.set((noticeType:
>> NoticeType.
>> alue) => Full((1 seconds, 2 seconds)))
>> WARNING]
>> ^
>> WARNING] one error found
>>
>> Am I missing an import?
>>
>> D.
>
> 


Re: Problem with [ESME-221]

Posted by Richard Hirsch <hi...@gmail.com>.
Thanks for the tip . Committed the change

On Fri, Sep 3, 2010 at 2:37 PM, Richard Hirsch <hi...@gmail.com> wrote:
> On Fri, Sep 3, 2010 at 2:33 PM, Imtiaz Ahmed H E <in...@gmail.com> wrote:
>> I found,
>>
>> comment out this line as follows:
>>
>> //import TimeHelpers.intToTimeSpanBuilder
>>
>> and use
>>
>> LiftRules
>>           .noticesAutoFadeOut
>>           .default
>>           .set(Vendor((noticeType:NoticeType.Value) => Full((1 seconds, 2
>> seconds))))
>
> Thanks.
>
>>
>>
>> It compiles/builds successfully.
>>
>> Don't know if it gets you what you want !!
>>
>> Don't know if it's related...but teh API tests ran very slow after the
>> change.
>
> Strange - shouldn't have any impact on our tests inasmuch as it is
> purely a UI change. It just makes the lift error warning disappear
> automatically instead of requiring a page refresh.
>
>>
>> I could execute add new pool on the web ui.
>>
>> Imtiaz
>>
>> ----- Original Message ----- From: "Richard Hirsch" <hi...@gmail.com>
>> To: <es...@incubator.apache.org>
>> Sent: Friday, September 03, 2010 5:32 PM
>> Subject: Problem with [ESME-221]
>>
>>
>>> I'm trying to do a quick change (I just added one line to Boot.scala)
>>> but I get a strange error.
>>>
>>> Here is the line
>>>
>>>  LiftRules.noticesAutoFadeOut.default.set((noticeType:
>>> NoticeType.Value) => Full((1 seconds, 2 seconds)))
>>>
>>> and here is the error
>>>
>>> INFO] Compiling 1 source files to
>>> D:\apache\esme_patch\trunk\server\target\clas
>>> es
>>> WARNING]
>>> D:\apache\esme_patch\trunk\server\src\main\scala\bootstrap\liftweb\Boo
>>> .scala:126: error: type mismatch;
>>> WARNING]  found   : (net.liftweb.http.NoticeType.Value) =>
>>> net.liftweb.common.F
>>> ll[(net.liftweb.util.TimeHelpers.TimeSpan,
>>> net.liftweb.util.TimeHelpers.TimeSpa
>>> )]
>>> WARNING]  required:
>>> net.liftweb.util.Vendor[(net.liftweb.http.NoticeType.Value)
>>> => net.liftweb.common.Box[(net.liftweb.util.Helpers.TimeSpan,
>>> net.liftweb.util.
>>> elpers.TimeSpan)]]
>>> WARNING]      LiftRules.noticesAutoFadeOut.default.set((noticeType:
>>> NoticeType.
>>> alue) => Full((1 seconds, 2 seconds)))
>>> WARNING]
>>>     ^
>>> WARNING] one error found
>>>
>>> Am I missing an import?
>>>
>>> D.
>>
>>
>

Re: Problem with [ESME-221]

Posted by Richard Hirsch <hi...@gmail.com>.
On Fri, Sep 3, 2010 at 2:33 PM, Imtiaz Ahmed H E <in...@gmail.com> wrote:
> I found,
>
> comment out this line as follows:
>
> //import TimeHelpers.intToTimeSpanBuilder
>
> and use
>
> LiftRules
>           .noticesAutoFadeOut
>           .default
>           .set(Vendor((noticeType:NoticeType.Value) => Full((1 seconds, 2
> seconds))))

Thanks.

>
>
> It compiles/builds successfully.
>
> Don't know if it gets you what you want !!
>
> Don't know if it's related...but teh API tests ran very slow after the
> change.

Strange - shouldn't have any impact on our tests inasmuch as it is
purely a UI change. It just makes the lift error warning disappear
automatically instead of requiring a page refresh.

>
> I could execute add new pool on the web ui.
>
> Imtiaz
>
> ----- Original Message ----- From: "Richard Hirsch" <hi...@gmail.com>
> To: <es...@incubator.apache.org>
> Sent: Friday, September 03, 2010 5:32 PM
> Subject: Problem with [ESME-221]
>
>
>> I'm trying to do a quick change (I just added one line to Boot.scala)
>> but I get a strange error.
>>
>> Here is the line
>>
>>  LiftRules.noticesAutoFadeOut.default.set((noticeType:
>> NoticeType.Value) => Full((1 seconds, 2 seconds)))
>>
>> and here is the error
>>
>> INFO] Compiling 1 source files to
>> D:\apache\esme_patch\trunk\server\target\clas
>> es
>> WARNING]
>> D:\apache\esme_patch\trunk\server\src\main\scala\bootstrap\liftweb\Boo
>> .scala:126: error: type mismatch;
>> WARNING]  found   : (net.liftweb.http.NoticeType.Value) =>
>> net.liftweb.common.F
>> ll[(net.liftweb.util.TimeHelpers.TimeSpan,
>> net.liftweb.util.TimeHelpers.TimeSpa
>> )]
>> WARNING]  required:
>> net.liftweb.util.Vendor[(net.liftweb.http.NoticeType.Value)
>> => net.liftweb.common.Box[(net.liftweb.util.Helpers.TimeSpan,
>> net.liftweb.util.
>> elpers.TimeSpan)]]
>> WARNING]      LiftRules.noticesAutoFadeOut.default.set((noticeType:
>> NoticeType.
>> alue) => Full((1 seconds, 2 seconds)))
>> WARNING]
>>     ^
>> WARNING] one error found
>>
>> Am I missing an import?
>>
>> D.
>
>

Re: Problem with [ESME-221]

Posted by Imtiaz Ahmed H E <in...@gmail.com>.
I found,

comment out this line as follows:

//import TimeHelpers.intToTimeSpanBuilder

and use

LiftRules
            .noticesAutoFadeOut
            .default
            .set(Vendor((noticeType:NoticeType.Value) => Full((1 seconds, 2 
seconds))))


It compiles/builds successfully.

Don't know if it gets you what you want !!

Don't know if it's related...but teh API tests ran very slow after the 
change.

I could execute add new pool on the web ui.

Imtiaz

----- Original Message ----- 
From: "Richard Hirsch" <hi...@gmail.com>
To: <es...@incubator.apache.org>
Sent: Friday, September 03, 2010 5:32 PM
Subject: Problem with [ESME-221]


> I'm trying to do a quick change (I just added one line to Boot.scala)
> but I get a strange error.
>
> Here is the line
>
>   LiftRules.noticesAutoFadeOut.default.set((noticeType:
> NoticeType.Value) => Full((1 seconds, 2 seconds)))
>
> and here is the error
>
> INFO] Compiling 1 source files to 
> D:\apache\esme_patch\trunk\server\target\clas
> es
> WARNING] 
> D:\apache\esme_patch\trunk\server\src\main\scala\bootstrap\liftweb\Boo
> .scala:126: error: type mismatch;
> WARNING]  found   : (net.liftweb.http.NoticeType.Value) => 
> net.liftweb.common.F
> ll[(net.liftweb.util.TimeHelpers.TimeSpan, 
> net.liftweb.util.TimeHelpers.TimeSpa
> )]
> WARNING]  required: 
> net.liftweb.util.Vendor[(net.liftweb.http.NoticeType.Value)
> => net.liftweb.common.Box[(net.liftweb.util.Helpers.TimeSpan, 
> net.liftweb.util.
> elpers.TimeSpan)]]
> WARNING]      LiftRules.noticesAutoFadeOut.default.set((noticeType: 
> NoticeType.
> alue) => Full((1 seconds, 2 seconds)))
> WARNING]
>      ^
> WARNING] one error found
>
> Am I missing an import?
>
> D.