[JBoss Seam] - Re: <s:selectItems> not recognized in seam 1.2.0 patch1
by juangiovanolli
yes. this is:
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
| <ui:component xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:t="http://myfaces.apache.org/tomahawk"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:c="http://java.sun.com/jstl/core"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
| xmlns:platform="http://www.santexstandard.com/jsf"
| xmlns:darwin="http://www.santexstandard.com/jsf/darwin"
| xmlns:iu="http://www.sun.com/web/ui">
| <ui:decorate template="formInputTemplate.xhtml">
| <ui:define name="input">
|
| <c:if test="#{not empty inputLabel}">
| <c:set var="inputLookupKey" value="#{inputLabel}" />
| </c:if>
|
| <c:if test="#{not empty fieldName and empty inputLabel}">
| <c:set var="inputLookupKey" value="#{itemName}.#{fieldName}" />
| </c:if>
|
| <c:if test="#{empty inputType}">
| <c:set var="inputType" value="text" />
| </c:if>
|
| <c:if test="#{empty inputId}">
| <c:set var="inputId" value="#{fieldName}" />
| </c:if>
|
| <c:if test="#{empty fieldName and inputType == 'location'}">
| <c:set var="inputId" value="location" />
| </c:if>
|
| <c:if test="#{empty size}">
| <c:set var="size" value="5" />
| </c:if>
|
| <c:if test="#{empty required}">
| <c:set var="required" value="false" />
| </c:if>
|
| <c:if test="#{empty disabled}">
| <c:set var="disabled" value="false" />
| </c:if>
|
| <c:if test="#{empty isFromBackingBean}">
| <c:set var="isFromBackingBean" value="true" />
| </c:if>
|
|
| <!-- pxh -->
| <c:if test="#{empty bindingValue and isFromBackingBean == 'true'}">
| <c:choose>
| <c:when test="#{formType == 'search'}">
| <c:set var="bindingValue" value="#{backingBean[fieldName].value}" />
| </c:when>
| <c:otherwise>
| <c:set var="bindingValue" value="#{backingBean[fieldName]}" />
| </c:otherwise>
| </c:choose>
| </c:if>
|
| <c:if test="#{empty converterId}">
| <c:choose>
| <c:when test="#{formType == 'search'}">
| <c:choose>
| <c:when test="#{inputType == 'combobox'}">
| <c:set var="converterId" value="idSearchObjectConverter" />
| </c:when>
| <c:otherwise>
| <c:set var="converterId" value="defaultSearchObjectConverter" />
| </c:otherwise>
| </c:choose>
| </c:when>
| <c:otherwise>
| <c:set var="converterId" value="simpleIdObjectConverter" />
| </c:otherwise>
| </c:choose>
| </c:if>
| <!-- end pxh -->
|
| <c:if test="#{not empty nestedObject}">
| <c:set var="bindingValue" value="#{nestedObject[fieldName]}" />
| </c:if>
|
| <h:outputLabel for="#{inputId}">
| <c:if test="#{required == 'true'}">
| <span>*</span>
| </c:if>
| <h:outputText value="#{messages[inputLookupKey]}" />
| </h:outputLabel>
|
| <s:decorate>
|
| <f:facet name="aroundInvalidField">
| <s:div styleClass="error" />
| </f:facet>
| <f:facet name="afterInvalidField">
| <darwin:formInputMessage />
| </f:facet>
|
| <c:choose>
| <c:when test="#{inputType == 'text'}">
| <h:inputText id="#{inputId}" value="#{bindingValue}"
| required="#{required}" disabled="#{disabled}" />
| </c:when>
| <c:when test="#{inputType == 'number'}">
| <h:inputText id="#{inputId}" value="#{bindingValue}"
| required="#{required}" disabled="#{disabled}">
| <f:converter converterId="#{converterId}" />
| </h:inputText>
| </c:when>
| <c:when test="#{inputType == 'calendar'}">
| <platform:calendar inputId="#{inputId}"
| bindingValue="#{bindingValue}" required="#{required}"
| disabled="#{disabled}" />
| </c:when>
| <c:when test="#{inputType == 'secret'}">
| <h:inputSecret id="#{inputId}" value="#{bindingValue}"
| required="#{required}" disabled="#{disabled}" />
| </c:when>
| <c:when test="#{inputType == 'textArea'}">
| <h:inputTextarea id="#{inputId}" value="#{bindingValue}"
| required="#{required}" />
| </c:when>
|
| <c:when test="#{inputType == 'combobox'}">
| <h:selectOneMenu id="#{inputId}" value="#{bindingValue}"
| required="#{required}" disabled="#{disabled}">
| <c:if test="#{not empty valueChangeListener}">
| <f:attribute name="valueChangeListener"
| value="#{valueChangeListener}" />
| <f:attribute name="onchange" value="submit()" />
| </c:if>
| <c:if test="#{not empty enumType}">
| <f:converter converterId="enumConverter" />
| <c:forEach items="#{darwinWebUtil[enumType]}"
| var="enumItemValue">
| <c:set var="enumItemLabel"
| value="#{enumItemValue.class.name}.#{enumItemValue}" />
| <f:selectItem itemValue="#{enumItemValue}"
| itemLabel="#{messages[enumItemLabel]}" />
| </c:forEach>
| </c:if>
| <c:if test="#{empty enumType}">
| <f:converter converterId="#{converterId}" />
| <f:selectItems value="#{itemsList}" />
| </c:if>
| </h:selectOneMenu>
| </c:when>
|
| <c:when test="#{inputType == 'standardCombobox'}">
| <h:selectOneMenu id="#{inputId}" value="#{bindingValue}"
| required="#{required}" disabled="#{disabled}">
| <c:if test="#{not empty valueChangeListener}">
| <f:attribute name="valueChangeListener"
| value="#{valueChangeListener}" />
| <f:attribute name="onchange" value="submit()" />
| </c:if>
| <f:selectItems value="#{itemsList}" />
| </h:selectOneMenu>
| </c:when>
|
| <c:when test="#{inputType == 'noFacesListBox'}">
| <select id="#{inputId}" size="#{size}">
| <c:forEach items="#{itemsList}" var="itemValue">
| <option value="#{itemValue}">#{itemValue}</option>
| </c:forEach>
| </select>
| </c:when>
|
| <c:when test="#{inputType == 'checkbox'}">
| <h:selectBooleanCheckbox id="#{inputId}" value="#{bindingValue}"
| disabled="#{disabled}" />
| </c:when>
|
| <c:when test="#{inputType == 'email'}">
| <h:inputText id="#{inputId}" value="#{bindingValue}"
| required="#{required}" disabled="#{disabled}">
| <t:validateEmail />
| </h:inputText>
| </c:when>
|
| <c:when
| test="#{inputType == 'location' and
| not empty countryFldName and
| not empty regionFldName and
| not empty cityFldName and
| empty fieldName}">
| <!-- DISPLAY COUNTRIES -->
| <a4j:status startStyle="font-color:red" stopText="Ready"
| startText="Request under process" /> -->
| <h:selectOneMenu id="#{countryFldName}"
| value="#{backingBean[countryFldName]}" required="#{required}"
| disabled="#{disabled}">
| <f:selectItem itemLabel="arg" itemValue="arg" />
| <f:selectItem itemLabel="bra" itemValue="bra" />
| </h:selectOneMenu>
| <!-- DISPLAY REGIONS -->
| <h:selectOneMenu id="#{regionFldName}"
| value="#{backingBean[regionFldName]}" required="#{required}"
| disabled="#{disabled}">
| <f:selectItem itemLabel="arg" itemValue="arg" />
| <f:selectItem itemLabel="bra" itemValue="bra" />
| </h:selectOneMenu>
| <!-- DISPLAY CITIES -->
| <h:selectOneMenu id="#{cityFldName}"
| value="#{backingBean[cityFldName]}" required="#{required}"
| disabled="#{disabled}">
| <f:selectItem itemLabel="arg" itemValue="arg" />
| <f:selectItem itemLabel="bra" itemValue="bra" />
| </h:selectOneMenu>
| </c:when>
|
| <c:when test="#{inputType == 'oneToMany'}" >
|
| <h:selectManyListbox id="#{inputId}" value="#{bindingValue}" title="Selected Values" >
| <f:converter converterId="#{converterId}" />
| <f:selectItems value="#{roleHome.allValues}" />
| </h:selectManyListbox>
|
|
|
| </c:when>
| </c:choose>
|
| <!-- Insert nested components -->
| <ui:insert />
| </s:decorate>
|
| </ui:define>
| </ui:decorate>
|
| </ui:component>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029936#4029936
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029936
19Â years, 1Â month
[JBoss jBPM] - Re: console url changed to http://localhost:8080/jbpm-consol
by georgiosd
I can get it running and I will login fine but I get an error when I try and start a process:
anonymous wrote : javax.faces.FacesException: Stream error while reading XML: Connection refused: connect
| at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:522)
| at com.ctc.wstx.sr.WstxStreamReader.next(WstxStreamReader.java:978)
| at org.jbpm.webapp.tag.jbpm.ui.XmlPrinter.encodeBegin(XmlPrinter.java:113)
| at org.jbpm.webapp.tag.jbpm.ui.ComponentBase.doEncode(ComponentBase.java:31)
| at org.jbpm.webapp.tag.jbpm.ui.ComponentBase.doEncode(ComponentBase.java:58)
| at org.jbpm.webapp.tag.jbpm.ui.Tab.encodeChildren(Tab.java:112)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
| at org.jbpm.webapp.application.JbpmViewHandler.renderView(JbpmViewHandler.java:58)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029935#4029935
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029935
19Â years, 1Â month
[JBossWS] - Why interface for EJB3 webservices?
by zauberlehrling
Hi,
I'm investigating your examples in jbossws-samples-1.2.0.SP1.
In your example for EJB3 webservices you use two classes:
1) An interface (EJB3RemoteInterface)
2) The stateless session bean implementing the operation of the webservice (EJB3Bean01)
..
| // standard JSR181 annotations
| @WebService(name = "EndpointInterface", targetNamespace = "http://org.jboss.ws/samples/jsr181ejb", serviceName = "TestService")
| @SOAPBinding(style = SOAPBinding.Style.RPC)
|
| // standard EJB3 annotations
| @Remote(EJB3RemoteInterface.class)
| @RolesAllowed("friend")
| @Stateless
|
| // jboss propriatary annotations
| @RemoteBinding(jndiBinding = "/ejb3/EJB3Bean01")
| @WebContext(authMethod="BASIC", transportGuarantee="NONE", secureWSDLAccess=false)
| @SecurityDomain("JBossWS")
| public class EJB3Bean01 implements EJB3RemoteInterface
| {
| @WebMethod
| @WebResult(name = "result")
| public String echo(@WebParam(name = "String_1") String input)
| {
| return input;
| }
| }
I also have a small session bean / webservice :
@WebService
| @Stateless
| public class EjbEndpoint {
|
| @WebMethod
| public String sayHello(String name)
| {
| return "Hello "+name+"!";
| }
| }
and I can successfully deploy this session bean / webservice to jboss-5 Beta 2. Even I am able to call the webservice.
My question: What's the purpose of the interface? Have I missed something?
Thanks in adavance!
Frank
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029931#4029931
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029931
19Â years, 1Â month