Messages posted by gandalf7170
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: gandalf7170  XML
Profile for gandalf7170 -> Messages posted by gandalf7170 [13]
Author Message
I guess modifying the component means starting from the IceFaces sources and building a custom version? Would you think that the javascript option would be simpler?
Until a solution is integrated in IceFaces, can you think of a way of achieving the same thing?
Hi
I need to detect when a month or year is switched in a selectInputDate. I can see that with partialSubmit=true, the JSF lifecycle is triggered, but I don't know how to intercept that event. A valuechangelistener only fires when a date is selected.
Thanks
Jean-Noel
Hi
I'm using IceFaces 1.8.2; on one page, I have a selectInputdate component, and I would like to trigger an action on the backing bean not only when a day is selected in the table, but also when the month or year are changed using the respective selectors.
However, I can't get those to work.
Here's how the component is defined. When changing the month (for instance), nor the valueChangeListener, nor the actionListener are fired), although when selecting a day, the valueChangeListener does fire

Thanks for your help

Jean-Noël

<ice:selectInputDate id="dateField"
value="#{approvalBean.currentDate}"
binding="#{approvalBean.calendarComponent}"
renderMonthAsDropdown="true" renderYearAsDropdown="true"
valueChangeListener="#{approvalBean.calendarChangeListener}"
actionListener="#{approvalBean.calendarActionListener}"
partialSubmit="true " />
Hi

I'm using IceFaces 182, Tomcat 6.0.26 to build an application; it uses form-based login, so to logout, I use the session.invalidate() method. It works fine, but after logging out, the log file of Tomcat starts to fill up with messages like this:

Mar 17, 2010 2:15:52 PM com.icesoft.faces.webapp.http.servlet.SessionDispatcher$Monitor shutdown
INFO: Session already invalidated.
Mar 17, 2010 2:16:02 PM com.icesoft.faces.webapp.http.servlet.SessionDispatcher$Monitor shutdown
INFO: Session already invalidated.
Mar 17, 2010 2:16:12 PM com.icesoft.faces.webapp.http.servlet.SessionDispatcher$Monitor shutdown
INFO: Session already invalidated.

As you'll notice, this message is issued exactly every 10 seconds, which looks to be the frequency of the Monitor thread. What is even stranger is that after closing X sessions, I get X times the same message in one second.

The real issue is that it seems to impact the user session lifetime: users get disconnected after a few minutes.

Would you have any help with that issue?

Thanks a lot

Jean-Noel Colin
Hi,
I' trying to dynamically build a page, using IceFaces 1.7.2.
Here's my JSF code:

Code:
<ice:panelGrid binding="#{MyBean.questionnaire.jsfView}">
 </ice:panelGrid>


So far, this works fine; the getJsfView returns a HtmlPanelGrid component (see code below).

However, in that PanelGrid component, I need to create a datatable dynamically, and in each cell, I will store a new PanelGrid component.

So my getJsfView creates the HtmlPanelGrid, sets the first two components (title and subtitle), and then, creates a HtmlDataTable, setting the var ('group') and value parameters.

the 'var' Object is able to return a HtmlPanelGrid component, so I would expect that creating a ValueExpression of "#{group.jsfView}" and doing a setValueExpression("binding", ve) would cause the getJsfView method to be invoked on each row from the 'value' of the HtmlDataTable.

Unfortunately, it does not work; doing setValueExpression("binding",...) gives not result, although I can see in the html source that 4 rows have been created.

I must also say that when creating a ValueExpression linking to a method that returns a String (for instance), and calling setValueExpression("value",...) then it's working.

Any help would be greatly appreciated!

Jean-Noël

Code:
public HtmlPanelGrid getJsfView() {
 		HtmlPanelGrid pane = new HtmlPanelGrid();
 		pane.setId("_id_questionnaire_pane");
 		pane.setColumns(1);
 		pane.setWidth("100%");
 		HtmlOutputText title = new HtmlOutputText();
 		title.setId("_id_questionnaire_title");
 		title.setValue(this.title);
 		title.setStyleClass("questionnairetitle");
 		pane.getChildren().add(title);
 		HtmlOutputText subTitle = new HtmlOutputText();
 		subTitle.setId("_id_questionnaire_subtitle");
 		subTitle.setValue(this.subTitle);
 		subTitle.setStyleClass("questionnairesubtitle");
 		pane.getChildren().add(subTitle);
 
 		HtmlDataTable table = new HtmlDataTable();
 		ListDataModel model = new ListDataModel(groups);
 		table.setId("_id_questionnaire");
 		table.setVar("group");
 		table.setValue(model);
 
 		UIColumn column = new UIColumn();
 		column.setId("_id_column");
 
 		ValueExpression ve = FacesContext.getCurrentInstance().getApplication()
 				.getExpressionFactory().createValueExpression(
 						FacesContext.getCurrentInstance().getELContext(),
 						"#{group.jsfView}", PanelCollapsible.class);
 		PanelCollapsible subPane = new PanelCollapsible();
 		subPane.setId("_id_sp");
 		subPane.setValueExpression("binding", ve);
 		column.getChildren().add(subPane);
 		table.getChildren().add(column);
 		pane.getChildren().add(table);
 		return pane;
 	}
