Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 29033 invoked from network); 6 Dec 2007 23:09:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Dec 2007 23:09:38 -0000 Received: (qmail 82668 invoked by uid 500); 6 Dec 2007 23:09:23 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 82618 invoked by uid 500); 6 Dec 2007 23:09:23 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 82606 invoked by uid 99); 6 Dec 2007 23:09:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2007 15:09:23 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of maydin@gmail.com designates 209.85.146.179 as permitted sender) Received: from [209.85.146.179] (HELO wa-out-1112.google.com) (209.85.146.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2007 23:09:03 +0000 Received: by wa-out-1112.google.com with SMTP id l24so1014824waf for ; Thu, 06 Dec 2007 15:09:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=HhW9Uo+7W9X9K/tUtYpM9Qfo1inq2UtgrjIi8b/+UmI=; b=EW4cYfU6Hd7f7bPvM9u+KBCfhcyV3TRMBrUSvKilg1qjBDGYMZYmYDge9Jezg8eq5m2xGq1nzID/OZ1U91IRb/eRL8i4jiL32CiZkiSsz6hNcwv2pvvPbG5nAqPnYnlLuKxTiHyIgQji74DpbPV0la9Kc31FfYarGRz8zLe4fKI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=tqCmSmXMNtp9WjNilKY2AKnUIRipV/lKUwvugLMDxzSqdIfl5CXCiVJHJ8gSJr0IP5a1dNuzOxy5VAI+0Cmq/OKegGIfU4MQJjIKoi0QtHhdVLS5iU9nh/Ad8piNXjVecPmAthCsNMTjJMTh7arJKWppoVHhulBbIcd5np/PlQg= Received: by 10.114.107.19 with SMTP id f19mr2378990wac.1196982545851; Thu, 06 Dec 2007 15:09:05 -0800 (PST) Received: by 10.115.88.14 with HTTP; Thu, 6 Dec 2007 15:09:05 -0800 (PST) Message-ID: Date: Fri, 7 Dec 2007 01:09:05 +0200 From: "murat aydin" To: "MyFaces Discussion" Subject: Re: Bean doesnt show new values In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11134_24053081.1196982545844" References: <15836323.1196791005363.JavaMail.root@viefep32> <8c9d4eaa0712041444y445d86c7naaa62a3381128907@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11134_24053081.1196982545844 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 wrote: > I am using IBM RSA at work :) I dont use trinidad. > here is commandlink code : > > var="service" > value="#{pc_TsontPage.services}" > layout="unorderedList" > forceId="true"> > actionListener="#{pc_TsontPage.openServices}" onclick="window.open(' > services.jsp ')" > > /> > > > > > 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 wrote: > > > > > Here it is : > > > > > > > > > pc_ServicesPage > > > obrowse.ontology.pagecode.ServicesPage > > > > > > session > > > > > > > > > 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 > > > > > > > > > > > > > ------=_Part_11134_24053081.1196982545844 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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




------=_Part_11134_24053081.1196982545844--