• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

submit only with inputText and without valueChangeListener

 
Jana Wetzel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,

i need some help for a problem I can't solved.

To submit a formular I can only used an inputText because of a barcode scanner. I start with the following code



This code is working but I don't need a valueChangeListener. An ActionListener would be better, because I need every input also twice the same.

The element inputText don't offer an actionListener, so what can I do?

Can someone help me, please?

Bye Jana
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because it is just an input element, not some action element.
Add a h:commandButton to the form and specify the actionListener in there.
 
Jana Wetzel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Bauke,

That's the problem. I can't use a button because I have only a barcode scanner as input. No mouse, no keyboard.

Does a solution exist without button or commandLink?

Thanks for your help.

Bye Jana
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, continue misusing the valueChangeEvent then. That's the easiest way.
If you want the event to happen during the invoke application phase, so that it would behave like during actionListener, then you need to queue the event.

Something like
 
Jana Wetzel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Bauke,

i misused the commandButton now



Now the inputText do what I want.

Thanks for your help.

Bye Jana
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic