You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by to...@apache.org on 2005/03/05 23:50:33 UTC
cvs commit: incubator-myfaces/src/components/org/apache/myfaces/custom/swapimage HtmlSwapImageTag.java
tomsp 2005/03/05 14:50:33
Modified: src/components/org/apache/myfaces/custom/swapimage
HtmlSwapImageTag.java
Log:
changed swapimage tag
Revision Changes Path
1.4 +9 -3 incubator-myfaces/src/components/org/apache/myfaces/custom/swapimage/HtmlSwapImageTag.java
Index: HtmlSwapImageTag.java
===================================================================
RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/custom/swapimage/HtmlSwapImageTag.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- HtmlSwapImageTag.java 18 Feb 2005 17:19:30 -0000 1.3
+++ HtmlSwapImageTag.java 5 Mar 2005 22:50:33 -0000 1.4
@@ -23,6 +23,9 @@
* @author Thomas Spiegl
* @version $Revision$ $Date$
* $Log$
+ * Revision 1.4 2005/03/05 22:50:33 tomsp
+ * changed swapimage tag
+ *
* Revision 1.3 2005/02/18 17:19:30 matzew
* added release() to tag clazzes.
*
@@ -38,6 +41,9 @@
{
private static final String RENDERER_TYPE = "org.apache.myfaces.SwapImage";
+ private static final String SWAP_IMG_URL_ATTR = "swapImageUrl";
+ private static final String ACTIVE_IMG_URL_ATTR = "activeImageUrl";
+
private String _swapImageUrl;
private String _activeImageUrl;
@@ -61,8 +67,8 @@
{
super.setProperties(component);
- ((HtmlSwapImage) component).setSwapImageUrl(_swapImageUrl);
- ((HtmlSwapImage) component).setActiveImageUrl(_activeImageUrl);
+ setStringProperty(component, SWAP_IMG_URL_ATTR, _swapImageUrl);
+ setStringProperty(component, ACTIVE_IMG_URL_ATTR, _activeImageUrl);
}
public void setSwapImageUrl(String swapImageUrl)