Re: Feedback/Error message.

2014-07-07 Thread Paul Bors
Have a look at the Sortable DataTable:
https://cwiki.apache.org/confluence/display/WICKET/Simple+Sortable+DataTable+Example

It has a build in message for when there are no results matching your
filter or the model is empty.
You can override it to display your own custom message as well.


On Sat, Jun 21, 2014 at 9:11 AM, K  wrote:

> Hi
>
> I am trying to build a web application in which i have to display list of
> items on search...
>
> this part has been done but i have to add a errror message in the same page
> if the search result comes out null...
>
> I am using DataView for displaying the results. using condition in java is
> simple but for the unreachable id that i mention in condition the mark up
> is
> not being rendered if the condition is true.
>
> any help is well appriciated...
>
> Thanks
>
>
> -
>
> K
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Feedback-Error-message-tp1874404p4666330.html
> Sent from the Users forum 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: Feedback/Error message.

2014-06-21 Thread K
Hi

I am trying to build a web application in which i have to display list of
items on search...

this part has been done but i have to add a errror message in the same page
if the search result comes out null...

I am using DataView for displaying the results. using condition in java is
simple but for the unreachable id that i mention in condition the mark up is
not being rendered if the condition is true.

any help is well appriciated...

Thanks


-

K
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Feedback-Error-message-tp1874404p4666330.html
Sent from the Users forum 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: Feedback/Error message.

2008-11-04 Thread Nick Heudecker
Or just style it with CSS.

On Tue, Nov 4, 2008 at 9:46 AM, Graeme Knight <[EMAIL PROTECTED]> wrote:

>
> Hey!
>
> Cool - add a feedback panel then set error - I like that! I didn't get to
> that part in the Wicket in Action as yet but I see how it works!
>
> Actually - my authentication method is very similar to the one on the book
> (again not got to that part yet), so I'm pretty psyched I'm heading in the
> right direction!
>
> I'm assuming if I wanted a panel with an icon and an error message I just
> create a component with a feedback panel and an image and populate
> accordingly?
>
> Cheers, Graeme.
>
>
> igor.vaynberg wrote:
> >
> > On Mon, Nov 3, 2008 at 8:02 PM, Graeme Knight <[EMAIL PROTECTED]>
> > wrote:
> >> 3) onSubmit authenticates against the database through a load on a
> >> LoadableDetachableModel, and returns the result as the model's object.
> >
> > ^ sounds interesting...paste your code.
> >
> > -igor
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Feedback-Error-message.-tp20315444p20327425.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]
>
>


-- 
Nick Heudecker
Professional Wicket Training & Consulting
http://www.systemmobile.com

Eventful - Intelligent Event Management
http://www.eventfulhq.com


Re: Feedback/Error message.

2008-11-04 Thread Graeme Knight

Hey!

Cool - add a feedback panel then set error - I like that! I didn't get to
that part in the Wicket in Action as yet but I see how it works!

Actually - my authentication method is very similar to the one on the book
(again not got to that part yet), so I'm pretty psyched I'm heading in the
right direction!

I'm assuming if I wanted a panel with an icon and an error message I just
create a component with a feedback panel and an image and populate
accordingly?

Cheers, Graeme.


igor.vaynberg wrote:
> 
> On Mon, Nov 3, 2008 at 8:02 PM, Graeme Knight <[EMAIL PROTECTED]>
> wrote:
>> 3) onSubmit authenticates against the database through a load on a
>> LoadableDetachableModel, and returns the result as the model's object.
> 
> ^ sounds interesting...paste your code.
> 
> -igor
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Feedback-Error-message.-tp20315444p20327425.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: Feedback/Error message.

2008-11-03 Thread Igor Vaynberg
On Mon, Nov 3, 2008 at 8:02 PM, Graeme Knight <[EMAIL PROTECTED]> wrote:
> 3) onSubmit authenticates against the database through a load on a
> LoadableDetachableModel, and returns the result as the model's object.

^ sounds interesting...paste your code.

-igor

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



Re: Feedback/Error message.

2008-11-03 Thread Igor Vaynberg
add(new feedbackpanel("feedback"));

onsubmit() {
  user u=authenticator.auth(username, password);
  if (u==null) {
  error("Invalid password");
  } else {
if (!continuetooriginaldestination) {
setresponsepage(application.get().gethomepage()); }
  }
}

-igor

On Mon, Nov 3, 2008 at 8:02 PM, Graeme Knight <[EMAIL PROTECTED]> wrote:
>
> Hi.
>
> Loving Wicket so far! I had a search and had trouble finding the answer to
> this one, if anyone can help:
>
> 1) I have a simple form with username/password and a submit button.
>
> 2) User enters username/password and hits submit.
>
> 3) onSubmit authenticates against the database through a load on a
> LoadableDetachableModel, and returns the result as the model's object.
>
> Let's say there is an error on authenticating against the database - what is
> the easiest way of giving the user feedback that his username/password was
> wrong? I naively thought I might be able to do some sort of conditional
> insert of a component into the page or form (similar to Tapestry).
>
> My solution was then to add a panel (regular not feedback) to the page which
> consists of an error icon and a custom message. I would like to update this
> component on the re-render so it doesn't display if there isn't a problem,
> but it does if there is a problem (couldn't get isVisible working this way).
>
> What's the Wicket way?
>
> Many thanks, Graeme.
> --
> View this message in context: 
> http://www.nabble.com/Feedback-Error-message.-tp20315444p20315444.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]
>
>

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