commandlink

Why does a commandLink within a facet within a composite component renders an error?

99封情书 提交于 2020-12-30 08:17:14
问题 When I create a composite component with a facet in it and place a command link within that facet, I get an error message: This link is disabled as it is not nested within a JSF form. A commandButton does not behave in the same way, so I am inclined to this this is a bug. index.xhtml : <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns

Why does a commandLink within a facet within a composite component renders an error?

Deadly 提交于 2020-12-30 08:16:26
问题 When I create a composite component with a facet in it and place a command link within that facet, I get an error message: This link is disabled as it is not nested within a JSF form. A commandButton does not behave in the same way, so I am inclined to this this is a bug. index.xhtml : <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns

p:commandLink fails to open page in new window/tab

扶醉桌前 提交于 2020-01-28 06:21:28
问题 I'm trying to create a link to open a new page in a different window/tab and display some msg from backing bean but fail to do it, wonder know why? here is my xhtml file: <html:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:ui="http://java.sun.com/jsf/facelets"> <h:body> <h:form id="form66"> <p:commandLink actionListener="#

h:commandLink not working inside dataTable

对着背影说爱祢 提交于 2020-01-06 15:40:10
问题 In my JSF file I have below at the start. <h:form><h:commandLink value="Create New Staff Account" action="adminCreateStaffMember"/></h:form> . By use of this, when I create on Create New Staff Account I get re-directed to the page where I have form to create new account. BUT, When I use the same inside dataTable , NO ACTION is taken. I am still on same page :( <h:dataTable var="c" value="#{newStaffMemberServiceBean.newStaffMemberDataBeanList}" styleClass="order-table" headerClass="order-table

h:commandLink not working when inside a list

落花浮王杯 提交于 2020-01-04 09:07:21
问题 I have a problem with RichFaces and creating lists of links. If you attempt to use any type of commandLink inside a list (I've tried ui:repeat and rich:list) the action on that link is not called. I've also tried commandButton and the a4j variations of those. I'm using JSF 2, RichFaces 4 on Jboss 6. <rich:list var="venue" value="#{searchManager.results}" type="definitions" stateVar="status"> <h:form> <h:commandLink value="CLICK IT" immediate="true" action="#{score.selectVenue}" /> </h:form> <

h:commandLink not working when inside a list

时间秒杀一切 提交于 2020-01-04 09:06:13
问题 I have a problem with RichFaces and creating lists of links. If you attempt to use any type of commandLink inside a list (I've tried ui:repeat and rich:list) the action on that link is not called. I've also tried commandButton and the a4j variations of those. I'm using JSF 2, RichFaces 4 on Jboss 6. <rich:list var="venue" value="#{searchManager.results}" type="definitions" stateVar="status"> <h:form> <h:commandLink value="CLICK IT" immediate="true" action="#{score.selectVenue}" /> </h:form> <

“This link is deactivated, because it is not embedded in a JSF form.”

霸气de小男生 提交于 2019-12-30 18:26:22
问题 When I use the following command link: <h:commandLink action="student" value="students" /> And the following navigation rule in faces-config.xml : <navigation-rule> <from-view-id>/home.xhtml</from-view-id> <navigation-case> <from-outcome>student</from-outcome> <to-view-id>/student.xhtml</to-view-id> </navigation-case> </navigation-rule> Then I get the following development stage faces message: This link is deactivated, because it is not embedded in a JSF form. How is this caused and how can I

p:commandLink not invoked when placed in p:dataTable in p:dialog [duplicate]

跟風遠走 提交于 2019-12-25 05:25:26
问题 This question already has answers here : commandButton/commandLink/ajax action/listener method not invoked or input value not set/updated (12 answers) Closed 3 years ago . I use primefaces and I want to download a file with different formats(pdf, jpg, png, ) from database but I don't succed to realise this I have seen a lot of topic like this but their methods don't work for me here is the html : <ui:repeat value="#{histCommController.selectedCommande.listFichiers}" var="jjjjj"> <tr> <td> <h

Open p:confirmDialog on clicking of p:commandLink

末鹿安然 提交于 2019-12-25 02:09:03
问题 I am trying to open a PrimeFace ConfirmDialog on clicking of a PrimeFace CommandLink. But when the link is clicked the dialog is opened for a moment but vanishes instantly, I guess the page is being submitted. Here is the code: <p:commandLink value="Delete" onclick="confirmation.show()" /> <p:confirmDialog message="Are you sure, you want to delete ?" header="Initiating deleting process" widgetVar="confirmation"> <p:commandButton value="Yes Sure" onclick="confirmation.hide()" actionListener="#

submitForm() not defined for myfaces.JSF_JS_MODE 'minimal-modern'

妖精的绣舞 提交于 2019-12-24 15:36:49
问题 I tried to set up a simple JSF 2.2 application using MyFaces 2.2.8. Since MyFaces has some context parameters that I never used before, I tried to get familiar with those. So I got to use org.apache.myfaces.JSF_JS_MODE for the first time and ran into problems with h:commandLink . The commandLink is trying to call myfaces.oam.submitForm() which is not defined if I set the mode to minimal-modern . If I set the mode to minimal or normal it works. From reading some internet articles I assume this