[jira] [Commented] (TOBAGO-1982) Composite components in segment layout not rendered correctly

2024-02-06 Thread Verena Schreyer (Jira)


[ 
https://issues.apache.org/jira/browse/TOBAGO-1982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17814769#comment-17814769
 ] 

Verena Schreyer commented on TOBAGO-1982:
-

The components are not rendered correctly if they are located within a segment 
layout in another component.

Segment layout in parent component:

{code:java}



 {code}
Child component:
{code:java}






 {code}
Output:
{code:java}

  

  
  
test2
  
 {code}

> Composite components in segment layout not rendered correctly
> -
>
> Key: TOBAGO-1982
> URL: https://issues.apache.org/jira/browse/TOBAGO-1982
> Project: MyFaces Tobago
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 4.3.2
>Reporter: Henning Nöth
>Assignee: Henning Nöth
>Priority: Minor
>
> Imagine a composite component for a text, where the attribute "asText" decide 
> if a tc:in or a tc:out is used.
> {code:xml}
> 
>   
>   
> 
> 
>   
>   
> {code}
> Without a layout manager the component show either the tc:in or the tc:out as 
> expected.
>  Within a segment layout the component use two segments. One for the tc:in 
> and the second for the tc:out.
> If "asText=true" the first segment is empty and the second segment shows the 
> tc:out.
> If "asText=false" the first segment shows the tc:in and the second segment is 
> empty.
> This might be not the expected behavior, which I think is that the composite 
> component uses only one segment.
> As a workaround you can wrap the tc:in/tc:out with a panel:
> {code:xml}
> 
>   
> 
> 
>   
> {code}
>  
> (!) And the 'rendered' attribute on the composite component container doesn't 
> work within a segment layout which should be definitely fixed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (TOBAGO-2271) Error for lazy tc:sheet with only one row

2023-12-12 Thread Verena Schreyer (Jira)


[ 
https://issues.apache.org/jira/browse/TOBAGO-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796009#comment-17796009
 ] 

Verena Schreyer commented on TOBAGO-2271:
-

The error occurs both with and without composite component. Here is a 
simplified code example in which the error occurs outside a composite component:
{code:java}


#{value}
 {code}

> Error for lazy tc:sheet with only one row
> -
>
> Key: TOBAGO-2271
> URL: https://issues.apache.org/jira/browse/TOBAGO-2271
> Project: MyFaces Tobago
>  Issue Type: Bug
>  Components: JavaScript
>Affects Versions: 5.9.0
>Reporter: Verena Schreyer
>Assignee: Henning Nöth
>Priority: Major
>  Labels: sheet
> Attachments: error.PNG
>
>
> If the property "lazy" for tc:sheet is set to "true" and there is only one 
> row in the sheet the following error occurs:
>  
> {color:#ff}Uncaught TypeError: Cannot read properties of undefined 
> (reading 'offsetTop'){color}
> {color:#ff}    at get firstVisibleRowIndex [as firstVisibleRowIndex] 
> (tobago-sheet.ts:345:33){color}
> {color:#ff}    at HTMLElement.nextLazyLoad (tobago-sheet.ts:404:39){color}
> {color:#ff}    at HTMLElement.lazyCheck (tobago-sheet.ts:389:23){color}
> {color:#ff}    at HTMLElement.connectedCallback 
> (tobago-sheet.ts:248:12){color}
> {color:#ff}    at HTMLDocument. (tobago-sheet.ts:970:27){color}
> {color:#ff}    at tobago-all.ts:65:12{color}
> {color:#ff}    at tobago.js:1:62{color}
> {color:#ff}    at tobago.js:1:66{color}
>  
> {color:#ff}!error.PNG|height=250,width=600!{color}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (TOBAGO-2271) Error for lazy tc:sheet with only one row

2023-12-12 Thread Verena Schreyer (Jira)
Verena Schreyer created TOBAGO-2271:
---

 Summary: Error for lazy tc:sheet with only one row
 Key: TOBAGO-2271
 URL: https://issues.apache.org/jira/browse/TOBAGO-2271
 Project: MyFaces Tobago
  Issue Type: Bug
Reporter: Verena Schreyer


If the property "lazy" for tc:sheet is set to "true" and there is only one row 
in the sheet the following error occurs:

 

{color:#FF}Uncaught TypeError: Cannot read properties of undefined (reading 
'offsetTop'){color}
{color:#FF}    at get firstVisibleRowIndex [as firstVisibleRowIndex] 
(tobago-sheet.ts:345:33){color}
{color:#FF}    at HTMLElement.nextLazyLoad (tobago-sheet.ts:404:39){color}
{color:#FF}    at HTMLElement.lazyCheck (tobago-sheet.ts:389:23){color}
{color:#FF}    at HTMLElement.connectedCallback 
(tobago-sheet.ts:248:12){color}
{color:#FF}    at HTMLDocument. (tobago-sheet.ts:970:27){color}
{color:#FF}    at tobago-all.ts:65:12{color}
{color:#FF}    at tobago.js:1:62{color}
{color:#FF}    at tobago.js:1:66{color}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (TOBAGO-2225) Date Range Picker

2023-05-26 Thread Verena Schreyer (Jira)
Verena Schreyer created TOBAGO-2225:
---

 Summary: Date Range Picker
 Key: TOBAGO-2225
 URL: https://issues.apache.org/jira/browse/TOBAGO-2225
 Project: MyFaces Tobago
  Issue Type: Wish
Reporter: Verena Schreyer


To be able to filter data based on a time range, it would be nice to have a 
component that supports the selection of a start and end time.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (TOBAGO-2222) Tab Group from Collection

2023-05-22 Thread Verena Schreyer (Jira)
Verena Schreyer created TOBAGO-:
---

 Summary: Tab Group from Collection
 Key: TOBAGO-
 URL: https://issues.apache.org/jira/browse/TOBAGO-
 Project: MyFaces Tobago
  Issue Type: Wish
Reporter: Verena Schreyer


We would like to use the Tab Group in combination with a list to display a tab 
for each list entry.


It is possible to achieve this by using c:forEach, but not using ui:repeat.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)