Opening and closing of modal window is very slow in IE

2009-07-01 Thread arun.s.tiw...@oracle.com
Hi,

In my application we are opening a modal window from the columns in the 
datatable. The opened modal window contains a page which has a table with 
records size 1000 without any pagination. Now when we try to close the modal 
window using the Closed icon at the right of the browser it takes lot of time 
if the browser is Internet explorer.

It works fine with the Firefox. Can  anyone suggest any solution for this.

 

Regards

Arun



Re: help with ListMultipleChoice and ajax tab

2009-07-01 Thread Eyal Golan
Ernesto,Thanks a-lot.
I keep forgetting about AjaxSubmitLink - That was the answer.

I thought about the JS option.
Using a module from wicketstuff for it is no option as in our company
licensing takes way too much time.
Creating my own JS for this would have taken lots of time.

So, AjaxSubmitLink... Hope not to forget it next time :)

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Wed, Jul 1, 2009 at 8:26 AM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 I see two possible solutions...

 1- Replace AYAX link with an AJAX submit link, so switching tabs will do a
 submit of your selected choices.
 2- Have  visual tabs where both tabs are rendered at the same time and
 switching between them is just hiding/showing them via JavaScript. That way
 no data is lost...

 Best,

 Ernesto

 On Tue, Jun 30, 2009 at 7:56 PM, Eyal Golan egola...@gmail.com wrote:

  Hi,
  I have a tab panel that has two tabs.
  The tabs are Ajaxified using some examples I found here and in the web.
  Basically in the tab panel we did this:
 @Override
 protected WebMarkupContainer newLink(String linkId, final int index) {
 final WebMarkupContainer c = new TabbedIndicatingAjaxLink(linkId,
  index);
 final BrowserTab tab = ((BrowserTab) getTabs().get(index));
 c.setEnabled(tab.isEnabled());
 return c;
 }
 
  and TabbedIndicatingAjaxLink has this (among other changes):
 @Override
 public void onClick(AjaxRequestTarget target) {
 setSelectedTab(index);
 if (target != null) {
 target.addComponent(CustomAjaxTabbedPanel.this);
 }
 onAjaxUpdate(target);
 }
 
  Everything works just fine.
  The problem is with the ListMultipleChoice.
  Each tab has this list and the list is used with PropertyModel.
  The data of the model is only set when I press the submit (as expected).
  So what happens is that I select some values and then go to another tab
 and
  when going back to the first one, the selection disappears.
  I want to keep the selection.
 
  Is there a way of doing it? Like listening to the clicks or something?
 
  Thanks,
 
 
  Eyal Golan
  egola...@gmail.com
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 



Re: ajaxformcomponent

2009-07-01 Thread Stefan Malmesjö
Ok... I think I solved it, but it feels like it's an over complicated 
way of doing it... comments?


---
final TextFieldString fromAddress = new TextFieldString(fromAddress);
// fromAddress.add(EmailAddressValidator.getInstance());



fromAddress.add(new AjaxFormComponentUpdatingBehavior(onchange) {

@Override
protected void onUpdate(AjaxRequestTarget target) {
IValidatableString fromAddressForValidation = new 
IValidatableString() {

private boolean isValid = true;

public void error(IValidationError error) {
isValid = false;
}

public String getValue() {
return fromAddress.getValue();
}

public boolean isValid() {
return isValid;
}
};
EmailAddressValidator.getInstance()
.validate(fromAddressForValidation);
if (fromAddressForValidation.isValid()) {
System.out.println(valid!);
} else {
System.out.println(not valid);
}
}
}.setThrottleDelay(Duration.ONE_SECOND));


---

On 2009-06-30 18:15, Stefan Malmesjö wrote:
The subject should have been AjaxFormComponentUpdatingBehavior... 
sorry about that :-[


On 2009-06-30 18:12, Stefan Malmesjö wrote:

Hi,

I'm playing around with validation and ajax, and can't quite seem to 
do what I want. The goal is to have a checkbox toggle 
enabled/disabled depending on whether the user has entered a valid 
email address. So, my simple test looks like this:


--
final TextFieldString fromAddress = new 
TextFieldString(fromAddress);

fromAddress.add(EmailAddressValidator.getInstance());

fromAddress.add(new 
AjaxFormComponentUpdatingBehavior(onchange) {


@Override
protected void onUpdate(AjaxRequestTarget target) {
if (fromAddress.isValid()) {
System.out.println(valid);
} else {
System.out.println(not valid);
}
}
}.setThrottleDelay(Duration.ONE_SECOND));


If the entered address is valid, then I do get the expected output 
valid


But if it's not valid, then I get a warning message:

--
WARN  - WebSession - Component-targetted feedback 
message was left unrendered. This could be because you are missing a 
FeedbackPanel on the page.  Message: [FeedbackMessage message = 
'asd...@l' is not a valid email address., reporter = fromAddress, 
level = ERROR]



I do have a feedbackpanel on the page (if I submit the form, then I 
get the asd...@l is not a valid email address output there).


However, I really don't want the error message being output during 
the ajax process, I just want to see if it's valid, and then 
enable/disable the checkbox accordingly.


I also tried playing with AjaxEventBehavior instead of 
AjaxFormComponentUpdatingBehavior, but then the value of the input 
field always is null, and hence valid :) I tried using 
fromAddress.inputChanged, but that made no difference that I could see.


I'm sure I'm making some stupid mistake. Can anyone guide me in the 
right direction?


/Stefan







Re: Opening and closing of modal window is very slow in IE

2009-07-01 Thread Igor Vaynberg
what version of wicket are you using?

-igor

On Wed, Jul 1, 2009 at 2:42 AM,
arun.s.tiw...@oracle.comarun.s.tiw...@oracle.com wrote:
 Hi,

 In my application we are opening a modal window from the columns in the 
 datatable. The opened modal window contains a page which has a table with 
 records size 1000 without any pagination. Now when we try to close the modal 
 window using the Closed icon at the right of the browser it takes lot of time 
 if the browser is Internet explorer.

 It works fine with the Firefox. Can  anyone suggest any solution for this.



 Regards

 Arun



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ajaxformcomponent

2009-07-01 Thread Igor Vaynberg
not sure why you are going through all that. add the validator.
behavior#onupdate() will be called when validation passes and the
model is updated, behavior#onerror() will be called if there is an
error.

-igor

