Messages posted by btamiroquai
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: btamiroquai  XML
Profile for btamiroquai -> Messages posted by btamiroquai [13]
Author Message
No answers in this Forum :-(
Deciding to drop from using icefaces.
Thanks a lot everyone.
Thanks,
Hey,

These tuturials are not helpfull, since I am not at all creating the table in a static way, but I rather dynamically generate it from a Bean.
It works fine for JSF tables and also for icefaces table.
But when I start adding paginator or rowselector, it doesn't work any more.
So basically I am looking for how to add the RowSelector and Paginator from a java Bean.
Thanks,

Tamir
Thanks for helping!
It happens to me ever since I installed the icefaces nbm file. it will happen with even the simplest page.
I work on linux.

Not sure I understood how to turn on the logging.
what should I change in logging.properties?

also how can I grab the stack trace?
Thanks,
I find it very frustrating to work with icefaces...
Trying to generate a table dynamically I run into problems at each stage.
if anyone have a java code that generates a table, binds it, adds a paginator, and a rowselector.
or if the developers wil be ready to provide such example. that will be really helpfull.

Please try to help, I am kind'a stuck here.
Tamiroquai
Ever since I integrated the icefaces components with my JSC, I can't run in debug mode...
I am getting this error:

Deployment of application ajaxTest completed successfully
/nfs/iil/iec/sws/work/btamir/Creator2/Projects/ajaxTest/nbproject/build-impl.xml:550: org.netbeans.api.debugger.jpda.DebuggerStartException: Connection refused
BUILD FAILED (total time: 9 seconds)

and the relevant line in my build-impl.xml is:

<nbjpdaconnect name="${name}" host="${jpda.host}" address="${jpda.address}" transport="${jpda.transport}">
<classpath>
<path path="${debug.classpath}:${ws.debug.classpaths}"/>
</classpath>
<sourcepath>
<path path="${web.docbase.dir}:${ws.web.docbase.dirs}"/>
</sourcepath>
</nbjpdaconnect>

did anyone encounter this before?
what does the connection refused say?
actually not quite everything is working. the rows change colour, but the selection listener never gets the request.
I see an XMLHttpReuqest sent though.

for some reason I am also not able to run in debug mode under JSC.
Can anyone help?
Tamir
In addition I use the below for binding, and it doesn't seem to work although the connection status icons shows that a request is sent:

ValueBinding vbListener = FacesContext.getCurrentInstance().getApplication().createMethodBinding("#{table.rowSelection}",null);
rowSelector.setValueBinding("selectionListener", vbListener);

ValueBinding vbValue = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{row.selected}");
rowSelector.setValueBinding("value", vbValue);

Please help.
Tamir



I have this code to add RowSelector to a dynamically generated table:
RowSelector rowSelector = new RowSelector();
rowSelector.setId("rowSelector1");
rowSelector.setMouseOverClass("tableRowMouseOver");
rowSelector.setSelectedClass("tableRowSelected");

ValueBinding vbListener = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{index.rowSelection}");
rowSelector.setValueBinding("selectionListener", vbListener);

ValueBinding vbValue = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{index.selected}");
rowSelector.setValueBinding("value", vbValue);

UIColumn colRowSelect = new UIColumn();
colRowSelect.setId("rowSelectionCol");
colRowSelect.getChildren().add(rowSelector);
table.getChildren().add(colRowSelect);



The problem is that when I go with the mouse over the a table row it gets grey, but it doesn't turn white again when the mouse is down...


Anyone familiar with this?
Thanks,
Tamir
OK,

Found the problem! it's a know issue documented in: http://www.icefaces.org/JForum/posts/list/2844.page
once binded effect to a null property, everything started to work
Hi,

I have a code that dynamically generated a table, and I wanted to add a RowSelector. I have this code, but it does absolutely nothing. I adda a connection status icon, and it shows no indication to any XMLHttpReuqest sent to the server, what am I doing wrong?


RowSelector rowSelector = new RowSelector();
rowSelector.setId("rowSelector1");
rowSelector.setMouseOverClass("tableRowMouseOver");
rowSelector.setSelectedClass("tableRowSelected");

ValueBinding vbListener = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{table.rowSelection}");
rowSelector.setValueBinding("selectionListener", vbListener);

ValueBinding vbValue = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{tableRow.selected}");
rowSelector.setValueBinding("value", vbValue);

UIColumn colRowSelect = new UIColumn();
colRowSelect.setId("rowSelectionCol");
colRowSelect.getChildren().add(rowSelector);
table.getChildren().add(colRowSelect);
Philip,

Thanks a lot, it helped indeed.
One comment on this (probably obvious to experienced JSF programmers and not to a newbie like me): The output text field id has to be different per each column. at the begining I thought that since the field is a child of different columns I may give them all the same id.
A question raise than: does the iterator change the id of a text in the same column in a different rows?
Here is the code that I use to generate the table:
HtmlDataTable table = new HtmlDataTable();
table.setVar("line");
table.setRendered(true);
table.setColumnClasses("tableCol");
table.setRowClasses("list-row-even,list-row-odd");
table.setHeaderClass(Constants.cHeaderClass);
table.setFooterClass(Constants.cFooterClass);
table.setRowClasses(Constants.cRowClasses);
table.setStyleClass(Constants.cStyleClass);
table.setRows(10);
table.setBorder(1);
table.getChildren().clear();

// alColumns is an arraylist with names of columns
for(int i=0; i < alColumns.size(); i++)
{
// create col
UIColumn col = new UIColumn();

// create the columns value binding
HtmlOutputText colText = new HtmlOutputText();
String columnName = (String)alColumns.get(i);
String columnBinding = "#{line[" + (i) + "]}";
ValueBinding vBinding = FacesContext.getCurrentInstance().getApplication().createValueBinding(columnBinding);
colText.setValueBinding("value",vBinding);
col.getChildren().add(colText);


// create col header
HtmlOutputText header = new HtmlOutputText();
header.setValue(columnName);
col.setHeader(header);
table.getChildren().add(col);
}
// alData is an ArrayList that holds ArrayList Objects
table.setValue(alData);


I am running into the exact same problem, so I would be happy to hear if you have a solution.
I tried playing with many of the table params, but non helped.
 
Profile for btamiroquai -> Messages posted by btamiroquai [13]
Go to:   
Powered by JForum 2.1.7ice © JForum Team