• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

how to force setter in jsf??

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
How i Force the setter phase manual.??


Thanks
 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can by just invoking it, but it is advised not to and allow the JSF lifecycle to handle it.
Perhaps if you explain what you are trying to achieve,then folks here can help
 
joesef shed
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

Thanks for your Interset and this is the details
I have problem that i want to fill value's of manged bean submit valuechangelistener sumbit but the value's is still 0 even i fill it in textbox or any component

public void catchangelist(ValueChangeEvent c) {

Integer x = ((Integer)c.getNewValue());

hw_model.filtermodel(x,h.getBrand_id());

}
h.getbrand_id() is still 0 while it have value in it's textbox

Can you help me please
 
Kavita Tipnis
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you added value binding in your jsp page for the textbox?
 
joesef shed
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes..i do it


<h:selectOneListbox value="#{stock.h.HW_CATEGORY_ID}"
binding="#{stock.selectOneListbox4}"
id="selectOneListbox4" size="1" valueChangeListener="#{stock.catchangelist}" onchange="submit()" immediate="true" >
<f:selectItems value="#{hw_category.catname}"
binding="#{stock.selectItems4}"
id="selectItems4"/>
</h:selectOneListbox>

<h:outputLabel value="Brand"
binding="#{stock.outputLabel24}"
id="outputLabel24"/>
<h:selectOneListbox value="#{stock.h.brand_id}"
binding="#{stock.selectOneListbox5}"
id="selectOneListbox5" size="1">
<f:selectItems value="#{brand.allbrands}"
binding="#{stock.selectItems5}"
id="selectItems5"/>
</h:selectOneListbox>
 
I guess I've been abducted by space aliens. So unprofessional. They tried to probe me with this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic