Skip to main content

Help. backing bean event not call

3 replies [Last post]
nbernierpq
Offline
Joined: 2009-07-24
Points: 0

Hi,
I've been looking around for awnsers and can't figure this simple one. Either I use the action on actionListener for a commandButton, it doesn't get called and I don't have any errors. Anybody have any idea?

FORM

Faces-Config

com.coveo.opensearch.messages.messages

searchInterfaceBean
com.coveo.opensearch.SearchInterfaceBean
request

searchPanel
/searchPanel.jsp

SearchResults
/searchPanel.jsp

Backing Bean
private String searchTerms;

public void setSearchTerms(String searchTerms) {
this.searchTerms = searchTerms;
}

public String getSearchTerms() {
return searchTerms;
}

public String search(){
System.out.println(searchTerms);

return "SearchResults";
}

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Jim Driscoll

No, that looks correct, AFAICT.

You say it doesn't get called. Have you verified that with a debugger?

You don't mention looking in the log files. Did you?

What happens when you push the button?

And lastly, just to round out the checks, what JSF version are you
using? What server?

Jim

On 7/24/09 11:42 AM, webtier@javadesktop.org wrote:
> Hi,
> I've been looking around for awnsers and can't figure this simple one. Either I use the action on actionListener for a commandButton, it doesn't get called and I don't have any errors. Anybody have any idea?
>
> FORM
>
>
>
>
>


>
>
>

>

>

> > maxlength="1024"
> style="width:350px;"/>
> > action="#{searchInterfaceBean.search}"/>
>

>


>
>
> Faces-Config
> > xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
> version="1.2">
>
> com.coveo.opensearch.messages.messages
>

>
> searchInterfaceBean
> com.coveo.opensearch.SearchInterfaceBean
> request
>

>
> searchPanel
> /searchPanel.jsp
>
> SearchResults
> /searchPanel.jsp
>

>

>
>
> Backing Bean
> private String searchTerms;
>
> public void setSearchTerms(String searchTerms) {
> this.searchTerms = searchTerms;
> }
>
> public String getSearchTerms() {
> return searchTerms;
> }
>
> public String search(){
> System.out.println(searchTerms);
>
> return "SearchResults";
> }
> [Message sent by forum member 'nbernierpq' (nbernierpq)]
>
> http://forums.java.net/jive/thread.jspa?messageID=357491
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

b_faissal
Offline
Joined: 2008-11-28
Points: 0

Hi,

Does show any thing for you ?

nbernierpq
Offline
Joined: 2009-07-24
Points: 0

Hi,
Thanks for your reply. The message doesn't display anything. I've put it there part of the gazilions tests I did but it doesn't change a thing.