This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

valuehchange listener, ajax  RSS feed

 
Tejas Aj
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am using jsf page inside a portlet. if a use a value change listener the menthod is not called in the backing bean unless i use onlcick="submit()". this submits my page which i dont want. same is the case with actionlistner.

also if i use ajaxrefreshsubmit, my whole page is submitted rather than submitting the specified part on which the ajaxrefreshsubmit is used.

why this behaviour? is it because we are using it in portlet or did we miss something in the configuration files.

please help.

Thanks,
T
 
Abzee AntiPro
Greenhorn
Posts: 14
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to the valueChangeListener to be called then add a immediate ="true" to the component of valuechange listener.

and write onClick="submit();".

this way shoudl work
 
Tejas Aj
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i dont want to use onclick="submit();" since i dont want to submit my page. also immediate = "true" creates some other issues in my page so i dont want to use it either. i have previously used this in my previous project which was a simple web app. it was working fine over there. i just want dig in to whether this is not working because of the portal appl we are using.

Thanks,
T.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!