This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes how to force setter in jsf?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "how to force setter in jsf??" Watch "how to force setter in jsf??" New topic
Author

how to force setter in jsf??

joesef shed
Greenhorn

Joined: Jun 02, 2009
Posts: 14
Hello
How i Force the setter phase manual.??


Thanks
Kavita Tipnis
Ranch Hand

Joined: Sep 21, 2008
Posts: 177
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

Joined: Jun 02, 2009
Posts: 14
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

Joined: Sep 21, 2008
Posts: 177
Have you added value binding in your jsp page for the textbox?
joesef shed
Greenhorn

Joined: Jun 02, 2009
Posts: 14
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>
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to force setter in jsf??
 
Similar Threads
Regarding jsp:useBean
What is encapsulation?
getter setter
hashcode
Axis Parser Error