2009/7/1 Stefan Malmesjö s.m.mo...@gmail.com:
 Ok... I think I solved it, but it feels like it's an over complicated way of
 doing it... comments?

 ---
 final TextFieldString fromAddress = new TextFieldString(fromAddress);
        // fromAddress.add(EmailAddressValidator.getInstance());



        fromAddress.add(new AjaxFormComponentUpdatingBehavior(onchange) {

           �...@override
            protected void onUpdate(AjaxRequestTarget target) {
                IValidatableString fromAddressForValidation = new
 IValidatableString() {
                    private boolean isValid = true;

                    public void error(IValidationError error) {
                        isValid = false;
                    }

                    public String getValue() {
                        return fromAddress.getValue();
                    }

                    public boolean isValid() {
                        return isValid;
                    }
                };
                EmailAddressValidator.getInstance()
                    .validate(fromAddressForValidation);
                if (fromAddressForValidation.isValid()) {
                    System.out.println(valid!);
                } else {
                    System.out.println(not valid);
                }
            }
        }.setThrottleDelay(Duration.ONE_SECOND));


 ---

 On 2009-06-30 18:15, Stefan Malmesjö wrote:

 The subject should have been AjaxFormComponentUpdatingBehavior... sorry
 about that :-[

 On 2009-06-30 18:12, Stefan Malmesjö wrote:

 Hi,

 I'm playing around with validation and ajax, and can't quite seem to do
 what I want. The goal is to have a checkbox toggle enabled/disabled
 depending on whether the user has entered a valid email address. So, my
 simple test looks like this:

 --
 final TextFieldString fromAddress = new
 TextFieldString(fromAddress);
        fromAddress.add(EmailAddressValidator.getInstance());

        fromAddress.add(new AjaxFormComponentUpdatingBehavior(onchange)
 {

           �...@override
            protected void onUpdate(AjaxRequestTarget target) {
                if (fromAddress.isValid()) {
                    System.out.println(valid);
                } else {
                    System.out.println(not valid);
                }
            }
        }.setThrottleDelay(Duration.ONE_SECOND));
 

 If the entered address is valid, then I do get the expected output
 valid

 But if it's not valid, then I get a warning message:

 --
 WARN  - WebSession                 - Component-targetted feedback message
 was left unrendered. This could be because you are missing a FeedbackPanel
 on the page.  Message: [FeedbackMessage message = 'asd...@l' is not a valid
 email address., reporter = fromAddress, level = ERROR]
 

 I do have a feedbackpanel on the page (if I submit the form, then I get
 the asd...@l is not a valid email address output there).

 However, I really don't want the error message being output during the
 ajax process, I just want to see if it's valid, and then enable/disable the
 checkbox accordingly.

 I also tried playing with AjaxEventBehavior instead of
 AjaxFormComponentUpdatingBehavior, but then the value of the input field
 always is null, and hence valid :) I tried using fromAddress.inputChanged,
 but that made no difference that I could see.

 I'm sure I'm making some stupid mistake. Can anyone guide me in the right
 direction?

 /Stefan





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Opening and closing of modal window is very slow in IE

2009-07-01 Thread Igor Vaynberg
i see you have also opened a jira issue WICKET-2352, try with wicket snapshot.

-igor

On Wed, Jul 1, 2009 at 7:51 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote:
 what version of wicket are you using?

 -igor

 On Wed, Jul 1, 2009 at 2:42 AM,
 arun.s.tiw...@oracle.comarun.s.tiw...@oracle.com wrote:
 Hi,

 In my application we are opening a modal window from the columns in the 
 datatable. The opened modal window contains a page which has a table with 
 records size 1000 without any pagination. Now when we try to close the modal 
 window using the Closed icon at the right of the browser it takes lot of 
 time if the browser is Internet explorer.

 It works fine with the Firefox. Can  anyone suggest any solution for this.



 Regards

 Arun




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ajaxformcomponent

2009-07-01 Thread Stefan Malmesjö
Because I'm stubborn, and wanted to get the send button (and a 
checkbox) enabled via ajax only when the user has entered the right data 
in the form.


The only way I seem to be able to do that is in the way below.

But on the other hand I'm starting to think that might not be a good way 
to do things. The user gets no real good feedback as to *why* the 
button/checkbox is not enabled if I do it that way...


/Stefan

On 2009-07-01 16:55, Igor Vaynberg wrote:

not sure why you are going through all that. add the validator.
behavior#onupdate() will be called when validation passes and the
model is updated, behavior#onerror() will be called if there is an
error.

-igor

2009/7/1 Stefan Malmesjös.m.mo...@gmail.com:
   

Ok... I think I solved it, but it feels like it's an over complicated way of
doing it... comments?

---
final TextFieldString  fromAddress = new TextFieldString(fromAddress);
// fromAddress.add(EmailAddressValidator.getInstance());



fromAddress.add(new AjaxFormComponentUpdatingBehavior(onchange) {

@Override
protected void onUpdate(AjaxRequestTarget target) {
IValidatableString  fromAddressForValidation = new
IValidatableString() {
private boolean isValid = true;

public void error(IValidationError error) {
isValid = false;
}

public String getValue() {
return fromAddress.getValue();
}

public boolean isValid() {
return isValid;
}
};
EmailAddressValidator.getInstance()
.validate(fromAddressForValidation);
if (fromAddressForValidation.isValid()) {
System.out.println(valid!);
} else {
System.out.println(not valid);
}
}
}.setThrottleDelay(Duration.ONE_SECOND));


---

On 2009-06-30 18:15, Stefan Malmesjö wrote:
 

The subject should have been AjaxFormComponentUpdatingBehavior... sorry
about that :-[

On 2009-06-30 18:12, Stefan Malmesjö wrote:
   

Hi,

I'm playing around with validation and ajax, and can't quite seem to do
what I want. The goal is to have a checkbox toggle enabled/disabled
depending on whether the user has entered a valid email address. So, my
simple test looks like this:

--
final TextFieldString  fromAddress = new
TextFieldString(fromAddress);
fromAddress.add(EmailAddressValidator.getInstance());

fromAddress.add(new AjaxFormComponentUpdatingBehavior(onchange)
{

@Override
protected void onUpdate(AjaxRequestTarget target) {
if (fromAddress.isValid()) {
System.out.println(valid);
} else {
System.out.println(not valid);
}
}
}.setThrottleDelay(Duration.ONE_SECOND));


If the entered address is valid, then I do get the expected output
valid

But if it's not valid, then I get a warning message:

--
WARN  - WebSession - Component-targetted feedback message
was left unrendered. This could be because you are missing a FeedbackPanel
on the page.  Message: [FeedbackMessage message = 'asd...@l' is not a valid
email address., reporter = fromAddress, level = ERROR]


I do have a feedbackpanel on the page (if I submit the form, then I get
the asd...@l is not a valid email address output there).

However, I really don't want the error message being output during the
ajax process, I just want to see if it's valid, and then enable/disable the
checkbox accordingly.

I also tried playing with AjaxEventBehavior instead of
AjaxFormComponentUpdatingBehavior, but then the value of the input field
always is null, and hence valid :) I tried using fromAddress.inputChanged,
but that made no difference that I could see.

I'm sure I'm making some stupid mistake. Can anyone guide me in the right
direction?

/Stefan

 
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

   




Re: Mysterious NullPointerException

2009-07-01 Thread Jeremy Levy
I'm trying this, what do you think?
if (e == null) {
log.error(The exception was null, dumping Stack);
Thread.dumpStack();
}

StackTraceElement[] out = e.getStackTrace();
StringBuffer sb = new StringBuffer();

for (StackTraceElement ex : out) {
sb.append(ex.toString() + \n);
}

if (out.length == 0) {
log.error(The exception had a length of 0, dumping Stack);
Thread.dumpStack();
}


What I have seen so far is that e.getStackTrace() has a length of 0, so I
added the thread dump...

Jeremy
On Mon, Jun 29, 2009 at 4:26 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 even if the exception was not being chained it should have still had
 some sort of a stacktrace.

 -igor

 On Mon, Jun 29, 2009 at 11:39 AM, Martijn
 Reuversmartijn.reuv...@gmail.com wrote:
  Likely the message or stacktrace(s) (the actual cause) is throwing the
  nullpointer, in which case that is all you can see when logging. You
  might wanna try: log.error(whatever here,e.getCause()), generally
  the latter is what you're interested in anyway. You might also try:
 
 
   @Override
   protected void logRuntimeException(RuntimeException e) {
 //super.logRuntimeException(e); // Turn this one off as
  somewhere the error seems to occur
 log.error(whatever, but NOT the message,e);
}
 
  Finally, I'd personally attempt to write it all to a custom file to
  see if you can get anything useful into it.
 
  On Mon, Jun 29, 2009 at 6:49 PM, Igor Vaynbergigor.vaynb...@gmail.com
 wrote:
  log.runtimeexception is already doing log.error(e.getMessage(), e);
  and he is still not seeing the stacktrace...
 
  -igor
 
  On Mon, Jun 29, 2009 at 9:41 AM, mbrictsonm...@55minutes.com wrote:
 
  If you simply call log.error(e), your log will only contain
 e.toString(),
  which does not include the stack trace. You need to use the 2-arg
 version of
  log.error() if you want the full trace.
 
  Try this:
 
  log.error(An uncaught runtime exception occurred, e);
 
 
  jelevy wrote:
 
  Igor,
  Can you give me some direction on how to go about getting the e.
 
  In my own RequestCycle I've done the following:
 
   @Override
  protected void logRuntimeException(RuntimeException e) {
  super.logRuntimeException(e);
  log.error(e);
  }
 
 
  --
  View this message in context:
 http://www.nabble.com/Mysterious-NullPointerException-tp24094116p24257631.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Jeremy Levy

