AW: [Tobago] Image resizing
Hi Volker, it works now, thank you for the solution. I don't know, if it's a bug of Tobago or not?!! Regards, Hani -Ursprüngliche Nachricht- Von: w...m [mailto:w...m] Im Auftrag von Volker Weber Gesendet: Donnerstag, 21. November 2013 15:30 An: MyFaces Discussion Betreff: Re: [Tobago] Image resizing Hi Hani, i think this is a performance issue but i found a solution: this works in the demo. Regards, Volker 2013/11/21 Volker Weber > Hi Hani, > > i see the problem. The valueBinding for the width is evaluated only once, > and this value is used for all rows. > I think Udo should have a look at this. Please file a jira issue. > > Regards, > Volker > > > 2013/11/21 Abushammala, Hani (EXTERN: BERIS) < > ext..de> > > Hi Volker, >> >> try to get the image width from the bean or from the var object. The >> image will not be displayed. >> >> Regards, >> Hani >> >> Von: we.om [m...om] Im >> Auftrag von Volker Weber >> Gesendet: Mittwoch, 20. November 2013 18:14 >> An: MyFaces Discussion >> Betreff: Re: [Tobago] Image resizing >> >> Hi Hani, >> i can't reproduce the problem in the demo (alpha-3-SNAPSHOT). >> The width and height attributes of the image works in the sheet. >> I have attached a diff for the demo. >> Regards, >> Volker >> >> 2013/11/20 Abushammala, Hani (EXTERN: BERIS) < >> ex.de> ex.de>> >> Hi Volker, >> >> thanks for the hint. I tried this way already, but it doesn't work. The >> image could be displayed with fixed width. >> >> Any ideas? >> >> Regards, >> Hani >> >> >> -Ursprüngliche Nachricht- >> Von: weber..com [mailto:weber..com> weber..com>] Im Auftrag von Volker Weber >> Gesendet: Mittwoch, 20. November 2013 09:38 >> An: MyFaces Discussion >> Betreff: Re: [Tobago] Image resizing >> >> Hi, >> >> the content of the column gets the width from the sheets column attribute. >> You should wrap the image into a panel: >> >> >> >> >> > >> >> >> >> >> Regards, >> >> Volker >> >> >> >> 2013/11/14 Abushammala, Hani (EXTERN: BERIS) < >> ext.a...@de<mailto:ext.a...@de>> >> >> > Hi, >> > >> > I need help to resolve a layout problem. >> > >> > In our application we display a bar chart within the sheet, but the used >> > image for the chart could not be dynamically resized after migration >> from >> > Tobago "1.0.39" to "2.0.0 alpha 1". We tried many ways to display an >> image >> > or panel with dynamic width within the sheet, but it doesn't work, >> because >> > the width variable could not be called from bean. >> > >> > >> > Example: >> > > > value="#{bean.items}" >> > columns="60px;60px;200px"> >> > > > id="min" sortable="true" align="center"> >> > >> > >> > > > id="max" sortable="true" align="center"> >> > >> > >> > >> > > > width="#{item.gauge.width}" >> > height="16" /> >> > >> > >> > >> > Here the image will be resized automatically to 200px. >> > >> > Any ideas? >> > >> > >> > >> > The application details: >> > tobago-core-2.0.0-alpha-1.jar >> > myfaces-impl-2.1.12.jar >> > myfaces-api-2.1.12.jar >> > Browser: Firefox 22.0 >> > >> > Regards, >> > Hani >> > >> > >> > >> > Regards, >> > Hani >> > >> > >> > >> >> >> -- >> inexso - information exchange solutions GmbH >> Ofener Straße 30 | 26121 Oldenburg >> www.inexso.de<http://www.inexso.de> >> >> >> >> -- >> inexso - information exchange solutions GmbH >> Ofener Straße 30 | 26121 Oldenburg >> www.inexso.de<http://www.inexso.de> >> > > > > -- > inexso - information exchange solutions GmbH > Ofener Straße 30 | 26121 Oldenburg > www.inexso.de > -- inexso - information exchange solutions GmbH Ofener Straße 30 | 26121 Oldenburg www.inexso.de
Re: [Tobago] Image resizing
Hi Hani, i think this is a performance issue but i found a solution: this works in the demo. Regards, Volker 2013/11/21 Volker Weber > Hi Hani, > > i see the problem. The valueBinding for the width is evaluated only once, > and this value is used for all rows. > I think Udo should have a look at this. Please file a jira issue. > > Regards, > Volker > > > 2013/11/21 Abushammala, Hani (EXTERN: BERIS) < > extern.hani.abushamma...@volkswagen.de> > > Hi Volker, >> >> try to get the image width from the bean or from the var object. The >> image will not be displayed. >> >> Regards, >> Hani >> >> Von: weber.vol...@googlemail.com [mailto:weber.vol...@googlemail.com] Im >> Auftrag von Volker Weber >> Gesendet: Mittwoch, 20. November 2013 18:14 >> An: MyFaces Discussion >> Betreff: Re: [Tobago] Image resizing >> >> Hi Hani, >> i can't reproduce the problem in the demo (alpha-3-SNAPSHOT). >> The width and height attributes of the image works in the sheet. >> I have attached a diff for the demo. >> Regards, >> Volker >> >> 2013/11/20 Abushammala, Hani (EXTERN: BERIS) < >> extern.hani.abushamma...@volkswagen.de> extern.hani.abushamma...@volkswagen.de>> >> Hi Volker, >> >> thanks for the hint. I tried this way already, but it doesn't work. The >> image could be displayed with fixed width. >> >> Any ideas? >> >> Regards, >> Hani >> >> >> -Ursprüngliche Nachricht- >> Von: weber..com [mailto:weber..com> weber..com>] Im Auftrag von Volker Weber >> Gesendet: Mittwoch, 20. November 2013 09:38 >> An: MyFaces Discussion >> Betreff: Re: [Tobago] Image resizing >> >> Hi, >> >> the content of the column gets the width from the sheets column attribute. >> You should wrap the image into a panel: >> >> >> >> >> > >> >> >> >> >> Regards, >> >> Volker >> >> >> >> 2013/11/14 Abushammala, Hani (EXTERN: BERIS) < >> ext.a...@de<mailto:ext.a...@de>> >> >> > Hi, >> > >> > I need help to resolve a layout problem. >> > >> > In our application we display a bar chart within the sheet, but the used >> > image for the chart could not be dynamically resized after migration >> from >> > Tobago "1.0.39" to "2.0.0 alpha 1". We tried many ways to display an >> image >> > or panel with dynamic width within the sheet, but it doesn't work, >> because >> > the width variable could not be called from bean. >> > >> > >> > Example: >> > > > value="#{bean.items}" >> > columns="60px;60px;200px"> >> > > > id="min" sortable="true" align="center"> >> > >> > >> > > > id="max" sortable="true" align="center"> >> > >> > >> > >> > > > width="#{item.gauge.width}" >> > height="16" /> >> > >> > >> > >> > Here the image will be resized automatically to 200px. >> > >> > Any ideas? >> > >> > >> > >> > The application details: >> > tobago-core-2.0.0-alpha-1.jar >> > myfaces-impl-2.1.12.jar >> > myfaces-api-2.1.12.jar >> > Browser: Firefox 22.0 >> > >> > Regards, >> > Hani >> > >> > >> > >> > Regards, >> > Hani >> > >> > >> > >> >> >> -- >> inexso - information exchange solutions GmbH >> Ofener Straße 30 | 26121 Oldenburg >> www.inexso.de<http://www.inexso.de> >> >> >> >> -- >> inexso - information exchange solutions GmbH >> Ofener Straße 30 | 26121 Oldenburg >> www.inexso.de<http://www.inexso.de> >> > > > > -- > inexso - information exchange solutions GmbH > Ofener Straße 30 | 26121 Oldenburg > www.inexso.de > -- inexso - information exchange solutions GmbH Ofener Straße 30 | 26121 Oldenburg www.inexso.de
Re: [Tobago] Image resizing
Hi Hani, i see the problem. The valueBinding for the width is evaluated only once, and this value is used for all rows. I think Udo should have a look at this. Please file a jira issue. Regards, Volker 2013/11/21 Abushammala, Hani (EXTERN: BERIS) < extern.hani.abushamma...@volkswagen.de> > Hi Volker, > > try to get the image width from the bean or from the var object. The image > will not be displayed. > > Regards, > Hani > > Von: weber.vol...@googlemail.com [mailto:weber.vol...@googlemail.com] Im > Auftrag von Volker Weber > Gesendet: Mittwoch, 20. November 2013 18:14 > An: MyFaces Discussion > Betreff: Re: [Tobago] Image resizing > > Hi Hani, > i can't reproduce the problem in the demo (alpha-3-SNAPSHOT). > The width and height attributes of the image works in the sheet. > I have attached a diff for the demo. > Regards, > Volker > > 2013/11/20 Abushammala, Hani (EXTERN: BERIS) < > extern.hani.abushamma...@volkswagen.de extern.hani.abushamma...@volkswagen.de>> > Hi Volker, > > thanks for the hint. I tried this way already, but it doesn't work. The > image could be displayed with fixed width. > > Any ideas? > > Regards, > Hani > > > -Ursprüngliche Nachricht- > Von: weber..com [mailto:weber..com weber..com>] Im Auftrag von Volker Weber > Gesendet: Mittwoch, 20. November 2013 09:38 > An: MyFaces Discussion > Betreff: Re: [Tobago] Image resizing > > Hi, > > the content of the column gets the width from the sheets column attribute. > You should wrap the image into a panel: > > > > > > > > > > Regards, > > Volker > > > > 2013/11/14 Abushammala, Hani (EXTERN: BERIS) < > ext.a...@de<mailto:ext.a...@de>> > > > Hi, > > > > I need help to resolve a layout problem. > > > > In our application we display a bar chart within the sheet, but the used > > image for the chart could not be dynamically resized after migration from > > Tobago "1.0.39" to "2.0.0 alpha 1". We tried many ways to display an > image > > or panel with dynamic width within the sheet, but it doesn't work, > because > > the width variable could not be called from bean. > > > > > > Example: > > > value="#{bean.items}" > > columns="60px;60px;200px"> > > > id="min" sortable="true" align="center"> > > > > > > > id="max" sortable="true" align="center"> > > > > > > > > > width="#{item.gauge.width}" > > height="16" /> > > > > > > > > Here the image will be resized automatically to 200px. > > > > Any ideas? > > > > > > > > The application details: > > tobago-core-2.0.0-alpha-1.jar > > myfaces-impl-2.1.12.jar > > myfaces-api-2.1.12.jar > > Browser: Firefox 22.0 > > > > Regards, > > Hani > > > > > > > > Regards, > > Hani > > > > > > > > > -- > inexso - information exchange solutions GmbH > Ofener Straße 30 | 26121 Oldenburg > www.inexso.de<http://www.inexso.de> > > > > -- > inexso - information exchange solutions GmbH > Ofener Straße 30 | 26121 Oldenburg > www.inexso.de<http://www.inexso.de> > -- inexso - information exchange solutions GmbH Ofener Straße 30 | 26121 Oldenburg www.inexso.de
AW: [Tobago] Image resizing
Hi Volker, try to get the image width from the bean or from the var object. The image will not be displayed. Regards, Hani Von: weber.vol...@googlemail.com [mailto:weber.vol...@googlemail.com] Im Auftrag von Volker Weber Gesendet: Mittwoch, 20. November 2013 18:14 An: MyFaces Discussion Betreff: Re: [Tobago] Image resizing Hi Hani, i can't reproduce the problem in the demo (alpha-3-SNAPSHOT). The width and height attributes of the image works in the sheet. I have attached a diff for the demo. Regards, Volker 2013/11/20 Abushammala, Hani (EXTERN: BERIS) mailto:extern.hani.abushamma...@volkswagen.de>> Hi Volker, thanks for the hint. I tried this way already, but it doesn't work. The image could be displayed with fixed width. Any ideas? Regards, Hani -Ursprüngliche Nachricht- Von: weber..com [mailto:weber..com<mailto:weber..com>] Im Auftrag von Volker Weber Gesendet: Mittwoch, 20. November 2013 09:38 An: MyFaces Discussion Betreff: Re: [Tobago] Image resizing Hi, the content of the column gets the width from the sheets column attribute. You should wrap the image into a panel: Regards, Volker 2013/11/14 Abushammala, Hani (EXTERN: BERIS) < ext.a...@de<mailto:ext.a...@de>> > Hi, > > I need help to resolve a layout problem. > > In our application we display a bar chart within the sheet, but the used > image for the chart could not be dynamically resized after migration from > Tobago "1.0.39" to "2.0.0 alpha 1". We tried many ways to display an image > or panel with dynamic width within the sheet, but it doesn't work, because > the width variable could not be called from bean. > > > Example: > value="#{bean.items}" > columns="60px;60px;200px"> > id="min" sortable="true" align="center"> > > > id="max" sortable="true" align="center"> > > > > width="#{item.gauge.width}" > height="16" /> > > > > Here the image will be resized automatically to 200px. > > Any ideas? > > > > The application details: > tobago-core-2.0.0-alpha-1.jar > myfaces-impl-2.1.12.jar > myfaces-api-2.1.12.jar > Browser: Firefox 22.0 > > Regards, > Hani > > > > Regards, > Hani > > > -- inexso - information exchange solutions GmbH Ofener Straße 30 | 26121 Oldenburg www.inexso.de<http://www.inexso.de> -- inexso - information exchange solutions GmbH Ofener Straße 30 | 26121 Oldenburg www.inexso.de<http://www.inexso.de>
Re: [Tobago] Image resizing
Hi Hani, i can't reproduce the problem in the demo (alpha-3-SNAPSHOT). The width and height attributes of the image works in the sheet. I have attached a diff for the demo. Regards, Volker 2013/11/20 Abushammala, Hani (EXTERN: BERIS) < extern.hani.abushamma...@volkswagen.de> > Hi Volker, > > thanks for the hint. I tried this way already, but it doesn't work. The > image could be displayed with fixed width. > > Any ideas? > > Regards, > Hani > > > -Ursprüngliche Nachricht- > Von: weber..com [mailto:weber..com] Im Auftrag von Volker > Weber > Gesendet: Mittwoch, 20. November 2013 09:38 > An: MyFaces Discussion > Betreff: Re: [Tobago] Image resizing > > Hi, > > the content of the column gets the width from the sheets column attribute. > You should wrap the image into a panel: > > > > > > > > > > Regards, > > Volker > > > > 2013/11/14 Abushammala, Hani (EXTERN: BERIS) < > ext.a...@de> > > > Hi, > > > > I need help to resolve a layout problem. > > > > In our application we display a bar chart within the sheet, but the used > > image for the chart could not be dynamically resized after migration from > > Tobago "1.0.39" to "2.0.0 alpha 1". We tried many ways to display an > image > > or panel with dynamic width within the sheet, but it doesn't work, > because > > the width variable could not be called from bean. > > > > > > Example: > > > value="#{bean.items}" > > columns="60px;60px;200px"> > > > id="min" sortable="true" align="center"> > > > > > > > id="max" sortable="true" align="center"> > > > > > > > > > width="#{item.gauge.width}" > > height="16" /> > > > > > > > > Here the image will be resized automatically to 200px. > > > > Any ideas? > > > > > > > > The application details: > > tobago-core-2.0.0-alpha-1.jar > > myfaces-impl-2.1.12.jar > > myfaces-api-2.1.12.jar > > Browser: Firefox 22.0 > > > > Regards, > > Hani > > > > > > > > Regards, > > Hani > > > > > > > > > -- > inexso - information exchange solutions GmbH > Ofener Straße 30 | 26121 Oldenburg > www.inexso.de > -- inexso - information exchange solutions GmbH Ofener Straße 30 | 26121 Oldenburg www.inexso.de Index: tobago-example/tobago-example-demo/src/main/webapp/content/02-sheet/sheet.xhtml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 === --- tobago-example/tobago-example-demo/src/main/webapp/content/02-sheet/sheet.xhtml (revision 1543882) +++ tobago-example/tobago-example-demo/src/main/webapp/content/02-sheet/sheet.xhtml (revision ) @@ -127,7 +127,7 @@ + + +
AW: [Tobago] Image resizing
Hi Volker, thanks for the hint. I tried this way already, but it doesn't work. The image could be displayed with fixed width. Any ideas? Regards, Hani -Ursprüngliche Nachricht- Von: weber..com [mailto:weber..com] Im Auftrag von Volker Weber Gesendet: Mittwoch, 20. November 2013 09:38 An: MyFaces Discussion Betreff: Re: [Tobago] Image resizing Hi, the content of the column gets the width from the sheets column attribute. You should wrap the image into a panel: Regards, Volker 2013/11/14 Abushammala, Hani (EXTERN: BERIS) < ext.a...@de> > Hi, > > I need help to resolve a layout problem. > > In our application we display a bar chart within the sheet, but the used > image for the chart could not be dynamically resized after migration from > Tobago "1.0.39" to "2.0.0 alpha 1". We tried many ways to display an image > or panel with dynamic width within the sheet, but it doesn't work, because > the width variable could not be called from bean. > > > Example: > value="#{bean.items}" > columns="60px;60px;200px"> > id="min" sortable="true" align="center"> > > > id="max" sortable="true" align="center"> > > > > width="#{item.gauge.width}" > height="16" /> > > > > Here the image will be resized automatically to 200px. > > Any ideas? > > > > The application details: > tobago-core-2.0.0-alpha-1.jar > myfaces-impl-2.1.12.jar > myfaces-api-2.1.12.jar > Browser: Firefox 22.0 > > Regards, > Hani > > > > Regards, > Hani > > > -- inexso - information exchange solutions GmbH Ofener Straße 30 | 26121 Oldenburg www.inexso.de
Re: [Tobago] Image resizing
Hi, the content of the column gets the width from the sheets column attribute. You should wrap the image into a panel: Regards, Volker 2013/11/14 Abushammala, Hani (EXTERN: BERIS) < extern.hani.abushamma...@volkswagen.de> > Hi, > > I need help to resolve a layout problem. > > In our application we display a bar chart within the sheet, but the used > image for the chart could not be dynamically resized after migration from > Tobago "1.0.39" to "2.0.0 alpha 1". We tried many ways to display an image > or panel with dynamic width within the sheet, but it doesn't work, because > the width variable could not be called from bean. > > > Example: > value="#{bean.items}" > columns="60px;60px;200px"> > id="min" sortable="true" align="center"> > > > id="max" sortable="true" align="center"> > > > > width="#{item.gauge.width}" > height="16" /> > > > > Here the image will be resized automatically to 200px. > > Any ideas? > > > > The application details: > tobago-core-2.0.0-alpha-1.jar > myfaces-impl-2.1.12.jar > myfaces-api-2.1.12.jar > Browser: Firefox 22.0 > > Regards, > Hani > > > > Regards, > Hani > > > -- inexso - information exchange solutions GmbH Ofener Straße 30 | 26121 Oldenburg www.inexso.de
[Tobago] Image resizing
Hi, I need help to resolve a layout problem. In our application we display a bar chart within the sheet, but the used image for the chart could not be dynamically resized after migration from Tobago "1.0.39" to "2.0.0 alpha 1". We tried many ways to display an image or panel with dynamic width within the sheet, but it doesn't work, because the width variable could not be called from bean. Example: Here the image will be resized automatically to 200px. Any ideas? The application details: tobago-core-2.0.0-alpha-1.jar myfaces-impl-2.1.12.jar myfaces-api-2.1.12.jar Browser: Firefox 22.0 Regards, Hani Regards, Hani