Christophe Basse

Greenhorn
+ Follow
since Jun 07, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Christophe Basse

I also use eclipse but have no idea about how to debug ....

ps: your link is not working
17 years ago
JSF
I have a form with several commandLink working correctly.
But when I introduce a SelectOneMenu object then the previous commandLinks are not working anymore
(page is refreshed according to faces-config.xml but submit methods are not called).

In example below, pauseRefresh method is not called anymore when the SelectOneMenu is introduced in the page.

jsp page :

<h:form id="Monitoring">
<h:commandLink action="#{MonitoringBean.pauseRefresh}" >
<h:graphicImage value="#{MonitoringBean.pauseButton}" style="border : 0" alt="#{MonitoringBean.pauseAltText}" />
</h:commandLink>
<h:dataTable rendered="true" headerClass="tdHeader" binding="#{MonitoringBean.detailedDataTable}" value="#{MonitoringBean.eventDetailedList}" var="event" width="100%">
<h:column>
<f:facet name="header">
<h:selectOneMenu id="modulefilter" value="#{MonitoringBean.moduleId}" valueChangeListener="#{MonitoringBean.moduleSelection}" onchange="submit();"immediate="true" rendered="true">
<f:selectItems value="#{MonitoringBean.moduleList}" />
</h:selectOneMenu>
</f:facet>
<h:outputText styleClass="#{MonitoringBean.colorStyle}" value="#{MonitoringBean.currentDate}" rendered="true" />
</h:column>
</h:datatable>
</h:form>



I also tried with only this code for the SelectOneMenu and I still have the problem :

<h:selectOneMenu id="modulefilter" value="#{MonitoringBean.moduleId}" rendered="true">
<f:selectItems value="#{MonitoringBean.moduleList}" />
</h:selectOneMenu>



Bean :

private String pauseButton;
private String pauseAltText;
private StringmoduleId;
private HtmlDataTable detailedDataTable = new HtmlDataTable();
private ArrayList<Event> eventDetailedList = new ArrayList<Event>();
private StringmoduleId;
private ArrayList<SelectItem> moduleList = new ArrayList<SelectItem>();



If you need more information on the bean, just ask me

Thanks in advance
Christophe
17 years ago
JSF
Thanks but my problem at the moment is that when I click on a commandLink, no action is done (but I'm correctly redirected to the same page as configured in faces-config.xml).

I have identified that this is happening when I put a SelectOneMenu object (because it works when I remove it).

Problem is that I don't have any idea where is this going wrong ... So I wanted to log what's going on in the servlet. And I saw that in FacesServlet spec they use the isTraceEnabled method. That's what I wanted to put logging on only on jsf core methods and not on mine.

So is it possible ?
17 years ago
JSF
Hi,

I'm trying to debug my jsf application running with weblogic 9 but I can't find out how to do it.

I found that the jsf spec is doing this :
if(log.isTraceEnabled()) ....

So my question is : How to enable the Trace (for example).

I searched for hours and only found some log4j stuff while I think it should be not so complex to enable this logging level.

Thanks in advance
Christophe
17 years ago
JSF
I have to display a datatable
I want that one of the column has the text returned by the ArrayList plus a popup on this text

So I tried the following :



I have the error "This attribute does not support request time values" which point to the onmouse over attribute.

I had same kind of problem when trying to display an image depending the value of an attribute of the bean and got no clue how to solve it.

Any idea on how can this be done ?

Ps: I had to put a space after onmouse to be able to post the message
[ July 18, 2006: Message edited by: Christophe Basse ]
17 years ago
JSF
thanks for your help but I found another script doing the same thing with same method calls which is working so .....
before the ifs I do that :
var iex=(document.all);
var nav=(document.layers);
var old=(navigator.appName=="Netscape" && !document.layers && !document.getElementById);
var n_6=(window.sidebar);
So I tried and I have the following error instead :
skin is null or not an object

In fact I'm doing that :
if(nav) skin=document.pup;
if(iex) skin=pup.style;
if(n_6) skin=document.getElementById("pup").style;

But it seems not to be working with ie6 and mozilla firefox.

Maybe you know a different way to retrieve this style in order to do the following afterwards :
skin.top
skin.left
skin.visibility
. . .
of course I did not put any smiley inside my code

you should read javascript: popitup (whitout the blank space)
I try to use a script a friend gave me and I have the following error message while clicking on the link who opens the popup :
skin has no properties

Error is pointing to the code: skin.width=popwidth;

no idea on what the problem can be ... seems that style property is not correct but seems to be ok according to the doc I found.

Any idea is welcome

html code from jsp page :
<html>
<head>
<SCRIPT LANGUAGE="JavaScript" SRC="popup.js"></SCRIPT>
</head>
<body>
<div id='pup'></div>
<a href="javascript opitup('toto','white')">
</body>
</html>


popup.js :

var popwidth = 400; // popup width
var skin=document.getElementById("pup").style;
...
function popitup(omsg,bak) {
...
skin.width=popwidth;
...
}