Listing all the mounted pages

2012-01-27 Thread lucaabbati
Hi everybody,

I have a question and I couldn't figure out on my own the answer...neither
reading here nor looking documentation around.

There is a way to list all the pages mounted?

For example, let's say that in the init method of my Application I did the
following:

mountPage("page1", Class1Name.class);
mountPage("page2", Class2Name.class);

Is there a method to retrieve the list (of the two mounted pages) at
runtime?

Thanks a lot in advance

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Listing-all-the-mounted-pages-tp4334718p4334718.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



Possible to show ExceptionErrorPage after showing our own error page?

2012-01-27 Thread Chris Merrill
We've replaced wicket error pages with our own, based on instructions here:
https://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html

We would like developers to see what the users are going to see, so we don't
want to disable this feature during development. We would, however, like to
show the very useful wicket exception error page. For example, we might have
a link to it on our error page that is only turned on for development 
deployments.

I have hunted around a little, but I haven't yet figured out how to get
Wicket to pass the Exception and Page to my error page - so that I might
pass it on to an ExceptionErrorPage when the link is selected.

Is there an easy way to do this, or do I need to start digging deep?


-- 
 -
Chris Merrill   |  Web Performance, Inc.
ch...@webperformance.com|  http://webperformance.com
919-433-1762|  919-845-7601

Web Performance: Website Load Testing Software & Services
 -

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



RE: Wicket Feedback panels and Hibernate Validation

2012-01-27 Thread Wooldridge, Keith A
No luck with this.  I tried checking message.getReporter() and it's always the 
form instead of the field.

Keith Wooldridge


-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: Friday, January 27, 2012 3:24 AM
To: users@wicket.apache.org
Subject: Re: Wicket Feedback panels and Hibernate Validation

Hi,

On Thu, Jan 26, 2012 at 10:36 PM, Wooldridge, Keith A
 wrote:
> I'm trying to create a custom hibernate validator , based on bradhouse's 
> solution in this StackOverflow 
> thread.
>   I'm passing in the field name that I would like the error message to be 
> associated with to addNode.  Unfortunately, my ComponentFeedbackMessageFilter 
> that is associated with the field in wicket does not know that the message 
> was directed to it.  I know wicket is getting the validation error from 
> Hibernate, because it shows up in my unfiltered feedback panel.
>
> Could it be that I'm adding the feedback messages from a Behavior instead of 
> from a FeedbackPanel directly?  The core of the Behavior, where the messages 
> get attached , is this:
>
> @Override
> public void afterRender(Component component) {
>      FormComponent fc = (FormComponent)component;
>      Response r = component.getResponse();
>
>      FeedbackMessages messages = fc.getSession().getFeedbackMessages();
>
>      if (messages.hasMessageFor(component)) {
>            r.write("");
>            IFeedbackMessageFilter filter = new 
> ComponentFeedbackMessageFilter(component);
>            for (FeedbackMessage message : messages.messages(filter)) {

Try instead with:
 for (FeedbackMessage message : messages.messagesForComponent)

and then for each message:
message.markRendered();

>                  r.write("                  r.write(message.getLevelAsString().toUpperCase());
>                  r.write("\">");
>                  
> r.write(Strings.escapeMarkup(message.getMessage().toString()));
>                  r.write("");
>            }
>            r.write("");
>      }
>      r.write("");
> }
>
> Thanks,
>
> Keith Wooldridge
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: File upload progress bar

2012-01-27 Thread azatmar
PLease add in WicketApplication class in init() method 


getApplicationSettings().setUploadProgressUpdatesEnabled(true);


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/File-upload-progress-bar-tp3255359p4331533.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: handling request to component - the wicket way

2012-01-27 Thread kamiseq
ok, thanks I ll look at it during weekend

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__

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



Re: Wicket Feedback panels and Hibernate Validation

2012-01-27 Thread Martin Grigorov
Hi,

On Thu, Jan 26, 2012 at 10:36 PM, Wooldridge, Keith A
 wrote:
> I'm trying to create a custom hibernate validator , based on bradhouse's 
> solution in this StackOverflow 
> thread.
>   I'm passing in the field name that I would like the error message to be 
> associated with to addNode.  Unfortunately, my ComponentFeedbackMessageFilter 
> that is associated with the field in wicket does not know that the message 
> was directed to it.  I know wicket is getting the validation error from 
> Hibernate, because it shows up in my unfiltered feedback panel.
>
> Could it be that I'm adding the feedback messages from a Behavior instead of 
> from a FeedbackPanel directly?  The core of the Behavior, where the messages 
> get attached , is this:
>
> @Override
> public void afterRender(Component component) {
>      FormComponent fc = (FormComponent)component;
>      Response r = component.getResponse();
>
>      FeedbackMessages messages = fc.getSession().getFeedbackMessages();
>
>      if (messages.hasMessageFor(component)) {
>            r.write("");
>            IFeedbackMessageFilter filter = new 
> ComponentFeedbackMessageFilter(component);
>            for (FeedbackMessage message : messages.messages(filter)) {

Try instead with:
 for (FeedbackMessage message : messages.messagesForComponent)

and then for each message:
message.markRendered();

>                  r.write("                  r.write(message.getLevelAsString().toUpperCase());
>                  r.write("\">");
>                  
> r.write(Strings.escapeMarkup(message.getMessage().toString()));
>                  r.write("");
>            }
>            r.write("");
>      }
>      r.write("");
> }
>
> Thanks,
>
> Keith Wooldridge
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: handling request to component - the wicket way

2012-01-27 Thread robert.mcguinness
threw it up on heroku in case you didn't' want to use gradle too see
examples.  last two components (dropdown, session login button) are
incomplete at the moment.

http://wicket-stateless.herokuapp.com/?counter=8

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/handling-request-to-component-the-wicket-way-tp4331722p4332848.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: Stateless forms on Wicket 1.5.4

2012-01-27 Thread Martin Grigorov
Hi,

Yes, there is a bug.
Please create a ticket.

2012/1/26 André Camilo :
> Hi,
>
> I think wicket 1.5.4 has a problem with stateless forms.
>
> On the example
> http://www.wicket-library.com/wicket-examples/stateless/state-in-url , doing
> the following steps:
>
> Submit value 10 - Value submitted: 10
> Submit again value 11, and it show value submitted: 10 (and the query
> parameters have "value=10")
>
> This isn't the expected result, right?
>
> --
>
> *André Camilo*
> Software Architect
>
> *Premium Minds*
> Av. 5 de Outubro nº176 2ºDto
> 1050-063 Lisboa
> www.premium-minds.com 
>
> Geral: +351 217 817 555
> andre.cam...@premium-minds.com 
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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