Why my Virtual Form doesnt work

Hi Guys,

I tested and folllow a sample Virtual Form in the tutorial and it works okay

Now here it goes my own Scenario

1. i have few text field at the top of my Page. ( outside table component )

2. i have a table component which bound to provider and most of the column is a textfield.

3. i configure the virtual Form for point number 1 separatelty and using a button as a submitter

4. i configure the virtual form for all the text field in the Table and use a Save button in the table itself as a submitter.

But when i click on Save Button which located inside my table.

All the Required field Exception occurs and get displayed for the text field outside my table which it supposed not to show since they are in diffrerent virtual form.

How do i solve this?

Any idea or what might cause this?

By the way all my component is under PropertySheet

Thanks

[941 byte] By [just_a_kid83] at [2007-11-26 10:06:09]
# 1

Here my JSP Code looks like

<ui:form binding="#{orm1}" id="form1" virtualFormsConfig="Create | | div:propshtmain:propsect:propCreate:btnCreateInvoice">

<div class="" style="left: 0px; top: 0px; position: absolute; z-index: 0">

<jsp:directive.include file="/header.jspf"/>

</div>

<div style="left: 0px; top: 96px; position: absolute; z-index: 1">

<ui:alert binding="#{Page1.alAccess}" id="alAccess"/>

<ui:propertySheet binding="#{Page1.propshtmain}" id="propshtmain" style="left: 0px; top: 80px; position: absolute">

<ui:propertySheetSection binding="#{Page1.propsect}" id="propsect" label="#{lblbundle.preparegeneralinvoice}">

<ui:property binding="#{Page1.propMessageHeader}" id="propMessageHeader">

<ui:alert binding="#{Page1alertPage}" id="alertPage"/>

</ui:property>

..........

As you notice

i have two div under form

the first div is to import the PageFragment

the second one is for my body content

Quote from the article

Virtual Forms and Page Fragments

In the current release of the Java Studio Creator 2 IDE, there is no support

for virtual forms within page fragments. To configure selective processing on

components in a page fragment, it is necessary to set the immediate

property to true on those components. This solution is sufficient to cover a

number of uses cases; however, it is still limited insofar as it can only

configure selective processing on one group of components.

That article means if i have a virtual form inside the jspf page itself right

I Created the Button and configue virtual form for that button itself as a submmitter wihout any other participants

But still , when i clicked on that button , it will validates other field.

I was wondering why this is happen. as that button involves no participants.

just_a_kid83 at 2007-7-7 1:44:15 > top of Java-index,Development Tools,Java Tools...
# 2

any clue regarding this?

has anybody encounter where virtual form doesnt' work as expected.

It supposed to be easy but i really have no idea why when i group a single button that act as SUBMITTER and requires no participants it still validates other input components and give me a Message Exception.

Thanks.

just_a_kid83 at 2007-7-7 1:44:15 > top of Java-index,Development Tools,Java Tools...