• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to force setter in jsf??  RSS feed

 
joesef shed
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
How i Force the setter phase manual.??


Thanks
 
Kavita Tipnis
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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>

<hutputLabel 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>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!