On further investigation it appears that if you use an EL as in the example
then it tries to cast this to a String[] and fails. As partialtriggers is a
list it expects an array of strings. You should be able to give it one
string and it assume that it is an array of size 1.
I can get around this my binding the partialtriggers attribute to a bean
that returns a String array containing the table id.
The id's need to be flexible as I am using page components where the id is
passed into the component. A page could use several of these components and
they would therefor require unique ids.
Paul Mander wrote:
>
>
> I took the latest JSF 1.1 release and this works as you describes. I have
> however uncovered a potential bug while using EL in the partial triggers
> of the component that I want updated.
>
> The following will work as expected
>
> <tr:table id="myTable" rowSelection="single" autoSubmit="true" ...
> </tr:table>
>
> <tr:inputText label="Selected Reference"
> readOnly="true" id="ref" partialTriggers="myTable"
> value="#{bean.selectedReference}/>
>
> However if you make the partial triggers any kind of EL...
>
> <tr:table id="myTable" rowSelection="single" autoSubmit="true" ...
> </tr:table>
> <c:set var="pt" value="myTable"/>
>
> <tr:inputText label="Selected Reference"
> readOnly="true" id="ref" partialTriggers="#{pt}"
> value="#{bean.selectedReference}/>
>
> I get a js error "please see the server's error log for an entry beginning
> with: Server Exception during PPR, #6"
>
> 21/09/07 09:11:42:984 BST] 00000030 XmlHttpConfig E
> org.apache.myfaces.trinidadinternal.config.xmlHttp.XmlHttpConfigurator
> handleError Server Exception during PPR, #6
>
--
View this message in context:
http://www.nabble.com/-Trinidad--autosubmit-of-row-selection-tf4487863.html#a12814412
Sent from the MyFaces - Users mailing list archive at Nabble.com.