[JBoss Seam] - Binding HtmlDataTable to h:dataTable in Seam
by asookazian
Is it possible to do the following in Seam1.2.1.GA? I need a solution for a dataTable that can handle a dynamic column resultset from stored proc.
snippet of .xhtml:
<h:dataTable value="#{userRoleSearch.myList}" var="myItem" binding="#{userRoleSearch.dynamicDataTable}"/>
snippet of userRoleSearch SFSB:
| public HtmlDataTable getDynamicDataTable() {
| if (dynamicDataTable == null) {
| viewRolesData(selectedChoices);
| populateDynamicDataTable();
| }
|
| return dynamicDataTable;
| }
anonymous wrote : The @DataModel Seam annotation exposes an attribute of type java.util.List to a JSF page as an instance of javax.faces.model.DataModel. The <h:dataTable> supports data binding to a collection of data objects represented by a DataModel instance.
http://weblogs.java.net/blog/caroljmcdonald/archive/2007/07/sample_applic...
In this case, I am not using @DataModel and the return type is HtmlDataTable which dynamically replaces the <h:dataTable> rendering based on the # of columns in the resultset.
The solution above works fine with JSF + managed bean, but it doesn't work with Seam (I get JSF h:dataTable tag formatting error).
Will I need to use a hybrid Seam SFSB + managed bean approach?? thx.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089821#4089821
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089821
18 years, 6 months
[JBossWS] - Errors compiling jbossws-samples-1.2.0.GA
by ansantharam
Using JDK1.4 with JBoss-WS 1.2GA
During the compilation of the sample applications getting the following errors:
compile14:
[javac] Compiling 106 source files to C:\jbossws-1.2.1.GA\jbossws-samples-1.2.0.GA\output\classes
[javac] C:\jbossws-1.2.1.GA\jbossws-samples-1.2.0.GA\src\main\java\org\jboss\test\ws\JBossWSTest.java:41: cannot access org.jb
oss.ws.core.utils.DOMWriter
[javac] bad class file: C:\jbossws-1.2.1.GA\jbossws-samples-1.2.0.GA\lib\jbossws-core.jar(org/jboss/ws/core/utils/DOMWriter.cl
ass)
[javac] class file has wrong version 49.0, should be 48.0
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
[javac] import org.jboss.ws.core.utils.DOMWriter;
[javac] ^
[javac] 1 error
BUILD FAILED
C:\jbossws-1.2.1.GA\jbossws-samples-1.2.0.GA\build.xml:361: Compile failed; see the compiler error output for details.
Any help is appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089816#4089816
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089816
18 years, 6 months
[JBossWS] - SOAPMessage error: setProperty must be overridden by all sub
by viniciuscarvalho
Hello there! From what I've searched so far, this error happens when I have a sun RI SAAJ in my classloader. I've searched my entire harddisk (literally) for a reference to anothar SAAJ implementation that's not jboss-saaj.jar. And could not find. I've also used some operations on the classloader mbean (output bellow) to find who was loading the other instance. And yet, nothing was found. The error happens when my WebServiceProvider using ServiceMode=Mode.MESSAGE is invoked.
Anything else should I be looking for?
Regards
| getPackage
| org.jboss.mx.loading.UnifiedClassLoader3@6f9b8e{ url=null ,addedOrder=2}, org.jboss.mx.loading.UnifiedClassLoader3@1b70f9e{ url=file:/java/servers/jboss-messaging/server/messaging/deploy/jboss-messaging.sar/ ,addedOrder=12},
| org.jboss.mx.loading.UnifiedClassLoader3@1f6d2e3{ url=file:/java/servers/jboss-messaging/server/messaging/deploy/jbossws.sar/ ,addedOrder=13}
|
|
| displayClassInfo
| javax.xml.soap.SOAPMessage Information
| Repository cache version:
| javax.xml.soap.SOAPMessage(8f6d64).ClassLoader=null
| ++++Null CodeSource
| Implemented Interfaces:
|
| ### Instance0 found in UCL: org.jboss.mx.loading.UnifiedClassLoader3@1f6d2e3{ url=file:/java/servers/jboss-messaging/server/messaging/deploy/jbossws.sar/ ,addedOrder=13}
|
|
| ### Instance1 via UCL: org.jboss.system.server.NoAnnotationURLClassLoader@13caecd
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089815#4089815
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089815
18 years, 6 months
[JBoss Seam] - Re: #{conversationList} appears to be empty
by jacob.orshalick
"djfjboss" wrote : Actually, there appears to be a little twist - it only works if I leave this kludge in the @Begin annotated method:
|
| Conversation c = Conversation.instance().begin();
|
| I put this in while stumbling around in the dark.
|
| The @End method seems to work fine but @Begin doesn't actually seem to begin a conversation.
I ran into this same issue awhile back. This appears to be a bug. If you go to another page and come back, or do a GET request on the page, you will see the conversationList populated with your entry. Unless I started the conversation the first time the page was accessed, I would run into this (i.e. a method executes with @Begin and returns you to the page).
It appears that the problem is the current implementation of conversationList is a factory method scoped to the PAGE. A patch that works for me is to make the ConversationList a manager component rather than a factory method. The patch is:
@Scope(ScopeType.STATELESS)
| @Name("org.jboss.seam.core.conversationList")
| @AutoCreate
| @Install(precedence=BUILT_IN)
| @BypassInterceptors
| public class ConversationList
| {
|
| protected List<ConversationEntry> createConversationEntryList()
| {
| ConversationEntries conversationEntries = ConversationEntries.instance();
|
| if (conversationEntries==null)
| {
| System.out.println("ConversationEntries is null!");
|
| return Collections.EMPTY_LIST;
| }
| else
| {
| System.out.println("ConversationEntries is not null... there are "
| + conversationEntries.getConversationEntries().size() + " entries");
|
| Set<ConversationEntry> orderedEntries = new TreeSet<ConversationEntry>();
| orderedEntries.addAll( conversationEntries.getConversationEntries() );
| List<ConversationEntry> conversationEntryList =
| new ArrayList<ConversationEntry>( conversationEntries.size() );
| for ( ConversationEntry entry: orderedEntries )
| {
| if ( entry.isDisplayable() && !Session.instance().isInvalid() )
| {
| conversationEntryList.add(entry);
| }
| }
| return conversationEntryList;
| }
| }
|
| @Unwrap
| public List<ConversationEntry> getConversationEntryList()
| {
| return createConversationEntryList();
| }
| }
I will submit a JIRA issue for this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089807#4089807
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089807
18 years, 6 months