myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cagatay Civici" <cagatay.civ...@gmail.com>
Subject Re: Bean doesnt show new values
Date Tue, 04 Dec 2007 22:44:28 GMT
pagecode and beans with pc_prefixes, I sense ibm's rsa tool here:)

How do you define the commandlink and open the popup in the jsf page?

Also see trinidad dialog framework if you are using Trinidad by any chance.

Cagatay

On Dec 4, 2007 11:53 PM, murat aydin <maydin@gmail.com> wrote:

> Here it is :
>
>    <managed-bean>
>         <managed-bean-name>pc_ServicesPage</managed-bean-name>
>         <managed-bean-class>obrowse.ontology.pagecode.ServicesPage</managed-bean-class>
>
>         <managed-bean-scope>session</managed-bean-scope>
>    </managed-bean>
>
> murat
>
> On Dec 4, 2007 7:56 PM, Simon Kitching < simon.kitching@chello.at> wrote:
>
> > ---- murat aydin < maydin@gmail.com> schrieb:
> > > Hi,
> > >
> > > I am setting a backing bean's attributes on an action of commandLink.
> > > Commandlink opens a popup and the backing bean that i set its
> > attributes
> > > belongs to that popup page.
> > > The values that i set to bean's attributes doesnt appear on the popup
> > page.
> > > When i do a refresh on the popup page, the new values appear.
> > >
> > > Here is the action code:
> > >
> > >     public void openServices(ActionEvent event){
> > >         FacesContext context = FacesContext.getCurrentInstance();
> > >         Map map = context.getExternalContext
> > ().getRequestParameterMap();
> > >         String name = (String) map.get("name"); //parameter sent from
> > > commandLink
> > >
> > >         FacesContext.getCurrentInstance
> > > ().getExternalContext().getSessionMap().remove("pc_ServicesPage");
> > >         ServicesPage bean = (ServicesPage) context.getApplication()
> > >         .getVariableResolver().resolveVariable(context,
> > > "pc_ServicesPage");//Backing bean of popup page
> > >
> > >         bean.setClassName(name); // new value is set, although it is
> > updated
> > > it show old value
> > >
> > >     }
> > >
> > > How can i force to show new values on the popup page? Thanks in
> > advance.
> >
> > What does your managed-bean declaration for pc_ServicesPage look like?
> >
> > Regards,
> >
> > Simon
> >
>
>

Mime
View raw message