I have a class bo.
and two classes producer (runnable)
and consumer (runnable)
in bo I do producer.start() and consumer.start().
I need executing only once this operation via web.
I mean If the user clic a button then execute the bo and starts the threads.
but If I the user clic again I need to set a String like "running"
Hi!, my question is simple.
For example. H¿I have a s:textfield in my jsp, I need to enter something like this hh:mm:ss but the user only put the numbers, and nothing more. If the user want to insert a character I need this option are disabled.
Sorry for my english!
HI I looking for a tutorial to make a chat like facebook.
I try to do it in xhtml.
I need advice about this, or if you know a tutorial or something like that. I really apreciate.
Hi!.
I have this problem.
for example, if I have this,
Ñ = 209 in unicode
I need to convert that 209 in a ascii extended value to get Ñ= 165 in ascii extended.
this is possible??
Thanks a lot!
Hi
Thanks for your help!
I try that solution but it doesn't work for me.
I need to know in which place of the page I must put this line. Inside f:view or inside f:form ? or another place...
I go to page A to B but this event never stop in setupPage. Can you help me please?
Thanks!!!
Hi!.
I have a web application using jsf.
I have beanA in session and beanB in session
My problem is this.
I have a pageA and a pageB. in PageA a have a selectOneMenu component and in the Bean - @PostConstruct method I call a query to load an arraylist for the selectOneMenu,
In PageA I can delete , update and create new item for this list.
In pageB I must use this list (but I use another bean in session ). but here's the problem. because the bean is in session this list can't update whit the new values and I can't change session to request.
DO you have any ideas for solving this?
My idea is when I go to one page to another, update the data. I used binding but didn't work for me.
I want to do this:
When I stay in page B and I want to go to page A the value of the selectOneMenu update.
the code is this.
pageB
cargarComboEtiquetas is called in the @PostConstruct
and page A is the same. in pageA I only update, create and delete values for my list.
Hi.
I have a problem whit JSF 1.2.
I have a bean whit request ( I declare this in faces-config,xml and I don't use annotations )
If I try to go to page 1 to page 2. I can do this whitout a problem. but. If a try to go from page 2 to page 1. This doesn't work:
I put the code here...
This is my faces-config
and this is my page. etiqueta.xhtml
this is etiquetaCrud.xhtml
and this is a part of my Bean
the problem is.
If I put the bean in Request when I stay in etiquetaCrud and press confirmar the method confirmarEditarEtiqueta() never called.
If you don't understand what I did saying here please answer me.
Hi!, I try to control the position of each item inside the datalist with width. I'll to explain.
for example....
inside my panelgrid I have 3 columns.
First column -> only a outputText I need put this column in... width: 20%. for example.
Second columns -> I have a datalist with n items. here's the problem. If I have for example width: 50% I need to manage the posicion for the items, if I have only 4 items, I need to have a distance (width: 150px) but if I have 6 items, I need put them in another distance (width:50px)
Third column -> here I have 3 items I need to put width: 15%
The datalist values are variable, for example the items in that can be, 3,4,5,6....
I need to manage the width of each column and item of the column in an individual way to represent correctly on the page.