Website 2.0

2009-10-12 Thread Daniel Frisk
We recently did a complete overhaul of our web site: reworked the  
graphics, refactoring, added some jQuery goodies and of course added  
lots of features.


Wicket really continues to deliver! All in all it was a smooth  
operation. The complexity of the site continues to grow but we have  
managed to keep the codebase nice and tight with reusable components.  
I'm really proud of our work here so far. What ya think?


http://jalbum.net

// Daniel Frisk


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



Re: 1.4.2 upgrade problem

2009-10-12 Thread Roman Ilin
I can confirm.
I see the same exception after upgrade to 1.4.2

Regargds

Roman

On Mon, Oct 12, 2009 at 11:37 PM, Girts Ziemelis
 wrote:
> Sorry about double post - I sent it first to the dev list accidentally :(
>
> I believe there is a bug in wicket 1.4.2, which stopped me from upgrading :(
> I have created issue for this (quickstart added):
>
> https://issues.apache.org/jira/browse/WICKET-2519
>
> Finally I narrowed it down to adding following to quick start, which works
> fine in 1.4.1 and fails in 1.4.2:
>
> 2 lines to HomePage.html
>   />
>   />
>
> 2 lines to HomePage.java
>      add(new BookmarkablePageLink("logout", HomePage.class));
>      add(new BookmarkablePageLink("login", HomePage.class));
> and HomePage.properties
> login=Login
> logout=Logout
>
> I get following stack trace
>
> WicketMessage: Could not find child with id: login in the wicket:enclosure
>
> Root cause:
>
> org.apache.wicket.WicketRuntimeException: Could not find child with id:
> login in the wicket:enclosure
>   at
> org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enclosure.java:210)
>   at
> org.apache.wicket.markup.html.internal.Enclosure.ensureAllChildrenPresent(Enclosure.java:249)
>   at
> org.apache.wicket.markup.html.internal.Enclosure.onComponentTagBody(Enclosure.java:169)
>   at org.apache.wicket.Component.renderComponent(Component.java:2626)
>   at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
>   at org.apache.wicket.Component.render(Component.java:2457)
>   at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
>   at
> org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureResolver.java:61)
>   at
> org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
>   at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
>   at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1528)
>   at org.apache.wicket.Page.onRender(Page.java:1545)
>   at org.apache.wicket.Component.render(Component.java:2457)
>   at org.apache.wicket.Page.renderPage(Page.java:914)
>   at
> org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262)
>   at
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
>   at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
>   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
>   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
>   at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
>   at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468)
>   at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301)
>   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)
>
>
>
>
>
>
> -
> 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



1.4.2 upgrade problem

2009-10-12 Thread Girts Ziemelis

Sorry about double post - I sent it first to the dev list accidentally :(

I believe there is a bug in wicket 1.4.2, which stopped me from 
upgrading :(

I have created issue for this (quickstart added):

https://issues.apache.org/jira/browse/WICKET-2519

Finally I narrowed it down to adding following to quick start, which 
works fine in 1.4.1 and fails in 1.4.2:


2 lines to HomePage.html
  key="logout" />
  />


2 lines to HomePage.java
  add(new BookmarkablePageLink("logout", HomePage.class));
  add(new BookmarkablePageLink("login", HomePage.class));
and HomePage.properties
login=Login
logout=Logout

I get following stack trace

WicketMessage: Could not find child with id: login in the wicket:enclosure

Root cause:

org.apache.wicket.WicketRuntimeException: Could not find child with id: 
login in the wicket:enclosure
   at 
org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enclosure.java:210) 

   at 
org.apache.wicket.markup.html.internal.Enclosure.ensureAllChildrenPresent(Enclosure.java:249) 

   at 
org.apache.wicket.markup.html.internal.Enclosure.onComponentTagBody(Enclosure.java:169) 


   at org.apache.wicket.Component.renderComponent(Component.java:2626)
   at 
org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)

   at org.apache.wicket.Component.render(Component.java:2457)
   at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
   at 
org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureResolver.java:61) 

   at 
org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81) 

   at 
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
   at 
org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1528)

   at org.apache.wicket.Page.onRender(Page.java:1545)
   at org.apache.wicket.Component.render(Component.java:2457)
   at org.apache.wicket.Page.renderPage(Page.java:914)
   at 
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262) 

   at 
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105) 

   at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258) 


   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
   at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468)
   at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301) 

   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) 








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



mi first app deployed with wicket

2009-10-12 Thread Fernando Wermus
Hi all,
I ve been working with Maven, so there is no chance to have some
dependecies problems, but Tomcat throw this exception,


INFO: ContextListener: attributeAdded('org.apache.catalina.MBeanServer',
'com.sun.jmx.mbeanserver.jmxmbeanser...@105d88a')
Oct 12, 2009 4:54:40 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet default threw exception
java.lang.NoClassDefFoundError: org/apache/wicket/RequestContext
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:329)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
Oct 12, 2009 4:54:51 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet default threw exception

any help?


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: Two inmethod datagrid questions

2009-10-12 Thread Matej Knopp
On Mon, Oct 12, 2009 at 10:24 PM, Stefan Lindner  wrote:
> I play around with the DefaultDataGrid component and I have two questions:
>
> 1. Is it possible to register for a "column resized" event? This would give 
> us the ability to remember the user's favorite column widths.
Override onColumnStateChanged

> 2. Is it possible to hide the navigation footer? Yes, I can do it via css but 
> if I don't need a footer why should there be an invisible one.
Don't used DefaultDataGrid. Make your own subclass and don't add PagingToolbar.

-Matej
>
> Very nice component!
>

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



Re: Two inmethod datagrid questions

2009-10-12 Thread Erik Post
On Mon, Oct 12, 2009 at 10:24 PM, Stefan Lindner  wrote:
> I play around with the DefaultDataGrid component and I have two questions:
>
> 1. Is it possible to register for a "column resized" event? This would give 
> us the ability to remember the user's favorite column widths.
> 2. Is it possible to hide the navigation footer? Yes, I can do it via css but 
> if I don't need a footer why should there be an invisible one.

and...

3) Could someone perhaps link the grid wiki page I created this
afternoon [1] on the wicketstuff front page? I don't have the required
permissions. The url is:
http://wicketstuff.org/confluence/display/STUFFWIKI/Inmethod+Grid --
many thanks!

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



Two inmethod datagrid questions

2009-10-12 Thread Stefan Lindner
I play around with the DefaultDataGrid component and I have two questions:

1. Is it possible to register for a "column resized" event? This would give us 
the ability to remember the user's favorite column widths.
2. Is it possible to hide the navigation footer? Yes, I can do it via css but 
if I don't need a footer why should there be an invisible one.

Very nice component!


Re: [ANN] wicket-dnd project

2009-10-12 Thread Sven Meier

Hi Doug,

you're adding a second drop target to your currentContainer:

   currentContainer.add(new DropTarget(Operation.COPY) {
 ...
   }.dropBottom("div"));

But there aren't any DIVs contained inside your currentContainer, so 
wicket-dnd isn't able to find a drop location.


If you just want to support drop operations even if no items are already 
present, you can do so with a single drop target:


   currentContainer.add(new DropTarget(Operation.MOVE, 
Operation.COPY) {

   @Override
   public void onDrop(AjaxRequestTarget target, Transfer transfer,
   Location location) throws Reject {
   System.out.println("(tr) onDrop: " + 
transfer.getOperation());


   if (location == null) {
  // no location supplied -> drop on whole container
   } else {
  // location supplied -> drop on given location, see 
Location#anchor and Location#component

   }
   }
   }.dropTopAndBottom("tr"));

HTH

Sven

Doug Leeper wrote:

Sven,

I have downloaded wicket-dnd and have integrated into our project.  I had a
few issues but got around them.  The biggest is that we are using DataView
instead of DataTable.  While there was no exact example for DataView, I was
able to get through and see what I needed to do:

- needed a "container" apply the DataSource
- needed to item.setOutputMarkupId( true ) in the populateItem

The DropTarget is working (the UI changes when I hover over the
target)...but when I initiate a drop, I get a PageExpiredException.

Any thoughts?

BTW..I have uploaded our simple test case for reference.

Thanks
- Doug

http://www.nabble.com/file/p25859163/DndTestPage.java DndTestPage.java 
http://www.nabble.com/file/p25859163/DndTestPage.html DndTestPage.html 
http://www.nabble.com/file/p25859163/WicketApplication.java
WicketApplication.java 
  



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



Re: Ad Hoc URL Mapping

2009-10-12 Thread Jeremy Thomerson
I think you would need to create your own strategy.

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



On Mon, Oct 12, 2009 at 1:31 PM, Luther Baker  wrote:

