1 2 3 Previous Next 39 Replies Latest reply on May 30, 2007 4:18 PM by dsmith1 Go to original post
      • 30. Re: Seam CVS now on JBoss AS 4.2 CR1
        tcavaleiro

         

        "christian.bauer@jboss.com" wrote:
        Get some real internet access and use a real CVS client, then you can build all the documentation you need.


        Lol. I will email the network admin but I think he won't listen to me.


        And yeah, "get internet access" is a great solution... but currently not available.


        Ok, thanks anyway!

        I will stick with two different server instances...

        • 31. Re: Seam CVS now on JBoss AS 4.2 CR1

           

          "tcavaleiro" wrote:
          can anybody send me the booking example (latest version)?

          I'm getting the JBoss Seam through CVSGRAB 2.3 but the program throws a bunch of errors

          While you're not specifying the errors: maybe you can try saving into the root of your disk, to avoid loooong paths your OS might not support? You can also peek into the missing files using the fisheye pages.

          • 32. Re: Seam CVS now on JBoss AS 4.2 CR1
            tcavaleiro

            Thanks avbentem.

            But meanwhile I found this (http://cruisecontrol.jboss.com/cc/artifacts/jboss-seam-builds).
            It isn't updated in "realtime", but it gave me what I need! :)


            About the errors using CVSGRAB, since I was so focused on "getting the examples" and after seeing that JBoss site isn't placed on the list of "Sites tested with CVSGrab", I ignored the errors meaning (bad thing)... but probably the error was related with that.

            Thanks anyway!

            • 33. Re: Seam CVS now on JBoss AS 4.2 CR1

              On May 11th, JBoss AS 4.2.0.GA has been released: download, readme.

              Arjan.

              • 34. s:validateAll throwing
                javabr

                Guys,

                I just moved to jboss 4.2.0 GA w/ seam cvs. Could you please help me get out on it ?

                After solve some javascript problems adding on f:view the contentType="text/html" I am facing a new problem: (it was working on 4.0.2 and seam 1.2.0GA)

                The "component has no value attribute: .." message rises in a selectOneMenu like this:


                <h:outputLabel for="workspace">
                #{messages['labels.taskEdit.workspace']}
                *
                </h:outputLabel>
                <s:decorate id="workspaceDecoration">
                <h:selectOneMenu value="#{taskHome.instance.workspace}"
                id="workspace" converter="workspaceConverter" immediate="true"
                onchange="this.form.submit();" disabled="#{taskHome.managed}"
                valueChangeListener="#{taskHome.workspaceChanged}">
                <f:selectItem itemValue="" itemLabel="" id="workspacenullitem" />
                <f:selectItems value="#{workspaceList.allFromLoggedActor}" />
                </h:selectOneMenu>
                </s:decorate>



                my workspaceConverter:


                public class WorkspaceConverter implements Converter {

                /** Creates a new instance */
                public WorkspaceConverter() {
                }

                public Object getAsObject(FacesContext facesContext, UIComponent uIComponent, String string) throws ConverterException {
                if (string == null || string.equals("")) {
                return null;
                }
                Workspace vo = ((EntityManager) Component.getInstance("entityManager")).find(Workspace.class, Integer.valueOf(string));
                return vo;
                }

                public String getAsString(FacesContext facesContext, UIComponent uIComponent, Object object) throws ConverterException {
                if (object == null || object.equals("")) {
                return (String) object;
                }
                return String.valueOf(((Workspace) object).getId());
                }



                what I am doing wrong?

                1) this same error happens in other parts in my system (I have used this selectonemenus + this same king of converter everywhere
                2) I am getting no errors on jboss start.

                • 35. Re: Seam CVS now on JBoss AS 4.2 CR1
                  javabr

                  I am sorry, I forget:

                  My components.xml:

                  <?xml version="1.0" encoding="UTF-8"?>
                  <components xmlns="http://jboss.com/products/seam/components"
                   xmlns:core="http://jboss.com/products/seam/core"
                   xmlns:web="http://jboss.com/products/seam/web"
                   xmlns:drools="http://jboss.com/products/seam/drools"
                   xmlns:security="http://jboss.com/products/seam/security"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xmlns:mail="http://jboss.com/products/seam/mail"
                   xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd
                   http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-1.2.xsd
                   http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd
                   http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd
                   http://jboss.com/products/seam/web http://jboss.com/products/seam/web-1.2.xsd">
                  
                   <core:init debug="true" jndi-pattern="@jndiPattern@" />
                  
                   <core:manager concurrent-request-timeout="500"
                   conversation-timeout="120000" conversation-id-parameter="cid"
                   conversation-is-long-running-parameter="clr" />
                  
                   <core:managed-persistence-context name="entityManager"
                   auto-create="true"
                   persistence-unit-jndi-name="java:/etaskEntityManagerFactory" />
                  
                   <core:ejb installed="@embeddedEjb@" />
                  
                   <drools:rule-base name="securityRules">
                   <drools:rule-files>
                   <value>/security.drl</value>
                   </drools:rule-files>
                   </drools:rule-base>
                  
                   <security:identity
                   authenticate-method="#{authenticator.authenticate}"
                   security-rules="#{securityRules}" remember-me="true" />
                  
                   <event type="org.jboss.seam.notLoggedIn">
                   <action expression="#{redirect.captureCurrentView}" />
                   </event>
                   <event type="org.jboss.seam.postAuthenticate">
                   <action expression="#{redirect.returnToCapturedView}" />
                   </event>
                  
                   <!-- For use with jBPM pageflow or process management -->
                   <!--
                   <core:jbpm>
                   <core:process-definitions></core:process-definitions>
                   <core:pageflow-definitions></core:pageflow-definitions>
                   </core:jbpm>
                   -->
                  
                   <web:multipart-filter create-temp-files="true"
                   max-request-size="100000000" url-pattern="*.seam" />
                  
                   <mail:mail-session session-jndi-name="java:/Mail" />
                  
                   <mail:mail-session host="mail.bittecnologia.com" />
                  
                  
                   <core:resource-bundle>
                   <core:bundle-names>
                   <value>messages</value>
                   </core:bundle-names>
                   </core:resource-bundle>
                  
                   <core:dispatcher />
                  
                  </components>
                  



                  My web.xml:


                  <?xml version="1.0" encoding="UTF-8"?>
                  <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
                  
                   <description>workflow for everything</description>
                   <display-name>eTask</display-name>
                  
                   <!-- Ajax4jsf (must come first!) -->
                  
                   <filter>
                   <filter-name>ajax4jsf</filter-name>
                   <filter-class>org.ajax4jsf.Filter</filter-class>
                   </filter>
                  
                   <filter-mapping>
                   <filter-name>ajax4jsf</filter-name>
                   <url-pattern>*.seam</url-pattern>
                   <dispatcher>REQUEST</dispatcher>
                   <dispatcher>FORWARD</dispatcher>
                   <dispatcher>INCLUDE</dispatcher>
                   </filter-mapping>
                  
                   <context-param>
                   <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
                   <param-value>
                   org.jboss.seam.ui.facelet.SeamFaceletViewHandler
                   </param-value>
                   </context-param>
                  
                   <!-- Seam -->
                  
                   <listener>
                   <listener-class>
                   org.jboss.seam.servlet.SeamListener
                   </listener-class>
                   </listener>
                  
                   <filter>
                   <filter-name>Seam Filter</filter-name>
                   <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
                   </filter>
                  
                   <filter-mapping>
                   <filter-name>Seam Filter</filter-name>
                   <url-pattern>/*</url-pattern>
                   </filter-mapping>
                  
                   <servlet>
                   <servlet-name>Seam Resource Servlet</servlet-name>
                   <servlet-class>
                   org.jboss.seam.servlet.ResourceServlet
                   </servlet-class>
                   </servlet>
                  
                   <servlet-mapping>
                   <servlet-name>Seam Resource Servlet</servlet-name>
                   <url-pattern>/seam/resource/*</url-pattern>
                   </servlet-mapping>
                  
                   <!-- Facelets development mode (disable in production) -->
                  
                   <context-param>
                   <param-name>facelets.DEVELOPMENT</param-name>
                   <param-value>true</param-value>
                   </context-param>
                  
                   <context-param>
                   <param-name>facelets.LIBRARIES</param-name>
                   <param-value>
                   /WEB-INF/creator.taglib.xml;/WEB-INF/bit.taglib.xml
                   </param-value>
                   </context-param>
                  
                   <!-- JSF -->
                   <context-param>
                   <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                   <param-value>server</param-value>
                   </context-param>
                  
                   <context-param>
                   <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                   <param-value>.xhtml</param-value>
                   </context-param>
                  
                   <servlet>
                   <servlet-name>ThemeServlet</servlet-name>
                   <servlet-class>
                   com.sun.rave.web.ui.theme.ThemeServlet
                   </servlet-class>
                   </servlet>
                  
                  
                   <servlet-mapping>
                   <servlet-name>ThemeServlet</servlet-name>
                   <url-pattern>/etask/theme/*</url-pattern>
                   </servlet-mapping>
                  
                   <servlet-mapping>
                   <servlet-name>ThemeServlet</servlet-name>
                   <url-pattern>/theme/*</url-pattern>
                   </servlet-mapping>
                  
                   <servlet>
                   <servlet-name>Faces Servlet</servlet-name>
                   <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                   <load-on-startup>1</load-on-startup>
                   </servlet>
                  
                   <servlet-mapping>
                   <servlet-name>Faces Servlet</servlet-name>
                   <url-pattern>*.seam</url-pattern>
                   </servlet-mapping>
                  
                  
                  
                   <session-config>
                   <session-timeout>120</session-timeout>
                   </session-config>
                   <security-constraint>
                   <display-name>Restrict raw XHTML Documents</display-name>
                   <web-resource-collection>
                   <web-resource-name>XHTML</web-resource-name>
                   <url-pattern>*.xhtml</url-pattern>
                   </web-resource-collection>
                   <auth-constraint>
                   <role-name>NONE</role-name>
                   </auth-constraint>
                   </security-constraint>
                  
                  </web-app>
                  


                  My faces-config.xml:

                  <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
                  
                   <application>
                   <el-resolver>org.jboss.seam.jsf.SeamELResolver</el-resolver>
                   <message-bundle>messages</message-bundle>
                   </application>
                  
                   <lifecycle>
                   <phase-listener>
                   org.jboss.seam.jsf.TransactionalSeamPhaseListener
                   </phase-listener>
                   </lifecycle>
                  
                   <converter>
                   <converter-id>actorGroupConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.ActorGroupConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>actorAndActorGroupConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.ActorAndActorGroupConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>searchConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.SearchConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>configConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.ConfigConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>actorGroupIntegerConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.ActorGroupIntegerConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>actorConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.ActorConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>priorityConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.PriorityConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>statusConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.StatusConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>statusOptionConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.StatusOptionConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>taskConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.TaskConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>taskGroupConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.TaskGroupConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>tasktypeConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.TasktypeConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>fieldNameConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.ExtraFieldNameConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>workspaceConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.WorkspaceConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>
                   javax.faces.convert.IntegerConverter
                   </converter-id>
                   <converter-class>
                   javax.faces.convert.IntegerConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>resourcetypeConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.ResourcetypeConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>resourceConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.ResourceConverter
                   </converter-class>
                   </converter>
                  
                   <converter>
                   <converter-id>IntegerConverter</converter-id>
                   <converter-class>
                   org.bit.etask.converter.IntegerConverter
                   </converter-class>
                   </converter>
                  
                   <validator>
                   <validator-id>actorGroupValidator</validator-id>
                   <validator-class>
                   org.bit.etask.converter.ActorGroupValidator
                   </validator-class>
                   </validator>
                  
                  </faces-config>
                  


                  • 36. ui:include does not working
                    javabr

                    Guys,

                    Do you are facing some problem using something like this:

                    <ui:include src="TaskEditHead.xhtml" name="taskedithead" />
                    


                    It is just not inserting anything... :S

                    It was working perfetc on seam 1.2.0 and jboss 4.0.2

                    Rgds
                    Leo




                    • 37. Re: ui:include does not working
                      javabr

                       

                      "javabr" wrote:

                      Do you are facing some problem using something like this:
                      <ui:include src="TaskEditHead.xhtml" name="taskedithead" />
                      

                      It is just not inserting anything... :S
                      It was working perfetc on seam 1.2.0 and jboss 4.0.2


                      It just worked when I have removed ui:define inside TaskEditHead.xhtml (on the included file)

                      • 38. Re: Seam CVS now on JBoss AS 4.2 CR1
                        pdhaigh

                         

                        "rlhr" wrote:
                        Two things that are broken moving to JBoss AS 4.2 CR1 (This is not due to JBoss or Seam, but from switching from MyFaces the Sun JSF implementation)

                        - TinyMCE: the content of the textarea is not saved. I have to investigate was going on there.




                        Anyone have any solution for this?

                        • 39. Re: Seam CVS now on JBoss AS 4.2 CR1

                           

                          "pdhaigh" wrote:
                          "rlhr" wrote:
                          Two things that are broken moving to JBoss AS 4.2 CR1 (This is not due to JBoss or Seam, but from switching from MyFaces the Sun JSF implementation)

                          - TinyMCE: the content of the textarea is not saved. I have to investigate was going on there.




                          Anyone have any solution for this?


                          var jobDescription = document.getElementById('modifyVacancyForm:jobDescription');
                          jobDescription.value = tinyMCE.getContent('modifyVacancyForm:jobDescription');
                          


                          1 2 3 Previous Next