Mikko,

Chip has given you the guidelines you need.

Regarding, getting exceptions, you have to look elsewhere for the reason.
The fact that Hrefs doesnt take the value from the Form to the server could
result in you seeing the old value instead of the current value. It won't
stop you from getting reference to that object.

In your original mail, I see the line:
             CSpButton rb_      = (CSpButton)
thisPage.getDisplayField("rb_button");                  
which can cause **typecast** exception since radio button in CSpRadioButton.
Again, how do you get 'thisPage'? Why not just say 'this' or just nothing?

If you still have problems, let us know.

Regards,

Aby

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 06, 1999 10:34 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: [ND] How to get a reference to page's other componets in
> href's onWebEvent method???
> 
> 
> To expand on this, the default behavior when you do the submit 
> will be to call load().  To capture "what page to load next": 
> 
> -put a hidden field in the form
> -set the hidden field in the javascript method to be the name
>  of the next page to load
> -override "public int load()"
>  in the page (or an ancestor for all pages)
> -call getWebVar("nameOfHidden") to get the next page name
> -use CSpider.getCommonPage(nameOfPage) to get a handle 
> -call CSpHttp.reset(), pageHandle.load(), return STOP
> 
> -Chip
> 
> [EMAIL PROTECTED] wrote:
> >
> >1) add onClick javascript to the href which calls a javascript 
> >   method that submits the form; your UI designer gets the href,
> >   you get the submit
> >
> >-Chip
> >
> >"Mikko" <[EMAIL PROTECTED]> wrote:
> >>Thanks Aby, you understood my question.
> >>
> >>So, this href problem is quite difficult.
> >>
> >>My problem is precisely following:
> >>- have a radio buttongroup in parent page
> >>- user must select one of those radiobuttons
> >>- after selection user can go to different page via couple of hrefs.
> >>- in hrefs onWebEvent(in parent page) I tried to get the index of the
> >>selected
> >>  radiobutton  vie getting a reference to that radiobuttongroup object
> and
> >>then send
> >>  that parameter as an parameter(via method or sessionobject) to other
> page.
> >> (That index should tell the index of an list(or array) to be displayed)
> >>
> >>BUT as I mentioned I did not get correct reference to that
> radiobuttongroup
> >>object
> >>so exception flow "into the air".
> >>
> >>Of course I could use buttons instead, BUT one of our UI designers have
> >>decided
> >>that we should use hrefs instead of buttons ...
> >>
> >>Any suggestions?
> >>
> >>Regards
> >>
> >>Mikko
> >>
> >>PS. And thanks for the answer.
> >>
> 
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to