You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Erlend Hamnaberg <er...@tihlde.org> on 2007/07/03 19:44:09 UTC
Tomahawk and converters
Hello all.
I have an odd problem with Tomahawk and a converter.
I have created a converter that accepts a ; separated value.
However, when i try to use it, the following happens:
/protected/richtest.xhtml @87,69 value="#{answerBean.alternative}":
Exception setting property alternative of base with class
org.evatest.web.beans.AnswerBean, Bean:
org.evatest.web.beans.AnswerBean, property: alternative, newValue: null
,newValue class: null method parameter class:
org.evatest.xml.Alternative, null, null
My converter class.
public class AlternativeConverter implements Converter {
private Log log = LogFactory.getLog(getClass());
public Object getAsObject(FacesContext facesContext, UIComponent
uiComponent, String string) throws ConverterException {
if (string == null) return null;
Alternative a = new Alternative();
log.debug(string);
String[] splitted = string.split(";");
a.setId(Integer.parseInt(splitted[0])); // id
a.setText(splitted[1]); // text
a.setWeight(Integer.parseInt(splitted[2])); // weight
a.setCertainty(Integer.parseInt(splitted[3])); // certainty
log.debug(a.getId() + " " + a.getText() + " " +
a.getWeight()); // resource ?
// points ??
return a;
}
public String getAsString(FacesContext facesContext, UIComponent
uiComponent, Object object) throws ConverterException {
if (object == null || !(object instanceof Alternative)) return null;
Alternative a = (Alternative) object;
return a.getId() + ";" + a.getText() + ";" + a.getWeight() + ";"
+ a.getCertainty();
}
}
Its configured in faces-config.xml as this:
<converter>
<converter-id>evatest.EnumConverter</converter-id>
<converter-class>org.evatest.web.converter.EnumConverter</converter-class>
</converter>
Is there anything immediate wrong that you can see?
example snippet for use:
<t:selectManyCheckbox id="checkboxlist"
rendered="#{visit.answer.question.multipleChoice}"
layout="pageDirection"
converter="evatest.AlternativeConverter"
value="#{answerBean.alternatives}">
<f:selectItems value="#{questionBean.alternatives}"/>
</t:selectManyCheckbox>
The selectitems are created like this:
public List<SelectItem> getAlternatives() {
List<SelectItem> list = new ArrayList<SelectItem>();
for (Alternative a :
JSFUtil.getVisit().getAnswer().getQuestion().getAlternatives()) {
list.add(new SelectItem(a, a.getText()));
}
return list;
}
Thank you in advance.
Regards
Erlend Hamnaberg
Re: Tomahawk and converters
Posted by Erlend Hamnaberg <er...@underdusken.no>.
Erlend Hamnaberg wrote:
> Erlend Hamnaberg wrote:
>> Matthias Wessendorf wrote:
>>>> converter="evatest.AlternativeConverter"
>>>
>>> tried
>>> converter="#{bean.propertyThatReturnsMyConverter}"
>>> ?
>>>
>> That didnt work, no alternatives are displayed.
>>
>> Changed back to the original, the same happens. With debug output
>> gives this
>>
>> 2007-07-04 13:23:56,426 [btpool0-3] DEBUG
>> org.apache.myfaces.el.VariableResolverImpl - Variable 'ajaxContext'
>> could not be resolved.
>> 2007-07-04 13:23:56,427 [btpool0-3] DEBUG
>> org.evatest.web.beans.TestBean - studenttest.id: 301
>> 2007-07-04 13:23:56,427 [btpool0-3] DEBUG
>> org.evatest.web.beans.TestBean - studenttest.answers: 7
>> 2007-07-04 13:23:56,580 [btpool0-3] DEBUG
>> org.evatest.web.beans.TestBean - answers.size: 7
>> 2007-07-04 13:23:56,588 [btpool0-3] DEBUG
>> org.evatest.web.converter.AlternativeConverter - 2;40;0;0
>>
>> String from converter.
>>
>> 2007-07-04 13:23:56,588 [btpool0-3] DEBUG
>> org.evatest.web.converter.AlternativeConverter - 2 40 0
>>
>> This denotes that the alternative was correctly decoded.
>>
>> 2007-07-04 13:23:56,605 [btpool0-3] DEBUG
>> org.apache.myfaces.lifecycle.LifecycleImpl - exiting from
>> lifecycle.execute in PROCESS_VALIDATIONS(3) because getRenderResponse
>> is true from one of the after listeners
>> 2007-07-04 13:23:56,633 [btpool0-3] DEBUG org.evatest.model.Question
>> - org.evatest.xml.question.Question@be5687
>> 2007-07-04 13:23:56,633 [btpool0-3] DEBUG org.evatest.model.Question
>> - org.evatest.xml.Alternatives@22c0a0
>> 2007-07-04 13:23:56,684 [btpool0-3] DEBUG
>> org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - PI found
>> at line 1
>> 2007-07-04 13:23:56,684 [btpool0-3] DEBUG
>> org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - DOCTYPE
>> found at line 3
>>
>>
>>
>> Any thoughts?
>>
>> The answerBean is requestscoped.. does this mean anything ?
>>
>>
>> Regards
>>
>> Erlend
>>
> I'm replying to myself in the dead of night.
>
> I changed the implementation AsnwerBean to accept Integers instead of
> Alternative.
> Without any converter this works fine, however with a
> <f:numberConverter integerOnly="true" /> i get the same error as earlier.
>
> Is there a bug in the converter mechanism in myfaces?
>
> Regards
>
> Erlend
>
Please, anyone ?
Regards
Erlend
Re: Tomahawk and converters
Posted by Erlend Hamnaberg <er...@tihlde.org>.
Erlend Hamnaberg wrote:
> Erlend Hamnaberg wrote:
>> Matthias Wessendorf wrote:
>>>> converter="evatest.AlternativeConverter"
>>>
>>> tried
>>> converter="#{bean.propertyThatReturnsMyConverter}"
>>> ?
>>>
>> That didnt work, no alternatives are displayed.
>>
>> Changed back to the original, the same happens. With debug output
>> gives this
>>
>> 2007-07-04 13:23:56,426 [btpool0-3] DEBUG
>> org.apache.myfaces.el.VariableResolverImpl - Variable 'ajaxContext'
>> could not be resolved.
>> 2007-07-04 13:23:56,427 [btpool0-3] DEBUG
>> org.evatest.web.beans.TestBean - studenttest.id: 301
>> 2007-07-04 13:23:56,427 [btpool0-3] DEBUG
>> org.evatest.web.beans.TestBean - studenttest.answers: 7
>> 2007-07-04 13:23:56,580 [btpool0-3] DEBUG
>> org.evatest.web.beans.TestBean - answers.size: 7
>> 2007-07-04 13:23:56,588 [btpool0-3] DEBUG
>> org.evatest.web.converter.AlternativeConverter - 2;40;0;0
>>
>> String from converter.
>>
>> 2007-07-04 13:23:56,588 [btpool0-3] DEBUG
>> org.evatest.web.converter.AlternativeConverter - 2 40 0
>>
>> This denotes that the alternative was correctly decoded.
>>
>> 2007-07-04 13:23:56,605 [btpool0-3] DEBUG
>> org.apache.myfaces.lifecycle.LifecycleImpl - exiting from
>> lifecycle.execute in PROCESS_VALIDATIONS(3) because getRenderResponse
>> is true from one of the after listeners
>> 2007-07-04 13:23:56,633 [btpool0-3] DEBUG org.evatest.model.Question
>> - org.evatest.xml.question.Question@be5687
>> 2007-07-04 13:23:56,633 [btpool0-3] DEBUG org.evatest.model.Question
>> - org.evatest.xml.Alternatives@22c0a0
>> 2007-07-04 13:23:56,684 [btpool0-3] DEBUG
>> org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - PI found
>> at line 1
>> 2007-07-04 13:23:56,684 [btpool0-3] DEBUG
>> org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - DOCTYPE
>> found at line 3
>>
>>
>>
>> Any thoughts?
>>
>> The answerBean is requestscoped.. does this mean anything ?
>>
>>
>> Regards
>>
>> Erlend
>>
> I'm replying to myself in the dead of night.
>
> I changed the implementation AsnwerBean to accept Integers instead of
> Alternative.
> Without any converter this works fine, however with a
> <f:numberConverter integerOnly="true" /> i get the same error as earlier.
>
> Is there a bug in the converter mechanism in myfaces?
>
> Regards
>
> Erlend
>
Please, anyone ?
Regards
Erlend
Use of HTML tags inside
Posted by Arvind Pandey <ar...@datamatics.com>.
Hi all!
In my jsf page html tags like <table>,<tr>,<td>.... are inside the
<t:collapsiblePannel> . But <t:collapsiblePannel> tag affecting the
allignment
of the components which are inside html tags.And if <t:collapsiblePannel>
is not used
then alignment is proper. So,it means <t:collapsiblePannel> is not
understanding the
html tags enclosed by it.Again my page is so large that i can't convert the
whole page
into JSF components(without html tags).
So, what is the solution for this?
Any suggestion will be appreciated.
Thanks...
regards
Arvind Pandey
Disclaimer: The information contained in this e-mail and attachments if any are privileged and confidential and are intended for the individual(s) or entity(ies) named in this e-mail. If the reader or recipient is not the intended recipient, or employee or agent responsible for delivering to the intended recipient, you are hereby notified that dissemination, distribution or copying of this communication or attachments thereof is strictly prohibited. IF YOU RECEIVE this communication in error, please immediately notify the sender and return the original message.
logout problem.
Posted by Arvind Pandey <ar...@datamatics.com>.
Hi all!
on logout link in my page , I am invalidating the session.
But my page contains some ajax call also. May be due to that ..on click of
logout link
sometime it does not navigate to logout.jsp page. Sometime it does.
If it does not navigate to logout page then user is still on the same page
and he tries to do some operation which lead to some unpredictable output
sice our session is expired.
Can anyone pls let me know what should i do in this situation...
Thanks...
regards
Arvind
-----Original Message-----
From: Erlend Hamnaberg [mailto:erlenha@tihlde.org]
Sent: Thursday, July 05, 2007 6:16 AM
To: MyFaces Discussion
Subject: Re: Tomahawk and converters
Erlend Hamnaberg wrote:
> Matthias Wessendorf wrote:
>>> converter="evatest.AlternativeConverter"
>>
>> tried
>> converter="#{bean.propertyThatReturnsMyConverter}"
>> ?
>>
> That didnt work, no alternatives are displayed.
>
> Changed back to the original, the same happens. With debug output
> gives this
>
> 2007-07-04 13:23:56,426 [btpool0-3] DEBUG
> org.apache.myfaces.el.VariableResolverImpl - Variable 'ajaxContext'
> could not be resolved.
> 2007-07-04 13:23:56,427 [btpool0-3] DEBUG
> org.evatest.web.beans.TestBean - studenttest.id: 301
> 2007-07-04 13:23:56,427 [btpool0-3] DEBUG
> org.evatest.web.beans.TestBean - studenttest.answers: 7
> 2007-07-04 13:23:56,580 [btpool0-3] DEBUG
> org.evatest.web.beans.TestBean - answers.size: 7
> 2007-07-04 13:23:56,588 [btpool0-3] DEBUG
> org.evatest.web.converter.AlternativeConverter - 2;40;0;0
>
> String from converter.
>
> 2007-07-04 13:23:56,588 [btpool0-3] DEBUG
> org.evatest.web.converter.AlternativeConverter - 2 40 0
>
> This denotes that the alternative was correctly decoded.
>
> 2007-07-04 13:23:56,605 [btpool0-3] DEBUG
> org.apache.myfaces.lifecycle.LifecycleImpl - exiting from
> lifecycle.execute in PROCESS_VALIDATIONS(3) because getRenderResponse
> is true from one of the after listeners
> 2007-07-04 13:23:56,633 [btpool0-3] DEBUG org.evatest.model.Question -
> org.evatest.xml.question.Question@be5687
> 2007-07-04 13:23:56,633 [btpool0-3] DEBUG org.evatest.model.Question -
> org.evatest.xml.Alternatives@22c0a0
> 2007-07-04 13:23:56,684 [btpool0-3] DEBUG
> org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - PI found at
> line 1
> 2007-07-04 13:23:56,684 [btpool0-3] DEBUG
> org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - DOCTYPE
> found at line 3
>
>
>
> Any thoughts?
>
> The answerBean is requestscoped.. does this mean anything ?
>
>
> Regards
>
> Erlend
>
I'm replying to myself in the dead of night.
I changed the implementation AsnwerBean to accept Integers instead of
Alternative.
Without any converter this works fine, however with a <f:numberConverter
integerOnly="true" /> i get the same error as earlier.
Is there a bug in the converter mechanism in myfaces?
Regards
Erlend
Disclaimer: The information contained in this e-mail and attachments if any are privileged and confidential and are intended for the individual(s) or entity(ies) named in this e-mail. If the reader or recipient is not the intended recipient, or employee or agent responsible for delivering to the intended recipient, you are hereby notified that dissemination, distribution or copying of this communication or attachments thereof is strictly prohibited. IF YOU RECEIVE this communication in error, please immediately notify the sender and return the original message.
How to open applet in JSF page/tag
Posted by Arvind Pandey <ar...@datamatics.com>.
Hi all!
I have one requirement like there is one page with jsf components to
set the configuration.
After setting configuration, on submit button click event all the jsf
components will be disappeared
and the applet will be opened in the same jsf page.
Any suggestion will be appreciated.
Thanks...
regards
Arvind Pandey
Disclaimer: The information contained in this e-mail and attachments if any are privileged and confidential and are intended for the individual(s) or entity(ies) named in this e-mail. If the reader or recipient is not the intended recipient, or employee or agent responsible for delivering to the intended recipient, you are hereby notified that dissemination, distribution or copying of this communication or attachments thereof is strictly prohibited. IF YOU RECEIVE this communication in error, please immediately notify the sender and return the original message.
Re: Tomahawk and converters
Posted by Erlend Hamnaberg <er...@tihlde.org>.
Erlend Hamnaberg wrote:
> Matthias Wessendorf wrote:
>>> converter="evatest.AlternativeConverter"
>>
>> tried
>> converter="#{bean.propertyThatReturnsMyConverter}"
>> ?
>>
> That didnt work, no alternatives are displayed.
>
> Changed back to the original, the same happens. With debug output
> gives this
>
> 2007-07-04 13:23:56,426 [btpool0-3] DEBUG
> org.apache.myfaces.el.VariableResolverImpl - Variable 'ajaxContext'
> could not be resolved.
> 2007-07-04 13:23:56,427 [btpool0-3] DEBUG
> org.evatest.web.beans.TestBean - studenttest.id: 301
> 2007-07-04 13:23:56,427 [btpool0-3] DEBUG
> org.evatest.web.beans.TestBean - studenttest.answers: 7
> 2007-07-04 13:23:56,580 [btpool0-3] DEBUG
> org.evatest.web.beans.TestBean - answers.size: 7
> 2007-07-04 13:23:56,588 [btpool0-3] DEBUG
> org.evatest.web.converter.AlternativeConverter - 2;40;0;0
>
> String from converter.
>
> 2007-07-04 13:23:56,588 [btpool0-3] DEBUG
> org.evatest.web.converter.AlternativeConverter - 2 40 0
>
> This denotes that the alternative was correctly decoded.
>
> 2007-07-04 13:23:56,605 [btpool0-3] DEBUG
> org.apache.myfaces.lifecycle.LifecycleImpl - exiting from
> lifecycle.execute in PROCESS_VALIDATIONS(3) because getRenderResponse
> is true from one of the after listeners
> 2007-07-04 13:23:56,633 [btpool0-3] DEBUG org.evatest.model.Question -
> org.evatest.xml.question.Question@be5687
> 2007-07-04 13:23:56,633 [btpool0-3] DEBUG org.evatest.model.Question -
> org.evatest.xml.Alternatives@22c0a0
> 2007-07-04 13:23:56,684 [btpool0-3] DEBUG
> org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - PI found at
> line 1
> 2007-07-04 13:23:56,684 [btpool0-3] DEBUG
> org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - DOCTYPE
> found at line 3
>
>
>
> Any thoughts?
>
> The answerBean is requestscoped.. does this mean anything ?
>
>
> Regards
>
> Erlend
>
I'm replying to myself in the dead of night.
I changed the implementation AsnwerBean to accept Integers instead of
Alternative.
Without any converter this works fine, however with a <f:numberConverter
integerOnly="true" /> i get the same error as earlier.
Is there a bug in the converter mechanism in myfaces?
Regards
Erlend
Re: Tomahawk and converters
Posted by Erlend Hamnaberg <er...@tihlde.org>.
Matthias Wessendorf wrote:
>> converter="evatest.AlternativeConverter"
>
> tried
> converter="#{bean.propertyThatReturnsMyConverter}"
> ?
>
That didnt work, no alternatives are displayed.
Changed back to the original, the same happens. With debug output gives
this
2007-07-04 13:23:56,426 [btpool0-3] DEBUG
org.apache.myfaces.el.VariableResolverImpl - Variable 'ajaxContext'
could not be resolved.
2007-07-04 13:23:56,427 [btpool0-3] DEBUG org.evatest.web.beans.TestBean
- studenttest.id: 301
2007-07-04 13:23:56,427 [btpool0-3] DEBUG org.evatest.web.beans.TestBean
- studenttest.answers: 7
2007-07-04 13:23:56,580 [btpool0-3] DEBUG org.evatest.web.beans.TestBean
- answers.size: 7
2007-07-04 13:23:56,588 [btpool0-3] DEBUG
org.evatest.web.converter.AlternativeConverter - 2;40;0;0
String from converter.
2007-07-04 13:23:56,588 [btpool0-3] DEBUG
org.evatest.web.converter.AlternativeConverter - 2 40 0
This denotes that the alternative was correctly decoded.
2007-07-04 13:23:56,605 [btpool0-3] DEBUG
org.apache.myfaces.lifecycle.LifecycleImpl - exiting from
lifecycle.execute in PROCESS_VALIDATIONS(3) because getRenderResponse is
true from one of the after listeners
2007-07-04 13:23:56,633 [btpool0-3] DEBUG org.evatest.model.Question -
org.evatest.xml.question.Question@be5687
2007-07-04 13:23:56,633 [btpool0-3] DEBUG org.evatest.model.Question -
org.evatest.xml.Alternatives@22c0a0
2007-07-04 13:23:56,684 [btpool0-3] DEBUG
org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - PI found at
line 1
2007-07-04 13:23:56,684 [btpool0-3] DEBUG
org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - DOCTYPE found
at line 3
Any thoughts?
The answerBean is requestscoped.. does this mean anything ?
Regards
Erlend
Re: Tomahawk and converters
Posted by Matthias Wessendorf <ma...@apache.org>.
> converter="evatest.AlternativeConverter"
tried
converter="#{bean.propertyThatReturnsMyConverter}"
?
Re: Tomahawk and converters
Posted by Erlend Hamnaberg <er...@tihlde.org>.
I'll send some when i get to work tomorrow.
Erlend
Martin Marinschek wrote:
> It would be good to see more of your servlet container error logs -
> this excerpt is not enough to say what happens here.
>
> regards,
>
> Martin
>
> On 7/3/07, Erlend Hamnaberg <er...@tihlde.org> wrote:
>> Hello all.
>> I have an odd problem with Tomahawk and a converter.
>>
>> I have created a converter that accepts a ; separated value.
>> However, when i try to use it, the following happens:
>>
>> /protected/richtest.xhtml @87,69 value="#{answerBean.alternative}":
>> Exception setting property alternative of base with class
>> org.evatest.web.beans.AnswerBean, Bean:
>> org.evatest.web.beans.AnswerBean, property: alternative, newValue: null
>> ,newValue class: null method parameter class:
>> org.evatest.xml.Alternative, null, null
>>
>>
>> My converter class.
>>
>> public class AlternativeConverter implements Converter {
>> private Log log = LogFactory.getLog(getClass());
>>
>> public Object getAsObject(FacesContext facesContext, UIComponent
>> uiComponent, String string) throws ConverterException {
>> if (string == null) return null;
>> Alternative a = new Alternative();
>> log.debug(string);
>> String[] splitted = string.split(";");
>> a.setId(Integer.parseInt(splitted[0])); // id
>> a.setText(splitted[1]); // text
>> a.setWeight(Integer.parseInt(splitted[2])); // weight
>> a.setCertainty(Integer.parseInt(splitted[3])); // certainty
>> log.debug(a.getId() + " " + a.getText() + " " +
>> a.getWeight()); // resource ?
>> // points ??
>> return a;
>> }
>>
>> public String getAsString(FacesContext facesContext, UIComponent
>> uiComponent, Object object) throws ConverterException {
>> if (object == null || !(object instanceof Alternative))
>> return null;
>> Alternative a = (Alternative) object;
>> return a.getId() + ";" + a.getText() + ";" + a.getWeight() + ";"
>> + a.getCertainty();
>> }
>> }
>>
>> Its configured in faces-config.xml as this:
>>
>> <converter>
>> <converter-id>evatest.EnumConverter</converter-id>
>>
>> <converter-class>org.evatest.web.converter.EnumConverter</converter-class>
>>
>> </converter>
>>
>>
>> Is there anything immediate wrong that you can see?
>>
>>
>> example snippet for use:
>>
>> <t:selectManyCheckbox id="checkboxlist"
>> rendered="#{visit.answer.question.multipleChoice}"
>> layout="pageDirection"
>>
>> converter="evatest.AlternativeConverter"
>>
>> value="#{answerBean.alternatives}">
>>
>> <f:selectItems
>> value="#{questionBean.alternatives}"/>
>> </t:selectManyCheckbox>
>>
>> The selectitems are created like this:
>>
>> public List<SelectItem> getAlternatives() {
>> List<SelectItem> list = new ArrayList<SelectItem>();
>> for (Alternative a :
>> JSFUtil.getVisit().getAnswer().getQuestion().getAlternatives()) {
>> list.add(new SelectItem(a, a.getText()));
>> }
>> return list;
>> }
>>
>>
>>
>> Thank you in advance.
>>
>> Regards
>>
>> Erlend Hamnaberg
>>
>
>
Re: Tomahawk and converters
Posted by Martin Marinschek <ma...@gmail.com>.
It would be good to see more of your servlet container error logs -
this excerpt is not enough to say what happens here.
regards,
Martin
On 7/3/07, Erlend Hamnaberg <er...@tihlde.org> wrote:
> Hello all.
> I have an odd problem with Tomahawk and a converter.
>
> I have created a converter that accepts a ; separated value.
> However, when i try to use it, the following happens:
>
> /protected/richtest.xhtml @87,69 value="#{answerBean.alternative}":
> Exception setting property alternative of base with class
> org.evatest.web.beans.AnswerBean, Bean:
> org.evatest.web.beans.AnswerBean, property: alternative, newValue: null
> ,newValue class: null method parameter class:
> org.evatest.xml.Alternative, null, null
>
>
> My converter class.
>
> public class AlternativeConverter implements Converter {
> private Log log = LogFactory.getLog(getClass());
>
> public Object getAsObject(FacesContext facesContext, UIComponent
> uiComponent, String string) throws ConverterException {
> if (string == null) return null;
> Alternative a = new Alternative();
> log.debug(string);
> String[] splitted = string.split(";");
> a.setId(Integer.parseInt(splitted[0])); // id
> a.setText(splitted[1]); // text
> a.setWeight(Integer.parseInt(splitted[2])); // weight
> a.setCertainty(Integer.parseInt(splitted[3])); // certainty
> log.debug(a.getId() + " " + a.getText() + " " +
> a.getWeight()); // resource ?
> // points ??
> return a;
> }
>
> public String getAsString(FacesContext facesContext, UIComponent
> uiComponent, Object object) throws ConverterException {
> if (object == null || !(object instanceof Alternative)) return null;
> Alternative a = (Alternative) object;
> return a.getId() + ";" + a.getText() + ";" + a.getWeight() + ";"
> + a.getCertainty();
> }
> }
>
> Its configured in faces-config.xml as this:
>
> <converter>
> <converter-id>evatest.EnumConverter</converter-id>
>
> <converter-class>org.evatest.web.converter.EnumConverter</converter-class>
> </converter>
>
>
> Is there anything immediate wrong that you can see?
>
>
> example snippet for use:
>
> <t:selectManyCheckbox id="checkboxlist"
> rendered="#{visit.answer.question.multipleChoice}"
> layout="pageDirection"
>
> converter="evatest.AlternativeConverter"
> value="#{answerBean.alternatives}">
>
> <f:selectItems value="#{questionBean.alternatives}"/>
> </t:selectManyCheckbox>
>
> The selectitems are created like this:
>
> public List<SelectItem> getAlternatives() {
> List<SelectItem> list = new ArrayList<SelectItem>();
> for (Alternative a :
> JSFUtil.getVisit().getAnswer().getQuestion().getAlternatives()) {
> list.add(new SelectItem(a, a.getText()));
> }
> return list;
> }
>
>
>
> Thank you in advance.
>
> Regards
>
> Erlend Hamnaberg
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces