myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zied Hamdi" <javaha...@gmail.com>
Subject Re: [Tobago] parameter for detail links
Date Wed, 01 Aug 2007 15:08:06 GMT
Hi Volker,

I didn't know about that! does a session scoped bb hold old bindings, or why
shouldn't we use binding in that case?

Is it because of the tree view serialization when dormant?

I though binding is the best way to be in touch with the view and get user
entries efficiently...

Regards,
Zied

2007/8/1, Volker Weber <v.weber@inexso.de>:
>
> Hi,
>
> i suppose to don't use binding if you can avoid it. At least you
> should never use a binding pointing to a session scoped bean.
>
>
> Regards,
>    Volker
>
> 2007/8/1, Zied Hamdi <javahamdi@gmail.com>:
> > Hi Leo,
> >
> > You sould use one of these two
> >
> > 1. <tc:sheet binding="tableSearchCriteria.table"
> > 2. getApplication().createValueBinding( "#{" + yourID + "}" ).getValue(
> > getFacesContext() );
> >
> > If you are under jsf 1.2 you can use
> > getApplication().evaluateExpressionGet( getFacesContext(),
> > "#{" + el + "}", clazz ) for the second case.
> > In general it's not a good idea to access the tree through
> ServletRequest
> > parameters, JSF did all it can to hide this low level.
> >
> > Regards,
> > Zied
> >
> >
> > 2007/8/1, Leonhard Holzer <leonhard.holzer@abuscom.com>:
> > > Hello list,
> > >
> > > I use spring webflow together with tobago 1.0.11 on java 1.4.
> > > I have a sheet:
> > >
> > >                            <tc:sheet
> > > value="#{tableSearchCriteria.tableList}"
> > >
> > columns="100px;70px;70px;70px;*" var="row">
> > >                                <tc:column label="#{ global.tableName
> }">
> > >                                    <tc:out value="#{row}"
> > />
> > >                                </tc:column>
> > > ...
> > >                                <tc:column label="#{ global.actions}">
> > >                                    <tc:form
> > id="describeTableForm">
> > >                                    <tc:button
> > > label="#{global.cmdDescribe}" action="describe"
> > > actionListener="#{tableSearchCriteria.test}">
> > >                                        <tc:attribute
> > name="testTable"
> > > value="test123"/>
> > >                                        <f:param
> > name="tableNameId"
> > > value="Test23"/>
> > >                                    </tc:button>
> > >                                    </tc:form>
> > >                                </tc:column>
> > > ...
> > >                            </tc:sheet>
> > >
> > >
> > > but the parameter tableNameId is not transfered to the server.If I
> read
> > > all request parameters in the actionListener:
> > >
> > >        FacesContext context = FacesContext.getCurrentInstance();
> > >        Map map = context.getExternalContext().getRequestMap();
> > >        Iterator iter = map.keySet().iterator();
> > >        while (iter.hasNext()) {
> > >            String key = (String) iter.next();
> > >            System.out.println("key: "+key+" -> "+map.get(key));
> > >        }
> > >
> > >
> > > The parameter tableNameId is not part of the parameters. does anyone
> > > have any suggestions?
> > >
> > > regards
> > > Leo
> > >
> > >
> >
> >
> >
> > --
> > Zied Hamdi
> >  zatreex.sourceforge.net
>



-- 
Zied Hamdi
zatreex.sourceforge.net

Mime
View raw message