Help with JCreator

Hi,

i磎 developoing a webapp using JCreator and single form with TabSet to fill and qury database data.

the form contains a TabSet with 2 Tabs (Select and Edit).

all functionality are ok. but when i磎 in Edit Tab and wrong fill a field like Calendar and go change to Tab Select the app no changes the Tab.

Any error is triggers, and i would like to know go to Tab Select without re-fill the Calendar with a correct data.

Thanks.

Fagner Ara鷍o.

[487 byte] By [fagaraujo] at [2007-11-26 11:58:28]
# 1
One idea would be to bomb it earlier on invalid date entry within a try catch.
marysam at 2007-7-7 12:19:34 > top of Java-index,Development Tools,Java Tools...
# 2
but the proccessing not reach a Page.java class code !!!!!
fagaraujo at 2007-7-7 12:19:34 > top of Java-index,Development Tools,Java Tools...
# 3

This is how it is supposed to work (that is, the JSF lifecycle).

If you have validators/converters/required fields and those generate errors (such as an invalid input), the action handlers DO NOT get called and the app will not leave the page.

You should look into virtual forms and the immediate property.

Information Sources:

http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/abo ut_components.html#input

* Immediate Processing on Change. If you want the browser to submit the page as soon as the page visitor changes the component's value, right-click the component and choose Auto-Submit on Change from the pop-up menu.

* Turning Conversion and Validation Off. Sometimes you might want to turn off processing, including conversion and validation, on some of the input components on a page. You can use the IDE's virtual form settings to specify which fields to process for a given action. For example, when someone clicks a Cancel button, you might want to bypass processing of all input fields. Or perhaps you have two buttons on a page, and you only want to submit a subset of the fields depending on which button is clicked.

Note that you can also use the immediate property to limit the processing of input values. However, the virtual form feature is much easier to use. For example, the web application calls the conversion, validation, and value change listeners (and action listeners if an action component) for components that have their immediate property set to true in an earlier JavaServer Faces lifecycle phase than the other components. That is, these processing steps for the immediate components are called during the Apply Request Values phase before the normal conversion processes occur and before the validations occur in the subsequent Process Validations phase. In contrast, virtual forms are much more straightforward, because they do not alter the JavaServer Faces lifecycle. For more information about virtual forms, see the Using Virtual Forms tutorial.

When a page visitor submits a page, the web application performs the input verifications in the following order:

1. Conversions

2. Required input

3. Validations

http://blogs.sun.com/divas/entry/about_a_page_s_lifecycle

http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/vir tual_form.html

http://developers.sun.com/prodtech/javatools/jscreator/reference/fi/2/event-lif e-cycle.html

jetsons at 2007-7-7 12:19:34 > top of Java-index,Development Tools,Java Tools...