Issue with Query Region with Table
All,
I have a Self Service Page , which has got a Query Region and an underlying Table.
For the table/ Table Actions Region , I am setting the View Instance and View Attribute Programatically
OATableBean myRequirementsBean =
(OATableBean)webBean.findChildRecursive("MyReqTable");
myRequirementsBean.setViewUsageName(voName);
OAExportBean exportButtonBean =
(OAExportBean)webBean.findChildRecursive("ExportButton");
exportButtonBean.setViewUsageName(voName);
OAWebBean ssWebBean = webBean.findIndexedChildRecursive("RadioSelect") ;
((OASingleSelectionBean)ssWebBean).setViewUsageName(voName);
((OASingleSelectionBean)ssWebBean).setViewAttributeName("RadioFlag");
Followed by prepareForRendering call on Table Bean.
myRequirementsBean.prepareForRendering(pageContext);
When I render the Page , I can not see the Table Selection and see the Rows in Table alone.But if I navigate to Personalize View Page and come back to parent Page , I can see the Table Action.
What could be the reason for this behavior? Please advise.
Thanks
Joseph George
what item does RadioSelect refer to ? is it a child of the table bean ?
Thanks
Tapash
Similar Messages
-
Issue with table ROOSPRMSF entries for data source 0FI_AP_4
Hi Experts,
I am facing with an issue where we found incosistencies with table ROOSPRMSF in R/3 system.
In BW , we have done initializations based on fiscal period selections (none of the selections overlap) for data source 0FI_AP_4.
We have done in total 7 initializations. So in BW system in table RSSDLINITSEL we have 7 initialization requests.
But in R/3 system we have 49 records for data source 0FI_AP_4 in ROOSPRMSF table out of which 42 are invalid records.
I suspect that these 42 invalid records are created due to the execution of program RSSM_OLTP_INIT_DELTA_UPDATE when the tables ROOSPRMSF are actually holding the 7 initialization request entries. Due to this each and every initialization request is linked to rest of the other intialization requests and ended with 49 records in table ROOSPRMSF table.
Now our data loads are running fine but daily a short dump is raised . In the daily loads, BW init records in RSSDLINITSEL are compared with ROOSPRMSF entries and all the other 42 records which are invalid are written into system log and a short dump is raised.
In order to fix these inconsistencies i checked for OSS note 852443. (Point 3 in OSS note)
But it is specified to delete the delta queue for data source 0FI_AP_4 in RSA7 and instructed to execute the program RSSM_OLTP_INIT_DELTA_UPDATE so that the ROOSPRMSF table will be reconstructed with valid records available in RSSDLINITSEL.
From OSS note 852443 point 3
"3. If the RSSDLINIT table in the BW system already contains entries, check the requests listed there in the RNR column in the monitor (transaction RSRQ). Compare these entries with the entries in the ROOSPRMSF and ROOSPRMSC tables with the INITRNR field. If, in the ROOSPRMSF and ROOSPRMSC tables for your DataSource source system combination, there are more entries with different INITRNR numbers, use transaction RSA7 in an OLTP source system to delete all entries and then use the RSSM_OLTP_INIT_DELTA_UPDATE report mentioned in the next section. For a DataMart source system, delete the entries that you cannot find in the RSSDLINIT table using the procedure described above."
My question is if we delete the delta queue in RSA7 then all the tables in R/3 (ROOSPRMSF, ROOSPRMSC, Time stamp table) and BW (RSSDLINITSEL, initialization requests will be deleted) will be cleared. Then how will the program RSSM_OLTP_INIT_DELTA_UPDATE copy entries into ROOSPRMSF table in R/3 ?
Could any one please clarify this ?
Thanks
Regards,
JeswanthHi Amarnath,
Did you unhide the new field in RSA6 and regenerated the DataSource?
Often SAP will populate newly added fields (belonging to the same (set) of table(s) used for extraction) automatically (e.g. SAP uses 'move-corresponding' in it's extractor-code, or, in this case, reading all fields from the DD, FM BWFIU_TRANSFORM_FIELDLIST).
If the DataSource looks fine to you and the field is still not populated in RSA3 you can't go without a user-exit.
Grtx,
Marco -
Hi People,
I am facing an issue with a table which is acting up in the Infoview.
In my Dashboard I have a table, when i run the dashboard using the Xcelsius the table is ok,
but when i export it and run through the infoview, the table gets bigger than should be.
Does anyone know how to solve this issue ? Is it something that i have missed to configure
in the Xcelsius or something like that ?
Best Regards,
Jordan
Edited by: Jordan Silva on Sep 15, 2010 2:54 PMI have done Quiet a dashboard's but never faced this issue before...I problem i used to get is During image component ,if dont not resize that it will be bigger than the orginal
I.g Click on image component and If First Check box is not checked image will be bigger.
Never faced this with tables... -
Issue with tables :( Plz Help!
Hey all!
Never posted before on this forum and pretty new with
dreamweaver. So I'm having the strangest issue with dreamweaver
tables. I bought a template that I'm modifying by my self which
isnt all that hard haha. But Here's what I ran into. Whenever I put
one table and then another one under it and another one under it
and I insert txt or pics in there and save it, after I upload it
and preview it, I can only see the info from the first table.
Everything else under it, wont show up.
So no matter where and on what page I do it from that
template, if I put more than 1 table down, it'll only show the info
from the first and top table and everything else in other tables
under it, wont show up at all (after I upload it) even thou it
looks good on dreamweaver itself :(
Is there an option to enable or disable something? Plz help,
thank you all!"Unknown7" <[email protected]> wrote:
> So no matter where and on what page I do it from that
template, if I put more
>than 1 table down, it'll only show the info from the
first and top table and
>everything else in other tables under it, wont show up at
all :(
>
> Is there an option to enable or disable something? Plz
help, thank you all!
The bad news is that if you want to do anything remotely
complicated with
Dreamweaver you will have to learn a fair amount about HTML.
I would virtually
guarantee that when you put your new table in something is
going wrong so that
one or other table is not being defined correctly.
As you are modifying someone else's template there is
virtually no way to find
out what is happening other than to examine the HTML. It is
unlikely that
fiddling with any Dreamweaver settings will make any
difference.
Every table should start with something like:
<table width="100%" border="0" cellspacing="0"
cellpadding="5"
bgcolor="#e0e0ff">
<tr align="center" valign="middle">
<td width="9%"><a href="#Bottom">
and end with:
</td>
</tr>
</table>
You can have more or less as many columns as you like in a
table, (<td> ...
</td>
And more or less as many rows ( <tr><td> ...
</td></tr>) as you like, but
unless you get up to special tricks you should have the same
number of columns
in every row. You can put anything you like -- images, more
tables, whatever --
inside a cell e.g.:
<td> image, blah, table </td>,
but you mustn't put any content anywhere else, and every
opening definition
(<table>, <tr>, <td> must have a matching
closing definition in the correct
order.
You can nest tables more or less indefinitely, but
Dreamweaver Design View
sometimes blows its top if you go more than three deep.
HTML usually doesn't produce any error messages, but the
effect of omitting any
of the steps in building a page is quite unpredictable.
Sometimes a major error
will not produce any visible effect, but on other occasions a
minor error will
send the page completely haywire.
You may care to have a look at:
http://www.corybas.com/Technical/Wrapping.htm
This has a series of demonstration pages illustrating what
happens when you try
to display increasingly complicated page layouts on narrow
screens.
Once you have learnt to interpret HTML, you can often learn a
lot by inspecting
the source code for the page (in IE click view, then Source).
This works with
anybody's page, so you can look at the source code for my
pages if you wish.
Clancy -
Strange issue with table control in dialog programming! Please help!
Hello everyone:
I have a table control on screen painter and I have atleast 10 rows on display when user calls the screen. If I have 15 columns then ofcourse user has to scroll down to see extra rows. I have line selection set to "single" for table control so that user can select only one row at a time. This works fine when user does not have to scroll to see extra rows. It is tough for me to explain i.e., if the table control displays 10 rows when the screen opens up then they can only select single row at a time (rows 1 -10). For example user selected row 7 and now they scroll down to see extra rows (for example 13) then it lets them select row 13 also even though I set line selection to "single" in the properties for table control! They should be able to select only one row at a time. Is this some limitation with table control in SAP? Please give me any information you have.
Thanks.
MithunHi,
As you suspected, this is a limitation in the table control. You need to take care of the single-selection functionality yourself except for the rows that are actually being displayed. See [Note 588284|https://service.sap.com/sap/support/notes/588284] for the official SAP explanation.
Regards,
Jamie -
Issue with table selection in popup window in oaf
Hi ALL,
I have a popup seach window in that i am displaying search data in table region below, from that i need to select the number of rows and clicking on a button the same selected rows should display in another page.
i tried with using RowSetIterator but not able to achive this , please help me out on this.
ThnaksCan anyone please help me on this
Thnaks -
Issue with table selection and display the seleted rows in another page as a table data
Dear ALL,
I have a requirement as below:
I have a custom OAF page having one button, on pressing the button it will open a popup window, in that i am doing search operation and data would populate in table region below.
Then from the table i am doing multiple selection of rows and i have a button, on pressing the button the seleted rows should display in the base page where i called this popup window and popup window should close.
so i am able to perform multiple selection of row from the table but how i can display the seleted rows in my base page and how i can close the poup window after the seleted rows displayed in the base page, please help me on this.
Thanks
DebHi,
For navigation data from one page to another you can use a hashmap that contains the parameters.
// processFormRequest()
HashMap hsp = new HashMap(1);
hsp.put("myParam", "myParamVal");
pagecontext.setForwardURL("MY_FUNCTION", (byte)0, null, hsp,true, "N", (byte)0);
You can then retrieve this parameter in processRequest() via:
pagecontext.getParameter("myParam")
//Code for redirect to base page with commit
Refer to the setPostToCallingPage method, from OADialogPage Class how to make the dialog page action buttons submit back to the calling page. In the example, the OK button commits the changes on the dialog page and the NO button rolls back the changes.
OADialogPage dialogPage = new OADialogPage(OAException.*, mainMessage, null, "", "");
dialogPage.setOkButtonItemName("okButton");
dialogPage.setOkButtonToPost(true);
dialogPage.setNoButtonToPost(true);
dialogPage.setPostToCallingPage(true);
dialogPage.setOkButtonLabel(yes);
dialogPage.setNoButtonLabel(no);
Thanks,
Dilip -
Issues with table filter during navigation between task-flows
Hello everyone,
I'm looking for a workaround to resolve two issues about the table filter. They are:
1) If I type something in a filter and I change tha page (in a different task flow) when I return on the first page there is the previous search plus the string "%*". Here the video example: http://screencast.com/t/FbVenZGm
2) In the same scenario, if I click enter on this filter the system returns this message error: "Attempt to set a parameter name that does not occur in the SQL: vc_temp_1 ". Here the video example: http://screencast.com/t/yMs6rNDF
I have found something interesting in this thread: task-flow table filtering behaviour related to bug 8602867
Anyway, I have implemented the solution reported in this document: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/april2012-otn-harvest-1609383.pdf (pp. 8-11). This solution works fine with my master table, but it doesn't with the detail table.
Have you any idea for this kind of behavior?
Thanks in advance,
BaduelSudipto,
each table has a binding on a page fragment in this way:
<af:table [...] binding="#{backingBeanScope.MyBackingBean.masterTable}">
<af:table [...] binding="#{backingBeanScope.MyBackingBean.detailTable}">
In the pageDef I have two methods, each one of the VOImpl class related to the table:
<methodAction IterBinding="MasterTableVO1Iterator"
id="clearOutstandingImplicitViewCriteriaMaster"
RequiresUpdateModel="true" Action="invokeMethod"
MethodName="clearOutstandingImplicitViewCriteria"
IsViewObjectMethod="true" DataControl="MyDataControl"
InstanceName="MyDataControl.MasterTableVO1"/>
<methodAction IterBinding="DetailTableVO2Iterator"
id="clearOutstandingImplicitViewCriteriaDetail"
RequiresUpdateModel="true" Action="invokeMethod"
MethodName="clearOutstandingImplicitViewCriteria"
IsViewObjectMethod="true" DataControl="MyDataControl"
InstanceName="MyDataControl.DetailTableVO1"/>
MyBackingBean class:
public class MyBackingBean {
private RichTable masterTable;
private RichTable detailTable;
/*getter methods here*/
public void setMasterTable(RichTable masterTable) {
this.masterTable = masterTable;
resetTableFilter(1);
public void setDetailTable(RichTable detailTable) {
this.detailTable = detailTable;
resetTableFilter(2);
/*This method returns the phase id */
private String printCurrenPhaseID() {
FacesContext fctx = FacesContext.getCurrentInstance();
Map requestMap = fctx.getExternalContext().getRequestMap();
PhaseId currentPhase=(PhaseId)requestMap.get("oracle.adfinternal.view.faces.lifecycle.CURRENT_PHASE_ID");
// System.out.println("currentPhase = "+currentPhase);
return currentPhase.toString();
public void resetTableFilter(int tab) {
String phase = printCurrenPhaseID();
FilterableQueryDescriptor queryDescriptor;
if(phase.startsWith("RENDER_RESPONSE")) { // Only in this phase the binding is ready
switch(tab) {
case 1:
queryDescriptor = (FilterableQueryDescriptor) getMasterTable().getFilterModel();
if (queryDescriptor != null && queryDescriptor.getFilterCriteria() != null) {
queryDescriptor.getFilterCriteria().clear();
// PPR refresh a jsf component
AdfFacesContext.getCurrentInstance().addPartialTarget(getMasterTable());
break;
case 2:
queryDescriptor = (FilterableQueryDescriptor) getDetailTable().getFilterModel();
if (queryDescriptor != null && queryDescriptor.getFilterCriteria() != null) {
queryDescriptor.getFilterCriteria().clear();
// PPR refresh a jsf component
AdfFacesContext.getCurrentInstance().addPartialTarget(getDetailTable());
break;
default: return;
invokeClearViewCriteria(tab);
public BindingContainer getBindings() {
return BindingContext.getCurrent().getCurrentBindingsEntry();
/* This method invokes the exposed method in my fragment */
public void invokeClearViewCriteria(int tab) {
BindingContainer bindings = getBindings();
OperationBinding operationBinding;
if(tab == 1)
operationBinding = bindings.getOperationBinding("clearOutstandingImplicitViewCriteriaMaster");
else if(tab == 2)
operationBinding = bindings.getOperationBinding("clearOutstandingImplicitViewCriteriaDetail");
else
return;
if(operationBinding != null) {
operationBinding.execute();
Finally I have two identical exposed methods in the VOImpl classes of the tables:
public void clearOutstandingImplicitViewCriteria() {
// we only want to remove the stuff that was added though the table
//filter (or a default search form)
// "__ImplicitViewCriteria__" is the magic name for this VC
ViewCriteria vcDefault = this.getViewCriteria(ViewCriteriaManager.IMPLICIT_VIEW_CRITERIA_NAME);
if (vcDefault != null) {
//Clear the stored values
vcDefault.clear();
//And refresh the collection
this.executeQuery();
Please note that this workaround works fine with my master table, but i does not with the detail table.
Thanks again.
Baduel -
Fade Effect Issue with table structure
I have an existing HTML page with a table framework that uses
CSS divs in some of the table rows. My SPRY data is currently
wrapped in DIV tags within the table. I've discovered that the
table is screwing up the fade effect in IE7. Is there any way I can
get around this without removing the table and recoding the whole
page in CSS? FYI...I using version 1.4. I'm not sure if 1.5 will
fix this issue.Essentially the fade in fade out effect isn't working at all
in IE. It's setup as a slideshow and uses the fade effect as a
transition between the spry data. The slideshow works fine just
without the fade effect. Everything works perfectly in Firefox
though. I know this code will work as we have used it before, the
only thing different is that I have my DIV with the SPRY content
wrapped within a table cell and row. I've read that the TR tag
cannot be used, but it's not exactly using the TR as an ID. Once I
comment out the table, tr, and td tags, the effect works no problem
so I know it is the table. I can't give you the URL because it's on
our local network. -
SQLServer to oracle migration. Issue with table having image data.
Hi,
I am using the SQL Developer version 1.5.0.53 Build MAIN-53.38. I am trying to migrate from sql server database to oracle. Sql server database version is 2005 and oracle database version is 10g (10.1.0.2 and 10.2.0.3). Both Oracle and Sql server databases are on windows-xp.
Everything (including data) migrated well except for the one table having blob (oracle) and image(sqlserver). I am getting the following error in sql developer while migrating data for the blob from sql server to oracle.
Data Move information:Rows : 497 Errors: 10278
Commit failed: Closed Connection
Must be logged on to server
[POCRepository].[td].[REPOSITORY] Closed Connection
Io exception: Software caused connection abort: socket write error
[POCRepository].[td].[REPOSITORY] OALL8 is in an inconsistent state
No more data to read from socket
[POCRepository].[td].[REPOSITORY] No more data to read from socket
Inserting ' ' into column td_POCRepository.REPOSITORY.RP_DATA (Row number 498)
I have created sqldeveloper.cmd file as suggested in other threads and I am using the same java provided with SQL Developer 1.5.0.53.
The database alertsid.log shows the following error messages for this activity.
ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [0x34EF9E5] [] [] [] []
ORA-00600: internal error code, arguments: [kghasp1], [0x5F3B718], [], [], [], [], [], []
ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [0x34EF9E5] [] [] [] []
The error ORA-00600[kghasp1] refers to the problem with heap memory. I also restarted the database and tried the data migration for only this table but with the same error.
I tried it on both 10g release1 and 10g release 2.
Can someone please help me in resolving this issue.
Thanks
RaghavendraHi Raghavendra,
Are you saying the Microsoft SQL Server bcp dump of image data failed? It has been tested, it results in a hex dump rather than a binary dump, hence the clob to blob, and hextoraw workaround.
What are the version numbers and what is the reproducible test case?
-Turloch
Note that the clob to blob process is automated:
Tools->preferences->Migration->Generation Options->General Options->Generate Stored Procedure for Migrate Blobs Offline
From Help:
Generate Stored Procedure for Migrate Blobs Offline: Causes a stored procedure named CLOBtoBLOB_sqldeveloper (with execute access granted to public) to be created if the schema contains a BLOB (binary large object); this procedure is automatically called if you perform an offline capture. If this option is not checked, you will need to use the manual workaround described in Populating the Destination Database Using the Data Files. (After the offline capture, you can delete the CLOBtoBLOB_sqldeveloper procedure or remove execute access from public.) -
ADF Popup issue with table row not selected
OK, imagine this scenario. There is a page displaying a table of employees, and when you click on the employee_id (which is shown as URL), which is one of the columns of the table, a popup displays, showing the details of that particular employee.
Now in the properties of the employee table, we unchecked the row selection property. Now how will I be able to achieve the same thing?
I dragged the setCurrentRowWithKeyValue operation on employee_id column, changed the bindings of the TEXT property, added a popup behaviour, but still the popup displays the first row which is fetched in the table.
Where am I missing, or is there any other way to achieve the same thing?
JDev version: 11.1.2.2.0
Edited by: Sonal on Oct 11, 2012 3:11 AMI did an exercise where I created one page which was displaying all the employees, and once you click on employee_id (which is shown as URL), a 2nd page opens displaying the details of the employees.
Now in the above exercise, ROW SELECTION was disabled, for which I had to use this setCurrentRowWithKeyValue operation and then set the NDValue with the binding of the employee ID. So whenever I used to click on the employee_id, the page was taking to me the form, which was displaying exactly the same employee details.
Now this thing should work with the popup thing too, right? So I disabled the ROW SELECTION -
Hi All, Hope you are all well.
Strange issue here:
We have a Custom ABAP program that reads from mainly Table EKKO.
On My QAS system the program works 100%, when i do a SQL Trace (ST05) i can see in the execution plan that it is using the correct index on the Date field.
On MY Production system the very same program just runs and runs and eventually times out, in the sql Trace the execution plan shows that the index is not being used thus the long run time.
Here is the Catch: the ABAP people have looked at the program intensely and have found no problems, my QAS system is a copy of Pruduction (Syetem copy). Program runs no problem on QAS but times out on Production.
It seems that on Production the Program is not using the Index to search the table.
Please help
Regards
Andre>Yes i have checked the table and all indexes are active, i even reactivated the indexes on Production
Ok.
>If i Query the table directly SE16 using the same fields as in the ABAP it returns the results no problem.
Ok.
>The program does have joins onto other tables.
And you checked this via SE16? Don't think so...
>I am going to do a update stat after hours tonight and will see if that helps.
Yep - good idea. I'd bet that your statement will take the index as soon as the statistics for all involved tables have been collected.
>How can i verify that all relationships to other tables are operational.
?? What is that supposed to mean?
Have you ever seen any foreign key constraints in SAP databases?
Would they even make sense there?
NO!
So which "relationships" do you think could be "non-operational" ???
regards,
Lars -
Blacks Dots at top of webpage and formating issue with table
I have a basic page with a table layout, spry horizontal menu, spry accordion menu and a bit of Jquery mixed in for the content.
In Safari and Chrome two black dots appear at the top of the page. I'm not sure where these are coming from. Thoughts?
In Firefox and IE the two dots do not apprear.
Also the spry horizontal menu bar is spupposed to be closer to the "logo" image at the top of the page. Every browser adds space between that image and the spry menu bar.
Here's a link to the test site.
http://www.treehousearch.com/TH-test/Boxwood.html
I'm using CS4.
On Win7 64bit.
thanks in advanceThe dots are as a result of <li> class="links" id="projects"> (see below). Are they supposed to be there and whats happened to the <ul> tags which should surround them?
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a class="MenuBarItemSubmenu" href="#">PORTFOLIO</a>
<ul>
<li><a href="#">ARCHITECTURE</a></li>
<li><a href="#">LANDSCAPE ARCHITECTURE</a></li>
</ul>
</li>
<li><a href="#">ABOUT US</a></li>
<li><a href="#">CONTACT US</a></li>
</ul></td>
LOOK HERE >>>>>>>>>>>>>
<li class="links" id="projects">
<li></li><td width="1" height="20"></li>
To get rid of the dots add the below css to your css stylesheet.
#projects {
list-style: none;
As Snake has pointed out the code is corrupt anyway - you have stray <td> tag in the middle of the <li> tags so you need to clean that section of your code up a bit. -
Hi all,
I have seen some examples with thables, i'm trying to make some of them but i dont get the expected result.
I have 5 seasons, WHITE, RED, SPECIAL, ELITE, ELITE minus, and those are different, WHITE is from week 22 to 22, 35 & 38, RED is from week 1 to 50 and so on, i want to evaluate if the user enter a week number, to return the type of season and made this table
Semana = number
Temporada VF de reservación correspondiente al contrato = number
WHITE; RED ... = NUMBER
Semana = Temporada VF de reservación correspondiente al contrato
Temporada QQ de reservación correspondiente al contrato
WHITE semana >= 21 y
semana <= 25
RED Semana >= 1 y
Semana <= 50
SPECIAL Semana >= 1 y
Semana <= 52
ELITE Semana >= 1 y
Semana <= 52
ELITE MINUS Semana >= 1 y
Semana <= 51
0 otherwise
but when i deploy the application, it asks the number of week twice, so how can i fix it?
Regards,
CésarInstead of getting WHITE, RED ... as a variable, instead i used them as a constant, and then validate the table result (with a 0) if the result is not a 0, the the season is WHITE or RED depending the week value.Sounds like you might be making the rules more complicated than they need to be?
Got another question, how can you print the rules file with the exact format of the conclusions, premises, etc, because if i try to print this doc file, some content disappears.Some of the rule content disappears when you print a Word doc? Like the some of the conclusion lines or premise lines? Hmm. That sounds strange. I haven't seen that before. Rule docs print okay for me. What if you PDF the rule doc and then print it? -
Lifecycle issue with table binding + read-only attributes: ADF BUG
Hello all,
I have found what I believe to be an easily reproducible bug in ADF that reproduces in 10.1.3.x, but not in 11g (at least not in drop 6). The best way to describe the bug would be to walk through a simple set of steps to reproduce the bug:
1). Create a new application (ADF BC + ADF Faces).
2). In the model project, create a new Entity Object from the Employee table in the default HR schema. Allow JDev to create an updatable view object and an AM as well.
3). Put a validation rule on the first name attribute of the EO (can be anything, really - I made mine so that the first name cannot be "foo").
4). Test everything using the BC tester if you like.
5). In the UI project, create a new JSPX page.
6). Drag the updatable VO on to your page as an updatable af:table.
7). Put an af:commandButton on the page. Bind its Action or ActionListener to a method in a new backing bean. Put some simple code (I used System.out.println) in the backing bean method.
8). Run the jspx page.
9). Put some invalid data in (e.g. "foo" in the first name field) and click the af:commandButton. Verify that you get an error message and that the Action/ActionListener method DOES NOT fire. So far, so good.
10). Now, to demonstrate the problem. First, look at the page definition for the jspx file. Identify the first attribute that is mentioned (in my case, it was the employee id).
11). Go to the updatable view object and make the attribute from #10 read-only or updatable when new only.
12. Now, repeat step 9 - you should see the error message AND also see that the Action/ActionListener method was executed. You will also see in the messages window that ADF attempted to set the value of the read-only attribute, and thus got a ReadOnlyAttrException.
This issue only happens if the first attribute mentioned in the table binding is read-only. A workaround would simply be to re-order the attributes in the table binding of the pagedef so that the first attribute isn't read-only.
Don't ask how I figured this out ;)
Best,
JohnHi Frank,
Yes, I simply scripted it out this way to contrast the behaviour if the first attribute was read-only vs not read-only. I found the issue on a page in our app that was simply drag-and-drop the VO from the data control on the page.
It's quite annoying, because our particular use case that hit this error is a "save" button on the page. If the commit operation doesn't return any errors (and it doesn't in this use case!), we add a JSF message saying "save successful" - then the attribute errors are further added later in the page lifecycle, so we get 3 messages: "Save successful" and "Fix this error" and "Tried to set read-only attribute" - quite confusing to the end-user when the only message they should see is "fix this error."
At any rate, the fix is to simply re-order the attributes in the page definition - that doesn't affect the UI at all, other than to fix this issue.
John -
I wonder if anyone can help me - I'm trying to migrate our java product from JDK 1.3 to 1.5. Everything works fine except the focus models have changed (FYI the product runs mainly on Windows).
The most thorny problem is that a table component (we use a KLGroup JClass table version 1.3, which is Swing based, and the cell editor is also a Swing component), which gains keyboard focus quite happily in 1.3 when you click in it, now requires two mouse clicks to gain focus.
I was also able in 1.3 to press tab and move from one cell to another, and keyboard focus would be retained, but in 1.4 and 1.5 it no longer does this.
Can anyone give me any pointers as to where to start looking? Is there just some new focusHandling property which I need to set to true rather than false?
Any ways forward would be greatly appreciated.
ThanksHas anyone found a solution to this issue?
Maybe you are looking for
-
Upgrading 1st generation iPod to install apps
I want to upgrade my 1st generation iPod touch from 1.1.5 so that I can install apps. I purchased and tried downloading 3.1.1 but ran into this 8288 error that other people seem to be getting: https://discussions.apple.com/thread/3373167?start=0&tsta
-
Make mandatory fields(means check space or not) in me51n
hi, i have requirement to make field mandatory under tab 'taxt' in me51n ...means can't be blank...when i enter or save without input that field,error will come......
-
I've had mine for a couple of days. Today, after sending a text message it turned off but I was unable to turn it back on. I had to call it for it to turn on. After I called it, I locked it. Then was unable to get to home screen so I called it again.
-
Can I create a separate list of recipients to send a text message to say 15 people rather than having to go to my phone list and click on 15 individuals? Is is possible to create different message lists? Thanks
-
I know how to tell Automator to get a web page but how do I take advantage of the Reader feature in Safari 5 and have articles in web pages sent to me via email. Then have have it do it on a schedule. I really like the Reader feature since it gets ri