NullPointException in subclass of FormComponentFeedbackBorder

2009-09-27 Thread Anders
Hi,

I'd like to customize FormComponentFeedbackBorder class to provide a error
icon, so I extend FormComponentFeedbackBorder class and copy
FormComponentFeedbackBorder.html from wicket source.
I modify FormComponentFeedbackBorder.html to add below:

wicket:border
 span wicket:id=errorIndicatorimg alt=Error!
src=icon.gif/span style=color:red;!/spanbr//span
 wicket:body/
/wicket:border

If I remove img tag from my html, my application works fine, but add img
tag, it will show below exception message:

WicketMessage: Exception in rendering component: [MarkupContainer
[Component id = _header_0]]

Root cause:

java.lang.NullPointerException
 at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
 at 
org.apache.wicket.markup.MarkupCache$DefaultCacheImplementation.get(MarkupCache.java:744)
 at org.apache.wicket.markup.MarkupCache.removeMarkup(MarkupCache.java:131)
 at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:491)
 at 
org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:559)
 at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:325)
 at 
org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:216)
 at 
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
 at 
org.apache.wicket.markup.html.ContainerWithAssociatedMarkupHelper.renderHeadFromAssociatedMarkupFile(ContainerWithAssociatedMarkupHelper.java:72)
 at 
org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.renderHeadFromAssociatedMarkupFile(WebMarkupContainerWithAssociatedMarkup.java:73)
 at org.apache.wicket.markup.html.panel.Panel.renderHead(Panel.java:137)
 at 
org.apache.wicket.markup.html.internal.HtmlHeaderContainer$1.component(HtmlHeaderContainer.java:231)
 at 
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:878)
 at 
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:893)
 at 
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:918)
 at 
org.apache.wicket.markup.html.internal.HtmlHeaderContainer.renderHeaderSections(HtmlHeaderContainer.java:222)
 at 
org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:137)
 at org.apache.wicket.Component.renderComponent(Component.java:2626)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1536)
 at org.apache.wicket.Component.render(Component.java:2457)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at 
org.apache.wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:80)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1441)
 at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1552)
 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:456)
 at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
 at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
 at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
 at java.lang.Thread.run(Thread.java:619)

Complete stack:

org.apache.wicket.WicketRuntimeException: Exception in rendering
component: [MarkupContainer [Component id = _header_0]]
 at 

RE: ModalWindow - Address Is Not Valid

2009-09-27 Thread Alexander Shindler

Hi Jeremy,

 

Bychance, I found out that it must be some sort of compatibility problem with 
Internet Explorer 8. Even though strangely when I run it from the host computer 
even with IE8 it runs fine, but for some reason other computers on the network 
using IE8 cannot open the modal windows and get the error I mentioned below. 
When I tried using IE7 from the computers on the network, everything runs 
smoothly. 

 

I can't think of reason why - any suggestions? 

 

