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

a4j:commandLink doesn't perform requests

I use richfaces 4. I took an example from http://livedemo.exadel.com/richfaces-demo/richfaces/stateAPI.jsf?c=stateAPI. It works fine on livedemo site. But for me it doesn't work. I see in chrome (by developer tools) that there is no any request to…
Foontik
  • 11
  • 5
0
votes
1 answer

Can't update jsf component from p:commandLink in jquery modal dialog

I'm using jsf p:commandLink from jQuery modal dialog. It calls an actionListener but can't update components. If I work the same button integrated within the page, it works fine. Is there any idea what should I check and how to find a…
zoran jeremic
  • 2,046
  • 4
  • 21
  • 47
0
votes
1 answer

h:commandLink refusing to invoke method and randomly redirects to project root

I'm been scratching my head over this one... I have plenty of projects with a working commandLink element, however I cannot for the life of me get it to work in this project. I've followed BalusC response here: commandButton/commandLink/ajax…
Ally
  • 1,476
  • 3
  • 19
  • 30
0
votes
0 answers

JSF links in table not updating, sorting not swapping

I have a table displayed. When the user clicks on the headers i want the table to reorganise itself, sorted according to the selected header. Clicking on the same header again, swaps the order of sorting Within the table, there are several…
mangusbrother
  • 3,988
  • 11
  • 51
  • 103
0
votes
3 answers

p:commandLink in p:dataTable does not invoke action on first click, but only on second click

I'm using primefaces commandLink in p:datatable and when user clicks on link. It's supposed to navigate to another page including specific info of object that is chosen from table. I don't use any ajax tags. Problem is when first time clicks on link…
Odgiiv
  • 683
  • 1
  • 11
  • 32
0
votes
1 answer

Inconsistent behavior between and

I have a delete confirmation dialog:
Lucas
  • 14,227
  • 9
  • 74
  • 124
0
votes
1 answer

p:commandlink inside ui:repeat

In our application we are displaying the menus dynamically. We have the menu object(menuitems in below code) populated with all the menu items (read from an xml). The home page then generates the menus by usinng ui:repeat. Insdie ui:repeat there are…
Skyler Hays
  • 279
  • 1
  • 5
  • 14
0
votes
1 answer

Primefaces 3.4: DataTable and CommandLink column with f:setPropertyActionListener throws javax.el.ELException: java.lang.IllegalArgumentException

I have this dataTable with a list of Clients and one Edit commandLink column. I need to open a dialog to show the client's data and I'm trying to use f:setPropertyActionListener to send the Client object to the bean dialog, using the variable cli…
vladiastudillo
  • 407
  • 1
  • 10
  • 23
0
votes
1 answer

Open p:confirmDialog on clicking of p:commandLink

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:
Tapas Bose
  • 28,796
  • 74
  • 215
  • 331
0
votes
1 answer

Using on a cell in a datatable to open a subtable

I basically have a datatable in which one of the columns is clickable. I have done this by using the commandlink from primefaces. Everywhere people have used this only to navigate, but I want the click to result in opening a sub datatable. Depending…
0
votes
1 answer

How to pass the id of the selected CommandLink

I have a datatable, and one of the columns contains the status of the particular item. The status appears as a commandLink in the column. If the status of the item as retrieved from the database is a comma separated value like Status1,Status 2, I…
Raaz
  • 125
  • 1
  • 5
  • 16
0
votes
1 answer

show full text on mouse over or hover on a

One of the table column displays commandLink in its rows, whose value is a long text. I am displaying only a portion of that text and when a user hovers on the link I want a pop up or something that will display the full text and hide it when the…
santa029
  • 329
  • 6
  • 10
  • 23
0
votes
2 answers

jsf - commandLink in a dataTable for delete row

I want to put a h:commandLink in a h:dataTable to delete a single row. Here I have a code which does not work and I hope you can help me. This code doesn't even call my delete method. The data for the h:dataTable comes from a database. XHTML …
thomas.st
  • 393
  • 2
  • 5
  • 17
0
votes
0 answers

primefaces form freezes after unzip code is run

so I upload a zip file using Primefaces 3.0, after which my bean code unzips the file. The primefaces file upload code is below:
Alaph432
  • 143
  • 2
  • 4
  • 10
0
votes
1 answer

p:commandLink not invoked when placed in p:dataTable in p:dialog

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 :
begiPass
  • 2,124
  • 6
  • 36
  • 57
1 2 3
13
14