users@woodstock.java.net

RE: updating a dropdown on page1 from page2.

From: Oddvard Myrnes <oddvardm_at_doremitechno.com>
Date: Mon, 19 May 2008 17:44:17 +0200

Dear Animesh,

The underlaying CachedRowSetXImpl (JPA data binding) must be triggered so
that the data in it is refreshed. In the action_routine (java) I get the
handle to the rowset (from the sessionbean) and call its
release(http://developers.sun.com/docs/jscreator/apis/rowset/com/sun/sql/row
set/CachedRowSetXImpl.html#release()) function. That should fire update
events to all listners and refresh the rowset (I think :-). Then I call your
javascript code in the onclick event slot. Problem is that I get javascript
error "object does not support this property or method" which imply I get
null back from getElementById. I forgot to mention that page1 and page2 are
both popup pages. How do I get the corrct Id from page1 in javascript
running in page2?

My dropdown is located in:
form1.propertysheet2.commonProp.manualset.manualsetDropDown.

Oddvard

-----Original Message-----
From: Animesh Sahay [mailto:animesh.sahay_at_gmail.com]
Sent: Monday, May 19, 2008 7:37 AM
To: users_at_woodstock.dev.java.net
Subject: Re: updating a dropdown on page1 from page2.


Try using
window.parent.getElementById(drop down id from page 1).refresh();

-Animesh

On 5/18/08, Oddvard Myrnes <oddvardm_at_doremitechno.com> wrote:
> Hi,
>
> I have a dropdown bound to a CachedRowSetXImpl object on page1. I have a
> popup page (page2 launced from page1) that manipulate the same data. When
I
> close page2 I whould like to update the dropdown component on page1
without
> refreshing the whole page. Any hints, examples..?
>
> Oddvard
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
For additional commands, e-mail: users-help_at_woodstock.dev.java.net