El lun, 13 de 12 de 2004 a las 20:44, Tito Eritja escribiÃ:
> Hi everybody.
> 
> I have a problem with <html:image/> tag
> 
> I'm using a ImageButton bean like that:
> 
> public final class ImageButtonBean implements Serializable {
>     private String x = null;
>     private String y = null;
> 
>     public String getX() {
>         return (this.x);
>     }
> 
>     public void setX(String x) {
>         this.x = x;
>     }
> 
>     public String getY() {
>         return (this.y);
>     }
> 
>     public void setY(String y) {
>         this.y = y;
>     }
> 
>     public boolean isSelected() {
>         return ((x != null) || (y != null));
>     }
> 
>     public void reset() {
>         x = null;
>         y = null;
>     }
> }
> 
> I use it to know which button (image) has been pressed on a jsp page
> with:
> 
> <html:image property="acceptButton" .../>
> 
> and a function getButtonSelected() in the Form which populates this jsp.
> 
> With this configuration everything works fine, 
> 
> The problem is when I try to use indexed properties in jsp.
> 
> I'm using a Form with several lineItems, but as this jsp, just need to
> show one of this lineItems I use indexed elements like
> 
> 
> <html:image property="mapForm.lineItem[index].someButton"
> src="${mapForm.lineItem[index].someValue}"/>
> 
> The problem now, is that I don't get the button of this lineItem
> populated with the x and y values. (setSomeButton function is not
> called)
> 
> The strange thing is that if I use from this jsp the tag
> 
> <core:out value="${mapForm.lineItem[index].someButton}"/>
> 
> the function getSomeButton() from mapForm is called.
Sorry, I mean the function getSomeButton() from lineItem[index]
> 
> Anybody has any clue what I'm doing wrong?
> 
> 
> Thanks for your time
> 
> 
> tito


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to