See my location in real-time:
http://seemywhere.com/jeremy


Re: ajaxformcomponent

2009-07-01 Thread Igor Vaynberg
my point was that what you want is equivalent to

final TextFieldString fromAddress = new TextFieldString(fromAddress);
fromAddress.add(EmailAddressValidator.getInstance());

   fromAddress.add(new AjaxFormComponentUpdatingBehavior(onchange) {

   @Override
   protected void onUpdate(AjaxRequestTarget target) {
   System.out.println(valid!);
   }

   @Override
   protected void onError(AjaxRequestTarget target) {
   System.out.println(not valid!);
   }

   }.setThrottleDelay(Duration.ONE_SECOND));

-igor

2009/7/1 Stefan Malmesjö s.m.mo...@gmail.com:
 Because I'm stubborn, and wanted to get the send button (and a checkbox)
 enabled via ajax only when the user has entered the right data in the form.

 The only way I seem to be able to do that is in the way below.

 But on the other hand I'm starting to think that might not be a good way to
 do things. The user gets no real good feedback as to *why* the
 button/checkbox is not enabled if I do it that way...

 /Stefan

 On 2009-07-01 16:55, Igor Vaynberg wrote:

 not sure why you are going through all that. add the validator.
 behavior#onupdate() will be called when validation passes and the
 model is updated, behavior#onerror() will be called if there is an
 error.

 -igor

 2009/7/1 Stefan Malmesjös.m.mo...@gmail.com:


 Ok... I think I solved it, but it feels like it's an over complicated way
 of
 doing it... comments?

 ---
 final TextFieldString  fromAddress = new
 TextFieldString(fromAddress);
        // fromAddress.add(EmailAddressValidator.getInstance());



        fromAddress.add(new AjaxFormComponentUpdatingBehavior(onchange)
 {

           �...@override
            protected void onUpdate(AjaxRequestTarget target) {
                IValidatableString  fromAddressForValidation = new
 IValidatableString() {
                    private boolean isValid = true;

                    public void error(IValidationError error) {
                        isValid = false;
                    }

                    public String getValue() {
                        return fromAddress.getValue();
                    }

                    public boolean isValid() {
                        return isValid;
                    }
                };
                EmailAddressValidator.getInstance()
                    .validate(fromAddressForValidation);
                if (fromAddressForValidation.isValid()) {
                    System.out.println(valid!);
                } else {
                    System.out.println(not valid);
                }
            }
        }.setThrottleDelay(Duration.ONE_SECOND));


 ---

 On 2009-06-30 18:15, Stefan Malmesjö wrote:


 The subject should have been AjaxFormComponentUpdatingBehavior... sorry
 about that :-[

 On 2009-06-30 18:12, Stefan Malmesjö wrote:


 Hi,

 I'm playing around with validation and ajax, and can't quite seem to do
 what I want. The goal is to have a checkbox toggle enabled/disabled
 depending on whether the user has entered a valid email address. So, my
 simple test looks like this:

 --
 final TextFieldString  fromAddress = new
 TextFieldString(fromAddress);
        fromAddress.add(EmailAddressValidator.getInstance());

        fromAddress.add(new
 AjaxFormComponentUpdatingBehavior(onchange)
 {

           �...@override
            protected void onUpdate(AjaxRequestTarget target) {
                if (fromAddress.isValid()) {
                    System.out.println(valid);
                } else {
                    System.out.println(not valid);
                }
            }
        }.setThrottleDelay(Duration.ONE_SECOND));
 

 If the entered address is valid, then I do get the expected output
 valid

 But if it's not valid, then I get a warning message:

 --
 WARN  - WebSession                 - Component-targetted feedback
 message
 was left unrendered. This could be because you are missing a
 FeedbackPanel
 on the page.  Message: [FeedbackMessage message = 'asd...@l' is not a
 valid
 email address., reporter = fromAddress, level = ERROR]
 

 I do have a feedbackpanel on the page (if I submit the form, then I get
 the asd...@l is not a valid email address output there).

 However, I really don't want the error message being output during the
 ajax process, I just want to see if it's valid, and then enable/disable
 the
 checkbox accordingly.

 I also tried playing with AjaxEventBehavior instead of
 AjaxFormComponentUpdatingBehavior, but then the value of the input
 field
 always is null, and hence valid :) I tried using
 fromAddress.inputChanged,
 but that made no difference that I could see.

 I'm sure I'm making some stupid mistake. Can anyone guide me in the
 right
 direction?

 /Stefan





 -
 To unsubscribe, e-mail: 

Large internet rich UI Wicket websites?

2009-07-01 Thread David Chang

I am still learning Wicket. The more I read from Wicket in Action, the more 
I like it.

From the book, I know that companies from startups to large-size ones such as 
IBM, Amazon, etc. use Wicket for their projects, but I cannot find a list of 
specific larget internet rich UI websites coded with Wicket. Could someone 
help?

The backgound for this request is that we may use Wicket for a large 
highly-active website. 

Cheers!


  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Large internet rich UI Wicket websites?

2009-07-01 Thread Martin Funk


Am 01.07.2009 um 20:11 schrieb David Chang:



I am still learning Wicket. The more I read from Wicket in  
Action, the more I like it.


From the book, I know that companies from startups to large-size  
ones such as IBM, Amazon, etc. use Wicket for their projects, but I  
cannot find a list of specific larget internet rich UI websites  
coded with Wicket. Could someone help?


The backgound for this request is that we may use Wicket for a large  
highly-active website.

maybe this helps:
http://cwiki.apache.org/WICKET/sites-using-wicket.html
mf


Cheers!




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ajaxformcomponent

2009-07-01 Thread Stefan Malmesjö

Ok, thanks!

/stefan

On 2009-07-01 18:46, Igor Vaynberg wrote:

my point was that what you want is equivalent to

final TextFieldString  fromAddress = new TextFieldString(fromAddress);
fromAddress.add(EmailAddressValidator.getInstance());

fromAddress.add(new AjaxFormComponentUpdatingBehavior(onchange) {

@Override
protected void onUpdate(AjaxRequestTarget target) {
System.out.println(valid!);
}

@Override
protected void onError(AjaxRequestTarget target) {
System.out.println(not valid!);
}

}.setThrottleDelay(Duration.ONE_SECOND));

-igor

2009/7/1 Stefan Malmesjös.m.mo...@gmail.com:
   

Because I'm stubborn, and wanted to get the send button (and a checkbox)
enabled via ajax only when the user has entered the right data in the form.

The only way I seem to be able to do that is in the way below.

But on the other hand I'm starting to think that might not be a good way to
do things. The user gets no real good feedback as to *why* the
button/checkbox is not enabled if I do it that way...

/Stefan

On 2009-07-01 16:55, Igor Vaynberg wrote:
 

not sure why you are going through all that. add the validator.
behavior#onupdate() will be called when validation passes and the
model is updated, behavior#onerror() will be called if there is an
error.

