users@javaserverfaces.java.net

RE: Re: When creating a ValueBinding, shouldn't I see it in the Application.valueBindingMap?

From: Todd Patrick <Todd.Patrick_at_dtn.com>
Date: Wed, 6 Dec 2006 16:28:57 -0600

Thank you.

I am starting to wish that I had begged our System Support Team to let
us use Glassfish for an Application Server. I am finding that a lot of
what I *want* to do is easily done in JSF 1.2, while I am stuck in 1.1
for this project.

I understand what your saying.

Looking at the 1.1 API, I guess I didn't realize that you can use
Application.createValueBinding() to Get and Set a value binding.

Thanks again,

--Todd



-----Original Message-----
From: Ryan.Lubke_at_Sun.COM [mailto:Ryan.Lubke_at_Sun.COM]
Sent: Wednesday, December 06, 2006 4:11 PM
To: users_at_javaserverfaces.dev.java.net
Subject: Re: When creating a ValueBinding, shouldn't I see it in the
Application.valueBindingMap?

Hi Todd,

In 1.1 it appears that the 'valueBindingMap' in ApplicationImpl is
allocated but never used. It should be removed from the code.

Application.createValueBinding() is only to create and return the
ValueBinding.

Todd Patrick wrote:
> JSF 1.1
>
> I am creating a ValueBinding in an Action:
>
> public String editLinkAction() {
> FacesContext ctx = FacesContext.getCurrentInstance();
> ValueBinding binding =
> ctx.getApplication().createValueBinding("#{selected}");
> binding.setValue(ctx, selected);
> return Constants.UPDATETRANSLATEOPTIONS;
> }
>
> When I debug my application, I am finding that once I get past:
>
> binding.setValue(ctx, selected);
>
> The ctx Application.valueBindingMap is 0 size and selected is a valid
> object.
>
> Shouldn't the Application.valueBindingMap have a value after running
> the following?
>
> binding.setValue(ctx, selected);
>
> Thanks,
>
> --Todd
>
>
>
> ctx: javax.faces.context.FacesContext =
> {com.sun.faces.context.FacesContextImpl_at_3160}
> released: boolean = false
> responseStream: javax.faces.context.ResponseStream = null
> responseWriter: javax.faces.context.ResponseWriter = null
> facesEvents: org.apache.commons.collections.CursorableLinkedList
> = null
> externalContext: javax.faces.context.ExternalContext =
> {com.sun.faces.context.ExternalContextImpl_at_3180}
> application: javax.faces.application.Application =
> {com.sun.faces.application.ApplicationImpl_at_3163}
> associate:
> com.sun.faces.application.ApplicationAssociate =
> {com.sun.faces.application.ApplicationAssociate_at_3164}
> actionListener: javax.faces.event.ActionListener =
> {com.sun.faces.application.ActionListenerImpl_at_3508}
> navigationHandler:
> javax.faces.application.NavigationHandler =
> {com.sun.faces.application.NavigationHandlerImpl_at_3509}
> propertyResolver: javax.faces.el.PropertyResolver =
> {com.sun.faces.el.PropertyResolverImpl_at_3510}
> variableResolver: javax.faces.el.VariableResolver =
> {com.sun.faces.el.VariableResolverImpl_at_3511}
> viewHandler: javax.faces.application.ViewHandler =
> {com.sun.faces.application.ViewHandlerImpl_at_3512}
> stateManager: javax.faces.application.StateManager =
> {com.sun.faces.application.StateManagerImpl_at_3513}
> valueBindingMap: java.util.Map =
> {java.util.HashMap_at_3514} size = 0
> componentMap: java.util.Map = {java.util.HashMap_at_3515}
size = 112
> converterIdMap: java.util.Map = {java.util.HashMap_at_3516}
size = 12
> converterTypeMap: java.util.Map =
> {java.util.HashMap_at_3517} size = 21
> validatorMap: java.util.Map = {java.util.HashMap_at_3518}
size = 7
> messageBundle: java.lang.String =
> {java.lang.String_at_3519}"com.dtn.common.common"
> supportedLocales: java.util.ArrayList =
{java.util.ArrayList_at_3520}
> size = 1
> defaultLocale: java.util.Locale = null
> defaultRenderKitId: java.lang.String =
> {java.lang.String_at_3182}"HTML_BASIC"
> viewRoot: javax.faces.component.UIViewRoot =
> {javax.faces.component.UIViewRoot_at_3181}
> componentMessageLists: java.util.Map = null
> renderResponse: boolean = false
> responseComplete: boolean = false
>
> -----------------------------------------
> NOTICE: This email message is for the sole use of the intended
> recipient(s) and may contain confidential and privileged information.
> Any unauthorized use, disclosure or distribution is prohibited. If you

> are not the intended recipient, please contact the sender by reply
> email and destroy all copies of the original message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail:
> users-help_at_javaserverfaces.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net