The strangest thing is that I have no problem using IE8 from the host computer. 
I'm guessing it must be some new security feature on IE8...but I've no idea 
what the workaround could be for this apart from using a different 
browser/version...

 

 
 Date: Sat, 26 Sep 2009 18:34:44 -0500
 Subject: Re: ModalWindow - Address Is Not Valid
 From: jer...@wickettraining.com
 To: users@wicket.apache.org
 
 Can you show some code?
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 On Thu, Sep 24, 2009 at 1:41 AM, Alexander Shindler 
 alexshind...@hotmail.com wrote:
 
 
  Hi,
 
 
 
  I have been using wicket to develop an intranet web application. I have
  tabbedpanels with AjaxLinks which when clicked open up ModalWindows. I am
  running tomcat on my computer and my application works fine. When I access
  my application from another networked computer, when I click the links, the
  modalwindows are not opened and all I get is a message saying that the
  address is not valid (http:///) - can anyone exalin why this happens?
 
 
 
  Alex
 
  _
  Get the best of MSN on your mobile
  http://clk.atdmt.com/UKM/go/147991039/direct/01/
 
  
_
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/

Re: google-sitebricks

2009-09-27 Thread Per Lundholm
It seems to be targetting a different category of webapps:  ... that have a
lot of textual content and some components that are inserted or modified by
Javascript interactively ... .

That opposed to:  ... web UI design using the abstraction of a desktop UI:
Events, components and widgets interacting with user clicks and actions... 

Being one that writes the latter kind of webapps, I think it is not for me.

There is also an expression language which may be interesting to learn but I
really appreciate that I can write my logic (and test it) in Java.

So from that interview, I can't see how Sitebricks makes any sense to me.

/Per

On Sat, Sep 26, 2009 at 11:20 PM, Objelean Alex alex.objel...@gmail.comwrote:

 It seems that google created a yet-another-web-framework (as it used to be
 called). It is called google-sitebricks. Below is a link on infoq.
 http://www.infoq.com/news/2009/09/google-sitebricks
 What do you think about it?

 Regards,
 Alex Objelean



Re: NullPointException in subclass of FormComponentFeedbackBorder

2009-09-27 Thread Altuğ B . Altıntaş
wicket:border
span wicket:id=errorIndicator/span
img alt=Error! src=icon.gif/span style=color:red;!
br/
 /span
  wicket:body/
  /wicket:border




Try above .

Maybe error occurs  because of hierarchy; i mean it your html; img is child
of errorIndicator but i think in your java code site  there is hierarchy
like this.

note: it is just a guess !

Regards.




 2009/9/27 Anders innocentl...@gmail.com

 Hi,

 I'd like to customize FormComponentFeedbackBorder class to provide a error
 icon, so I extend FormComponentFeedbackBorder class and copy
 FormComponentFeedbackBorder.html from wicket source.
 I modify FormComponentFeedbackBorder.html to add below:

wicket:border
 span wicket:id=errorIndicatorimg alt=Error!
 src=icon.gif/span style=color:red;!/spanbr//span
 wicket:body/
/wicket:border

 If I remove img tag from my html, my application works fine, but add
 img
 tag, it will show below exception message:

 WicketMessage: Exception in rendering component: [MarkupContainer
 [Component id = _header_0]]

 Root cause:

 java.lang.NullPointerException
 at
 java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
 at
 org.apache.wicket.markup.MarkupCache$DefaultCacheImplementation.get(MarkupCache.java:744)
 at
 org.apache.wicket.markup.MarkupCache.removeMarkup(MarkupCache.java:131)
 at
 org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:491)
 at
 org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:559)
 at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:325)
 at
 org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:216)
 at
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
 at
 org.apache.wicket.markup.html.ContainerWithAssociatedMarkupHelper.renderHeadFromAssociatedMarkupFile(ContainerWithAssociatedMarkupHelper.java:72)
 at
 org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.renderHeadFromAssociatedMarkupFile(WebMarkupContainerWithAssociatedMarkup.java:73)
 at org.apache.wicket.markup.html.panel.Panel.renderHead(Panel.java:137)
 at
 org.apache.wicket.markup.html.internal.HtmlHeaderContainer$1.component(HtmlHeaderContainer.java:231)
 at
 org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:878)
 at
 org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:893)
 at
 org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:918)
 at
 org.apache.wicket.markup.html.internal.HtmlHeaderContainer.renderHeaderSections(HtmlHeaderContainer.java:222)
 at
 org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:137)
 at org.apache.wicket.Component.renderComponent(Component.java:2626)
 at
 org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1536)
 at org.apache.wicket.Component.render(Component.java:2457)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at
 org.apache.wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:80)
 at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1441)
 at
 org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1552)
 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:456)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
 at
 

Where can I find this Wicket application?

2009-09-27 Thread David Chang

Hello,

I am reading Wicket-related stuff on the net and came across this Wicket 
discussion thread:

http://osdir.com/ml/users-wicket.apache.org/2009-05/msg01196.html

In the response, my wicket-advanced example application is mentioned. 

I would like to know where I can find this application?

Thanks!


  

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



Re: Where can I find this Wicket application?

2009-09-27 Thread Maarten Bosteels
http://svn.carmanconsulting.com/public/wicket-advanced/

On Sun, Sep 27, 2009 at 6:16 PM, David Chang david_q_zh...@yahoo.comwrote:


 Hello,

 I am reading Wicket-related stuff on the net and came across this Wicket
 discussion thread:

 http://osdir.com/ml/users-wicket.apache.org/2009-05/msg01196.html

 In the response, my wicket-advanced example application is mentioned.

 I would like to know where I can find this application?

 Thanks!




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




Doubt with Maven config

2009-09-27 Thread Pedro Sena
Hi Guys,

I'm using lolite archetype but I'm having a 'problem'

I want to run my tests (JUnit) and keep the Jetty server alive after the
tests.

Every time that I run my maven tests, it creates a Jetty server that is
killed at the end of the process.

