jsf 常用标签

应用JSF常用标签介绍 为了学习,jsf学习 我也是刚学 请指教 立即下载

1.h:commandButton   删除一个对象。

<h:commandButton value="删除厨房" onclick="return confirm('确定删除?')" action="#{kitchenController.delete()}">
    <f:setPropertyActionListener target="#{kitchenController.kitchen.id}" value="#{kitchen.id}"/>
</h:commandButton>

2.点击   h:selectOneRadio   刷新。

<h:selectOneRadio value="#{kitchenController.listCondition}" onclick="this.form.submit();" >
    <f:selectItem itemValue="all"  itemLabel="全部"/>
    <f:selectItem itemValue="can"  itemLabel="看允许发布餐饮的厨房"/>
    <f:selectItem itemValue="cannot"  itemLabel="看不允许发布餐饮的厨房"/>
</h:selectOneRadio>

3.按钮提交   h:selectOneRadio   的更新。

<h:form>
    <span>针对该厨房的订单,是否需要中央管理后台审核</span><br></br>
    <h:selectOneRadio value="#{kitchen.needAuditOrders}">
        <f:selectItem itemValue="true"  itemLabel="需要审核"/>
        <f:selectItem itemValue="false"  itemLabel="不需要审核"/>                 
    </h:selectOneRadio>
                                                       
    <h:commandButton value="提交" action="#{kitchenController.modifyCheck()}" class="submit_review">
        <f:setPropertyActionListener target="#{kitchenController.kitchen.id}" value="#{kitchen.id}" />
        <f:setPropertyActionListener target="#{kitchenController.kitchen.needAuditOrders}" value="#{kitchen.needAuditOrders}"/>
    </h:commandButton>   
</h:form>
如果是修改list 里的内容,必须保证list 不更新。

public List<Kitchen> getKitchens(){
    if(kitchens != null && !refreshList){
        return kitchens;
    }
    // 其他代码

    return kitchens;
}

4.f:validateRegex   匹配电话。

<label for="admin_contact">联系电话(如:13866669999)</label>
<h:message for="admin_contact" style="color:red" class="error-message"/>
<h:inputText value="#{kitchenController.adminTel}" validatorMessage="格式不正确" requiredMessage="必填" required="true" id="admin_contact" class="text ui-widget-content ui-corner-all">
    <f:validateRegex pattern="((?=.*\d).{11})" />
</h:inputText>

或

<f:validateRegex pattern="((?=.*\d)(?=.*[-]).{12}|(?=.*\d).{11})" />
匹配13866669999 或 021-81234567。

5.c:if

<c:forEach var="admin" items="#{kitchenController.admins}">
    <c:if test="#{admin.loginId == kitchen.adminId}">
        <span>duty:</span><span class="admin_role">#{admin.duty}</span>
        <span>tel:</span><span class="admin_contact">#{admin.tel}</span>
    </c:if>
</c:forEach>

6.c:choose

<c:choose>
   <c:when test="${..}">...</c:when> <!-- if condition -->
   <c:when test="${..}">...</c:when> <!-- else if condition -->
   <c:otherwise>...</c:otherwise>    <!-- else condition -->
</c:choose>








jsf常用标签整理 详细描述了几种JSF标签的使用方式及注意事项,是从项目开发中获得的实践,还会继续整理,先发一些基础标签的应用 立即下载

相关推荐

Dify 1.0+内网部署全攻略:模型插件离线安装与信创环境适配

本文详细介绍了Dify 1.0+版本在内网环境中的部署全攻略,重点解析了模型工具插件的离线安装方法与信创环境适配技巧。通过实战经验分享,帮助企业在严格的内网隔离条件下高效部署AI平台,解决插件依赖和安装难题,提升大语言模型的应用效率。

weixin_29224529的博客 277

jsf标签

Jsf标签详解(一个不漏) 整理来自:www.web-tag.net actionListener f:actionListener标签为h:commandLink,h:commandButton等指定自定义的事件侦听类。 f:actionListener使用: JSP: 更多 actionListener 信息 attr...

专注=成功 549

别再只用LSTM了!用Temporal Fusion Transformer (TFT) 搞定多变量时序预测,附PyTorch实战代码

本文介绍了Temporal Fusion Transformer (TFT) 在多变量时序预测中的优势,并提供了PyTorch实战代码。TFT通过三重注意力机制解决了LSTM在特征交互、静态特征处理和解释性方面的不足,显著提升了预测精度和可解释性。文章详细讲解了TFT的核心组件构建、数据预处理、模型训练技巧及可解释性分析,帮助开发者快速掌握这一先进时序预测技术。

weixin_33712987的博客 279

各种jsf html标签,JSF+HTML标签总结.doc

修订记录日期 描述作者版本号标签说明frominputTextinputTextareainputSecretinputHiddenoutputLableoutputLinkoutputFormat*页面的开头href="/css/style_organ.css" />href="/css/public.css" />href="/css/ext.css" />*假数据的构造j...

