By using JSF commandlink and button i need to clik twice any link why?

hi

i am using commanlink in my application.

i need to click twice to display a page. if i open a new browser it goes one click.but if i use the same page i already used the application . i need to click on the button or commanlink twice.

do i need to clean seesion or request when every i open the pplication

how does i slove this problem

on one click i want to enter the page.

please some one guide me

thansk in advance

sree

[482 byte] By [actmortagea] at [2007-10-2 13:36:50]
# 1

Hello,

I had almost the same problem, and I read in some post that there is a bug about this, and we should try setting navigation with <redirect>.

I changed and it works fine, I磎 not sure why, but it works.

I hope it works fine for you, and somebody else could explain it better.

[]s

developerBRa at 2007-7-13 11:26:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

First of all sorry for my english.

I've tried to use <redirect> but the problem still exists. In Firefox and also in IE. Could someone tell me how to get rid off this problem ?

I have a commandLink with an ObjectImage Inside in a column of a adf table.

I have to clic two times to get the commnadLink action to work.

The strange thing is that sometimes i need two clics sometimes with a single clic the action is triggered....

please help me

thanks a lot in advance

yamia at 2007-7-13 11:26:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
If this problem is only occurring after you make modifications and redeploy the application, then simply do not worry about it. You won't be doing that in production.
RaymondDeCampoa at 2007-7-13 11:26:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
You need to isolate your problem. In the case of one click did the request go to the server? Did the request trigger your action method?Use a debugger and look at the server logs to figure out what is going on. You mention ADF so is this JSF commandLink or ADF's commandLink?
smurray_eriea at 2007-7-13 11:26:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

First of all, Thanks for the reply!

I was using ADF commandLink. but now, i've changed to h:commandLink and everything works well. It is strange that ADF commandLink does not work.

When i clicked on adf commandLink the action method was not called, only a refresh of the page with all get Methods called.

after the second click the action method is called. Even if i've tried to make the action directly and put a SetActionListener under the commandLink (cause i need to save a value of the table) it needed the double clic anyway.

bye

yami

Yamia at 2007-7-13 11:26:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
I've used ADF alot and never had this issue. Were you usinig ADF's partial submit feature? I suspect it was something you were doing wrong with ADF but glad to see your working.
smurray_eriea at 2007-7-13 11:26:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
Thanks smurray_erie for the reply. i have still that problem. because the h:commandLink calls the action method a number of times equals to the number of rows of the table.if you have some suggestions, please reply.byeyami
Yamia at 2007-7-13 11:26:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 8
Well that should not happen and I am trying to figure out why. Are you triggering this using your own javascript or are you staying within ADF framework? Could you post a small snippet of code containing h:commandLink and a snippet of code containing the action method, that would help
smurray_eriea at 2007-7-13 11:26:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...