-igor

2009/7/1 Stefan Malmesjös.m.mo...@gmail.com:

   

Ok... I think I solved it, but it feels like it's an over complicated way
of
doing it... comments?

---
final TextFieldStringfromAddress = new
TextFieldString(fromAddress);
// fromAddress.add(EmailAddressValidator.getInstance());



fromAddress.add(new AjaxFormComponentUpdatingBehavior(onchange)
{

@Override
protected void onUpdate(AjaxRequestTarget target) {
IValidatableStringfromAddressForValidation = new
IValidatableString() {
private boolean isValid = true;

public void error(IValidationError error) {
isValid = false;
}

public String getValue() {
return fromAddress.getValue();
}

public boolean isValid() {
return isValid;
}
};
EmailAddressValidator.getInstance()
.validate(fromAddressForValidation);
if (fromAddressForValidation.isValid()) {
System.out.println(valid!);
} else {
System.out.println(not valid);
}
}
}.setThrottleDelay(Duration.ONE_SECOND));


---

On 2009-06-30 18:15, Stefan Malmesjö wrote:

 

The subject should have been AjaxFormComponentUpdatingBehavior... sorry
about that :-[

On 2009-06-30 18:12, Stefan Malmesjö wrote:

   

Hi,

I'm playing around with validation and ajax, and can't quite seem to do
what I want. The goal is to have a checkbox toggle enabled/disabled
depending on whether the user has entered a valid email address. So, my
simple test looks like this:

--
final TextFieldStringfromAddress = new
TextFieldString(fromAddress);
fromAddress.add(EmailAddressValidator.getInstance());

fromAddress.add(new
AjaxFormComponentUpdatingBehavior(onchange)
{

@Override
protected void onUpdate(AjaxRequestTarget target) {
if (fromAddress.isValid()) {
System.out.println(valid);
} else {
System.out.println(not valid);
}
}
}.setThrottleDelay(Duration.ONE_SECOND));


If the entered address is valid, then I do get the expected output
valid

But if it's not valid, then I get a warning message:

--
WARN  - WebSession - Component-targetted feedback
message
was left unrendered. This could be because you are missing a
FeedbackPanel
on the page.  Message: [FeedbackMessage message = 'asd...@l' is not a
valid
email address., reporter = fromAddress, level = ERROR]


I do have a feedbackpanel on the page (if I submit the form, then I get
the asd...@l is not a valid email address output there).

However, I really don't want the error message being output during the
ajax process, I just want to see if it's valid, and then enable/disable
the
checkbox accordingly.

I also tried playing with AjaxEventBehavior instead of
AjaxFormComponentUpdatingBehavior, but then the value of the input
field
always is null, and hence valid :) I tried using
fromAddress.inputChanged,
but that made no difference that I could see.

I'm sure I'm making some stupid mistake. Can anyone guide me in the
right
direction?

/Stefan


 
 


Re: Large internet rich UI Wicket websites?

2009-07-01 Thread David Chang


Martin, I looked at the list and it seems none of them meets what I said about 
large rich ui Wicket website. Likely I am ignorant. Please enlighten me. By 
large, I mean something similar or close to amazon.com or ebay.com that have a 
large number of concurrent users. Which Wicket website in your knowledge seems 
to the largest one?

Thanks!


--- On Wed, 7/1/09, Martin Funk mafulaf...@googlemail.com wrote:

 From: Martin Funk mafulaf...@googlemail.com
 Subject: Re: Large internet rich UI Wicket websites?
 To: users@wicket.apache.org
 Date: Wednesday, July 1, 2009, 3:21 PM
 
 Am 01.07.2009 um 20:11 schrieb David Chang:
 
  
  I am still learning Wicket. The more I read from
 Wicket in Action, the more I like it.
  
  From the book, I know that companies from startups to
 large-size ones such as IBM, Amazon, etc. use Wicket for
 their projects, but I cannot find a list of specific larget
 internet rich UI websites coded with Wicket. Could someone
 help?
  
  The backgound for this request is that we may use
 Wicket for a large highly-active website.
 maybe this helps:
 http://cwiki.apache.org/WICKET/sites-using-wicket.html
 mf
  
  Cheers!
  
  
  
  
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Large internet rich UI Wicket websites?

2009-07-01 Thread Jeremy Thomerson
There are some large ones that have been mentioned on the mailing
lists in the past - you can try searching Nabble - they may not be on
that page.

As a side note, I find it funny how everyone always compares their
anticipated traffic with Amazon or eBay.  I worked at eBay for quite
some time, and I know that you are not going to run either of those
sites with any framework straight out of the box.  I'm not saying
Wicket can't scale to that size, I'm saying that no framework defaults
to being made for that size.  Could eBay or Amazon use Wicket?  Sure,
with the right techniques.  Could your website use it?  Yes, and
probably much easier.  :)

--
Jeremy Thomerson
http://www.wickettraining.com




On Wed, Jul 1, 2009 at 2:51 PM, David Changdavid_q_zh...@yahoo.com wrote:


 Martin, I looked at the list and it seems none of them meets what I said 
 about large rich ui Wicket website. Likely I am ignorant. Please enlighten 
 me. By large, I mean something similar or close to amazon.com or ebay.com 
 that have a large number of concurrent users. Which Wicket website in your 
 knowledge seems to the largest one?

 Thanks!


 --- On Wed, 7/1/09, Martin Funk mafulaf...@googlemail.com wrote:

 From: Martin Funk mafulaf...@googlemail.com
 Subject: Re: Large internet rich UI Wicket websites?
 To: users@wicket.apache.org
 Date: Wednesday, July 1, 2009, 3:21 PM

 Am 01.07.2009 um 20:11 schrieb David Chang:

 
  I am still learning Wicket. The more I read from
 Wicket in Action, the more I like it.
 
  From the book, I know that companies from startups to
 large-size ones such as IBM, Amazon, etc. use Wicket for
 their projects, but I cannot find a list of specific larget
 internet rich UI websites coded with Wicket. Could someone
 help?
 
  The backgound for this request is that we may use
 Wicket for a large highly-active website.
 maybe this helps:
 http://cwiki.apache.org/WICKET/sites-using-wicket.html
 mf
 
  Cheers!
 
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Large internet rich UI Wicket websites?

2009-07-01 Thread Flying Dream
Jeremy,

 I know that you are not going to run either of those sites with any framework 
 straight out of the box.
 I'm not saying Wicket can't scale to that size, I'm saying that no framework 
 defaults to being made for that size. 

Could you please elaborate on it? I am very interested.

TIA!


