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
2
votes
1 answer

JSF 2.0, malformedXML when using ajax on a commandlink

I am trying to display a field in a form after an ajax request through a commandlink.However ,i get a malformedXML error when i click the link. The xhtml file looks like : . . …
maya
  • 159
  • 1
  • 17
2
votes
1 answer

h:commandLink not working when inside a list

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…
James DW
  • 1,815
  • 16
  • 21
2
votes
2 answers

how to refresh referenced part of page with prime faces' p:commandLink?

Environment: Tomcat 6 ,jsf 2.0,prime faces 2.2.1 ,chrome explorer I want to click the "ViewDetail" link in the left expanded tree and show the product's detail info. But the code below didn't work. Then I add the attribute ajax="false" to the link,…
leo173
  • 303
  • 2
  • 5
  • 13
2
votes
0 answers

WebSphere JSF property not found (on a setup equivalent to one that works)

We have an EAR of our application, which we deploy on our old server: Windows Server 2003 R2, 32 bit, WebSphere 8.0.0.4. Now I have set up a theoretically equivalent WebSphere 8.0.0.4 instance on another machine: Windows Server 2012 R2 standard, 64…
2
votes
2 answers

h:inputText data cached

Click "LINK1" --> modal popsup --> enter value in text-box --> click Submit/Process Click another link "update/cancel" --> same modal popsup --> I see the value in the text box (This is fine and if I reload the page and click the link again, the…
Himalay Majumdar
  • 3,883
  • 14
  • 65
  • 94
2
votes
1 answer

vs in

When I want to see the detail page of my Book I will get my book and redirect it to my overviewpage. Now when I use the he always gives the last item of my dataTable. When I use the everthing works fine. Now my question, why…
2
votes
0 answers

How to specify the map attribute of HTML in a JSF page

I am trying to replicate the below html page using JSF. But can't find the correct JSF tag to do so. HTML content (Required HTML):
Image
ragrawal3
  • 43
  • 1
  • 5
2
votes
1 answer

Display param value in h:commandLink

Here is the commandLink in Home.xhtml: But when i want to click on it, the…
user3615690
2
votes
1 answer

Conditionally rendering p:commandLinks

I'm implementing some search filters. A is displayed beside each search component (, etc).
Tiny
  • 27,221
  • 105
  • 339
  • 599
2
votes
1 answer

How to put image instead of text in h:commandLink value

I have a command link as below. This is working fine, but I need a image instead of text value. The image has to act as a command link. How can I achieve this?
Rithik_Star
  • 651
  • 5
  • 14
  • 39
2
votes
2 answers

Trouble updating datatable with commandlink

I wanted to make a little addition to the sample datatable that they have on primefaces. I wanted to add another column that was to delete some of the data. This condition was set to if the car's color was white or not. I have the delete button…
TheBlueMan
  • 316
  • 1
  • 4
  • 27
2
votes
1 answer

how can I change commandlink image on mouseover in primefaces?

I tried this but my commandlink disappeared. When i tried to find with firebug, it was there but with size 0 x 0 px. .myNewButton { width: 50px !important; height: 50px !important; background-image: url('/resources/img/e_menu_icons/x.png') …
Gary Leather
  • 281
  • 2
  • 6
  • 18
2
votes
2 answers

using CommandLink for showing values in JSF

I am creating a CRUD app in JSF. I have used MovieName and RespectiveID.The Moviename is in CommandLink tag.Now I want that if someone clicks on the movie it will show the detail for respective movie.If it would be PHP I can easily append the ID in…
user1765876
1
vote
3 answers

h:commandLink not working inside dataTable

In my JSF file I have below at the start. . By use of this, when I create on Create New Staff Account I get re-directed to the page where I have form…
Fahim Parkar
  • 30,974
  • 45
  • 160
  • 276
1
vote
1 answer

I can't map my Servlet with my JSP

I have a problem for mapping my servlet with my Java Server Page, using the JSF framework and especially the commandLink tag. When I click on the commandLink it only reload the same productList.jsp. Here is my map web.xml
cocoggu
  • 401
  • 7
  • 18
1 2
3
13 14