You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by madan chowdary <ma...@yahoo.com> on 2007/02/01 19:19:34 UTC

[Tobago] Problem with Required Attribute

Hi All,

I Used a Layout as specified in the Demo Example.

I included a Top Navigation bar at the top, a Left Navigation bar in the left.

The <jsp:doBody/> is done for the Middle Part which uses the layout.

In one of the pages, i used a panel to place <tc:in/> with required="true" and a submit button.

When i navigate to this page, and click on submit button without entering any values, i get the indication that fields are Required.

But when i just navigate to this page, and then click on other links on my TopNavigationBar to visit other screens, i get the same indication that fields are required.

I need to display these errors when the user clicks "submit" button, but not when he wish to navigate to other screen without entering any data in the required fields.

How to achieve this ?

Thnx in advance,
Madan






		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Re: [Tobago] Problem with Required Attribute

Posted by Volker Weber <v....@inexso.de>.
Hi Madan,

add a immediate=true to the navigation command.

Regards,

  Volker

2007/2/1, madan chowdary <ma...@yahoo.com>:
>
> Hi All,
>
> I Used a Layout as specified in the Demo Example.
>
> I included a Top Navigation bar at the top, a Left Navigation bar in the
> left.
>
> The <jsp:doBody/> is done for the Middle Part which uses the layout.
>
> In one of the pages, i used a panel to place <tc:in/> with required="true"
> and a submit button.
>
> When i navigate to this page, and click on submit button without entering
> any values, i get the indication that fields are Required.
>
> But when i just navigate to this page, and then click on other links on my
> TopNavigationBar to visit other screens, i get the same indication that
> fields are required.
>
> I need to display these errors when the user clicks "submit" button, but not
> when he wish to navigate to other screen without entering any data in the
> required fields.
>
> How to achieve this ?
>
> Thnx in advance,
> Madan
>
>
>
>  ________________________________
>  Here's a new way to find what you're looking for - Yahoo! Answers

Re: [Tobago] Problem with Required Attribute

Posted by MichaƂ 'Gandalf' Stawicki <st...@gmail.com>.
I new to Tobago, but perhaps you have put everything in one tc:form tag?

On 01/02/07, madan chowdary <ma...@yahoo.com> wrote:
>
> Hi All,
>
> I Used a Layout as specified in the Demo Example.
>
> I included a Top Navigation bar at the top, a Left Navigation bar in the
> left.
>
> The <jsp:doBody/> is done for the Middle Part which uses the layout.
>
> In one of the pages, i used a panel to place <tc:in/> with required="true"
> and a submit button.
>
> When i navigate to this page, and click on submit button without entering
> any values, i get the indication that fields are Required.
>
> But when i just navigate to this page, and then click on other links on my
> TopNavigationBar to visit other screens, i get the same indication that
> fields are required.
>
> I need to display these errors when the user clicks "submit" button, but not
> when he wish to navigate to other screen without entering any data in the
> required fields.
>
> How to achieve this ?
>
> Thnx in advance,
> Madan
>
>
>
>  ________________________________
>  Here's a new way to find what you're looking for - Yahoo! Answers


-- 
stawicki@gmail.com
http://stawicki.jasliska.pl
GG: 3691111
JID: stawicki@gmail.com