UNSUBSCRIBE

> On Sep 8, 2006, at 10:55 AM, Leyzerzon, Simeon 
> <simeon.leyzer...@credit-suisse.com> wrote:
>
> Thanks, Mike.  I'm creating the components within the backing bean.  Here is 
> how:
>
> Jsp.~~~~~~~~~~~~~~~~~~
> <f:view>
>       <h:form id="selectorForm">
>       <h:panelGrid footerClass="subtitle" headerClass=""
>                                                       styleClass=""
>                                                       columnClasses=""
>                                                       
> binding="#{selector.panelGrid}">
>
>
>
> Backing bean~~~~~~~~~~~~~
>
>
> public HtmlPanelGrid getPanelGrid() {
>
>        grid = new HtmlPanelGrid();
>        grid.setColumns(4);
>        grid.setBgcolor("red");
>
>        HtmlSelectOneMenu chooser = new HtmlSelectOneMenu();
>        chooser.setId("reportsOfCategory");
>
>        chooser.setTitle("Please select a report to run");
>        
> chooser.getChildren().add(ReportsPerCategoryMapper.getOptionItems(this.getCategory().getName()));
>
>        grid.getChildren().add(chooser);
>
>        return grid;
>    }
>
>
> What I don't know is how to make the backing bean build the rest of the 
> components after chooser passes it the report selected.
>
> TIA.
> Simeon
>
>
> -----Original Message-----
> From: Mike Kienenberger [mailto:mkien...@gmail.com]
> Sent: Friday, September 08, 2006 12:38 PM
> To: MyFaces Discussion
> Subject: Re: Run-time component generation
>
> It's unclear what part you need help with.
>
> Start by looking at this page:
>
> http://wiki.apache.org/myfaces/SubmitPageOnValueChange
>
>
> On 9/8/06, Leyzerzon, Simeon <simeon.leyzer...@credit-suisse.com> wrote:
>>
>>
>>
>> Hi,
>>
>> I'm looking for some code samples to support the following use case:
>>
>>  I have a page with a form on which there's a combo-box (h:selectOneMenu).
>> The combo-box contains a list of available reports.  Depending on the
>> user choice in the combo-box, I'd like to redisplay the same page with
>> the combo-box with a dynamically generated list of components
>> representing the user controls corresponding to the chosen report's
>> parameters list to be passed to the server.  User then populates these
>> controls with the parameter values and submits the form by clicking the 
>> submit button.
>>
>> The part that interests me most is: how to redisplay the same page
>> with these newly populated controls after the selectOneMenu event
>> passed to the server.
>>
>> I could provide more details if needed.
>>
>> Appreciate any help!
>>
>> Thank you,
>> Simeon Leyzerzon
>>
>> ======================================================================
>> ======== Please access the attached hyperlink for an important
>> electronic communications disclaimer:
>>
>> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>> ======================================================================
>> ========
>>
>>
>>
>>
>
> ==============================================================================
> Please access the attached hyperlink for an important electronic 
> communications disclaimer:
>
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
> ==============================================================================
>
>


________________________________

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. If you are not the intended recipient you are 
notified that disclosing, copying, distributing or taking any action in 
reliance on the contents of this information is strictly prohibited.

Reply via email to