> Thank nino. Unfortunately, I think you may have misunderstood my question.
>
> Indeed, I understand how to configure Wicket for RESTful URLs but my
> question is different. What I'm asking has to do with the PLACEMENT of the
> url parts. IE: I want the leftmost portion of the URL to be a parameter.
> RosterListPage.java should receive requests from:
>
>/cardinals/roster/list/14
>/rams/roster/list/12
>/falcons/roster/list/18
>
> or think about it from a project tracking standpoint:
>
>/jira/issues/list/29
>/bambool/issues/list/32
>/fisheye/issues/list/25
>
> I want urls like:
>
>http://code.google.com/guice/issues/list/45
>http://code.google.com/wicket-guice/issues/list/32
>http://code.google.com/jtrac/issues/list/21
>
> Does that help clarify? Notice, the ROOT of the URL keeps changing. In my
> case, I want to mount parts 2 and 3 of the browser's URL to an actual
> Wicket
> page.
>
> How do I 'mount' a URL when the root of the URL keeps changing - and is
> itself, a parameter. Would I need to implement
> IRequestTargetUrlCodingStrategy
> myself or is there an existing strategy that I can leverage a bit?
>
> Hope that makes sense,
>
> -Luther
>
>
> On Mon, Oct 12, 2009 at 2:03 AM, nino martinez wael <
> nino.martinez.w...@gmail.com> wrote:
>
> > You can already do this, a 2 sec google search brought this up:
> >
> >
> >
> http://blog.xebia.com/2008/10/09/readable-url%E2%80%99s-in-wicket-an-introduction-to-wicketstuff-annotation/
> > http://css.dzone.com/news/wicket-creating-restful-urls
> >
> > 2009/10/12 Luther Baker 
> >
> > > I'd like to use a RESTful URL style where the page parameters are not
> > > necessarily at the far right of the URL. For starters, I understand the
> > > basics of Indexed and/or MixedParam url mounting to convert this:
> > >
> > >/issues/list?project=*myapp*&max=*14*
> > >
> > > to this:
> > >
> > >/issues/list/*myapp*/*14*
> > >
> > > but what I'm looking for is something like:
> > >
> > >/*myapp*/issues/list/*14*
> > >
> > > where "/issues/list" identifies the page and "/myapp" and "/14" are the
> > > parameter values. In this case, the actually mapping looks something
> > like:
> > >
> > >*/[page]/[action]/* ==> Page
> > >
> > > Thoughts on the base way to manage this?
> > >
> > > -Luther
> > >
> >
>


Re: Howto test redirect to non-wicket base page

2009-10-12 Thread Per Newgro

Thanks Erik,

this is definitly worth a shot. There seem to be many new classes in 
1.4. So i have to dig deeper into wicket again.


Thanks for showing me the light on this.
Per

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



Re: Howto test redirect to non-wicket base page

2009-10-12 Thread Erik van Oosten

Per,

You can also throw a RestartResponseException or a subclass thereof. 
That is the recommended way within a constructor anyway. For you it 
would be RedirectToUrlException (or something like that).


Regards,
Erik.


Per Newgro wrote:

Hi *,

i would like to test behavior of my page. In constructor there is a redirect if 
page parameter not set. But the redirect target is a url and not a wicket page 
instance. What is the best attribute to add my assertion to?

MyPage(PageParams p) {
  if (p.get("xyz") == null) {
redirectTo("http://www.myurl.ch";);
  }
  add(new Label("Rendered");
}

void redirectTo(String url) {
  getRequestCycle().setRedirect(true);
  getRequestCycle().setRequestTarget(new RedirectRequestTarget(url));
}

lastRenderedPage is null so i can't add my assertion to this.

Cheers
Per
  



--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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



Re: Ad Hoc URL Mapping

2009-10-12 Thread Luther Baker
Thank nino. Unfortunately, I think you may have misunderstood my question.

Indeed, I understand how to configure Wicket for RESTful URLs but my
question is different. What I'm asking has to do with the PLACEMENT of the
url parts. IE: I want the leftmost portion of the URL to be a parameter.
RosterListPage.java should receive requests from:

/cardinals/roster/list/14
/rams/roster/list/12
/falcons/roster/list/18

or think about it from a project tracking standpoint:

/jira/issues/list/29
/bambool/issues/list/32
/fisheye/issues/list/25

I want urls like:

http://code.google.com/guice/issues/list/45
http://code.google.com/wicket-guice/issues/list/32
http://code.google.com/jtrac/issues/list/21

Does that help clarify? Notice, the ROOT of the URL keeps changing. In my
case, I want to mount parts 2 and 3 of the browser's URL to an actual Wicket
page.

How do I 'mount' a URL when the root of the URL keeps changing - and is
itself, a parameter. Would I need to implement IRequestTargetUrlCodingStrategy
myself or is there an existing strategy that I can leverage a bit?

Hope that makes sense,

-Luther


On Mon, Oct 12, 2009 at 2:03 AM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> You can already do this, a 2 sec google search brought this up:
>
>
> http://blog.xebia.com/2008/10/09/readable-url%E2%80%99s-in-wicket-an-introduction-to-wicketstuff-annotation/
> http://css.dzone.com/news/wicket-creating-restful-urls
>
> 2009/10/12 Luther Baker 
>
> > I'd like to use a RESTful URL style where the page parameters are not
> > necessarily at the far right of the URL. For starters, I understand the
> > basics of Indexed and/or MixedParam url mounting to convert this:
> >
> >/issues/list?project=*myapp*&max=*14*
> >
> > to this:
> >
> >/issues/list/*myapp*/*14*
> >
> > but what I'm looking for is something like:
> >
> >/*myapp*/issues/list/*14*
> >
> > where "/issues/list" identifies the page and "/myapp" and "/14" are the
> > parameter values. In this case, the actually mapping looks something
> like:
> >
> >*/[page]/[action]/* ==> Page
> >
> > Thoughts on the base way to manage this?
> >
> > -Luther
> >
>


Re: FileUploadField blocks component submission when an empty file is selected

2009-10-12 Thread Igor Vaynberg
weird, you will have to debug and see what is happening.

a good place to start is Form#onFormSubmitted()

-igor

On Mon, Oct 12, 2009 at 10:08 AM, Ian Marshall
 wrote:
>
>
> igor.vaynberg wrote:
>>
>> do you have a feedback panel in your page, so you can see errors if they
>> happen?
>>
>> -igor
>>
> Yes, I have a feedback panel in my (base) page as set out in code below. I
> see nothing at all upon clicking. (I have set testing messages to appear in
> my feedback panel holding data about the uploaded files, so I know that my
> feedback panel works - and messages are shown for non-empty uploaded files!)
>
> Ian
>
>
> HTML code
> ---
>    
>
>
> Java code
> --
> public class PageBase extends WebPage
> {
>  private static final long serialVersionUID = 1L;
>
>  ...
>
>  public PageBase()
>  {
>    this(null);
>  }
>
>  private PageBase(IModel model)
>  {
>    super(model);
>
>    ...
>
>    FeedbackPanel fbpnlFeedbackPanel = new
> FeedbackPanel("fbpnlFeedbackPanel");
>    add(fbpnlFeedbackPanel);
>  }
> }
>
>
>    Button btnUpload = new Button("btnUpload")
>    {
>      private static final long serialVersionUID = 1L;
>
>     �...@override
>      public void onSubmit()
>      {    // Test code follows
>        FileUpload fuUpload = fufUploadImage.getFileUpload();
>        CloudSession ssnSession = (CloudSession)getSession();
>
>        String sMsg = "From btnUpload.onSubmit():
> fufUploadImage.getFileUpload()";
>        if (fuUpload == null)
>          sMsg += " is null.";
>        else
>        {
>          sMsg += String.format(" has size = %d, client file name = \"%s\","
>           + " and content type = \"%s\".",
>           fuUpload.getSize(), fuUpload.getClientFileName(),
>           fuUpload.getContentType());
>        }
> /**/    ssnSession.info(sMsg);    // Showing a message in my feedback panel
> /**/
>        ...
>      }
>    };
>    btnUpload.setDefaultFormProcessing(false);
>    frmForm.add(btnUpload);
>
> --
> View this message in context: 
> http://www.nabble.com/FileUploadField-blocks-component-submission-when-an-empty-file-is-selected-tp25855504p25859544.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



Re: SerializableChecker$WicketNotSerializableException:

2009-10-12 Thread Peter Ertl

suggestion:

load your data and keep it in a cache

use LDM to retrieve the data from the cache (e.g. ehcache) or reload  
it if it expired.





Am 10.10.2009 um 19:46 schrieb Igor Vaynberg:


if you do not need to hold on to the data structure between requests
then there is no need to keep any references to it in the components
themselves. pass it into the constructor, create whatever components
you need to represent it in the ui and throw it away. you may have to
create wrappers around parts of it for some components, i suppose, but
you should be able to getaway without keeping a reference to it in
most cases.

a simplified example may be

class mypanel extends panel {
 public mypanel (string id, nonserializable data) {
add(new label("name", data.getname()));
add(new label("author", data.getauthor()));

// instead of using a listview for repeaters use repeatingview
which lets you construct a repeater without a backing model
repeatingview rows=new repeatingview();
add(rows);
for (change:data.getchanges()) {
  webmarkupcontainer row=new webmarkupcontainer(rows.newchildid 
());

  rows.add(row);
  row.add(new label("author", change.getauthor());
  row.add(new changesetpanel("changeset", change));
}
 }
}


-igor

On Sat, Oct 10, 2009 at 9:35 AM, Ceki Gulcu  wrote:



Igor Vaynberg wrote:


in other words, if you were building this app using jsps or servlets
how would you carry over this data structure between requests?


No, I actually would not carry the data between requests. When the
page is requested, I would run my test suite to compute the
results. Serving the test results from a previous test run is useless
and is likely to be misleading..

Following Eelco's suggestion, I've set all the fields in my panel
(DescriptionPanel) to transient. However, in one case the panel
creates a ListView which references non-serializable data items.  
Thus I

started creating a parallel and serializable data class hierarchy for
presenting my results, which I am actually quite happy about.  
However,

I also wish I knew a simpler solution if the same question arose in a
different context where duplicating the class hierarchy would be
inappropriate.


-igor


--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework  
for

Java.
http://logback.qos.ch

-
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



FileUploadField blocks component submission when an empty file is selected

2009-10-12 Thread Ian Marshall


igor.vaynberg wrote:
> 
> do you have a feedback panel in your page, so you can see errors if they
> happen?
> 
> -igor
> 
Yes, I have a feedback panel in my (base) page as set out in code below. I
see nothing at all upon clicking. (I have set testing messages to appear in
my feedback panel holding data about the uploaded files, so I know that my
feedback panel works - and messages are shown for non-empty uploaded files!)

Ian


HTML code
---



Java code
--
public class PageBase extends WebPage
{
  private static final long serialVersionUID = 1L;

  ...

  public PageBase()
  {
this(null);
  }

