[JBoss Seam] - Add versions to seam2 tags?
by paradigmza
Hi,
I deployed a Seam 2 Beta app to Jboss that was running a Seam 1 App.
I get an error while using the seam2beta app that the decorate tag cannot be found
anonymous wrote : com.sun.facelets.tag.TagException: /login.xhtml @22,53 <s:decorate> Tag Library supports namespace: http://jboss.com/products/seam/taglib, but no tag was defined for name: decorate
| at com.sun.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:193)
| at com.sun.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:194)
| at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
| at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
| at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| at javax.xml.parsers.SAXParser.parse(Unknown Source)
| at javax.xml.parsers.SAXParser.parse(Unknown Source)
| at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:232)
| at com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)
| at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:197)
| at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144)
| at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:95)
| at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:496)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:546)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
I can fix this error by deploying the Seam2Beta app to Jboss then the seam1 app.
I am not sure if this behavior is expected? Must I create a Jira? or is this a bug with JBoss? (both apps are deployed as ear files)
Regards,
Sean.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078711#4078711
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078711
18Â years, 8Â months
[JBoss Seam] - Datmodel(Selection with facelets) does not work
by baz
Hello,
today i have a question about DataModelSelection. I have not found an answer for this for more than one year. But now a solution will be greatly appreciated.
This is the starting point: (all code is simplified)
i do have a fully functinal page in my app:
| [...]
| <rich:dataTable id="experimentSiteList" var="experimentSite" value="#{experimentSiteList}">
|
| <rich:column>
| <h:outputText size="5" id="year" value="#{experimentSite.experiment.year}"></h:outputText>
| </rich:column>
| [...]
| <rich:column>
| <s:link id="viewFieldplan" value="Fieldplan"
| action="#{htmlFieldplanBacking.showFieldplan}"
| propagation="begin" target="Fieldplan">
| <f:param name="experimentid"
| value="#{experimentSite.experiment.experimentId}" />
| </s:link>
| </rich:column>
| </rich:dataTable>
|
and the backing contains the datamodel
@DataModel
| private List<ExperimentSite> experimentSiteList;
|
| @DataModelSelection
| @Out(required=false)
| private ExperimentSite selectedExperimentSite;
|
| @Factory("experimentSiteList")
| public void getExperimentSitesByUser() {
| experimentSiteList = experimentQuery.getResultList();
| }
|
|
The experimentSites are shown and when clicking on the link the selectedExperimentSite is set.
The problem is:
We do need more than one of this kind of page, but with different kind of actions.
So the not working solution would be to use facelets:
[This refactored xhtml page does not work]
| <ui:component>
| <rich:dataTable id="experimentSiteList" var="experimentSite" value="#{list}">
|
| <rich:column>
| <h:outputText size="5" id="year" value="#{list}"></h:outputText>
| </rich:column>
| [...]
| <rich:column>
| <ui:insert name="actions"/>
| </rich:column>
| </rich:dataTable>
| </ui:component>
|
The calling page:
| [....]
| <ui:decorate template="myTemplate.xhtml">
| <ui:param name="list" value="experimentSiteList"/>
| <ui:define name="actions">
| <s:link id="viewFieldplan" value="Fieldplan"
| action="#{htmlFieldplanBacking.showFieldplan}"
| propagation="begin" target="Fieldplan">
| <f:param name="experimentid"
| value="#{experimentSite.experiment.experimentId}" />
| </s:link>
| </ui:define>
| </ui:decorate>
| [....]
|
The List of ExperimentSites are rendered as expected. But when clicking on a link the DataModelSelection selectedExperimentSite is null. Why?
Any insight is greatly welcomed.
Or, if you have a working solution, please share it with us. Thanks.
Ciao,
Carsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078706#4078706
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078706
18Â years, 8Â months