-
1. Re: Rendering jsf on the fly
zergspirit Jul 22, 2008 11:33 AM (in response to greatguns)I don't think you can do it like that.
If you bind this to a string value of a session bean and display it in a jsf file, it won't be rendered, but simply displayed as a normal string as far as I know. -
2. Re: Rendering jsf on the fly
greatguns Jul 23, 2008 6:33 AM (in response to greatguns)
Adrien Orsier wrote on Jul 22, 2008 11:33:
I don't think you can do it like that.
If you bind this to a string value of a session bean and display it in a jsf file, it won't be rendered, but simply displayed as a normal string as far as I know.yea....i am trying to create a breadcrumb trail for one of my sites.....so is there anyway i can do that in seam easily?
-
3. Re: Rendering jsf on the fly
zergspirit Jul 23, 2008 3:21 PM (in response to greatguns)Depends how your urls are made mostly.
You could store your objects in a list you use to generate this breakcrumbtrail, something like:<ui:repeart value="#{myObjectList}" var="object"> <s:link ...> <f:param name="" value="#{object.id}"/></s:link> </ui:repeat>
Or you could use a long running conversation and the conversation stack.
Basically nest do apropagation="nest"
on all your s:link, and display the conversation stack which will represent the break crumb trail like that:<h:form rendered="#{not empty conversationStack}"> <div id="breadcrumbs"> <ui:repeat value="#{conversationStack}" var="entry"> <h:outputText value=" > "/> <h:commandLink value="#{entry.description}" action="#{entry.select}"/> </ui:repeat> </div> <br /> </h:form>
conversationStack is handled by Seam, and the 'description' of entry will be the description you put to a jsf page in the xx.page.xml file, such as:
<description>#{myObjectHome.instance.name}</description>
This second solution seems far better I think.
-
4. Re: Rendering jsf on the fly
bartdp Oct 27, 2008 3:52 PM (in response to greatguns)Is it possible to explain this in detail?
I just need to make a breadcrumb in my webapplication.
This is also useful for other users.Thx, Bart