小编Ben*_*hik的帖子

使用mailto发送带附件的电子邮件

如何使用outlook 2010发送包含附件(本地文件或Intranet中的文件)的电子邮件?

<a href="mailto:a@gmail.com?subject=my report&body=see attachment&attachment=c:\myfolder\myfile.txt">
Run Code Online (Sandbox Code Playgroud)

似乎不起作用.

html

36
推荐指数
1
解决办法
8万
查看次数

如何从JSF支持bean向特定组件添加消息

我有一个h:inputText和一个连接到它的h:消息:

<h:inputText id="myText" value="#{myController.myText}" />
<a4j:outputPanel>
    <h:message for="myText" .../>
</a4j:outputPanel>
Run Code Online (Sandbox Code Playgroud)

我想从java发送消息,方式如下:

FacesContext.getCurrentInstance().addMessage(arg0, arg1);
Run Code Online (Sandbox Code Playgroud)

发送到h:消息,但发送到特定表单中的特定ID.我怎样才能做到这一点?(没有实现验证bean或验证方法 - 意味着没有抛出验证异常).

jsf richfaces jsf-2

17
推荐指数
2
解决办法
5万
查看次数

基于JSF的触摸网站框架

什么是一个很好的基于JSF的框架,用于开发针对触摸智能手机优化的网站(即使用android)?提前致谢.

java mobile jsf android mobile-website

5
推荐指数
1
解决办法
5854
查看次数

使用Objects而不是schema xml时的@PayloadRoot值

我正在使用Objects作为从客户端到服务服务器的消息.如何配置端点以便找到服务?@PayloadRoot似乎不合适,因为我不使用xml架构,而是使用@XmlRootElement注释的对象(即Street)

我的代码:

spring-ws-servlet.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:context="http://www.springframework.org/schema/context"
   xmlns:sws="http://www.springframework.org/schema/web-services"
   xmlns:oxm="http://www.springframework.org/schema/oxm"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
   http://www.springframework.org/schema/web-services http://www.springframework.org/schema/web-services/web-services-2.0.xsd
   http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
   http://www.springframework.org/schema/oxm http://www.springframework.org/schema/oxm/spring-oxm-3.0.xsd">

<context:component-scan base-package="com.coral.project.endpoints"/>

<sws:annotation-driven />

<sws:dynamic-wsdl id="test" portTypeName="TestCase" locationUri="/testService/"
                  targetNamespace="http://www.example.org/schemasDef/test/definitions">
    <sws:xsd location="/WEB-INF/schemasDef/test.xsd"/>
</sws:dynamic-wsdl>

<bean id="springWSClient" class="com.coral.project.endpoints.SpringWSClient">
    <property name="defaultUri" value="http://localhost:8080/parking/springServices/testService/"/>
    <property name="marshaller" ref="marshaller" />
    <property name="unmarshaller" ref="marshaller" />
</bean>

<oxm:jaxb2-marshaller id="marshaller">
    <oxm:class-to-be-bound name="com.coral.project.entity.Street"/>
</oxm:jaxb2-marshaller>
</beans>
Run Code Online (Sandbox Code Playgroud)

客户端:

public class SpringWSClient extends WebServiceGatewaySupport {

public void getSum() throws SOAPException, IOException, TransformerException {
    StreetDao streetDao = SpringUtils.getBean(StreetDao.class);
    Street street = streetDao.findById(1);

    getWebServiceTemplate().marshalSendAndReceive(street);

}
}
Run Code Online (Sandbox Code Playgroud)

终点: …

spring-ws

5
推荐指数
1
解决办法
8400
查看次数

标签 统计

jsf ×2

android ×1

html ×1

java ×1

jsf-2 ×1

mobile ×1

mobile-website ×1

richfaces ×1

spring-ws ×1