  private PageBase(IModel model)
  {
super(model);

...

FeedbackPanel fbpnlFeedbackPanel = new
FeedbackPanel("fbpnlFeedbackPanel");
add(fbpnlFeedbackPanel);
  }
}


Button btnUpload = new Button("btnUpload")
{
  private static final long serialVersionUID = 1L;

  @Override
  public void onSubmit()
  {// Test code follows
FileUpload fuUpload = fufUploadImage.getFileUpload();
CloudSession ssnSession = (CloudSession)getSession();

String sMsg = "From btnUpload.onSubmit():
fufUploadImage.getFileUpload()";
if (fuUpload == null)
  sMsg += " is null.";
else
{
  sMsg += String.format(" has size = %d, client file name = \"%s\","
   + " and content type = \"%s\".",
   fuUpload.getSize(), fuUpload.getClientFileName(),
   fuUpload.getContentType());
}
/**/ssnSession.info(sMsg);// Showing a message in my feedback panel   
/**/
...
  }
};
btnUpload.setDefaultFormProcessing(false);
frmForm.add(btnUpload);

-- 
View this message in context: 
http://www.nabble.com/FileUploadField-blocks-component-submission-when-an-empty-file-is-selected-tp25855504p25859544.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: [ANN] wicket-dnd project

2009-10-12 Thread Doug Leeper

Sven,

I have downloaded wicket-dnd and have integrated into our project.  I had a
few issues but got around them.  The biggest is that we are using DataView
instead of DataTable.  While there was no exact example for DataView, I was
able to get through and see what I needed to do:

- needed a "container" apply the DataSource
- needed to item.setOutputMarkupId( true ) in the populateItem

The DropTarget is working (the UI changes when I hover over the
target)...but when I initiate a drop, I get a PageExpiredException.

Any thoughts?

BTW..I have uploaded our simple test case for reference.

Thanks
- Doug

http://www.nabble.com/file/p25859163/DndTestPage.java DndTestPage.java 
http://www.nabble.com/file/p25859163/DndTestPage.html DndTestPage.html 
http://www.nabble.com/file/p25859163/WicketApplication.java
WicketApplication.java 
-- 
View this message in context: 
http://www.nabble.com/-ANN--wicket-dnd-project-tp25727819p25859163.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: FileUploadField blocks component submission when an empty file is selected

2009-10-12 Thread Igor Vaynberg
do you have a feedback panel in your page, so you can see errors if they happen?

-igor

On Mon, Oct 12, 2009 at 9:21 AM, Ian Marshall
 wrote:
>
>
> igor.vaynberg wrote:
>>
>> so what form error do you see displayed?
>>
>> -igor
>>
> I see no error message. Within my form I have three submit buttons (I set
> out relevant code fragments below). Clicking any of these buttons does not
> result in their overridden onSubmit() methods being called (for the form's
> overridden onSubmit() method either). Something happens on the browser
> (Mozilla Firefox) since the waiting dots appear for a brief moment, but no
> change is apparent to me on the browser.
>
> I guess that something might be failing silently in my FileUploadField
> component instance, but I do not know how to proceed.
>
> Ian
>
>
> HTML code
> --
>
>      
>                 tabindex="3"/>
>
>                
>
>                 tabindex="101"/>
>
>                
>                   tabindex="102"/>
>                
>      
>
>
> Java code
> --
> public final class PageItem extends PageBase    \\ PageBase descends from
> WebPage
> {
>  private static final long serialVersionUID = 1L;
>
>    Form frmForm = new Form("frmForm")
>    {
>      private static final long serialVersionUID = 1L;
>
>     �...@override
>      protected void onSubmit()
>      {
>        ...
>
>        //
>        // Persist the item data here...
>        //
>      }
>    };
>    frmForm.setMultiPart(true);    // To enable file uploading
>    frmForm.setMaxSize(G_BY_MAX_SIZE_FILE_UPLOAD);
>    frmForm.setModel(new CompoundPropertyModel(g_pidData));
>    add(frmForm);
>
>    final FileUploadField fufUploadImage =
>     new FileUploadField("fufUploadImage");
>    frmForm.add(fufUploadImage);
>
>    Button btnUpload = new Button("btnUpload")
>    {
>      private static final long serialVersionUID = 1L;
>
>     �...@override
>      public void onSubmit()
>      {
>         ...
>      }
>    };
>    btnUpload.setDefaultFormProcessing(false);
>    frmForm.add(btnUpload);
>
>    Button btnOK = new Button("btnOK");
>    frmForm.add(btnOK);
>
>    Button btnCancel = new Button("btnCancel")
>    {
>      private static final long serialVersionUID = 1L;
>     �...@override
>      public void onSubmit()
>      {
>        ...
>        setResponsePage(PageHome.class);
>      }
>    };
>    btnCancel.setDefaultFormProcessing(false);
>    frmForm.add(btnCancel);
> }
>
> --
> View this message in context: 
> http://www.nabble.com/FileUploadField-blocks-component-submission-when-an-empty-file-is-selected-tp25855504p25858766.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



Ajaxfallbackdefautldatatable sort

2009-10-12 Thread Swarnim Ranjitkar

Looks like ajaxfallbackdefaultdatatable column sort is aphabetical by default. 
Is there anyways I can make column sort by integer or date.
thank you
  

FileUploadField blocks component submission when an empty file is selected

2009-10-12 Thread Ian Marshall


igor.vaynberg wrote:
> 
> so what form error do you see displayed?
> 
> -igor
> 
I see no error message. Within my form I have three submit buttons (I set
out relevant code fragments below). Clicking any of these buttons does not
result in their overridden onSubmit() methods being called (for the form's
overridden onSubmit() method either). Something happens on the browser
(Mozilla Firefox) since the waiting dots appear for a brief moment, but no
change is apparent to me on the browser.

I guess that something might be failing silently in my FileUploadField
component instance, but I do not know how to proceed.

Ian


HTML code
--

  







  

  


Java code
--
public final class PageItem extends PageBase\\ PageBase descends from
WebPage
{
  private static final long serialVersionUID = 1L;

Form frmForm = new Form("frmForm")
{
  private static final long serialVersionUID = 1L;

  @Override
  protected void onSubmit()
  {
...

//
// Persist the item data here...
//
  }
};
frmForm.setMultiPart(true);// To enable file uploading
frmForm.setMaxSize(G_BY_MAX_SIZE_FILE_UPLOAD);
frmForm.setModel(new CompoundPropertyModel(g_pidData));
add(frmForm);

final FileUploadField fufUploadImage =
 new FileUploadField("fufUploadImage");
frmForm.add(fufUploadImage);

Button btnUpload = new Button("btnUpload")
{
  private static final long serialVersionUID = 1L;

  @Override
  public void onSubmit()
  {
 ...
  }
};
btnUpload.setDefaultFormProcessing(false);
frmForm.add(btnUpload);

Button btnOK = new Button("btnOK");
frmForm.add(btnOK);

Button btnCancel = new Button("btnCancel")
{
  private static final long serialVersionUID = 1L;
  @Override
  public void onSubmit()
  {
...
setResponsePage(PageHome.class);
  }
};
btnCancel.setDefaultFormProcessing(false);
frmForm.add(btnCancel);
}

-- 
View this message in context: 
http://www.nabble.com/FileUploadField-blocks-component-submission-when-an-empty-file-is-selected-tp25855504p25858766.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: Wizard step causing an infinite loop

2009-10-12 Thread Jeffrey Schneller
UPDATE:  The problem is tied to the radio group.  I want to do something like 
the following.  Where productGroup is the RadioGroup.  Where do I put the 
RadioGroup so that this will work.  Where it currently sits will not work. 


















-Original Message-
From: Jeffrey Schneller [mailto:jeffrey.schnel...@envisa.com] 
Sent: Monday, October 12, 2009 12:00 PM
To: users@wicket.apache.org
Subject: RE: Wizard step causing an infinite loop

That is sort of a problem.  Everything is driven from a db and creating a 
quickstart would be a major task.



-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: Monday, October 12, 2009 11:41 AM
To: users@wicket.apache.org
Subject: Re: Wizard step causing an infinite loop

creating a quickstart that reproduces this behavior will help us help
you. otherwise we would have to slaughter a chicken and wave it
around.

-igor

On Mon, Oct 12, 2009 at 8:12 AM, Jeffrey Schneller
 wrote:
> I have a wizard and a wizard step.  The wizard step is causing the
> wizard to go into an infinite loop.  The loop starts way back at where
> the wizard is added to the page itself. I basically have a one step
> wizard.   Now, I also have another step and if I add that step to the
> wizard and remove the other one [so I only have a 1 step wizard]
> everything works fine.  Why would I be getting an infinite loop?  The
> step only has RequiredTextFields, RadioGroup, and RadioChoice objects on
> it.
>
>
>
> Again... I am pleading for help on this.  I am stuck and have no idea
> where to look and need to get this finished.
>
>
>
> 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


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



Re: Wizard step causing an infinite loop

2009-10-12 Thread Igor Vaynberg
you can stub out the objects wicket gets. without seeing your source
code and being able to reproduce it we have no way to debug it.

-igor

On Mon, Oct 12, 2009 at 8:59 AM, Jeffrey Schneller
 wrote:
> That is sort of a problem.  Everything is driven from a db and creating a 
> quickstart would be a major task.
>
>
>
> -Original Message-
> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> Sent: Monday, October 12, 2009 11:41 AM
> To: users@wicket.apache.org
> Subject: Re: Wizard step causing an infinite loop
>
> creating a quickstart that reproduces this behavior will help us help
> you. otherwise we would have to slaughter a chicken and wave it
> around.
>
> -igor
>
> On Mon, Oct 12, 2009 at 8:12 AM, Jeffrey Schneller
>  wrote:
>> I have a wizard and a wizard step.  The wizard step is causing the
>> wizard to go into an infinite loop.  The loop starts way back at where
>> the wizard is added to the page itself. I basically have a one step
>> wizard.   Now, I also have another step and if I add that step to the
>> wizard and remove the other one [so I only have a 1 step wizard]
>> everything works fine.  Why would I be getting an infinite loop?  The
>> step only has RequiredTextFields, RadioGroup, and RadioChoice objects on
>> it.
>>
>>
>>
>> Again... I am pleading for help on this.  I am stuck and have no idea
>> where to look and need to get this finished.
>>
>>
>>
>> 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
>
>

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



Re: FileUploadField blocks component submission when an empty file is selected

2009-10-12 Thread Igor Vaynberg
so what form error do you see displayed?

-igor

On Mon, Oct 12, 2009 at 8:58 AM, Ian Marshall
 wrote:
>
>
> igor.vaynberg wrote:
>>
>> is your fileuploadfield marked as required?
>>
>
> No; I have not called the FileUploadField instance's setRequired(...)
> method.
>
> Ian Marshall
> --
> View this message in context: 
> http://www.nabble.com/FileUploadField-blocks-component-submission-when-an-empty-file-is-selected-tp25855504p25858283.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: Wizard step causing an infinite loop

2009-10-12 Thread Jeffrey Schneller
That is sort of a problem.  Everything is driven from a db and creating a 
quickstart would be a major task.



-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: Monday, October 12, 2009 11:41 AM
To: users@wicket.apache.org
Subject: Re: Wizard step causing an infinite loop

creating a quickstart that reproduces this behavior will help us help
you. otherwise we would have to slaughter a chicken and wave it
around.

-igor

On Mon, Oct 12, 2009 at 8:12 AM, Jeffrey Schneller
 wrote:
> I have a wizard and a wizard step.  The wizard step is causing the
> wizard to go into an infinite loop.  The loop starts way back at where
> the wizard is added to the page itself. I basically have a one step
> wizard.   Now, I also have another step and if I add that step to the
> wizard and remove the other one [so I only have a 1 step wizard]
> everything works fine.  Why would I be getting an infinite loop?  The
> step only has RequiredTextFields, RadioGroup, and RadioChoice objects on
> it.
>
>
>
> Again... I am pleading for help on this.  I am stuck and have no idea
> where to look and need to get this finished.
>
>
>
> 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



Re: Wicket Bulgarian translation (bg)

2009-10-12 Thread Girts Ziemelis

Thanks - I added problem report WICKET-2518
https://issues.apache.org/jira/browse/WICKET-2518
Attached is a patch for Application_bg.properties file with properly 
encoded bg translations


Igor Vaynberg wrote:

we are fine with .properties or .properties.xml. its all good.

-igor

On Mon, Oct 12, 2009 at 8:25 AM, Olivier Bourgeois
 wrote:
  

The advantage of UTF-8 vs ASCII is that the translators can directly
read/write the property files without transcoding them, so I think it's
better to go with XML (and less risky).

But I don't know what the Wicket dev team prefer for Wicket default property
files.


2009/10/12 Girts Ziemelis 



Olivier Bourgeois wrote:

  

I'm using BG translations for my app, but not the Wicket default ones, and
I
am using a mix of UTF-8 properties files and XML files. I just had a look
with wicket 1.4.2 and the BG translations are broken : I think something
went wrong with the native2ascii transformation.

If you look at the history of the Wicket BG translation file, it used to
be
in UTF-8, but because Java properties does not hold UTF-8 it has been
encoded in ASCII. Now that Wicket 1.4.x can work with XML properties. I
think this file should be in XML, like RU file is today.




Yes - our BG translations from our property files also work fine - it is
just the wicket standard messages.
Ok, I will try to get the old translations back and encode them properly.
It seems they are wrong since may 2006 :(
Or is it really preferred to store them in XML? Currently russian is the
only one in XML.


  


-
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



FileUploadField blocks component submission when an empty file is selected

2009-10-12 Thread Ian Marshall


igor.vaynberg wrote:
> 
> is your fileuploadfield marked as required?
> 

No; I have not called the FileUploadField instance's setRequired(...)
method.

Ian Marshall
-- 
View this message in context: 
http://www.nabble.com/FileUploadField-blocks-component-submission-when-an-empty-file-is-selected-tp25855504p25858283.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: OT: wicket running in Tomcat got a java.lang.NoClassDefFoundError: javax/servlet/ServletRequest

2009-10-12 Thread Martijn Reuvers
Hi Fernando,

If I were you and want to quickly test if there's something wrong with
your Tomcat. Download the .zip distribution of Tomcat, extract, run
and deploy your application in /webapps/. That should work just fine
normally, if it does - then you know your current installation of
Tomcat is bugged...

Martijn

On Mon, Oct 12, 2009 at 5:08 PM, Fernando Wermus
 wrote:
> I omitted this part of stack trace:
> INFO: Illegal access: this web application instance has been stopped
> already.  Could not load javax.servlet.ServletRequest.  The eventual
> following stack trace is caused by an error thrown for debugging purposes as
> well as to attempt to terminate the thread which caused the illegal access,
> and has no functional impact.
> java.lang.IllegalStateException
>        at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1249)
>        at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
>
>
> On Mon, Oct 12, 2009 at 11:40 AM, Fernando Wermus > wrote:
>
>> Is jetty ready for production?
>>
>>
>> On Mon, Oct 12, 2009 at 11:40 AM, Fernando Wermus <
>> fernando.wer...@gmail.com> wrote:
>>
>>> *Servlet/JSP Spec* *Apache Tomcat version*2.5/2.1 6.0.202.4/2.0 5.5.28
>>> 2.3/1.2 4.1.402.2/1.1 3.3.2 (archived)
>>> I supports 2.4 servlet api.
>>>
>>> any other thoughts? The guy that installed tomcat, added a open-java 6.0
>>> and there are set java_home as well as tomcat_home.
>>>
>>> On Mon, Oct 12, 2009 at 5:17 AM, Martijn Dashorst <
>>> martijn.dasho...@gmail.com> wrote:
>>>
 Does tomcat 5.5 support servlet api 1.4?

