action method unexpectedly called (compat)
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
action method unexpectedly called (compat)  XML
Forum Index -> Development Build Feedback
Author Message
ekatus.atimoss

Joined: 30/07/2009 00:00:00
Messages: 27
Offline


Dear Forum,

while struggling with 2.0 Navigation (see my other post) I discovered that calling a bean action mehtod from an <ice:xxx> component automagically calls the action method of an <ice:commandButton> on the same page.
That is, something like

Code:
 <ice:inputText value="#{bean.search}" action="#{bean.doSearch}" partialsubmit="true" />
 
 <ice:commandButton value="Detail" action="#{bean.openDetail"} />
 

with corresponding

public String doSearch() {

//do some search here
return null;
}

public String openDetail() {
//open the detail screen
return null; //yes, must return the rootview with redirect to have 1.8.2 style half-way working
}

Pressing the enter button while in the inputText will cause both doSearch and openDetail methods to be called in this example.

EDIT: the container is GlassFishV3 - haven't been able to run JSF2.0 / ICEfaces 2.0 on Tomcat6 so far.

Kind regards
Michael
judy.guglielmin

Joined: 20/02/2007 00:00:00
Messages: 1196
Offline


Please open a jira for this and attach a simple test case (seeing as you probably have one already).
deryk.sinotte


Joined: 26/10/2004 00:00:00
Messages: 930
Online


I created one already. You can attach the test case to that if you like.

http://jira.icefaces.org/browse/ICE-5536

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
ekatus.atimoss

Joined: 30/07/2009 00:00:00
Messages: 27
Offline


Strong indication that this is browser related. Was not able to reproduce the bug using Eclipse Internal Browser (3.5 on Windows XP) or IE 6. Bug shows in FF 3.x (3.5.5)

kind regards
Michael
ekatus.atimoss

Joined: 30/07/2009 00:00:00
Messages: 27
Offline


ekatus.atimoss wrote:
Strong indication that this is browser related. Was not able to reproduce the bug using Eclipse Internal Browser (3.5 on Windows XP) or IE 6. Bug shows in FF 3.x (3.5.5)

kind regards
Michael 


I'm afraid this bug

http://jira.icefaces.org/browse/ICE-5536

is back or still persists in beta1. Browser is FF 3.6.8, Mojarra 2.0.3, GlassFish 3.0.1 (EN). The <ice:commandButton> action method get's called even though the button is not pressed.

kind regards
Michael
deryk.sinotte


Joined: 26/10/2004 00:00:00
Messages: 930
Online


Thanks for the feedback. I've verified the behaviour and re-opened the JIRA.

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
 
Forum Index -> Development Build Feedback
Go to:   
Powered by JForum 2.1.7ice © JForum Team