voyent
Messages posted by: dga205  XML
Profile for dga205 -> Messages posted by dga205 [6]
Author Message
I found a solution, but It isn't elegant.

In the three icefaces pages, I implemented the DisposableBean interface, in order to put a breakpoint in the dispose() method.
When I navigate through the pages, and in the last one I click in the button "Back" that has a navigation rule with <redirect/> to the normal JSF page, the dispose methods aren't executed, and if I go to the first iceface page from the JSF page, It shows me the last page!

The solution that I found was put a xhtml page in the middle, at the beginning and the ending of the wizard, and in that pages I used the next code.

Code:
PersistentFacesState.getInstance().redirectTo(url);


And in the faces-config:
Code:
 <navigation-rule>
          <from-view-id>list.jsf</from-view-id>
          <navigation-case>
              <from-outcome>page1</from-outcome>
              <to-view-id>/ifaces/goToIce.xhtml</to-view-id>
              <redirect/>
          </navigation-case>
      </navigation-rule>
  
   <navigation-rule>
          <from-view-id>page1.xhtml</from-view-id>
          <navigation-case>
              <from-outcome>page2</from-outcome>
              <to-view-id>page2.xhtml</to-view-id>
          </navigation-case>
      </navigation-rule>
  
   <navigation-rule>
          <from-view-id>page2.xhtml</from-view-id>
          <navigation-case>
              <from-outcome>page3</from-outcome>
              <to-view-id>page3.xhtml</to-view-id>
          </navigation-case>
      </navigation-rule>
  
   <navigation-rule>
          <from-view-id>page3.xhtml</from-view-id>
          <navigation-case>
              <from-outcome>finish</from-outcome>
              <to-view-id>/ifaces/goToJSF.xhtml</to-view-id>
              <redirect/>
          </navigation-case>
      </navigation-rule>


If I want to use PersistentFacesState.getInstance().redirectTo outside the Persistent Context, It gives me a null pointer exception.

Is there a better solution?
Hello.
I have problems with navigations.
I have 3 pages using icefaces 1.8 (page1.xhtml, page2.xhtml, page3.xhtml), all of them have one "next" commandButton, and one page with normal jsf (list.jsf).
The icefaces pages are a wizard, where the data is maintained until the last page.
The problem is, when I finish the wizard, and return to the list.jsf, if I go to the wizard again, the browser show me the last page of the wizard.
I am serching how to fix this problem, but until now I couldn't manage to fix it.

My navigations rules are:
Code:
  <navigation-rule>
         <from-view-id>list.jsf</from-view-id>
         <navigation-case>
             <from-outcome>page1</from-outcome>
             <to-view-id>/ifaces/page1.xhtml</to-view-id>
             <redirect/>
         </navigation-case>
     </navigation-rule>
 
  <navigation-rule>
         <from-view-id>page1.xhtml</from-view-id>
         <navigation-case>
             <from-outcome>page2</from-outcome>
             <to-view-id>page2.xhtml</to-view-id>
         </navigation-case>
     </navigation-rule>
 
  <navigation-rule>
         <from-view-id>page2.xhtml</from-view-id>
         <navigation-case>
             <from-outcome>page3</from-outcome>
             <to-view-id>page3.xhtml</to-view-id>
         </navigation-case>
     </navigation-rule>
 
  <navigation-rule>
         <from-view-id>page3.xhtml</from-view-id>
         <navigation-case>
             <from-outcome>finish</from-outcome>
             <to-view-id>/faces/list.jsf</to-view-id>
             <redirect/>
         </navigation-case>
     </navigation-rule>


And the web.xml

Code:
    <servlet-mapping>
         <servlet-name>Persistent Faces Servlet</servlet-name>
         <url-pattern>/ifaces/*</url-pattern>
     </servlet-mapping>
 
     <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>/faces/*</url-pattern>
     </servlet-mapping>
Hello.
I have this error in internet explorer 8.

'undefined' is null or not an object in ice-extras.js

I don't have this error using firefox.
I'm using icefaces 1.8
What can be the problem?
Hello.
Any body know how I can do this? I searched a lot but I couldn't find how.

In the example:
Code:
<ice:selectBooleanCheckbox value="#{backingBean.enabled}" partialSubmit="true"/>
 <ice:inputText value ="#{backingBean.text}" required="#{backingBean.enabled}"/>
 <ice:commandButton value="Save" actionListener="#{backingBean.save}" action="null"/> 


When I change the value "backingBean.enabled" with the checkbox, would have to change the "required" property too?
Hello.
I have this problem.

<ice:selectBooleanCheckbox value="#{backingBean.enabled}" />
<ice:inputText value ="#{backingBean.text}" required="true"/>
<ice:commandButton value="Save" actionListener="#{backingBean.save}" action="null"/>


I want to disable the required attribute of the inputText, or any other validator, depending on the value of the selectBooleanCheckBox when I click on the Save Button, How I can do it?

I tried this, but with not result.

<ice:selectBooleanCheckbox value="#{backingBean.enabled}" partialSubmit="true"/>
<ice:inputText value ="#{backingBean.text}" required="#{backingBean.enabled}"/>
<ice:commandButton value="Save" actionListener="#{backingBean.save}" action="null"/>
Hi, I am having problems with standardRequestScope

<context-param>
<param-name>com.icesoft.faces.standardRequestScope</param-name>
<param-value>false</param-value>
</context-param>

I developed a webpage using icefaces, and all worked perfect, but, the web application has woodstock pages, so, when I go to a woodstock page, and after that, I return to the Icefaces page, the standardRequestScope parameter changed from false to true by runtime, It cause that the page doesn't work properly, the properties don't save the state across the request.
I read in the DevelopersGuide that when icefaces detect that another framework is used, It change automaticaly the standardRequestScope property to true.

Can I set the standardRequestScope property to false, when I come back to the Icefaces page?

I am using NetBean 6.8 and IceFaces 1.8


 
Profile for dga205 -> Messages posted by dga205 [6]
Go to:   
Powered by JForum 2.1.7ice © JForum Team