 Martijn

 On Mon, Oct 12, 2009 at 10:10 AM, Fernando Wermus
  wrote:
 > Does anyone face this exception under Tomcat?
 > The servelet-api.jar is in usr/share/tomcat5.5/lib/commons
 >
 > javax.servlet.ServletException: Filter execution threw an exception
 >
 > *root cause*
 >
 > java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
 >        java.lang.Class.getDeclaredMethods0(Native Method)
 >        java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
 >        java.lang.Class.getMethod0(Class.java:2687)
 >        java.lang.Class.getMethod(Class.java:1620)
 >
  org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)
 >
  org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
 >
 > *root cause*
 >
 > java.lang.ClassNotFoundException: javax.servlet.ServletRequest
 >
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)
 >
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
 >        java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
 >        java.lang.Class.getDeclaredMethods0(Native Method)
 >        java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
 >        java.lang.Class.getMethod0(Class.java:2687)
 >        java.lang.Class.getMethod(Class.java:1620)
 >
  org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)
 >
  org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
 >
 >
 >
 > --
 > Fernando Wermus.
 >
 > www.linkedin.com/in/fernandowermus
 >



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0

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


>>>
>>>
>>> --
>>> Fernando Wermus.
>>>
>>> www.linkedin.com/in/fernandowermus
>>>
>>
>>
>>
>> --
>> Fernando Wermus.
>>
>> www.linkedin.com/in/fernandowermus
>>
>
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>

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



Re: Wicket Bulgarian translation (bg)

2009-10-12 Thread Igor Vaynberg
we are fine with .properties or .properties.xml. its all good.

-igor

On Mon, Oct 12, 2009 at 8:25 AM, Olivier Bourgeois
 wrote:
> The advantage of UTF-8 vs ASCII is that the translators can directly
> read/write the property files without transcoding them, so I think it's
> better to go with XML (and less risky).
>
> But I don't know what the Wicket dev team prefer for Wicket default property
> files.
>
>
> 2009/10/12 Girts Ziemelis 
>
>> Olivier Bourgeois wrote:
>>
>>> I'm using BG translations for my app, but not the Wicket default ones, and
>>> I
>>> am using a mix of UTF-8 properties files and XML files. I just had a look
>>> with wicket 1.4.2 and the BG translations are broken : I think something
>>> went wrong with the native2ascii transformation.
>>>
>>> If you look at the history of the Wicket BG translation file, it used to
>>> be
>>> in UTF-8, but because Java properties does not hold UTF-8 it has been
>>> encoded in ASCII. Now that Wicket 1.4.x can work with XML properties. I
>>> think this file should be in XML, like RU file is today.
>>>
>>>
>> Yes - our BG translations from our property files also work fine - it is
>> just the wicket standard messages.
>> Ok, I will try to get the old translations back and encode them properly.
>> It seems they are wrong since may 2006 :(
>> Or is it really preferred to store them in XML? Currently russian is the
>> only one in XML.
>>
>>
>

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



Re: Wizard step causing an infinite loop

2009-10-12 Thread Igor Vaynberg
creating a quickstart that reproduces this behavior will help us help
you. otherwise we would have to slaughter a chicken and wave it
around.

-igor

On Mon, Oct 12, 2009 at 8:12 AM, Jeffrey Schneller
 wrote:
> I have a wizard and a wizard step.  The wizard step is causing the
> wizard to go into an infinite loop.  The loop starts way back at where
> the wizard is added to the page itself. I basically have a one step
> wizard.   Now, I also have another step and if I add that step to the
> wizard and remove the other one [so I only have a 1 step wizard]
> everything works fine.  Why would I be getting an infinite loop?  The
> step only has RequiredTextFields, RadioGroup, and RadioChoice objects on
> it.
>
>
>
> Again... I am pleading for help on this.  I am stuck and have no idea
> where to look and need to get this finished.
>
>
>
> Thanks.
>
>
>
>

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



Re: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Matej Knopp
I think there is a datagrid project in wicket stuff jira. If you do
any work (against current trunk - not 1.3) patch is always welcome.
You can create a jira issue for it and attach it there.

-Matej

On Mon, Oct 12, 2009 at 5:24 PM, Stefan Lindner  wrote:
> Thenk you all for your replies!
>
> I found a hand full of mailing list entrys with hints for patches to
> make some classes generic. Are there any attempts to integrate them into
> the current trunk? I think a generic IGridColumn would be very handy.
> Should I start doing it?
>
> Stefan
>
> -
> 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: Wicket Bulgarian translation (bg)

2009-10-12 Thread Olivier Bourgeois
The advantage of UTF-8 vs ASCII is that the translators can directly
read/write the property files without transcoding them, so I think it's
better to go with XML (and less risky).

But I don't know what the Wicket dev team prefer for Wicket default property
files.


2009/10/12 Girts Ziemelis 

> Olivier Bourgeois wrote:
>
>> I'm using BG translations for my app, but not the Wicket default ones, and
>> I
>> am using a mix of UTF-8 properties files and XML files. I just had a look
>> with wicket 1.4.2 and the BG translations are broken : I think something
>> went wrong with the native2ascii transformation.
>>
>> If you look at the history of the Wicket BG translation file, it used to
>> be
>> in UTF-8, but because Java properties does not hold UTF-8 it has been
>> encoded in ASCII. Now that Wicket 1.4.x can work with XML properties. I
>> think this file should be in XML, like RU file is today.
>>
>>
> Yes - our BG translations from our property files also work fine - it is
> just the wicket standard messages.
> Ok, I will try to get the old translations back and encode them properly.
> It seems they are wrong since may 2006 :(
> Or is it really preferred to store them in XML? Currently russian is the
> only one in XML.
>
>


RE: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Stefan Lindner
Thenk you all for your replies!

I found a hand full of mailing list entrys with hints for patches to
make some classes generic. Are there any attempts to integrate them into
the current trunk? I think a generic IGridColumn would be very handy.
Should I start doing it?

Stefan

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



Wizard step causing an infinite loop

2009-10-12 Thread Jeffrey Schneller
I have a wizard and a wizard step.  The wizard step is causing the
wizard to go into an infinite loop.  The loop starts way back at where
the wizard is added to the page itself. I basically have a one step
wizard.   Now, I also have another step and if I add that step to the
wizard and remove the other one [so I only have a 1 step wizard]
everything works fine.  Why would I be getting an infinite loop?  The
step only has RequiredTextFields, RadioGroup, and RadioChoice objects on
it.

 

Again... I am pleading for help on this.  I am stuck and have no idea
where to look and need to get this finished.  

 

Thanks.

 



Re: OT: wicket running in Tomcat got a java.lang.NoClassDefFoundError: javax/servlet/ServletRequest

2009-10-12 Thread Fernando Wermus
I omitted this part of stack trace:
INFO: Illegal access: this web application instance has been stopped
already.  Could not load javax.servlet.ServletRequest.  The eventual
following stack trace is caused by an error thrown for debugging purposes as
well as to attempt to terminate the thread which caused the illegal access,
and has no functional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1249)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)


On Mon, Oct 12, 2009 at 11:40 AM, Fernando Wermus  wrote:

> Is jetty ready for production?
>
>
> On Mon, Oct 12, 2009 at 11:40 AM, Fernando Wermus <
> fernando.wer...@gmail.com> wrote:
>
>> *Servlet/JSP Spec* *Apache Tomcat version*2.5/2.1 6.0.202.4/2.0 5.5.28
>> 2.3/1.2 4.1.402.2/1.1 3.3.2 (archived)
>> I supports 2.4 servlet api.
>>
>> any other thoughts? The guy that installed tomcat, added a open-java 6.0
>> and there are set java_home as well as tomcat_home.
>>
>> On Mon, Oct 12, 2009 at 5:17 AM, Martijn Dashorst <
>> martijn.dasho...@gmail.com> wrote:
>>
>>> Does tomcat 5.5 support servlet api 1.4?
>>>
>>> Martijn
>>>
>>> On Mon, Oct 12, 2009 at 10:10 AM, Fernando Wermus
>>>  wrote:
>>> > Does anyone face this exception under Tomcat?
>>> > The servelet-api.jar is in usr/share/tomcat5.5/lib/commons
>>> >
>>> > javax.servlet.ServletException: Filter execution threw an exception
>>> >
>>> > *root cause*
>>> >
>>> > java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
>>> >java.lang.Class.getDeclaredMethods0(Native Method)
>>> >java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
>>> >java.lang.Class.getMethod0(Class.java:2687)
>>> >java.lang.Class.getMethod(Class.java:1620)
>>> >
>>>  
>>> org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)
>>> >
>>>  
>>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
>>> >
>>> > *root cause*
>>> >
>>> > java.lang.ClassNotFoundException: javax.servlet.ServletRequest
>>> >
>>>  
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)
>>> >
>>>  
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
>>> >java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
>>> >java.lang.Class.getDeclaredMethods0(Native Method)
>>> >java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
>>> >java.lang.Class.getMethod0(Class.java:2687)
>>> >java.lang.Class.getMethod(Class.java:1620)
>>> >
>>>  
>>> org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)
>>> >
>>>  
>>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
>>> >
>>> >
>>> >
>>> > --
>>> > Fernando Wermus.
>>> >
>>> > www.linkedin.com/in/fernandowermus
>>> >
>>>
>>>
>>>
>>> --
>>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>>> Apache Wicket 1.4 increases type safety for web applications
>>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>> --
>> Fernando Wermus.
>>
>> www.linkedin.com/in/fernandowermus
>>
>
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: RadioChoice showing last choosen value - what am i doing wrong

2009-10-12 Thread Igor Vaynberg
does that code work if the component is not disabled? does LabelValue
have equals/hashcode properly implemented so the one you push with
setmodelobject will match one in the yesNoChoices collection?


-igor

