Thanks for the idea with the TitleTag. This solves one problem.
But there is still one problem left, when you try to set properties
like 'paging.banner.item_name' with a localized text.
Therefore i wrote a new setProperty Tag that takes parameters
from the body or from the value attribute
Now it's possible to write
<display:setProperty name="paging.banner.item_name"><bean:message
key="user"/></misc:setProperty>
and it's still possible to write
<display:setProperty name="paging.banner.group_size" value="10"/>
public class DisplaySetPropertyTag extends BodyTagSupport {
private String name;
private String value;
public DisplaySetPropertyTag() {
init();
}
public int doEndTag() throws JspException {
TableTag tableTag = (TableTag)findAncestorWithClass(this, TableTag.class);
if (tableTag == null) {
throw new TagStructureException(getClass(), "property", "table");
}
if (value == null) {
tableTag.setProperty(name, getBodyContent().getString());
} else {
tableTag.setProperty(name, value);
}
return SKIP_BODY;
}
/**
* @jsp.attribute required="true"
*/
public void setName(String string) {
name = string;
}
/**
* @jsp.attribute required="false"
*/
public void setValue(String string) {
value = string;
}
public void release() {
super.release();
init();
}
private void init() {
name = null;
value = null;
}
}
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel