Could not locate error message for component: ..

2011-12-29 Thread Rahman USTA
Hi, im new in Wicket. im trying out an external validation , my validation
class is here http://chopapp.com/#htmnirs3 ,
 i get a message like this

"Could not locate error message for component: TextField@form:ad and error:
[ValidationError message=[null], keys=[isim 3 karakterden büyük olmalı],
variables=[null]]. Tried keys: ad.isim 3 karakterden büyük olmalı, isim 3
karakterden büyük olmalı."

how can i handle this issue.

-- 
Rahman USTA
Computer & Control Education Technologist
0-(531)-922-28-05
www.kodcu.com


Re: Could not locate error message for component: ..

2011-12-29 Thread Rahman USTA
I get it Christian, Thanks a lot

2011/12/29, Christian Huber :
> Hi,
>
> i assume the string "isim 3 karakterden büyük olmalı" is the error
> message you want to display.
>
> You have two options here, first use ValidationError#setMessage instead
> of addMessageKey. The later considers it's argument being a message key
> to be looked up from a properties file.
>
> The alternative would be to put the message into a properties file and
> the pass the corresponding key to addMessageKey instead of the error
> message itself.
>
> I would also recommend having a look at the wicket javadoc api.
>
> The Sanity Resort <http://sanityresort.blogspot.com/>
>
> Am 29.12.2011 21:39, schrieb Rahman USTA:
>> Hi, im new in Wicket. im trying out an external validation , my validation
>> class is here http://chopapp.com/#htmnirs3 ,
>>   i get a message like this
>>
>> "Could not locate error message for component: TextField@form:ad and
>> error:
>> [ValidationError message=[null], keys=[isim 3 karakterden büyük olmalı],
>> variables=[null]]. Tried keys: ad.isim 3 karakterden büyük olmalı, isim 3
>> karakterden büyük olmalı."
>>
>> how can i handle this issue.
>>
>


-- 
Rahman USTA
Computer & Control Education Technologist
0-(531)-922-28-05
www.kodcu.com

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



WicketMessage: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at [ [Component id = form]] on component [ [Component id = form]] threw an exception

2011-12-30 Thread Rahman USTA
g.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:270)
 at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
 at 
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
 at 
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
 at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:750)
 at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
 at 
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:252)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280)
 at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)

java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:260)
 at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
 at 
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
 at 
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
 at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:750)
 at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
 at 
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:252)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280)
 at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)

 display page 
view<http://localhost:8080/wicket/page?2-1.ILinkListener-displayPageViewLink>



-- 
Rahman USTA
Computer & Control Education Technologist
0-(531)-922-28-05
www.kodcu.com


It is not a good idea to reference the Session instance in models directly as it may lead to serialization problems.

2012-01-04 Thread Rahman USTA
Hi, i have a MySession.

