[Advanced Documentation] - Linkage Errors: errors in the example
by jessitron
In the Application Reference for v4.0.5, Chapter 1, http://docs.jboss.org/jbossas/guides/j2eeguide/r2/en/html/ch2.chapter.htm...:
Example 1.5 contains four class definitions. The first one, class <C,L1>, seems to have an error. First, on line 3:
anonymous wrote : <Spoofed,L1>L1 x = <Delegated, L2>L2
should be:
anonymous wrote : <Spoofed,L1>L1 x = <Delegated, L2>L2.g()
The text talks about the class <Spoofed,L2> returned by Delegated.g() on this line, but the method call is missing in the example.
The second class defined, <Delegated,L2>, seems to have a subtler, but important, error. On line 2:
anonymous wrote : static <Spoofed,L2>L3 g() {...}
should be:
anonymous wrote : static <Spoofed,L2>L2 g() {...}
If I'm understanding the detailed explanation, the point of this example is that on line 3 of class <C,L1>, the VM realizes that <Delegated,L2> is going to return a SpoofedL2, that is, a Spoofed initiated by L2 because L2 is the class loader that defined Delegated. True?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121381#4121381
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121381
18 years, 5 months
[JBoss Seam] - Conversations doing my head in - help
by mail.micke@gmail.com
Hi
Just picked up the Seam framework again and I'm currently struggling to get conversations working.
My setup:
JSF Mojarra (latest)
Seam 1.2.1
RichFaces 3.1.2
JBoss 4.0.3SP1
Facelets 1.1.14 (I think)
My problem is simple what ever I try I can't get the conversation promoted into a long running one. Or at least that is what I suspect is going on.
I have an action method annotated with @Begin(join=true) , and I am trying these ways of calling it:
| <s:link value="SeamLinkSearch" action="#{cptySearch.search}"/>
| <s:button value="SeamButtonSearch" action="#{cptySearch.search}"/>
| <h:commandButton action="#{cptySearch.search}" value="search"/>
| <a4j:commandButton action="#{cptySearch.search}" value="ajax search" reRender="searchResult"/>
|
At the top of the page I have a #{conversation.id} printout, so I can see that the Id gets incremented for each submit.
The first two Seam components doesn't even invoke the action method, from restore view they jump immediately to render response.
The last two buttons, executes the action but the conversation Id is incremented.
I think I'm missing something simple here... be gentle.
Many thanks,
micke
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121378#4121378
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121378
18 years, 5 months