Hi Cagatay,

currently there is an NPE happening with the client-side validator and
UIInputs in a dataTable (you can see this on the newly added
sandbox-example-page:

http://localhost:8000/pprPanelGroupDataTable.jsf

)

I've fixed this with a change which will essentially disable
client-side navigation - please look a little deeper into this, and
also bear in mind that you can't traverse the component tree - it is
just not possible in JSF as soon as you reach a dataTable or other
fly-weight-pattern components. I don't have a big problem if you do it
until a table is reached, but of course we should make sure an NPE is
not happening if a table with inputs is included on the page. If you
want to discuss some more on this, feel free to contact me directly or
via the lists.

regards,

Martin

---------------

find below the change:

   //todo: This won't work - there is no way to traverse the
component tree properly!
   //Traverses the component tree recursively, queues validation
calls starting from the root
        public static void queueCVCalls(UIComponent root) {
        /*      if( root.getChildCount() > 0 ) {
                        for( int i = 0; i< root.getChildCount() ; i++ )
                                queueCVCalls( (UIComponent) 
root.getChildren().get( i ) );
                } else {
                        if( root instanceof UIInput ) {
                                UIInput input = (UIInput) root;
                                addCVCall( createCVCall( input ) );
                        }
                } */
        }

--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to