8 Replies Latest reply on May 13, 2009 4:20 AM by sdzmitrovich

    VPE - is this bug?

    krasig

      See may page (this is part of my bog,big template):

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core">
      
      <body>
      
      <div style="background-image: url(${facesContext.externalContext.requestContextPath}/images/#{env.skinPic}) !important;padding-left: 10px">
      
       </div>
       <h:commandButton action="" value="Some button" />
      </body>
      </html>


      result: http://screencast.com/t/lqnTWkDi

      (nothing in error log)


      Without "red" code:

      result: http://screencast.com/t/yn9oQPsM2wo

        • 1. Re: VPE - is this bug?

          I can't reproduce it. I try it in linux and windows. It works for me.

          • 2. Re: VPE - is this bug?
            krasig

            On windows, eclipse 3.5, JBT 3.2.1 Alpha ?

            • 3. Re: VPE - is this bug?
              krasig

              ooops JBT 3.1.0 Alpha

              • 4. Re: VPE - is this bug?

                Yes.
                On windows - eclipse 3.5 m6, JBT - 3.1.0 Alpha
                On linux - eclipse 3.5 m7, JBT - 3.1.0 Alpha

                May be there are others reasons of such vpe's behaviour. Did you set any el expressions for vpe? Try to move this page to new jsf project (e.g kickstart) and try to open this page there.

                • 5. Re: VPE - is this bug?
                  krasig

                  Hi sdzmitrovich,
                  you are right.
                  With new jsf project all is right.
                  Can't understand where is problem in my project.
                  What you mean with "el expressions for vpe"?

                  • 6. Re: VPE - is this bug?
                    krasig

                    Hi again,
                    Can you try this:

                    testTemplate.xhtml

                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                    <html xmlns="http://www.w3.org/1999/xhtml"
                     xmlns:ui="http://java.sun.com/jsf/facelets"
                     xmlns:h="http://java.sun.com/jsf/html"
                     xmlns:f="http://java.sun.com/jsf/core">
                    
                    <body>
                    
                    <div style="background-image: url(${facesContext.externalContext.requestContextPath}/images/#{env.skinPic}) !important;padding-left: 10px">
                    
                    </div>
                    
                     <ui:insert name="content>
                     <h:commandButton action="" value="Some button" />
                     </ui:insert>
                    </body>
                    </html>


                    testPage.xhtml
                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                    <html xmlns="http://www.w3.org/1999/xhtml"
                     xmlns:ui="http://java.sun.com/jsf/facelets"
                     xmlns:h="http://java.sun.com/jsf/html"
                     xmlns:f="http://java.sun.com/jsf/core">
                    
                     <ui:composition template="testTemplate.xhtml">
                     <ui:param name="icon" value="system171.ico" />
                     <ui:define name="content">
                     <h:commandButton action="" value=button A" />
                     <h:inputText value="aaa" />
                     </ui:define>
                    
                     </ui:composition>
                    
                    </html>


                    • 7. Re: VPE - is this bug?
                      krasig

                      Ok. After some investigations I'm sure, something is wrong in VPE when it is used <ui:param ...>

                      What do you think guys?

                      • 8. Re: VPE - is this bug?

                        You are right. We have managed to reproduce it in windows. I have created issue: https://jira.jboss.org/jira/browse/JBIDE-4311. Thanks for your report.