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
0
votes
0 answers

PrimeFaces commandLink called only once in TabView

I'm using PrimeFaces 5.1. I have a TabView component in which the tabs are generated dynamically:
MrRaymondLee
  • 546
  • 5
  • 12
0
votes
1 answer

p:commandLink - get action from controller

I have a p:commandLink and would like to make it so that the controller decides its action, based on a parameter. That's what I have:
BackSlash
  • 21,927
  • 22
  • 96
  • 136
0
votes
1 answer

Using a link inside p/h:panelGrid columns

I'm using inside as follows.
Tiny
  • 27,221
  • 105
  • 339
  • 599
0
votes
3 answers

Stop p:commandLink from scrolling to top of page when clicked

I have a JSF2 commandlink with an image. When the image is clicked, the server will download a PDF file. While the file is downloaded after the image link is clicked, it also causes the entire page to scroll to the top of the page. the code snippet…
futureelite7
  • 11,462
  • 10
  • 53
  • 87
0
votes
3 answers

p:commandLink action does not fire

p:commandLink action does not fire on my view bean. I tried many things but I did not achieve :(( There should be a simple issue about that. I would be appreciated if you can help me.
Tonyukuk
  • 5,745
  • 7
  • 35
  • 63
0
votes
1 answer

Primefaces CommandLink target blank not work properly

I'm trying to open a new window from dataTable using primefaces. I've tried differents options: h:commandLink
Liesel
  • 1
  • 1
  • 3
0
votes
1 answer

jsf2 selectonemenu submit value without bean

I know it is propably not the best practice to make this work without a managed bean... but I'd like to make it work that way :)
Niy
  • 1
0
votes
0 answers

Can h:commandLink be used with a single-click?

I need an h:commandLink to send a value using f:setPropertyActionListener , like this:
Luciane
  • 259
  • 4
  • 23
0
votes
2 answers

Error Primefaces p:commandLink

Hello I am using JSF and PrimeFaces 3.5 2.1.17, I have the code below:
Ruth
  • 21
  • 1
  • 3
  • 6
0
votes
2 answers

How to delay a commandLink in jsf with javascript or primefaces?

I have a commandLink which calls a backend page bean method. but I want to make a delay before it calls that method. How to do this using javascipt or primefaces?
Imran Khurram
  • 377
  • 8
  • 18
0
votes
2 answers

Passing a parameter in a commandLink doesnt work. JSF2

I have a JSF web application using SPRING3 + JSF2 (mojarra 2.1.12) and I have the following problem: I want to redirect my web page and I want to pass a parameter. First, I used a button and it worked properly but then I decided to change it to a…
0
votes
2 answers

After ajax request completed do a javascript alert

I have a message page written in jsf and in this page i have a table containing message titles as commandlink. In these commandlinks i have nested ajax to request to my bean to read the message content from db and show it on the page. I tested this…
hamid
  • 43
  • 7
0
votes
2 answers

Control.Remove only removes every other control

I am dynamically creating a list of CommandLink controls and adding them to a panel. I created a method to remove all of the CommandLink controls from the panel, and it's working for the most part, except it only seems to remove every other control.…
Drew Chapin
  • 7,779
  • 5
  • 58
  • 84
0
votes
0 answers

h:command link not executed

I have a datatable in my jsf page and I need to have an index for this table. In this index I have links like as follows :
hamid
  • 43
  • 7
0
votes
0 answers

commandlink disabled still triggers the action

I have a custom tag in which I use a commandLink tag. The problem is that in some cases I want the action that happens in the back not to happen, actually to disable the link, but in some cases I want the link to work.
Soreena
  • 19
  • 3