[JBoss Seam] - Re: @WebRemote: problem with client site instantiation of ob
by rlhr
I finally got the opportunity to test the code you checked in.
I downloaded jboss-seam-CVS.20060803.zip (which was created after your post).
The interface created for the SelectItem class is:
Seam.Remoting.type.javax$faces$model$SelectItem = function() {
| this.value = undefined;
| this.label = undefined;
| this.disabled = undefined;
| this.description = undefined;
| }
|
| Seam.Remoting.type.javax$faces$model$SelectItem.__name = "javax.faces.model.SelectItem";
| Seam.Remoting.type.javax$faces$model$SelectItem.__metadata = [
| {field: "value", type: "bean"},
| {field: "label", type: "str"},
| {field: "disabled", type: "bool"},
| {field: "description", type: "str"}];
|
| Seam.Remoting.registerType(Seam.Remoting.type.javax$faces$model$SelectItem);
|
|
The xml received back from the server is:
<envelope>
| <header>
| <context><conversationId>11</conversationId></context>
| </header>
| <body>
| <result id="1">
| <value>
| <bag>
| <element><ref id="0"/></element>
| <element><ref id="1"/></element>
| <element><ref id="2"/></element>
| </bag>
| </value>
| <refs>
| <ref id="0">
| <bean type="javax.faces.model.SelectItem">
| <member name="value"><number>-1</number></member>
| <member name="label"><str>AAAAAA</str></member>
| <member name="disabled"><bool>false</bool></member>
| <member name="description"><null/></member>
| </bean>
| </ref>
| <ref id="1">
| <bean type="javax.faces.model.SelectItem">
| <member name="value"><number>2</number></member>
| <member name="label"><str>BBBBB</str></member>
| <member name="disabled"><bool>false</bool></member>
| <member name="description"><null/></member>
| </bean>
| </ref>
| <ref id="2">
| <bean type="javax.faces.model.SelectItem">
| <member name="value"><number>3</number></member>
| <member name="label"><str>CCCCC</str></member>
| <member name="disabled"><bool>false</bool></member>
| <member name="description"><null/></member>
| </bean>
| </ref>
| </refs>
| </result>
| </body>
| </envelope>
|
I was able to read the value fine using the properties "label" and "value".
I noticed that the getters and setters are not generated for that bean.
Is that in purpose?
Anyway, that solve my problem. Awesome job!
I didn't try the other functionnality you mentioned but actually I might also need it soon and therefore test it at the same time.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962849#3962849
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962849
19 years, 9 months
[Persistence, JBoss/CMP, Hibernate, Database] - Custom ejbCreate() generates bad INSERT-Statement (4.0.2)
by Oyabun
Hi
Given the following EntityBean:
| Person
| -------
| Name
| Gender
| Age (ORACLE DEFAULT 18)
|
and the following custom ejbCreate() call:
ejbCreate("Alex","m")
why is the generatet INSERT - Statement like this:
INSERT INTO PERSON(NAME, GENDER, AGE) VALUES ("Alex","m",NULL)
when it should be:
INSERT INTO PERSON(NAME, GENDER) VALUES ("Alex","m")
The Oracle Database could insert the DEFAULT Value by itself but JBoss attaches the NULL value. Can someone confirm this or link me to a documentation? Thanks.
--
Alex
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962847#3962847
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962847
19 years, 9 months
[EJB 3.0] - Setting timeout for EJB3 session beans
by hubaer
Hi all,
I am a little bit confused about setting timeout for EJB3 session beans. I searched all the web and the jboss forums, but get no answers.
I tried to configure the timeout in the standardjboss.xml with no effect. A setting of the parameter <remover-period>, <max-bean-life>, <overager-period> and <max-bean-age> in diverse container configuration to lower values seemed to be ignored.
I didn't find a configuration file for EJB3 to set this values.
I noticed the a "job" passivate all 10 minutes my inacitve SFSB.
Therefore my questions:
Does EJB3-SFSB uses the standardjboss.xml configuration?
Is their a special configuration file for EJB3 and where is it?
How can I specify the timeout for a SFSB?
Thanks in advance for your answers,
Marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962844#3962844
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962844
19 years, 9 months
[JBoss Portal] - Page-level parameters for requests: how to create bookmarkab
by thomasra
JBossAS 4.0.4.GA
JBossPortal 2.2.1-SP3
The only way to pass a parameter to a portlet AND allow that portlet to render first (before other portlets on that page), is by using action urls. These urls force a reload and are therefore useless for "nice" url's.
Since you can do a ctrl:cmd=render&ctrl:page=Portal.Page, couldn't parameters to that page be delegated to each window on that page?
My case is one where multiple portlets on a single page require the same data based on a parameter (read-only), such as an id for a person, and this page needs to be bookmarkable.
Reiterating:
* With action urls everything except bookmarking works
* With render urls bookmarking works, but ordering is undefined, so the portlet getting the parameter works, but it cannot share that data with other portlets because it might not be called first
* Going out-of-spec by casting the render request to a jboss-specific request could have worked if the class hierarchy exposed the http servlet request which is stored as a protected variable, and then have all portlets get the parameters
What are other people doing with JBossPortal to address these issues?
How do you create something like:
/portal/portal/MyPortal/Users/johndoe
....as a dynamic page that doesn't redirect.
(And no: using a page with a single portlet doesn't quite cut it)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962843#3962843
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962843
19 years, 9 months