[richfaces-issues] [JBoss JIRA] Commented: (RF-1271) javax.servlet.ServletException: Prefix for attributes in portlet session scope not found when runnning portajAjaxSample on https

Dirk Pitt (JIRA) jira-events at lists.jboss.org
Wed Feb 6 05:00:04 EST 2008


    [ http://jira.jboss.com/jira/browse/RF-1271?page=comments#action_12398413 ] 
            
Dirk Pitt commented on RF-1271:
-------------------------------

Hallo,

I had converted my demo application for richfaces and porlet running for JBoss Portal 2.6.3 with RichFaces 3.1.3.GA according these intructions and directly hit some problems that I consider as bugs.

First my application that is running with 3.1.3.GA using h:form and h:commandButton (in the forms that I don't need Ajax functionality) without problem, after the conversion to 3.1.4.GA with above configuration it stoped working.

First problem, if I don't convert h:commanButton to a a4j:commandButton I am getting view expired exception all the time form JSF lifecycle.

After this conversion, view expired exception dissappears but new javascript exception appears, complaining A4J object can't be found in Internet Explorer, including a4j:form solve this problem also.

So at this point the question that I will ask, to use the  Porlet and RichFaces, we have to stick to the a4j:form and a4j:commandButton, which I found weird because my previous version of application run perfectly with tags h:form and h:commandButton and actually I like to have the option to stick with standars JSF lifecycle when I don't need Ajax functionality....

One other small problem, this snippet that instructs us 

<portlet>
         <portlet-name>ajaxPortlet</portlet-name>
        <header-content>
           <script src="/faces/rfRes/org/ajax4jsf/framework.pack.js" type="text/javascript" ></script>
           <script src="/faces/rfRes/org/richfaces/ui.pack.js" type="text/javascript" ></script>
           <link rel="stylesheet" type="text/css" href="/faces/rfRes/org/richfaces/skin.xcss" />
    </header-content>

is not working because 3.1.4.GA create the resource on this uri /tvpp_demo_wl-1.0/faces/rfResorg/ajax4jsf/javascript/scripts/form.js as you may see there is no '/' between rfRes and org. I guess intended form is the one at the snippet but 3.1.4.GA creates this wrong....

> javax.servlet.ServletException: Prefix for attributes in portlet session scope not found when runnning portajAjaxSample on https 
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-1271
>                 URL: http://jira.jboss.com/jira/browse/RF-1271
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>         Environment: jboss portal 2.6.2 bundled with jboss 4.2
> Jdk 1.6.0_03
>            Reporter: Bharat Kandanoor
>         Assigned To: Aleksej Yanul
>             Fix For: 3.2.0, 3.1.3
>
>
> I tried deploying portalajaxsample from 
> http://snapshots.jboss.org/maven2/org/richfaces/samples/portalAjaxSample/3.2.0-SNAPSHOT/portalAjaxSample-3.2.0-20071030.110357-4.war .
> downloaded new jboss portal 2.6.2 bundled with jboss 4.2AS. 
> configured SSL based on the jboss wiki for 4.2.
> Started the server and i tried running the ajaxsample on https, it shows up with the form objects, but when you click "ajax switch to repeater page" we get this error 
> "javax.servlet.ServletException: Prefix for attributes in portlet session scope not found when runnning portajAjaxSample on https"..
> It was first  happening in my application, i thought it was something wrong in mmy source, but tried sample and it did the same thing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list