You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by rahmoune patrick <js...@yahoo.fr> on 2005/09/23 22:51:53 UTC
dataTable, JSF and @include
Hi all,
I am new to JSF and MyFaces, it may be a basic question
I would like to do something like:
<t:dataTable value="#{mgr.rowDataModel}" var="row">
<t:columns value="#{mgr.columnDataModel}" var="column">
// <h:outputText value="#{mgr.file.url}" /> -------> display the url of the subview to be included
<%@include file="xxxxxxx"%>
</t:columns>
</t:dataTable>
where the files contain f:subview definition and rowDataModel and columnDataModel are javax.faces.model.DataModel.
Here, I do not know how to set the 'xxxxxxx' value of the @include file attribute. #{mgr.file.url} does not work in @include
I try to approach the whole thing from the JAVA side using a binding to a managed bean
that return a panel grid something like
<h:panelGrid binding="#{mgr.myPanelGrid}" />
but here, I don't know how to create the subview from the url of the file that contains the subview
I may approach the whole thing on a bad way
Can someone can point me to the right direction?
Thank you for your help
---------------------------------
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici !
Re: dataTable, JSF and @include
Posted by rahmoune patrick <js...@yahoo.fr>.
Hi,
thank you to point me to the aliasBean tag, it is cool and may help me in a near futre.
It seems that I found a solution using a tiles controllerClass and jsp:include.
But I don't know all the issues of this solution.
The main issue I found for the moment is at the design level. I have controller class implemented as
managed bean and controller class as tiles controller.
patrick
Martin Marinschek <ma...@gmail.com> a écrit :
I don't have the time right now to read your email very carefully, but
from the first glance I would suggest you look at the t:aliasBean tag
of Apache MyFaces!
regards,
Martin
On 9/23/05, rahmoune patrick wrote:
>
> Hi all,
>
> I am new to JSF and MyFaces, it may be a basic question
>
> I would like to do something like:
>
>
>
> // -------> display the
> url of the subview to be included
>
>
>
>
> where the files contain f:subview definition and rowDataModel and
> columnDataModel are javax.faces.model.DataModel.
>
>
> Here, I do not know how to set the 'xxxxxxx' value of the @include file
> attribute. #{mgr.file.url} does not work in @include
>
> I try to approach the whole thing from the JAVA side using a binding to a
> managed bean
> that return a panel grid something like
>
>
>
> but here, I don't know how to create the subview from the url of the file
> that contains the subview
>
> I may approach the whole thing on a bad way
>
> Can someone can point me to the right direction?
>
> Thank you for your help
>
>
> ________________________________
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez le ici !
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German
---------------------------------
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici !
Re: dataTable, JSF and @include
Posted by Martin Marinschek <ma...@gmail.com>.
I don't have the time right now to read your email very carefully, but
from the first glance I would suggest you look at the t:aliasBean tag
of Apache MyFaces!
regards,
Martin
On 9/23/05, rahmoune patrick <js...@yahoo.fr> wrote:
>
> Hi all,
>
> I am new to JSF and MyFaces, it may be a basic question
>
> I would like to do something like:
>
> <t:dataTable value="#{mgr.rowDataModel}" var="row">
> <t:columns value="#{mgr.columnDataModel}" var="column">
> // <h:outputText value="#{mgr.file.url}" /> -------> display the
> url of the subview to be included
> <%@include file="xxxxxxx"%>
> </t:columns>
> </t:dataTable>
>
> where the files contain f:subview definition and rowDataModel and
> columnDataModel are javax.faces.model.DataModel.
>
>
> Here, I do not know how to set the 'xxxxxxx' value of the @include file
> attribute. #{mgr.file.url} does not work in @include
>
> I try to approach the whole thing from the JAVA side using a binding to a
> managed bean
> that return a panel grid something like
>
> <h:panelGrid binding="#{mgr.myPanelGrid}" />
>
> but here, I don't know how to create the subview from the url of the file
> that contains the subview
>
> I may approach the whole thing on a bad way
>
> Can someone can point me to the right direction?
>
> Thank you for your help
>
>
> ________________________________
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez le ici !
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German