incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d sanders <dsanders1...@yahoo.com>
Subject Re: inputText required and navigation
Date Thu, 16 Nov 2006 20:00:00 GMT
trinidad: m1-SNAPSHOT
JSF: myFaces 1.1.5-SNAPSHOT

David

--- Simon Lessard <simon.lessard.3@gmail.com> wrote:

> Hmmm... It looks good. What version of Trinidad and
> JSF impl are you using?
> 
> On 11/16/06, d sanders <dsanders1234@yahoo.com>
> wrote:
> >
> > I've tried both, it still gives the validation
> error.
> > My page is constructed via a facelet template
> where
> > the navigation part is in the template, if that
> makes
> > a difference.  (I would not think so.)
> >
> > Here is the basic layout:
> >
> > <tr:panelPage>
> > ...
> > <f:facet name="navigation3">
> >         <tr:navigationPane
> >                 id="navigation3"
> >                 var="node"
> >                 value="#{navigationModel.model}"
> >                 level="2"
> >                 hint="list">
> >                 <f:facet name="nodeStamp">
> >                         <tr:commandNavigationItem
> >                                
> text="#{node.label}"
> >                                 immediate="true"
> >                        
> action="#{node.getOutcome}"/>
> >                 </f:facet>
> >         </tr:navigationPane>
> > </f:facet>
> > ...
> > <tr:panelFormLayout labelWidth="40%" rows="6">
> >         <tr:inputText
> > label="#{bundle['userAdmin.username']}:"
> > value="#{userActions.username}" required="true"/>
> >         <tr:spacer height="15"/>
> >         <f:facet name="footer">
> >                 <tr:panelButtonBar>
> > <tr:commandButton
> text="#{bundle['addUser.addUser']}"
> > action="#{userActions.addUser}"/>
> >                 </tr:panelButtonBar>
> >     </f:facet>
> > </tr:panelFormLayout>
> >
> >
> > I've tried putting immediate="true" and "false" on
> the
> > required inputText.
> >
> > David
> >
> >
> > --- Simon Lessard <simon.lessard.3@gmail.com>
> wrote:
> >
> > > You should not be getting any error, even if you
> > > navigate on the same page.
> > > The only two possible cause are:
> > >
> > > 1) Your ActionSource is not immediate, fixed by
> > > making navigationItem
> > > immediate
> > > 2) Some or all of your fields are immediate,
> fixed
> > > by removing the immediate
> > > attribute from them. In theory, only immediate
> > > fields should show errors,
> > > thus showing you which one need to be altered.
> > >
> > >
> > > Regards,
> > >
> > > ~ Simon
> > >
> > > On 11/16/06, d sanders <dsanders1234@yahoo.com>
> > > wrote:
> > > >
> > > > Oh, okay.  That's most likely the problem. 
> The
> > > > panelPage/navigationPane/nodeStamp combination
> > > does
> > > > not work right now and returns me to the
> current
> > > page.
> > > > I am waiting for a fix for this.  I was
> clicking
> > > on
> > > > the other tabs and getting these validation
> > > errors.
> > > > Even though I was not going anywhere but back
> to
> > > the
> > > > current page, I did not think that I should
> have
> > > been
> > > > getting the errors.
> > > >
> > > > Thanks,
> > > >
> > > > David
> > > >
> > > >
> > > > --- Simon Lessard <simon.lessard.3@gmail.com>
> > > wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > The current page should not be reloaded if
> the
> > > > > commandNavigationItem is
> > > > > immediate. Can you post a code snippet of
> your
> > > page
> > > > > please? Did you make the
> > > > > inputText immediate as well, if so that's
> the
> > > > > problem, it should not be?
> > > > >
> > > > >
> > > > > Regards,
> > > > >
> > > > > ~ Simon
> > > > >
> > > > > On 11/15/06, d sanders
> <dsanders1234@yahoo.com>
> > > > > wrote:
> > > > > >
> > > > > > That gets rid of the popup, but now I get
> an
> > > error
> > > > > on
> > > > > > the required field itself and via
> tr:messages.
> > > > > >
> > > > > > David
> > > > > >
> > > > > >
> > > > > > --- Adam Winer <awiner@gmail.com> wrote:
> > > > > >
> > > > > > > Try setting immediate="true" on the
> > > > > > > commandNavigationItem.
> > > > > > >
> > > > > > > -- Adam
> > > > > > >
> > > > > > >
> > > > > > > On 11/15/06, d sanders
> > > <dsanders1234@yahoo.com>
> > > > > > > wrote:
> > > > > > > > Hello,
> > > > > > > >
> > > > > > > > I get validation popups on empty
> > > tr:inputText
> > > > > > > fields
> > > > > > > > that have required="true" when using
> > > > > > > >
> panelPage/commandNavigationItem/nodeStamp
> > > to
> > > > > > > navigate
> > > > > > > > to a different page.  Is this to be
> > > expected?
> > > > > I
> > > > > > > am
> > > > > > > > not attempting to submit my form, just
> > > > > navigate to
> > > > > > > > another page.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>
____________________________________________________________________________________
> > > > > > > > Sponsored Link
> > > > > > > >
> > > > > > > > Compare mortgage rates for today.
> > > > > > > > Get up to 5 free quotes.
> > > > > > > > Www2.nextag.com
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> 
=== message truncated ===



 
____________________________________________________________________________________
Sponsored Link

Mortgage rates near 39yr lows. 
$310k for $999/mo. Calculate new payment! 
www.LowerMyBills.com/lre

Mime
View raw message