Messages posted by mithridates
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: mithridates  XML
Profile for mithridates -> Messages posted by mithridates [15]
Author Message
Works as required :-)
Thank You very much!
Facing the same problem with the release version.
Hi,

we have an application based on the IceFaces xp-stylesheet with some customizations.
Now we are facing the following problem when integrating the new 2.0 advanced components:
Only the styles (skins) "rime" and "sam" are available.
The combination with xp-style doesn't look very good...

Are there any plans to add the xp-style to the advanced components in the future?
If not, is there any advice on how to create a css for customizing the styles of the advanced components (styleClass reference etc.) for "visual compatibility" with xp-style?

Thanks,
Björn

kalamar wrote:
... the wrong taglib for icefaces ist specified above.
Code:
xmlns:ice="http://icefaces.org/core"
is given and should be Code:
xmlns:ice="http://www.icesoft.com/icefaces/component"
in order to use the components.
 


This is done automatically by the plugin when checking "ICEfaces 1.8.2. Compatiblity Mode" after selecting ICEFaces in the Frameworks window when creating a new WebApplication.
Please try that.
I think no fix is needed. :-)
Created an issue: http://jira.icefaces.org/browse/ICE-5409
Reading http://wiki.icefaces.org/display/ICE/Compatibility carefully should answer your questions. Especially section "Components".
In brief: with current ICEfaces 2 the 1.8.2 components can be used in a JSF 2.0 / EE6 environment.
Of course. See below.
"selectionAction" is bound to a method writing out to server.log. Button action writes a message, too. So watch the log while testing.
1. After deploying select first row.
2. select second row.
3. deselect second row.
4. press button above.

Second row is now selected again. And interestingly: on each step above (1-4) "Selection Action" is written to the log. The button action itself is never called! (no "Button Action" in log).

Thanks for investigating.

Page is:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component">
<h:head>
<ice:outputStyle href="./xmlhttp/css/xp/xp.css" id="outputStyle2"/>
</h:head>
<h:body>
<f:view>
<div id="header">
</div>
<div id="content">
<h:form>
<ice:commandButton id="button" value="Pressme" action="#{myDataModel.action}"/>
<ice:dataTable
id="table"
value="#{myDataModel}"
var="currentRow">
<ice:column id="column1">
<ice:rowSelector id="rs"
selectionAction="#{myDataModel.selectionAction}"
value="#{currentRow.selected}"/>
<f:facet name="header">
<ice:outputText
value="Firstname"/>
</f:facet>
<ice:panelGroup>
<ice:outputText id="outputText3" value="#{currentRow.firstname}"/>
</ice:panelGroup>
</ice:column>
<ice:column id="column2">
<ice:panelGroup>
<ice:outputText id="outputText8" value="#{currentRow.lastname}"/>
</ice:panelGroup>
<f:facet name="header">
<ice:outputText value="Lastname"/>
</f:facet>
</ice:column>
</ice:dataTable>
</h:form>
</div>
</f:view>
</h:body>
</html>

Model is:
package test;

import com.icesoft.faces.component.ext.ClickActionEvent;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import javax.enterprise.context.SessionScoped;
import javax.faces.model.ListDataModel;
import javax.inject.Named;

// Same behaviour with @javax.faces.bean.ManagedBean and @javax.faces.bean.SessionScoped
@SessionScoped
@Named
public class MyDataModel extends ListDataModel<Person> implements Serializable {

/**
* construct
*/
public MyDataModel() {
super();
List<Person> tmpList = new ArrayList<Person>();
tmpList.add(new Person("peter", "sellers"));
tmpList.add(new Person("frank", "miller"));
tmpList.add(new Person("john", "doe"));
this.setWrappedData(tmpList);
}

// To see, when button is pressed.
public String action(){
System.err.println("Button Action");
return null;
}

// To see, when selectionAction is fired:
public void selectionAction(){
System.err.println("Selection Action");
}
}

Item for ListDataModel:
package test;

public class Person {

private String firstname;
private String lastname;
private boolean selected;

/**
* Construct
* @param firstname
* @param lastname
*/
public Person(String firstname, String lastname) {
this.firstname = firstname;
this.lastname = lastname;
}

// Getter & Setter

public String getLastname() {
return lastname;
}

public void setLastname(String lastname) {
this.lastname = lastname;
}

public String getFirstname() {
return firstname;
}

public void setFirstname(String firstname) {
this.firstname = firstname;
}

public boolean isSelected() {
return selected;
}

public void setSelected(boolean selected) {
this.selected = selected;
}

}
Assuming You are working with NB 6.8, looking into this thread might help You.
Icefaces 1.8.2a in Compatibility Mode on GF3:

On the welcome page I added a button and a datatable with a rowSelector.
Rows can be selected as expected. But when the button is clicked, sometimes the selected row deselects or the previously deselected row is selected again.
This happens irregular (i think) but very often.

Does not happen with 1.8.2 on GF2 so far.

Bug?

BTW: How to get rid of the warning in GF3 log (without changing loglevels ;) :
[WARNING] (org.apache.catalina.connector.Request) => PWC4011: Unable to set request character encoding to UTF-8 from context /WebApplicationICE6, because request parameters have already been read, or ServletRequest.getReader() has already been called
Using Netbeans 6.8?

Look over there: thread in tools forum
Found the solution myself:

in web.xml:
added <url-pattern>*.xhtml</url-pattern> for Faces Servlet Mapping.
Changed <welcome-file>/faces/welcomeICEfaces.xhtml</welcome-file>
to <welcome-file>welcomeICEfaces.xhtml</welcome-file>

In project-properties > run > display browser:
changed URL to welcomeICEfaces.xhtml

Maybe You can include this in the next release.

Bjoern
Hi,

I'm stuck:
NB6.8: create new webapplication on GF3 with EE6 and ICEfaces Framework.
Activating Icefaces 1.8 Compatibility Mode.
Modifying sun-web.xml as described above.

In the generated welcomeICEfaces.html I'm adding a simple

< ice:commandButton value="hello" / >


Deploying: Page renders fine.
Pressing the "hello" button ends up with "Internal Server Error"-Message.

Stacktrace:
19:03:11.093 : [SEVERE] (javax.enterprise.system.std.com.sun.enterprise.v3.services.impl) => javax.faces.application.ViewExpiredException: viewId:/faces - Ansicht /faces konnte nicht wiederhergestellt werden.
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:212)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:619)
19:03:11.094 : [SEVERE] (javax.enterprise.system.std.com.sun.enterprise.v3.services.impl) => java.lang.NullPointerException
at org.icefaces.event.DetectNavigationPhaseListener.afterPhase(DetectNavigationPhaseListener.java:54)
at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:619)

Sorry, messages are in german. Should be somthing like "View /faces could not be restored".

Any Hint?
(I'm trying to migrate an existing Application...)

Bjoern
Thanks for the info.
J2EE is no option for us, as we are developing EE 5 on glassfish.

Can You provide a schedule for the new bundle?

We are currently redesigning our applications and it would be great, if we could use ICEfaces for the UI in NB6 now.

Im facing the same problem.
I'd love to use ICEfaces instead of Woodstock but there is no way getting it working for me.

@amersohail794
Could you please specifiy that?

I don't have such type of problem in netbeans. There may be some problem with your netbeans installation. I am perfectly achieving same behaviour as in Visual Web Pack for Project Woodstock.
 


I did a clean install (complete) on a linux-machine. No other problems than that.
 
Profile for mithridates -> Messages posted by mithridates [15]
Go to:   
Powered by JForum 2.1.7ice © JForum Team