Hi again
Do you mean by clientids the actual ids in the UI-view.
I of course dont get any exceptions from this this. The UI simply doesn't work.
The problem is not that the refered component is not found. That happens if the selectOneRadio is placed outside the UIData.
This is a piece of code. This part is inside another dataTable (with var "question")
code ::
<t:dataTable id="single_table"
value="#{formAction.codelistingIndexes}"
var="index"
style="border: 0;"
styleClass="editPane"
rowIndexVar="row"
rowCountVar="count"
>
<h:column>
<f:facet name="header">
<t:selectOneRadio id="single_select"
value="#{formAction.formAnswer[question.properties[0]]}"
converter="javax.faces.Integer"
layout="spread"
immediate = "false"
>
<f:selectItems value="#{formAction.codelisting}" />
</t:selectOneRadio>
</f:facet>
<t:radio for="" index="#{index}" />
</h:column>
</t:dataTable>
| Volker Weber <[EMAIL PROTECTED]>
10.03.2006 13:04
|
To: MyFaces Discussion <[email protected]> cc: Subject: Re: Tomahawk t:radio-component problem? |
Hi,
have you set valid 'absolute' clientIds in the 'for' attributes?
Than they should find the refered UISelectOne.
If this don't help please post the relevant jsf and java code and
exception stacktrace, if any.
Regards,
Volker
Isto Pajarinen wrote:
> Thanks for answering
>
> So the problem is that i need to render dynamically list of radio-buttons
> (not static) or checkboxes, and to do this
> i need to use newspaperTable-component (in order to layout them more
> compact, not just horizontally or vertically).
>
> In table i will place a "t:radio"-component in the column and as the
> header of the column I place the selectOneRadio-component
> to which the separate radio-components refer to ("for" -attribute).
>
> In this situation the selection of the selectOneRadio-component does not
> persist when the form is submitted.
> In case of newspaperTable the radio-button even are rendered as separate
> components or something
> because in the rendered view they don't form a actual group (don't behave
> as group, can select multiple ones).
>
> I actually can't in this situation place the selectOneRadio-component out
> side the UIData (gives exception that doesn't find the referd component)
> or directly under the view (like described in the tread).
>
> t.Isto
>
>
>
>
>
>
>
> Volker Weber <[EMAIL PROTECTED]>
> 10.03.2006 12:15
> Please respond to "MyFaces Discussion"
>
> To: MyFaces Discussion <[email protected]>
> cc:
> Subject: Re: Tomahawk t:radio-component problem?
>
>
> Hi Isto,
>
> not fully shure what your problem is, but mybe using absolute ids will
> help, see this tread:
>
> http://www.mail-archive.com/[email protected]/msg16561.html
>
> Regards,
> Volker
>
> Isto Pajarinen wrote:
>
>>Hi
>>
>>When using selectOneRadio -component inside dataTable -component, so
>
> that
>
>>selectOneRadio
>>component is in header-facet of a column, and indivual radio-buttons are
>
>
>>rendered with in separate columns with t:radio-component,
>>the value of the radio-button-group is not persisted to the server.
>>
>>Does anybody no a solution to this problem? Something similar was
>
> pointed
>
>>in myfaces-320 -bug fix, but obviously that is do to come
>>in vrsion 1.1.2??
>>
>>t. Isto
>
>
--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

