jsf自定义toolbar组件
2007-12-17 10:17
369 查看
package com.cfcc.jaf.webx.component.toolbar;
import javax.faces.application.Application;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
import javax.faces.webapp.UIComponentTag;
package com.cfcc.jaf.webx.component.toolbar;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import javax.faces.component.UICommand;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.el.MethodBinding;
import javax.faces.event.ActionEvent;
import org.apache.myfaces.custom.navmenu.NavigationMenuUtils;
import org.apache.myfaces.renderkit.html.util.AddResource;
import org.apache.myfaces.renderkit.html.util.AddResourceFactory;
import org.apache.myfaces.shared_tomahawk.el.SimpleActionMethodBinding;
import org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils;
import org.apache.myfaces.shared_tomahawk.renderkit.html.util.FormInfo;
import com.cfcc.jaf.webx.faces.ToolBarItem;
function jump(form,index)
{
var dummyForm = document.forms[form];
dummyForm.elements['toolbar_index'].value = index;
dummyForm.submit();
}
function mover(obj)
{
obj.className = "toolbarover";
}
function mout(obj)
{
obj.className = "toolbarout";
}
<tag>
<name>toolbar</name>
<tag-class>com.cfcc.jaf.webx.component.toolbar.UIToolBarTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>size</name>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
</attribute>
</tag>
<!-- added by qinjinwei,toolbar -->
<component>
<component-type>
com.cfcc.jaf.webx.component.toolbar.UIToolBar
</component-type>
<component-class>
com.cfcc.jaf.webx.component.toolbar.UIToolBar
</component-class>
</component>
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1781342
import javax.faces.application.Application;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
import javax.faces.webapp.UIComponentTag;
package com.cfcc.jaf.webx.component.toolbar;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import javax.faces.component.UICommand;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.el.MethodBinding;
import javax.faces.event.ActionEvent;
import org.apache.myfaces.custom.navmenu.NavigationMenuUtils;
import org.apache.myfaces.renderkit.html.util.AddResource;
import org.apache.myfaces.renderkit.html.util.AddResourceFactory;
import org.apache.myfaces.shared_tomahawk.el.SimpleActionMethodBinding;
import org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils;
import org.apache.myfaces.shared_tomahawk.renderkit.html.util.FormInfo;
import com.cfcc.jaf.webx.faces.ToolBarItem;
function jump(form,index)
{
var dummyForm = document.forms[form];
dummyForm.elements['toolbar_index'].value = index;
dummyForm.submit();
}
function mover(obj)
{
obj.className = "toolbarover";
}
function mout(obj)
{
obj.className = "toolbarout";
}
.toolbarover0 { FILTER: alpha(opacity = 100, style = 3, finishopacity = 0) ; background-color: BLACK; cursor: hand; } .toolbarout { border: 1px solid white; FILTER: alpha(opacity = 100, style = 3, finishopacity = 0) gray ; background-color: WHITE; cursor: hand; } .toolbarover2 { FILTER: flipv; background-color: #EFEBDE; cursor: hand; } .toolbarover { border: 1px dashed black; background-color: #BLACK; cursor: hand; } .toolbarout1 { border: 1px solid white; FILTER: alpha(opacity = 100, style = 3, finishopacity = 0) ; background-color: WHITE; cursor: hand; } |
<name>toolbar</name>
<tag-class>com.cfcc.jaf.webx.component.toolbar.UIToolBarTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>size</name>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
</attribute>
</tag>
<!-- added by qinjinwei,toolbar -->
<component>
<component-type>
com.cfcc.jaf.webx.component.toolbar.UIToolBar
</component-type>
<component-class>
com.cfcc.jaf.webx.component.toolbar.UIToolBar
</component-class>
</component>
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1781342
相关文章推荐
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- jsf自定义toolbar组件
- JSF2自定义组件编程系列 第二部分
- JSF学习 自定义组件(转)
- jsf自定义组件-jafyear选择年份
- JSF自定义组件之五 JSF实现-Renderer