Hi Björn!

Customizing validation is for sure an interesting topic. In the meantime
you may be able to solve your problem if you set the parent selector to
immediate and attach a valueChangListener which changes the
data for the second one in the backing bean.

You could also use the ajax-enabled combo box which you can see in
the current tomahawk-sandbox examples.
(I think thats probably easier)

If the problem is more complex you could also use subForms to limit
validation to certain components on your page.

hope that helps a little

thanks for your feedback

regards

Ernst

On 9/28/06, Björn Voß <[EMAIL PROTECTED]> wrote:
Hi Ernst

your enhancement looks really great.
I'm currently using ajax4jsf to ajaxing my jsf-pages, but I would like to have 
it done all in tomahawk. :-)

I have one additional suggestion:
Disable validation or customize what input fields should be validate on 
ppr-parts.

Let me try to explain what I mean:
You have two selectOneSelectBoexes. The second is a 'subbox' of the first. If 
the user change the first on, the second should be rerendered with new entries.
Both are required like some other input fields on the page. If any of the 
required fields is empty the validation will fail. But for the rerendering of 
the second selectbox this validation isn't necessary.

I hope it is clear, what I mean.

Best regards
Björn


> -----Ursprüngliche Nachricht-----
> Von: Ernst Fastl [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 27. September 2006 22:36
> An: MyFaces Development
> Betreff: Re: Enhancing Partial Page Rendering
>
> A automatic refresh after a given timeout is another good idea. I think
> this would be great for status-boards. lets add this to the list :-)
>
> What I meant with point number 2 is intended, that you just sourround
> a group of components with a pprPanelGroup and no matter which
> of theese components is clicked, the pprPanalGroup updates itself
> via AJAX without needing to specify triggers or a regex for the contained
> component.
>
> The Idea behind this is to make it really easy to ajaxize existing
> applications
> by for instance sourrounding a datatable with its scoller just with a
> pprPanelGroup
> - set triggerOnContainedComponents ( or whatever we will call this) to
> true -
> and the area is "ajaxed"
>
> regards
>
> Ernst
>
> On 9/27/06, Gerald Müllan <[EMAIL PROTECTED]> wrote:
> > Ernst,
> >
> > many thanks for your recent patches and the comments on it.
> >
> > I will test the changes today and commit the stuff afterwards.
> >
> > BTW, the second one of your future plans; is it like an automatically
> > refresh after a given timeout? Seems very practicable to me.
> >
> > cheers,
> >
> > Gerald
> >
> > On 9/27/06, Ernst Fastl <[EMAIL PROTECTED]> wrote:
> > > Hello everyone!
> > >
> > > In the recent tomahawk issues related to the pprPanelGroup partial
> Page
> > > Rendering has been improved in the following points:
> > >
> > > -partialTriggers also work for commandLinks, selectOneMenu and
> > > selectBooleanCheckBox (the last two still need onchange-Handlers)
> > >
> > > -partialTriggers are also working between different forms now
> > >
> > > -the partialTriggerPattern Attribute has been introduced: a regular
> expression
> > > -> all matching ClientIds act as triggering Components
> > >
> > > -the inlineLoadingMessage Attribute has been introduced- to display
> > > a loading message replacing the pprPanelGroup - content immediatly
> > > while waiting for the servers response
> > >
> > > since the patches are not yet commited these features are not yet in
> > > but they seem to work quite fine on my machine
> > >
> > > next steps  I have in mind include:
> > >
> > > -support nesting of pprPanelgroups which are not rendered in the first
> place
> > > (some javascript transportation over xml and eval() on the client side
> > > or similar ...
> > >
> > > -support of an attribute to automatically trigger on all components
> inside
> > > the pprPanelGroup
> > >
> > > -support an attribute to refresh a pprPanelGroup always if any
> > > partialTrigger triggers
> > > a partial reload
> > >
> > > -suport a general loading message right top of the screen
> > >
> > > suggestions are always welcom :-)
> > >
> > > I still have a problem with the component tree and server side state-
> saving
> > > since I don't forward to the JSP-engine. If I understood the outcome
> of
> > > the thread "Problems with Partial Page Rendering" correctly it will
> > > be possible to create the component tree and invoke state-saving
> > > without actually rendering. I'd appreciate that very much because
> > > at the moment this is still missing in PPR and I don't know how to
> > > do that.
> > >
> > > thanks for all the interesing information in the PPR related threads
> > >
> > > Ernst
> > >
> >
> >
> > --
> > 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