--- On Wed, 7/1/09, Jeremy Thomerson jer...@wickettraining.com wrote:

 From: Jeremy Thomerson jer...@wickettraining.com
 Subject: Re: Large internet rich UI Wicket websites?
 To: users@wicket.apache.org
 Date: Wednesday, July 1, 2009, 4:08 PM

 There are some large ones that have been mentioned on the mailing
 lists in the past - you can try searching Nabble - they may not be on
 that page.
 
 As a side note, I find it funny how everyone always compares their
 anticipated traffic with Amazon or eBay.  I worked at eBay for quite
 some time, and I know that you are not going to run either of those
 sites with any framework straight out of the box.  I'm not saying
 Wicket can't scale to that size, I'm saying that no framework defaults
 to being made for that size.  Could eBay or Amazon use Wicket?  Sure,
 with the right techniques.  Could your website use it?  Yes, and
 probably much easier.  :)
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 
 On Wed, Jul 1, 2009 at 2:51 PM, David Changdavid_q_zh...@yahoo.com wrote:
 
 
  Martin, I looked at the list and it seems none of them meets what I said 
  about large rich ui Wicket website. Likely I am ignorant. Please enlighten 
  me. By large, I mean something similar or close to amazon.com or ebay.com 
  that have a large number of concurrent users. Which Wicket website in your 
  knowledge seems to the largest one?
 
  Thanks!
 
 
  --- On Wed, 7/1/09, Martin Funk mafulaf...@googlemail.com wrote:
 
  From: Martin Funk mafulaf...@googlemail.com
  Subject: Re: Large internet rich UI Wicket websites?
  To: users@wicket.apache.org
  Date: Wednesday, July 1, 2009, 3:21 PM
 
  Am 01.07.2009 um 20:11 schrieb David Chang:
 
  
   I am still learning Wicket. The more I read from
  Wicket in Action, the more I like it.
  
   From the book, I know that companies from startups to
  large-size ones such as IBM, Amazon, etc. use Wicket for
  their projects, but I cannot find a list of specific larget
  internet rich UI websites coded with Wicket. Could someone
  help?
  
   The backgound for this request is that we may use
  Wicket for a large highly-active website.
  maybe this helps:
  http://cwiki.apache.org/WICKET/sites-using-wicket.html
  mf
  
   Cheers!
  
  
  
  
  
  -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 



  

WebClientInfo and browser version

2009-07-01 Thread Stefan Lindner
Current trunk. The WebclientInfo holds only version info for IE. Looking
at the source code shows that only for IE the majorVersion is set.

But the queryString (using current Firefox 3.0.11) looks like

Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.11)
Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.3072

This means that the major (and minor) version is included in the
queryString. Is this intended that the version is not gathered in the
WebclientInfo's init() method? Or am I totally wrong?

Stefan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Failed to handle wicket:container

2009-07-01 Thread Antoine van Wel
replace the wicket:container by a div, and a better error message may
appear.
in my case the error appeared for a wrong wicket:id
(using 1.3.6)

it would be helpful if the error message made more sense, shall i file a
jira issue for this? (don't know if the same message occurs in 1.4)


Antoine

On Thu, Apr 10, 2008 at 1:20 AM, Jonathan Locke jonathan.lo...@gmail.comwrote:



 I am currently trying to debug a markup handling problem where Wicket is
 complaining that it Failed to handle: wicket:container wicket:id=xyz

 I suspect that the problem is mine as I am mucking around with content
 types
 to deal with mobile devices.  Any ideas on what might be wrong or what
 might
 be a good approach for debugging this? Also, I've changed markup loading a
 bit so it switches back and forth between .wml and .html files (falling
 back
 on the .html if the .wml does not exist). Would this cause any havoc with
 resolving this wicket:container tag?

 Thanks,

Jon



 --
 View this message in context:
 http://www.nabble.com/Failed-to-handle-wicket%3Acontainer-tp16598980p16598980.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 

--8--8--
take your photos everywhere you go - http://www.memolio.com
--8--8--
We don't see things as they are, we see things as we are. - Anais Nin
Whether you think you can or whether you think you can't, you're right. -
Henry Ford
--8--8--


form inside table not displayed on ajax call

2009-07-01 Thread Antoine van Wel
Hi all,


I have a table with various rows in them with an action link per row.
When pressing the action link, that row disappears, and new rows are
inserted.
It works as a charm, except when the newly inserted rows are surrounded by a
form tag, so inside the form, there are tr tags.
What happens then is... nothing! The row with the action link disappears as
it should, but the new rows are not rendered.
In the Ajax-debug-window I see the table is returned as expected, including
the form and new rows.

When I turn on these extra rows on the initial run (so everything visible)
the table renders correctly, showing everything.
When I move the form inside a row, it works fine... but that's not enough..

Cannot imagine this is really a Wicket problem... Using Wicket 1.3.6 +
Firefox


Any tips appreciated!

Antoine.

-- 

--8--8--
take your photos everywhere you go - http://www.memolio.com
--8--8--
We don't see things as they are, we see things as we are. - Anais Nin
Whether you think you can or whether you think you can't, you're right. -
Henry Ford
--8--8--


Re: Mysterious NullPointerException

2009-07-01 Thread Jeremy Levy
Okay, I was able to get a thread dump for when this mysterious exception
happens, see my prior message for the code the code that I am using to print
this out:
2009-07-01 16:42:59,155 ERROR Web [RequestCycle] :
java.lang.NullPointerException
2009-07-01 16:42:59,250 ERROR Web [MMRequestCycle] : The exception had a
length of 0, dumping Stack
2009-07-01 16:42:59,263 ERROR Web [STDERR] : java.lang.Exception: Stack
trace
2009-07-01 16:42:59,273 ERROR Web [STDERR] :at
java.lang.Thread.dumpStack(Thread.java:1206)
2009-07-01 16:42:59,280 ERROR Web [STDERR] :at
com.mdate.web.customcomponents.MMRequestCycle.logRuntimeException(MMRequestCycle.java:95)
2009-07-01 16:42:59,288 ERROR Web [STDERR] :at
org.apache.wicket.RequestCycle.step(RequestCycle.java:1339)
2009-07-01 16:42:59,297 ERROR Web [STDERR] :at
org.apache.wicket.RequestCycle.steps(RequestCycle.java:1399)
2009-07-01 16:42:59,307 ERROR Web [STDERR] :at
org.apache.wicket.RequestCycle.request(RequestCycle.java:529)
2009-07-01 16:42:59,317 ERROR Web [STDERR] :at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)
2009-07-01 16:42:59,339 ERROR Web [STDERR] :at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201)
2009-07-01 16:42:59,356 ERROR Web [STDERR] :at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2009-07-01 16:42:59,363 ERROR Web [STDERR] :at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2009-07-01 16:42:59,372 ERROR Web [STDERR] :at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2009-07-01 16:42:59,380 ERROR Web [STDERR] :at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2009-07-01 16:42:59,389 ERROR Web [STDERR] :at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2009-07-01 16:42:59,398 ERROR Web [STDERR] :at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2009-07-01 16:42:59,407 ERROR Web [STDERR] :at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
2009-07-01 16:42:59,414 ERROR Web [STDERR] :at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
2009-07-01 16:42:59,423 ERROR Web [STDERR] :at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2009-07-01 16:42:59,429 ERROR Web [STDERR] :at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
2009-07-01 16:42:59,435 ERROR Web [STDERR] :at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2009-07-01 16:42:59,442 ERROR Web [STDERR] :at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
2009-07-01 16:42:59,451 ERROR Web [STDERR] :at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2009-07-01 16:42:59,464 ERROR Web [STDERR] :at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
2009-07-01 16:42:59,484 ERROR Web [STDERR] :at
org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
2009-07-01 16:42:59,492 ERROR Web [STDERR] :at
org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
2009-07-01 16:42:59,500 ERROR Web [STDERR] :at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
2009-07-01 16:42:59,507 ERROR Web [STDERR] :at
java.lang.Thread.run(Thread.java:619)




On Wed, Jul 1, 2009 at 12:41 PM, Jeremy Levy jel...@gmail.com wrote:

 I'm trying this, what do you think?
 if (e == null) {
 log.error(The exception was null, dumping Stack);
 Thread.dumpStack();
 }

 StackTraceElement[] out = e.getStackTrace();
 StringBuffer sb = new StringBuffer();

 for (StackTraceElement ex : out) {
 sb.append(ex.toString() + \n);
 }

 if (out.length == 0) {
 log.error(The exception had a length of 0, dumping
 Stack);
 Thread.dumpStack();
 }


 What I have seen so far is that e.getStackTrace() has a length of 0, so I
 added the thread dump...

  Jeremy

 On Mon, Jun 29, 2009 at 4:26 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 even if the exception was not being chained it should have still had
 some sort of a stacktrace.

 -igor

 On Mon, Jun 29, 2009 at 11:39 AM, Martijn
 Reuversmartijn.reuv...@gmail.com wrote:
  Likely the message or stacktrace(s) (the actual cause) is throwing the
  nullpointer, in which case that is all you can see when logging. You
  might wanna try: log.error(whatever here,e.getCause()), generally
  the latter is what you're interested in anyway. You might also try:
 
 
   @Override
   protected void 

