use tr:subForm. Something like this:
<tr:subForm id="outer">
<tr:subForm id="inputs">
...required inputs here...
</tr:subForm>
<tr:subForm id="dialog">
...dialog here...
</tr:subForm>
</tr:subForm>
The dialog will cause the validation & update model phase to only be
run on the dialog's subform and thus the inputs will not throw
validation errors.
Stay away from the immediate attribute like the plague. Only use it
for "cancel" or "get me outta here" type functionality.
-Andrew
On Fri, Oct 3, 2008 at 2:41 AM, Havelka Tomáš <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> I have the following problem.
>
> Imagine the use case when page contains form with some required inputs, link
> to navigate to dialog to fill this inputs and submit button.
>
> The problem I have is to achieve solution to fill those inputs from dialog.
> Those inputs have partialTriggers attribute set to id of dialog link, which
> defines returnListener. In this listener I simply want to set bean values,
> which are bound to input components. It's good working when dialog link has
> not set immediate attribute, but validation error on required fields appear
> when trying to open dialog. But, when setting immediate attribute on dialog
> link to true, that when returning from dialog, values are not set in input
> fields.
>
> I think this can be done using coding on server with code which calls
> resetValue on input components. But is there any solution for this avoiding
> coding on the server?
>
>
>
> Tom
>
>