[jboss-cvs] jboss-seam/src/ui/org/jboss/seam/ui/tag ...
Gavin King
gavin.king at jboss.com
Tue Nov 14 00:20:42 EST 2006
User: gavin
Date: 06/11/14 00:20:42
Modified: src/ui/org/jboss/seam/ui/tag HtmlOutputLinkTagBase.java
Added: src/ui/org/jboss/seam/ui/tag ButtonTag.java
HtmlOutputButtonTagBase.java
Log:
jsp support for s:button
Revision Changes Path
1.3 +1 -22 jboss-seam/src/ui/org/jboss/seam/ui/tag/HtmlOutputLinkTagBase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: HtmlOutputLinkTagBase.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/ui/org/jboss/seam/ui/tag/HtmlOutputLinkTagBase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- HtmlOutputLinkTagBase.java 25 Oct 2006 15:37:37 -0000 1.2
+++ HtmlOutputLinkTagBase.java 14 Nov 2006 05:20:42 -0000 1.3
@@ -23,17 +23,14 @@
/**
* @author Manfred Geiler (latest modification by $Author: gavin $)
* @author Martin Marinschek
- * @version $Revision: 1.2 $ $Date: 2006/10/25 15:37:37 $
+ * @version $Revision: 1.3 $ $Date: 2006/11/14 05:20:42 $
*/
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
@@ -47,10 +44,6 @@
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
@@ -70,8 +63,6 @@
_tabindex=null;
_target=null;
_type=null;
- _onblur=null;
- _onfocus=null;
}
@Override
@@ -89,8 +80,6 @@
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)
@@ -113,16 +102,6 @@
_hreflang = hreflang;
}
- public void setOnblur(String onblur)
- {
- _onblur = onblur;
- }
-
- public void setOnfocus(String onfocus)
- {
- _onfocus = onfocus;
- }
-
public void setRel(String rel)
{
_rel = rel;
1.1 date: 2006/11/14 05:20:42; author: gavin; state: Exp;jboss-seam/src/ui/org/jboss/seam/ui/tag/ButtonTag.java
Index: ButtonTag.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.HtmlButton;
public class ButtonTag extends HtmlOutputButtonTagBase
{
@Override
public String getComponentType()
{
return HtmlButton.COMPONENT_TYPE;
}
@Override
public String getRendererType()
{
return null;
}
private String view;
private String action;
private String propagation;
private String pageflow;
private String taskInstance;
private String fragment;
@Override
protected void setProperties(UIComponent component)
{
super.setProperties(component);
setStringProperty(component, "view", view);
setStringProperty(component, "action", action);
setValueBinding(component, "taskInstance", taskInstance);
setStringProperty(component, "propagation", propagation);
setStringProperty(component, "pageflow", pageflow);
setStringProperty(component, "fragment", fragment);
}
public void setAction(String action)
{
this.action = action;
}
public void setPageflow(String pageflow)
{
this.pageflow = pageflow;
}
public void setPropagation(String propagation)
{
this.propagation = propagation;
}
public void setView(String view)
{
this.view = view;
}
public void setTaskInstance(String task)
{
this.taskInstance = task;
}
public void setFragment(String fragment)
{
this.fragment = fragment;
}
}
1.1 date: 2006/11/14 05:20:42; author: gavin; state: Exp;jboss-seam/src/ui/org/jboss/seam/ui/tag/HtmlOutputButtonTagBase.java
Index: HtmlOutputButtonTagBase.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;
import org.jboss.seam.ui.JSF;
/**
* @author Manfred Geiler (latest modification by $Author: gavin $)
* @author Martin Marinschek
* @version $Revision: 1.1 $ $Date: 2006/11/14 05:20:42 $
*/
public abstract class HtmlOutputButtonTagBase
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 input attributes relevant for output-button
private String _accesskey;
private String _alt;
private String _disabled;
private String _onblur;
private String _onchange;
private String _onfocus;
private String _onselect;
private String _size;
private String _tabindex;
private String _type;
private String _image;
@Override
public void release() {
super.release();
_accesskey=null;
_alt=null;
_disabled=null;
_onblur=null;
_onchange=null;
_onfocus=null;
_onselect=null;
_size=null;
_tabindex=null;
_type=null;
_image=null;
}
@Override
protected void setProperties(UIComponent component)
{
super.setProperties(component);
setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey);
setStringProperty(component, HTML.ALT_ATTR, _alt);
setBooleanProperty(component, HTML.DISABLED_ATTR, _disabled);
setStringProperty(component, HTML.ONBLUR_ATTR, _onblur);
setStringProperty(component, HTML.ONCHANGE_ATTR, _onchange);
setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus);
setStringProperty(component, HTML.ONSELECT_ATTR, _onselect);
setStringProperty(component, HTML.SIZE_ATTR, _size);
setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex);
setStringProperty(component, HTML.TYPE_ATTR, _type);
setStringProperty(component, JSF.IMAGE_ATTR, _image);
}
public void setAccesskey(String accesskey)
{
_accesskey = accesskey;
}
public void setAlt(String alt)
{
_alt = alt;
}
public void setDisabled(String disabled)
{
_disabled = disabled;
}
public void setOnblur(String onblur)
{
_onblur = onblur;
}
public void setOnchange(String onchange)
{
_onchange = onchange;
}
public void setOnfocus(String onfocus)
{
_onfocus = onfocus;
}
public void setOnselect(String onselect)
{
_onselect = onselect;
}
public void setSize(String size)
{
_size = size;
}
public void setTabindex(String tabindex)
{
_tabindex = tabindex;
}
public void setType(String type)
{
_type = type;
}
public void setImage(String image)
{
_image = image;
}
}
More information about the jboss-cvs-commits
mailing list