You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Luke Studley <Lu...@slc.co.uk> on 2004/04/29 12:32:36 UTC

Form name attribute control (and bug?)





I need to control the generation of Form name attributes (so I can prefix
it with unique portlet specific info - 2 Tapestry portlets on a page
scenario).

First off I tried specifying an informal parameter to the Form tag - this
passed through fine - *but now there are 2 name attributes in the output!!*
Is this a problem? Should the name parmeter be reserved on Form?

Next I see from the code that the form name is generated using "_name =
getDisplayName() + actionId;"
where :
    protected String getDisplayName()
    {
        return "Form";
    }

So I can subclass and override the display name and control the prefix!
Fine.

Feature request: Why not expose the displayName as a parameter of the
control - then subclassing would be unnecessary and all sorts of other
applications open up?

Maybe there are other subtleties that I'm missing here - if so please let
me know!

Cheers

Luke




***************************************************************************
The information in this e-mail is confidential and for use by the addressee(s) only. If you are not the intended recipient (or responsible for delivery of the message to the intended recipient) please notify us immediately on 0141 306 2050 and delete the message from your computer. You may not copy or forward it or use or disclose its contents to any other person. As Internet communications are capable of data corruption Student Loans Company Limited does not accept any  responsibility for changes made to this message after it was sent. For this reason it may be inappropriate to rely on advice or opinions contained in an e-mail without obtaining written confirmation of it. Neither Student Loans Company Limited or the sender accepts any liability or responsibility for viruses as it is your responsibility to scan attachments (if any). Opinions and views expressed in this e-mail are those of the sender and may not reflect the opinions and views of The Student Loans Company Limited.

This footnote also confirms that this email message has been swept for the presence of computer viruses.

**************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org