Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to submit empty string or null value for <af:inputText> in the form

854299Apr 27 2011 — edited Apr 27 2011
Hi,

I am using 11g.

I have a form wherein somefields are not manadatory and it can be submitted null, how can I achieve this?
Here is the code I am using. I tried it with and without value="" . Didn't work.

Error I get on submit:
java.lang.NullPointerException
ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #1
JSP:
<af:inputText label="Order Source" id="it35"
                                        value=""
                                        binding="#{pageFlowScope.invoiceTableManagedBean.orderSource}"/> 
Bean:
     private RichInputText orderSource;

    public void setOrderSource(RichInputText orderSource) {
        this.orderSource = orderSource;
        //this.orderSource = orderSource;
    }

    public RichInputText getOrderSource() {
        return orderSource;
    }
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 25 2011
Added on Apr 27 2011
14 comments
684 views