[JBoss Seam] - Vanishing component....
by tony.herstellï¼ gmail.com
This gets "actioned":
|
| <s:button value="#{messages.button_add_image}"
| action="#{uploadController.startUpload(the_user)}" rendered="#{the_user.picture == null}"/>
|
|
which triggers this (from debugger):
pages/organisation/organisationFind.xhtml:uploadController.startUpload(the_organisation)
but the uploadController component is now not found...
but does exist...
|
| /*
| InterceptionType.NEVER obviously has the side effect of preventing @Injection
| but it also prevents IllegalStateExceptions due to Seam not being initialized
| during requests to this bean from the current implementation of the FileUploadManager. As the
| FileUploadServlet gets integrated into the normal Servlet mechanism,
| this will go away.
| */
| @Intercept(InterceptionType.NEVER)
| @Stateful // A component stays in existance for the duration of the Scope (conversation in this instance).
| @Name("uploadController") // Name used within SEAM for an instance of this class.
| @Conversational // Scope that this class exists in.
| public class UploadControllerImpl implements UploadController, Serializable {
|
|
Here it is...
|
| 11:02:44,031 INFO [Component] Component: uploadController, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: nz.co.risingstars.actions.upload.UploadControllerImpl, JNDI: risingstars/UploadControllerImpl/local
|
|
Any suggestions?
Am using IceFaces 1.6DR#2+Greg Dick fix & Seam 1.2
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031349#4031349
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031349
19Â years, 1Â month
[JBossWS] - Re: WSDL-location help?
by zauberlehrling
The JSR181 specification (http://jcp.org/en/jsr/detail?id=181) says in 4.1 Annotation: javax.jws.WebService:
anonymous wrote : wsdlLocation:
| The location of a pre-defined WSDL
| describing the service. The wsdlLocation is
| a URL (relative or absolute) that refers to a
| pre-existing WSDL file. The presence of a
| wsdlLocation value indicates that the
| service implementation bean is implementing
| a pre-defined WSDL contract. The JSR-181
| tool MUST provide feedback if the service
| implementation bean is inconsistent with the
| portType and bindings declared in this
| WSDL. Note that a single WSDL file might
| contain multiple portTypes and multiple
| bindings. The annotations on the service
| implementation bean determine the specific
| portType and bindings that correspond to
| the Web Service.
My interpretation is that something like
| @Webservice(..
| wsdlLocation="http:\\ .. "
| ..)
|
should be possible.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031348#4031348
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031348
19Â years, 1Â month
[JBossCache] - Questions regarding performance of read-only operations
by haviv.roshï¼ gmail.com
Hi
1)I was wondering why read operations - such as POJO aspectized getters and PojoCache.getObject method - have to be so slow ...
After reviewing the code - it seems that even for Read Only operations there is a Method call to get the data via the JChannel:
| public Node get(Fqn fqn) throws CacheException
| {
| MethodCall m = MethodCallFactory.create(MethodDeclarations.getNodeMethodLocal, new Object[]{fqn});
| return (Node) invokeMethod(m);
| }
|
I was wondering what is the reason for doing that ?
After all cache is read-mostly and read operations should as fast as regular direct method calls.
2)Another question is - Are there any optimizations if the cluster member size is 0 ? (I didn't see any - although in the JGroups Distributed map examples there are)
If there are no members on the channel why do so much work ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031344#4031344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031344
19Â years, 1Â month
[JBoss Portal] - t:inputfileupload inside a Myfaces JSF portlet on JBoss Port
by kevinjj
Has a anybody successfully used a MyFaces Tomahawk inputfileupload component inside a JSF portlet inside of JBoss Portal ?
We have many MyFaces Portlets (using MyFacesGenericPortlet mode) running inside of JBoss Portal, using Tomahawk components such as the datatable and server side Tree2, but for some reason the inputfiledownload doesnt work correctly, it works inside a webapp on JBoss correctly. The control is displayed correctly inside the portal, but when the h:form enctype is sent to "multipart/form-data" the upload action fails to trigger,the actions do get called when the enctype is removed, but ofcourse the fileupload will fail because the request has to contain multipart data for the apache fileupload api to process correctly. I found a somewhat similar problem related to the seam fileupload component. are they related ?
http://jira.jboss.com/jira/browse/JBSEAM-947
Using the Apache Portal bridges is not an option since these are already production level portlets running using the MyFacesGenericPortlet bridge.
Can somebody please provide some pointers ?
Thanks,
Kevin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031338#4031338
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031338
19Â years, 1Â month