You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-dev@incubator.apache.org by "Trevor Oldak (JIRA)" <xa...@incubator.apache.org> on 2007/01/18 21:44:29 UTC

[jira] Created: (XAP-273) Widgets: VerticalBoxPane: Alignment = 'stretch' causes children to disappear

Widgets: VerticalBoxPane: Alignment = 'stretch' causes children to disappear
----------------------------------------------------------------------------

                 Key: XAP-273
                 URL: https://issues.apache.org/jira/browse/XAP-273
             Project: XAP
          Issue Type: Bug
          Components: Widgets
            Reporter: Trevor Oldak


Open the VerticalBoxPane widget example.
Click the radio button to set 'alignment' equal to 'stretch'
The panes inside the test component disappear.

They do not disappear when alignment is set to any other value.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (XAP-273) Widgets: VerticalBoxPane: Alignment = 'stretch' causes children to disappear

Posted by "James Margaris (JIRA)" <xa...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/XAP-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Margaris updated XAP-273:
-------------------------------

    Component/s:     (was: Widgets)
                 Layouts

> Widgets: VerticalBoxPane: Alignment = 'stretch' causes children to disappear
> ----------------------------------------------------------------------------
>
>                 Key: XAP-273
>                 URL: https://issues.apache.org/jira/browse/XAP-273
>             Project: XAP
>          Issue Type: Bug
>          Components: Layouts
>            Reporter: Trevor Oldak
>
> Open the VerticalBoxPane widget example.
> Click the radio button to set 'alignment' equal to 'stretch'
> The panes inside the test component disappear.
> They do not disappear when alignment is set to any other value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


RE: Strut2 Plugin

Posted by Bob Buffone <rb...@nexaweb.com>.
Chand,

Using XAP with Struts is a fairly straightforward process.  Being that
XAP renders the XAL/xModify markup on the client, you just need to
change the output of the action handlers to render XAL/xModify.  I took
the PersonManager sample that is include in the Struts distro and
modified it to work with XAP as well as started a XAP/Struts integration
page on the WIKI.

XAP Person Manager ZIP:
http://people.apache.org/~bbuffone/share/xap-struts-example.zip
Stuts Integration Wiki Page:
http://wiki.apache.org/incubator/xap/XAPStruts

I think that eventually we should create a plugin for struts to make XAP
integration easier with the validation framework that Stuts provides and
probably other things as well.

Let me know it these resources help, the wiki needs more updating but
should get you started down the right path.

Bob (Buffone)


-----Original Message-----
From: Chandresh Turakhia [mailto:chand.turakhia@bhartitelesoft.com] 
Sent: Wednesday, February 28, 2007 1:42 AM
To: xap-dev@incubator.apache.org
Subject: Strut2 Plugin 

Team,

Does this may sense. to have Struts2 plugin.

http://struts.apache.org/2.x/docs/plugins.html

Or atleast code example where XAP runtime on client interprets XAL and
framework is Struts2.

Any good example for managing  Complez "Screen Orchestation".     RIA
needs "ClientSide Screen Orchestration".     Because Widgets sometimes
are as good as "Small Components Screens" . Managing dependency - cross
component updates etc requires DESIGN supported in Architecture. e.g
Error in one part ; needs all other widgets to change state.

Chand


Strut2 Plugin

Posted by Chandresh Turakhia <ch...@bhartitelesoft.com>.
Team,

Does this may sense. to have Struts2 plugin.

http://struts.apache.org/2.x/docs/plugins.html

Or atleast code example where XAP runtime on client interprets XAL and framework is Struts2.

Any good example for managing  Complez "Screen Orchestation".     RIA needs "ClientSide Screen Orchestration".     Because Widgets sometimes are as good as "Small Components Screens" . Managing dependency - cross component updates etc requires DESIGN supported in Architecture. e.g Error in one part ; needs all other widgets to change state.

Chand


[jira] Commented: (XAP-273) Widgets: VerticalBoxPane: Alignment = 'stretch' causes children to disappear

Posted by "James Margaris (JIRA)" <xa...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/XAP-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476477 ] 

James Margaris commented on XAP-273:
------------------------------------

Note that if you have a size set on the verticalBoxPane this does not happen.

This is an artifact of how the component test is written.

1. The verticalBoxPane does not have a width set.
2. The verticalBoxPane children are all freePanes
3. When align=stretch the freePane widths are set to 100%
4. Because freePane is absolute with absolute children, it does not have an intrinsic preferred size
5. Therefore both the verticalBoxPane and the freePanes end up at size zero.

Ideally this would not happen but it is hard to avoid. Mostly it is a freePane issue. No matter what is inside a freePane the 'preferred size' of the freePane is zero.

> Widgets: VerticalBoxPane: Alignment = 'stretch' causes children to disappear
> ----------------------------------------------------------------------------
>
>                 Key: XAP-273
>                 URL: https://issues.apache.org/jira/browse/XAP-273
>             Project: XAP
>          Issue Type: Bug
>          Components: Layouts
>            Reporter: Trevor Oldak
>
> Open the VerticalBoxPane widget example.
> Click the radio button to set 'alignment' equal to 'stretch'
> The panes inside the test component disappear.
> They do not disappear when alignment is set to any other value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (XAP-273) Widgets: VerticalBoxPane: Alignment = 'stretch' causes children to disappear

Posted by "Rob Gagne (JIRA)" <xa...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/XAP-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Gagne updated XAP-273:
--------------------------

    Priority: Minor  (was: Major)

> Widgets: VerticalBoxPane: Alignment = 'stretch' causes children to disappear
> ----------------------------------------------------------------------------
>
>                 Key: XAP-273
>                 URL: https://issues.apache.org/jira/browse/XAP-273
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets: Layouts
>            Reporter: Trevor Oldak
>            Priority: Minor
>
> Open the VerticalBoxPane widget example.
> Click the radio button to set 'alignment' equal to 'stretch'
> The panes inside the test component disappear.
> They do not disappear when alignment is set to any other value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.