weixin_30412847的博客 251

Adams二次开发实战指南:从CMD到Python与插件开发全解析

本文全面解析Adams二次开发的三种核心方法:CMD命令、Python脚本和C++插件开发。通过实战案例展示如何实现参数批量修改、自动化仿真流程和定制功能开发,显著提升多体动力学仿真效率。特别适合需要处理复杂建模和重复性任务的工程师学习参考。

weixin_29235923的博客 130

用例设计:滴滴打车从轿车到完成支付如何测?

滴滴打车全流程测试用例设计从业务场景覆盖、功能逻辑分解、异常流验证三个维度展开,系统化地构建了测试方案。首先,业务流主干场景被分解为叫车、行程中、支付结算三个阶段,每个阶段都设计了核心测试用例,包括正向和异常用例,如定位准确性、车型选择逻辑、路径偏移监控、费用实时计算、多支付方式兼容等。专项测试补充了状态机验证、资损防控测试和性能测试,确保系统在不同情况下的稳定性和安全性。测试数据策略采用等价类划分设计,实战技巧包括流量回放技术、混沌工程注入和计费沙盒验证,以提高测试的覆盖率和准确性。最终输出交付物包括流程

海姐软件测试的博客 1524

RichFaces-jsf,a4j,rich项目中总结的标签说明

最近公司在做一个项目,主要用的是RichFaces框架,就是jsf和ajax结合的框架,之前没有接触过,现在是边学边做。下面是我刚刚总结的,还不全,持续更新中...     一:Jsf标签: <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> 1.我们使用了JSF 的core 与html 标签库,core 是有关于UI

Henry_YQH的专栏 5253

DC-DC拓扑:从电感位置一眼识别Buck、Boost与Buck-Boost

本文详细解析了DC-DC拓扑中电感位置对识别Buck、Boost与Buck-Boost电路的关键作用。通过对比不同拓扑的电感连接特征,提供快速识别方法和设计要点,帮助工程师避免常见错误并优化电路性能。特别强调电感位置对输出质量和效率的影响,适合电源设计人员参考。

java2000.net 372

JSF标签与Html标签对照表

JSF HTML Tags索引UIForm | UICommand | UIGraphic | UIInput | UIOutput | UIMessage and UIMessages | UISelectBoolean | UISelectMany | UISelectOne | UIPanel | UIColumn and UIData | UISelectItems | UISelec

wu_07的专栏 7873

仅使用 Python 创建的 Web 应用程序(前端版本)第03章Streamlit-多页面

接下来,我们将解释多页面切换。Streamlit 没有“多页面”或“页面路由”等功能。另一方面,通过根据用户动作切换要执行的功能,可以使其看起来好像存在“多个页面”。注意:我认为它类似于 SinglePageApplication (SPA)。然而,根据 React、Vue 等中使用的 URL 路径来更改页面的路由很困难。还有一个用于获取查询参数的实验性 API,但如果您确实需要这种功能,我认为认真尝试编写 React 或 Vue 是个好主意。我们来看一个通过按下按钮来切换页面的示例,如下所示。

xianyinsuifeng的博客 1331

22、用户界面流程(UI Flow)全解析

本文全面解析了用户界面流程(UI Flow)的概念、创建步骤及其在系统设计中的应用。通过示例和操作步骤,详细介绍了如何确定屏幕范围、识别屏幕、创建过渡和标记触发器,并阐述了UI Flow在导航识别、验证、可用性优化、测试用例开发和需求推导中的重要作用。文章还结合问答系统案例,展示了UI Flow的实际应用价值,帮助读者深入理解并有效运用这一工具提升系统用户体验。

rice5的博客 156

jsf常用的标签

<br /> JSF的重要目的是试图允许开发者象开发Swing一样开发Web,所以事件的概念非常重要(这也是Struts的不足之处)。基本上说来,JSF的事件可以分成两种类型:阶段事件(Phase Event)和Faces事件(Faces Event)。阶段事件主要用来处理请求生命周期的特定阶段中发生的事件。Faces事件则是负责处理组件事件的。Swing中的事件基本上可以和Faces事件相对应。之所以JSF事件中有阶段事件是因为Web中毕竟通过没有状态的HTTP协议来进行请求和响应,所以使用阶段事件来处理

fengzhiyi2010的专栏 3540

大模型风电功率预测:短期,超短期,中长期的完整实现与代码详解

本文全面介绍了基于深度学习大模型的风电功率预测方法,涵盖超短期(15分钟-1小时)、短期(1-6小时)和中长期(1天-1周)三种时间尺度。文章详细阐述了数据准备与特征工程,包括数据收集、预处理和可视化分析。针对不同时间尺度,分别介绍了Temporal Fusion Transformer (TFT)、Informer和N-BEATS模型的构建、训练与评估方法,并提供了完整的开源代码实现。此外,文章还探讨了模型部署与生产环境集成,包括模型保存与加载、实时预测API以及模型监控与再训练。最后,文章总结了关键创新