form.add(new TextField("name",new PropertyModel(((MySession)getSession()),"
user.name")));

I have a User user; in MySession, then initialized in constructor.

my Goal is to save name and surname user's own session. i did it above, but
warning ide me so that ;

*WARN  - AbstractPropertyModel  - It is not a good idea to reference
the Session instance in models directly as it may lead to serialization
problems. If you need to access a property of the session via the model use
the page instance as the model object and 'session.attribute' as the path.*

How can i handle this normally.




-- 
Rahman USTA
Computer & Control Education Technologist
0-(531)-922-28-05
www.kodcu.com


Re: It is not a good idea to reference the Session instance in models directly as it may lead to serialization problems.

2012-01-04 Thread Rahman USTA
Second answer is ok, very thanks.

2012/1/4 Wilhelmsen Tor Iver 

> // Indirection for PropertyModel object
> public class MySessionModel extends AbstractReadOnlyModel {
>
>public MySession getObject() {
>return (MySession) Session.get();
>}
> }
>
> - Tor Iver
>
> -----Original Message-
> From: Rahman USTA [mailto:rahman.usta...@gmail.com]
> Sent: 4. januar 2012 10:45
> To: users@wicket.apache.org
> Subject: It is not a good idea to reference the Session instance in models
> directly as it may lead to serialization problems.
>
> Hi, i have a MySession.
>
> form.add(new TextField("name",new PropertyModel(((MySession)getSession()),"
> user.name")));
>
> I have a User user; in MySession, then initialized in constructor.
>
> my Goal is to save name and surname user's own session. i did it above, but
> warning ide me so that ;
>
> *WARN  - AbstractPropertyModel  - It is not a good idea to reference
> the Session instance in models directly as it may lead to serialization
> problems. If you need to access a property of the session via the model use
> the page instance as the model object and 'session.attribute' as the path.*
>
> How can i handle this normally.
>
>
>
>
> --
> Rahman USTA
> Computer & Control Education Technologist
> 0-(531)-922-28-05
> www.kodcu.com
>
> ---------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Rahman USTA
Computer & Control Education Technologist
0-(531)-922-28-05
www.kodcu.com


Re: It is not a good idea to reference the Session instance in models directly as it may lead to serialization problems.

2012-01-04 Thread Rahman USTA
Sorry not second, first.

2012/1/4 Rahman USTA 

> Second answer is ok, very thanks.
>
>
> 2012/1/4 Wilhelmsen Tor Iver 
>
>> // Indirection for PropertyModel object
>> public class MySessionModel extends AbstractReadOnlyModel {
>>
>>public MySession getObject() {
>>return (MySession) Session.get();
>>}
>> }
>>
>> - Tor Iver
>>
>> -Original Message-
>> From: Rahman USTA [mailto:rahman.usta...@gmail.com]
>> Sent: 4. januar 2012 10:45
>> To: users@wicket.apache.org
>> Subject: It is not a good idea to reference the Session instance in
>> models directly as it may lead to serialization problems.
>>
>> Hi, i have a MySession.
>>
>> form.add(new TextField("name",new
>> PropertyModel(((MySession)getSession()),"
>> user.name")));
>>
>> I have a User user; in MySession, then initialized in constructor.
>>
>> my Goal is to save name and surname user's own session. i did it above,
>> but
>> warning ide me so that ;
>>
>> *WARN  - AbstractPropertyModel  - It is not a good idea to reference
>> the Session instance in models directly as it may lead to serialization
>> problems. If you need to access a property of the session via the model
>> use
>> the page instance as the model object and 'session.attribute' as the
>> path.*
>>
>> How can i handle this normally.
>>
>>
>>
>>
>> --
>> Rahman USTA
>> Computer & Control Education Technologist
>> 0-(531)-922-28-05
>> www.kodcu.com
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Rahman USTA
> Computer & Control Education Technologist
> 0-(531)-922-28-05
> www.kodcu.com
>
>


-- 
Rahman USTA
Computer & Control Education Technologist
0-(531)-922-28-05
www.kodcu.com


Re: Wicket on Google App Engine

2012-01-06 Thread Rahman USTA
gt;>>>>>> you just have to add the gae-initializer as a dependency to
> >>> >>>>>>>> your
> >>> >>>>>>>> project:
> >>> >>>>>>>>
> >>> >>>>>>>> 
> >>> >>>>>>>> org.wicketstuff
> >>> >>>>>>>> wicketstuff-gae-initializer
> >>> >>>>>>>> ${wicket.version}
> >>> >>>>>>>> 
> >>> >>>>>>>>
> >>> >>>>>>>> That's all.
> >>> >>>>>>>> Sven
> >>> >>>>>>>>
> >>> >>>>>>>>
> >>> >>>>>>>> On 01/04/2012 07:35 PM, Daniel Watrous wrote:
> >>> >>>>>>>>>
> >>> >>>>>>>>> Also, where do I put the wicket.properties file, and do I
> >>> >>>>>>>>> need
> >>> to
> >>> >>>>>>>>> update any xml files to indicate that there is a
> >>> wicket.properties
> >>> >>>>>>>>> file
> >>> >>>>>>>>>
> >>> >>>>>>>>> On Wed, Jan 4, 2012 at 11:30 AM, Daniel Watrous
> >>> >>>>>>>>> wrote:
> >>> >>>>>>>>>>
> >>> >>>>>>>>>> How do I create the gae-initializer.jar?
> >>> >>>>>>>>>>
> >>> >>>>>>>>>> I have run mvn compile and generated the class files. I
> >>> >>>>>>>>>> can zip those up, but I'm not sure if there should be a
> >>> >>>>>>>>>> META-INF folder and
> >>> what
> >>> >>>>>>>>>> it
> >>> >>>>>>>>>> should have.
> >>> >>>>>>>>>>
> >>> >>>>>>>>>> Daniel
> >>> >>>>>>>>>>
> >>> >>>>>>>>>> On Wed, Jan 4, 2012 at 12:21 AM, Martin
> >>> >>>>>>>>>> Grigorov
> >>> >>>>>>>>>>  wrote:
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>> Hi,
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>> gae-initializer project provides
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>>
> >>> https://github.com/wicketstuff/core/blob/master/jdk-1.6-parent/gae-i
> >>> nitializer-parent/gae-initializer/src/main/java/org/wicketstuff/gae/
> >>> GaeInitializer.java
> >>> >>>>>>>>>>> which is an implementation of
> >>> >>>>>>>>>>> org.apache.wicket.IInitializer
> >>> and
> >>> >>>>>>>>>>> declares it in
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>>
> >>> https://github.com/wicketstuff/core/blob/master/jdk-1.6-parent/gae-i
> >>> nitializer-parent/gae-initializer/src/main/resources/wicket.properti
> >>> es
> >>> .
> >>> >>>>>>>>>>> That means that when gae-initializer.jar is in the
> >>> >>>>>>>>>>> classpath Wicket will use it to initialize the
> >>> >>>>>>>>>>> Application instance.
> >>> >>>>>>>>>>> Check the source of GaeInitializer.jar to see what
> >>> >>>>>>>>>>> exactly it configures.
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>> On Wed, Jan 4, 2012 at 1:52 AM, Daniel
> >>> >>>>>>>>>>> Watrous
> >>> >>>>>>>>>>>  wrote:
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>> Hi,
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>> I've been working for a few days to get a wicket
> >>> >>>>>>>>>>>> application going for Google App Engine with mixed
> >>> >>>>>>>>>>>> results. I hope these questions aren't too noobie for
> >>> >>>>>>>>>>>> this list?
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>> There are a couple of really old articles which Google
> >>> brings up
> >>> >>>>>>>>>>>> first:
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> http://stronglytypedblog.blogspot.com/2009/04/wicket-on-google-app-e
> >>> ngine.html
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> http://www.danwalmsley.com/2009/04/08/apache-wicket-on-google-app-en
> >>> gine-for-java/
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>> I've also found this resource after digging through the
> >>> wicket
> >>> >>>>>>>>>>>> users
> >>> >>>>>>>>>>>> list, but I can't figure out how I'm supposed to use it:
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/gae-i
> >>> nitializer-parent
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>> I'm using eclipse with the GAE plugin.
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>> So far this is what I have accomplished.
> >>> >>>>>>>>>>>> 1) the first link above provides a download demo as an
> >>> eclipse
> >>> >>>>>>>>>>>> project. I can get this to run, but it's working with
> >>> >>>>>>>>>>>> old versions (wicket 1.3.5, appengine sdk 1.2.0). I
> >>> >>>>>>>>>>>> haven't successfully updated.
> >>> >>>>>>>>>>>> 2) I can create a new google app engine project in
> eclipse.
> >>> It
> >>> >>>>>>>>>>>> runs
> >>> >>>>>>>>>>>> fine and I can develop servlets.
> >>> >>>>>>>>>>>> 3) I can user the maven build script from the
> >>> >>>>>>>>>>>> quickstart to
> >>> get
> >>> >>>>>>>>>>>> a
> >>> >>>>>>>>>>>> functional wicket project.
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>> I'm really struggling trying to figure out how to use
> >>> >>>>>>>>>>>> the gae-initializer or a base GAE project from eclipse
> >>> >>>>>>>>>>>> and end up with a functional wicket application...
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>> I'm not sure what other information to include at this
> point.
> >>> >>>>>>>>>>>> Please
> >>> >>>>>>>>>>>> share any pointers or links to other tutorials that
> >>> >>>>>>>>>>>> might
> >>> help
> >>> >>>>>>>>>>>> me.
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>> Daniel
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>>>
> >>> 
> >>> -
> >>> >>>>>>>>>>>> To unsubscribe, e-mail:
> >>> >>>>>>>>>>>> users-unsubscr...@wicket.apache.org
> >>> >>>>>>>>>>>> For additional commands, e-mail:
> >>> users-h...@wicket.apache.org
> >>> >>>>>>>>>>>>
> >>> >>>>>>>>>>> --
> >>> >>>>>>>>>>> Martin Grigorov
> >>> >>>>>>>>>>> jWeekend
> >>> >>>>>>>>>>> Training, Consulting, Development http://jWeekend.com
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>>
> >>> -
> >>> >>>>>>>>>>> To unsubscribe, e-mail:
> users-unsubscr...@wicket.apache.org
> >>> >>>>>>>>>>> For additional commands, e-mail:
> users-h...@wicket.apache.org
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>
> >>> >>>>>>>>>
> >>> -
> >>> >>>>>>>>> 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
> >>> >>>>>
> >>> >>>>
> -
> >>> >>>> 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
> >>> >
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>
> >>>
> >>
> >>
> >> --
> >> Regards - Ernesto Reinaldo Barreiro
> >>
> >> jWeekend
> >> Training, Consulting, Development
> >> http://jWeekend.com <http://jweekend.com/>
> >>
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com <http://jweekend.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
>
>


-- 
Rahman USTA
Computer & Control Education Technologist
0-(531)-922-28-05
www.kodcu.com


Re: Wicket on Google App Engine

2012-01-06 Thread Rahman USTA
i handled them, but now server is giving me internal error,
http://chopapp.com/#8lc105ni

2012/1/6 Daniel Watrous 

> Rahman,
>
> From the error that you show in your link it appears that your
> application can't find the WicketFilter class.
>
> Are you sure that you copied the three wicket jar files (core, util,
> request) to your WEB-INF/lib folder?
>
> Daniel
>
> On Fri, Jan 6, 2012 at 7:28 AM, Rahman USTA 
> wrote:
> > i did Daniel's way, but when run the application,
> > http://chopapp.com/#1gyxqdm6
> >
> > 2012/1/6 Hielke Hoeve 
> >
> >> Hey Daniel,
> >>
> >> Glad to hear you got it working as well. I have some apps on google app
> >> engine  as well. Tried all the tutorials and 'useful' maven plugins but
> all
> >> just didn't do the trick for me.  I now use maven's resources plugin to
> >> copy the resources from the maven repository to the war/lib folder.
> Which
> >> allows me to update/add dependencies in the pom.xml, run maven and add
> the
> >> dependencies in eclipse manually.
> >>
> >> I have not found a maven plugin which just adds the google sdk as
> >> dependency for me so I don't have to mess around in eclipse everytime I
> run
> >> maven. Did you solve that?
> >>
> >> Hielke
> >>
> >> -Original Message-
> >> From: Daniel Watrous [mailto:daniel.watr...@gmail.com]
> >> Sent: donderdag 5 januari 2012 19:35
> >> To: users@wicket.apache.org
> >> Subject: Re: Wicket on Google App Engine
> >>
> >> Thanks for all your help. I've just posted the steps required to get
> >> current versions of wicket and gae to work together.
> >>
> >>
> >>
> http://software.danielwatrous.com/software-engineering/wordpress-plugin-licensing-wicket-on-google-app-engine
> >>
> >> Daniel
> >>
> >> On Thu, Jan 5, 2012 at 12:46 AM, Ernesto Reinaldo Barreiro <
> >> ernesto.reina...@jweekend.com> wrote:
> >> > I think the class to use is
> >> >
> >> >
> http://code.google.com/p/kickat26/source/browse/trunk/src/de/kickat26/
> >> > ui/wicket/GAEModificationWatcher.java
> >> >
> >> >
> >> >
> >> > On Thu, Jan 5, 2012 at 8:31 AM, Ernesto Reinaldo Barreiro <
> >> > ernesto.reina...@jweekend.com> wrote:
> >> >
> >> >> You could use a modified version of resource watcher that does not
> >> >> use threads and modify request cycle so that watcher is executed
> >> >> before each request cycle. I remember there was some blog somewhere
> >> >> explaining this technique... Maybe it was this...
> >> >>
> >> >>
> >> >>
> http://stronglytypedblog.blogspot.com/2009/07/wicket-spring-jdo-on-go
> >> >> ogle-app-engine.html
> >> >>
> >> >>
> >> >>
> >> >> On Wed, Jan 4, 2012 at 11:18 PM, Daniel Watrous <
> >> daniel.watr...@gmail.com>wrote:
> >> >>
> >> >>> I tried putting in this:
> >> >>> getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND);
> >> >>>
> >> >>> But the resource still doesn't update without restarting the google
> >> >>> app engine environment. I just tried it by running Start and that no
> >> >>> longer updates automatically either.
> >> >>>
> >> >>> In the process of trying to make it work with GAE, I changed the
> >> >>> pom.xml to have these lines in the build section
> >> >>>src/main/webapp/WEB-INF
> >> >>>
> >> >>>  src/main/webapp/WEB-INF/classes
> >> >>>
> >> >>> That means files are no longer placed in the target directory, but
> >> >>> in the WEB-INF folder. Could this affect it? Have I missed another
> >> >>> setting somewhere that relates to changing where the compiled
> >> >>> classes are placed?
> >> >>>
> >> >>> Daniel
> >> >>>
> >> >>> On Wed, Jan 4, 2012 at 3:01 PM, Sven Meier  wrote:
> >> >>> > Read here:
> >> >>> >
> >> >>> >https://cwiki.apache.org/WICKET/faqs.html#FAQs-Deployment
> >> >>> >
> >> >>> > The relevant setting is:
>

Re: Wicket on Google App Engine

2012-01-06 Thread Rahman USTA
i did it in pom.xml, why must i add jars to lib manually? cant i do it with
maven?

2012/1/6 Daniel Watrous 

> This time I think you didn't include the gae-initializer jar in your
> WEB-INF/lib directory.
>
> On Fri, Jan 6, 2012 at 8:50 AM, Rahman USTA 
> wrote:
> > i handled them, but now server is giving me internal error,
> > http://chopapp.com/#8lc105ni
> >
> > 2012/1/6 Daniel Watrous 
> >
> >> Rahman,
> >>
> >> From the error that you show in your link it appears that your
> >> application can't find the WicketFilter class.
> >>
> >> Are you sure that you copied the three wicket jar files (core, util,
> >> request) to your WEB-INF/lib folder?
> >>
> >> Daniel
> >>
> >> On Fri, Jan 6, 2012 at 7:28 AM, Rahman USTA 
> >> wrote:
> >> > i did Daniel's way, but when run the application,
> >> > http://chopapp.com/#1gyxqdm6
> >> >
> >> > 2012/1/6 Hielke Hoeve 
> >> >
> >> >> Hey Daniel,
> >> >>
> >> >> Glad to hear you got it working as well. I have some apps on google
> app
> >> >> engine  as well. Tried all the tutorials and 'useful' maven plugins
> but
> >> all
> >> >> just didn't do the trick for me.  I now use maven's resources plugin
> to
> >> >> copy the resources from the maven repository to the war/lib folder.
> >> Which
> >> >> allows me to update/add dependencies in the pom.xml, run maven and
> add
> >> the
> >> >> dependencies in eclipse manually.
> >> >>
> >> >> I have not found a maven plugin which just adds the google sdk as
> >> >> dependency for me so I don't have to mess around in eclipse
> everytime I
> >> run
> >> >> maven. Did you solve that?
> >> >>
> >> >> Hielke
> >> >>
> >> >> -Original Message-
> >> >> From: Daniel Watrous [mailto:daniel.watr...@gmail.com]
> >> >> Sent: donderdag 5 januari 2012 19:35
> >> >> To: users@wicket.apache.org
> >> >> Subject: Re: Wicket on Google App Engine
> >> >>
> >> >> Thanks for all your help. I've just posted the steps required to get
> >> >> current versions of wicket and gae to work together.
> >> >>
> >> >>
> >> >>
> >>
> http://software.danielwatrous.com/software-engineering/wordpress-plugin-licensing-wicket-on-google-app-engine
> >> >>
> >> >> Daniel
> >> >>
> >> >> On Thu, Jan 5, 2012 at 12:46 AM, Ernesto Reinaldo Barreiro <
> >> >> ernesto.reina...@jweekend.com> wrote:
> >> >> > I think the class to use is
> >> >> >
> >> >> >
> >> http://code.google.com/p/kickat26/source/browse/trunk/src/de/kickat26/
> >> >> > ui/wicket/GAEModificationWatcher.java
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Thu, Jan 5, 2012 at 8:31 AM, Ernesto Reinaldo Barreiro <
> >> >> > ernesto.reina...@jweekend.com> wrote:
> >> >> >
> >> >> >> You could use a modified version of resource watcher that does not
> >> >> >> use threads and modify request cycle so that watcher is executed
> >> >> >> before each request cycle. I remember there was some blog
> somewhere
> >> >> >> explaining this technique... Maybe it was this...
> >> >> >>
> >> >> >>
> >> >> >>
> >> http://stronglytypedblog.blogspot.com/2009/07/wicket-spring-jdo-on-go
> >> >> >> ogle-app-engine.html
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> On Wed, Jan 4, 2012 at 11:18 PM, Daniel Watrous <
> >> >> daniel.watr...@gmail.com>wrote:
> >> >> >>
> >> >> >>> I tried putting in this:
> >> >> >>>
> getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND);
> >> >> >>>
> >> >> >>> But the resource still doesn't update without restarting the
> google
> >> >> >>> app engine environment. I just tried it by running Start and
> that no
> >> >> >>> longer updates automatically either

Re: Wicket on Google App Engine

2012-01-06 Thread Rahman USTA
Now, http://chopapp.com/#7pmdaqmd

2012/1/6 Rahman USTA 

> i did it in pom.xml, why must i add jars to lib manually? cant i do it
> with maven?
>
>
> 2012/1/6 Daniel Watrous 
>
>> This time I think you didn't include the gae-initializer jar in your
>> WEB-INF/lib directory.
>>
>> On Fri, Jan 6, 2012 at 8:50 AM, Rahman USTA 
>> wrote:
>> > i handled them, but now server is giving me internal error,
>> > http://chopapp.com/#8lc105ni
>> >
>> > 2012/1/6 Daniel Watrous 
>> >
>> >> Rahman,
>> >>
>> >> From the error that you show in your link it appears that your
>> >> application can't find the WicketFilter class.
>> >>
>> >> Are you sure that you copied the three wicket jar files (core, util,
>> >> request) to your WEB-INF/lib folder?
>> >>
>> >> Daniel
>> >>
>> >> On Fri, Jan 6, 2012 at 7:28 AM, Rahman USTA 
>> >> wrote:
>> >> > i did Daniel's way, but when run the application,
>> >> > http://chopapp.com/#1gyxqdm6
>> >> >
>> >> > 2012/1/6 Hielke Hoeve 
>> >> >
>> >> >> Hey Daniel,
>> >> >>
>> >> >> Glad to hear you got it working as well. I have some apps on google
>> app
>> >> >> engine  as well. Tried all the tutorials and 'useful' maven plugins
>> but
>> >> all
>> >> >> just didn't do the trick for me.  I now use maven's resources
>> plugin to
>> >> >> copy the resources from the maven repository to the war/lib folder.
>> >> Which
>> >> >> allows me to update/add dependencies in the pom.xml, run maven and
>> add
>> >> the
>> >> >> dependencies in eclipse manually.
>> >> >>
>> >> >> I have not found a maven plugin which just adds the google sdk as
>> >> >> dependency for me so I don't have to mess around in eclipse
>> everytime I
>> >> run
>> >> >> maven. Did you solve that?
>> >> >>
>> >> >> Hielke
>> >> >>
>> >> >> -Original Message-
>> >> >> From: Daniel Watrous [mailto:daniel.watr...@gmail.com]
>> >> >> Sent: donderdag 5 januari 2012 19:35
>> >> >> To: users@wicket.apache.org
>> >> >> Subject: Re: Wicket on Google App Engine
>> >> >>
>> >> >> Thanks for all your help. I've just posted the steps required to get
>> >> >> current versions of wicket and gae to work together.
>> >> >>
>> >> >>
>> >> >>
>> >>
>> http://software.danielwatrous.com/software-engineering/wordpress-plugin-licensing-wicket-on-google-app-engine
>> >> >>
>> >> >> Daniel
>> >> >>
>> >> >> On Thu, Jan 5, 2012 at 12:46 AM, Ernesto Reinaldo Barreiro <
>> >> >> ernesto.reina...@jweekend.com> wrote:
>> >> >> > I think the class to use is
>> >> >> >
>> >> >> >
>> >> http://code.google.com/p/kickat26/source/browse/trunk/src/de/kickat26/
>> >> >> > ui/wicket/GAEModificationWatcher.java
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Thu, Jan 5, 2012 at 8:31 AM, Ernesto Reinaldo Barreiro <
>> >> >> > ernesto.reina...@jweekend.com> wrote:
>> >> >> >
>> >> >> >> You could use a modified version of resource watcher that does
>> not
>> >> >> >> use threads and modify request cycle so that watcher is executed
>> >> >> >> before each request cycle. I remember there was some blog
>> somewhere
>> >> >> >> explaining this technique... Maybe it was this...
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> http://stronglytypedblog.blogspot.com/2009/07/wicket-spring-jdo-on-go
>> >> >> >> ogle-app-engine.html
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> On Wed, Jan 4, 2012 at 11:18 PM, Daniel Watrous <
>> >> >> daniel.watr...@gmail.com>wrote:
>> >> >> >>
>> >>

Re: Wicket on Google App Engine

2012-01-06 Thread Rahman USTA
Thanks a lot Daniel, it's ok now.

2012/1/6 Rahman USTA 

> Now, http://chopapp.com/#7pmdaqmd
>
>
> 2012/1/6 Rahman USTA 
>
>> i did it in pom.xml, why must i add jars to lib manually? cant i do it
>> with maven?
>>
>>
>> 2012/1/6 Daniel Watrous 
>>
>>> This time I think you didn't include the gae-initializer jar in your
>>> WEB-INF/lib directory.
>>>
>>> On Fri, Jan 6, 2012 at 8:50 AM, Rahman USTA 
>>> wrote:
>>> > i handled them, but now server is giving me internal error,
>>> > http://chopapp.com/#8lc105ni
>>> >
>>> > 2012/1/6 Daniel Watrous 
>>> >
>>> >> Rahman,
>>> >>
>>> >> From the error that you show in your link it appears that your
>>> >> application can't find the WicketFilter class.
>>> >>
>>> >> Are you sure that you copied the three wicket jar files (core, util,
>>> >> request) to your WEB-INF/lib folder?
>>> >>
>>> >> Daniel
>>> >>
>>> >> On Fri, Jan 6, 2012 at 7:28 AM, Rahman USTA >> >
>>> >> wrote:
>>> >> > i did Daniel's way, but when run the application,
>>> >> > http://chopapp.com/#1gyxqdm6
>>> >> >
>>> >> > 2012/1/6 Hielke Hoeve 
>>> >> >
>>> >> >> Hey Daniel,
>>> >> >>
>>> >> >> Glad to hear you got it working as well. I have some apps on
>>> google app
>>> >> >> engine  as well. Tried all the tutorials and 'useful' maven
>>> plugins but
>>> >> all
>>> >> >> just didn't do the trick for me.  I now use maven's resources
>>> plugin to
>>> >> >> copy the resources from the maven repository to the war/lib folder.
>>> >> Which
>>> >> >> allows me to update/add dependencies in the pom.xml, run maven and
>>> add
>>> >> the
>>> >> >> dependencies in eclipse manually.
>>> >> >>
>>> >> >> I have not found a maven plugin which just adds the google sdk as
>>> >> >> dependency for me so I don't have to mess around in eclipse
>>> everytime I
>>> >> run
>>> >> >> maven. Did you solve that?
>>> >> >>
>>> >> >> Hielke
>>> >> >>
>>> >> >> -Original Message-
>>> >> >> From: Daniel Watrous [mailto:daniel.watr...@gmail.com]
>>> >> >> Sent: donderdag 5 januari 2012 19:35
>>> >> >> To: users@wicket.apache.org
>>> >> >> Subject: Re: Wicket on Google App Engine
>>> >> >>
>>> >> >> Thanks for all your help. I've just posted the steps required to
>>> get
>>> >> >> current versions of wicket and gae to work together.
>>> >> >>
>>> >> >>
>>> >> >>
>>> >>
>>> http://software.danielwatrous.com/software-engineering/wordpress-plugin-licensing-wicket-on-google-app-engine
>>> >> >>
>>> >> >> Daniel
>>> >> >>
>>> >> >> On Thu, Jan 5, 2012 at 12:46 AM, Ernesto Reinaldo Barreiro <
>>> >> >> ernesto.reina...@jweekend.com> wrote:
>>> >> >> > I think the class to use is
>>> >> >> >
>>> >> >> >
>>> >>
>>> http://code.google.com/p/kickat26/source/browse/trunk/src/de/kickat26/
>>> >> >> > ui/wicket/GAEModificationWatcher.java
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > On Thu, Jan 5, 2012 at 8:31 AM, Ernesto Reinaldo Barreiro <
>>> >> >> > ernesto.reina...@jweekend.com> wrote:
>>> >> >> >
>>> >> >> >> You could use a modified version of resource watcher that does
>>> not
>>> >> >> >> use threads and modify request cycle so that watcher is executed
>>> >> >> >> before each request cycle. I remember there was some blog
>>> somewhere
>>> >> >> >> explaining this technique... Maybe it was this...
>>> >> >> >>
>>> >> &g

Re: Wicket on Google App Engine

2012-01-07 Thread Rahman USTA
Hi Daniel, if you run "mvn war:inplace" command in projects' directory, you
can copy pom.xml dependencies to web-inf/lib automaticly.

2012/1/6 Rahman USTA 

> Thanks a lot Daniel, it's ok now.
>
>
> 2012/1/6 Rahman USTA 
>
>> Now, http://chopapp.com/#7pmdaqmd
>>
>>
>> 2012/1/6 Rahman USTA 
>>
>>> i did it in pom.xml, why must i add jars to lib manually? cant i do it
>>> with maven?
>>>
>>>
>>> 2012/1/6 Daniel Watrous 
>>>
>>>> This time I think you didn't include the gae-initializer jar in your
>>>> WEB-INF/lib directory.
>>>>
>>>> On Fri, Jan 6, 2012 at 8:50 AM, Rahman USTA 
>>>> wrote:
>>>> > i handled them, but now server is giving me internal error,
>>>> > http://chopapp.com/#8lc105ni
>>>> >
>>>> > 2012/1/6 Daniel Watrous 
>>>> >
>>>> >> Rahman,
>>>> >>
>>>> >> From the error that you show in your link it appears that your
>>>> >> application can't find the WicketFilter class.
>>>> >>
>>>> >> Are you sure that you copied the three wicket jar files (core, util,
>>>> >> request) to your WEB-INF/lib folder?
>>>> >>
>>>> >> Daniel
>>>> >>
>>>> >> On Fri, Jan 6, 2012 at 7:28 AM, Rahman USTA <
>>>> rahman.usta...@gmail.com>
>>>> >> wrote:
>>>> >> > i did Daniel's way, but when run the application,
>>>> >> > http://chopapp.com/#1gyxqdm6
>>>> >> >
>>>> >> > 2012/1/6 Hielke Hoeve 
>>>> >> >
>>>> >> >> Hey Daniel,
>>>> >> >>
>>>> >> >> Glad to hear you got it working as well. I have some apps on
>>>> google app
>>>> >> >> engine  as well. Tried all the tutorials and 'useful' maven
>>>> plugins but
>>>> >> all
>>>> >> >> just didn't do the trick for me.  I now use maven's resources
>>>> plugin to
>>>> >> >> copy the resources from the maven repository to the war/lib
>>>> folder.
>>>> >> Which
>>>> >> >> allows me to update/add dependencies in the pom.xml, run maven
>>>> and add
>>>> >> the
>>>> >> >> dependencies in eclipse manually.
>>>> >> >>
>>>> >> >> I have not found a maven plugin which just adds the google sdk as
>>>> >> >> dependency for me so I don't have to mess around in eclipse
>>>> everytime I
>>>> >> run
>>>> >> >> maven. Did you solve that?
>>>> >> >>
>>>> >> >> Hielke
>>>> >> >>
>>>> >> >> -Original Message-
>>>> >> >> From: Daniel Watrous [mailto:daniel.watr...@gmail.com]
>>>> >> >> Sent: donderdag 5 januari 2012 19:35
>>>> >> >> To: users@wicket.apache.org
>>>> >> >> Subject: Re: Wicket on Google App Engine
>>>> >> >>
>>>> >> >> Thanks for all your help. I've just posted the steps required to
>>>> get
>>>> >> >> current versions of wicket and gae to work together.
>>>> >> >>
>>>> >> >>
>>>> >> >>
>>>> >>
>>>> http://software.danielwatrous.com/software-engineering/wordpress-plugin-licensing-wicket-on-google-app-engine
>>>> >> >>
>>>> >> >> Daniel
>>>> >> >>
>>>> >> >> On Thu, Jan 5, 2012 at 12:46 AM, Ernesto Reinaldo Barreiro <
>>>> >> >> ernesto.reina...@jweekend.com> wrote:
>>>> >> >> > I think the class to use is
>>>> >> >> >
>>>> >> >> >
>>>> >>
>>>> http://code.google.com/p/kickat26/source/browse/trunk/src/de/kickat26/
>>>> >> >> > ui/wicket/GAEModificationWatcher.java
>>>> >> >> >
>>>> >> >> >
>>>> >> >> >
>>>> >> >> > On Thu, Jan 5, 2012 at 8:31 AM, Ernesto Reinaldo Barr

response.renderJavaScriptReference immediately after tag

2012-01-16 Thread Rahman USTA
Hi, im using on a page that contains ;

@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);


response.renderCSSReference("css/ui-lightness/jquery-ui-1.8.17.custom.css");
response.renderJavaScriptReference("js/jquery-1.7.1.min.js");

response.renderJavaScriptReference("js/jquery-ui-1.8.17.custom.min.js");
}

The html file's  block has some of javascript function, above
function adds references to html after this javascript function, i want to
be added references immediately after  tag.

-- 
Rahman USTA
Computer & Control Education Technologist
0-(531)-922-28-05
www.kodcu.com


Re: Wicket as a RESTful Client

2012-01-26 Thread Rahman USTA
Can't i do this bu using ;

public class RestfulPage extends WebPage{
@Override
protected void configureResponse(WebResponse response) {
   super.configureResponse(response);//To change body of overridden
methods use File | Settings | File Templates.
   response.sendRedirect("
http://localhost:8080/KodcuComRESTful/kodcuRS/yazilar";);
   response.addHeader("accept","application/json");
}
}

Maybe it is not probable make it in Wicket's own library. I think wicket
can do this. For example i couldnt find change the medhod state to "POST"
or  anything.

2012/1/26 Martin Grigorov 

> This is a strange architecture but ...
> You can use Apache HttpClient, or URL("http://...";).openConnection()
> or Ning's AsyncHttpClient to request the REST service.
> With these you can get/update/delete the resources (XML, JSON, ...),
> after that you have to decide how to show it.
>
> On Thu, Jan 26, 2012 at 1:29 PM, Rahman USTA 
> wrote:
> > Hi, i' ve built a RESTful application with JAX-RS, then i normally access
> > the web service via CURL in Command Line.
> >
> > Example codes are such as ;
> > ---
> >
> > @rem XML representation of all the books
> > @rem curl -X GET -H "Accept: application/xml"
> > http://localhost:8080/Rest/rs/items/books
> >
> > @rem JSon representation of all the books
> > @rem curl -X GET -H "Accept: application/json"
> > http://localhost:8080/Rest/rs/items/books
> >
> > @rem Create a book
> > @rem curl -X POST --data-binary "{ \"title\":\"H3G3\",
> \"price\":\"24.0\",
> > \"description\":\"3rd Scifi IT book\", \"illustrations\":\"false\",
> > \"isbn\":\"134-234\", \"nbOfPage\":\"241\" }" -H "Content-Type:
> > application/json" -H "Accept: application/json"
> > http://localhost:8080/Rest/rs/items/book
> > 
> >
> > How can i request to web services like above in Wicket with its own
> library.
> >
> >
> >
> >
> > --
> > Rahman USTA
> > 0-(531)-922-28-05
> > www.kodcu.com
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Rahman USTA
0-(531)-922-28-05
www.kodcu.com