Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

P:selectOneMenu first ajax reuqest issue

 
khaled hanafy
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any idea guys !!!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
khaled hanafy
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic