Second try for this letter. I sent it yesterday but didn't found it on nabble.

Hello,

On Sep 27, 2008, at 12:56 AM, Burak Arslan wrote:

> Derrell Lipman wrote:
>> On Fri, Sep 26, 2008 at 11:51 AM, Burak Arslan <[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>> wrote:
>>    i tried qxtransformer some time ago. it's quite buggy, it did
>> not look
>>    like a finished product. it's implemented using xsl/xslt, so its
>> "code"
>>    looks horrendous. it'd be fine if it just worked but as it is
>> now i
>>    wouldn't get near it.
>> That seems a bit unfair.  Having tried something "some time ago"
>> and found it buggy is not necessarily indicative of current state.
>> Christian and his gang have been very actively working  on
>> qxtransformer, as is seen from the frequent commits.  I don't use
>> it, but I highly suspect that it's currently in much better
>> condition then this message would indicate.  And if not, I'm quite
>> sure that Christian would appreciate any bugs you do find being
>> reported to him.
>
> I looked at my notes, and it turns out that "some time ago", it was
> August 3rd. svn log shows the revision at that time was 130, committed
> months before. Looking at the state of the project, I thought it was
> abandoned and never looked at it again. it's quite unlucky because
> commit 131 was the next day :-( I'm sorry if I hurt anybody's
> feelings.

We work on qxtransformer in our free time. Sometimes real work takes a
lot
of time(and even free).

>
>
> By the way, the bug I found is still there, but it says it's now
> deprecated. (line 190, qx_id2281566  is undefined, it should be
> qx_id2283237).

Actually it's not a bug, you a little misunderstood how to use widgets
and includes.
>
>
> But i still think that:
> 1. defining a new set of xml tags is too much work.

Not too much, we added widgets import, now you can import widgets
written in pure java script and
use them in XML as tags. We will add documentation to wiki (but now my
focus is to add 0.8 support).

>
> 2. xsl/xslt is a maintenance nightmare.

I have big plans to improve it. Don't want to say about it in details,
at fist I want to implement it.

>
>
>

In the fisrt file you're defining include but use <qx:widget> inside.
We have 2 main top tags in qxtransformer,
for which the system will generate separate classes - qx:application
and qx:widget. If you take a look at
generated code you can see that you have widget class definition
(deneme.wgCompany, it's widget) inside
main class deneme.AppMain. So, widgets are processed as separate
classes.

<qxt:include> works similar to include scriptlets in JSP, it inserts a
code defined inside include-definition to main document.

So, the result (after include processing) will be (see below)



>
> <?xml version="1.0" encoding="utf-8"?>
> <qxt:include-definition xmlns:qx="http://www.qxtransformer.org/
> qooxdoo"
>                        xmlns:qxt="http://www.qxtransformer.org/extension
> ">
>
>       <qx:widget namespace="deneme" className="wgCompany"
> title="CompanyEdit">
>               <qx:gridLayout dimension="259,auto" verticalSpacing="4"
> horizontalSpacing="6">
>                       <qx:gridLayoutColumn width="70" 
> verticalAlignment="middle" />
>                       <qx:gridLayoutColumn width="180" />
>
>                       <qx:gridLayoutRow height="20">
>                               <qx:gridLayoutCell> <qx:label text="Name" />  
> </qx:gridLayoutCell>
>                               <qx:gridLayoutCell> <qx:textField /> 
> </qx:gridLayoutCell>
>                       </qx:gridLayoutRow>
>                       
>                       <qx:gridLayoutRow height="20">
>                               <qx:gridLayoutCell> <qx:label text="Amount" /> 
> </
> qx:gridLayoutCell>
>                               <qx:gridLayoutCell> <qx:spinner min="0" 
> max="10" value="0" /> </
> qx:gridLayoutCell>
>                       </qx:gridLayoutRow>
>               </qx:gridLayout>
>       </qx:widget>
> </qxt:include-definition>
>

<qx:application .....>

        <!-- this is a place where you included deneme.AppMain.company.qinc -->
        <qx:widget namespace="deneme" className="wgCompany".....>
        
        ....
        
        </qx:widget>
        <!--end of include-->

        <qx:verticalBoxLayout width="100%"....>
.....

> <qx:application title="deneme" namespace="deneme" authors=""
> translate="true" className="AppMain">
>               <qxt:include src="/deneme.AppMain.company.qinc" />
>               <qx:verticalBoxLayout width="100%" height="100%" id="lvMain">
>
> <?xml version="1.0" encoding="utf-8"?>
> <qx:root xmlns:qx="http://www.qxtransformer.org/qooxdoo"; 
> xmlns:qxt="http://www.qxtransformer.org/extension
> " qooxdooVersion="0.7.3">
>       <qx:application title="deneme" namespace="deneme" authors=""
> translate="true" className="AppMain">
>               <qxt:include src="/deneme.AppMain.company.qinc" />
>               <qx:verticalBoxLayout width="100%" height="100%" id="lvMain">
>                       <qx:toolBar width="100%" id="toolBar">
>                               <qx:horizontalBoxLayout width="100%" 
> height="100%" id="lhToolbar">
>                                       <qx:label id="lblDeneme" width="1*" 
> top="5" left="10">
>                                               <b>Deneme</b>
>                                       </qx:label>
>                                       <qx:toolBarButton id="btnDeneme" 
> text="Deneme" icon="icon/22/
> actions/zoom.png" />
>                                       <qx:toolBarButton id="btnDeneme2" 
> text="Deneme2" icon="icon/22/
> actions/zoom.png" />
>                               </qx:horizontalBoxLayout>
>                       </qx:toolBar>
>                       
>                       <qx:horizontalSplitPane id="hspltMain" firstSize="300"
> secondSize="1*" top="0" left="0" width="100%" height="1*"
> border="inset" showKnob="true">
>                               <qx:leftPane>
>                                       <qx:tree id="sessionTree" left="0" 
> top="0" width="100%"
> height="100%" backgroundColor="white" label="Deneme">
>                                               <qx:eventListener 
> type="changeSelection"><![CDATA[
>                                                       var node = 
> event.getData()[0];
>                                                       var tmp = 
> node.getLabel();
>                                                       if (tmp == "Company") {
>                                                               w= new 
> deneme.wgCompany;
>                                                               
> lhRightPane.add(w);
>                                                       }
>                                               ]]></qx:eventListener>
>                                               <qx:treeFolder label="Base 
> Operations" id="ndBase">
>                                                       <qx:treeFile 
> label="Company" id="ndCompany"/>
>                                               </qx:treeFolder>
>                                       </qx:tree>
>                               </qx:leftPane>
>                               <qx:rightPane id="pnMain">
>                                       <qx:horizontalBoxLayout width="100%" 
> height="100%"
> id="lhRightPane">
>                                               <qx:label id="lblDeneme" 
> width="1*" top="5" left="10">
>                                                       <b>Deneme</b>
>                                               </qx:label>
>                                       </qx:horizontalBoxLayout>
>                               </qx:rightPane>
>                       </qx:horizontalSplitPane>
>               </qx:verticalBoxLayout>
>       </qx:application>
> </qx:root>
>

That's why you have incorrect code. Try to remove <qx:widget> from
qxt:include-definition and leave just qx:gridLayout.
It's just at fist glance. I didn't run this code. If you have any
problems you can ask question in our google group.



Best regards,
Siarhei Barysiuk



> <
> AppMain
> .js
> >
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to