You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by octoberdan <da...@october5th.net> on 2006/05/30 18:55:50 UTC
DetailToggler not toggling...
The graphic renders properly and becomes a link, but when I click on it,
nothing toggles! Any help would be appreciated. Here's the code:
<t:div styleClass="content">
<h:form>
<t:dataTable id="data" var="project"
value="#{projectBrowserBacker.projects}"
rowClasses="rows" preserveDataModel="true"
varDetailToggler="detailToggler">
<t:column>
<f:facet name="header">
<t:outputText value="Project Name"/>
</f:facet>
<t:outputText value="#{project.name}"/>
</t:column>
<t:column>
<f:facet name="header">
<t:outputText value="Phase"/>
</f:facet>
<t:outputText value="#{project.phaseDesc}"/>
</t:column>
<t:column>
<f:facet name="header">
<t:outputText value="Date Due"/>
</f:facet>
<t:outputText value="#{project.dueDate}"/>
</t:column>
<t:column>
<f:facet name="header"/>
<t:commandLink immediate="true" title="Show"
rendered="#{!detailToggler.currentDetailExpanded}"
action="#{detailToggler.toggleDetail}">
<t:graphicImage value="images/nav-plus.gif"/>
</t:commandLink>
<t:commandLink immediate="true" title="Hide"
rendered="#{detailToggler.currentDetailExpanded}"
action="#{detailToggler.toggleDetail}">
<t:graphicImage value="images/nav-minus.gif"/>
</t:commandLink>
</t:column>
<f:facet name="detailStamp">
<h:outputText value="BLAH!!!"/>
</f:facet>
</t:dataTable>
</h:form>
</t:div>
--
View this message in context: http://www.nabble.com/DetailToggler+not+toggling...-t1705898.html#a4630689
Sent from the MyFaces - Users forum at Nabble.com.
Re: DetailToggler not toggling...
Posted by octoberdan <da...@october5th.net>.
dan@october5th.net
--
View this message in context: http://www.nabble.com/Re%3A+DetailToggler+not+toggling...-t1706313.html#a4644389
Sent from the MyFaces - Users forum at Nabble.com.
Re: DetailToggler not toggling...
Posted by Tom Cordova <to...@daiwausa.com>.
Where do you want me to send the war
--
View this message in context: http://www.nabble.com/Re%3A+DetailToggler+not+toggling...-t1706313.html#a4644092
Sent from the MyFaces - Users forum at Nabble.com.
Re: DetailToggler not toggling...
Posted by octoberdan <da...@october5th.net>.
I need to catch my buss, WAR up your sample app and I'll see what I can do
and then get back to you.
--
View this message in context: http://www.nabble.com/Re%3A+DetailToggler+not+toggling...-t1706313.html#a4634545
Sent from the MyFaces - Users forum at Nabble.com.
Re: DetailToggler not toggling...
Posted by octoberdan <da...@october5th.net>.
Rev: 410319
--
View this message in context: http://www.nabble.com/Re%3A+DetailToggler+not+toggling...-t1706313.html#a4634559
Sent from the MyFaces - Users forum at Nabble.com.
Re: DetailToggler not toggling...
Posted by Tom Cordova <to...@daiwausa.com>.
Which version of MyFaces and Tomahawk are you using? Would you mind sending
me your code (or I could send you my sample app) so I can figure out why
it's not working for me?
--
View this message in context: http://www.nabble.com/Re%3A+DetailToggler+not+toggling...-t1706313.html#a4634064
Sent from the MyFaces - Users forum at Nabble.com.
Re: DetailToggler not toggling...
Posted by octoberdan <da...@october5th.net>.
Rev: 410319
--
View this message in context: http://www.nabble.com/Re%3A+DetailToggler+not+toggling...-t1706313.html#a4632396
Sent from the MyFaces - Users forum at Nabble.com.
Re: DetailToggler not toggling...
Posted by octoberdan <da...@october5th.net>.
Once I added the </body></html> tags I was missing at the bottom of the
document, everything worked as it was supposed to... odd, I tried the
t:inputText in the detailStamp and it rendered properly for all of the rows.
<t:div styleClass="content" id="content">
<h:form>
<t:dataTable id="data" var="project"
value="#{projectBrowserBacker.projects}"
rowClasses="rows" preserveDataModel="true"
varDetailToggler="detailToggler">
<t:column>
<f:facet name="header">
<t:commandSortHeader columnName="name" arrow="true">
<t:outputText value="Project Name"/>
</t:commandSortHeader>
</f:facet>
<t:outputText value="#{project.name}"/>
</t:column>
<t:column>
<f:facet name="header">
<t:outputText value="Phase"/>
</f:facet>
<t:outputText value="#{project.phaseDesc}"/>
</t:column>
<t:column>
<f:facet name="header">
<t:outputText value="Date Due"/>
</f:facet>
<t:outputText value="#{project.dueDate}"/>
</t:column>
<t:column>
<f:facet name="header"/>
<t:commandLink immediate="true" title="Show"
rendered="#{!detailToggler.currentDetailExpanded}"
action="#{detailToggler.toggleDetail}">
<t:graphicImage value="images/nav-plus.gif"/>
</t:commandLink>
<t:commandLink immediate="true" title="Hide"
rendered="#{detailToggler.currentDetailExpanded}"
action="#{detailToggler.toggleDetail}">
<t:graphicImage value="images/nav-minus.gif"/>
</t:commandLink>
</t:column>
<f:facet name="detailStamp">
<t:inputText/>
</f:facet>
</t:dataTable>
</h:form>
</t:div>
--
View this message in context: http://www.nabble.com/Re%3A+DetailToggler+not+toggling...-t1706313.html#a4632299
Sent from the MyFaces - Users forum at Nabble.com.
Re: DetailToggler not toggling...
Posted by Tom Cordova <to...@daiwausa.com>.
Are you able to get this to work with t:inputText components? In our install
it works great except for the last row of any page. Once you display an
inputText component in a detailStamp on the last row the app loses it's
mind.
--
View this message in context: http://www.nabble.com/DetailToggler+not+toggling...-t1705898.html#a4632102
Sent from the MyFaces - Users forum at Nabble.com.
Re: DetailToggler not toggling...
Posted by octoberdan <da...@october5th.net>.
Ok! Got it's submitting.. I foolishly left off the </body></html> tags at the
bottem... oi.
--
View this message in context: http://www.nabble.com/DetailToggler+not+toggling...-t1705898.html#a4631864
Sent from the MyFaces - Users forum at Nabble.com.
Re: DetailToggler not toggling...
Posted by octoberdan <da...@october5th.net>.
I tried wrapping the command links in another form... but still doesn't
work... GAH! Anyone?
--
View this message in context: http://www.nabble.com/DetailToggler+not+toggling...-t1705898.html#a4631610
Sent from the MyFaces - Users forum at Nabble.com.