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

Primefaces CommandLink only works the first time it's clicked

I have a datatable, and have links that allow the user to insert a row directly below the current row. This should then update the numbering. It works perfectly once, creating a new row, populating the number and adding one to the numbering for all…
tacua
  • 194
  • 1
  • 14
1
vote
1 answer

How to create dynamic tabs using include with PrimeFaces

I try to add tabs dynamically using ui:include, but I can not get the good behavior! If I look at the HTML response, the content is there, but does not appear in the tab. If i try to open a 2nd tab with an other content the html result contain the…
Seb
  • 1,118
  • 1
  • 11
  • 25
1
vote
1 answer

How to update a layoutUnit in PrimeFaces

I try to load an include in a "layoutUnit" via "commandLink" but nothing is displayed but if i refreshes the page all is correct. the commandLink :
Seb
  • 1,118
  • 1
  • 11
  • 25
1
vote
3 answers

Change page of Primefaces Datatable with pagination from commandlink

I have a Datatable with pagination and I want to change the current page with a commandlink outside the Datatable, how I can get it?
Alavaros
  • 1,665
  • 7
  • 32
  • 52
1
vote
1 answer

Inoperative p:commandLink when using #{param} in rendered attribute

I have a page displaying some profile, so it's URL ../faces/savedProfile.xhtml?profileId=1234. On that page I have p:pane containing a few p:commandLink components, something like this: ... …
1
vote
1 answer

p:confirmDialog message not refreshed after f:setPropertyActionListener

I have a datatable and on each row there is a commandLink. On click of commandLink I set the row object to a property of baking bean using f:setPropertyActionListener tag. When I debut I can see setter of property has been called and correct value…
1
vote
1 answer

f:setPropertyActionListener setter not being invoked

I'm using Icefaces 1.8.2 with jsf 1.1 The setter method of target field is not invoked before the commandLink action method. ......
Narayana Nagireddi
  • 729
  • 1
  • 13
  • 33
1
vote
1 answer

How to make a clickable image which invokes an action with parameters

I want to have a clickable image which sends two parameters to my action on click. I tried the following with .
ilias
  • 182
  • 1
  • 3
  • 13
1
vote
1 answer

h:commandLink f:ajax action not called when page has f:viewParam required="true"

In my web app, JSF2 (mojarra 2.1.20), there is a strange behaviour on a page having a component with the following snippet:
maxqua72
  • 391
  • 1
  • 9
  • 25
1
vote
1 answer

JSF Javascript failure - myfaces not defined

I'm working on a web solution using myfaces and primefaces. We have several pages in our solution, and some of the get this mystical error myfaces not defined because there is a javascript file that is not included on the page, namely the jsf.js…
Runar Halse
  • 3,528
  • 10
  • 39
  • 59
1
vote
2 answers
1
vote
0 answers

JSF - Send object to bean parameter

I am learning JSF and when I send an object to a bean parameter the instance of the object is not correct. I have a page that list a lot of movies, if I want to see the complete information about a movie, I click on a link that send me to a page…
Rafael
  • 1,655
  • 3
  • 17
  • 25
1
vote
2 answers

p:commandLink in p:subTable header fires only for first p:subTable

I need to display a commandlink in the subTable header.The page renders correctly however only the first commandlink fires and action method gets invoked.All the subsequent commandlinks don't call the action method. I looked at the html source for…
Jack
  • 61
  • 1
  • 2
  • 8
1
vote
1 answer

JSF: only able to use sessionscoped view with ajax commandlink

The scenario: I want to partially execute and render part of a form in JSF, using AJAX, through the use of a commandLink. Since this will be done through AJAX, from my understanding ViewScoped should hold the values of the components in the page…
Nick Volk
  • 11
  • 2
1
vote
0 answers

JSF CommandLink with get request

Currently I have serious problems with my webapp, because it has strange behavior behind a web proxy ISA Server 2006. I found the problem was because I was using h:links to call some pages and ISA makes cache from that. I change the h:link to…
Hernán Tenjo
  • 179
  • 2
  • 12