Af:inputText is not shown when its corresponding value in the view Object i
Hello all,
I'm new to ADF and I need some help on this issue.
I've a dropdown field and series of text fields in my form. All these fields represents the corresponding ViewObject attributes. The values of text fields are dependent on the dropdown selection.
I've written a valueChangeListener which works fine.
The problem is, if the viewobject values (database values) for the corresponding text fields are null then the inputText disappears. But I wanted to show the inputText with emplty string. Any help on this issue pls.
Regards,
code in my jspx:
<af:selectOneChoice value="#{bindings.BannerTextView1PagegroupName.inputValue}"
label="#{bindings.BannerTextView1PagegroupName.label}"
binding="#{backing_BannerTextDorpDownUpdate.selectOneChoice1}"
id="selectOneChoice1" autoSubmit="false"
valuePassThru="true"
onchange="this.form.submit()" valueChangeListener="#{backing_BannerTextDorpDownUpdate.newItemCodeChanged}">
<f:selectItems value="#{bindings.BannerTextView1PagegroupName.items}"
binding="#{backing_BannerTextDorpDownUpdate.selectItems1}"
id="selectItems1"/>
</af:selectOneChoice>
<af:inputText value="#{bindings.BannerTextView1BottomHeadingLarge.inputValue}"
simple="true"
required="#{bindings.BannerTextView1BottomHeadingLarge.mandatory}"
columns="#{bindings.BannerTextView1BottomHeadingLarge.displayWidth}"
binding="#{backing_BannerTextDorpDownUpdate.inputText1}"
id="inputText1">
<af:validator binding="#{bindings.BannerTextView1BottomHeadingLarge.validator}"/>
</af:inputText>
valueChangeListner in my backing bean:
public void newItemCodeChanged(ValueChangeEvent valueChangeEvent) {
List vObject = (List)project1.backing.JSFUtils.resolveExpression(FacesContext.getCurrentInstance(),"#{bindings.BannerTextView1PagegroupName.items}");
System.out.println("JSFUtil test......"+vObject);
SelectItem vItem = (SelectItem)vObject.get(Integer.valueOf((String)valueChangeEvent.getNewValue()));
..... my business logic code
I've created association and view link for changing the values on dropdown selection. Its just the association of primary keys of the 2 tables which I use for the fields in the form.
Similar Messages
-
Af:table is not showing records until doing refresh of the view object iter
Hi Experts,
I am using JDeveloper 11.1.1.4 and i have a page whhich shows records of a particular read only view object as an af:table. When i run the page at first it is not showing any data at all . But there are 2 records when i run the query of that read only view object.In my page there is a link called "Refresh" which calls the "Execute" operation of the view iterator of my view object. When i click this link the table shows two records.Why the table does not show records once wehn the page is rendered?
Please help me.The following is the code that shows the panel collection in my page.
<af:panelCollection id="pc1" featuresOff="freeze, wrap"styleClass="NewStyle">
<f:facet name="secondaryToolbar">
<af:toolbar id="t1" styleClass="Secondary">
*<af:query id="qryId1" headerText="Search" disclosed="false"*
*value="#{bindings.salesInvoiceAuthorisationCriteriaWaitOnlyQuery.queryDescriptor}"*
*model="#{bindings.salesInvoiceAuthorisationCriteriaWaitOnlyQuery.queryModel}"*
*queryListener="#{criteria.processQueryForSalesInvoice}"*
*queryOperationListener="#{bindings.salesInvoiceAuthorisationCriteriaWaitOnlyQuery.processQueryOperation}"*
*displayMode="compact"*
*saveQueryMode="readOnly" maxColumns="2"*
*modeChangeVisible="false" styleClass="Minimal"*
*conjunctionReadOnly="true"*
*resultComponentId="::t2"/>*
</af:toolbar>
</f:facet>
<af:table value="#{bindings.salesInvoiceAuthorisation1.collectionModel}"
var="row"
rows="#{bindings.salesInvoiceAuthorisation1.rangeSize}"
emptyText="#{bindings.salesInvoiceAuthorisation1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.salesInvoiceAuthorisation1.rangeSize}"
rowBandingInterval="0"
filterModel="#{bindings.salesInvoiceAuthorisation1Query.queryDescriptor}"
queryListener="#{bindings.salesInvoiceAuthorisation1Query.processQuery}"
filterVisible="true" varStatus="vs"
selectedRowKeys="#{bindings.salesInvoiceAuthorisation1.collectionModel.selectedRow}"
selectionListener="#{bindings.salesInvoiceAuthorisation1.collectionModel.makeCurrent}"
rowSelection="none" id="t2"
columnStretching="column:accountNameColumn"
binding="#{processDocuments.invoiceTable}"
contentDelivery="immediate"
partialTriggers="::c111 selectToPost ::qryId1"
styleClass="newTableStyle" autoHeightRows="9">
<af:column filterable="false" sortable="false"
headerText="#{bindings.DocumentAuthorisationView1.hints.ToPost.label}"
id="c18" align="center"
styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
width="103">
<af:selectBooleanCheckbox id="selectToPost"
value="#{row.bindings.ToPost.inputValue}"
autoSubmit="true"/>
</af:column>
<af:column sortProperty="DocumentName" filterable="true"
sortable="true"
headerText="#{bindings.salesInvoiceAuthorisation1.hints.DocumentName.label}"
id="c11"
styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
width="107" filterFeatures="caseInsensitive">
<af:outputText value="#{row.DocumentName}" id="ot1"/>
</af:column>
<af:column sortProperty="ExternalReference" filterable="true"
sortable="true"
headerText="#{bindings.salesInvoiceAuthorisation1.hints.ExternalReference.label}"
id="c10"
styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
width="105" filterFeatures="caseInsensitive">
<af:outputText value="#{row.ExternalReference}" id="ot8"/>
</af:column>
<af:column sortProperty="DocumentCategory" filterable="true"
sortable="true"
headerText="#{bindings.salesInvoiceAuthorisation1.hints.DocumentCategory.label}"
id="c9"
styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
width="105" filterFeatures="caseInsensitive">
<af:outputText value="#{row.DocumentCategory}" id="ot11"/>
</af:column>
<af:column sortProperty="CrDr" filterable="true"
sortable="true"
headerText="#{bindings.salesInvoiceAuthorisation1.hints.CrDr.label}"
id="c4"
styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
width="52" align="right">
<af:outputText value="#{row.CrDr}" id="ot9">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.salesInvoiceAuthorisation1.hints.CrDr.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="BaseDate" filterable="true"
sortable="true"
headerText="#{bindings.salesInvoiceAuthorisation1.hints.BaseDate.label}"
id="c8"
styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}">
<f:facet name="filter">
<af:inputDate value="#{vs.filterCriteria.BaseDate}"
id="id1" contentStyle="text-transform:uppercase;">
<af:convertDateTime pattern="#{bindings.salesInvoiceAuthorisation1.hints.BaseDate.format}"/>
</af:inputDate>
</f:facet>
<af:inputDate value="#{row.BaseDate}" id="ot6" contentStyle="text-transform:uppercase;">
<af:convertDateTime pattern="#{bindings.salesInvoiceAuthorisation1.hints.BaseDate.format}"/>
</af:inputDate>
</af:column>
<af:column sortProperty="ExternalAccountCode"
filterable="true" sortable="true"
headerText="#{bindings.salesInvoiceAuthorisation1.hints.ExternalAccountCode.label}"
id="c6"
styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
filterFeatures="caseInsensitive" visible="false">
<af:outputText value="#{row.ExternalAccountCode}" id="ot3"/>
</af:column>
<af:column sortProperty="AccountName" filterable="true"
sortable="true"
headerText="#{bindings.salesInvoiceAuthorisation1.hints.AccountName.label}"
id="accountNameColumn"
styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
filterFeatures="caseInsensitive">
<af:outputText value="#{row.AccountName}" id="ot4"/>
</af:column>
</af:table>
</af:panelCollection>
Edited by: Priya on Nov 22, 2011 12:22 AM -
Pictures are not shown when saving to PDF. Cannot Preview Print Job.
Help! Pictures are not shown when saving to PDF. Cannot Preview Print Job.
I guess you need to fix it
Or if you would like some help provide some information - there are no mind reader supporting this forum and we can only work with the information you give us - right not that is "it does not work"
iPhoto has no "save to PDF" function - exactly what are you doing? and what exactly do you want to do?
LN -
JSP error page does not displayed on its own, includes in the original JSP
Problem Description: - Exceptions in a Condition cause pages to fail to render.
The actual issue is, the JSP error page does not displayed on its own, included in the original JSP Page when exception occurs.
Problem Cause: As per the JSP specification when jsp content reached the buffer size (default 8KB) the page being flushed (Part of condent displays). The default �autoFlush� value is true.
When the page buffer value is default size (8KB), and if any exception occurs after flushing the part of the content, instead of redirecting into error page, the error page content included in the original page.
If i specify autoFlush="false" and with default buffer size, at the runtime if the buffer size is reached, i am getting stackoverflow error.
To solve the above problem we can make it autoFlush=�false� and buffer=�100KB�. But we can�t predict the actual size of the page.
I found in one of the weblogic forum as no solution for this issue. Ref.
http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_clfydoc&answerpage=solution&page=wls/S-10309.htm
Please provide me any solution to resolve the problem.Error-Page tags work best with an error.html pages. If you have an error.jsp page what I would do, and I have, is wrap my classes and jsp pages in a try catch block where you forward to the error jsp page and display anything you want. YOu can also do this with if else statements. I have used the tomcat error pages before but when I've implemented them I used java.lang.Exception as the error to catch not Throwable. I don't know if this would make a difference or have anything to do with your problem.
-
Change the amount & its corresponding values in Billing conditions
HI,
i need solution for changes in amount & its corresponding values in Billing conditions . i have a contract & it hv a 3 line items . in 1st line item i hv sm condition value at the time of contract creation . but i want to change this condition value at the time of billing posting. its is possible thru manually but in my case sm calculations is done on the bases of 1st line item condition value & i want to change old condition values with the new one . is there sm one who knows any user exit to change this values .
regards ,
swarnim
Edited by: swarnim mayee richa gupta on Aug 18, 2010 12:30 PMcode in my jspx:
<af:selectOneChoice value="#{bindings.BannerTextView1PagegroupName.inputValue}"
label="#{bindings.BannerTextView1PagegroupName.label}"
binding="#{backing_BannerTextDorpDownUpdate.selectOneChoice1}"
id="selectOneChoice1" autoSubmit="false"
valuePassThru="true"
onchange="this.form.submit()" valueChangeListener="#{backing_BannerTextDorpDownUpdate.newItemCodeChanged}">
<f:selectItems value="#{bindings.BannerTextView1PagegroupName.items}"
binding="#{backing_BannerTextDorpDownUpdate.selectItems1}"
id="selectItems1"/>
</af:selectOneChoice>
<af:inputText value="#{bindings.BannerTextView1BottomHeadingLarge.inputValue}"
simple="true"
required="#{bindings.BannerTextView1BottomHeadingLarge.mandatory}"
columns="#{bindings.BannerTextView1BottomHeadingLarge.displayWidth}"
binding="#{backing_BannerTextDorpDownUpdate.inputText1}"
id="inputText1">
<af:validator binding="#{bindings.BannerTextView1BottomHeadingLarge.validator}"/>
</af:inputText>
valueChangeListner in my backing bean:
public void newItemCodeChanged(ValueChangeEvent valueChangeEvent) {
List vObject = (List)project1.backing.JSFUtils.resolveExpression(FacesContext.getCurrentInstance(),"#{bindings.BannerTextView1PagegroupName.items}");
System.out.println("JSFUtil test......"+vObject);
SelectItem vItem = (SelectItem)vObject.get(Integer.valueOf((String)valueChangeEvent.getNewValue()));
..... my business logic code
I've created association and view link for changing the values on dropdown selection. Its just the association of primary keys of the 2 tables which I use for the fields in the form. -
When its over 100% do the following actions
Hello,
We have a following script.
Purpose of this script is to received email notifications when FS /opt is over 90%.
PCT_USED=$(df -k /opt | tail -1 | awk '{print $4}' | sed 's/%//')
echo "Info:PCT_USED:[$PCT_USED]"
MY_THRESHOLD=90
if [ $PCT_USED -gt $MY_THRESHOLD ]; then
mail -s "/opt is Over 90% in TestNode 1" [email protected] < /home/oracle/FSwatch.log
mail -s "New Changes to the FS in Test Node 1" [email protected] < /home/oracle/NewFile.log
mail -s "Here are the Large files over 100MB from Test Node1" [email protected]
< /home/oracle/LargeFile.log
echo "Info:Sending Mail"
else
echo "Info: Usage [$PCT_USED] not greater than [$MY_THRESHOLD]"
fi
We get values from the cron job as below:
30 6,14,22 * * * ( date ; df -h / /opt /tmp /dev /bkup /var /usr /opt/oracle/clearcase_release /var/vobstore /wcmsrch) >> /home/Oracle/FSwatch.log 2>&1
45 6,14,22 * * * ( date ; find /opt -mtime -1 -ls ) >> /home/Oracle/NewFile.log 2>&1
50 6,14,22 * * * ( date ; find /opt -size +100000k ) >> /home/Oracle/LargeFile.log 2>&1
00 7,15,23 * * * /home/Oracle/callover90
Now I would like to add logic when its over 100% do the following actions.
1) send message to the users to contact system administrator
2) remove /opt/oracle/headdump/javacore (remove all javacore files)
How to add this logic?
DI have added following logic in our existing program to find FS size, new files, size over certain numbers:
mail -s "Action1:Please remove javacore files" [email protected]< /home/oracle/action1
mail -s "Action 2:Please contact System Administrator" [email protected]< /home/oracle/action2
# more action1
Please remove javacore files from /opt/oracle/AppServer/profiles/AppSrv01
#Here is the command to remove all javacore files from the System, cd to above p
ath and run the command as
# rm javacore*
#more action2
Please contact System Administrator for further assistance
Do u have any better thought?
D -
my ipad mini does not restart when i press and hold the home and power buttons for a minute or more. what do i do? i really need to access some information on it. please help.
You need to connect to iTunes and restore.
iOS: Not responding or does not turn on
You may need to put the device into recovery mode, this is covered in the link on this page.
Did you back up the device? -
What's wrong with my MacBook, it only works when its plugged in to the wall charger
my MacBook only works when its plugged in with the wall charger. What's wrong with it? it the problem fixable ?
Marina -
What Kappy said, or maybe your Battery charging cable is faulty, or something's happened to the input slot.
I'd take it to Apple and have them troubleshoot it for you. -
After a recent hard drive crash I needed to authorise my pc again. I first de-authorised all previous computers (there was no other option)
Then I authorised the pc with the new hard drive.
then I tried to sync
Then itunes tells me iphone cannot sync as pc not authorised.
when I try to authorise the pc, itunes tells me pc is already authorised...
I have been playing this game 10 times now ... "cannot sync because pc not authorised" and then "cannot authorise as already authorised"
what can i do?
thanksyes, a few times. the number of authorised computers decreases and increases from zero to one and vice versa accordingly. yet I am still being told that it cannot sync.
-
I have Cisco TelePresence SX10 and content sharing is not working when I am dialing through the bridge, I can share the content if I drag and drop from RMX, but if schedule the call in Resource manager or manually dial in from device the content is not going to other hand, I have tried to turn off encryption as well but still same issue. can you please help me out with this. I am from Lion co and purchased sx 10 recently.
regards
HemangCan you please provide us with a little more information on your systems and configuration / topology, such as, what call control are you using (Cisco VCS, CUCM, other?). what type of "Bridge" are you using (is this a Cisco MCU, or Cisco TelePresence Server, or other device?), what versions of the software are on each of the devices, etc. The more information we have about your environment will help us assist you better. But saying that, if all your core equipment isn't Cisco, you may have more luck in the forums for the manufacturer of such equipment (ie Polycom's Support Community).
Wayne
Please remember to rate responses and to mark your question as answered if appropriate. -
my sistem preferences are not working, when I try to change the photo of the desk It stop working, what can i do? I'm dieing cause I'm afraid
Have you tried resetting your device by pressing and holding the Home button and power button until the silver apple appears?
-
i've noticed a touch ID only works with my iPhone six is not plugged into the wall was soon as I plug it in it doesn't work anymore doesn't even register fingerprint.
Charger60 wrote:
i
Touch ID in my iPhone six does not work when it's plugged into the wall is anybody else having this problem?
No. You are the only one. The way I know is that I don't have the problem, therefore no one else can have it.
Seriously, no matter what problem you have, with a half billion iPhones in use, someone else will have the same or similar problem. So knowing that doesn't help solve it in the slightest. As it's new and still in warranty I would take it to an Apple store. Make a genius bar appointment first so you won't have a long wait. -
When I sync my iPod some of my purchases from iTunes transfer, but some do not. When I try to drag the songs onto the iPod icon it shows the 'crossed out' symbol and won't move them. I've tried synching from multiple computers that are all connected with home sharing but it still didn't do the trick.
Installing iTunes does not cause content to magically appear on the computer.
Your media is only where you put it.
iOS devices are not backup devices.
Copy the media from the old computer to the new computer. -
Anyone know why, firefox does not remember password for a site when you remove password from the view password site? I removed a password for a site that was not remembering the correct password for the "view password" window and now it does not guess the password and does not remember the password for that site. All other sites are being remembered.
== This happened ==
Every time Firefox opened
== After I deleted the password from the view password window.The saved password feature worked well, but the site I had saved the password for required that I change the password. I have found no way to update the password in Firefox. After I deleted the saved password, Firefox did not ask if I wanted the new password saved. When this happened before, I removed and re-installed Firefox, and then it worked. I hope there is another way to update a password.
-
All the properties are not displying for the View Object
i my one of the view Object it is only showing the properties
Values
Lable
Render values
I want to use text box (Input box )...but it is not showing in the property window
why it is not showing the all the properties for the that view Object.
Is it a read only view object ? if so then how to change itThis question is confusing.
You talk about properties, suggesting attribute properties are not showing up in the view object editor. Then you talk about a read-only view object, which suggests you talk about a running application?
Normally a view object is updatable when it is based on an entity object and when on the entity object tab of the view object editor (the page in which you select the entity object) the updatable checkbox has been checked.
But being updatable as such is not why attributes would not show up in a screen.
Can you be more specific, and also tell us what JDeveloper version you are working with?
Jan Kettenis
Maybe you are looking for
-
OBYC KDM, KDW, KDV and KDR operations
Hi, I have a problem with differenciating the following OBYC operations: - KDM - I think it should be used for GR/IR exchange rate differences / or is it used for Material Ledger Single level exchange rate differences - KDR - I think it s
-
Quick question re: screen capture
Everytime I do an apple-option-4 screen cap, I get a .png file. I'd really like the computer to be spitting out .jpg files, like my laptop at home. Can someone give me a clue?
-
Linking an object to copies of itself
Can an object be linked to copies of itself, such that changing the attributes of one object will change the attributes of all its copies at the same time? For example, if you have the same button on many slides in a project, it would be very desirab
-
Just recently I started encountering a "waiting for proxy tunnel" error in Chrome and Safari when trying to surf the web while having to use a network proxy. It seems this is some kind of malware but I cannot find how to delete it. Any help?
-
I Am trying to update my IPad to ISO 8.1.2 and it is asking for a pass code. Where do I get this pass code? My apple password does not work.