Re: Feedback AjaxButton

2008-01-22 Thread Vincent Demay

Hi Jean-Baptiste

Jean-Baptiste Bellet a écrit :

Hello all,
This is my first wicket message, so first of all, I would like to 
gongrats the whole team for the great job !

Now, my problem :
I have created a NewFeedbackPanel which extends FeedbackPanel and 
override OnBeforeRender(). This NewFeedbackPanel is created into a 
class and added to a target :


final NewFeedbackPanel indicator = new NewFeedbackPanel(indicator, 
3, true);
final NewAjaxButton link = new NewAjaxButton(DOWNLOAD_NEW, new 
ResourceModel(preferences.downloadNew))

{
@Override
public void onClick(AjaxRequestTarget target)
{
..
// log successful message and refresh target feedback

this.info(getLocalizer().getString(preferences.downloadSuccess, this));

target.addComponent(indicator);
target.addComponent(PhoneDetails.this);
}
};
add(link);
add(indicator);


When I test, i can't see any feedback, and the method OnBeforeRender() 
of the class NewFeedbackPanel is never called.

Any idea ?
Thanks,
jb


Code for NewFeedbackPanel.java :
public class NewFeedbackPanel extends FeedbackPanel
{

private static final int DEFAULT_TIME = 1000;

private boolean _blocker;

private int _displayTime;

public NewFeedbackPanel(String id)
{
this(id, DEFAULT_TIME, false);
}

public NewFeedbackPanel(String id, int displayTime)
{
this(id, displayTime, false);
}

public NewFeedbackPanel(String id, int displayTime, boolean blocker)
{
super(id);
_blocker = blocker;
setOutputMarkupPlaceholderTag(true);
add(HeaderContributor.forCss(NewFeedbackPanel.class, 
feedback.css));

setVisible(false);
Here, you feedback is set as not visible. If you take a look into 
Component#internalBeforeRender, you can see that a not visible component 
never call onBeforeRender method.


So you need to override Component#callOnBeforeRenderIfNotVisible to 
return true in order to evaluate you code in onBeforeRender

_displayTime = displayTime  0 ? displayTime : DEFAULT_TIME;
if (_blocker)
{
add(new AttributeAppender(class, new Model(hidder),  
));

}
}

@Override
protected void onBeforeRender()
{
super.onBeforeRender();
IRequestTarget target = RequestCycle.get().getRequestTarget();
if (anyMessage())
{
if (target instanceof AjaxRequestTarget)
{
String javascript = 
window.setTimeout(function(){window.document.getElementById(' + 
getMarkupId()
+ ').style.display = 'none'},  + 
_displayTime + );;
((AjaxRequestTarget) 
target).appendJavascript(javascript);


}
}
else
{
setVisible(false);
}
}


}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cheers

--
Vincent Demay


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicketstuff-dojo : supported dojo versions, and/or IE nonsecure items complaint?

2007-11-28 Thread Vincent Demay
Timo Rantalaiho wrote:
 Hello,

   
Hi Timo
 We run into the good old this page contains both secure and
 non-secure items warning on IE 6 when updating
 DojoOrderableListContainer components via Ajax. 

 We're using Dojo packaged with the wicketstuff-dojo
 1.3.0-SNAPSHOT, and I understand that it's version 0.4. So
 this bug

   http://trac.dojotoolkit.org/ticket/2390

 might be relevant, and I thought of building my custom dojo 

   
 http://wicketstuff.org/confluence/display/STUFFWIKI/Build+a+custom+dojo+to+fit+to+your+application

 on a newer version. 

 So if anyone can tell

 1) which dojo versions should work with current
 wicketstuff-dojo, or even
   
Unfortunatly only 0.4 version (Api and widget set has changed since 0.9
release)
 2) whether this might fix our non-secure items warning
   
If you can find out the patch we can apply it on the current dojo used
in Wicket-stuff Dojo
 we'd greatly appreciate it!


 Meanwhile, I'll go and try it out and report back.

 Cheers,
 Timo

   
Cheers

--
Vincent

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dojo with Wicket 1.3 Templates

2007-09-22 Thread Vincent Demay

Hi,

Sorry for the late answer, You mean that the default template in 
DojoDatePicker makes it doesn't work?


Cheers

--
Vincent

Azarias Tomás a écrit :
Hi, 
I am having problems with DojoDatePicker and Wicket Templates. When I remove

the template the DojoDatePicker , it 's Ok, otherwise it doesnt get shown.
Throwing this messages on the client :

Could not load 'dojoWicket.widget.SimpleDropdownDatePicker'; last tried
'__package__.js'
[Break on this error] throw _13||Error(_12);

Could someone give me pointers to solve this?

AT
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Stuff Dojo Repository

2007-09-10 Thread Vincent Demay

Hi,

Wicketstuff dojo has just been modified in order to build its artifact 
on the same location as usually :

http://www.wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-dojo

Cheers

--
Vincent

Maurice Marrink wrote:

Johan recently made some changes to the wicket-stuff repository (see
dev mailing list). requiring all projects (automatically build via
bamboo) to update there pom. So if they are not yet back on there old
spot they probably did not make the change.

You could try bugging them about that ;)

As soon as they update there poms is should be right were it always was.

Maurice

On 9/8/07, Aaron Hiniker [EMAIL PROTECTED] wrote:
  

Where did it move to?

Aaron

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Stuff Dojo Repository

2007-09-10 Thread Vincent Demay

Maurice Marrink wrote:

@vincent
Hmm, looks like you are generating unique id's for your snapshots. I
don't think that is wise as the server will run out of disk space like
that in no time. You should put uniqueVersionfalse/uniqueVersion
inside the snapshotRepository tag.

  

Tnx Maurice,

I added it.

Cheers

--
Vincent


Maurice

On 9/10/07, Vincent Demay [EMAIL PROTECTED] wrote:
  

Hi,

Wicketstuff dojo has just been modified in order to build its artifact
on the same location as usually :
http://www.wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-dojo

Cheers

--
Vincent

Maurice Marrink wrote:


Johan recently made some changes to the wicket-stuff repository (see
dev mailing list). requiring all projects (automatically build via
bamboo) to update there pom. So if they are not yet back on there old
spot they probably did not make the change.

You could try bugging them about that ;)

As soon as they update there poms is should be right were it always was.

Maurice

On 9/8/07, Aaron Hiniker [EMAIL PROTECTED] wrote:

  

Where did it move to?

Aaron

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dojo maximize button

2007-09-04 Thread Vincent Demay

Hi,
Cristi Manole wrote:

Hello,

I don't know if this is the right place to submit this and if it isn't i'm really sorry... please let me know... 
  
Yes it is the right place to post this kind of question even if it is 
more a Dojo problem than a wicketstuff-Dojo one ;)

When I click to maximize the dojo floating pane (not modal), it moves to the 
top of the browser's client window and resizes to something less than what it 
was originally. How can i control those buttons to get what I want?
  
I think Dojo FloatingPane take all available area in th body when you 
put it in maximal size. Is your htmlbody bigger than the maximize 
floating pane?


Cheers
--
Vincent


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]