aspose file tools*
The moose likes JSF and the fly likes P:selectOneMenu first ajax reuqest issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "P:selectOneMenu first ajax reuqest issue" Watch "P:selectOneMenu first ajax reuqest issue" New topic
Author

P:selectOneMenu first ajax reuqest issue

khaled hanafy
Greenhorn

Joined: Jun 28, 2010
Posts: 25
Hi Guys ,

I have a problem with prime faces "selectOneMenu" component as i try to update " p:dataGrid " by change the SelectOneMenu value as follow :




The problem is when i change the selectOneMenu's value at the first time the datagrid doesn't updated what happen is only the postconstructor method is called after the first change it works fine ..

my managed bean is viewscoped manage bean .

and the listner method "bussinessOwnersViewerMB.handleCityChange" is :


khaled hanafy
Greenhorn

Joined: Jun 28, 2010
Posts: 25
Any idea guys !!!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

Actually, we don't encourage "bump" messages. If you don't get a response in a reasonable time period, it means, alas, that no one knows. Unless, of course, you're simply a n00b who didn't pay attention to the Ranch Display Name rules - A lot of us ignore people until they fix their display names.

But that's not a problem for you. Your problem is simply that since we're unpaid and visit at will (in my case, I typically take weekends off), you just needed more patience.

You coded a valueChangeListener method to handle an AJAX submission. The signature of a valueChangeListener doesn't conform to that required for an AJAX listener, so JSF didn't find a suitable method, and therefore nothing was invoked. JSF fails silently in such cases.

You actually would have better luck if you remove the parameter from your "valueChangeListener" method altogether, since you're not using it anyway. That would make it match the no-argument version of the AJAX listener signature matcher.


Customer surveys are for companies who didn't pay proper attention to begin with.
khaled hanafy
Greenhorn

Joined: Jun 28, 2010
Posts: 25
I don't know why you talking alot about what you called "bump" message !!! , i think if you said please don't send reminder message or ["bump" message] i will not .

Anyway thanks ..
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

On some forums, people post a message whose text is simply the word "bump" or something similar. Since most forums order message threads by the time of their last update, that bumps their thread back up to the head of the message thread list.

Like I said, we get enough traffic here that usually that isn't necessary. At the same time, we've managed (for the most part) to ensure that no one forum gets so much traffic that people's threads scroll out of sight before anyone can read them. So we're grateful for your co-operation.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: P:selectOneMenu first ajax reuqest issue