Re: form inside table not displayed on ajax call

2009-07-01 Thread Igor Vaynberg
html spec does not allow you to nest a form tag inside a table tag
unless the form is inside a td

-igor

On Wed, Jul 1, 2009 at 2:06 PM, Antoine van
Welantoine.van@gmail.com wrote:
 Hi all,


 I have a table with various rows in them with an action link per row.
 When pressing the action link, that row disappears, and new rows are
 inserted.
 It works as a charm, except when the newly inserted rows are surrounded by a
 form tag, so inside the form, there are tr tags.
 What happens then is... nothing! The row with the action link disappears as
 it should, but the new rows are not rendered.
 In the Ajax-debug-window I see the table is returned as expected, including
 the form and new rows.

 When I turn on these extra rows on the initial run (so everything visible)
 the table renders correctly, showing everything.
 When I move the form inside a row, it works fine... but that's not enough..

 Cannot imagine this is really a Wicket problem... Using Wicket 1.3.6 +
 Firefox


 Any tips appreciated!

 Antoine.

 --

 --8--8--
 take your photos everywhere you go - http://www.memolio.com
 --8--8--
 We don't see things as they are, we see things as we are. - Anais Nin
 Whether you think you can or whether you think you can't, you're right. -
 Henry Ford
 --8--8--


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: form inside table not displayed on ajax call

2009-07-01 Thread Antoine van Wel
why, of course...

thanks for your quick reply!


Antoine.


On Wed, Jul 1, 2009 at 11:47 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 html spec does not allow you to nest a form tag inside a table tag
 unless the form is inside a td

 -igor

 On Wed, Jul 1, 2009 at 2:06 PM, Antoine van
 Welantoine.van@gmail.com wrote:
  Hi all,
 
 
  I have a table with various rows in them with an action link per row.
  When pressing the action link, that row disappears, and new rows are
  inserted.
  It works as a charm, except when the newly inserted rows are surrounded
 by a
  form tag, so inside the form, there are tr tags.
  What happens then is... nothing! The row with the action link disappears
 as
  it should, but the new rows are not rendered.
  In the Ajax-debug-window I see the table is returned as expected,
 including
  the form and new rows.
 
  When I turn on these extra rows on the initial run (so everything
 visible)
  the table renders correctly, showing everything.
  When I move the form inside a row, it works fine... but that's not
 enough..
 
  Cannot imagine this is really a Wicket problem... Using Wicket 1.3.6 +
  Firefox
 
 
  Any tips appreciated!
 
  Antoine.
 
  --
 
  --8--8--
  take your photos everywhere you go - http://www.memolio.com
  --8--8--
  We don't see things as they are, we see things as we are. - Anais Nin
  Whether you think you can or whether you think you can't, you're right. -
  Henry Ford
  --8--8--
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 

--8--8--
take your photos everywhere you go - http://www.memolio.com
--8--8--
We don't see things as they are, we see things as we are. - Anais Nin
Whether you think you can or whether you think you can't, you're right. -
Henry Ford
--8--8--


Link not rendered in AjaxFallbackDefaultDataTable

2009-07-01 Thread Bergmann Manfred

Hi there.

First of all thank you for providing such a great framework.
I've reviewed a couple of frameworks lately including JSF, Grails,  
Lift and found that Wicket is the one I'd like to stay and use.


Here is now my first question:
In a AjaxFallbackDefaultDataTable I've defined a couple of columns.  
The first one should be a link that when clicked will highlight the  
row (as in your examples).

Therefore I've overriden populateItem() in AbstractColumn class:

---
cols.add(new AbstractColumn(new Model(Select)) {
@Override
public void populateItem(final Item item, String compId, IModel  
model) {

//item.add(new Label(compId, select));
item.add(new Link(compId, new Model(select)) {
@Override
public void onClick() {
log.trace(selected clicked...);
}
});
}
});
---

However when the table is rendered, instead of the link a [cell] is  
displayed. That is for all rows which are displayed.
When the link is replaced with a Label, it is correctly displayed (see  
commented line above).


Any ideas what happening here?


Best regards,
Manfred

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Link not rendered in AjaxFallbackDefaultDataTable

2009-07-01 Thread Jeremy Thomerson
Your link doesn't have any text.  The model for a link is not for the
text of the link, but for you to use in onclick.  Although you can
easily override onComponentTag (in the link) and
response.write(getModelObjectAsString());

--
Jeremy Thomerson
http://www.wickettraining.com




On Wed, Jul 1, 2009 at 5:42 PM, Bergmann Manfredm...@software-by-mabe.com 
wrote:
 Hi there.

 First of all thank you for providing such a great framework.
 I've reviewed a couple of frameworks lately including JSF, Grails, Lift and
 found that Wicket is the one I'd like to stay and use.

 Here is now my first question:
 In a AjaxFallbackDefaultDataTable I've defined a couple of columns. The
 first one should be a link that when clicked will highlight the row (as in
 your examples).
 Therefore I've overriden populateItem() in AbstractColumn class:

 ---
 cols.add(new AbstractColumn(new Model(Select)) {
   �...@override
    public void populateItem(final Item item, String compId, IModel model) {
        //item.add(new Label(compId, select));
        item.add(new Link(compId, new Model(select)) {
           �...@override
            public void onClick() {
                log.trace(selected clicked...);
            }
        });
    }
 });
 ---

 However when the table is rendered, instead of the link a [cell] is
 displayed. That is for all rows which are displayed.
 When the link is replaced with a Label, it is correctly displayed (see
 commented line above).

 Any ideas what happening here?


 Best regards,
 Manfred

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Mysterious NullPointerException

2009-07-01 Thread Johan Compagner
Thats just a dumpstack of the current line in the onRuntimeException.

Cant you just debug it somehow an break on exception?

Or call fillstacktrace or something on it? Its weird that the
exception it self just wont generate a stack..

