aspose file tools*
The moose likes JSF and the fly likes Replacing inputText with buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Replacing inputText with buttons " Watch "Replacing inputText with buttons " New topic
Author

Replacing inputText with buttons

Lee Pham
Greenhorn

Joined: Feb 25, 2010
Posts: 2
Hi,

Please forgive my ignorance, I am very new to JSF. The developer I was working with is unavailable to help me make modifications at the present moment so I was hoping someone here could help me make some minor changes. I’ve done most the work already on the other pages that require changes, but there is something that is outside my scope.

This is program that takes the input from the user 1-5 and adds it to a total elsewhere once all the computers have inputted their number. However, I want to change the textbox and submit button to: five buttons (1 through 5) that automatically submits once clicked. I could do this in other programming languages, but being new to JSF I’m having trouble. Can anyone help me out?

In my mind this should be very simple if I knew the syntax for jsf. I imagine just changing the <h:inputText> to five commandButtons or commandLinks that does the same thing but are assigned values 1 to 5? Or is this a lot more complicated than I thought?

Any advice would be appreciated. Thanks!

Here is the code of the page I want to edit:

Lee Pham
Greenhorn

Joined: Feb 25, 2010
Posts: 2
No one has any suggestions?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Replacing inputText with buttons
 
Similar Threads
JSTL and bean data
Field display problem
any popup calendar include in jsf
How to print a image file into the printer
Javascript reset() method and JSF h:form