Issue Details (XML | Word | Printable)

Key: STR-1305
Type: New Feature New Feature
Status: In Progress In Progress
Priority: Major Major
Assignee: Paul Benedict
Reporter: Leonardo Quijano
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Struts 1

Add <html:label> tag to output HTML label

Created: 15/Mar/03 04:56 AM   Updated: 12/Oct/07 03:13 AM
Return to search
Component/s: Tag Libraries
Affects Version/s: None
Fix Version/s: 1.4.0

Environment:
Operating System: All
Platform: All
Issue Links:
Dependency
 

Bugzilla Id: 18015


 Description  « Hide
It would be useful to have a tag that just writes a form's value.
We already have one:

<html:hidden property="foo" write="true" />

The problem is that it generates a HTML INPUT in addittion to the text. That
INPUT could interfere with the form's submission, and it adds bloat to the
page.It would be nice to have a custom tag just to generate the form's text.

I know i could also expose the form as a bean (I guess it would be <bean:struts
... />). But that could tie the JSP to the form's name, and that's not a good think.

Maybe the tag could be something like:

<html:label property="foo" />

And it would get property "foo" from the form and write it like a bean:write. It
could be even:

<html:label property="foo.x.y.z" />

Leonardo

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
Struts #526528 Sun Apr 08 05:45:54 UTC 2007 pbenedict STR-1305: Adding label tag
Files Changed
MODIFY /struts/struts1/trunk/taglib/src/main/resources/META-INF/tld/struts-html.tld
ADD /struts/struts1/trunk/taglib/src/main/java/org/apache/struts/taglib/html/LabelTag.java

Repository Revision Date User Message
Struts #526529 Sun Apr 08 05:49:03 UTC 2007 pbenedict STR-1305: Correct forId attribute description
Files Changed
MODIFY /struts/struts1/trunk/taglib/src/main/resources/META-INF/tld/struts-html.tld