[jboss-cvs] jboss-seam/src/ui/org/jboss/seam/ui/tag ...
Gavin King
gavin.king at jboss.com
Mon Oct 2 14:20:36 EDT 2006
User: gavin
Date: 06/10/02 14:20:36
Modified: src/ui/org/jboss/seam/ui/tag LinkTag.java
Added: src/ui/org/jboss/seam/ui/tag CommandLinkTag.java
DecorateTag.java DivTag.java
HtmlMessageTagBase.java HtmlOutputLinkTagBase.java
MessageTag.java SpanTag.java
Removed: src/ui/org/jboss/seam/ui/tag
HtmlCommandLinkTag.java
Log:
make stuff work in JSP
add s:div
Revision Changes Path
1.8 +1 -1 jboss-seam/src/ui/org/jboss/seam/ui/tag/LinkTag.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LinkTag.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/ui/org/jboss/seam/ui/tag/LinkTag.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- LinkTag.java 30 Sep 2006 01:36:14 -0000 1.7
+++ LinkTag.java 2 Oct 2006 18:20:36 -0000 1.8
@@ -27,7 +27,7 @@
import org.jboss.seam.ui.HtmlLink;
-public class LinkTag extends HtmlCommandLinkTagBase
+public class LinkTag extends HtmlOutputLinkTagBase
{
public String getComponentType()
{
1.1 date: 2006/10/02 18:20:36; author: gavin; state: Exp;jboss-seam/src/ui/org/jboss/seam/ui/tag/CommandLinkTag.java
Index: CommandLinkTag.java
===================================================================
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.seam.ui.tag;
import javax.faces.component.html.HtmlCommandLink;
/**
* @author Manfred Geiler (latest modification by $Author: gavin $)
* @author Martin Marinschek
* @version $Revision: 1.1 $ $Date: 2006/10/02 18:20:36 $
*/
public class CommandLinkTag
extends HtmlCommandLinkTagBase
{
public String getComponentType()
{
return HtmlCommandLink.COMPONENT_TYPE;
}
public String getRendererType()
{
return "javax.faces.Link";
}
}
1.1 date: 2006/10/02 18:20:36; author: gavin; state: Exp;jboss-seam/src/ui/org/jboss/seam/ui/tag/DecorateTag.java
Index: DecorateTag.java
===================================================================
package org.jboss.seam.ui.tag;
import javax.faces.component.UIComponent;
import org.jboss.seam.ui.UIDecorate;
public class DecorateTag extends UIComponentTagBase
{
@Override
public String getComponentType()
{
return UIDecorate.COMPONENT_TYPE;
}
@Override
public String getRendererType()
{
return null;
}
private String forId;
public void setFor(String forId)
{
this.forId = forId;
}
protected void setProperties(UIComponent component)
{
super.setProperties(component);
setStringProperty(component, "for", forId);
}
}
1.1 date: 2006/10/02 18:20:36; author: gavin; state: Exp;jboss-seam/src/ui/org/jboss/seam/ui/tag/DivTag.java
Index: DivTag.java
===================================================================
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.seam.ui.tag;
import javax.faces.component.UIComponent;
import org.jboss.seam.ui.HtmlDiv;
public class DivTag extends HtmlComponentTagBase
{
public String getComponentType()
{
return HtmlDiv.COMPONENT_TYPE;
}
public String getRendererType()
{
return null;
}
private String styleClass;
private String style;
protected void setProperties(UIComponent component)
{
super.setProperties(component);
setStringProperty(component, "styleClass", styleClass);
setStringProperty(component, "style", style);
}
public void setStyle(String style)
{
this.style = style;
}
public void setStyleClass(String styleClass)
{
this.styleClass = styleClass;
}
}
1.1 date: 2006/10/02 18:20:36; author: gavin; state: Exp;jboss-seam/src/ui/org/jboss/seam/ui/tag/HtmlMessageTagBase.java
Index: HtmlMessageTagBase.java
===================================================================
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.seam.ui.tag;
import javax.faces.component.UIComponent;
import org.jboss.seam.ui.JSF;
/**
* @author Manfred Geiler (latest modification by $Author: gavin $)
* @version $Revision: 1.1 $ $Date: 2006/10/02 18:20:36 $
*/
public abstract class HtmlMessageTagBase
extends HtmlComponentTagBase
{
//private static final Log log = LogFactory.getLog(HtmlOutputFormatTag.class);
// UIComponent attributes --> already implemented in UIComponentTagBase
// user role attributes --> already implemented in UIComponentTagBase
// HTML universal attributes --> already implemented in HtmlComponentTagBase
// HTML event handler attributes --> already implemented in HtmlComponentTagBase
// UIMessage attributes
private String _for;
private String _showSummary;
private String _showDetail;
// HtmlOutputMessage attributes
private String _infoClass;
private String _infoStyle;
private String _warnClass;
private String _warnStyle;
private String _errorClass;
private String _errorStyle;
private String _fatalClass;
private String _fatalStyle;
private String _tooltip;
public void release() {
super.release();
_for=null;
_showSummary=null;
_showDetail=null;
_infoClass=null;
_infoStyle=null;
_warnClass=null;
_warnStyle=null;
_errorClass=null;
_errorStyle=null;
_fatalClass=null;
_fatalStyle=null;
_tooltip=null;
}
protected void setProperties(UIComponent component)
{
super.setProperties(component);
setStringProperty(component, JSF.FOR_ATTR, _for);
setBooleanProperty(component, JSF.SHOW_SUMMARY_ATTR, _showSummary);
setBooleanProperty(component, JSF.SHOW_DETAIL_ATTR, _showDetail);
setStringProperty(component, JSF.INFO_CLASS_ATTR, _infoClass);
setStringProperty(component, JSF.INFO_STYLE_ATTR, _infoStyle);
setStringProperty(component, JSF.WARN_CLASS_ATTR, _warnClass);
setStringProperty(component, JSF.WARN_STYLE_ATTR, _warnStyle);
setStringProperty(component, JSF.ERROR_CLASS_ATTR, _errorClass);
setStringProperty(component, JSF.ERROR_STYLE_ATTR, _errorStyle);
setStringProperty(component, JSF.FATAL_CLASS_ATTR, _fatalClass);
setStringProperty(component, JSF.FATAL_STYLE_ATTR, _fatalStyle);
setBooleanProperty(component, JSF.TOOLTIP_ATTR, _tooltip);
}
public void setFor(String aFor)
{
_for = aFor;
}
public void setShowSummary(String showSummary)
{
_showSummary = showSummary;
}
public void setShowDetail(String showDetail)
{
_showDetail = showDetail;
}
public void setErrorClass(String errorClass)
{
_errorClass = errorClass;
}
public void setErrorStyle(String errorStyle)
{
_errorStyle = errorStyle;
}
public void setFatalClass(String fatalClass)
{
_fatalClass = fatalClass;
}
public void setFatalStyle(String fatalStyle)
{
_fatalStyle = fatalStyle;
}
public void setInfoClass(String infoClass)
{
_infoClass = infoClass;
}
public void setInfoStyle(String infoStyle)
{
_infoStyle = infoStyle;
}
public void setWarnClass(String warnClass)
{
_warnClass = warnClass;
}
public void setWarnStyle(String warnStyle)
{
_warnStyle = warnStyle;
}
public void setTooltip(String tooltip)
{
_tooltip = tooltip;
}
}
1.1 date: 2006/10/02 18:20:36; author: gavin; state: Exp;jboss-seam/src/ui/org/jboss/seam/ui/tag/HtmlOutputLinkTagBase.java
Index: HtmlOutputLinkTagBase.java
===================================================================
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.seam.ui.tag;
import javax.faces.component.UIComponent;
import org.jboss.seam.ui.HTML;
/**
* @author Manfred Geiler (latest modification by $Author: gavin $)
* @author Martin Marinschek
* @version $Revision: 1.1 $ $Date: 2006/10/02 18:20:36 $
*/
public abstract class HtmlOutputLinkTagBase
extends HtmlComponentTagBase
{
// UIComponent attributes --> already implemented in UIComponentTagBase
// user role attributes --> already implemented in UIComponentTagBase
// HTML universal attributes --> already implemented in HtmlComponentTagBase
// HTML event handler attributes --> already implemented in HtmlComponentTagBase
// HTML anchor attributes relevant for command link
private String _accesskey;
private String _charset;
private String _coords;
private String _hreflang;
private String _rel;
private String _rev;
private String _shape;
private String _tabindex;
private String _target;
private String _type;
//FIXME: is mentioned in JSF API, but is no official anchor-attribute of HTML 4.0... what to do?
private String _onblur;
//FIXME: is mentioned in JSF API, but is no official anchor-attribute of HTML 4.0... what to do?
private String _onfocus;
// UIOutput attributes
// value and converterId --> already implemented in UIComponentTagBase
//HtmlCommandLink Attributes
public void release() {
super.release();
_accesskey=null;
_charset=null;
_coords=null;
_hreflang=null;
_rel=null;
_rev=null;
_shape=null;
_tabindex=null;
_target=null;
_type=null;
_onblur=null;
_onfocus=null;
}
protected void setProperties(UIComponent component)
{
super.setProperties(component);
setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey);
setStringProperty(component, HTML.CHARSET_ATTR, _charset);
setStringProperty(component, HTML.COORDS_ATTR, _coords);
setStringProperty(component, HTML.HREFLANG_ATTR, _hreflang);
setStringProperty(component, HTML.REL_ATTR, _rel);
setStringProperty(component, HTML.REV_ATTR, _rev);
setStringProperty(component, HTML.SHAPE_ATTR, _shape);
setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex);
setStringProperty(component, HTML.TARGET_ATTR, _target);
setStringProperty(component, HTML.TYPE_ATTR, _type);
setStringProperty(component, HTML.ONBLUR_ATTR, _onblur);
setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus);
}
public void setAccesskey(String accesskey)
{
_accesskey = accesskey;
}
public void setCharset(String charset)
{
_charset = charset;
}
public void setCoords(String coords)
{
_coords = coords;
}
public void setHreflang(String hreflang)
{
_hreflang = hreflang;
}
public void setOnblur(String onblur)
{
_onblur = onblur;
}
public void setOnfocus(String onfocus)
{
_onfocus = onfocus;
}
public void setRel(String rel)
{
_rel = rel;
}
public void setRev(String rev)
{
_rev = rev;
}
public void setShape(String shape)
{
_shape = shape;
}
public void setTabindex(String tabindex)
{
_tabindex = tabindex;
}
public void setTarget(String target)
{
_target = target;
}
public void setType(String type)
{
_type = type;
}
}
1.1 date: 2006/10/02 18:20:36; author: gavin; state: Exp;jboss-seam/src/ui/org/jboss/seam/ui/tag/MessageTag.java
Index: MessageTag.java
===================================================================
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.seam.ui.tag;
import org.jboss.seam.ui.HtmlMessageDecoration;
/**
* @author Gavin King
*/
public class MessageTag extends HtmlMessageTagBase
{
public String getComponentType()
{
return HtmlMessageDecoration.COMPONENT_TYPE;
}
public String getRendererType()
{
return "javax.faces.Message";
}
}
1.1 date: 2006/10/02 18:20:36; author: gavin; state: Exp;jboss-seam/src/ui/org/jboss/seam/ui/tag/SpanTag.java
Index: SpanTag.java
===================================================================
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.seam.ui.tag;
import javax.faces.component.UIComponent;
import org.jboss.seam.ui.HtmlSpan;
public class SpanTag extends HtmlComponentTagBase
{
public String getComponentType()
{
return HtmlSpan.COMPONENT_TYPE;
}
public String getRendererType()
{
return null;
}
private String styleClass;
private String style;
protected void setProperties(UIComponent component)
{
super.setProperties(component);
setStringProperty(component, "styleClass", styleClass);
setStringProperty(component, "style", style);
}
public void setStyle(String style)
{
this.style = style;
}
public void setStyleClass(String styleClass)
{
this.styleClass = styleClass;
}
}
More information about the jboss-cvs-commits
mailing list