Hi

I need to display an remote image in an area of say 70x70. I'm using the graphicImage component, and the value of it is the URL of the image

If images are bigger than 70x70, I would like them to be automatically resized so that they fit in the 70x70 square, while preserving the aspect ratio.

How can I achieve that?

Thanks for your help

Jean-Noel
Hi
I'm using IceFaces 1.6.1 on JBoss 4.2
Instead of using standard authentication (through specifying login-config/auth-method=FORM in the web.xml of my webapp, I would like to have in a banner page either a username/password fields + submit button if the user is not authenticated yet, or a simple display of his user name if he is logged in.

The second part is easy; it's already working

but how can I have the first part working? if I use form-based authentication, I have to specify a jsp, so I have to leave my IceFaces application, and that's whay I want to avoid.

Thanks for your help

Jean-Noel Colin
I don't really know how to find out when my connection is closed; this application is running fine when using the woodstock components, that include dataproviders... which makes life much easier.
yes, when I click on a row, or even just by selecting a different page on the paginator; it seems that the exception occurs just by submitting the page.

I had defined my rowselector like
<ice:rowSelector selectionListener="#{MyBean.selectAction}" />


Regards

Jean-Noel Colin
I have tried setting the scope of the bean to session, but it does not change anything. I've tried creating the rowset from a resultset, from a connection,... nothing helps...

Any other idea?

Cheers

Jean-Noel
Hi

I'm trying to build a datatable that uses a JdbcRowSet as its source of data
Code:
						
 <ice:dataTable id="itemstable" var="row" value="#{MyBean.rowSet}" rows="5">
 


Where MyBean.rowSet is defined as:
Code:
	private JdbcRowSetImpl rowSet;
 


Data is properly displayed.

I also want to use a rowSelector to be able to select an row in the list for editing in another portion of the screen. The problem when I select a row is that I get the following exception:

avax.faces.FacesException: java.sql.SQLException: The result set is closed.
javax.faces.model.ResultSetDataModel.isRowAvailable(ResultSetDataModel.java:134)
javax.faces.model.ResultSetDataModel.setRowIndex(ResultSetDataModel.java:267)
javax.faces.model.ResultSetDataModel.setWrappedData(ResultSetDataModel.java:304)
javax.faces.model.ResultSetDataModel.<init>(ResultSetDataModel.java:83)
com.icesoft.faces.component.panelseries.UISeries.getDataModel(UISeries.java:315)
 


I've tried various alternatives, but nothing work; I don't think I'm asking for an impossible behaviour: user gets a list of rows, selects one for editing, makes his changes and click save.

Could you please help me in getting this to work with IceFaces 1.6.1, on JBoss 4.2.1

Thanks a lot

Jean-Noel Colin
Hi,

I'm trying to move a JSF/Rave application to JSF/ICEfaces, running on JBoss 4.2.1.

I created a essai2.jsp file that is shown below. The problem is that the outputText are not displayed when their value should come from the Bundle. If I hardcode the text to be displayed, it works fine. If I misspell the bundle name, then I get an error in JBoss logs, so it seems that the bundle is properly loaded. I am not using the standardRequestScope option. In my web-inf/lib, I included the following files: icefaces-comps.jar,
just-ice.jar & backport-util-concurrent.jar (in addition to the usual jsf jar files)

I've been through many posts on these forums but couldn't find any useful help. Would anyone have an idea of what's going on?

Cheers

Jean-Noel Colin

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="2.0" 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:ice="http://www.icesoft.com/icefaces/component">
<f:view>
<f:loadBundle basename="be.oxys.endeco.Bundle" var="msgs" />
<ice:outputDeclaration doctypeRoot="HTML"
doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
<html>
<head></head>
<body>
<ice:form id="form1">
<ice:outputStyle href='./xmlhttp/css/xp/xp.css' />
<div style="left: 0px; top: 0px; position: absolute"><jsp:directive.include
file="/top.jsp" /></div>
<ice:panelGrid id="panel1"
style="left: 0px; top: 120px; width: 800px; position: absolute"
columns="1">
<ice:outputText value="#{msgs.Accueil}" />
<ice:panelTabSet styleClass="componentPanelTabSetLayout">
<ice:panelTab id="tab1" label="Tab1">
<ice:inputTextarea></ice:inputTextarea>
</ice:panelTab>

<ice:panelTab label="Tab2">
<ice:inputTextarea></ice:inputTextarea>
</ice:panelTab>

<ice:panelTab id="tab3" label="Tab3">
<ice:inputTextarea></ice:inputTextarea>
</ice:panelTab>
</ice:panelTabSet>
</ice:panelGrid>
</ice:form>
</body>
</html>
</f:view>
</jsp:root>
 
Profile for gandalf7170 -> Messages posted by gandalf7170 [13]
Go to:   
Powered by JForum 2.1.7ice © JForum Team