You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dan Petrie <Da...@harborfund.com> on 2002/08/06 15:02:13 UTC

html:image indexing problem

I am having problems using

<html:image ... indexed="true" .../>

The output becomes:

[0]propertyName
[1]propertyName
[2]propertyName

After closer inspection (looking at the source), the struts taglib is doing
this by design.  The html:image tag provides no 'name' property to the
prepareIndex method of the BaseHandlerTag.  This results in no prefixed id
and the loss of the '.' before the propertyName.  I am guessing this is a
bug.  The struts documentation states that the output should be:

iterateId[0].propertyName
iterateId[1].propertyName
iterateId[2].propertyName

However, I don't see how this could be possible.  The html:image tag passes
a hard-coded null into the prepareIndex method thus never producing the name
portion of the usual name[index].propertyName.

If you have a solution any reply would be appreciated.  Or is this possibly
an outstanding issue?

Thanks,
Dan




**********************************************************************
Note: By opening this email and/or any attachments 
contained within this file, you assume sole responsibility for 
any alteration of data that may occur as a consequence of 
any data transfer or copying process.

The information contained in this message may be 
privileged and confidential and protected from disclosure.
If the reader of this message is not the intended recipient,
or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this 
communication is strictly prohibited. If you have received
this communication in error, please notify us immediately by
replying to the message and deleting it from your computer.

For more information on Harbor Fund's privacy policy please
visit http://www.harborfund.com/privacy.htm

Thank you.

Harbor Capital Advisors, Inc. One SeaGate. Toledo, OH-43666. 
Tel: 419-247-1940  
Email: customer.service@harborfund.com
**********************************************************************


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>