Re: Wicket + jboss 4.0.5 + slf4j-log4j12 markup refresh problem issue

2008-09-12 Thread Bernard Niset

Hi Lukasz,
I use about the same configuration as yours. I think you can safely 
replace the provided version of log4j (in the lib directory) with a more 
recent one. I have a production environment working with log4j 1.2.8, 
other test environments I use have more recent versions. My production 
environment is producing a huge amount of logging and no issues there 
with logging.

Bernard.


Lukasz Kucharski a écrit :

Hi group

Did anyone use wicket witch such configuration - i know this may sound
silly but  I'm having serious issues with slf4j binding for log4j.
Jboss internally uses very old implementation of log4j for which i
guess no slf4j binding exists (pre 1.2.x versions i guess).

I run wicket application successfully and log4j logging is working but
my wicket markup does not refresh, ever! This is because when
refreshing worker thread is starting it generates this error:

2008-09-11 15:46:04,781 ERROR [] thread.Task  - Task
ModificationWatcher terminated
java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
at 
org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled(Log4jLoggerAdapter.java:81)
at org.apache.wicket.util.thread.Task$1.run(Task.java:107)
at java.lang.Thread.run(Thread.java:619)


which makes it unusable - my markup does not get refreshed. This is
serious concern for us. Please help.

Regards
Lukasz

-
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: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread wfaler


Jonathan Locke wrote:
> 
> also see wicket-rad if appropriate
> 
A  http://sites.google.com/site/wicketrad URL could be useful, so here it is
. :)

The org.wicketrad.propertyeditor package in the wicket-rad-core module has a
bunch of Panels you might want to look at for your problem.

The exact problem regarding Radio buttins you (Justin) are talking about can
be solved with the org.wicketrad.propertyeditor.input.RadioGroupInput class
(it uses an implementation of IChoiceSource to retrieve the number of radio
buttons).
-- 
View this message in context: 
http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19451340.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket 1.3.4 + SWFObject

2008-09-12 Thread Kaspar Fischer


On 11.09.2008, at 13:59, Piller Sébastien wrote:


Hello,

this time I haven't any dummy question :)

I've developped a wicket panel to display a *.swf file with a  
autoinstall feature of the flash player, using SWFObject, and I'm  
ready to share it with the community.


Are you interested?


Hi Sébastien!

I am interested! Could you post the code/markup?

Thanks a lot for sharing,
Kaspar
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FeedbackPanel and page refresh (f5) after submit

2008-09-12 Thread Ajayi Yinka
Hurray, i have got over it. The problem I was having is that, I forgort to
implement the cleanupFeedbackMessages() method which I declare in my session
class. I called the method but forgot to put the codes therein. thanks so
much.
Now, i can continue with my app.
I will appreciate it if anyone can give me a simplest way of implement
jasper report with wicket.

Regards,
Yinka.


On Thu, Sep 11, 2008 at 9:26 PM, Igor Vaynberg <[EMAIL PROTECTED]>wrote:

> here is how it works:
>
> if the message is reported against session it is held until rendered,
> if the message is reported against a component it is held only during
> the request in which it has been reported. wicket is smart enough to
> look at the render strategy and not clear messages during the redirect
> between post and get, so i am not sure why this is not working for you
> as it is working fine in the forminput wicket example.
>
> if you want to change this behavior you can override
> session.cleanupFeedbackMessages() and implement whatever behavior you
> wish.
> by the way, this is all very apparent from the code. i suggest you
> learn your ide and useful ide tools such as call hieararchy,
> ctrl+click to follow, etc.
>
> -igor
>
> On Thu, Sep 11, 2008 at 8:43 PM, Timo Rantalaiho <[EMAIL PROTECTED]>
> wrote:
> > On Thu, 11 Sep 2008, Ajayi Yinka wrote:
> >> > Thomas Lutz wrote:
> >> > >
> >> > > I've a form with some validation added, nothing special (Required,
> Email
> >> > > check). When I submit the form I get the validation messages in the
> >> > > FeedbackPanel as expected, but :-), hitting f5 for a page refresh
> after
> >> > > the submit removes them (don't ask why refresh after submit... users
> of
> >> > > my webapp do stuff like this :-)).
> >> > > The form is not submitted, only redisplayed, but the validation
> messages
> >> > > are missing.
> >> > > Is there something I can do about this ?
> >
> > I think that what happens is that
> >
> > a) the normal POST
> >
> > b) the redirect to GET after POST [1]
> >
> > c) feedback messages are cleared from session on detaching
> >   the request [2]
> >
> > d) refresh does the GET again, and the flash feedback
> >   messages cannot be displayed, because they are already
> >   cleared from the session
> >
> > The solution is left as an exercise for the reader ;)
> > Because now I must get going...
> >
> > Best wishes,
> > Timo
> >
> >
> > [1] http://en.wikipedia.org/wiki/Post/Redirect/Get
> > [2]
> >
> http://fisheye6.atlassian.com/browse/wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/RequestCycle.java?r=645227#l1058
> >
> > --
> > Timo Rantalaiho
> > Reaktor Innovations Oyhttp://www.ri.fi/ >
> >
> > -
> > 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 1.3.4 + SWFObject