On 01/07/2009, Jeremy Levy jel...@gmail.com wrote:
 Okay, I was able to get a thread dump for when this mysterious exception
 happens, see my prior message for the code the code that I am using to print
 this out:
 2009-07-01 16:42:59,155 ERROR Web [RequestCycle] :
 java.lang.NullPointerException
 2009-07-01 16:42:59,250 ERROR Web [MMRequestCycle] : The exception had a
 length of 0, dumping Stack
 2009-07-01 16:42:59,263 ERROR Web [STDERR] : java.lang.Exception: Stack
 trace
 2009-07-01 16:42:59,273 ERROR Web [STDERR] :at
 java.lang.Thread.dumpStack(Thread.java:1206)
 2009-07-01 16:42:59,280 ERROR Web [STDERR] :at
 com.mdate.web.customcomponents.MMRequestCycle.logRuntimeException(MMRequestCycle.java:95)
 2009-07-01 16:42:59,288 ERROR Web [STDERR] :at
 org.apache.wicket.RequestCycle.step(RequestCycle.java:1339)
 2009-07-01 16:42:59,297 ERROR Web [STDERR] :at
 org.apache.wicket.RequestCycle.steps(RequestCycle.java:1399)
 2009-07-01 16:42:59,307 ERROR Web [STDERR] :at
 org.apache.wicket.RequestCycle.request(RequestCycle.java:529)
 2009-07-01 16:42:59,317 ERROR Web [STDERR] :at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)
 2009-07-01 16:42:59,339 ERROR Web [STDERR] :at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201)
 2009-07-01 16:42:59,356 ERROR Web [STDERR] :at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 2009-07-01 16:42:59,363 ERROR Web [STDERR] :at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2009-07-01 16:42:59,372 ERROR Web [STDERR] :at
 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 2009-07-01 16:42:59,380 ERROR Web [STDERR] :at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 2009-07-01 16:42:59,389 ERROR Web [STDERR] :at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2009-07-01 16:42:59,398 ERROR Web [STDERR] :at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
 2009-07-01 16:42:59,407 ERROR Web [STDERR] :at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 2009-07-01 16:42:59,414 ERROR Web [STDERR] :at
 org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
 2009-07-01 16:42:59,423 ERROR Web [STDERR] :at
 org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
 2009-07-01 16:42:59,429 ERROR Web [STDERR] :at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 2009-07-01 16:42:59,435 ERROR Web [STDERR] :at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 2009-07-01 16:42:59,442 ERROR Web [STDERR] :at
 org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
 2009-07-01 16:42:59,451 ERROR Web [STDERR] :at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 2009-07-01 16:42:59,464 ERROR Web [STDERR] :at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
 2009-07-01 16:42:59,484 ERROR Web [STDERR] :at
 org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
 2009-07-01 16:42:59,492 ERROR Web [STDERR] :at
 org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
 2009-07-01 16:42:59,500 ERROR Web [STDERR] :at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
 2009-07-01 16:42:59,507 ERROR Web [STDERR] :at
 java.lang.Thread.run(Thread.java:619)




 On Wed, Jul 1, 2009 at 12:41 PM, Jeremy Levy jel...@gmail.com wrote:

 I'm trying this, what do you think?
 if (e == null) {
 log.error(The exception was null, dumping Stack);
 Thread.dumpStack();
 }

 StackTraceElement[] out = e.getStackTrace();
 StringBuffer sb = new StringBuffer();

 for (StackTraceElement ex : out) {
 sb.append(ex.toString() + \n);
 }

 if (out.length == 0) {
 log.error(The exception had a length of 0, dumping
 Stack);
 Thread.dumpStack();
 }


 What I have seen so far is that e.getStackTrace() has a length of 0, so I
 added the thread dump...

  Jeremy

 On Mon, Jun 29, 2009 at 4:26 PM, Igor Vaynberg
 igor.vaynb...@gmail.comwrote:

 even if the exception was not being chained it should have still had
 some sort of a stacktrace.

 -igor

 On Mon, Jun 29, 2009 at 11:39 AM, Martijn
 Reuversmartijn.reuv...@gmail.com 

Re: Slideshow

2009-07-01 Thread francisco treacy
I think you should ask this at the SmoothGallery forum, as this
concern is on the JavaScript side.

Francisco

2009/6/29 Johannes Schneider maili...@cedarsoft.com:
 Thanks for that hint.
 Do you know how many images wicket-slides/SmoothGallery support? I will
 have galleries with thousands of pictures...


 Regards,

 Johannes

 francisco treacy wrote:
 Once you have your images sorted you may want to have a look at:

 http://code.google.com/p/wicket-slides/

 or perhaps there is a jQuery slideshow plugin that you could use with
 the newer Wicket-jQuery integrations.

 Francisco



 2009/6/27 Johannes Schneider maili...@cedarsoft.com:
 Hi,

 I want to implement a slide show with wicket.
 I have many images on the local hard disk - but they are unordered.

 Now I want to create a slide show that shows those images sorted.


 I started this way:

 Created a page with an img and added that markup there:

 add( new Image( image, new WebResource() {
 //access the file on the hd
 }

 Is this the best way? Or am I missing something?


 Of course I'd like to change the image(s) using AJAX. Could anyone give
 me a hint/link where I should continue to search...



 Thanks,

 Johannes

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Link not rendered in AjaxFallbackDefaultDataTable

2009-07-01 Thread Igor Vaynberg
oncomponenttagbody() is a better place to override if you want to
output text, see how Label works or search this list for TextLink

-igor

On Wed, Jul 1, 2009 at 3:44 PM, Jeremy
Thomersonjer...@wickettraining.com wrote:
 Your link doesn't have any text.  The model for a link is not for the
 text of the link, but for you to use in onclick.  Although you can
 easily override onComponentTag (in the link) and
 response.write(getModelObjectAsString());

 --
 Jeremy Thomerson
 http://www.wickettraining.com




 On Wed, Jul 1, 2009 at 5:42 PM, Bergmann Manfredm...@software-by-mabe.com 
 wrote:
 Hi there.

 First of all thank you for providing such a great framework.
 I've reviewed a couple of frameworks lately including JSF, Grails, Lift and
 found that Wicket is the one I'd like to stay and use.

 Here is now my first question:
 In a AjaxFallbackDefaultDataTable I've defined a couple of columns. The
 first one should be a link that when clicked will highlight the row (as in
 your examples).
 Therefore I've overriden populateItem() in AbstractColumn class:

 ---
 cols.add(new AbstractColumn(new Model(Select)) {
   �...@override
    public void populateItem(final Item item, String compId, IModel model) {
        //item.add(new Label(compId, select));
        item.add(new Link(compId, new Model(select)) {
           �...@override
            public void onClick() {
                log.trace(selected clicked...);
            }
        });
    }
 });
 ---

 However when the table is rendered, instead of the link a [cell] is
 displayed. That is for all rows which are displayed.
 When the link is replaced with a Label, it is correctly displayed (see
 commented line above).

 Any ideas what happening here?


 Best regards,
 Manfred

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Problem with RadioGroup / Ajax

2009-07-01 Thread Travis Boswell
Hi,
I'm having an issue with a RadioGroup that is used in conjunction with a 
ListView, the populateItem method for the ListView looks like:

public void populateItem(final ListItem listItem) {
final PoDetailAdj pda = (PoDetailAdj) listItem.getModelObject();

  listItem.add(new Radio(radio-status-pending, new Model()));
listItem.add(new Radio(radio-status-approved, new Model()));
}

The RadioGroup encloses the entire ListView, and the RadioGroup is added to a 
form on the page. The display works fine, so I added 
AjaxFormChoiceComponentUpdatingBehavior to the RadioGroup, but changing the 
Radio values doesn't trigger the onUpdate method of the RadioGroup. I also 
tried having one RadioGroup per ListItem (a new RadioGroup defined for every 
row) but that didn't work either. I'm starting to think that maybe the ListView 
is the problem. Any thoughts or suggestions?

Travis Boswell




Re: Link not rendered in AjaxFallbackDefaultDataTable

2009-07-01 Thread Jeremy Thomerson
oops - typo

--
Jeremy Thomerson
http://www.wickettraining.com




On Wed, Jul 1, 2009 at 9:15 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote:
 oncomponenttagbody() is a better place to override if you want to
 output text, see how Label works or search this list for TextLink

 -igor

 On Wed, Jul 1, 2009 at 3:44 PM, Jeremy
 Thomersonjer...@wickettraining.com wrote:
 Your link doesn't have any text.  The model for a link is not for the
 text of the link, but for you to use in onclick.  Although you can
 easily override onComponentTag (in the link) and
 response.write(getModelObjectAsString());

 --
 Jeremy Thomerson
 http://www.wickettraining.com




 On Wed, Jul 1, 2009 at 5:42 PM, Bergmann Manfredm...@software-by-mabe.com 
 wrote:
 Hi there.

 First of all thank you for providing such a great framework.
 I've reviewed a couple of frameworks lately including JSF, Grails, Lift and
 found that Wicket is the one I'd like to stay and use.

 Here is now my first question:
 In a AjaxFallbackDefaultDataTable I've defined a couple of columns. The
 first one should be a link that when clicked will highlight the row (as in
 your examples).
 Therefore I've overriden populateItem() in AbstractColumn class:

 ---
 cols.add(new AbstractColumn(new Model(Select)) {
   �...@override
    public void populateItem(final Item item, String compId, IModel model) {
        //item.add(new Label(compId, select));
        item.add(new Link(compId, new Model(select)) {
           �...@override
            public void onClick() {
                log.trace(selected clicked...);
            }
        });
    }
 });
 ---

 However when the table is rendered, instead of the link a [cell] is
 displayed. That is for all rows which are displayed.
 When the link is replaced with a Label, it is correctly displayed (see
 commented line above).

 Any ideas what happening here?


 Best regards,
 Manfred

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Failed to handle wicket:container

2009-07-01 Thread Jonathan Locke


it would be nice to improve the error message, but i'm no longer working on
this project so it's not that important to me personally. thanks for your
response.

jon


Antoine van Wel wrote:
 
 replace the wicket:container by a div, and a better error message may
 appear.
 in my case the error appeared for a wrong wicket:id
 (using 1.3.6)
 
 it would be helpful if the error message made more sense, shall i file a
 jira issue for this? (don't know if the same message occurs in 1.4)
 
 
 Antoine
 
 On Thu, Apr 10, 2008 at 1:20 AM, Jonathan Locke
 jonathan.lo...@gmail.comwrote:
 


 I am currently trying to debug a markup handling problem where Wicket is
 complaining that it Failed to handle: wicket:container
 wicket:id=xyz

 I suspect that the problem is mine as I am mucking around with content
 types
 to deal with mobile devices.  Any ideas on what might be wrong or what
 might
 be a good approach for debugging this? Also, I've changed markup loading
 a
 bit so it switches back and forth between .wml and .html files (falling
 back
 on the .html if the .wml does not exist). Would this cause any havoc with
 resolving this wicket:container tag?

 Thanks,

Jon



 --
 View this message in context:
 http://www.nabble.com/Failed-to-handle-wicket%3Acontainer-tp16598980p16598980.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 
 
 -- 
 
 --8--8--
 take your photos everywhere you go - http://www.memolio.com
 --8--8--
 We don't see things as they are, we see things as we are. - Anais Nin
 Whether you think you can or whether you think you can't, you're right. -
 Henry Ford
 --8--8--
 
 

-- 
View this message in context: 
http://www.nabble.com/Failed-to-handle-wicket%3Acontainer-tp16598980p24300483.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AjaxSelfUpdatingTimerBehavior and Panels

2009-07-01 Thread Mauro Ciancio
Hi everyone,
  I'm having an issue with the AjaxSelfUpdatingTimerBehavior and panels
in my page. The thing is I have a panel that is switched via ajax. All the
others parts of my page remains without change.
  In a specific panel (one of those being changed) I added an
AjaxSelfUpdatingTimerBehavior. It works fine, but when i replace the panel
with a new instance of the panel a new timer its appended to the page.
So, after that I have two timers refreshing my page.
  If the panel is replaced another time, a third timer come up.
  But, if the original panel is replaced with other panel, this exception is
thrown:

Root cause:

java.lang.NullPointerException
at
org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:96)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1240)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1319)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:544)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:295)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Any idea to fix this issue?
How should I do to make the panel changeable without having this issue?

