• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

valuehchange listener, ajax

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 14
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic