Problem with Java Sun Studio Creator 2 and IE 6

Well, I did an application using Java Sun Studio Creator 2, on Fedora 5, with

Mozilla as browser.

In this environment (Mozilla), the application works perfectly, but when I

acces it with Internet Explorer 6 (or inferior), it doesn't function.

When I click a button, istead the application directs me to the right page,

it directs me to another page (always the same), and this happens also when

I click on the controls of paging of a table (go to the first and to the

last register): instead of making the action, it redirects me for another

page.

Testing again, I notest something... the action redirects me to the page,

but on the URL, it continuos on the same (the right one), and if I refresh

the page, it goes off the action.

The impression that I have is that it makes the action, but it can't come

back to the page of origin and always finishes falling in the same page.

Any idea?

[980 byte] By [M1ch3l4] at [2007-11-26 8:52:14]
# 1
nobody?O.o
M1ch3l4 at 2007-7-6 22:45:17 > top of Java-index,Development Tools,Java Tools...
# 2

Hello M1ch3l4 ,

1. Recently I got a hint from jetsons for debugging:

Add a Message Group Component to the page you try to debug and you'll get some information about encountered errors while converting & validating your input.

2. If the Mozilla and IE6 show different behaviour good questions to ask are:

Is the generated source code the same in both?

Do you use Javascript to manipulate the page?

3. Use the debugger and set breakpoints in component actions or in relevant setter methods to check wether they are executed and to view variables that might determine the outcome of the navigation.

I hope this helps,

Juergen

bookon at 2007-7-6 22:45:17 > top of Java-index,Development Tools,Java Tools...
# 3

Well problem verified: I've now got it! It just manifested itself after I modified one of my pages and added two extra dropdown and a text field. When I click my navigation button (which returns null by the way) IE navigates back to my welcom page while Opera navigates correctly to the next Tab / Pagelayout. Will post here as I find out more...

yossarian at 2007-7-6 22:45:17 > top of Java-index,Development Tools,Java Tools...
# 4

IE is sending the following off to the J2EE container with it's post request. Bold item is the cancel button that is navigating to the wrong page. button3 is what I'm actually pressing.

form1:tabSet1:tab1:textField2Edit...

form1:tabSet1:tab1:dropDown818Edit...

form1:tabSet1:tab1:textField130/10/2006Edit...

form1:tabSet1:tab1:dropDown718Edit...

form1:tabSet1:tab1:textField1809:00Edit...

form1:tabSet1:tab1:dropDown2ZS-AASEdit...

form1:tabSet1:tab1:dropDown1Adeia NovaEdit...

form1_hiddenform1_hiddenEdit...

form1:tabSet1:tab1:textField39Edit...

form1:tabSet1:tab1:textArea1N.T.REdit...

form1:cancelButtonCancelEdit...

form1:tabSet1:tab1:button3ButtonEdit...

form1:tabSet1:tab1:textField3Edit...

Opera (in IE personality) sends the following (the values in the dropdowns make no difference):

form1:tabSet1:tab1:textField2Edit...

form1:tabSet1:tab1:dropDown84Edit...

form1:tabSet1:tab1:textField130/10/2006Edit...

form1:tabSet1:tab1:dropDown718Edit...

form1:tabSet1:tab1:textField1809:00Edit...

form1:tabSet1:tab1:dropDown2ZS-PHLEdit...

form1:tabSet1:tab1:dropDown1Adeia NovaEdit...

form1_hiddenform1_hiddenEdit...

form1:tabSet1:tab1:textField39Edit...

form1:tabSet1:tab1:textArea1N.T.REdit...

form1:tabSet1:tab1:button3ButtonEdit...

form1:tabSet1:tab1:textField3Edit...

So, as best I can tell, my cancel button is being fired. I'm gonna remove it meantime and see what happens

yossarian at 2007-7-6 22:45:17 > top of Java-index,Development Tools,Java Tools...
# 5

Report back:

I removed all the code from my errant button's event handler and the IE navigated correctly.

I then wrote a simple test app to demonstrate the problem and I couldn't reproduce it. If anyone else experiences this problem please describe your page/app strucure and I'll see if I can draw any similarities.

The output above is a cut n paste of the html monitor by the way.

regards

y

yossarian at 2007-7-6 22:45:17 > top of Java-index,Development Tools,Java Tools...
# 6

I had the same problem. I was able to solve it after setting the 'esape' option in the appearance section of the button options in Sun Studio Creator. After which Creator generates the imput tag different, using the 'value' property to set the buttons label, and not setting the labeltext between two 'input' tags (<input ...>button label</input>). This seems enough to get IE behave 'normally'.

ChaimZax at 2007-7-6 22:45:17 > top of Java-index,Development Tools,Java Tools...
# 7
Chaim.Zax -- good work. If your case is reproducable would you please file a bug? Even though the underlying problem is probably IE6 we can't escape the installed base of this product so need to get Creator to work around known issues. Thanks for the feedback.
yossarian at 2007-7-6 22:45:17 > top of Java-index,Development Tools,Java Tools...