On Mon, Oct 12, 2009 at 6:40 AM, Muro Copenhagen  wrote:
> Hi,
>
> Any help on this issue regarding the  RadioChoice component will be
> appreciated.
>
> I'm having difficiltius showing the (previously) selected RadioChoice, and
> can not figure out what's going wrong.
>
> Here is my code:
>
> public class QuestionRightPanel extends Panel {
>    private String selectedValue;
>    private RadioChoice radioChoice;
>    ...
>    public QuestionRightPanel() {
>    ...
>    radioChoice = new RadioChoice("radioChoice", new MyModel(),
> yesNoChoices, new ChoiceRenderer("label", "value")).setSuffix("");
>    ...
>    selectedValue = getAlreadyChoosenValue();
>    if (questionAnswered) {
>        radioChoice.setVisible(true);
>        radioChoice.setEnabled(false);
>       radioChoice.setModelObject(new
> LabelValue(convertYesNo(selectedValue), selectedValue));
>    }
>
>    class MyModel extends Model {
>
>       �...@override
>        public Object getObject() {
>            return selectedValue;
>        }
>
>       �...@override
>        public void setObject(Serializable object) {
>            if (object != null) {
>                // set the yes-no value choosen.
>                selectedValue = ((LabelValue) object).getValue();
>            }
>        }
>    }
>
> As seen i don't want the user to answer the question again by disabling the
> radioChoice if the
> question already has been answered.
> By why can't i set the default selected option to be the value i desire by
> the code:
>      radioChoice.setModelObject(new LabelValue(convertYesNo(selectedValue),
> selectedValue));
>
> Hope someone has the answer...
>
> Best Regards
> Muro
>

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



Re: FileUploadField blocks component submission when an empty file is selected

2009-10-12 Thread Igor Vaynberg
is your fileuploadfield marked as required?

-igor

On Mon, Oct 12, 2009 at 6:04 AM, Ian Marshall
 wrote:
> I have a FileUploadField component in a form. My issue is that when a file
> of size zero is selected using the component's integral "Browse..." button,
> and then one of the owning form's submit buttons is clicked, neither that
> button's nor the form's overridden onSubmit() methods is called. The form
> becomes unsubmissible.
>
> If a non-empty file is subsequently selected using the FileUploadField
> component's "Browse..." button, then normal onSubmit() functionality is
> restored.
>
> Is this a known bug, or can I do something to prevent this behaviour for
> empty files?
>
> My NetBeans environment is:
>
>  Product Version: NetBeans IDE 6.7 (Build 200906241340)
>  Java: 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02
>  System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)
>  Userdir: C:\Documents and Settings\Ian\.netbeans\6.7
>
>  Wicket plug-in used:
>   Wicket as a library
>     Version: 1.4
>     Description: Wicket 1.4 RC1 Library
>
>   Wicket Support:
>     Version: 0.15
>
>   Wicket File Templates:
>     Version: 1.1
>
>
> Regards,
>
> Ian Marshall
>
> -
> 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: [tinymce] problem adding/removing TinyMceBehavior dinamically

2009-10-12 Thread bgooren

Daniele,

So why don't you collect a list of markup-ids serverside, perform a TinyMCE
unload through AjaxRequestTarget.prepentJavascript(), and then have it
redraw the list and load TinyMCE in appendJavascript()?

Another alternative would be to manually add the component trough
javascript, see:
http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/;
This way you do not need to refresh all items in the listview

Hope this helps, TinyMCE + AJAX is interesting to say the least.


Daniele Dellafiore wrote:
> 
> yep I do that. Actually, I wrote that article :)
> 
> My problem is more subtle here and I have discovered now that is
> related to javascript execution order. In fact I open a new thread to
> investigate that specific issue. I also try to produce a ExamplePage
> to commit on tinymce example project.
> 
> On Fri, Oct 9, 2009 at 7:47 PM, Dane Laverty 
> wrote:
>> Did you get the
>> response.renderJavascriptReference(TinyMCESettings.javaScriptReference());
>> ?
>>
>> In my code it goes like this (as per
>> http://wicketbyexample.com/wicket-tinymce-some-advanced-tips/):
>>
>> add(new HeaderContributor(new IHeaderContributor() {
>>             public void renderHead(IHeaderResponse response) {
>>
>> response.renderJavascriptReference(TinyMCESettings.javaScriptReference());
>>             }
>>        }));
>>
>> Dane
>>
>> On Fri, Oct 9, 2009 at 10:17 AM, Daniele Dellafiore
>> wrote:
>>
>>> I start from the end: I need fine control over the order javascript is
>>> executed. What is the javascript to call a refresh on a component like
>>> is done when I use target.addComponent()?
>>>
>>>
>>> From the start.
>>> I make that work with bgooren suggestion, using the javascript to
>>> remove the editor. No need to remove the behavior on java side. That
>>> works for the checkbox that dynamically adds and removes the Rich
>>> Editor.
>>>
>>> Now, the problem on refreshing a list of fields.
>>> What happens: to add a new field, click on ADD and I add my ListView
>>> is added to be refreshed via a target.addComponent(). In doing this,
>>> the markupId of the component changes, so tinyMce lose reference to
>>> it's existing editors.
>>>
>>> My solution: on the ADD callback, I remove the editors and let them be
>>> re-added during repainting. Works? NO!
>>> Why? because the listView is repainted before the mceControlRemove is
>>> executed, even if they are added to the same AjaxRequestTarget in the
>>> ADD callback. So happens that:
>>> 1.  the remove fails because the old component is found no more
>>> 2. after, the submit fails because tinyMCE still have the old editor
>>> reference.
>>>
>>> --> ;(
>>>
>>> On Mon, Oct 5, 2009 at 11:44 AM, Daniele Dellafiore 
>>> wrote:
>>> > Hey Bas, thanks for answering.
>>> >
>>> > Unfortunately it does not work.
>>> > Even if I run:
>>> >
>>> >               String removeEditor =
>>> "tinyMCE.execCommand('mceRemoveControl',
>>> > false, '"
>>> >                      + propertyPanel.getValueMarkupId() + "');";
>>> >                target.appendJavascript(removeEditor);
>>> >
>>> > or simply remove the TinyMceBehavior from my TextField, the result is
>>> the
>>> > same: mce editor disappear correclty, but remains in tinyMCE.editors
>>> list
>>> so
>>> > Tiny tries to process it in a successive iteration.
>>> >
>>> > I try to find help on tinyMCE forum
>>> >
>>> >
>>> > On Mon, Oct 5, 2009 at 10:59 AM, bgooren  wrote:
>>> >>
>>> >> I'll show you some parts of my code so you get an idea of how I do
>>> things.
>>> >>
>>> >> First of all, I have used AjaxEditableLabel from wicket-extensions as
>>> a
>>> >> starting point.
>>> >> TinyMCE's javascripts should always be loaded:
>>> >>
>>> >> // Preload TinyMCE
>>> >>        add( new AbstractBehavior()
>>> >>        {
>>> >>
>>> >>           �...@override
>>> >>            public void renderHead( IHeaderResponse response )
>>> >>            {
>>> >>                if( !tinyMCELoaded )
>>> >>                {
>>> >>                    response.renderJavascriptReference(
>>> >> TinyMCESettings.javaScriptReference() );
>>> >>
>>> >>                    settings = buildTinyMCESettings();
>>> >>
>>> >>                    tinyMCELoaded = true;
>>> >>                }
>>> >>            }
>>> >>
>>> >>        } );
>>> >>
>>> >> In my case TinyMCE is loaded through an AJAX call:
>>> >>
>>> >> @SuppressWarnings("unchecked")
>>> >>   �...@override
>>> >>    protected void onEdit( AjaxRequestTarget target )
>>> >>    {
>>> >>        super.onEdit( target );
>>> >>
>>> >>        final String id = editor.getMarkupId( true );
>>> >>        final StringBuilder buf = new StringBuilder();
>>> >>
>>> >>        // Load plugins
>>> >>        buf.append( settings.getLoadPluginJavaScript() ).append( ";\n"
>>> );
>>> >>
>>> >>        // Initialize tinyMCE
>>> >>        buf.append( "tinyMCE.init({" ).append( settings.toJavaScript(
>>> >> Mode.none, Collections.EMPTY_LIST ) ).append( " });\n" );
>>> >>        buf.append( settings.ge

Re: OT: wicket running in Tomcat got a java.lang.NoClassDefFoundError: javax/servlet/ServletRequest

2009-10-12 Thread Fernando Wermus
Is jetty ready for production?

On Mon, Oct 12, 2009 at 11:40 AM, Fernando Wermus  wrote:

> *Servlet/JSP Spec* *Apache Tomcat version*2.5/2.1 6.0.202.4/2.0 5.5.28
> 2.3/1.2 4.1.402.2/1.1 3.3.2 (archived)
> I supports 2.4 servlet api.
>
> any other thoughts? The guy that installed tomcat, added a open-java 6.0
> and there are set java_home as well as tomcat_home.
>
> On Mon, Oct 12, 2009 at 5:17 AM, Martijn Dashorst <
> martijn.dasho...@gmail.com> wrote:
>
>> Does tomcat 5.5 support servlet api 1.4?
>>
>> Martijn
>>
>> On Mon, Oct 12, 2009 at 10:10 AM, Fernando Wermus
>>  wrote:
>> > Does anyone face this exception under Tomcat?
>> > The servelet-api.jar is in usr/share/tomcat5.5/lib/commons
>> >
>> > javax.servlet.ServletException: Filter execution threw an exception
>> >
>> > *root cause*
>> >
>> > java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
>> >java.lang.Class.getDeclaredMethods0(Native Method)
>> >java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
>> >java.lang.Class.getMethod0(Class.java:2687)
>> >java.lang.Class.getMethod(Class.java:1620)
>> >
>>  
>> org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)
>> >
>>  
>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
>> >
>> > *root cause*
>> >
>> > java.lang.ClassNotFoundException: javax.servlet.ServletRequest
>> >
>>  
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)
>> >
>>  
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
>> >java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
>> >java.lang.Class.getDeclaredMethods0(Native Method)
>> >java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
>> >java.lang.Class.getMethod0(Class.java:2687)
>> >java.lang.Class.getMethod(Class.java:1620)
>> >
>>  
>> org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)
>> >
>>  
>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
>> >
>> >
>> >
>> > --
>> > Fernando Wermus.
>> >
>> > www.linkedin.com/in/fernandowermus
>> >
>>
>>
>>
>> --
>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>> Apache Wicket 1.4 increases type safety for web applications
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: OT: wicket running in Tomcat got a java.lang.NoClassDefFoundError: javax/servlet/ServletRequest

2009-10-12 Thread Fernando Wermus
*Servlet/JSP Spec**Apache Tomcat version*2.5/2.16.0.202.4/2.05.5.282.3/1.2
4.1.402.2/1.13.3.2 (archived)
I supports 2.4 servlet api.

any other thoughts? The guy that installed tomcat, added a open-java 6.0 and
there are set java_home as well as tomcat_home.

On Mon, Oct 12, 2009 at 5:17 AM, Martijn Dashorst <
martijn.dasho...@gmail.com> wrote:

> Does tomcat 5.5 support servlet api 1.4?
>
> Martijn
>
> On Mon, Oct 12, 2009 at 10:10 AM, Fernando Wermus
>  wrote:
> > Does anyone face this exception under Tomcat?
> > The servelet-api.jar is in usr/share/tomcat5.5/lib/commons
> >
> > javax.servlet.ServletException: Filter execution threw an exception
> >
> > *root cause*
> >
> > java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
> >java.lang.Class.getDeclaredMethods0(Native Method)
> >java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
> >java.lang.Class.getMethod0(Class.java:2687)
> >java.lang.Class.getMethod(Class.java:1620)
> >
>  
> org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)
> >
>  
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
> >
> > *root cause*
> >
> > java.lang.ClassNotFoundException: javax.servlet.ServletRequest
> >
>  
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)
> >
>  
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
> >java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
> >java.lang.Class.getDeclaredMethods0(Native Method)
> >java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
> >java.lang.Class.getMethod0(Class.java:2687)
> >java.lang.Class.getMethod(Class.java:1620)
> >
>  
> org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)
> >
>  
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
> >
> >
> >
> > --
> > Fernando Wermus.
> >
> > www.linkedin.com/in/fernandowermus
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.4 increases type safety for web applications
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Erik Post
I created a draft wiki page, could someone please modify it as needed
and add it to the wicketstuff wiki front page? Btw, Linda, your
company seems to be across the street from me! That's pretty amazing
for a town like this...

Cheers,
Erik

http://wicketstuff.org/confluence/display/STUFFWIKI/Inmethod+Grid