Thanks in advance,
Cheers!
-- 
Mauro Ciancio


Re: AjaxSelfUpdatingTimerBehavior and Panels

2009-07-01 Thread Igor Vaynberg
you can attach the behavior to a container around the panels, just a
simple webmarkupcontainer should do.

-igor

On Wed, Jul 1, 2009 at 10:06 PM, Mauro Cianciomaurocian...@gmail.com wrote:
 Hi everyone,
  I'm having an issue with the AjaxSelfUpdatingTimerBehavior and panels
 in my page. The thing is I have a panel that is switched via ajax. All the
 others parts of my page remains without change.
  In a specific panel (one of those being changed) I added an
 AjaxSelfUpdatingTimerBehavior. It works fine, but when i replace the panel
 with a new instance of the panel a new timer its appended to the page.
 So, after that I have two timers refreshing my page.
  If the panel is replaced another time, a third timer come up.
  But, if the original panel is replaced with other panel, this exception is
 thrown:

 Root cause:

 java.lang.NullPointerException
 at
 org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:96)
 at
 org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
 at
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1240)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1319)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:544)
 at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
 at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
 at org.mortbay.jetty.Server.handle(Server.java:295)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
 at
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
 at
 org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
 at
 org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
 Any idea to fix this issue?
 How should I do to make the panel changeable without having this issue?

 Thanks in advance,
 Cheers!
 --
 Mauro Ciancio


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Opening and closing of modal window is very slow in IE

2009-07-01 Thread ArunTiwari

Hi,
I am using wicket 1.4-m2 version .

Regards
Arun

igor.vaynberg wrote:
 
 what version of wicket are you using?
 
 -igor
 
 On Wed, Jul 1, 2009 at 2:42 AM,
 arun.s.tiw...@oracle.comarun.s.tiw...@oracle.com wrote:
 Hi,

 In my application we are opening a modal window from the columns in the
 datatable. The opened modal window contains a page which has a table with
 records size 1000 without any pagination. Now when we try to close the
 modal window using the Closed icon at the right of the browser it takes
 lot of time if the browser is Internet explorer.

 It works fine with the Firefox. Can  anyone suggest any solution for
 this.



 Regards

 Arun


 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Opening-and-closing-of-modal-window-is-very-slow-in-IE-tp24287036p24301554.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Hiding Components based on style

2009-07-01 Thread Andrew Berman
Cool that's what I was looking for Igor.  Thank you!

Also, thank you Richard.  I know of the CSS route, but I really wanted to
not have it show up in the actual HTML as I didn't want someone hacking the
form or being able to turn on the link using something like Web Developer in
Firefox.

Thanks guys!

On Fri, Jun 26, 2009 at 11:24 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 so you want to include all possible components in the class, but
 exclude some in the markup and not have an error? fine, just turn off
 componentusecheck in debug settings.

 -igor

 On Fri, Jun 26, 2009 at 11:13 AM, Andrew Bermanatber...@gmail.com wrote:
  Right, I know that way, but I don't want to I don't want to do that
 though
  Igor.  That seems like really bad practice as I add styles constantly and
 I
  don't want to have to make a code change every time I add a style.  It's
  much better for me to just modify the HTML and be done with it without
  having to make code changes.  I really think there should be a way to do
  this with some sort of comment tag or something.  Maybe there needs to be
 a
  wicket:comment tag where the code inside is evaluated so there are no
  errors but that the component is hidden.
 
  Thanks for your help,
 
  Andrew
 
  On Thu, Jun 25, 2009 at 8:47 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
 
  add(new textfield(..) { isvisible() { return
  getsession.getstyle().equals(foo); }});
 
  -igor
 
  On Thu, Jun 25, 2009 at 8:41 PM, Andrew Bermanatber...@gmail.com
 wrote:
   I am using Wicket 1.3 and was wondering if there is a way to hide
  components
   in the HTML itself.  Here's the issue, say I have two forms and two
   different styles.  In one style I want to display all the form fields,
   however in the other one I want to display only a couple of them.  I
   currently have two HTML files, one for each style, but I can't seem to
  find
   a way to hide the form fields aside from using CSS and adding
  display:none.
   Is that the only way to do it?
  
   Thanks!
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org