You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Kostas Karadamoglou <ka...@yahoo.gr> on 2005/03/02 02:26:14 UTC

ImageButton & Seating paln implementation with MyFaces

Is there any ImageButton tag in the myfaces implementation?

I would like to use it for the creation of a seating plan. The plan will 
be formatted it a table of which each cell will represent a seat. Inside 
the cell I would like to use something like a ImageButton so that I can 
visually show the availability of each seat as well as handling the 
request for a specific seat.

Do you have any suggestion of how can I do it with JSF's help? Is it a 
good idea to create a new component?

Re: ImageButton & Seating paln implementation with MyFaces

Posted by Bruno Aranda <br...@gmail.com>.
Hi Kostas,

I think that creating a new component is not necessary. To do this you
only have to put a graphicImage inside a commandLink, like shown in
this snippet:

<h:commandLink action="someActionHere">
	<h:graphicImage url="imageUrl" border="0"></h:graphicImage>
</h:commandLink>

Good luck with your seats,

Bruno


On Wed, 02 Mar 2005 01:26:14 +0000, Kostas Karadamoglou
<ka...@yahoo.gr> wrote:
> Is there any ImageButton tag in the myfaces implementation?
> 
> I would like to use it for the creation of a seating plan. The plan will
> be formatted it a table of which each cell will represent a seat. Inside
> the cell I would like to use something like a ImageButton so that I can
> visually show the availability of each seat as well as handling the
> request for a specific seat.
> 
> Do you have any suggestion of how can I do it with JSF's help? Is it a
> good idea to create a new component?
>