jsf-1.2

Query regrading navigation rule in JSF 1.2

南笙酒味 提交于 2019-12-13 07:21:21
问题 If I have below navigation rule : <navigation-rule> <from-view-id>Mainview</from-view-id> <navigation-case> <from-outcome>outcome1</from-outcome> <to-view-id>view1</to-view-id> </navigation-case> <navigation-case> <from-outcome>outcome2</from-outcome> <to-view-id>view2</to-view-id> <redirect/> </navigation-case> <navigation-case> <from-outcome>outcome3</from-outcome> <to-view-id>view3</to-view-id> <redirect/> </navigation-case> </navigation-rule> If there is no any validation error for this

JSP & EL conflict with JSF 1.x actionListener

二次信任 提交于 2019-12-13 06:31:26
问题 I was working on a JSF 1.x example, which has some EL conflict in JSPs. the line actionListener="#{helloBean.addControls} is shooting an issue. The error is : HTTP Status 500 - /JSP/hello.jsp (line: 37, column: 2) A literal value was specified for attribute actionListener that is defined as a deferred method with a return type of void. JSP.2.3.4 does not permit literal values in this case My project Description is as follows : Package Structure : Maven Dependencies : <project xmlns="http:/

Faces in ADF can't get the request parameters

寵の児 提交于 2019-12-13 03:34:29
问题 I have an ADF web application with Faces 1.2 In my managed bean I am trying to access the parameters of the post request, but always getting null. This is my post form that I am posting to the Faces: <form name="input" action="http://127.0.01:7072/myapplication/faces/login.jspx" method="post"> <input type="hidden" name="user" id="user" value="myUserName"/> <input type="submit" value="Submit"/> </form> FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("user");

How to add request parameter in jsf2?

ⅰ亾dé卋堺 提交于 2019-12-13 03:20:29
问题 In my app, before upgrading to jsf 2, when doing a custom redirect I used to manually put a request parameter with a specific value in external context like this: FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap() .put(CmwNavigationControllerBean.PARAM_DISPLAY_TARGET_POPUP, "true"); Now this line, throws an exception because it seems that this map is no longer allowed to be modified: at java.util.Collections$UnmodifiableMap.put(Unknown Source) [rt.jar:1.7.0] Isn't

Long polling (pending request) for JSF

人盡茶涼 提交于 2019-12-13 02:37:00
问题 I need to implement long polling or pending request for a chatroom. I tried a4j:push, but it seems doesn't work like a real long polling approach (see the following discussion: https://community.jboss.org/message/16614). The question is: which alternatives do I have to realize long polling? I'm using JSF 1.2, JAVA EE 6 and RichFaces 3.3.2. Thaks in advance! 回答1: You need to use the a4j:poll component from RichFaces. The exadel live demo has a very nice sample and explains the main properties.

Change listener without submitting the form

丶灬走出姿态 提交于 2019-12-12 21:57:31
问题 I've got a list box and I want to catch change in selection in order to fill an other one according to it. I've tried in the following way: <h:selectOneMenu id="comunitaValle" value="#{struttura.nomeComunitaDiValle}" onchange="submit()" valueChangeListener="#{struttura.getComuniInComunita}"> <f:selectItems value="#{struttura.comunitaValleList}" /> </h:selectOneMenu> It works fine, but the fact that in this page there are other parameters marked as required="true" and when the form is

JSF error “Expected a child component type … Found null.”

五迷三道 提交于 2019-12-12 11:16:21
问题 When using the <a4j:support> like described in the RichFaces example I'm always getting the following error when changing the value of the drop-down-box. Expected a child component type of UISelectItem/UISelectItems for component type javax.faces.SelectOne(myId). Found null. Here's the JSF code: <h:selectOneMenu id="selectId" valueChangeListener="#{cs.myListener}" value="#{cs.selectList.selectedItem}"> <f:selectItems value="#{cs.bundeslandList.selectItems}" /> <a4j:support event="onchange"

Error customizing validation error messages in JSF 1.2

倾然丶 夕夏残阳落幕 提交于 2019-12-12 03:47:07
问题 I've followed the steps answered in similar SO questions and also in other sites like Mkyong with no success. I'm describing below what I've done so far in order to customize the javax.faces.component.UIInput.REQUIRED : Create MyMessages.properties in formularis.utils.missatges.custom package and customize the error: javax.faces.component.UIInput.REQUIRED = This value is required. Copy MyMessages.properties and translate to my languages: MyMessages.properties MyMessages_ca_ES.properties

cursor:pointer and default not reflecting immediately

倾然丶 夕夏残阳落幕 提交于 2019-12-12 02:03:52
问题 I have two banners (images) which keep switching every 4 seconds. One image is clickable and the other is not. Below is the code, <div class="contentdiv"> <h:commandLink action="#{mybean.firstImageClick}" id="firstBanner" style="text- decoration:none;"> <img src="imagePath" width="590" height="210" border="0" style="cursor: pointer;"/> </h:commandLink> </div> <div class="contentdiv"> <img src="imagePath" width="590" height="210" border="0" style="cursor: default;"/> </div> I have specified

JSF 1.2: dynamic <ui:param />

笑着哭i 提交于 2019-12-12 01:52:43
问题 There are some answers on stackoverflow, but no one fits my needs :( I'm trying to conditionally build a <ui:param /> for my parent template with JSTL. Something like this: <ui:composition ... template="template.xhtml"> <c:if test="#{condition}"> <ui:param name="parameter" value="parameterValue" /> </c:if> <ui:define name="insertName"> {...} </ui:define> </ui:composition> I tried with both namespaces for JSTL: http://java.sun.com/jstl/core and http://java.sun.com/jsp/jstl/core, but neither