added "extra" attribute to frame:body
This commit is contained in:
parent
bf73861435
commit
245765318d
|
@ -24,6 +24,13 @@ import com.silverwrist.venice.ui.*;
|
|||
|
||||
public class FrameBodyTag extends VeniceTagSupport implements ColorSelectors
|
||||
{
|
||||
/*--------------------------------------------------------------------------------
|
||||
* Attributes
|
||||
*--------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
private String extra = null;
|
||||
|
||||
/*--------------------------------------------------------------------------------
|
||||
* Overrides from class TagSupport
|
||||
*--------------------------------------------------------------------------------
|
||||
|
@ -34,7 +41,10 @@ public class FrameBodyTag extends VeniceTagSupport implements ColorSelectors
|
|||
try
|
||||
{ // write out what we came here to accomplish
|
||||
JspWriter out = pageContext.getOut();
|
||||
out.write("<BODY BGCOLOR=\"" + getRequestInput().getColor(FRAME_BACKGROUND) + "\">");
|
||||
out.write("<BODY BGCOLOR=\"" + getRequestInput().getColor(FRAME_BACKGROUND) + "\"");
|
||||
if (extra!=null)
|
||||
out.write(" " + extra);
|
||||
out.write(">");
|
||||
|
||||
} // end try
|
||||
catch (IOException e)
|
||||
|
@ -65,4 +75,22 @@ public class FrameBodyTag extends VeniceTagSupport implements ColorSelectors
|
|||
|
||||
} // end doEndTag
|
||||
|
||||
public void release()
|
||||
{
|
||||
super.release();
|
||||
extra = null;
|
||||
|
||||
} // end release
|
||||
|
||||
/*--------------------------------------------------------------------------------
|
||||
* Attribute set functions
|
||||
*--------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
public void setExtra(String s)
|
||||
{
|
||||
extra = s;
|
||||
|
||||
} // end setExtra
|
||||
|
||||
} // end class FrameBodyTag
|
||||
|
|
|
@ -41,6 +41,11 @@
|
|||
<tagclass>com.silverwrist.venice.ui.jsp.FrameBodyTag</tagclass>
|
||||
<info>Replaces the standard BODY tags on the frame page.</info>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>extra</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
|
|
Loading…
Reference in New Issue
Block a user