I'm trying to do the same thing as Wicket in Action, I changed the
Start.java that comes with lolite but it not helped.

I'm sure that I'm missing some detail, I'd appreciate some help with it.

Thanks in advance

-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


Re: [wicket-stuff] project sitemap-xml - empty jar' files

2009-09-27 Thread Andreas Petersson

Hi!
being the initial commiter of sitemap-xml i sort of feel responsible for 
this. i am glad to hear it gathers a
the problem is that i did not test if the checkin follows the maven 
conventions, since i don't use maven, i just tried to follow the 
conventions given by similar projects, which obviously failed.
is the problem just that the files just need to be moved to the /src 
subdir? the svn seems very, very slow atm, so i can't check it.
i will hang around in #wicket irc channel the next days if you want to 
reach me on that issue with nicks apetersson (at home) and 
apetersson_shado (at work). do not hesitate to contact me.


best regards
andreas


Can you submit a patch or even just commit the fix yourself?  The brutal
truth is that most wicket stuff projects are abandoned toys that their
owners once created.  But the nice thing is that you are free to change it
if you want.

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



On Thu, Sep 24, 2009 at 2:36 AM, Jens Zastrow m...@jens-zastrow.de wrote:

  

Hi all,

I already created a jira but without any feedback
http://wicketstuff.org/jira/browse/ACTIVEWIDGETS-3

We want to use the sitemap-xml project but the jars in the maven-repository
are empty.

I checked out 1.4.1 sitemap-xml source-code from the svn...
The problem exists because the directory structure (main/java) doesnt
follow the default-maven-layout (src/main/java)
and the pom.xml isnt reconfigured  to match the (main/java) structure.

I hope sombody of the sitemap-xml-source commiters will read this.

Thanks
Jens

-
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



RefreshingView

2009-09-27 Thread Garz
heyho,

public abstract class RefreshingViewT extends RepeatingView has the 
typeparameter but no public IModelT getModel(). can someone add it please or 
let me add it, i would do it too, plus setModel(), setModelObject(), 
getModelObject().

regarz
-- 
Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02

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



Re: RefreshingView

2009-09-27 Thread Martin Makundi
It has getDefaultModelObject etc??

**
Martin

2009/9/27  g...@gmx.net:
 heyho,

 public abstract class RefreshingViewT extends RepeatingView has the 
 typeparameter but no public IModelT getModel(). can someone add it please 
 or let me add it, i would do it too, plus setModel(), setModelObject(), 
 getModelObject().

 regarz
 --
 Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
 für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02

 -
 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



avoid setters / getters by using ?

2009-09-27 Thread David Chang
Hello,

I have Wicket+Spring application. It has a service object which has a few DAO 
members. I can use Spring's autowiring to avoid mentioning the DAO dependencies 
for the service bean. However, in the Java program for the service bean, I 
still have to add setters and getters for each DAO member, which I don't like. 
How can I avoid these setters and getters? Using AOP? Any examples?

I understand that this question is not strictly a Wicket, but I definitely want 
to ask my Wicket friends here.

Thank you!


  

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



Re: avoid setters / getters by using ?

2009-09-27 Thread Martin Makundi
At least in wicket you can access the fields themselves using propertymodels.

**
Martin

2009/9/27 David Chang david_q_zh...@yahoo.com:
 Hello,

 I have Wicket+Spring application. It has a service object which has a few DAO 
 members. I can use Spring's autowiring to avoid mentioning the DAO 
 dependencies for the service bean. However, in the Java program for the 
 service bean, I still have to add setters and getters for each DAO member, 
 which I don't like. How can I avoid these setters and getters? Using AOP? Any 
 examples?

 I understand that this question is not strictly a Wicket, but I definitely 
 want to ask my Wicket friends here.

 Thank you!




 -
 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: RefreshingView

2009-09-27 Thread Igor Vaynberg
RefreshingView component does not use its model and therefore does not
provide typesafe getters, mostly because it is possible to use any
kind of model object with it.

-igor

On Sun, Sep 27, 2009 at 12:30 PM,  g...@gmx.net wrote:
 heyho,

 public abstract class RefreshingViewT extends RepeatingView has the 
 typeparameter but no public IModelT getModel(). can someone add it please 
 or let me add it, i would do it too, plus setModel(), setModelObject(), 
 getModelObject().

 regarz
 --
 Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
 für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02

 -
 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: RefreshingView

2009-09-27 Thread garz

