Chen Ding | 1 Mar 13:29
Picon

How to convert "setQueryType(...)"

Hi There, 


I upgraded my OpenLaszlo to 4.2, which requires converting the setters to "setAttribute(...)". I ran the pearl script. Everything worked just fine except that it missed the "setQueryType(...)". I am not sure whether I should convert it, and if yes, what should I use. Shall I convert it to "setAttribute('query_type', xxx)"? Please help!

Below is the code in case it may help.

    ...
    var ds = LzHttpDatasetPool.get(this.loadDel, this.errorDel, this.timeoutDel)    ;
    ds.setQueryType('POST');
    ds.setQueryParams( params );  // 'parms' is a parameter passed in
    ...


Thanks!

Chen Ding
Henry Minsky | 1 Mar 14:54
Favicon

Re: How to convert "setQueryType(...)"

You should use setAttribute for the 'querytype'

setAttribute('querytype', 'post')

setQueryType is now deprecated.

On Sun, Mar 1, 2009 at 7:29 AM, Chen Ding <chending0602 <at> gmail.com> wrote:
> Hi There,
> I upgraded my OpenLaszlo to 4.2, which requires converting the setters to
> "setAttribute(...)". I ran the pearl script. Everything worked just fine
> except that it missed the "setQueryType(...)". I am not sure whether I
> should convert it, and if yes, what should I use. Shall I convert it to
> "setAttribute('query_type', xxx)"? Please help!
> Below is the code in case it may help.
>     ...
>     var ds = LzHttpDatasetPool.get(this.loadDel, this.errorDel,
> this.timeoutDel)    ;
>     ds.setQueryType('POST');
>     ds.setQueryParams( params );  // 'parms' is a parameter passed in
>     ...
>
> Thanks!
> Chen Ding

--

-- 
Henry Minsky
Software Architect
hminsky <at> laszlosystems.com

Lou Iorio | 1 Mar 15:58

index.jsp

Did we agree that we can remove index.jsp from trunk? It's out
of date and mostly redundant with index.html.

All we need to do is svn delete it; browsing to trunk will then
open index.html.

P T Withington | 1 Mar 16:22
Picon
Favicon
Gravatar

Re: index.jsp

Can you ask on Laszlo-user if anyone depends on it?  And maybe  
summarize the differences?

I'm in favor of being all for less duplicate redundancy reduction  
myself speaking for me.

On 2009-03-01, at 09:58EST, Lou Iorio wrote:

> Did we agree that we can remove index.jsp from trunk? It's out
> of date and mostly redundant with index.html.
>
> All we need to do is svn delete it; browsing to trunk will then
> open index.html.

P T Withington | 1 Mar 16:35
Picon
Favicon
Gravatar

Re: How to convert "setQueryType(...)"

And please file a bug to get SetQueryType added to the conversion  
script.

On 2009-03-01, at 08:54EST, Henry Minsky wrote:

> You should use setAttribute for the 'querytype'
>
> setAttribute('querytype', 'post')
>
> setQueryType is now deprecated.
>
>
> On Sun, Mar 1, 2009 at 7:29 AM, Chen Ding <chending0602 <at> gmail.com>  
> wrote:
>> Hi There,
>> I upgraded my OpenLaszlo to 4.2, which requires converting the  
>> setters to
>> "setAttribute(...)". I ran the pearl script. Everything worked just  
>> fine
>> except that it missed the "setQueryType(...)". I am not sure  
>> whether I
>> should convert it, and if yes, what should I use. Shall I convert  
>> it to
>> "setAttribute('query_type', xxx)"? Please help!
>> Below is the code in case it may help.
>>     ...
>>     var ds = LzHttpDatasetPool.get(this.loadDel, this.errorDel,
>> this.timeoutDel)    ;
>>     ds.setQueryType('POST');
>>     ds.setQueryParams( params );  // 'parms' is a parameter passed in
>>     ...
>>
>> Thanks!
>> Chen Ding
>
>
>
> -- 
> Henry Minsky
> Software Architect
> hminsky <at> laszlosystems.com
>

Lou Iorio | 1 Mar 16:55

Re: index.jsp

Wouldn't anyone who cares be on this maillist? This issue does not exist except
for those building from source, since index.jsp does not ship with the pre-built
version.

Go to, for example http://www.openlaszlo.org/lps4.2/, and you get index.html.

