SHOW h:message giving problem
Hi every body ,
I am facing one peculiar problem in my App.
I am validating some textfields , radiobuttons , checkboxes by JSF (I am using JSF 1.1) simple validation (by required "true") and showing message by h:message .But when I am pressing the SUBMIT button it will validation only radiobuttons , it is not validatinf text fields or checkboxes , after I click the radio button & again click the SUBMIT button then only it is validating other fields like text fields / check boxes .
So suppose I am submitting empty from with out click any thing , then JSF showing only the radio button's message , it is not showing all other fields.When I click only the radio button (with out click check box / filling nothing in the text field )& press the SUBMIT button then it is showing all error message in the view page .
Could any body explain me why it is happing ?
** I am validating all fields in the SUBMIT button click by this way :
in the required field I am giving :
required="#{ not empty param['form:submit'] } here SUBMIT button's ID is submit.
Thanks
S
Ok, that's what happens, but the idea was that the "test" appear at the second line. Think about that, and if the "test" was a label for another textbox? So The label would appear at the first line and its textbox at the second line. We can't configure the panelgrid for 2 columns, because we need a column for the h:message.
Try out this code:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<h:panelGrid columns="3" border="0" cellpadding="5" cellspacing="3" headerClass="login-heading">
<h:outputLabel for="userNameInput">
<h:outputText value="Enter your user name:"/>
</h:outputLabel>
<h:inputText id="userNameInput" size="20" maxlength="30" required="true">
<f:validateLength minimum="5" maximum="30"/>
</h:inputText>
<h:message for="userNameInput"/>
<h:outputLabel for="passwordInput">
<h:outputText value="Enter your user password:"/>
</h:outputLabel>
<h:inputText id="passwordInput" size="20" maxlength="30" required="true">
<f:validateLength minimum="5" maximum="30"/>
</h:inputText>
<h:message for="passwordInput"/>
</af:form>
</af:document>
</f:view>
</jsp:root>
Similar Messages
-
My iPad shows a message "Cannot find AirPrint printer". I used to use my iPad to print materials using HP wireless printer D110. Now it does not want to print. Is this because I am now using IOS 7? What should I do to solve the problem? Help please.
Restart your WiFi router and printer by removing power for 30 seconds.
-
HP Pavillion DV7 notebook PC
Windows 7 64
intel I5
6 gig memory
service pack 1
I am trying to identify a problem with my HP Pavillion dv7 laptop
Several months ago it started getting hot and showing messages about problems with the internal fan and battery. It would say enter = shutdown and shut off. I suspected a bad battery so I checked it without it just plugging it in with the power cable. It seemed to work better so I assumed that was the problem.
I ordered a new battery and it worked for a while. The problem came back and is getting worse. I can run it without the battery for a while but it gets got and shows the same message.
I read on here that flashing and updating the bios worked for some but the latest update gives me an error IHISI not support BIOS then Insyde flash not supported.
any help would be great this PC has a lot of info on it and I dont think it is a lost cause
thanksHi duddy, sorry to hear that you are having issues with your computer over heating. I have found a document that will assist you with Restoring the BIOS. http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c02693833&lc=en&product=5199538&tmp...
I have also found a document that will assist you with Troubleshooting and Overheating and Auto shutdown issue. http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c03904182&lc=en&product=5199538&tmp...
If you are still having issues, please let me know and I will be happy to offer more assistance..
Thank you.
Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
W a t e r b o y 71
I work on behalf of HP -
Hi,
There was ios 4.1 in my iphone3gs.i have tried to update it through itunes but there is a problem.After installation through itunes,there is problem that it is not activating my iphone and shows a message that your iphone could not be activated because the activation server is temporarily unavailable,try connecting your iphone to itunes to activate it,or try again in a couple of minutes.i tried many times but it again shows the same message,
after installation,when i connect my iphone to itunes it shows a message that we are unable to activate your iphone at this time please try again or contact customer care.please reply me urgently to resolve this problem.That is usually a symptom thet the phone was hacked or jailbroken. Was it?
-
Hi guys.Got a problem with my iPhone 5. I bought it in a shop 4 month ago. After I got a visitor with iOS 7 on his phone he would like to charge his phone with my Laptop and cable.But when he plugged it in it showed a message wich says: " This cable or accessory is not certified and may not work reliably with this phone".
How is this possible? I then phoned the shop and told them my problem. When I gave them the details I also found out that the imei No. in the iPhone is the same as on the original box. But the the Serial numbers are different. I already try the support centre but I’m over the 90 days.And there is no Apple Store in Namibia. I hope someone can help me here. Thanks, RalfarYou are right, but how could i send it to Apple? when the phone company first replaced my iphone they had in stock alots of iphones and they just sent mine back to Apple and gave me a new one, so all i did is to give them my phone, but now how could i sent it to Apple? and i cant send it by myself, and the store wont do that, its a lost for them.. so sending it to Apple wasnt an option from the begining.
and for the record, i dont think the store where i bought it is an authorized shop.. its just a store who boughts phone's from Apple in a low price and sells it in much more money.. -
new to lightroom, used program last wk no problem, now unable to import any nef or jpegs, keeps showing error message, need help =(
So where is LR trying to copy the files? Check your destination in the Import panel at the right.
-
im can u please help me out this issue im trying to install iTunes in windows 7 some error showing " windows installer package problem DLL require to complete this installation" this message showing.
Try the following user tip:
" ... A DLL required for this installation to complete could not be run ..." error messages when installing iTunes for Windows -
i have problem in wifi it's hidden and show a message that : no wifi-fi
You said " I tried updating via iTunes but that also produced an error message.".
What did that error message say? -
I have problem when updating the latest version of Pro-X, I tried for several times, so I uninstall and re-install it. It is unsuccessful to re-install the Pro-X and it direct me to ask help from CS,also showing this message: Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example, ERROR: DW025, DW050 ... WARNING: DW024, DW025 ..., please advice me the step to re-install the Pro-X. Thanks
Please follow Errors "Exit Code: 6," "Exit Code: 7" | CS5, CS5.5
Do let us know if it worked.
Regards
Rajshree -
I have a problem I'm trying to buy in a particular application, but show me a message as the picture We have allowed the purchase of applications and still show me message " your purchase could not be completed " for assistance contact itunes
Then do as the message says and contact Apple
ITUNES SUPPORT BILLINGS etc
http://www.apple.com/emea/support/itunes/contact.html or https://expresslane.apple.com/Issues.action -
My new iPhone5 suddenly showed the message "No SIM" - I tried resetting the phone but that did not correct the problem. Any suggestions?
http://support.apple.com/kb/TS4148
-
my dreamweaver cs5.5 on window 7started working stop showing message A problem caused programe to stop work correctly
What's the error message you received?
What do your logs tell you?
What were you doing just before you got the error message?
Nancy O. -
Hi there! I have a problem with my iphone 4! i can't share my contacts because its not showing the share contact bar at all-it only shows "send message"!! i have the ios 6.1.3
Try restarting your phone while you hold down the power AND the sleep button at the same time.
This defenitly is a software bug and normally there should be this button. -
i restore my iphone 3gs but after that iTunes show a message there is a problem with your iPhone, help me please
Yes. Talk to whoever replaced the battery. Sounds like they broke something.
-
Applet loading problem, it shows another message before the right message.
Hi Friends,
I have tried to make an applet which is showing the messages related to a user if the messages are present for any user.If the messages are not present for a user then the applet shows that " You Have no unreviewed messages." But due to some reason the applet is displaying the no message text before displaying the intended messages. Please help me out with this code.Could you post your code?
Maybe you are looking for
-
Deleting other languages other than English
Installing (upgrading) OX to Tiger and I accidentally installed all the Asian, Arabic, German etc language files. I know I will not need these language file for anything. Is there a way to get the space back by deleting the files from some folder? I
-
Objects Distribution at various components
hi, we have a requirement in which mapping objects and interface objects are created in diff Software Components. for example against a requirement we are creating mapping objects in one software component say XYZ and interface objects corresponding
-
The HP ePrintCenter is offline for maintenance. HP 210A
It seems that some of HP's servers are down and have been down for a few hours now. I haven't fully set up my printer so I am not sure if this message appearing on the printer's display, is a problem at my end or HP's: "There was a problem connecting
-
My very first 2012 R2 Hyper V VM. The instructions do not work!
I have a new machine with 2 Westmere CPUs and 4 SAS disks in 2 Raid pairs. WS 2012 r2 is installed and I have set up a Hyper-v Role, and rebooted, etc I have set up Gen 2 VM which starts fine I have an iso image downloaded from MS and mounted that as
-
After a system crash, attempting to use Spotlight results in a blue background behind the Spotlight icon in the menu bar, but no entry area appears. However, every time I invoke Spotlight (CMD+Spacebar), the following message appears in the syslog: S