专注AI大模型,软件混淆,授权 1895

ajax4jsf常用标签的使用

a4j:ajaxListener和 ActionListener或者ValueChangeListener的工作方式一样, 只是仅用于AJAX容器. 添加一个指定的类作为AjaxEvent的监听器. (sent in case of an AJAX request for this container). Table 4.1. a4j:ajaxListe

XiaoYi's BLOG 2183

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

JSF之常用标签

常用标签1、colspan="2"横向占两格  rowspan="2"纵向占两格2、align="center"  valign="middle"3、cellpadding="0" cellspacing="0"4、        defaultLabel="Enter some value">            5、空格: 6、获得参数值:public static Str

1999

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

JSF笔记 – JSF中的三大核心组件 UI标签的详细介绍和使用举例

JSF提供了大量的UI标签来简化创建视图。这些UI标签类似于ASP.NET中的服务器组件。使用这些标签,可以通过其value,binding,action,actionListener等属性直接绑定到托管Bean的属性,实例或者方法上。 1、JSF中的三大核心组件: a、 JSF容器管理的托管Bean b、 JSF提供的UI标签,应用界面的UI标签直接绑定到托管Bean c、 页面导航规则

丶季末筅森的专栏 5968

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

web.xml.jsf_面向初学者的JSF 2.0教程

web.xml.jsf 1.什么是JSF? JSF是Java Server Faces的首字母缩写。 它是一种服务器端处理技术,它允许将服务器端代码嵌入到网页中。 由于可以将服务器端处理和渲染代码嵌入网页本身,因此使项目的整体编码更加简单。 减少文件总数和大小。 JSF包含2个主要组件: Java Facets :服务器端文件,用作控制器,将客户端请求重定向到正确的JSF网页。 JS...

最佳 Java 编程 718

JSF标签有两组标准的标签

 JSF有两组标准的标签,即core标签(共有18个,平均每个标签有2.8个属性)和html标签(25个,平均每个标签有26.2个属性)。core标签的具体的作用还没看到例子,不过从“The core library is the poor stepchild of the HTML library—the former exists entirely to support the

474

JSF标签

 使用下面的标签用法时要注意一点,只要在页面上显示的标签内容必须嵌套在  &lt;f:view&gt;&lt;f:view&gt;中 1、转换器——转换数据类型或转换显示格式;  &lt;f:convertNumber minFractionDigits="2"/&gt; 转换数字类型,minFractionDigits属性设置保留最小的小数位数为2 minFractionDigits属性设置保留...

空气中永恒的是什么 261

JSF2 页面标签使用说明(一)

Web页面代表了web应用程序显示层。创建JavaServer Faces应用程序的web页面的过程包括向页面添加组件和将组件绑定到后台bean、验证器、转换器和其他的与页面有关的服务器端对象。建立页面    一个典型的JavaServer Faces的web页面包含以下的元素: 一组命名空间声明来声明JavaServer Faces标签库 可选的,新的HTML头(h:head)和体(h...

yuzhi2217的专栏 392

JSF----------基础知识初解

初次学习JSF,对其基础进行了一些学习与整理。 JSF(JavaServer Faces)它是一个基于服务器端组件的用户界面框架。 它用于开发Web应用程序。 它提供了一个定义良好的编程模型,由丰富的API和标签库组成。最新版本JSF 2使用Facelets作为其默认模板系统。 它是用Java编写的。 JSF API提供组件(inputText,commandButton等)并帮助管理其状态。...

black-ant 3万+

Jsf 面试

Jsf中的核心类用那些?有什么作用? 核心类 FacesServlet LiftCycle FacesContext 2、Jsf中的LiftCycle六大生命周期是什么? 恢复视图->应用请求值->校验->更新模型->调用应用程序->呈现响应 3、如何管量web层中的Bean,用什么标签。如何通过jsp页面与Bean绑定在一起进行处理? checkNumber js...

liliugen的专栏 226

跟我一起学MiniOA:第一章 1.3 JSF标签参考(连载)

来源:http://www.exadel.com/web/portal/jsftags-guide 表单Form <h:form id="myForm"> </h:form> 按钮 <h:commandButton id="submit" value="提交" action="#{yourJavaBean.submit}"> </h:commandButton> 链接形式的按钮 <h:commandLink id="link" action="#{yourJavaBean.submit}

.NET开源应用程序框架 HYAppFrame 942

java web标签大全(Struts2、Struts1、jstl、jsf、spring、Freemarker 、Velocity)

java web标签大全 包含了Struts2、Struts1、jstl、jsf、spring、Freemarker 、Velocity 里面基本上都有使用实例 难得的开发帮助利器 感谢做这项工作的人的辛勤劳动,我搬过来给大家行方便。 如果不能正常显示,请下载完后右击选择属性,然后解锁就行了(如果这个工作不明白,请百度)...

隐藏起来 181
上一篇: 计算机珠玑
下一篇: jQuery 技巧
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值