Again need indexed property
Hi,
I have in a jsp this nested...
<nested:nest property="myList[0]">
<nested:nest property="param[0]">
<nested:text property="name">
</nested:nest>
</nested:nest>
The problem is what struts invoke method getList() and not getList(int index), i have need what invoke getList(int index) because the list have to grow dinamically.
any suggest???
Im finding on web but now nothing solution.
HELP!
Similar Messages
-
Indexed property - editor needed?
Folks,
I have a bean (MyBean) with a indexed property (array of class type ClassX). It has setter and getters (total of 4) according to Java Beans specification.
On Netbeans, the indexed property appears on Properties list. But, I can�t add itens to it, like it occurs when the property is not indexed or is a String indexed property. I think I should assign an 'editor' to it.
Does anybody knows how to do this?
The idea is: the ClassX is a JComponent and the Frame has some of them (10, for example). This indexed property from MyBean should allow users to add as many as they want, but limited to those already added to the Frame. They could add, for example, 4 of 10 to the array.
Thanks!Did you try selecting portal components like books, pages, portlets. I have seen this problem too. But it would go away when you restart workshop.
--SJ -
System generated index property not generated in database
Hi,
I created an offline table by copying it from an (first) online database to my project. The table contains a unique key constraint, which references a system generated index. Now I used this offline table to generate a table in another (second) online database. This all works well except, that the "System Generated" property of the index is "false" and not "true" as in the offline table (and the first online database). When I manually reconcile the same table to the second online database again, there is always a difference shown for this index property. When I try to continue the reconcile process to change this property I get an error message, that the index cannot be dropped because it is obviousely referenced by the unique constraint.
When I drop the constraint and try to generate the index only I get the following warning message:
Jan 11, 2012 2:08:59 PM oracle.javatools.db.property.AbstractPropertyManager processDiffs
WARNING: Unsupported property: systemGenerated
Is there a way to work around this annoying behavour? Is it possible to change this index property by an ALTER INDEX statement?
Im using JDeveloper 11.1.2.1.0 (Build JDEVADF_11.1.2.1.0_GENERIC_110907.2314.6081)
Thanks for help and hints
Thomas
Edited by: thmayr on 11.01.2012 05:08Hi,
it might be due to some BUG in RDBMS...
First Check the Secondary index in TEST system
Look at the Transport Number in DEV system, If this is having error, then it will show you the error details also,
If that not moved Properly then you need to create another request for the INDEX and move it again
See the threads with similar problem...
Warning: Index does not exist in database system MSSQL
Index does not exist in database system ORACLE??????
Re creation of database index
Hope it will solve your problem...
<b>Reward Points if useful</b>
Thanks & Regards
ilesh 24x7 -
How to Remove svn:needs-lock property in subversion
Hi All:
I am having problems with subversion and JDeveloper. We were using TortoiseSVN in 10g, and I am trying to exclusively use JDeveloper svn in 11g (11.1.1.4). We have a common business components .jar file that defines all our entities and allows everyone to use these entities already defined.. After losing a bunch of entities through a mistaken delete, we put the svn:needs-lock property on all the entity definitions of this .jar file. The problem appears to be that JDeveloper svn does not lock the assoc.xml file even when I lock the upper levels, which prevents me from changing names and organizing by function our associations. This leads to question #1, is this a known issue? The assoc.xml file is not visable through JDeveloper 11.1.1.4, so I cannot manually lock it.
So I am wanting to remove the property svn:needs-lock from the entities so that I can use JDeveloper svn since we have discovered that there is a problem using JDeveloper svn with TortoiseSVN. Files seem to become corrupt. This leads to question#2, Does anyone know how to remove the svn:needs-lock property using JDeveloper snv?
When I display the properties, there is no remove functionality, just "delete". When I click on delete, I am asked if I want to delete the ENTITY and all its files. That is not what I want to do. I know how to delete svn:needs-lock in TortoiseSVN, but hoped to do it in JDeveloper. Is there a way, or is this functionality missing from JDeveloper SVN?
Mary
UofWHi:
Thank you for your response...after using both TortoiseSVN and JDeveloper svn, I have found that neither one handles locking properly. Even though the functionality is in both, there are a variety of problems that I have run across that have wasted an awful lot of my time. It really shouldn't take an entire day to commit something to a repository, but that is what I have found to be the case because of all the problems I am running into. Perhaps now that I have removed the locking, things will be simpler. And I did use TortoiseSVN to remove the svn:needs-lock property from the files.
I prefer to use JDeveloper svn since the tool integration with svn has worked better for us with the automatic filtering, etc.
I was hoping to get a response from one of the JDeveloper 'aces' as to whether it is a known problem that the assoc.xml file doesn't get locked and cannot get locked manually in JDeveloper svn AND is someone at JDeveloper aware that there appears to be no way to remove svn properties after they are added on a file....
....Any aces out there reading this forum?
Mary
UofW -
i have 20 Text fileds in my form and this may vary when the database data is changed
so i want to use index property to that.
how can i achive in the staruts
i have declared in struts-config.xml as my property
<form-property name="captionId" type="java.lang.String[]"/>
but i dont know how to implement this
please helpHi konkodi221,
Hi had a similar problem where i was populating my form from a database and updating the form contents back to the database.I solved the problem using Dynamic action forms in Sturts.
Here is the link :
http://javaboutique.internet.com/tutorials/strutsform/index.html -
Help with array / indexed property
Hi,
I am trying to save the value of multiple dropdowns in the Session Bean. Therefore, I created an index property "rule" in the Bean.
Each time the page is loadad, a different dropdown appears depending on the previous choices. If the ok button is clicked, the action is performed to save the current dropdown value in the index property:
public String button1_action() {
int cnt = 1;
// if page was loaded before, replace count
if (getAdminBean().getCount() > 0) {
cnt = getAdminBean().getCount() +1;
} else {
// save current count in Session
getAdminBean().setCount(cnt);
setValue("#{AdminBean.rule[cnt-1]}", selectme.getValue());
This is the error message:
Exception Details: javax.faces.el.PropertyNotFoundException
Error setting property '-1' in bean of type null
Possible Source of Error:
Class Name: com.sun.faces.el.PropertyResolverImpl
File Name: PropertyResolverImpl.java
Method Name: setValue
Line Number: 153
I have played around and even the following code would not work to save a value at the first position of the index property:
setValue("#{AdminBean.rule[0]}", selectme.getValue());
Can anyone help?
Thanks,
NilsYou can not set the index as you use here i.e
#{AdminBean.rule[cnt-1]}
is not correct. Because in JSF the "[" is used for some other purpose.
I would suggest you to use another property called "index"
setValue("#{AdminBean.index", cnt-1);
setValue("#{AdminBean.rule", selectme.getValue());
Inside the session bean, in the method setRule get the index (already set) and place your value in the correct indexed array.
Same logic you can use to get the value too
setValue("#{AdminBean.index", cnt-1);
getValue("#{AdminBean.rule");
the method getRule() should get the value for the index and return it.
- WInston
http://blogs.sun.com/roller/page/winston?catname=Creator -
I have several forms each containing a unique product. Each product has 'other' items that can be associated with each product.
Rather than creating setter and getter methods for each 'other' item (too many to do), I thought I'd send the values of those 'other' items to an indexed property like String[] other. A user will be presented with a list of 10 or so 'other' items for each, and each 'other' item will have a checkbox. I'd like only the checked values to show up on another page.
Is an indexed property the way to go with this? Plus I could iterate through the 'other' list on the seperate page. Any examples anyone knows of I can look at for some help? Thanks!public String button1_action() {
setValue("#{AdminBean.rule[1]}",
selector.getValue());
How about
getAdminBean().setRule(1, selector.getValue());Assuming that selector.getValue() returns a Long and that AdminBean is either an Application, Session, or Request Bean.
Best regards
Antonio. -
Is there an example out there for a Java Newby - I am trying to save data in an array - that is using the indexed property in a SessionBean.
I have then added the indexed property and bound the value to it:
* Indexed getter for property rule.
* @param index Index of the property.
* @return Value of the property at <CODE>index</CODE>.
public Long getRule(int index) {
return this.rule[index];
* Indexed setter for property rule.
* @param index Index of the property.
* @param rule New value of the property at <CODE>index</CODE>.
public void setRule(int index, Long rule) {
this.rule[index] = rule;
public String button1_action() {
setValue("#{AdminBean.rule[1]}", selector.getValue());
I am getting the followong error:
Exception Details: org.apache.jasper.JasperException
Error getting property 'rule' from bean of type magicwheel.AdminBean
Possible Source of Error:
Class Name: org.apache.jasper.servlet.JspServletWrapper
File Name: JspServletWrapper.java
Method Name: service
Line Number: 384
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
Can anyone help, possibly with some example code?
Thanks,
Nilspublic String button1_action() {
setValue("#{AdminBean.rule[1]}",
selector.getValue());
How about
getAdminBean().setRule(1, selector.getValue());Assuming that selector.getValue() returns a Long and that AdminBean is either an Application, Session, or Request Bean.
Best regards
Antonio. -
Binding to an indexed property
Hi
Not sure if this is the correct way to do this, but I created
an indexed property ( String array ) in the session bean
with the intention of binding a TextField value to an
indexed position on the indexed property. When attempting
to perform the Property Binding for the TextField component
I don't see the indexed property to bind to.
Is this possible ?
ThanksHi Colinodo,
I am just interacting with people so as to where an external customer can view the filed bugs.
Once i get the link I would be providing you the reference number and the link.
Regards. -
Hi there,
I have issue with index property.
Running this script with this same document o have different index values for rectangles.
frames = doc.rectangles;
for (var i=0;i<frames.length;i++) {
var frame = frames[i];
$.writeln(frame.id+" "+frame.index+" "+frame.label);
desktop Indesign
33175 0 i12
33176 1 i6
33177 2 i9
33178 3 i3
33272 4 i10
33273 5 i4
33274 6 i7
33275 7 i1
33465 8
33460 9 i11
33461 10 i5
33462 11 i8
33464 12 i2
Indesign Server
33175 4 i12
33176 5 i6
33177 6 i9
33178 7 i3
33272 8 i10
33273 9 i4
33274 10 i7
33275 11 i1
33465 12
33460 0 i11
33461 1 i5
33462 2 i8
33464 3 i2
So index on Server is different. Index property on desktop edition works well and can be used as z-index.
Is there workaround for this?
Regards
PiotrAfter many test now i'm sure, it's just bug in CS4 server, in CS5 server works fine.
regards -
My printer hp photosmart c4680 is stuck in the scanning mode how do i get it out to print again need
My printer hp photosmart C4680 is stuck in the scanning mode how do I get in back to the printing again I need help please
i have this problem too! have you fixed yours yet?
-
Indexed Property, html:select
Hello,
Dev. Env. : JSP/Struts - Indexed Properties
<c:forEach var="lines" items="${MbrLines.map.lines}">
<td>
<html:select name="lines" indexed="true" property="loc" >
<%
StringBuffer sb = new StringBuffer();
DBAccess dba = new DBAccess();
sb = dba.fillDropdown("ALLLOC",0,"");
out.println(sb);
%>
</html:select>
</td>
</c:forEach>
This is the code I have in a JSP used for edits. I fill the dropdown with all available locations(e.g. Chicago, Miami etc) from a database table.
How do I set the current value in the record to be edited, say "Chicago", to be "selected" in the dropdown? Or, is there a way to pass the property�s current value to the DB method ?
Any help is greatly appreciated. Thanks in advance.the HTML generated as folllows:
as you may see, the bean has been interpreted to array, which I have correspondent set method in form. Please check the code for form in my previous post.
If I radio button of any row, it sets all the rows. which looks very strange to me, because it shows to me that the beans has been seperated by using different names. as poDisplayVO[0] ; poDisplayVO[1] ; poDisplayVO[2.
<! ------------------------ html genterated ------------------------------------------------>
<tr>
<td>
Accounting Studies
</td>
<td>
<input type="radio" name="poDisplayVO[0].fosVO.select" value="Accounting">
Accounting
</td>
<td>
<input type="radio" name="poDisplayVO[0].fosVO.select" value="no"> NO
</td>
<td>
<input type="radio" name="poDisplayVO[0].fosVO.select" value="yes"> YES
</td>
</tr>
<tr>
<td>
Accounting Studies
</td>
<td>
<input type="radio" name="poDisplayVO[1].fosVO.select" value="Bookkeeping">
Bookkeeping
</td>
<td>
<input type="radio" name="poDisplayVO[1].fosVO.select" value="no"> NO
</td>
<td>
<input type="radio" name="poDisplayVO[1].fosVO.select" value="yes"> YES
</td>
</tr>
<tr>
<td>
Accounting Studies
</td>
<td>
<input type="radio" name="poDisplayVO[2].fosVO.select" value="Computerized Accounting(Duplicate)">
Computerized Accounting(Duplicate)
</td>
<td>
<input type="radio" name="poDisplayVO[2].fosVO.select" value="no"> NO
</td>
<td>
<input type="radio" name="poDisplayVO[2].fosVO.select" value="yes"> YES
</td>
</tr> -
this is the 3rd time I have typed this message. I have an account but am not able to create a pdf file, need it right away and used to not have trouble.
Hi touser,
Can you please provide some specifics about the problem you're encountering? Do you get an error message, or does the file conversion process never complete? Is the problem specific to one file, or occur with every file you try to convert?
Please help fill in the blanks for us, so we know best how to help you resolve this issue.
Best,
Sara -
BUG CSS Editor z-index property
I use JDeveloper 10.1.3.1 to edit CSS.
span.dialog { z-index: 100; } is underlined in red, although span.dialog { z-index: 99; } and span.dialog { z-index: 101; } are OK.Hi,
thanks. I filed a bug with very low priority because a) a work around exists (to set it to 101) and b) at runtime it behaves as designed
Frank -
AGAIN - Needed SAX parser for java on Oracle 8.1.5
like in subject.
I load succesful sax2, but i need load more useful parser like from oracle or ibm.
But when i try i get a lot of errors like ORA-29534 (NullPointerOperation).
KailOnly XML Parser v2 release 2.0.2.7 from Oracle works in 8.1.5, and this release does not support SAX2 unfortunately.
Maybe you are looking for
-
Horizontal Vertical and logo is not printed in dot matrix printer
Hi All i am printing a smartform in dot matrix printer the form has horizontal vertical line table lines , and logo but when i print in Dot matrix printer the line and logo is not display Please say me how i design for it wheather It is printer or sm
-
Apple Application Support - What and why does this exists?
So I welcomed iTunes 9 on my computer and iOS4 on my music player (latter to a great commonly known regret). Now here is my question: What is the "Apple Application Support" and why iTunes 9 must have it to run? (Note: Normally many software products
-
Pie Chart/Appointment Target/Log
My employer wants some sort of Appointment Target design that will generate Appointments made (tele sales) and show it getting closer to the daily target. The target number could vary each day so i thought about a Pie Chart that works on percentage
-
Scenario execution error ORA-21561
I have scheduled a scenario in ODI to run hourly. Last night one execution was failed with Error message "ORA-21561: OID generation failed". But all other execution are running properly other than that particular one. What is the reason for this?
-
Performance issue with iPhone 4 on iOS 7
Hello, I have been using iPhone 4 since October 2011. Phone was performarming exceptionally good when it was running on iOS 6. However, post upgrading to iOS 7, finding all nonsense experieinces like any other Andriod/windows devices. 1. Phone hangs