You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dave <ja...@yahoo.com> on 2007/04/30 06:00:24 UTC

does not work in cell

<s:pprPanelGroup> does not work in <t:dataTable> cell.  The book variable becomes null in Render phase.  Is there a workaround? Thanks!    
   
  <h:form>
  <t:commandLink />
  
  <t:dataTable id="books"
  var="book"
  value="#{testBean.books}"
  rowCountVar="rowCount"
  rowIndexVar="rowIndex">
  
  <h:column>
  
  
    <h:panelGroup rendered="#{rowIndex==0}">
  <s:pprPanelGroup id="ppr" partialTriggerPattern=".*foo">
  <t:selectOneMenu id="foo" value="#{book.title}"
  onchange="submit(this);" 
  valueChangeListener="#{book.titleChanged}">
  <f:selectItem itemValue="Book1" itemLabel="Book1"/> 
  <f:selectItem itemValue="Book2" itemLabel="Book2"/> 
  <f:selectItem itemValue="Book3" itemLabel="Book3"/> 
  
  </t:selectOneMenu> 
  
  <h:outputText value="#{book.title}"/> 
  </s:pprPanelGroup>
  </h:panelGroup> 
   
  
  <h:panelGroup rendered="#{rowIndex>0}">
  <h:outputText value="#{book.title}"/>
  </h:panelGroup> 
  </h:column>
  
  </t:dataTable>
  
  </h:form>

       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Re: does not work in cell

Posted by Ernst Fastl <er...@gmail.com>.
Hi,

This is indeed an issue with the current implementation and we are working
on that problem. For the time being you might want to put the whole
dataTable into a pprPanelGroup like in

http://example.irian.at/example-sandbox-20070501/pprPanelGroupDataScroller.jsf

regards

Ernst

On 4/30/07, Dave <ja...@yahoo.com> wrote:
> <s:pprPanelGroup> does not work in <t:dataTable> cell.  The book variable
> becomes null in Render phase.  Is there a workaround? Thanks!
>
>
> <h:form>
> <t:commandLink />
>
> <t:dataTable id="books"
> var="book"
> value="#{testBean.books}"
> rowCountVar="rowCount"
> rowIndexVar="rowIndex">
>
> <h:column>
>
>
>
> <h:panelGroup rendered="#{rowIndex==0}">
> <s:pprPanelGroup id="ppr" partialTriggerPattern=".*foo">
> <t:selectOneMenu id="foo" value="#{book.title}"
> onchange="submit(this);"
> valueChangeListener="#{book.titleChanged}">
> <f:selectItem itemValue="Book1" itemLabel="Book1"/>
> <f:selectItem itemValue="Book2" itemLabel="Book2"/>
> <f:selectItem itemValue="Book3" itemLabel="Book3"/>
>
> </t:selectOneMenu>
>
> <h:outputText value="#{book.title}"/>
> </s:pprPanelGroup>
> </h:panelGroup>
>
>
> <h:panelGroup rendered="#{rowIndex>0}">
> <h:outputText value="#{book.title}"/>
> </h:panelGroup>
> </h:column>
>
> </t:dataTable>
>
> </h:form>
>
>  ________________________________
> Ahhh...imagining that irresistible "new car" smell?
>  Check out new cars at Yahoo! Autos.
>
>