liferay namespace用法
来源:互联网 发布:网页版淘宝 编辑:程序博客网 时间:2024/06/10 19:09
在Jsp页面代码如下:
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %><portlet:defineObjects />This is the <b>Namespace</b> portlet in View mode.<form name="userInfoForm"> username : <input id= "<portlet:namespace/>username" name="<portlet:namespace/>usernameusername" type="text" > </br> <input type="button" onclick="<portlet:namespace/>submit()" value="submit"> </form><script> function <portlet:namespace/>submit(){ var username = document.getElementById("<portlet:namespace/>username").value alert("username = " + username); }</script>
对应页面如
采用namespace (见上面代码) 后,当点击 Namespace portlet的submit能得到相应的username值(见上面图片),比如username = 9/8/
0 0
- liferay namespace用法
- NameSpace用法
- namespace用法
- namespace用法
- namespace用法
- namespace用法
- namespace的简单用法
- namespace 的用法
- struts2 namespace 用法解析
- C++中的namespace用法
- C++ namespace的用法
- namespace的用法
- namespace的用法
- namespace的用法
- namespace 的用法
- C++中的namespace用法
- namespace的用法
- namespace的用法
- 人品计算器1.0版本
- 带头结点的中序线索化
- 菜鸟授徒系列之新手入门
- 遍历中序线索二叉树
- USACO 2.2.4 两只塔沃斯母牛
- liferay namespace用法
- 构造赫夫曼树
- hdoj problem 2952 Counting Sheep(深搜DFS)
- Putty and Pycharm的风格configuration
- UVALive-6665-Dragons Cruller(Dij+Hash)
- 树莓派&nodejs相关开发过程
- Ubuntu-ADT-连接Anroid真机-无法识别问题
- ubuntu修改、删除用户
- Raspberry Pi学习笔记