myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "murat aydin" <may...@gmail.com>
Subject Re: Bean doesnt show new values
Date Thu, 06 Dec 2007 23:09:05 GMT
Hi,
i opened a popup as told in
http://wiki.apache.org/myfaces/JavascriptOpenNewWindow

commandlink action works after onclick. So the popup page is opened before
setting its attributes in the commandlink action.
by opening popup page from action (after setting its attributes), i get what
i want.

murat

On Dec 5, 2007 12:51 AM, murat aydin <maydin@gmail.com> wrote:

> I am using IBM RSA at work :) I dont use trinidad.
> here is commandlink code :
>
>                     <t:dataList id="data4" styleClass="standardList"
> var="service"
>                         value="#{pc_TsontPage.services}"
> layout="unorderedList"
>                         forceId="true">
>                         <h:commandLink id="link"
> actionListener="#{pc_TsontPage.openServices}" onclick="window.open('
> services.jsp ')" >
>                             <h:outputText value="#{service.browserText}"
> />
>                             <f:param name="name" value="#{
> service.fillerText}"/>
>                         </h:commandLink>
>                     </t:dataList>
>
> pc_ServicesPage belongs to services.jsp.
>
> murat
>
>
> On Dec 5, 2007 12:44 AM, Cagatay Civici < cagatay.civici@gmail.com> wrote:
>
> > 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