You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jurgen Lust <Ju...@UGent.be> on 2006/06/28 17:16:27 UTC
Re: Problem with myfaces
Hi,
First of all: those screenshots look great! Any chance you want to
donate the code back to myfaces? The multiple resource thing would be a
very nice addition to the schedule component.
I will look into the problem this weekend. Have you tried with the
tooltip="false" setting? I have noticed that the domTT library causes
some problems...
Kind regards,
Jurgen
Op wo, 28-06-2006 te 17:05 +0200, schreef Guy BELHOMME:
> Hello,
>
>
>
> I work for a small French company which works on scheduling problems.
>
> I’m using the base of your schedule component to develop a multiple
> resource schedule component with a custom entry renderer for travel
> time:
>
>
>
>
>
>
>
>
>
> It seems very good but I encounter a problem which is not systematic.
>
>
>
> Sometime rendering for travel time goes wrong (abnormal height):
>
>
>
>
>
>
>
> If this schedule is refreshed, all is ok! To get this problem, I must
> click or refresh schedule a lot of time.
>
> In fact there is a problem in html :
>
>
>
> <a onmouseover="return makeTrue(domTT_activate(this, event,
> 'caption', '', 'content', '<i></i><br/>800m', 'trail', true));"
>
> class="travelTime"
>
> style="padding: 0px; position: absolute; height: 13px; top:
> 44px; left: 50%; width: 49.5%;">
>
>
>
> </a>
>
> <table style="border-style: none; overflow: hidden; width:
> 100%; height: 100%;" cellpadding="0" cellspacing="0">
>
> <tbody>
>
> <tr>
>
> <td style="overflow: hidden; width: 60%; height: 3px;"
> align="center">
>
> <div style="border-style: none; overflow: hidden;
> width: 60%; height: 100%;" class="travelTime">
>
> </div>
>
> </td>
>
> </tr>
>
> <tr>
>
> <td style="" align="center">
>
> <div style="overflow: hidden; width: 3px; height:
> 100%;" class="travelTime">
>
> </div>
>
> </td>
>
> </tr>
>
> <tr>
>
> <td style="border-style: none; overflow: hidden; width:
> 60%; height: 3px;" align="center">
>
> <div style="overflow: hidden; width: 60%; height: 100%;"
> class="travelTime">
>
> </div>
>
> </td>
>
> </tr>
>
> </tbody>
>
> </table>
>
>
>
> The problem is that “</a>” is not at a good place it should be afer
> “</table>”.
>
>
>
> Here is the renderer code:
>
>
>
> String styleClass = getEntryRenderer(schedule,
> entry).getEntryStyleClass(
>
> context, schedule, wrapper.entry, selected);
>
>
>
> //if the schedule is read-only, the entries should not
> be
>
> //hyperlinks
>
> writer.startElement(
>
> (schedule.isReadonly()) ? HTML.DIV_ELEM :
> HTML.ANCHOR_ELEM, schedule);
>
>
>
> //draw the tooltip
>
> if (showTooltip(schedule))
>
> {
>
> getEntryRenderer(schedule,
> entry).renderToolTip(context, writer,
>
> schedule, wrapper.entry, selected);
>
> }
>
>
>
> if (!schedule.isReadonly() && entry.isSelectable())
>
> {
>
> writer.writeAttribute("href", "#", null);
>
>
>
> writer.writeAttribute(
>
> HTML.ONMOUSEUP_ATTR,
>
> "fireEntrySelected('"
>
> + formId + "', '"
>
> + clientId + "', '"
>
> + wrapper.entry.getId()
>
> + "');",
>
> null);
>
> }
>
>
>
> if (styleClass != null){
>
> writer.writeAttribute(HTML.CLASS_ATTR,
> styleClass, null);
>
> } else {
>
> writer.writeAttribute(HTML.CLASS_ATTR,
> getStyleClass(schedule,
>
> "entry"), null);
>
> }
>
> writer.writeAttribute(HTML.STYLE_ATTR,
> entryStyle.toString(),
>
> null);
>
>
>
> //draw the content
>
> getEntryRenderer(schedule,
> entry).renderContent(context, writer,
>
> schedule, day, wrapper.entry, false,
> selected);
>
> writer.endElement((schedule.isReadonly()) ?
> HTML.DIV_ELEM : HTML.ANCHOR_ELEM);
>
>
>
> When reading this code, “</a>” should be after the entry rendering.
>
>
>
> Is there a problem in HtmlResponseWriterImpl ?
>
> Can you help me or forward this problem or tell me where to declare
> this problem.
>
>
>
> Thanks for help.
>
>
>
>
>
> Best regards
>
>
>
>
> Guy BELHOMME
> guy.belhomme@deliasystems.com
> Mobile : +33(0)6.84.08.86.58
>
>
>
>
> Delia Systems R&D
> 10 rue du Colonel Rémy
> 14000 Caen
> Tél : +33(0)2.31.46.92.30
> Fax : +33(0)2.31.46.92.31
> www.deliasystems.com
>
>
>
>
>
>
>
RE: Problem with myfaces
Posted by Guy BELHOMME <gu...@deliasystems.com>.
-----Message d'origine-----
De : Jurgen Lust [mailto:Jurgen.Lust@UGent.be]
Envoyé : mercredi 28 juin 2006 17:16
À : Guy BELHOMME
Cc : MyFaces Discussion
Objet : Re: Problem with myfaces
Hi,
First of all: those screenshots look great! Any chance you want to
donate the code back to myfaces? The multiple resource thing would be a
very nice addition to the schedule component.
[Guy]
At the moment only ScheduleDetailedDayRenderer is done. I add these notions:
multiple resources, selectable entries, layers, travel times
I expect to donate the code back to myfaces in the future.
I will look into the problem this weekend. Have you tried with the
tooltip="false" setting? I have noticed that the domTT library causes
some problems...
[Guy]
I tried with tooltip="false" setting and I got the same bug.
Kind regards,
Jurgen
Op wo, 28-06-2006 te 17:05 +0200, schreef Guy BELHOMME:
> Hello,
>
>
>
> I work for a small French company which works on scheduling problems.
>
> Im using the base of your schedule component to develop a multiple
> resource schedule component with a custom entry renderer for travel
> time:
>
>
>
>
>
>
>
>
>
> It seems very good but I encounter a problem which is not systematic.
>
>
>
> Sometime rendering for travel time goes wrong (abnormal height):
>
>
>
>
>
>
>
> If this schedule is refreshed, all is ok! To get this problem, I must
> click or refresh schedule a lot of time.
>
> In fact there is a problem in html :
>
>
>
> <a onmouseover="return makeTrue(domTT_activate(this, event,
> 'caption', '', 'content', '<i></i><br/>800m', 'trail', true));"
>
> class="travelTime"
>
> style="padding: 0px; position: absolute; height: 13px; top:
> 44px; left: 50%; width: 49.5%;">
>
>
>
> </a>
>
> <table style="border-style: none; overflow: hidden; width:
> 100%; height: 100%;" cellpadding="0" cellspacing="0">
>
> <tbody>
>
> <tr>
>
> <td style="overflow: hidden; width: 60%; height: 3px;"
> align="center">
>
> <div style="border-style: none; overflow: hidden;
> width: 60%; height: 100%;" class="travelTime">
>
> </div>
>
> </td>
>
> </tr>
>
> <tr>
>
> <td style="" align="center">
>
> <div style="overflow: hidden; width: 3px; height:
> 100%;" class="travelTime">
>
> </div>
>
> </td>
>
> </tr>
>
> <tr>
>
> <td style="border-style: none; overflow: hidden; width:
> 60%; height: 3px;" align="center">
>
> <div style="overflow: hidden; width: 60%; height: 100%;"
> class="travelTime">
>
> </div>
>
> </td>
>
> </tr>
>
> </tbody>
>
> </table>
>
>
>
> The problem is that </a> is not at a good place it should be afer
> </table>.
>
>
>
> Here is the renderer code:
>
>
>
> String styleClass = getEntryRenderer(schedule,
> entry).getEntryStyleClass(
>
> context, schedule, wrapper.entry, selected);
>
>
>
> //if the schedule is read-only, the entries should not
> be
>
> //hyperlinks
>
> writer.startElement(
>
> (schedule.isReadonly()) ? HTML.DIV_ELEM :
> HTML.ANCHOR_ELEM, schedule);
>
>
>
> //draw the tooltip
>
> if (showTooltip(schedule))
>
> {
>
> getEntryRenderer(schedule,
> entry).renderToolTip(context, writer,
>
> schedule, wrapper.entry, selected);
>
> }
>
>
>
> if (!schedule.isReadonly() && entry.isSelectable())
>
> {
>
> writer.writeAttribute("href", "#", null);
>
>
>
> writer.writeAttribute(
>
> HTML.ONMOUSEUP_ATTR,
>
> "fireEntrySelected('"
>
> + formId + "', '"
>
> + clientId + "', '"
>
> + wrapper.entry.getId()
>
> + "');",
>
> null);
>
> }
>
>
>
> if (styleClass != null){
>
> writer.writeAttribute(HTML.CLASS_ATTR,
> styleClass, null);
>
> } else {
>
> writer.writeAttribute(HTML.CLASS_ATTR,
> getStyleClass(schedule,
>
> "entry"), null);
>
> }
>
> writer.writeAttribute(HTML.STYLE_ATTR,
> entryStyle.toString(),
>
> null);
>
>
>
> //draw the content
>
> getEntryRenderer(schedule,
> entry).renderContent(context, writer,
>
> schedule, day, wrapper.entry, false,
> selected);
>
> writer.endElement((schedule.isReadonly()) ?
> HTML.DIV_ELEM : HTML.ANCHOR_ELEM);
>
>
>
> When reading this code, </a> should be after the entry rendering.
>
>
>
> Is there a problem in HtmlResponseWriterImpl ?
>
> Can you help me or forward this problem or tell me where to declare
> this problem.
>
>
>
> Thanks for help.
>
>
>
>
>
> Best regards
>
>
>
>
> Guy BELHOMME
> guy.belhomme@deliasystems.com
> Mobile : +33(0)6.84.08.86.58
>
>
>
>
> Delia Systems R&D
> 10 rue du Colonel Rémy
> 14000 Caen
> Tél : +33(0)2.31.46.92.30
> Fax : +33(0)2.31.46.92.31
> www.deliasystems.com
>
>
>
>
>
>
>