ok.
But, looking at the Javadoc, this is what I see:
In AbstractBehavior:
/**
* Called when a component that has this behavior coupled was rendered.
*
* @param component
*the component that has this behavior coupled
*/
public void onRendered(Component
No no bug just java doc isnt clear enough i guess, but it is not
really wrong.. What is after render? Both are true, both are called
after the component is rendered only one a bit later then the other. I
guess the javadoc of the component should state that this is after the
page is rendered
On
Thanks.
:)
On Sun, May 18, 2008 at 10:08 AM, Johan Compagner [EMAIL PROTECTED]
wrote:
No no bug just java doc isnt clear enough i guess, but it is not
really wrong.. What is after render? Both are true, both are called
after the component is rendered only one a bit later then the other. I
Isn't this is what I did?
Anyway, here's an example of what I get.
First: the Java code:
public final class TestButtonPage extends WebPage {
public TestButtonPage() {
add(new ExtendingButton(extendingButton));
Button other = new Button(behavioralButton);
other.add(new
No the after render of a component is called after the page render to
clean up stuff.
Just as onBeforeRender is called before the page is starting to render
On 5/17/08, Eyal Golan [EMAIL PROTECTED] wrote:
Isn't this is what I did?
Anyway, here's an example of what I get.
First: the Java code:
Hello,
I have a MyButton that extends Button.
I have a JavaScript that I need to ad to the output markup after the
button's markup.
I'm trying to do this with two differnet options:
Either I Override onAfterRender in MyButton:
@Override
protected void onAfterRender() {
if
use a behavior that adds an onDocumentLoad/Ready script to the browser
On Thu, May 15, 2008 at 12:35 PM, Eyal Golan [EMAIL PROTECTED] wrote:
Hello,
I have a MyButton that extends Button.
I have a JavaScript that I need to ad to the output markup after the
button's markup.
I'm trying to do
ok. thank, I'll try it (though I have never written JavaScript till a few
days ago...)
BTW, why is the difference between the overriding method and the behavior
method?
On Thu, May 15, 2008 at 2:52 PM, Johan Compagner [EMAIL PROTECTED]
wrote:
use a behavior that adds an onDocumentLoad/Ready
you can also do it on component
public void renderHead(final HtmlHeaderContainer container)
or let the component implement IHeaderContributor
i guess that renderHead(final HtmlHeaderContainer container) shouldnt be
public but more protected or final..
johan
On Thu, May 15, 2008 at 2:44 PM,
thanks,
that's exactly what I did.
I add to my component (button) an AbstarctBehavior, which is an
IHeaderContributor.
I even override renderHead:
@Override
public void renderHead(IHeaderResponse response) {
response.renderCSSReference(/eurekify/style/button/EurekifyButton.css);
get the components markupid from the component itself.
johan
On Thu, May 15, 2008 at 3:03 PM, Eyal Golan [EMAIL PROTECTED] wrote:
thanks,
that's exactly what I did.
I add to my component (button) an AbstarctBehavior, which is an
IHeaderContributor.
I even override renderHead:
11 matches
Mail list logo