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

How to replace h:commandButton with a div

I want to replace all kind of buttons on my page with div as bellow:
save
I replace components onto…
M314
  • 925
  • 3
  • 13
  • 37
0
votes
2 answers

JSF 2.0 commandLink - action not being called, javascript erro

i'm trying to get a plain commandLink to work. Here is a code snippet of the page:
user871784
  • 1,247
  • 4
  • 13
  • 32
0
votes
1 answer

JSF, ajax and commandLink, don't redirect?

I'm wonking on a jsf application, i want to use commandLink to execute ana action on my managed bean, where there is a server call, but i dont want to reload the page, i've tried with a commandButton and the attribut update it works? How can i make…
Potinos
  • 371
  • 3
  • 5
  • 15
0
votes
1 answer

commandlink action doesn't fire inside p:accordion

I have command link inside an accordion inside of primefaces wizard and they're all in the same form - I don't have nested forms and yet the action of the command link is not fired. Here's my page:
Questionmark
  • 145
  • 1
  • 2
  • 10
0
votes
1 answer

How to redirect to Ajax-call in JSF?

I have an "ajax execute"-tag embedded in a commandLink-Tag in my JSF-File, which works pretty well. My problem: I want to execute this ajax-call directly by using a Get-Request.So far, I'm using only one html-file(index.html) without any…
Robert El
  • 1,247
  • 2
  • 10
  • 10
-1
votes
1 answer

Open Google Calendar in a new tab

I'm developing a project using java and jsf. I am trying to open Google Calendar when the user clicks on a commandLink but I have no clue about how to do it. Does anyone knows how can I handle this? Thanks in advance
Aldeguer
  • 821
  • 9
  • 32
-1
votes
1 answer

Execute the commandlink's action and show a dialog

I have a problem with a h:commandlink and a dialog. When clicking on the commandlink i want that a dialog will appear and a java method will execute. I've tried many solutions, but i always could open the dialog OR call the method. Here's a part of…
chocolate cake
  • 2,129
  • 5
  • 26
  • 48
-1
votes
1 answer

Updating a bounded JSF attribute dynamically

i wanted to know if there is a way to update a jsf commandlink bounded attribute after the user clicks on it.
CodeGuru
  • 9
  • 4
-1
votes
1 answer

alternative for h:commandLink in navigation

i have a navigation with h:commandLinks to set a backing bean und reload parts of the view via ajax. that works as expected but it produces horrible mark up because h:commandLinks have to be in a form element. the view is as…
arkhon
  • 765
  • 2
  • 11
  • 28
-1
votes
1 answer

Form doesn't submit values when commandLink is used instead of commandButton

I made following jsf page. In my Managed Bean i want evaluate the input, but i dont get the values. If i press my commandLink i dont get any values. when i use a commandButton it works:
Lars
  • 947
  • 8
  • 15
-2
votes
1 answer

SCRIPT5009: 'myfaces' is undefined

I have JSF2 application running on WAS8.5.4 sever using libraries primefaces-3.4-SNAPSHOT-20120807.jar and javax.faces-2.1.9.jar . In one of the pages , I have p:commandlink button to view attached documents .But when users click on this component…
-2
votes
1 answer

commandlink in JSF not generating the intended HTML tag

I'm trying to call a managed bean from h:commandLink in JSF. But I don't see href attribute in the rendered HTML a tag. Am I missing something? There is a ManagedBean called AccountSetupController with a signUp method in it. This is the tag I used…
user2434
  • 6,339
  • 18
  • 63
  • 87
-3
votes
1 answer

h:commandLink with Java bean

I have a datalist"gouvernorats" extracted from a data table and each item of the list is a command link that outcome an other page which contains a list "villes" referenced to the item. My code doesn't work.I ask someone to help me running…
asma Lri
  • 539
  • 1
  • 4
  • 8
1 2 3
13
14