1 2 3 4 Previous Next 55 Replies Latest reply on Nov 7, 2006 7:17 PM by bpatters Go to original post
      • 30. Re: Seam 1.1 beta 1
        sducas

        and about A4J integration?

        • 31. Re: Seam 1.1 beta 1
          gavin.king

          It means we worked with the Ajax4JSF guys to fix the incompatibilities.

          • 32. Re: Seam 1.1 beta 1
            sducas

            ok thanks,


            security exemple (freshly updated from CVS) don't work for me for two reasons:

            - first one:

            I think seam.properties should be renamed into component.properties and the corresponding line inserted into build.xml (at line 42 for me) ... then it starts for me...

            but when started..

            - second one: it doesn't work (I have no more information yet):

            I log in using demo demo then I have the menu but when I press ProtectedAction I'm redirected to the login page...

            • 33. Re: Seam 1.1 beta 1
              sducas

              I'm using 4.0.4 patched with EJB3 RC9...

              I'll try 4.0.5

              • 34. Re: Seam 1.1 beta 1
                gavin.king

                Right. Its not finished. Thats why it has not been release.

                • 35. Re: Seam 1.1 beta 1
                  y_zl

                  Security Example:

                  It seems that Authenticator.instance().authenticate(user.getUsername(), user.getPassword()) in LoginAction always return true. It seems jboss-service.xml login-config.xml are not used any more. The sutentication configuration guide still apply to 1.1?

                  • 36. Re: Seam 1.1 beta 1
                    shane.bryzak

                    I've fixed the security example, there was a redundant entry left in components.xml. Both jboss-service.xml and login-config.xml have been removed, I'll update the wiki page to reflect this.

                    • 37. Re: Seam 1.1 beta 1
                      bpatters

                      HUGE kudo's for the facelet support of parameters in action expressions!

                      Being able to do: "#{contact.addContact(c)}" has really simplified some the things I'm trying to do.


                      One thing, I don't know if this is a bug or I'm misunderstanding something but:

                      a4j namespace is the Ajax4Jsf function set.

                      the command:

                      <a4j:commandLink action="#{contactManager.deleteContact(c)}"/>
                      Works inside a datatable like:
                      <h:dataTable var="c" value="#{contacts}">
                       <h:column>
                       ## above action here
                      </h:column>
                      </h:dataTable>

                      But when it's inside:
                      <c:forEach var="c" items="#{contacts}">
                       ## command goes here
                      </c>


                      it doesn't work, the pareamter sent to the function always resolves to null.


                      The above is just a contrived example of what I saw last night with my real application, if you need the real code example that doesn't work I will have to do that tonight/this weekend.



                      • 38. Re: Seam 1.1 beta 1
                        gavin.king

                        Right, the big caveat with this stuff is that the parameter value is evaluated when the form is *submitted*, not when the form is *rendered*. "c" must be a valid context variable available during the form submission.

                        • 39. Re: Seam 1.1 beta 1
                          bpatters

                           

                          "gavin.king@jboss.com" wrote:
                          Right, the big caveat with this stuff is that the parameter value is evaluated when the form is *submitted*, not when the form is *rendered*. "c" must be a valid context variable available during the form submission.


                          Thanks, I figured it was probably something like that. I'm not an expert at JSF just yet, so the different between the two isn't obvious to me. So I'm guessing that it essentially means I can't use variable parameters except in certain circumstances.

                          If I changed it to something like:
                          <a4j:commandLink action="#{contactManager.deleteContact(c.ID)}"/>


                          Where ID is a Long and the primary key of the contact would it work
                          inside a
                          <c:forEarch>
                          ?

                          • 40. Re: Seam 1.1 beta 1
                            gavin.king

                            not going to make a difference.

                            Why aren't you using ui:repeat??

                            • 41. Re: Seam 1.1 beta 1
                              bpatters

                               

                              "gavin.king@jboss.com" wrote:
                              not going to make a difference.

                              Why aren't you using ui:repeat??


                              I tend to flip flop between the two, primarily because a bug somewhere else in my code is causing the ui:repeat to not work or vice versa.

                              I'll start using ui:repeat instead.

                              Any pointers to required reading that will help me understand when I can use the parameters and when they won't be able to be resolved?

                              Seam + facelets +ajax4jsf is really nice, I really started to see the power last night when I was working with tables within tables and optionally rendered drop downs etc. These function parameters really helped simplify the tables within tables scenario versus using @DataModelSelection
                              .

                              • 42. Re: Seam 1.1 beta 1
                                jboss.biancashouse.com

                                Gavin,

                                Without intending to be picky, I just noticed the Seam 1.1 Beta reference shows it's version as 1.0.1.GA; both for the HTML and PDF versions.

                                This might lead readers to think that it is unchanged from the 1.0.1 release, which almost happened to me.

                                Ian
                                (Sydney)

                                • 43. Re: Seam 1.1 beta 1
                                  gavin.king

                                  yes, this was already fixed in cvs

                                  • 44. Re: Seam 1.1 beta 1
                                    ssilvert

                                     

                                    "bpatters" wrote:
                                    HUGE kudo's for the facelet support of parameters in action expressions!

                                    Being able to do: "#{contact.addContact(c)}" has really simplified some the things I'm trying to do.


                                    One thing, I don't know if this is a bug or I'm misunderstanding something but:

                                    a4j namespace is the Ajax4Jsf function set.

                                    the command:

                                    <a4j:commandLink action="#{contactManager.deleteContact(c)}"/>
                                    Works inside a datatable like:
                                    <h:dataTable var="c" value="#{contacts}">
                                     <h:column>
                                     ## above action here
                                    </h:column>
                                    </h:dataTable>

                                    But when it's inside:
                                    <c:forEach var="c" items="#{contacts}">
                                     ## command goes here
                                    </c>


                                    it doesn't work, the pareamter sent to the function always resolves to null.


                                    The above is just a contrived example of what I saw last night with my real application, if you need the real code example that doesn't work I will have to do that tonight/this weekend.



                                    Gavin is correct. But to be more specific, the action param feature doesn't support EL variables. An EL variable is a special page-level variable used by tags such as <c:forEach>.

                                    Actually, this can be fixed for use with Facelets because Facelets includes Unified EL. Please create a JIRA task for it. I probably won't get around to fixing it for quite awhile though.

                                    It will also eventually work with the JSF 1.2/JSP 2.1/JSTL 1.2 combo.

                                    Stan