On 3/1/09, P T Withington <ptw <at> pobox.com> wrote:
> Can you ask on Laszlo-user if anyone depends on it?  And maybe summarize the
> differences?
>  
>  I'm in favor of being all for less duplicate redundancy reduction myself
> speaking for me.
>
>  
>  On 2009-03-01, at 09:58EST, Lou Iorio wrote:
>  
>  
> > Did we agree that we can remove index.jsp from trunk? It's out
> > of date and mostly redundant with index.html.
> >
> > All we need to do is svn delete it; browsing to trunk will then
> > open index.html.
> >
>  
>  

P T Withington | 1 Mar 18:17
Picon
Favicon
Gravatar

Re: index.jsp

Apparently so!  I was unaware of that.

Given that you already raised this on this list and the responses have  
all been dealt with, I say go for it!

On 2009-03-01, at 10:55EST, Lou Iorio wrote:

> Wouldn't anyone who cares be on this maillist? This issue does not  
> exist
> except
> for those building from source, since index.jsp does not ship with the
> pre-built
> version.
>
> Go to, for example http://www.openlaszlo.org/lps4.2/, and you get
> index.html.
>
> On 3/1/09, P T Withington <ptw <at> pobox.com> wrote:
>> Can you ask on Laszlo-user if anyone depends on it?  And maybe  
>> summarize
> the
>> differences?
>>
>> I'm in favor of being all for less duplicate redundancy reduction  
>> myself
>> speaking for me.
>>
>>
>> On 2009-03-01, at 09:58EST, Lou Iorio wrote:
>>
>>
>>> Did we agree that we can remove index.jsp from trunk? It's out
>>> of date and mostly redundant with index.html.
>>>
>>> All we need to do is svn delete it; browsing to trunk will then
>>> open index.html.
>>>
>>
>>

P T Withington | 1 Mar 20:01
Picon
Favicon
Gravatar

For Review: Change 20090301-ptw-c Summary: Fix nodePath to actually go all the way to the root of the document

[I'm going to check this in because it is likely breaking a lot of  
things...]

Change 20090301-ptw-c by ptw <at> dueling-banjos.home on 2009-03-01  
13:39:42 EST
     in /Users/ptw/OpenLaszlo/trunk-3
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix nodePath to actually go all the way to the root of the  
document

Bugs Fixed:
LPP-7833 onmousedragin / onmousedragout not working in swf8, swf9 or  
DHTML (partial)
LPP-7750 Many warnings and errors with LZOs

Technical Reviewer: a.bargull <at> intensis.de (pending)
QA Reviewer: mdemmon (pending)
Doc Reviewer: (pending)

Details:
     nodePath was not counting duplicate tags at document root

Tests:
     inspection of compiler output for bug test case

Files:
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090301-ptw-c.tar

Lou Iorio | 1 Mar 20:21

For Review: Change 20090301-lou-k Summary: remove index.jsp from trunk

Change 20090301-lou-k by lou <at> loumac.local on 2009-03-01 15:16:52 AST
     in /Users/lou/src/svn/openlaszlo/trunk
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: remove index.jsp from trunk

Bugs Fixed: LPP-7835

Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Details: index.jsp is largley redundant with index.html, and out of  
date.
remove it so index.html is the default page in trunk/

Files:
D      index.jsp

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090301-lou-k.tar

André Bargull | 1 Mar 23:31

Re: For Review: Change 20090301-ptw-c Summary: Fix nodePath to actually go all the way to the root of the document

Approved.

On 3/1/2009 8:01 PM, P T Withington wrote:
> [I'm going to check this in because it is likely breaking a lot of 
> things...]
>
> Change 20090301-ptw-c by ptw <at> dueling-banjos.home on 2009-03-01 
> 13:39:42 EST
>     in /Users/ptw/OpenLaszlo/trunk-3
>     for http://svn.openlaszlo.org/openlaszlo/trunk
>
> Summary: Fix nodePath to actually go all the way to the root of the 
> document
>
> Bugs Fixed:
> LPP-7833 onmousedragin / onmousedragout not working in swf8, swf9 or 
> DHTML (partial)
> LPP-7750 Many warnings and errors with LZOs
>
> Technical Reviewer: a.bargull <at> intensis.de (pending)
> QA Reviewer: mdemmon (pending)
> Doc Reviewer: (pending)
>
> Details:
>     nodePath was not counting duplicate tags at document root
>
> Tests:
>     inspection of compiler output for bug test case
>
> Files:
> M      WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java
>
> Changeset: 
> http://svn.openlaszlo.org/openlaszlo/patches/20090301-ptw-c.tar
>


Gmane