incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mistry, Apurva" <amis...@nsf.org>
Subject RE: problem with jsf rendered attribute
Date Thu, 15 Feb 2007 15:21:39 GMT
Thanks Matthias! I will look into it.


-----Original Message-----
From: mwessendorf@gmail.com [mailto:mwessendorf@gmail.com]On Behalf Of
Matthias Wessendorf
Sent: Thursday, February 15, 2007 2:46 AM
To: adffaces-user@incubator.apache.org
Subject: Re: problem with jsf rendered attribute


Perhaps you want to have a shale based viewcontroller behind the page

this demo:
http://code.google.com/p/facesgoodies/

uses Shale  together w/ Trinidad

-M

On 2/14/07, Mistry, Apurva <amistry@nsf.org> wrote:
> Hi,
> I am trying to simulate onpageLoad functionality in jsf. Basically, I
> have put a rendered attribute in <tr:PanelFormLayout> tag -
>
> <tr:panelFormLayout styleClass="x6b" rows="1" maxColumns="5"
> rendered="#{EditCusLinksBB.ce}">
>                     <tr:commandButton  text="Save"
> action="#{EditCusLinksBB.saveAssoCE}"
> rendered="#{EditCusLinksBB.actionType == 'NewCE'}"/>
>
>                     <tr:commandButton  text="Edit"
> action="#{EditCusLinksBB.editAssoCE}"
> rendered="#{EditCusLinksBB.actionType == 'EditCE'}" />
>
>
>                 <tr:inputListOfValues columns="10"
> action="dialog:showParent" rendered="#{EditCusLinksBB.actionType ==
> 'NewCE'}"/>
>
>                     <tr:outputText inlineStyle="x6m xag"
> value="#{editCustBB.certifiedEntity.primaryCustomer.code}"
> rendered="#{EditCusLinksBB.actionType != 'NewCE'}"/>
>
> ........
> </tr:panelFormLayout>
>
>
> The goal is to perform some logic before the rest of the tags are
> rendered inside panelformLayout gets rendered.
> But the rendered gets called 4 times, and the output from getCE() is
> changing.
> I am not sure why is rendered called upon several time, whats the
> alternative?
> Thanks
> Apurva.
>
> *********************************************************************
>  Confidentiality Notice:  This email message, including any attachments,
> is for the sole use of the intended recipient(s) and may contain
>  confidential and privileged information. Any unauthorized review, use,
>  disclosure or distribution is prohibited. If you are not the intended
>  recipient, please contact the sender by email and destroy all copies of
> the original message.
> *********************************************************************
>
>


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com
*********************************************************************
  Confidentiality Notice:  This email message, including any attachments,
  is for the sole use of the intended recipient(s) and may contain
  confidential and privileged information. Any unauthorized review, use,
  disclosure or distribution is prohibited. If you are not the intended
  recipient, please contact the sender by email and destroy all copies of
  the original message.
*********************************************************************

Mime
View raw message