ah noo i am wrong, the type parameter is for the items that are used inside,
not for the model of the refreshingview itself. my fault, sry. :D though but
your answer didnt help me to find that out... ;)


MartinM wrote:
 
 It has getDefaultModelObject etc??
 
 **
 Martin
 
 2009/9/27  g...@gmx.net:
 heyho,

 public abstract class RefreshingViewT extends RepeatingView has the
 typeparameter but no public IModelT getModel(). can someone add it
 please or let me add it, i would do it too, plus setModel(),
 setModelObject(), getModelObject().

 regarz
 --
 Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
 für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02

 -
 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/RefreshingView-tp25636765p25637138.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: ModalWindow - Address Is Not Valid

2009-09-27 Thread Jan Grathwohl
Hi Alexander,

this one here looks like your problem:

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

But the issue is marked as fixed in JIRA, since end of April. Do you use the
latest Wicket version?



2009/9/27 Alexander Shindler alexshind...@hotmail.com


 Hi Jeremy,



 Bychance, I found out that it must be some sort of compatibility problem
 with Internet Explorer 8. Even though strangely when I run it from the host
 computer even with IE8 it runs fine, but for some reason other computers on
 the network using IE8 cannot open the modal windows and get the error I
 mentioned below. When I tried using IE7 from the computers on the network,
 everything runs smoothly.



 I can't think of reason why - any suggestions?



 The strangest thing is that I have no problem using IE8 from the host
 computer. I'm guessing it must be some new security feature on IE8...but
 I've no idea what the workaround could be for this apart from using a
 different browser/version...




  Date: Sat, 26 Sep 2009 18:34:44 -0500
  Subject: Re: ModalWindow - Address Is Not Valid
  From: jer...@wickettraining.com
  To: users@wicket.apache.org
 
  Can you show some code?
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Thu, Sep 24, 2009 at 1:41 AM, Alexander Shindler 
  alexshind...@hotmail.com wrote:
 
  
   Hi,
  
  
  
   I have been using wicket to develop an intranet web application. I have
   tabbedpanels with AjaxLinks which when clicked open up ModalWindows. I
 am
   running tomcat on my computer and my application works fine. When I
 access
   my application from another networked computer, when I click the links,
 the
   modalwindows are not opened and all I get is a message saying that the
   address is not valid (http:///) - can anyone exalin why this happens?
  
  
  
   Alex
  
   _
   Get the best of MSN on your mobile
   http://clk.atdmt.com/UKM/go/147991039/direct/01/
  

 _
 Get the best of MSN on your mobile
 http://clk.atdmt.com/UKM/go/147991039/direct/01/



Re: avoid setters / getters by using ?

2009-09-27 Thread David Chang

Martin,

Thanks for your input. My intention is how to get rid of these boring 
setters/getters from service beans that are usually generated only for the 
purpose of spring-injection.

Cheers!


--- On Sun, 9/27/09, Martin Makundi martin.maku...@koodaripalvelut.com wrote:

 From: Martin Makundi martin.maku...@koodaripalvelut.com
 Subject: Re: avoid setters / getters by using ?
 To: users@wicket.apache.org
 Date: Sunday, September 27, 2009, 3:55 PM
 At least in wicket you can access the
 fields themselves using propertymodels.
 
 **
 Martin
 
 2009/9/27 David Chang david_q_zh...@yahoo.com:
  Hello,
 
  I have Wicket+Spring application. It has a service
 object which has a few DAO members. I can use Spring's
 autowiring to avoid mentioning the DAO dependencies for the
 service bean. However, in the Java program for the service
 bean, I still have to add setters and getters for each DAO
 member, which I don't like. How can I avoid these setters
 and getters? Using AOP? Any examples?
 
  I understand that this question is not strictly a
 Wicket, but I definitely want to ask my Wicket friends
 here.
 
  Thank you!
 
 
 
 
 
 -
  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: avoid setters / getters by using ?

2009-09-27 Thread Casper Bang
Use Lombok (http://projectlombok.org/), it allows you to generate 
setters and getters through annotations:


@Getter @Setter private String name;

/Casper


David Chang wrote:

Martin,

Thanks for your input. My intention is how to get rid of these boring 
setters/getters from service beans that are usually generated only for the 
purpose of spring-injection.

Cheers!


--- On Sun, 9/27/09, Martin Makundi martin.maku...@koodaripalvelut.com wrote:

  

From: Martin Makundi martin.maku...@koodaripalvelut.com
Subject: Re: avoid setters / getters by using ?
To: users@wicket.apache.org
Date: Sunday, September 27, 2009, 3:55 PM
At least in wicket you can access the
fields themselves using propertymodels.

**
Martin

2009/9/27 David Chang david_q_zh...@yahoo.com:


Hello,

I have Wicket+Spring application. It has a service
  

object which has a few DAO members. I can use Spring's
autowiring to avoid mentioning the DAO dependencies for the
service bean. However, in the Java program for the service
bean, I still have to add setters and getters for each DAO
member, which I don't like. How can I avoid these setters
and getters? Using AOP? Any examples?


I understand that this question is not strictly a
  

Wicket, but I definitely want to ask my Wicket friends
here.


Thank you!





  

-


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


  

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






  


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

  



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



Re: avoid setters / getters by using ?

2009-09-27 Thread Christian Beil

Hi David,

if you use Eclipse, you can get rid of the getters/setters by using 
http://projectlombok.org/.


Cheers,
Christian



David Chang schrieb:

Martin,

Thanks for your input. My intention is how to get rid of these boring 
setters/getters from service beans that are usually generated only for the 
purpose of spring-injection.

Cheers!


--- On Sun, 9/27/09, Martin Makundi martin.maku...@koodaripalvelut.com wrote:

  

From: Martin Makundi martin.maku...@koodaripalvelut.com
Subject: Re: avoid setters / getters by using ?
To: users@wicket.apache.org
Date: Sunday, September 27, 2009, 3:55 PM
At least in wicket you can access the
fields themselves using propertymodels.

**
Martin

2009/9/27 David Chang david_q_zh...@yahoo.com:


Hello,

I have Wicket+Spring application. It has a service
  

object which has a few DAO members. I can use Spring's
autowiring to avoid mentioning the DAO dependencies for the
service bean. However, in the Java program for the service
bean, I still have to add setters and getters for each DAO
member, which I don't like. How can I avoid these setters
and getters? Using AOP? Any examples?


I understand that this question is not strictly a
  

Wicket, but I definitely want to ask my Wicket friends
here.


Thank you!





  

-


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


  

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






  


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


  



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



Re: User name validation - how to check database to find if a name has already been taken?

2009-09-27 Thread Flavius


The AbstractValidator approach is fine, or you can do it the shorter
way the Igor showed.

Either way, when the page that has the username is submitted, you're
going to have to write that record to the database, even if you don't
have all the info.  The way you wrote the question, I presume you are
collecting info on multiple pages.  First page gets username et al, then
next  as in a wizard page.

When you check the username and it's not in use, write the record.
The table should have audit columns that include record_status and
last_mod_datetime.  Initially write the record with status I (in process)
and when the user is finished registering, update it with A (active).

If the user fills out page 1 and then closes the browser you'll have a
record there with status I.  You'll need a job that fires off periodically
(I do it once a day at 2 or 3am) that finds those records that are more
than, say, 24 hours old, and purges them.

Then, to quote a sith, there is no conflict.

-hth



Paul Huang wrote:
 
 
 
 Ryan Gravener-3 wrote:
 
 I think you are overcomplicating things.  Validate the users input, if
 two users want the same name within 1 second of each request you
 probably have bigger problems to deal with.  
 
 So you think my current solution (extending AbstractValidator) is OK?
 But I still need to catch nonunique exceptions when saving all user
 inputs. 
 
 
 
 
 Anyhow,  when submit is
 called, if you get a nonunique exception.  Catch in dao/service and
 throw an exception wicket can handle and present.
 Ryan Gravener
 http://bit.ly/no_word_docs
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 Can you be a little bit more specific? After I catch a nonuqniue
 exception,
 how should I change the page markup to present an error message? Any 
 examples/references  will be helpful.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/User-name-validation---how-to-check-database-to-find-if-a-name-has--already-been-taken--tp25614625p25638843.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: GridView and refreshing with an ajax call

2009-09-27 Thread Fernando Wermus
I did :(

On Fri, Sep 25, 2009 at 7:07 PM, Altuğ B. Altıntaş alt...@gmail.com wrote:

 Did you add the component to AjaxRequestTarget

 target.addComponent(yourGridview)

 Also don't forget this : yourGridview.setOutputMarkupId(true);

 A.B.A

 2009/9/25 Fernando Wermus fernando.wer...@gmail.com

  Hi all,I have an ajaxclick which should refresh a gridview, but this
  doesnt happened. I saw someone reporting the same issue and I would like
 to
  know if this has been fixed it. The fact, it is that the gridview' s
 model
  is called just one at construction time. It does refresh the gridview but
  with the old data from the model.
 
  Thanks in advance.
 
  --
  Fernando Wermus.
 
  www.linkedin.com/in/fernandowermus
 



 --
 Altuğ.




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: NullPointException in subclass of FormComponentFeedbackBorder

2009-09-27 Thread liny

Hi,

I still get exception, even though I just add br/, I got:

WicketMessage: No matching close bracket at position 905

I don't know why it said no close bracket...


Altuğ B. Altıntaş wrote:
 
 wicket:border
 
  icon.gif !
 br/
  
   wicket:body/
   /wicket:border



 
 Try above .
 
 Maybe error occurs  because of hierarchy; i mean it your html; img is
 child
 of errorIndicator but i think in your java code site  there is hierarchy
 like this.
 
 note: it is just a guess !
 
 Regards.
 
 
 

 2009/9/27 Anders innocentl...@gmail.com
 
 Hi,

 I'd like to customize FormComponentFeedbackBorder class to provide a
 error
 icon, so I extend FormComponentFeedbackBorder class and copy
 FormComponentFeedbackBorder.html from wicket source.
 I modify FormComponentFeedbackBorder.html to add below:

wicket:border
   src=icon.gif/!br/
 wicket:body/
/wicket:border

 If I remove   tag from my html, my application works fine, but add
  
 tag, it will show below exception message:

 WicketMessage: Exception in rendering component: [MarkupContainer
 [Component id = _header_0]]

 Root cause:

 java.lang.NullPointerException
 at
 java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
 at
 org.apache.wicket.markup.MarkupCache$DefaultCacheImplementation.get(MarkupCache.java:744)
 at
 org.apache.wicket.markup.MarkupCache.removeMarkup(MarkupCache.java:131)
 at
 org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:491)
 at
 org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:559)
 at
 org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:325)
 at
 org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:216)
 at
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
 at
 org.apache.wicket.markup.html.ContainerWithAssociatedMarkupHelper.renderHeadFromAssociatedMarkupFile(ContainerWithAssociatedMarkupHelper.java:72)
 at
 org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.renderHeadFromAssociatedMarkupFile(WebMarkupContainerWithAssociatedMarkup.java:73)
 at
 org.apache.wicket.markup.html.panel.Panel.renderHead(Panel.java:137)
 at
 org.apache.wicket.markup.html.internal.HtmlHeaderContainer$1.component(HtmlHeaderContainer.java:231)
 at
 org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:878)
 at
 org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:893)
 at
 org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:918)
 at
 org.apache.wicket.markup.html.internal.HtmlHeaderContainer.renderHeaderSections(HtmlHeaderContainer.java:222)
 at
 org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:137)
 at org.apache.wicket.Component.renderComponent(Component.java:2626)
 at
 org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1536)
 at org.apache.wicket.Component.render(Component.java:2457)
 at
 org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at
 org.apache.wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:80)
 at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1441)
 at
 org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1552)
 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:456)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at
 

