image in select1 item

View: New views
3 Messages — Rating Filter:   Alert me  

image in select1 item

by Thilo Keber :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

Is it possible to display an image for an item in a select1?

 

With chiba 3.0.0.b2 the following  results in a       “ uri resolution failed at [xf:label:XX] /  unknown response type” error:

 

 <xf:select1 ref="ColorCode" appearance="full" >

            <xf:item>

                <xf:label src="../resources/images/red.gif">Red</xf:label>

                <xf:value>red</xf:value>

            </xf:item>

            <xf:item>

                <xf:label>Green</xf:label>

                <xf:value>green</xf:value>

            </xf:item>

       </xf:select1>

 

Is there any other way to implement a selection of items that are displayed with an image?

 

Cheers,

Thilo


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users

Re: image in select1 item

by Joern Turner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Thilo,


2009/8/12 Thilo Keber <thilo.keber@...>:
> Hi,
>
>
>
> Is it possible to display an image for an item in a select1?
Not currently i fear. Though it shouldn't be a general problem -
meaning it can be done.
>
>
>
> With chiba 3.0.0.b2 the following  results in a       “ uri resolution
> failed at [xf:label:XX] /  unknown response type” error:

label/@src is currently only supporting text or xml as response type
and these this is even only a non-normative feature of XForms 1.1.
Chiba does support this feature but a mediatype is not supported.

A first step to do the XForms way would be to nest an output within the label:
<xf:label><xf:output ref="pathToImageInInstance"
mediatype="image/*"/></xf:label>

This at least would be the right syntax in XForms 1.1 to get what you want.

But we don't have the client-side control yet to display those images
in a select1. Depending on what you like to see in your UI (a dropdown
with images or a group of checkboxes with an image next to them) we
would need to adapt our XSLT and eventually Javascript to get there.

Please let us know if that's a mission-critical feature for you. We'll
see what we can do.

Btw, from your address i see that you're in Germany. Please let us
know in case you like  a more direct contact (we're in Berlin). Just
send your question to the user list.

Best,

Joern

>
>
>
>  <xf:select1 ref="ColorCode" appearance="full" >
>
>             <xf:item>
>
>                 <xf:label src="../resources/images/red.gif">Red</xf:label>
>
>                 <xf:value>red</xf:value>
>
>             </xf:item>
>
>             <xf:item>
>
>                 <xf:label>Green</xf:label>
>
>                 <xf:value>green</xf:value>
>
>             </xf:item>
>
>        </xf:select1>
>
>
>
> Is there any other way to implement a selection of items that are displayed
> with an image?
>
>
>
> Cheers,
>
> Thilo
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Chiba-users mailing list
> Chiba-users@...
> https://lists.sourceforge.net/lists/listinfo/chiba-users
>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users

Re: image in select1 item

by Thilo Keber :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Joern,

thanks for the explanation. This feature isn't mission critical for us (yet), however, it could contribute to a better acceptance of the XForms based solution that I'm currently implementing.

Good to see that you are located in Germany. I'll get in touch with you to discuss further possibilities for support.

Cheers, Thilo

-----Original Message-----
From: Joern Turner [mailto:joern.turner@...]
Sent: Montag, 17. August 2009 10:23
To: Thilo Keber
Cc: chiba-users@...
Subject: Re: [Chiba-users] image in select1 item

Hello Thilo,


2009/8/12 Thilo Keber <thilo.keber@...>:
> Hi,
>
>
>
> Is it possible to display an image for an item in a select1?
Not currently i fear. Though it shouldn't be a general problem -
meaning it can be done.
>
>
>
> With chiba 3.0.0.b2 the following  results in a       " uri resolution
> failed at [xf:label:XX] /  unknown response type" error:

label/@src is currently only supporting text or xml as response type
and these this is even only a non-normative feature of XForms 1.1.
Chiba does support this feature but a mediatype is not supported.

A first step to do the XForms way would be to nest an output within the label:
<xf:label><xf:output ref="pathToImageInInstance"
mediatype="image/*"/></xf:label>

This at least would be the right syntax in XForms 1.1 to get what you want.

But we don't have the client-side control yet to display those images
in a select1. Depending on what you like to see in your UI (a dropdown
with images or a group of checkboxes with an image next to them) we
would need to adapt our XSLT and eventually Javascript to get there.

Please let us know if that's a mission-critical feature for you. We'll
see what we can do.

Btw, from your address i see that you're in Germany. Please let us
know in case you like  a more direct contact (we're in Berlin). Just
send your question to the user list.

Best,

Joern

>
>
>
>  <xf:select1 ref="ColorCode" appearance="full" >
>
>             <xf:item>
>
>                 <xf:label src="../resources/images/red.gif">Red</xf:label>
>
>                 <xf:value>red</xf:value>
>
>             </xf:item>
>
>             <xf:item>
>
>                 <xf:label>Green</xf:label>
>
>                 <xf:value>green</xf:value>
>
>             </xf:item>
>
>        </xf:select1>
>
>
>
> Is there any other way to implement a selection of items that are displayed
> with an image?
>
>
>
> Cheers,
>
> Thilo
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Chiba-users mailing list
> Chiba-users@...
> https://lists.sourceforge.net/lists/listinfo/chiba-users
>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users