You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Guido Dubois (JIRA)" <de...@myfaces.apache.org> on 2007/02/20 10:23:06 UTC

[jira] Created: (TOBAGO-295) gridlayout - components which have "rendered" attribute "false" are included in calculation of space

gridlayout - components which have "rendered" attribute "false" are included in calculation of space
----------------------------------------------------------------------------------------------------

                 Key: TOBAGO-295
                 URL: https://issues.apache.org/jira/browse/TOBAGO-295
             Project: MyFaces Tobago
          Issue Type: Bug
    Affects Versions: 1.0.9
         Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.5 snap (06.02.2007 04:51), tobago 1.0.10 snap (16.02.2007 5:11)
            Reporter: Guido Dubois


I have to insert a <tc:box> in some cases into a cell of the grid. In the case the box have not to be rendered, the height of the box is included in the calculation of vertical space (horizontally I don't know). The box is not rendered but you get a not wanted vertical blank space. For <tx:in> it's the same...

I think that components which won't be rendered have not to be included in calculation...

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


[jira] Commented: (TOBAGO-295) gridlayout - components which have "rendered" attribute "false" are included in calculation of space

Posted by "Guido Dubois (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474553 ] 

Guido Dubois commented on TOBAGO-295:
-------------------------------------

Hi Volker,

it's my mistake. I have only defined one row in gridLayout for the alternate cells. After I added one row for each cell, even if the cell isn't rendered, it works fine...

Thanks for your help!

> gridlayout - components which have "rendered" attribute "false" are included in calculation of space
> ----------------------------------------------------------------------------------------------------
>
>                 Key: TOBAGO-295
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-295
>             Project: MyFaces Tobago
>          Issue Type: Bug
>    Affects Versions: 1.0.9
>         Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.5 snap (06.02.2007 04:51), tobago 1.0.10 snap (16.02.2007 5:11)
>            Reporter: Guido Dubois
>
> I have to insert a <tc:box> in some cases into a cell of the grid. In the case the box have not to be rendered, the height of the box is included in the calculation of vertical space (horizontally I don't know). The box is not rendered but you get a not wanted vertical blank space. For <tx:in> it's the same...
> I think that components which won't be rendered have not to be included in calculation...

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


[jira] Commented: (TOBAGO-295) gridlayout - components which have "rendered" attribute "false" are included in calculation of space

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474433 ] 

Volker Weber commented on TOBAGO-295:
-------------------------------------

Hi Guido,

components with rendered=false are NOT included into calculation. e.g.:

<tc:panel>
  <f:facet name="layout">
    <tc:gridlayout rows="1*;100px;100px;fixed"/>
   </f:facet>

  <tc:textarea value="some text"/>

  <tc:textarea value="doRender is true" rendered="#{bean.doRender}"/>

  <tc:textarea value="doRender is false" rendered="#{!bean.doRender}"/>  

  <tc:button action="#{bean.toggleDoRender}"/>

<tc:panel>

In this example only the second OR the third textarea are rendered, and no space is reserved for the other.

If you still have problems please post your code on the myfaces users mailinglist [1], prefixed with [Tobago].

[1]: http://myfaces.apache.org/tobago/mail-lists.html


> gridlayout - components which have "rendered" attribute "false" are included in calculation of space
> ----------------------------------------------------------------------------------------------------
>
>                 Key: TOBAGO-295
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-295
>             Project: MyFaces Tobago
>          Issue Type: Bug
>    Affects Versions: 1.0.9
>         Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.5 snap (06.02.2007 04:51), tobago 1.0.10 snap (16.02.2007 5:11)
>            Reporter: Guido Dubois
>
> I have to insert a <tc:box> in some cases into a cell of the grid. In the case the box have not to be rendered, the height of the box is included in the calculation of vertical space (horizontally I don't know). The box is not rendered but you get a not wanted vertical blank space. For <tx:in> it's the same...
> I think that components which won't be rendered have not to be included in calculation...

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