9 Replies Latest reply on Apr 4, 2012 11:50 AM by kenfinni

    portlet taglib not recognized

    toomtooms

      Hi,

       

      I am using JBoss portlet bridge 2.0 with GateIn 3.1 and Mojarra 1.2 on JBoss 5.1.

      I have done a basic portlet with only one page :

       

      <?xml version="1.0" encoding="ISO-8859-1"?>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

      <html xmlns:jsp="http://java.sun.com/JSP/Page"

          xmlns:f="http://java.sun.com/jsf/core"

          xmlns:h="http://java.sun.com/jsf/html"

          xmlns:t="http://myfaces.apache.org/tomahawk"

          xmlns:p="http://java.sun.com/portlet_2_0">

          

       

      <p:defineObjects/>     

              <form enctype="multipart/form-data" method="post" action="<p:actionURL/>" id="formArquivoXml">            

                  <input type="file" style="float: left;" size="10" name="arquivoXml" id="arquivoXml">

                  <img src="${pageContext.request.contextPath}/img/btn-abrir.gif" id="submitArquivoXml" onclick="document.forms['formArquivoXml'].submit();"> 

              </form>

      </html>

       

      but the portlet tags (<p:defineObjects/> and <p:actionURL/>) are not recognized. They are sent in the output as is. So I can see <p:defineObjects/> in the HTML code.

       

      Did anybody already have this issue ?

       

      Regards

        • 1. Re: portlet taglib not recognized
          wesleyhales

          I just checked in the fix for this on trunk. Go ahead and try it out and let us know if you run into any issues.

          http://anonsvn.jboss.org/repos/portletbridge/trunk/

          • 2. Re: portlet taglib not recognized
            toomtooms

            Thank you for your answer Wesley.

            I have built the trunk, copied the portletbridge-api-2.1.1-SNAPSHOT.jar and portletbridge-impl-2.1.1-SNAPSHOT.jar libraries in my application, but I still have the same issue.

            How can I help resolving it ? Do you need more information ?

            • 3. Re: portlet taglib not recognized
              guga.java

              I found the cause of the problem.

              Using
              <context-param>
              <param-name> javax.portlet.faces.RENDER_POLICY </ param-name>
              <param-value> NEVER_DELEGATE </ param-value>
              </ context-param>

              The JBoss Portlet Bridge did not makes it mandatory the use of Facelets

              Using
              <context-param>
              <param-name> javax.portlet.faces.RENDER_POLICY </ param-name>
              <param-value> ALWAYS_DELEGATE </ param-value>
              </ context-param>

              It is necessary to use Facelets.

              When we're not using Facelets the taglib
              of portlets is interpreted correctly, and from the moment when we use ALWAYS_DELEGATE the taglib portlet is not interpreted.

              We would like to be able to use Facelets + portlets, it would be interesting to work

              In the documentation of the
              JBoss Portlet Bridge is not very clear what impact to use NEVER_DELEGATE or ALWAYS_DELEGATE, could someone explain to me better than that is it?

              • 4. Re: portlet taglib not recognized
                guga.java

                Portlet Bridge 2.1 final don't works too with this same scenario

                • 5. Re: portlet taglib not recognized
                  guga.java

                  I really need help with this problem, can someone help me?

                  • 6. Re: portlet taglib not recognized
                    jonathan.wickers

                    Hi,

                     

                    I have the same problem, and I want to know if someone finally fixed the problem ?

                    Does anybody know if the portlet bridge 3.0.0 would help  ?

                     

                    Regards

                    • 7. Re: portlet taglib not recognized
                      kenfinni

                      Jonathan,

                       

                      Just to clarify, the problem is that portlet tags don't work with the Portlet Bridge when using Facelets, but it does work with JSP?

                       

                      It's not a situation I've tested with the 3.x series so far, but I'm working hard on the next Beta release.  If you try 3.0.0.Beta1 and it's still an issue, could you please raise a JIRA at https://issues.jboss.org/browse/PBR for it?

                       

                      Thanks

                      Ken

                      • 8. Re: portlet taglib not recognized
                        jonathan.wickers

                        Ken,

                         

                        My bad, the problem is that I use the portlet bridge and I tried to create a custom JSF tag, but it seems that the portlet bridge doesn't interpret my tag because when I look for it in sources of the page, I found it like I wrote it in the xhtml.

                         

                        I haven't tried the beta yet, I'll do as soon as possible, hopping that it will be fixed.

                         

                        Regards

                        • 9. Re: portlet taglib not recognized
                          kenfinni

                          Jonathan,

                           

                          No problem.  If you aren't able to use your own custom JSF tag in 3.0.0.Beta1, please create a JIRA, as that should be possible.

                           

                          Thanks

                          Ken