Re: avoid setters / getters by using ?

2009-09-27 Thread Martin Makundi
 My intention is how to get rid of these boring setters/getters from service
 beans that are usually generated only for the purpose of spring-injection.

Well, my solution is:
1. Use abstract static service classes that cannot be instantiated.
2. Won't need spring.

**
Martin


 --- On Sun, 9/27/09, Martin Makundi martin.maku...@koodaripalvelut.com 
 wrote:

 From: Martin Makundi martin.maku...@koodaripalvelut.com
 Subject: Re: avoid setters / getters by using ?
 To: users@wicket.apache.org
 Date: Sunday, September 27, 2009, 3:55 PM
 At least in wicket you can access the
 fields themselves using propertymodels.

 **
 Martin

 2009/9/27 David Chang david_q_zh...@yahoo.com:
  Hello,
 
  I have Wicket+Spring application. It has a service
 object which has a few DAO members. I can use Spring's
 autowiring to avoid mentioning the DAO dependencies for the
 service bean. However, in the Java program for the service
 bean, I still have to add setters and getters for each DAO
 member, which I don't like. How can I avoid these setters
 and getters? Using AOP? Any examples?
 
  I understand that this question is not strictly a
 Wicket, but I definitely want to ask my Wicket friends
 here.
 
  Thank you!
 
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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






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



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