On Mon, Oct 12, 2009 at 3:53 PM, Linda van der Pal
 wrote:
> I'm certain there is a 1.4 version, as I have it downloaded. Try using this
> URL to get it from SVN:
>
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/releases/wicketstuff-core-1.4-rc7/inmethod-grid-parent
>
> Regards,
> Linda
>
> Stefan Lindner wrote:
>>
>> I found inmethod datagrid at
>> http://wicketstuff.org/maven/repository/com/inmethod/grid-examples/ but
>> no hint or link to it on the wiki page
>> http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki.
>>
>> The project remained in 1.0 state since the end of last year. Is it
>> compatible with wicket 1.4? Is it still under development? Does it
>> support generics now?
>>
>> Does anybody use it togehter with wicket 1.4?
>>
>> Stefan
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>  
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com Version: 8.5.421 / Virus Database:
>> 270.14.11/2430 - Release Date: 10/12/09 04:01:00
>>
>>
>
>
> -
> 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



SV: Wicket 1.4.2 Released!

2009-10-12 Thread Wilhelmsen Tor Iver
> Why there are no SVN tags anymore ?
> svn ls http://svn.apache.org/repos/asf/wicket/tags/  does not have tags
> for
> 1.4.1 and 1.4.2

Wicket's not fond of such conventions it seems :) - use 
http://svn.apache.org/repos/asf/wicket/releases/ instead.

- Tor Iver


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



Re: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Linda van der Pal
I'm certain there is a 1.4 version, as I have it downloaded. Try using 
this URL to get it from SVN:


https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/releases/wicketstuff-core-1.4-rc7/inmethod-grid-parent

Regards,
Linda

Stefan Lindner wrote:

I found inmethod datagrid at
http://wicketstuff.org/maven/repository/com/inmethod/grid-examples/ but
no hint or link to it on the wiki page
http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki.

The project remained in 1.0 state since the end of last year. Is it
compatible with wicket 1.4? Is it still under development? Does it
support generics now?

Does anybody use it togehter with wicket 1.4?

Stefan

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




No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.421 / Virus Database: 270.14.11/2430 - Release Date: 10/12/09 04:01:00


  



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



AutoCompleteTextField & Generics

2009-10-12 Thread Douglas Ferguson
Has anybody else had problems with AutoCompleteTextField and generics.

It almost seems like I'm dealing with an eclipse bug.

But basically if I call

behavior.getChoices.add(xxx) it is always highlighted in red because,  
I am restricted by the model use "T" but the list wants "? extends T".

D/

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



Re: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Erik Post
Hi Stefan,

It's compatible, I'm using it myself:


org.wicketstuff
inmethod-grid
1.4-SNAPSHOT




wicket-snaps
http://wicketstuff.org/maven/repository

true


true




Cheers,
Erik

On Mon, Oct 12, 2009 at 3:35 PM, Stefan Lindner  wrote:
> I found inmethod datagrid at
> http://wicketstuff.org/maven/repository/com/inmethod/grid-examples/ but
> no hint or link to it on the wiki page
> http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki.
>
> The project remained in 1.0 state since the end of last year. Is it
> compatible with wicket 1.4? Is it still under development? Does it
> support generics now?
>
> Does anybody use it togehter with wicket 1.4?
>
> Stefan
>
> -
> 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



RadioChoice showing last choosen value - what am i doing wrong

2009-10-12 Thread Muro Copenhagen
Hi,

Any help on this issue regarding the  RadioChoice component will be
appreciated.

I'm having difficiltius showing the (previously) selected RadioChoice, and
can not figure out what's going wrong.

Here is my code:

public class QuestionRightPanel extends Panel {
private String selectedValue;
private RadioChoice radioChoice;
...
public QuestionRightPanel() {
...
radioChoice = new RadioChoice("radioChoice", new MyModel(),
yesNoChoices, new ChoiceRenderer("label", "value")).setSuffix("");
...
selectedValue = getAlreadyChoosenValue();
if (questionAnswered) {
radioChoice.setVisible(true);
radioChoice.setEnabled(false);
   radioChoice.setModelObject(new
LabelValue(convertYesNo(selectedValue), selectedValue));
}

class MyModel extends Model {

@Override
public Object getObject() {
return selectedValue;
}

@Override
public void setObject(Serializable object) {
if (object != null) {
// set the yes-no value choosen.
selectedValue = ((LabelValue) object).getValue();
}
}
}

As seen i don't want the user to answer the question again by disabling the
radioChoice if the
question already has been answered.
By why can't i set the default selected option to be the value i desire by
the code:
  radioChoice.setModelObject(new LabelValue(convertYesNo(selectedValue),
selectedValue));

Hope someone has the answer...

Best Regards
Muro


inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Stefan Lindner
I found inmethod datagrid at
http://wicketstuff.org/maven/repository/com/inmethod/grid-examples/ but
no hint or link to it on the wiki page
http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki.

The project remained in 1.0 state since the end of last year. Is it
compatible with wicket 1.4? Is it still under development? Does it
support generics now?

Does anybody use it togehter with wicket 1.4?

Stefan

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



Re: Wicket Bulgarian translation (bg)

2009-10-12 Thread Girts Ziemelis

Olivier Bourgeois wrote:
I'm using BG translations for my app, but not the Wicket default ones, 
and I

am using a mix of UTF-8 properties files and XML files. I just had a look
with wicket 1.4.2 and the BG translations are broken : I think something
went wrong with the native2ascii transformation.

If you look at the history of the Wicket BG translation file, it used to be
in UTF-8, but because Java properties does not hold UTF-8 it has been
encoded in ASCII. Now that Wicket 1.4.x can work with XML properties. I
think this file should be in XML, like RU file is today.
  
Yes - our BG translations from our property files also work fine - it is 
just the wicket standard messages.
Ok, I will try to get the old translations back and encode them 
properly. It seems they are wrong since may 2006 :(
Or is it really preferred to store them in XML? Currently russian is the 
only one in XML.




FileUploadField blocks component submission when an empty file is selected

2009-10-12 Thread Ian Marshall
I have a FileUploadField component in a form. My issue is that when a 
file of size zero is selected using the component's integral "Browse..." 
button, and then one of the owning form's submit buttons is clicked, 
neither that button's nor the form's overridden onSubmit() methods is 
called. The form becomes unsubmissible.


If a non-empty file is subsequently selected using the FileUploadField 
component's "Browse..." button, then normal onSubmit() functionality is 
restored.


Is this a known bug, or can I do something to prevent this behaviour for 
empty files?


My NetBeans environment is:

 Product Version: NetBeans IDE 6.7 (Build 200906241340)
 Java: 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02
 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)
 Userdir: C:\Documents and Settings\Ian\.netbeans\6.7

 Wicket plug-in used:
   Wicket as a library
 Version: 1.4
 Description: Wicket 1.4 RC1 Library

   Wicket Support:
 Version: 0.15

   Wicket File Templates:
 Version: 1.1


Regards,

Ian Marshall

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



How to avoid an empty row in inmethod datagrid editable example

2009-10-12 Thread François Jeunesse
Hi,

 

I’am using the editable datagrid example from inmethod.

 

When I add my grid to my page, I’am using this line:

DataGrid grid = new DefaultDataGrid("grid", new
infoDataSource(dp.getInfoVintage()), columns);

 

The final result, like on the website example
(http://wicketstuff.org/grid-examples/data-grid/editable-selection.1) is
that one empty row is added at the end of the datagrid.

 

Is there a way to avoid it? (I would like for example having my datagrid
center on the screen with no empty rows) I searched in DefaultDataGrid
source code but found no results.

Thanks for help,

 

François Jeunesse
IT Consultant
A-SYST SA
Route de Holzem, 3
L-8232 Mamer
Luxembourg
Mobile (Lux) : +352 691 945 980
Mobile (Bel) : +32 474 49 83 82

 



Re: Wicket 1.4.2 Released!

2009-10-12 Thread martin-g

Congratulations !

Why there are no SVN tags anymore ?
svn ls http://svn.apache.org/repos/asf/wicket/tags/  does not have tags for
1.4.1 and 1.4.2


igor.vaynberg wrote:
> 
> The Apache Wicket project is proud to announce the second maintenance
> release of Apache Wicket 1.4.
> 
> Download Apache Wicket 1.4
> ---
> 
> You can download the release here:
> http://www.apache.org/dyn/closer.cgi/wicket/1.4.2
> 
> Or use this in your Maven pom's to upgrade to the new version:
> 
> 
>   org.apache.wicket
>   wicket
>   1.4.2
> 
> 
> Release Notes - Wicket - Version 1.4.2
> 
> ** Bug
>   * [WICKET-2393] - Passwords should not be trimmed
>   * [WICKET-2430] - Malformed \u encoding in
> MultipleUploadField_sl.properties
>   * [WICKET-2433] - Ajax support for multipart forms broken in a nested
> form
>   * [WICKET-2434] - RequestCycle urlFor ignores existing parameters
> when appending provided params
>   * [WICKET-2436] - invalid DataTable markup breaks table layout
>   * [WICKET-2438] - AjaxEventBehavior not working on feedback
> message components
>   * [WICKET-2453] - Form.findForm(Component c) bug. When form is
> part of Border and form component like TextField is inside another
> Border , component cannot resolve its form.
>   * [WICKET-2456] - DateTextField cannot work with default converter
> (or javadoc wrong)
>   * [WICKET-2457] - Flash/ExternalInterface does not work in IE if
> movie is fetched via Wicket/Ajax
>   * [WICKET-2458] - JavascriptUtils.escapeQuotes() misses escaping
> double quotes
>   * [WICKET-2461] - AjaxPagingNavigationIncrementLink does not work
> without AjaxPagingNavigator component
>   * [WICKET-2463] - Ajax miltipart form submitting ignores
> setDefaultFormProcessing(false)
>   * [WICKET-2466] - javadoc the CryptedUrlWebRequestCodingStrategy
> needs to be update/corrected to reflect the usage of session-id for
> encryption and hence URLs which were bookmarkable before will NOT
> remain bookmarkable.
>   * [WICKET-2475] - NPE after application hot redeployment
>   * [WICKET-2477] - AjaxEditableChoiceLabel does not detach choices model
>   * [WICKET-2478] - TabbedPanel rendering bug
>   * [WICKET-2485] - IComponentResolvers are not supported inside
> wicket:enclosure
>   * [WICKET-2488] - QuickFix proposal
> WicketTesterHelper.assertEquals(final Collection expects, final
> Collection actuals) should compare list sizes
> 
> ** Improvement
>   * [WICKET-626] - profile Wicket for 1.4.0
>   * [WICKET-2435] - TabbedPanel extract factory method for tabs-container
>   * [WICKET-2439] - Improve MixedParamUrlCodingStrategy, introduce Hybrid
>   * [WICKET-2444] - Internal Spring beans should be ignored
>   * [WICKET-2445] - FormInput.java needs the validators updated.
>   * [WICKET-2449] - Fix javadoc biggest mistakes - mainly @Deprecated tags
>   * [WICKET-2454] - IE8: be more verbose if ajax refresh fails
>   * [WICKET-2469] - Allow using a different FileItemFactory by
> extracting a method in MultipartServletWebRequest class
>   * [WICKET-2492] - Application_pt_BR.properties path
> 
> ** New Feature
>   * [WICKET-2395] - add MixedParamHybridUrlCodingStrategy
>   * [WICKET-2483] - Access to WizardModel.conditions
> 
> ** Wish
>   * [WICKET-2120] - widen visibiliy of GuiceProxyTargetLocator  and
> findBindingAnnotation
>   * [WICKET-2462] - Would it possible add chinese resource label for
> WizardButton eg. CancelButton, NextButton and PreviousButton etc.
>   * [WICKET-2489] - need to know if a component has been added to
> the AjaxRequestTarget
> 
> We thank you for your patience and support.
> 
> The Wicket Team
> 
> -
> 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/Wicket-1.4.2-Released%21-tp25831449p25855241.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: Wicket Bulgarian translation (bg)

2009-10-12 Thread Olivier Bourgeois
2009/10/12 Girts Ziemelis 

> Wicket version is 4.1
> Regarding encoding - I know - it is encoded in the properties file -strings
> I posted are once the strings are decoded to UTF-8 -for IDE (Netbeans, for
> example, does this automatically for *.properties files) and for the web
> site (in UTF-8).
> For example - ASCII escapes below - first letter \u00d0 is
> http://www.fileformat.info/info/unicode/char/00d0/index.htm
> which is not a letter from Cyrillic.
> My understanding is that all cyrilic charset letters are in unicode block
>  \u04xx
> http://czyborra.com/charsets/cyrillic.html
>
> Are you using BG translation which works correctly?
>
>
I'm using BG translations for my app, but not the Wicket default ones, and I
am using a mix of UTF-8 properties files and XML files. I just had a look
with wicket 1.4.2 and the BG translations are broken : I think something
went wrong with the native2ascii transformation.

If you look at the history of the Wicket BG translation file, it used to be
in UTF-8, but because Java properties does not hold UTF-8 it has been
encoded in ASCII. Now that Wicket 1.4.x can work with XML properties. I
think this file should be in XML, like RU file is today.


Re: Feedbackpanel for exact one Error Level

2009-10-12 Thread Bernhard Grünewaldt

thx, thats perfect.
I am still not used to private subclassing :(

Hauke Ingmar Schmidt schrieb:

Hej,


I know how to add a Feedbackpanel and how to filter it by specific forms
a.s.o.
But I want three feedbackpanels. One for "warn", one for "error" and one
for "info".

I didn't find a implementation of IFeedbackMessageFilter which does that.
(Or I don't know how it could do that)

Is there a way to do that?


You need to set an IFeedbackMessageFilter on the Feedback panel, e.g.:

FeedbackPanel fbp = new FeedbackPanel("feedback", new
IFeedbackMessageFilter() {
public boolean accept(FeedbackMessage message) {
return 
message.getLevel()==FeedbackMessage.ERROR;
}
});

Bye
Hauke Ingmar

-
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: AjaxFallbackDefaultDataTable has no thead

2009-10-12 Thread Stefan Lindner
Forget my post. Some FF-Plugins must have mixed up the html. After a fresh 
FF-Installation the  is back again. Strange.

Stefan

-Ursprüngliche Nachricht-
Von: Stefan Lindner [mailto:lind...@visionet.de] 
Gesendet: Montag, 12. Oktober 2009 01:36
An: users@wicket.apache.org
Betreff: AjaxFallbackDefaultDataTable has no thead

In my Wicket 1.4(.2) application I have a AjaxFallbackDefaultDataTable . No big 
tricks, no method overriding, just an out of the box 
AjaxFallbackDefaultDataTable. The resulting rendered html table has no head 
section. It should be there because the source for datatable.html shows a 
 section as the anchor for the repeaters for the header toolbar.
Am I compldetely mixed up? Does anybody else see this strange behavior?
 
Stefan.


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



Re: Feedbackpanel for exact one Error Level

2009-10-12 Thread Hauke Ingmar Schmidt
Hej,

>>> I know how to add a Feedbackpanel and how to filter it by specific forms
>>> a.s.o.
>>> But I want three feedbackpanels. One for "warn", one for "error" and one
>>> for "info".
>>>
>>> I didn't find a implementation of IFeedbackMessageFilter which does that.
>>> (Or I don't know how it could do that)
>>>
>>> Is there a way to do that?

You need to set an IFeedbackMessageFilter on the Feedback panel, e.g.:

FeedbackPanel fbp = new FeedbackPanel("feedback", new
IFeedbackMessageFilter() {
public boolean accept(FeedbackMessage message) {
return 
message.getLevel()==FeedbackMessage.ERROR;
}
});

Bye
Hauke Ingmar

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



Re: Date Picker in Editable TreeTable in IE7 and IE8

2009-10-12 Thread John MacEnri
Thanks for that Zoltan.

Looks like it's worth a bit more digging into the css. I had already played
with the z-index but that had no effect. There must be something coming from
further up the structure tree that is causing it (only in IE, fine in
FireFox).

I might subclass the DatePicker in order to wrap it in an outer span like
you've shown here to see if that has any effect.

Thanks again

John



2009/10/12 zlus...@gmail.com 

> Hi,
>
> Try to play with z-index css value; increase it, and it should bring the
> calendar control above the other parts of the table. We are also using the
> YUI calendar widget inside a table, see this page on JavaForge:
> http://www.javaforge.com/proj/tracker/submitNew.do?tracker_id=5407. (Sorry
> guys for showing a struts page here ;-).
>
> The calendar markup is wrapped in a  class="calOuterContainer"> The relevan css is:
>
> /* "relative" puts the calendar where the container is on screen */
> .calOuterContainer {
>   position: relative;
>   z-index:20;
>   /* holy hack for IE6 scrollbar bug on relative positioned controller
>   see: http://www.positioniseverything.net/explorer/unscrollable.html
>   */
>   height: 1%;
> }
>
> I hope that helps,
> Zoltan
>
>
> John MacEnri írta:
>
> Rolling my own seems like a pretty heavyweight solution. The control for
>> the
>> most part is fine. (Though the lack of any year change ability is a
>> significant drawback)
>>
>> What I'm trying to find out is whether anyone else is having any trouble
>> with the YUI datepicker in IE7 or IE8 when used within a Table or
>> TreeTable.
>> Thanks
>>
>> John
>>
>> 2009/10/10 Igor Vaynberg 
>>
>>
>>
>>> you can always roll your own datepicker if the YUI one does not work
>>> properly.
>>>
>>> -igor
>>>
>>> On Fri, Oct 9, 2009 at 5:13 PM, John MacEnri 
>>> wrote:
>>>
>>>
 Hi,


 I'm new to Wicket this week, so not familiar with the expected format or
 structure of emails to this mailing list.

 I picked Wicket after trawling around for a framework that would enable


>>> UI
>>>
>>>
 programming on the Web make sense again. It's been an absolute pleasure


>>> so
>>>
>>>
 far. Compared to the pain I've felt for some time now battling with web
 application frameworks where most of the code of the applications was in
 XML, JS, JSP etc. etc. and a light sprinkling of actual Java, the


>>> elegance
>>>
>>>
 of Wicket as a natural UI programming environment makes everything seem
 possible and even enjoyable again. Thanks.

 But, (there always is a but:-) ), I'm struggling with an issue I've hit


>>> with
>>>
>>>
 the DatePicker and can't seem to resolve it.

 I'm using Wicket 1.4.1.
 I used the Editable TreeTable example from the Wicket site as a starter


>>> for
>>>
>>>
 the very small app I needed to write.
 Rather than just text editable columns though, I'm making them more type
 specific, so one of them is for Dates and shows a DateTextField and a
 DatePicker.

 The app is working fine in Firefox but the DatePicker is always caught
 behind the rows above and below when I run the app in IE7 or 8.
 The attached screen snippets show the difference. I've dug deep into the


>>> css
>>>
>>>
 and used the developer tools in IE8 which give you something akin to


>>> Firebug
>>>
>>>
 but couldn't find  any css change would fix it.

 Is there a way to fix this or an alternative date picker?

 Thanks

 John





 -
 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: OT: wicket running in Tomcat got a java.lang.NoClassDefFoundError: javax/servlet/ServletRequest

2009-10-12 Thread Johan Compagner
looks to me like a screwed up tomcat install somehow.

On Mon, Oct 12, 2009 at 10:10, Fernando Wermus wrote:

> Does anyone face this exception under Tomcat?
> The servelet-api.jar is in usr/share/tomcat5.5/lib/commons
>
> javax.servlet.ServletException: Filter execution threw an exception
>
> *root cause*
>
> java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
>java.lang.Class.getDeclaredMethods0(Native Method)
>java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
>java.lang.Class.getMethod0(Class.java:2687)
>java.lang.Class.getMethod(Class.java:1620)
>
>  
> org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)
>
>  
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
>
> *root cause*
>
> java.lang.ClassNotFoundException: javax.servlet.ServletRequest
>
>  
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)
>
>  
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
>java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
>java.lang.Class.getDeclaredMethods0(Native Method)
>java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
>java.lang.Class.getMethod0(Class.java:2687)
>java.lang.Class.getMethod(Class.java:1620)
>
>  
> org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)
>
>  
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
>
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>


Re: Feedbackpanel for exact one Error Level

2009-10-12 Thread Bernhard Grünewaldt

Hello,

I opened an issue in Jira with the code attached to it.

https://issues.apache.org/jira/browse/WICKET-2517

Perhaps it could be included into wicket source code.

--

That's almost what I am looking for, but it accepts "all errors to a 
certain level". I want exact ONE level to be accepted.


With ErrorLevelFeedbackMessageFilter:
 Info Level displays: error, warn and info
 Error Level displays: error
 Warn Level displays: error, warn


What I want is:
 Info Level should display: info
 Error Level should display: error
 Warn Level should display: warn


Example:

error("error");
info("info");
warn("warn");

FeedbackPanel errorFeedback = new FeedbackPanel("error");
		errorFeedback.setFilter(new 
ErrorLevelFeedbackMessageFilter(FeedbackMessage.ERROR));

add(errorFeedback);

FeedbackPanel infoFeedback = new FeedbackPanel("info");
		infoFeedback.setFilter(new 
ErrorLevelFeedbackMessageFilter(FeedbackMessage.INFO));

add(infoFeedback);

FeedbackPanel warnFeedback = new FeedbackPanel("warn");
		warnFeedback.setFilter(new 
ErrorLevelFeedbackMessageFilter(FeedbackMessage.WARNING));

add(warnFeedback);

Produces:
--


  


  error

  warn

  



  

  error

  info

  warn


  


  

