Posted by VISTICOT FREDERIC <Fr...@alcatel-lucent.fr>.
I'm using <tr:selectOneChoice with value mapped to an attribute att1 of
type Integer.
The combo box is not rendered correctly. Only the value is displayed.
The solution is to use setAtt1(int att1).
But the pb is that my POJO containing the att1 attribute can not be
modified !!!
What can i do ? Of course i'm using JDK1.5
Method is:
Int getAtt1()
And setAtt1(Integer att1)
Fred
Re: [Trinidad] tr:selectOneCheckbox and Boolean please help
Posted by Matthias Wessendorf <ma...@apache.org>.
I think it was
get for Boolean
is for boolean
??
at least worth to try...
-m
On Jan 11, 2008 2:36 PM, VISTICOT FREDERIC
<Fr...@alcatel-lucent.fr> wrote:
> It seems that mapping the selectOneCheckbox value attribute with a
> Boolean does not work.
> How to do this mapping ?
>
> Of course the solution is to use boolean instead of Boolean !!! But it
> is not always possible !!
> Is the solution to use a converter ??? It's not so user friendly !!!
>
> <tr:selectOneCheckbox value="#{myBean.value}"/>
>
> MyBean {
> Private Boolean _value;
>
> Public Boolean isValue() {return _value;}
> Public void setValue(Boolean value) {_value = value};
>
> }
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org
[Trinidad] tr:selectOneCheckbox and Boolean please help
Posted by VISTICOT FREDERIC <Fr...@alcatel-lucent.fr>.
It seems that mapping the selectOneCheckbox value attribute with a
Boolean does not work.
How to do this mapping ?
Of course the solution is to use boolean instead of Boolean !!! But it
is not always possible !!
Is the solution to use a converter ??? It's not so user friendly !!!
<tr:selectOneCheckbox value="#{myBean.value}"/>
MyBean {
Private Boolean _value;
Public Boolean isValue() {return _value;}
Public void setValue(Boolean value) {_value = value};
}
Re: [Trinidad] SaveState
Posted by Matthias Wessendorf <ma...@apache.org>.
keep in mind that with this cfg the performance will be a little slower
-M
On Jan 11, 2008 9:38 AM, Gerhard Petracek <ge...@gmail.com> wrote:
> hello,
>
> please don't forget to deactivate
> org.apache.myfaces.trinidad.CACHE_VIEW_ROOT
> when using t:saveState with trinidad.
>
> alternatives:
>
> http://www.nabble.com/Re%3A-Dependant-selectOne*-and-input*-components-in-PPR-Trinidad-p14687423.html
>
> regards,
> gerhard
>
>
>
> 2008/1/11, Andrew Robinson < andrew.rw.robinson@gmail.com>:
>
> > The tomahawk saveState should work fine with Trinidad.
> >
> > If I am not mistaken, there are plans to move the saveState component into
> the MyFaces commons library.
> >
> >
> >
> > On Jan 11, 2008 9:46 AM, Mirco Attocchi < amirco@gmail.com> wrote:
> >
> > > Trinidad hasn't it's own savestate and I suppose that I don't know the
> > > right/better way to work with Trinidad and postback.
> > >
> > > Mirco
> > >
> > >
> > >
> > >
> > > On Jan 11, 2008 5:39 PM, Andrew Robinson < andrew.rw.robinson@gmail.com
> > wrote:
> > > > Why not continue to use t:saveState?
> > > >
> > > >
> > > >
> > > > On Jan 11, 2008 7:40 AM, Mirco Attocchi < amirco@gmail.com> wrote:
> > > > > Hi all,
> > > > > I'm starting new test project using Trinidad.
> > > > >
> > > > > With Tomahawk I usually save state of backbean List with
> t:savestate.
> > > > > Now, with Trinidad, how is the correct mode to save tr:table's value
> > > > > between postbak?
> > > > >
> > > > > I'm working with JSF 1.2 RI + Trinidad 1.2.4 on Netbeans 6's tomcat
> > > > >
> > > > > Thanks
> > > > >
> > > > > --
> > > > > Mirco Attocchi
> > > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Mirco Attocchi
> > >
> >
> >
>
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org
Re: [Trinidad] SaveState
Posted by Gerhard Petracek <ge...@gmail.com>.
hello,
please don't forget to deactivate
org.apache.myfaces.trinidad.CACHE_VIEW_ROOT
when using t:saveState with trinidad.
alternatives:
http://www.nabble.com/Re%3A-Dependant-selectOne*-and-input*-components-in-PPR-Trinidad-p14687423.html
regards,
gerhard
2008/1/11, Andrew Robinson <an...@gmail.com>:
>
> The tomahawk saveState should work fine with Trinidad.
>
> If I am not mistaken, there are plans to move the saveState component into
> the MyFaces commons library.
>
> On Jan 11, 2008 9:46 AM, Mirco Attocchi < amirco@gmail.com> wrote:
>
> > Trinidad hasn't it's own savestate and I suppose that I don't know the
> > right/better way to work with Trinidad and postback.
> >
> > Mirco
> >
> > On Jan 11, 2008 5:39 PM, Andrew Robinson <andrew.rw.robinson@gmail.com >
> > wrote:
> > > Why not continue to use t:saveState?
> > >
> > >
> > >
> > > On Jan 11, 2008 7:40 AM, Mirco Attocchi <am...@gmail.com> wrote:
> > > > Hi all,
> > > > I'm starting new test project using Trinidad.
> > > >
> > > > With Tomahawk I usually save state of backbean List with
> > t:savestate.
> > > > Now, with Trinidad, how is the correct mode to save tr:table's value
> >
> > > > between postbak?
> > > >
> > > > I'm working with JSF 1.2 RI + Trinidad 1.2.4 on Netbeans 6's tomcat
> > > >
> > > > Thanks
> > > >
> > > > --
> > > > Mirco Attocchi
> > > >
> > >
> > >
> >
> >
> >
> > --
> > Mirco Attocchi
> >
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
Re: [Trinidad] SaveState
Posted by Andrew Robinson <an...@gmail.com>.
The tomahawk saveState should work fine with Trinidad.
If I am not mistaken, there are plans to move the saveState component into
the MyFaces commons library.
On Jan 11, 2008 9:46 AM, Mirco Attocchi <am...@gmail.com> wrote:
> Trinidad hasn't it's own savestate and I suppose that I don't know the
> right/better way to work with Trinidad and postback.
>
> Mirco
>
> On Jan 11, 2008 5:39 PM, Andrew Robinson <an...@gmail.com>
> wrote:
> > Why not continue to use t:saveState?
> >
> >
> >
> > On Jan 11, 2008 7:40 AM, Mirco Attocchi <am...@gmail.com> wrote:
> > > Hi all,
> > > I'm starting new test project using Trinidad.
> > >
> > > With Tomahawk I usually save state of backbean List with t:savestate.
> > > Now, with Trinidad, how is the correct mode to save tr:table's value
> > > between postbak?
> > >
> > > I'm working with JSF 1.2 RI + Trinidad 1.2.4 on Netbeans 6's tomcat
> > >
> > > Thanks
> > >
> > > --
> > > Mirco Attocchi
> > >
> >
> >
>
>
>
> --
> Mirco Attocchi
>
Re: [Trinidad] SaveState
Posted by Mirco Attocchi <am...@gmail.com>.
Trinidad hasn't it's own savestate and I suppose that I don't know the
right/better way to work with Trinidad and postback.
Mirco
On Jan 11, 2008 5:39 PM, Andrew Robinson <an...@gmail.com> wrote:
> Why not continue to use t:saveState?
>
>
>
> On Jan 11, 2008 7:40 AM, Mirco Attocchi <am...@gmail.com> wrote:
> > Hi all,
> > I'm starting new test project using Trinidad.
> >
> > With Tomahawk I usually save state of backbean List with t:savestate.
> > Now, with Trinidad, how is the correct mode to save tr:table's value
> > between postbak?
> >
> > I'm working with JSF 1.2 RI + Trinidad 1.2.4 on Netbeans 6's tomcat
> >
> > Thanks
> >
> > --
> > Mirco Attocchi
> >
>
>
--
Mirco Attocchi
Re: [Trinidad] SaveState
Posted by Andrew Robinson <an...@gmail.com>.
Why not continue to use t:saveState?
On Jan 11, 2008 7:40 AM, Mirco Attocchi <am...@gmail.com> wrote:
> Hi all,
> I'm starting new test project using Trinidad.
>
> With Tomahawk I usually save state of backbean List with t:savestate.
> Now, with Trinidad, how is the correct mode to save tr:table's value
> between postbak?
>
> I'm working with JSF 1.2 RI + Trinidad 1.2.4 on Netbeans 6's tomcat
>
> Thanks
>
> --
> Mirco Attocchi
>