Questions tagged [commandlink]

JSF tag to create a POST link.

The <h:commandLink> is a JSF UI component which generates a HTML <a> element which submits its parent <form method="post"> using JavaScript.

208 questions
1
vote
1 answer

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

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…
tobwoerk
  • 118
  • 7
1
vote
0 answers

p:commandLink action not firing inside a p:dialog

I have a Primefaces 5.0 p:dialog page invoked by populated dynamic menuitem (DefaultMenuItem) when clicked and displayed in modal, which shows perfectly fine. The p:dialog contains a p:dataTable with the last column contains p:commandLink that is…
1
vote
0 answers

a4j:commandLink working intermittently

In the code below, a4j:commandLink (with id id="account-link") does not work for me all the time. Fail Scenario (happens 1 out of approx 10 clicks) : Its clicked, the a4j:status tag (we show a moving wait bar) is invoked but the backing bean is…
Himalay Majumdar
  • 3,883
  • 14
  • 65
  • 94
1
vote
0 answers

JSF commandlink not working in ui:repeat inside a facet in a subTable in dataTable

i have a problem with JSF commandlink inside ui:repeat with a subtable/datatable. I already trie use a viewscoped bean with @PostConstruct method loading all data and still not working. I read @BalusC explanation in commandButton/commandLink/ajax…
Oliveira
  • 11
  • 2
1
vote
3 answers

Primefaces' commandLink works only on the first page of a dataTable

I have a column with p:commandLink inside p:dataTable, which has a paginator. When user clicks on a commandLink, a dialog opens, displaying data of that row. datatable html code:
peterremec
  • 488
  • 1
  • 15
  • 46
1
vote
0 answers

Data table Context Menu fails to work for command link in columns?

I have four columns in a data table out of which I need to use two command links for two separate actions and I need a context menu with two menu items. The Context Menu displays and the action Listeners fire only with columns having output…
1
vote
0 answers

ajax execute by form id doesn't works if create html5 tags inside form

I have a datatable and form. Both are wrapped by html5 section tag. The table rendered correctly for edit, delete and cancel edit options, but doesn't work with save (save edits) and add new record(f:ajax execute). I'm so new in JSF, so i can't…
Rex Garcia
  • 83
  • 9
1
vote
1 answer

JSF link to external site without showing username and password in the URL

I was able to do a SSO(Single sign on) on click of external link from the code below. SSO works but username/password is seen on url. https://example.org/index.php?userLogin=user1&userPassword=pass123
Dan Klos
  • 13
  • 2
1
vote
2 answers

Has anyone seen this h:commandLink behavior?

I have a very simple JSF form: Search When this page is rendered, the anchor that is generated looks…
Liggy
  • 1,181
  • 2
  • 11
  • 19
1
vote
0 answers

Run JS function (with a refreshed bean parameter) after commandLink's action that moves the user on another page?

This is my first question here and on top of that I'm really, really new to Spring/JSF/RichFaces (about 3 weeks) so, I'm sorry if my question is dumb :) Long story short, having the following: a4j:commandLink action="myBean.doSomething" method that…
DaniL
  • 23
  • 6
1
vote
1 answer

Programatically add Parameter to HtmlCommandLink using a Phase Listener

I need to add a component (UIParameter) to a HtmlCommandLink component dinamically through a Phase Listener. What I want to achieve is that every element renders as .Where "param"…
Oscar
  • 23
  • 7
1
vote
1 answer

commandLink with ui:repeat in composite component

I am trying to use links in a composite component, my links are in a simple array and do not belong to any managed bean.
TonyDav
  • 25
  • 4
1
vote
2 answers

How to invoke an EJB method without an h:form tag in a JSF page

I want to invoke an EJB method when I click a link in my JSF website. At the moment I use an h:commandLink within an h:form tag to trigger the EJB method: Is there a…
Benny Code
  • 51,456
  • 28
  • 233
  • 198
1
vote
1 answer

Submitting programmatically created jsf form

I have created jsf form at backing bean. I have created form, it is being shown on screen with values successfully. When I click sumbit button, backing bean method is invoked with ActionEvent but updated input values are not submitted to backend.…
1
vote
0 answers

Clicking on commandLink is invoking preRenderView again

In my facelet, I have the below commandLink:
Sudipta Deb
  • 1,040
  • 3
  • 23
  • 43