  error

  






Maarten Bosteels schrieb:

http://wicket.apache.org/docs/1.4/org/apache/wicket/feedback/ErrorLevelFeedbackMessageFilter.html

On Mon, Oct 12, 2009 at 9:33 AM, Bernhard Grünewaldt <
bernh...@gruenewaldt.net> wrote:


Hello,

I know how to add a Feedbackpanel and how to filter it by specific forms
a.s.o.
But I want three feedbackpanels. One for "warn", one for "error" and one
for "info".

I didn't find a implementation of IFeedbackMessageFilter which does that.
(Or I don't know how it could do that)

Is there a way to do that?

Something like:

## pseudocode:
  FeedbackPanel f = new FeedbackPanel("warn");
  f.showOnly(FeedbackPanel.WARN);
  add(f);
##

would be nice.

thx

Bernhard



-
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: Wicket Bulgarian translation (bg)

2009-10-12 Thread Girts Ziemelis

Wicket version is 4.1
Regarding encoding - I know - it is encoded in the properties file 
-strings I posted are once the strings are decoded to UTF-8 -for IDE 
(Netbeans, for example, does this automatically for *.properties files) 
and for the web site (in UTF-8).

For example - ASCII escapes below - first letter \u00d0 is
http://www.fileformat.info/info/unicode/char/00d0/index.htm
which is not a letter from Cyrillic.
My understanding is that all cyrilic charset letters are in unicode 
block  \u04xx

http://czyborra.com/charsets/cyrillic.html

Are you using BG translation which works correctly?

Olivier Bourgeois wrote:

What version of Wicket are you using ?

You should have native2ascii encoded strings in the property file :

Required=\u00d0\u0178\u00d0\u00be\u00d0\u00bb\u00d0\u00b5\u00d1\u201a\u00d0\u00be
'${label}' \u00d0\u00b5
\u00d0\u00b7\u00d0\u00b0\u00d0\u00b4\u00d1\u0160\u00d0\u00bb\u00d0\u00b6\u00d0\u00b8\u00d1\u201a\u00d0\u00b5\u00d0\u00bb\u00d0\u00bd\u00d0\u00be.


2009/10/11 Girts Ziemelis 

  

Is anyone using wicket with bulgarian translations?
It seems, the standard wicket messages for bulgarian
Application_bg.properties are all messed up :(
Unfortunately I do not speak/write Bulgarian, but version of survey we are
running is also in BG and our Bulgarian colleagues are complaining about
standard error messages being messed up.
Site is in UTF-8 and many other non standard charset languages are working
fine (e.g. Russian, Latvian).
Strings in the wicket property file do not seem to contain proper Cyrillic
characters:
e.g: string for
Required=Полето '${label}' е задължително.
I do not believe is a proper cyrillic text.
Can anyone confirm the problem, before I submit the bug report?





-
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



Fwd: RestartResponseAtInterceptPageException causing odd problem with IE

2009-10-12 Thread Wayne Pope
Last go - any ideas ?

thanks

-- Forwarded message --
From: Wayne Pope 
Date: Thu, Oct 8, 2009 at 5:17 PM
Subject: RestartResponseAtInterceptPageException causing odd problem with IE
To: users@wicket.apache.org


Hi,

something we've run across with users using IE - basically if they try
and access a page they do not have RENDER permission a
UnauthorizedActionException gets thrown.
This in turn (when I set through wicket 1.4-rc6) throws a
RestartResponseAtInterceptPageException with a AccessDeniedPage that
we set in the application. Not this works no problem is all browser
except IE.

In IE we get a HTTP 400 bad request. If we refresh the browser the
page displays correctly. I have no idea why this is happening. Has
anyone seen this or can give me some pointers on how to fix this?

many thanks
Wayne

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



Re: OT: wicket running in Tomcat got a java.lang.NoClassDefFoundError: javax/servlet/ServletRequest

2009-10-12 Thread Martijn Dashorst
Does tomcat 5.5 support servlet api 1.4?

Martijn

On Mon, Oct 12, 2009 at 10:10 AM, Fernando Wermus
 wrote:
> Does anyone face this exception under Tomcat?
> The servelet-api.jar is in usr/share/tomcat5.5/lib/commons
>
> javax.servlet.ServletException: Filter execution threw an exception
>
> *root cause*
>
> java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
>        java.lang.Class.getDeclaredMethods0(Native Method)
>        java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
>        java.lang.Class.getMethod0(Class.java:2687)
>        java.lang.Class.getMethod(Class.java:1620)
>        
> org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)
>        
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
>
> *root cause*
>
> java.lang.ClassNotFoundException: javax.servlet.ServletRequest
>        
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)
>        
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
>        java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
>        java.lang.Class.getDeclaredMethods0(Native Method)
>        java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
>        java.lang.Class.getMethod0(Class.java:2687)
>        java.lang.Class.getMethod(Class.java:1620)
>        
> org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)
>        
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
>
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0

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



Re: Scala, dependency injection and wicket

2009-10-12 Thread Haim Ashkenazi

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

On Oct 12, 2009, at 10:01 AM, Jan Kriesten wrote:



Hi,

I've started testing this approach and I'm a little stuck. I can  
easily

inject objects like that for running the application, but how do I
inject mock objects for testing? The module used by the injector  
(in the

article's example) is hard-coded into the InjectorService object.


you could use modules depending on environment settings e.g.

Shouldn't be too hard.

I'll try it :)

Thanks
- --
Haim
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)

iEYEARECAAYFAkrS5cUACgkQhwMtGgRKzT29DwCfY5FlXHzWZHMmA66ZPqwKR0zg
Jd8AoIyFntvM+UAI+0DTOuwEt1oa3juu
=bzB0
-END PGP SIGNATURE-

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



Re: Wicket Bulgarian translation (bg)

2009-10-12 Thread Olivier Bourgeois
What version of Wicket are you using ?

You should have native2ascii encoded strings in the property file :

Required=\u00d0\u0178\u00d0\u00be\u00d0\u00bb\u00d0\u00b5\u00d1\u201a\u00d0\u00be
'${label}' \u00d0\u00b5
\u00d0\u00b7\u00d0\u00b0\u00d0\u00b4\u00d1\u0160\u00d0\u00bb\u00d0\u00b6\u00d0\u00b8\u00d1\u201a\u00d0\u00b5\u00d0\u00bb\u00d0\u00bd\u00d0\u00be.


2009/10/11 Girts Ziemelis 

> Is anyone using wicket with bulgarian translations?
> It seems, the standard wicket messages for bulgarian
> Application_bg.properties are all messed up :(
> Unfortunately I do not speak/write Bulgarian, but version of survey we are
> running is also in BG and our Bulgarian colleagues are complaining about
> standard error messages being messed up.
> Site is in UTF-8 and many other non standard charset languages are working
> fine (e.g. Russian, Latvian).
> Strings in the wicket property file do not seem to contain proper Cyrillic
> characters:
> e.g: string for
> Required=Полето '${label}' е задължително.
> I do not believe is a proper cyrillic text.
> Can anyone confirm the problem, before I submit the bug report?
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


OT: wicket running in Tomcat got a java.lang.NoClassDefFoundError: javax/servlet/ServletRequest

2009-10-12 Thread Fernando Wermus
Does anyone face this exception under Tomcat?
The servelet-api.jar is in usr/share/tomcat5.5/lib/commons

javax.servlet.ServletException: Filter execution threw an exception

*root cause*

java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
java.lang.Class.getDeclaredMethods0(Native Method)
java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
java.lang.Class.getMethod0(Class.java:2687)
java.lang.Class.getMethod(Class.java:1620)

org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)

*root cause*

java.lang.ClassNotFoundException: javax.servlet.ServletRequest

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
java.lang.Class.getDeclaredMethods0(Native Method)
java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
java.lang.Class.getMethod0(Class.java:2687)
java.lang.Class.getMethod(Class.java:1620)

org.apache.catalina.security.SecurityUtil.createMethodAndCacheIt(SecurityUtil.java:345)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: Scala, dependency injection and wicket

2009-10-12 Thread Jan Kriesten

Hi,

> I've started testing this approach and I'm a little stuck. I can easily
> inject objects like that for running the application, but how do I
> inject mock objects for testing? The module used by the injector (in the
> article's example) is hard-coded into the InjectorService object.

you could use modules depending on environment settings e.g.

Shouldn't be too hard.

--- Jan.



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



Howto test redirect to non-wicket base page

2009-10-12 Thread Per Newgro
Hi *,

i would like to test behavior of my page. In constructor there is a redirect if 
page parameter not set. But the redirect target is a url and not a wicket page 
instance. What is the best attribute to add my assertion to?

MyPage(PageParams p) {
  if (p.get("xyz") == null) {
redirectTo("http://www.myurl.ch";);
  }
  add(new Label("Rendered");
}

void redirectTo(String url) {
  getRequestCycle().setRedirect(true);
  getRequestCycle().setRequestTarget(new RedirectRequestTarget(url));
}

lastRenderedPage is null so i can't add my assertion to this.

Cheers
Per
-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

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



Re: Feedbackpanel for each Error Level

2009-10-12 Thread Maarten Bosteels
http://wicket.apache.org/docs/1.4/org/apache/wicket/feedback/ErrorLevelFeedbackMessageFilter.html

On Mon, Oct 12, 2009 at 9:33 AM, Bernhard Grünewaldt <
bernh...@gruenewaldt.net> wrote:

> Hello,
>
> I know how to add a Feedbackpanel and how to filter it by specific forms
> a.s.o.
> But I want three feedbackpanels. One for "warn", one for "error" and one
> for "info".
>
> I didn't find a implementation of IFeedbackMessageFilter which does that.
> (Or I don't know how it could do that)
>
> Is there a way to do that?
>
> Something like:
>
> ## pseudocode:
>   FeedbackPanel f = new FeedbackPanel("warn");
>   f.showOnly(FeedbackPanel.WARN);
>   add(f);
> ##
>
> would be nice.
>
> thx
>
> Bernhard
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Scala, dependency injection and wicket

2009-10-12 Thread Haim Ashkenazi

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi jan,

On Oct 8, 2009, at 6:47 AM, Jan Kriesten wrote:



Hi Haim,

Yes, I remember seeing that. How would you add it to wicket? by  
adding
ServiceInjector trait to the Application class or using the wicket- 
guice way
(addComponentInstantiationListener(new  
GuiceComponentInjector(this));)?


the Injector is just a trait, so anywhere it's needed, I just add it  
to the
corresponding class - whether it's a Wicket component or not doesn't  
matter. So

you have

class MyWebPage extends WebPage with Injector {
 @Inject val domainRepo: DomainRepo = domainRepo
}

class DomainRepo extends Repo with Injector {
 @Inject val customerRepo: CustomerRep = customerRepo
}

This is a general approach, so no need to add a intantiation listener.
I've started testing this approach and I'm a little stuck. I can  
easily inject objects like that for running the application, but how  
do I inject mock objects for testing? The module used by the injector  
(in the article's example) is hard-coded into the InjectorService  
object.


Thanks
- --
Haim
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)

iEYEARECAAYFAkrS4QwACgkQhwMtGgRKzT12UwCfRPCcLKumJDVT1PGHH7Q6JvvK
qmEAmwfI2P2rN1Z+UdzN001EtlW/6F88
=H3rt
-END PGP SIGNATURE-

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



Feedbackpanel for each Error Level

2009-10-12 Thread Bernhard Grünewaldt

Hello,

I know how to add a Feedbackpanel and how to filter it by specific forms 
a.s.o.
But I want three feedbackpanels. One for "warn", one for "error" and one 
for "info".


I didn't find a implementation of IFeedbackMessageFilter which does 
that. (Or I don't know how it could do that)


Is there a way to do that?

Something like:

## pseudocode:
   FeedbackPanel f = new FeedbackPanel("warn");
   f.showOnly(FeedbackPanel.WARN);
   add(f);
##

would be nice.

thx

Bernhard



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



Re: Ad Hoc URL Mapping

2009-10-12 Thread nino martinez wael
You can already do this, a 2 sec google search brought this up:

http://blog.xebia.com/2008/10/09/readable-url%E2%80%99s-in-wicket-an-introduction-to-wicketstuff-annotation/
http://css.dzone.com/news/wicket-creating-restful-urls

2009/10/12 Luther Baker 

> I'd like to use a RESTful URL style where the page parameters are not
> necessarily at the far right of the URL. For starters, I understand the
> basics of Indexed and/or MixedParam url mounting to convert this:
>
>/issues/list?project=*myapp*&max=*14*
>
> to this:
>
>/issues/list/*myapp*/*14*
>
> but what I'm looking for is something like:
>
>/*myapp*/issues/list/*14*
>
> where "/issues/list" identifies the page and "/myapp" and "/14" are the
> parameter values. In this case, the actually mapping looks something like:
>
>*/[page]/[action]/* ==> Page
>
> Thoughts on the base way to manage this?
>
> -Luther
>