7 Replies Latest reply on Dec 20, 2007 4:35 AM by adamw

    Seam sources - html tags

    adamw

      Hello,

      where can I find the sources of the class:
      org.jboss.seam.ui.component.html.HtmlLink?

      It's not included in the package, and I can't find a link anywhere to seam svn/cvs.

      I need it to check how Seam encodes URLs, so that I can use urlrewritefilter's outbound-rules - it seems that the URL is encoded without the query part, so it can't be translated.

      --
      Adam

        • 1. Re: Seam sources - html tags
          pmuir

          run ant jarui and it will be generated in ui/target/generated-component.

          • 2. Re: Seam sources - html tags
            adamw

            Hello,

            found it - thanks :)
            Though it wasn't of course what I was looking for.

            However making seam work with urlrewritefilter's outbound-rules is quite simple; I'll post a feature request for that :).

            --
            Cheers,
            Adam

            • 3. Re: Seam sources - html tags
              adamw
              • 4. Re: Seam sources - html tags
                skanky78

                hi :)

                is this fix in 2.0.1 CR1??? i defined an outboud-rule but it does'nt affect any link in the facelet...(see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=126102)

                @adamw:
                can you give an example where you use an s:link which outputs an rewritten link?

                cheers,
                sven

                • 5. Re: Seam sources - html tags
                  adamw

                  Hello,

                  I just downloaded the 2.0.1CR1 and it work for me.

                  Here's an example of a link:

                  <s:link view="/view/feed.xhtml" value="#{feed.title}" propagation="none">
                   <f:param name="name" value="#{feed.name}"/>
                  </s:link>
                  


                  and a rule for it:
                  <outbound-rule>
                   <from>^/blog/view/feed.seam\?(cid=\d+&)?(from=\d+)&name=([a-z0-9_]+)(.*)$</from>
                   <to>/blog/view/$3?$1$2$4</to>
                  </outbound-rule>
                  


                  (note that you have to include the context path in the outbound-rule for some reason).

                  --
                  Adam

                  • 6. Re: Seam sources - html tags
                    fredespi

                    Hello,

                    I am having problems using a urlrewrite rule in seam. I have a rule like:

                    <rule>
                     <from>^/(.*)$</from>
                     <to last="true">/resultsPage.seam?searchString=$1</to>
                    </rule>
                    


                    This works fine unless the string that is caught by (.*) contains %26, i.e. ampersand. So if the incoming url looks like this:

                    http://localhost:8080/a+%26+b


                    The urlrewriter logs this:


                    09:08:56,632 INFO [[/]:log] org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: Rule 1 run called with /a & b
                    09:08:56,632 INFO [[/]:log] org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: matched "from"
                    09:08:56,640 INFO [[/]:log] org.tuckey.web.filters.urlrewrite.RuleExecutionOutput DEBUG: needs to be forwarded to /resultsPage.seam?searchString=a & b
                    09:08:56,641 INFO [[/]:log] org.tuckey.web.filters.urlrewrite.UrlRewriter DEBUG: rule is last


                    but the parameter searchString is set to

                    a


                    and not

                    a & b


                    I suppose I am doing something wrong. Can someone help me out?

                    Regards,

                    Fredrik

                    • 7. Re: Seam sources - html tags
                      adamw

                      Hello,

                      I think it's an issue of urlrewrite not of seam, so maybe check their website.

                      --
                      Adam