that value is just something that works for my field because that field was
almost that big.
But i don't want it to be after the field, but i want it to be over the
field bu then completely to the right.

But i think we just need to have a over ridable method yes. But what to
extract?
the complete img? or just the style?

johan


On 2/19/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:

So this: "left:140px;" <--

is the difference, correct?

I guess the thing to do here is to append the div and maybe the image
in a separate overridable methods.

Eelco


On 2/19/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> i see this in that behavior:
>
> public void onRendered(Component component) {
>         super.onRendered(component);
>         // Append the span and img icon right after the rendering of the
>         // component. Not as pretty as working with a panel etc, but
works
>         // for behaviors and is more efficient
>         Response response = component.getResponse();
>         response
>                 .write("\n<span>&nbsp;<div style=\"display:none;z-index:
> 99999;position:absolute;\" id=\"");
>         response.write(getCalendarMarkupId());
>         response
>                 .write("\"></div><img style=\"cursor: pointer; border:
> none;\" id=\"");
>         response.write(getIconId());
>         response.write("\" src=\"");
>         CharSequence iconUrl = getIconUrl();
>         response.write(Strings.escapeMarkup(iconUrl != null ? iconUrl
>                 .toString() : ""));
>         response.write("\" /></span>");
>     }
>
> but that doesnt work at my place, because everything is position in css.
> this works for me: (as an example if the component had a width of 140px
)
>
> public void onRendered(Component component) {
>         super.onRendered(component);
>         // Append the span and img icon right after the rendering of the
>         // component. Not as pretty as working with a panel etc, but
works
>         // for behaviors and is more efficient
>         Response response = component.getResponse();
>         response
>                 .write("\n<span>&nbsp;<div style=\"display:none;z-index:
> 99999;position:absolute;\" id=\"");
>         response.write(getCalendarMarkupId());
>         response
>                 .write("\"></div><img style=\"cursor: pointer; border:
> none;position:absolute;left:140px;\" id=\"");
>         response.write(getIconId());
>         response.write("\" src=\"");
>         CharSequence iconUrl = getIconUrl();
>         response.write(Strings.escapeMarkup(iconUrl != null ? iconUrl
>                 .toString() : ""));
>         response.write("\" /></span>");
>     }
>
>
> ofcourse i can override the complete onRendered again and do that
> implementation.
> or we give a few more call backs like generateImgTag()??
>
> Also the popup when i click on the img is to small. for example i miss
the
> arrow button to scroll forward in the months
> Where is that specified?
>
> johan
>

Reply via email to