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

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

  • Spotlight "window" missing

    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