trinidad

Trinidad/ADF Faces, file upload, EOFException

被刻印的时光 ゝ 提交于 2021-02-11 08:55:39
问题 I use JSF 2.3 (Mojarra 2.3.3), Trinidad (2.2.1) and its file upload component (tr:inputFile) in a web.xml-version 3.1 on a Tomcat 8.5 server. I get following exception and no valid uploaded file (i.e. the "value"-binded bean attribute remains null): java.io.EOFException: null at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler._readLine(MultipartFormHandler.java:253) ~[trinidad-impl-2.2.1.jar:2.2.1] at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.

Trinidad/ADF Faces, file upload, EOFException

房东的猫 提交于 2021-02-11 08:53:06
问题 I use JSF 2.3 (Mojarra 2.3.3), Trinidad (2.2.1) and its file upload component (tr:inputFile) in a web.xml-version 3.1 on a Tomcat 8.5 server. I get following exception and no valid uploaded file (i.e. the "value"-binded bean attribute remains null): java.io.EOFException: null at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler._readLine(MultipartFormHandler.java:253) ~[trinidad-impl-2.2.1.jar:2.2.1] at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.

pyecharts(echarts) 世界地图——国家名称表中英文的映射

那年仲夏 提交于 2020-07-27 22:12:37
今天在爬一个网站的时候,各个国家的名称是中文的,但要使用pyecharts.map绘图时要输入的国家名称却是英文的。 这时就需要一个字典来实现中英文名称的映射关系: nameMap = { ' Singapore Rep. ' : ' 新加坡 ' , ' Dominican Rep. ' : ' 多米尼加 ' , ' Palestine ' : ' 巴勒斯坦 ' , ' Bahamas ' : ' 巴哈马 ' , ' Timor-Leste ' : ' 东帝汶 ' , ' Afghanistan ' : ' 阿富汗 ' , ' Guinea-Bissau ' : ' 几内亚比绍 ' , " Côte d'Ivoire " : ' 科特迪瓦 ' , ' Siachen Glacier ' : ' 锡亚琴冰川 ' , " Br. Indian Ocean Ter. " : ' 英属印度洋领土 ' , ' Angola ' : ' 安哥拉 ' , ' Albania ' : ' 阿尔巴尼亚 ' , ' United Arab Emirates ' : ' 阿联酋 ' , ' Argentina ' : ' 阿根廷 ' , ' Armenia ' : ' 亚美尼亚 ' , ' French Southern and Antarctic Lands ' : ' 法属南半球和南极领地 ' ,

Clicking text in tr:selectbooleanradio not generating valueChangeEvent

谁都会走 提交于 2019-12-25 16:56:12
问题 In my JSF 2.0(MyFaces 2.1.10, Trinidad 2.1.0 Version)Application, I need to use tr:selectbooleanradio in my page to achieve the functionality that my page requires. In the below code, the default values of todaySelected and tomorrowSelected are 'false'. The issue is, once page loads, when I select 'today', the valueChangeToday is not getting called.(I believe it should call as default value of todaySelected is false and submitted value is true). When I select tomorrow, valueChangeToday is

ValueChangeEvents being fired only after other components are clicked

倖福魔咒の 提交于 2019-12-25 01:21:48
问题 I'm trying to use an InputFile within JSF (1.1.7) and Apache Trinidad (1.0.11). I define a change event for it but the event is not being fired when I change the file selection but when I click on another component of the form. Here is the jsp code: <trh:body> <tr:panelPage> <tr:form usesUpload="true" id="myForm"> <tr:inputFile columns="80" id="archivo" valueChangeListener="#{myBean.changeInputFile}" immediate="true"> </tr:inputFile> <tr:commandButton text="Begin"/> </tr:form> </tr:panelPage>

Inner UI:repeat does not bind to a bean in a nested UI:repeat

守給你的承諾、 提交于 2019-12-13 09:11:30
问题 HI, I am using nested ui:repeats to display my data. the outer UI:repeat works and binds to bean just fine, but the inner does not bind to the bean. In sumary, I would like to display a list of people where each person has a name and a list of email addresses. Here is my code: <ui:repeat value="#{myFamily.personList}" var="eachPerson" > <tr:panelCaptionGroup captionText="#{eachPerson.name}" styleClass="fullWidth"> <h:inputText value="#{eachPerson.age}" styleClass="fullWidth" /> <ui:repeat

What is the api to clear selection on a af:table?

一世执手 提交于 2019-12-11 10:57:53
问题 I have a two ADF faces table say A and B and their rowSelection property is is set to " single ". Now the requirement is when one row is selected from A , it should clear out all selections from B and vice versa . So I have registered selectionListeners on both the tables and the code that gets executed inside that method is doing the following for the table that has not been selected : tablenNotSelected.setSelectedRowKeys(null); What am I missing here ? 回答1: You likely need to setup the

Validating one form with multiple tabs, how to switch tabs without losing validation errors? Using Myfaces and Trinidad

丶灬走出姿态 提交于 2019-12-11 07:20:09
问题 I have 1 very long form that needs to be split into pieces, but it is submitted and validated as one. I have split it into tr:panelTabbed sections each of which displays a set of fields. The validation messages are displayed currectly in the first tab but if one of the other tabs is checked its' validation messages are not displayed. Tabbing back to the original, its' validation messages are also not displayed. Is there any way around this? It looks like the tab interface only generates 1 tab

JSF Trinidad tr:inputText trimming

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 06:40:08
问题 When user inserts white spaces in input generated by tr:inputText and submits form I get the value that was submitted in JSF converter (my converter does no trimming) set on the input. But I get null value (original value that came to the input) to managed bean. JSF page: <tr:inputText label="..." value="#{ManagedBean.object.defaultValue}" id="defValueId" converter="#{MyConverter}"> <tr:validateLength maximum="255"/> <f:attribute name="domainId" value="domainId"/> </tr:inputText> When I use h

JSPX Trinidad messageDetailNotInRange for validateDateTimeRange not working

可紊 提交于 2019-11-29 15:44:05
I am trying to override the default validateDateTimeRange message using messageDetailNotInRange as per the documentation. Despite my code, the validator produces the default error message: "The date is outside the valid range." Can anyone see something wrong here? <tr:inputDate required="true" inlineStyle="color:rgb(0,58,117); font-weight:bold;" value="#{processScope.benefit.serviceDate}" immediate="false" onchange="submit();" label="#{mb_ResourceBean.res['claim.serviceDate.label']}"> <tr:convertDateTime pattern="yyyy/MM/dd" secondaryPattern="yyyyMMdd" type="date"/> <tr:validateDateTimeRange