Re: XUI Problems
Posted by
Scott Gray on
Sep 20, 2007; 9:07am
URL: http://ofbiz.116.s1.nabble.com/POS-Setup-tp148376p148398.html
Your best bet would be to try the lists/forums at XUI, I doubt you'll find
much specialist knowledge on the subject here.
Regards
Scott
On 20/09/2007, skip@theDevers <
[hidden email]> wrote:
>
> I am having problems with XUI for complex nested layouts. If the layout
> is
> simple (mostly flat) everything works fine. But, with multiply nested
> border layout containers, it screws up (for me).
>
> I prototyped the thing in Netbeans in an hour, then copied the dimensions
> into an XUI project, so I am sure they are all right.
>
> Here is a snippet of the XUI code:
>
> <XPage next="checkout" layout="Border">
> <Layout hgap="0" vgap="0"/>
> <Components>
> <Panel name="centerPanel" constraint="Center" border="0"
> layout="Border">
> <Panel name="centerTopPanel" h="200" constraint="North"
> opaque="true"
> border="1" layout="Grid">
> <Layout hgap="0" vgap="0" rows="1" columns="2" />
> <Panel name="centerTopLeftPanel" style="prompt" w="352" h="200"
> opaque="true" border="1">
> ...
> </Panel>
> <Panel name="centerTopRightPanel" style="prompt" w="352" h="200"
> opaque="true" border="1" layout="Border">
> ...
> </Panel>
> </Panel>
> <Panel name="centerCenterPanel" h="300" constraint="Center"
> opaque="false"
> border="1">
> ...
> </Panel>
> ...
> </Panel>
> <Panel name="southPanel" w="1024" h="40" constraint="South"
> opaque="false" border="0">
> ...
> </Panel>
> <Panel name="westPanel" w="320" h="636" constraint="West" border="1"
> layout="Grid">
> ...
> </Panel>
> </Panel>
>
> (What I am doing with all this is essentially duplicating the layout of
> the
> Orders-Order Entry screen.)
>
> This displays "sorta" ok (so long as I don't change anything) in the GUI
> editor, but when I run it, the "centerPanel" at the top has nothing in
> it.
>
> I tried this with only dimensions in the "westPanel" and no dimensions
> anywhere else, as well as explicit and carefully calculated dimensions for
> all. Nothing has worked.
>
> I now have four days screwing with this (just trying to layout the
> containers) and I am ready to give it up and hand code it in Java (which
> will take a couple hours at most), but I'd really like to do it in XUI for
> compatibility reasons.
>
> I have tried both using the GUI editor (Netbeans and Eclipse flavors) and
> hand coding the XML. No joy with either method.
>
> I have tried 2.06. 2.07 and the 3.0 versions.
>
> Anyone have a hint or two? I would especially like to find some
> documentation of the XML property definitions.
>
> Skip
>
>