2008-09-12 Thread Piller Sébastien

Sure!

AutoInstallShockwaveComponent.java

   import java.util.Hashtable;
   import java.util.Map;
   import java.util.Set;

   import org.apache.wicket.ResourceReference;
   import org.apache.wicket.behavior.HeaderContributor;
   import org.apache.wicket.markup.html.WebMarkupContainer;
   import org.apache.wicket.markup.html.basic.Label;
   import org.apache.wicket.markup.html.panel.Panel;
   import org.apache.wicket.model.IModel;
   import org.apache.wicket.model.Model;
   import org.apache.wicket.protocol.http.RequestUtils;

   /**
* Classe permettant d'afficher un fichier *.swf tout en ayant une
   fonction
* d'auto-installation du FlashPlayer si la version courante n'est pas
* suffisante. Ne fonctionne pas du tout si javascript est désactivé
   (affiche le
* contenu alternatif).
*
* @see http://code.google.com/p/swfobject/";>SWFObject
* @version 11/09/2008
*/
   public final class AutoInstallShockWaveComponent extends Panel {
   /** Modèle contenu alternatif par défaut (si non précisé). */
   private static final IModel DEFAULT_ALTERNATIVE_CONTENT = new Model(
   "Unable to display flash content!You either
   have JavaScript disabled or your browser doesn't support
   SWFObject.http://www.adobe.com/go/getflashplayer\";>http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif\";
   alt=\"Get Adobe Flash player\" />");
  
   private final Map flashvars = new

   Hashtable();
   private final Map params = new Hashtable();
   private final Map attributes = new
   Hashtable();

   /**
* Constructeur minimal. Spécifie l'url du fichier swf + ses
   dimensions.
*
* @param id
*[EMAIL PROTECTED] Panel#getId()}
* @param swfFullURL
*Adresse URL relative ou absolue du fichier *.swf à
   utiliser.
* @param width
*Largeur du fichier swf.
* @param height
*Hauteur du fichier swf.
*/
   public AutoInstallShockWaveComponent(String id, final String
   swfFullURL, final String width, final String height) {
   this(id, swfFullURL, width, height, "9", null);
   }
  
   /**

* Constructeur complet. Spécifie la version minimale de flash,
   ainsi que le
* contenu alternatif à afficher.
*
* @param id
*[EMAIL PROTECTED] Panel#getId()}
* @param swfFullURL
*Adresse URL relative ou absolue du fichier *.swf à
   utiliser.
* @param width
*Largeur du fichier swf.
* @param height
*Hauteur du fichier swf.
* @param flashMinimumVersion
*Version minimale de Flash (p.ex, "9.0.0")
* @param alternative
*Contenu alternatif, typiquement une [EMAIL PROTECTED] 
String}
   ou un
*[EMAIL PROTECTED] IModel}. Passez null pour
   utiliser le
*contenu alternatif par défaut (infos + lien vers flash
*player).
*/
   public AutoInstallShockWaveComponent(String id, final String
   swfFullURL, final String width, final String height, final String
   flashMinimumVersion,
   Object alternative) {
   super(id);
  
   add(HeaderContributor.forJavaScript(new

   ResourceReference(AutoInstallShockWaveComponent.class,
   "swfobject.js")));
  
   final WebMarkupContainer swf = new WebMarkupContainer("swf");

   swf.setOutputMarkupId(true);
   add(swf);
  
   add(new Label("js", new Model() {

   public Object getObject() {
   StringBuilder b = new StringBuilder(512);
  
   b.append("");
   b.append(NL);
   b.append("