jsf 2.0自定义组件/标签不复合 [英] jsf 2.0 Custom Component/Tag NOT COMPOSITE

查看:144
本文介绍了jsf 2.0自定义组件/标签不复合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的.我到处都在寻找一个有关如何创建自定义jsf 2.0自定义组件的简单示例.

Ok. I've looked everywhere for a simple example on how to create a custom jsf 2.0 custom component.

基本上,我正在尝试创建一个可以使用的标签,例如,在panelGrid系列内.等等.这将显示我自己的javasript.我发现的所有内容都是有关复合组件的教程,这对我没有用.我不需要将多个现有标签混杂在一个复合物中,我需要创建自己的标签.

Basically, I am trying to create a tag that I can use, for example, inside panelGrid, series. etc.. that will display my own javasript. everything I have found is a tutorial on composite components, which are useless to me. I don't need to jumble a bunch of existing tags in a composite, i need to create my own.

是否有人知道任何示例代码显示了如何在2.0中执行此操作. (没有jsf 1.2)

does anyone know of any example code showing how to do this in 2.0. (no jsf 1.2)

谢谢

推荐答案

查看

Look at Creating Custom UI Components in The Java EE 6 Tutorial (as BalusC pointed). This applies to JSF 2 and describes creation of custom UI components (not composite components).

这篇关于jsf 2.0自定义组件/标签不复合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