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!

Problem with Transient Column for Navigation working with 10.1.3 (BC4J/JSP)

472952Mar 21 2006
Hello

First my situation:
i want to get a dynamic navigation, so i use a prior connected view object in bc4j to get the menu values in right order.
Then i added a transient column to save which node is obened.

In my jsp page i made a for each with a if clause to get all rows
${RowNav[\'checked\']} == 'Y' <-- this is my if condition

the column 'checked' is my transient column i just created in this View Object

There are parent objects i always show.

On click of this nodes i call a function in the impl.java of this ViewObject:

My link:
<html:link href="nav.do?event=changeChecked&actGkey=${RowNav[\'Gkey\']}">
<c:out value='${RowNav[\'Name\']}'/>
</html:link>
_________________________________
My function in ViewObjectImpl.java:

public void changeChecked(int gkey) {

String chked = null;
Row rows[];

Object keys[] = { new Integer(gkey) };
Key key = new Key(keys);

System.out.println("Find Row with Key: " + keys[0]);
rows = this.findByKey(key, 1);

if ( rows.length > 0 )
{
chked = (String)rows[0].getAttribute("checked");
System.out.println( "Checked: "+chked);

System.out.println("If-Clause...");
if (chked == null || chked.equals(KAT_COLLAPSED)) {
rows[0].setAttribute("checked",KAT_EXPAND);
} else {
rows[0].setAttribute("checked",KAT_COLLAPSED);
}
}
else
System.out.println("No Row found...");
}
______________


My problem is there is all the time "No Row found..."
My gkey is correct and i know this row must be found but no way,

would be glad if someone can help me


Sebastian
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2006
Added on Mar 21 2006
0 comments
170 views