Menu
Date

August 2012

af:inputFile component

ADF By Aug 09, 2012 No Comments

<af:inputFile /> component is useful to browse and select file to upload. Hence, whenever we want to accept files from users, we can display this component on the JSF page. But to get the selected values from this component the “usesUpload” attribute of the form should be set to “true”, otherwise it returns null always. <af:form id=”f1″ usesUpload=”true”> <af:inputFile label=”Image…

Getting current record of data control from program

ADF By Aug 07, 2012 No Comments

By using the below code, we can get the current row from the data control. BindingContext bindingctx = BindingContext.getCurrent(); BindingContainer bindings = bindingctx.getCurrentBindingsEntry();  DCBindingContainer bindingsImpl = (DCBindingContainer)bindings;  DCIteratorBinding iter =  bindingsImpl.findIteratorBinding(<binding iterator>);  Row currentRow=iter.getCurrentRow(); Where <binding iterator> is the iterator name which data control is binded to the page and holds the data

Hi, Welcome here.
JOIN OUR NEWSLETTER
And get notified everytime we publish a new blog post.