Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 568FB10693 for ; Wed, 20 Nov 2013 17:14:37 +0000 (UTC) Received: (qmail 85532 invoked by uid 500); 20 Nov 2013 17:14:35 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 84976 invoked by uid 500); 20 Nov 2013 17:14:32 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 84966 invoked by uid 99); 20 Nov 2013 17:14:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Nov 2013 17:14:31 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of weber.volker@googlemail.com designates 209.85.192.173 as permitted sender) Received: from [209.85.192.173] (HELO mail-pd0-f173.google.com) (209.85.192.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Nov 2013 17:14:25 +0000 Received: by mail-pd0-f173.google.com with SMTP id p10so2257685pdj.18 for ; Wed, 20 Nov 2013 09:14:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=7azUKlDGhX/rKs6uRjLkbbbXNE1UMYRXbdC/CVRVvgU=; b=YwYSyfh8ZfGi6BBrynIYCCiGgNApc4Rq4tc4lbac4xG5yoo0YxQbPTxzvAPdi+Ii8y OFDogIgcXpUmVKgRB31PyHI3BkIFysiUPlx10GM43KGHCW6zCE08kf6d6foy2WXgr155 EMN8OwWU2tfk8JR9PIpw9w0QI6dO8rXWD4IYHZVbcnZqkb73dQzQM7GxTCNgnA8j9fP4 T4sRgL7td7sjJUdvup9oG4ZiImrhBavVusY0dGCjLObBQj9RsYhYZ+qjhFpZog+TtFRr hMviLTC6EI9Zo/AX+/OQBPMpHKhIVq5/A91NX4+NnP0gRLwZohSj58EuUYkotvTQchKr mPXQ== MIME-Version: 1.0 X-Received: by 10.68.197.36 with SMTP id ir4mr1831272pbc.96.1384967642710; Wed, 20 Nov 2013 09:14:02 -0800 (PST) Sender: weber.volker@googlemail.com Received: by 10.68.150.74 with HTTP; Wed, 20 Nov 2013 09:14:02 -0800 (PST) In-Reply-To: References: Date: Wed, 20 Nov 2013 18:14:02 +0100 X-Google-Sender-Auth: XF0eFeAFE9YkwBQIBYPWkU-HE8Y Message-ID: Subject: Re: [Tobago] Image resizing From: Volker Weber To: MyFaces Discussion Content-Type: multipart/mixed; boundary=e89a8ff1c8405eb62c04eb9ee829 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1c8405eb62c04eb9ee829 Content-Type: multipart/alternative; boundary=e89a8ff1c8405eb62704eb9ee827 --e89a8ff1c8405eb62704eb9ee827 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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.abushammala1@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=C3=BCngliche 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.....ala1@....de> > > > Hi, > > > > I need help to resolve a layout problem. > > > > In our application we display a bar chart within the sheet, but the use= d > > image for the chart could not be dynamically resized after migration fr= om > > 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=3D"#{bean.items}" > > columns=3D"60px;60px;200px"> > > > id=3D"min" sortable=3D"true" align=3D"center"> > > > > > > > id=3D"max" sortable=3D"true" align=3D"center"> > > > > > > > > > width=3D"#{item.gauge.width}" > > height=3D"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=C3=9Fe 30 | 26121 Oldenburg > www.inexso.de > --=20 inexso - information exchange solutions GmbH Ofener Stra=C3=9Fe 30 | 26121 Oldenburg www.inexso.de --e89a8ff1c8405eb62704eb9ee827 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 att= ached a diff for the demo.

Regards,
=C2=A0 Volker


2013/11/20 Abushammala, Hani (EXTERN:= BERIS) <extern.hani.abushammala1@volkswagen.de&g= t;
Hi Volker,

thanks for the hint. I tried this way already, but it doesn't work. =C2= =A0The image could be displayed with fixed width.

Any ideas?

Regards,
Hani


-----Urspr=C3=BCngliche 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.<= br> You should wrap the image into a panel:

<tc:column id=3D"barChart" sortable=3D"false" align= =3D"left">
=C2=A0 <tc:panel>
=C2=A0 =C2=A0 <f:facet name =3D"layout">
=C2=A0 =C2=A0 =C2=A0 <tc:gridlayout rows=3D"16px" columns=3D#{= item.gauge.width}"
=C2=A0 =C2=A0 </f:facet>
=C2=A0 =C2=A0 =C2=A0<tc:image value=3D"#{item.gauge.resourcePath}&q= uot; />
=C2=A0 <tc:panel>
</tc:column>

Regards,

=C2=A0 Volker



2013/11/14 Abushammala, Hani (EXTERN: BERIS) <
ext.....ala1@....de>

> Hi,
>
> I need help to resolve a layout problem.
>
> In our application we display a bar chart within the sheet, but the us= ed
> image for the chart could not be dynamically resized after migration f= rom
> 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:
> <tc:sheet id=3D"sheet" var=3D"item"
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 value=3D"#{bean.items}"
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 columns=3D"60px;60px;200px"><= br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 <tc:column label=3D"MIN"
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 id=3D"min= " sortable=3D"true" align=3D"center">
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <tc:out val= ue=3D"#{item.minValue}" id=3D"t_min" />
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 </tc:column>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 <tc:column label=3D"MAX"
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 id=3D"max= " sortable=3D"true" align=3D"center">
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <tc:out val= ue=3D"#{item.maxValue}" id=3D"t_max" />
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 </tc:column>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 <tc:column id=3D"barChart" so= rtable=3D"false" align=3D"left">
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <tc:image v= alue=3D"#{item.gauge.resourcePath}"
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 width=3D"#{item.gauge.width}"
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 height=3D"16" />
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 </tc:column>
> </tc:sheet>
>
> 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=C3=9Fe 30 | 26121 Oldenburg
www.inexso.de



--
inexso - in= formation exchange solutions GmbH
Ofener Stra=C3=9Fe 30 | 26121 Oldenbur= g
www.inexso.de
--e89a8ff1c8405eb62704eb9ee827-- --e89a8ff1c8405eb62c04eb9ee829 Content-Type: text/x-patch; charset=US-ASCII; name="image_in_sheet.patch" Content-Disposition: attachment; filename="image_in_sheet.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ho8txsbl0 SW5kZXg6IHRvYmFnby1leGFtcGxlL3RvYmFnby1leGFtcGxlLWRlbW8vc3JjL21haW4vd2ViYXBw L2NvbnRlbnQvMDItc2hlZXQvc2hlZXQueGh0bWwKSURFQSBhZGRpdGlvbmFsIGluZm86ClN1YnN5 c3RlbTogY29tLmludGVsbGlqLm9w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