You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Steve Horne <st...@gmail.com> on 2008/10/29 23:26:23 UTC
[trinidad] problem with facelets?
I'm not sure the exact nature of my problem, but here is my setup:
I am using myfaces 1.0.5, Trinidad 1.0.7 and Facelets 1.1.14, on JBoss 4.2:
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:tr="http://myfaces.apache.org/trinidad"
My application has a navigation menu containing items that, when clicked,
add a "panel" (custom facelet component) to a list of active panels. The
main content area of the page has a <tr:panelTabbed> which contains a
<c:forEach> on the list of panels. Each <c:forEach> contains a <ui:include>
for each panel in the panel list. So far, so good.
One of my panels (we'll call it PanelA) has a <tr:table> that contains a
column of <tr:selectOneChoice>. The problem I am having is that when I have
multiple panels open and then open a PanelA, none of the current values for
the <tr:selectOneChoice> are selected- it only shows blanks. If I open the
panel by itself (without other panels being open), PanelA will show the
correct values. This only happens when there are other panels open before
opening PanelA. Each panel is in a <tr:subform>.
The only clue I have that there is a problem is in the (JBoss) console,
which shows:
17:07:29,281 ERROR [STDERR] Oct 29, 2008 5:07:29 PM
org.apache.myfaces.trinidad.component.UIXShowDetail broadcast
WARNING: Event
org.apache.myfaces.trinidad.event.DisclosureEvent[phaseId=INVOKE_APPLICATION(5),component=CoreShowDetailItem[UINodeFacesBean,
id=_id1263],expanded=true] was delivered to a showDetail already in that
disclosure state.
I'm not really sure that the message has anything to do with my problem.
I realize it is difficult to diagnose without seeing the code, but has
anyone run into this particular issue before? I have had problems mixing
facelets and the <tr:table> component, but I don't know if that is the case
here. Any suggestion or idea of how to debug this would be appreciated.
--
"Many men go fishing all of their lives without knowing it is not fish they
are after."
- Henry David Thoreau
Re: [trinidad] problem with facelets?
Posted by Zigc Junk <zi...@gmail.com>.
Try to replace c:forEach with tr:iterator and see what happens.
Bill
On Wed, Oct 29, 2008 at 5:26 PM, Steve Horne <st...@gmail.com> wrote:
> I'm not sure the exact nature of my problem, but here is my setup:
>
> I am using myfaces 1.0.5, Trinidad 1.0.7 and Facelets 1.1.14, on JBoss 4.2:
> xmlns:ui="http://java.sun.com/jsf/facelets"
> xmlns:c="http://java.sun.com/jstl/core"
> xmlns:tr="http://myfaces.apache.org/trinidad"
>
> My application has a navigation menu containing items that, when clicked,
> add a "panel" (custom facelet component) to a list of active panels. The
> main content area of the page has a <tr:panelTabbed> which contains a
> <c:forEach> on the list of panels. Each <c:forEach> contains a <ui:include>
> for each panel in the panel list. So far, so good.
>
> One of my panels (we'll call it PanelA) has a <tr:table> that contains a
> column of <tr:selectOneChoice>. The problem I am having is that when I have
> multiple panels open and then open a PanelA, none of the current values for
> the <tr:selectOneChoice> are selected- it only shows blanks. If I open the
> panel by itself (without other panels being open), PanelA will show the
> correct values. This only happens when there are other panels open before
> opening PanelA. Each panel is in a <tr:subform>.
>
> The only clue I have that there is a problem is in the (JBoss) console,
> which shows:
> 17:07:29,281 ERROR [STDERR] Oct 29, 2008 5:07:29 PM
> org.apache.myfaces.trinidad.component.UIXShowDetail broadcast
> WARNING: Event
> org.apache.myfaces.trinidad.event.DisclosureEvent[phaseId=INVOKE_APPLICATION(5),component=CoreShowDetailItem[UINodeFacesBean,
> id=_id1263],expanded=true] was delivered to a showDetail already in that
> disclosure state.
>
> I'm not really sure that the message has anything to do with my problem.
>
> I realize it is difficult to diagnose without seeing the code, but has
> anyone run into this particular issue before? I have had problems mixing
> facelets and the <tr:table> component, but I don't know if that is the case
> here. Any suggestion or idea of how to debug this would be appreciated.
>
> --
> "Many men go fishing all of their lives without knowing it is not fish they
> are after."
>
> - Henry David Thoreau
>