Re: Foundation integrated in wicket

2014-08-01 Thread Paul Borș
Do you have it on maven central?
Can I get the GAV coordinates?

Better yet, git hub?

Have a great day,
Paul Bors

 On Jul 30, 2014, at 3:47 AM, vp143 vishal.po...@cipriati.co.uk wrote:
 
 I have implemented Foundation from Zurb with Wicket, currently using version
 3 though.
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Foundation-integrated-in-wicket-tp4666792p4666796.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: Dynamic Form Best Architecture

2014-06-03 Thread Paul Borș
So you want to build a dynamic UI based on same definitions you get from a web 
service?

I've taken a similar approach only I used XML to hold on to the meta data for 
the UI and Java to process the business logic.

If I were to do it all over I would use Wicket Forms. Why re-invent the wheel? 
:)
https://github.com/thombergs/wicked-forms

Have a great day,
Paul Bors

 On Jun 1, 2014, at 4:44 PM, Martin Grigorov mgrigo...@apache.org wrote:
 
 Hi,
 
 Can you give some examples with pseudo data ? It is a bit hard to follow
 what is the requirement.
 If I follow correctly you have a radio group. Depending on the selected
 radio you have to make a call to a web service and render some form
 controls dynamically for the web service response, right ?
 
 You can have just one Panel for the dynamic part of the form. Start with an
 EmptyPanel and selecting a radio will replace it with another one. To
 create the dynamic form controls you will need a set (of Fragment or Panel)
 of all possible controls and just add them to a repeater.
 
 Martin Grigorov
 Wicket Training and Consulting
 
 
 On Fri, May 30, 2014 at 11:18 AM, sim999 simon.rie...@gmail.com wrote:
 
 Hello,
 
 I'm a new user of Wicket and I would like to have your opinion.
 
 Here is what I'm trying to do :
 
 Step 1 : My application calls a web service to retrieve some data.
 
 Step 2 :
 Based on these data the application must build a big web form, this form
 ask
 the user many questions
 (15-20 for instance, most of the time yes/no questions (without submit
 button), sometimes new inputs may appear etc).
 Each time a response is given a new question appears (conditions of
 appearance can be the previous response and / or data retrieved by the web
 service).
 At the beginning all the questions are invisible.
 
 I have multiple options to architecture this :
 
 - Initialize all the panels for each question and make them invisible at
 the beginning. Use Ajax on each Radio Button (yes / no), checkbox etc and
 make them appear.
 The problem as see with this solution is that it forces me to add all the
 panels to the form and the logic of appearance is fragmented in each
 panel
 which handle the question.
 The other problem is that we need the server (Ajax for each response) even
 though it isn't needed once we retrieved the data from the web service.
 The last problem I see is that how do I manage to hide all the children of
 a
 panel if the user decide to go back and change his response to a previous
 question.
 
 - Same as previous but I add dynamically the panel / question for each
 response. However once again
 the logic of appearance is fragmented in each question and it is
 difficult to maintain.
 
 - Same as previous but all in JavaScript. I will need to convert all the
 data from the web service to JavaScript variables not really the wicket
 Way...
 
 - Maybe I could use Nested Forms but I lack the required distance to be a
 good judge. I don't really know if is really the best response to my
 problem.
 
 - Finally What about the form Component panel ?
 
 Note : There are in fact many big forms depending on the user profile.
 
 If you could give me your take on this I will be really grateful.
 
 
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Dynamic-Form-Best-Architecture-tp4666065.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


Re: ComponentFeedbackPanel near radio group not working

2014-06-03 Thread Paul Borș
Do you use any custom feedback filters?

Have a great day,
Paul Bors

 On May 31, 2014, at 9:29 AM, Entropy blmulholl...@gmail.com wrote:
 
 On the group.  It's the required rule.  You can see group is set to required. 
 And group is bound to the component feedback panel.  
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/ComponentFeedbackPanel-near-radio-group-not-working-tp4666077p4666079.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: Page rendering from quartz job

2014-05-19 Thread Paul Borș
I'm not sure you want to have you scheduled task/alerts depend on Wicket.
They should be stand alone services in In their own processes IMOP.

Have a great day,
Paul Bors

 On May 19, 2014, at 7:42 AM, Martin Grigorov mgrigo...@apache.org wrote:
 
 See
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/string/ComponentRenderer.java#L46for
 inspiration.
 
 Martin Grigorov
 Wicket Training and Consulting
 
 
 On Mon, May 19, 2014 at 2:30 PM, Sandor Feher sfe...@bluesystem.hu wrote:
 
 Ok. Let's say I get the reference. How can I render the page then ?
 Where should I put it ?
 
 
 
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665933.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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



Re: Page rendering from quartz job

2014-05-18 Thread Paul Borș
You want wicket's page renderer to render some HTML for your email content when 
you have it run inside a quartz thread?

Why can't you just simply use a different template engine like Apache Velocity?

Have a great day,
Paul Bors

 On May 15, 2014, at 3:27 PM, Sandor Feher sfe...@bluesystem.hu wrote:
 
 Hi,
 
 I fired up some quartz jobs for sending notification emails at given time.
 The job controller class is launched from my Application wget it get
 initialized.
 Almost everything works except of rendering mail's html body.
 I would like to do it with wicket's pagerenderer but it throws the following
 error:
 
 org.apache.wicket.WicketRuntimeException: There is no application attached
 to current thread DefaultQuartzScheduler_Worker-5
 
 I know it has not happen by chance but my class knows nothing about page
 rendering.
 The question is how to achieve some elegant way ? 
 I can choose different way but if possible I do it with wicket's page
 renderer.
 So please advice!
 
 Regards., Sandor
 
 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: problem with AbstractEntityModel from Igor Vaynberg

2014-05-18 Thread Paul Borș
Are you not using a LoadableDetacheble model?
And are you familiar with Hibernate's laizy loading?

Have a great day,
Paul Bors

 On May 18, 2014, at 6:08 AM, Piratenvisier hansheinrichbr...@yahoo.de wrote:
 
 Am 17.05.2014 23:08, schrieb mscoon:
 I don't understand what these lines are doing. Are you reloading whatever
 is already stored in your modelObject.kunde and setting it again to your
 model object? Why?
 all ONETOMANY relationships which are set before I open the form
 cause problem with hibernate when I save the Model after I close the Form.
 When I set them once more as described below everything is OK.
 all ONETOMANY relationships which are set by the Form by DropDownChoices 
 don't cause any problem.
 
 
 
 On Thu, May 8, 2014 at 7:50 AM, Piratenvisier 
 hansheinrichbr...@yahoo.dewrote:
 
 If I include the folowing lines :
 
 if(NachweiseForm.this.getModelObject().getKunde()!=null) {
 Kunde kunde = kundeManager.get(NachweiseForm.this.
 getModelObject().getKunde().getId());
 NachweiseForm.this.getModelObject().setKunde(kunde);
 kunde.addNachweis(NachweiseForm.this.getModelObject());
 System.err.println(Kunde);
 }
 
 before the save
 
  everything is fine
 
 But I hoped to avoid such lines by AbstractEntityModel.
 
 My idea was to implant Kunde through the form.
 
 But how could you do it only  by a Label.
 
 Am 05.05.2014 20:40, schrieb mscoon:
 
 ​Actually what I said below is wrong because this line is after the line
 
 that throws the exception. But my explanation still holds. Something
 before
 the line that is throwing the exception is causing an object with a
 reference to a new ​Nachweise
 to be saved while the Nachweise is still unsaved. You need to search at
 what is happening before the line with the exception, maybe even before
 the
 page is created.
 
 
 
  Now, a wild guess (I may well be wrong) is that the following line:
 nachweiseform.getModelObject().getKunde().addNachweis(nachwe
 iseform.getModelObject());
 
 may be causing the problem if hibernate tries to save kunde with
 nachweiseform.getModelObject()
 which is a new object with a null id.
 
 You  may try to move this line to saveNachweise().
 
 
 On Mon, May 5, 2014 at 2:54 PM, Yahoo hansheinrichbr...@yahoo.de
 wrote:
 
  Am 05.05.2014 11:05, schrieb mscoon:
   In a previous message you sent the following snippets:
 
 //@XmlTransient
 @ManyToOne(cascade = CascadeType.MERGE,fetch=FetchType.LAZY)
 @JoinColumn(name=NachKundNr,insertable=false, updatable=false)
   public Kunde getKunde(){
  return this.kunde;
   }
 
 recursive Part for Kunde
 
 
 @XmlTransient
 @OneToMany(cascade={CascadeType.MERGE},fetch=FetchType.LAZY)
 @JoinColumn(name=NachKundNr,insertable=false, updatable=false )
 
  when I remove this I get the error :
 org.hibernate.TransientObjectException: object references an unsaved
 transient instance - save the transient instance before flushing:
 braunimmobilien.model.Nachweise
   at org.hibernate.engine.internal.ForeignKeys.
 getEntityIdentifierIfNotUnsaved(ForeignKeys.java:249)
   at org.hibernate.type.EntityType.getIdentifier(EntityType.java:
 459)
   at org.hibernate.type.ManyToOneType.nullSafeSet(
 ManyToOneType.java:132)
   at org.hibernate.persister.collection.
 AbstractCollectionPersister.
 writeElement(AbstractCollectionPersister.java:867)
   at org.hibernate.persister.collection.
 AbstractCollectionPersister.
 insertRows(AbstractCollectionPersister.java:1475)
   at org.hibernate.action.internal.CollectionUpdateAction.execute(
 CollectionUpdateAction.java:86)
   at org.hibernate.engine.spi.ActionQueue.execute(
 ActionQueue.java:362)
   at org.hibernate.engine.spi.ActionQueue.executeActions(
 ActionQueue.java:354)
   at org.hibernate.engine.spi.ActionQueue.executeActions(
 ActionQueue.java:278)
   at org.hibernate.event.internal.AbstractFlushingEventListener.
 performExecutions(AbstractFlushingEventListener.java:326)
   at org.hibernate.event.internal.DefaultFlushEventListener.
 onFlush(
 DefaultFlushEventListener.java:52)
   at org.hibernate.internal.SessionImpl.flush(SessionImpl.
 java:1213)
   at org.hibernate.internal.SessionImpl.managedFlush(
 SessionImpl.java:402)
   at org.hibernate.engine.transaction.internal.jdbc.
 JdbcTransaction.
 beforeTransactionCommit(JdbcTransaction.java:101)
   at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.
 commit(AbstractTransactionImpl.java:175)
   at org.springframework.orm.hibernate4.
 HibernateTransactionManager.
 doCommit(HibernateTransactionManager.java:554)
   at org.springframework.transaction.support.
 AbstractPlatformTransactionManager.processCommit(
 AbstractPlatformTransactionManager.java:755)
   at org.springframework.transaction.support.
 AbstractPlatformTransactionManager.commit(
 AbstractPlatformTransactionMan
 ager.java:724)
   at org.springframework.transaction.interceptor.
 

Re: Wicket in Action outage: back online, better than ever!

2014-04-02 Thread Paul Borș
Yes, it would have been cruel ;)

Thanks for the insight.

Have a great day,
Paul Bors

 On Apr 2, 2014, at 2:43 PM, Martijn Dashorst martijn.dasho...@gmail.com 
 wrote:
 
 Also I was contemplating a 1 april joke about Wicket in Action 2nd edition,
 but thought that would be too cruel...
 
 Martijn
 
 
 On Wed, Apr 2, 2014 at 8:42 PM, Martijn Dashorst martijn.dasho...@gmail.com
 wrote:
 
 There may some day be an updated Wicket in Action book, but it probably
 won't be written by me.
 
 As far as I know there is no such work currently under way, nor is there
 any planned for the near future.
 
 I am planning however to update the source code from the book (the project
 that currently resides at google code) and incorporate that into the github
 project branches and keep it up to date with newer versions (i.e. compiling
 and working).
 
 Martijn
 
 
 On Wed, Apr 2, 2014 at 3:39 PM, Paul Bors p...@bors.ws wrote:
 
 Hey Martijn,
 
 Is there going to be an updated release of Wicket in Action based on
 Wicket 6?
 Or has that effort been replaced by the Wicket Guide?
 
 ~ Thank you,
   Paul Bors
 
 On Mar 30, 2014, at 5:45 PM, Martijn Dashorst martijn.dasho...@gmail.com
 wrote:
 
 I just wanted to let everybody know that the Wicket in Action blog is
 online again, and should now perform better than ever.
 
 Thank you all for your patience if you wanted to get content from the
 website but found it unavailable.
 
 Here's the rundown of what happened and how I spent my weekend:
 
 http://wicketinaction.com/2014/03/wicket-in-action-makeover/
 
 Martijn
 
 PS. if you want to look at the source:
 https://github.com/dashorst/wicketinaction.com
 
 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 
 
 
 -- 
 Become a Wicket expert, learn from the best: http://wicketinaction.com

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



Re: Error in Modal opening two diffrent instances of Wicket applicaiton.

2014-02-15 Thread Paul Borș
I think you need to use multiple wicket sessions.

Have a great day,
Paul Bors

 On Feb 13, 2014, at 10:45 AM, eaglei22 jchojnack...@gmail.com wrote:
 
 Okay, so I was able to try some more scenerios, and it looks like if I have
 one instance of the application open in one tab, and open a modal window and
 now do anything.. Then open another instance of the application but not even
 click on anything, and go back to the first intance and just hit cancel on
 the Modal which calls a window.close(target)  then I get a page expired
 error.. 
 
 So, How do I keep the modal window from being affected by another instance
 of an application being opened?
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Error-in-Modal-opening-two-diffrent-instances-of-Wicket-applicaiton-tp4664418p4664442.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: Web Sockets proxying

2014-01-27 Thread Paul Borș
Again, this is not related to Wicket, but... Try turning off the webapp and 
preserve only the websocket one. Do you still get your seg fault?

Have a great day,
Paul Bors

 On Jan 27, 2014, at 9:24 PM, Maxim Solodovnik solomax...@gmail.com wrote:
 
 Thanks for the quick answer Paul,
 
 Segmentation fault is definitely caused by me, but I was not sure if it is
 compilation issue or bacuse of my configuration.
 
 I currently have Apache config like this:
 
#WEBSOCKETS
   ProxyPass /openmeetings ws://localhost:5080/openmeetings retry=0
   ProxyPassReverse /openmeetings ws://localhost:5080/openmeetings
 retry=0
 
ProxyPass /openmeetings http://localhost:5080/openmeetings
ProxyPassReverse /openmeetings http://localhost:5080/openmeetings
 
 As you can see WebSockets mapping is the same as main app mapping (only
 protocol part differs)
 I'm afraid segmentation fault might be caused by normal HTML requests
 coming instead of WebSocket requests 
 
 This is why I'm asking is there any option to make WebSocket URL differ
 than main app URL?
 
 
 On Tue, Jan 28, 2014 at 4:27 AM, Paul Bors p...@bors.ws wrote:
 
 I don't think segmentation faults fall (no pun intended) under Wicket :)
 
 You might want to look for help under the Unbuntu's user mailing lists
 and/or search on Google.
 Here's a starting point for you:
 
 http://www.amoss.me.uk/2013/06/apache-2-2-websocket-proxying-ubuntu-mod_proxy_wstunnel/
 
 
 On Mon, Jan 27, 2014 at 12:42 PM, Maxim Solodovnik solomax...@gmail.com
 wrote:
 
 Hello All,
 Is there any way to perform proxying of web sockets?
 
 I have tried mod_proxy_wstunnel but with no luck due to
 1) I might compile something to very stable (Segmentation fault under
 Ubuntu 13.10 HTTP 2.4.6)
 2) both main app and ws URL are looks the same:
 http://localhost/openmeetings and ws://localhost/openmeetings.
 
 Should I create additional page/mapping for performing ws tunneling?
 Maybe anyone can share example config/how to?
 
 Thanks in advance :)
 
 --
 WBR
 Maxim aka solomax
 
 
 
 -- 
 WBR
 Maxim aka solomax

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



Re: 404 redirect before application is loaded by server

2014-01-05 Thread Paul Borș
Can't you simply invalidate the user session and have Wicket redirect to / when 
that happens?

Another idea, have an Ajax timer refresh those resources so they don't time out 
:)

Have a great day,
Paul Bors

 On Jan 5, 2014, at 7:55 AM, Steve shadders@gmail.com wrote:
 
 I've solved this problem before but can't remember how I did it.  The
 wicket-el example app is running on google app engine which unloads the
 instance if it's not accessed for a period of time.  This is ok if the
 next user hits the / url first but if they try to hit any mounted urls
 e.g. /ajax they will get a 404 not found error as the app isn't loaded
 in the jetty container.  My url pattern is:
 
  filter-mapping
filter-namewicket.wicket-el/filter-name
url-pattern/*/url-pattern
  /filter-mapping
 
 I've tried this:
 
 error-page
  error-code404/error-code
  location//location
 /error-page
 
 But it just gives me a listing of files in the webapp directory.  I've
 tried explicitly mounting the home page as / but then it overrides all
 other urls and static files are inaccessible.  Are there any other ways
 to solve this problem?
 
 
 -
 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: MultiThreading issues with Wicket.

2013-12-30 Thread Paul Borș
Wicket sometimes makes things easier for us that we forget what's under the 
hood :)

Remember that most of your implementation is already thread safe and synced on 
the Page.
Read more about the request cycle in the free guide at:
http://wicket.apache.org/guide/guide/chapter8.html

So you want to perform a long running operation in a separate thread?
Try this post:
http://javathoughts.capesugarbird.com/2008/04/spawning-thread-for-lengthy-operation.html

Have a great day,
Paul Bors

 On Dec 30, 2013, at 6:32 PM, eaglei22 jchojnack...@gmail.com wrote:
 
 Hello, I am having an issue when using a worker thread to process a csv file. 
 I have asked the same question here:
 
 http://stackoverflow.com/questions/20747605/requestcycle-goes-null-when-using-a-separate-thread
 
 and I wanted to post here as I feel there are not many Wicket programmers
 there.
 
 
 The main issue seems to be when I process a large csv file I get a read
 error. But if I process a smaller one I do not. Here is the stack trace:
 
   java.io.IOException: Read error
 at java.io.FileInputStream.readBytes(Native Method)
 at java.io.FileInputStream.read(FileInputStream.java:220)
 at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
 at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
 at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
 at java.io.InputStreamReader.read(InputStreamReader.java:167)
 at java.io.BufferedReader.read1(BufferedReader.java:185)
 at java.io.BufferedReader.read(BufferedReader.java:261)
 at java.io.BufferedReader.fill(BufferedReader.java:136)
 
Dec 30 13:14:31 ERROR BulkLoadPage-java.io.IOException: Read error
 at java.io.BufferedReader.readLine(BufferedReader.java:299)
 at java.io.BufferedReader.readLine(BufferedReader.java:362)
 at au.com.bytecode.opencsv.CSVReader.getNextLine(CSVReader.java:266)
 at au.com.bytecode.opencsv.CSVReader.readNext(CSVReader.java:233)
 at com..wicket.BulkLoadPage.processLine(BulkLoadPage.java:547)
 at com..wicket.BulkLoadPage.access$0(BulkLoadPage.java:532)
 at 
 
 
 com..wicket.BulkLoadPage$BatchLoaderProcessingThread.run(BulkLoadPage.java:1294)
 at java.lang.Thread.run(Thread.java:662)
 
 
 
 I basically have a listView that is being updated by the main thread using
 AjaxSelfUpdatingTimer - set to update every 1 second. The worker thread
 which is an inner runnable class uses the methods of the main class, and
 updates the arrayList which is also stored in the main class and used by the
 listView.
 
 I was originally getting a requestCycle error, which seemed to be resolved
 by commenting out my feedbackPanel error message inside my catch. That error
 seemed to be produced from a read error produced by the reference to the
 CSVReader. The file being read in contains many lines. I believe around 15k.
 Every line has the same data which I copied and pasted just to test a large
 file. The file seems to work fine when it is less than 2k.. so I am thinking
 maybe it is a sychronization issue or some issue with data interleaving. 
 
 I had designed this page not knowing there would be issues with larger files
 using a thread.. there is a lot of functionality and there is no issues with
 a small file as stated.. just larger ones. The only job of the thread is to
 call a method from the main thread. That method loops through and processes
 the CSV file, and when that ends.. the thread dies. Should I be using local
 variables in the thread? Or what are some steps I can take to
 troubleshooting this error? Or is there a better way I should approach this
 to having a worker thread process results while the main thread uses a
 listView to display results. A dataView was reccommended and I will try that
 as well, but I am not sure if I can use a worker thread with that or not. 
 
 Thank you.  
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/MultiThreading-issues-with-Wicket-tp4663325.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: wicket-bootstrap NoSuchMethodError: Url.parse

2013-10-24 Thread Paul Borș
Must be your maven build and how it pulls that wicket-request artifact into 
your project.

I suggest you exclude it in your dependency declaration for the bootstrap 
version you use in your POM.

Have a great day,
Paul Bors

 On Oct 22, 2013, at 10:36 AM, meduolis meduol...@gmail.com wrote:
 
 Hi, Martin,
 
 
 As we can see wicket-request.jar is different version then other wicket
 modules. So, I have downloaded wicket-request.jar of 6.11.0 version manually
 and replaced it in application AND IT WORKED :).
 
 So, I really do not know, why bootstrap download wrong version. Maybe I need
 to exclude wicket-request from bootstrap and add dependency of proper
 version myself?
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicket-bootstrap-NoSuchMethodError-Url-parse-tp4661909p4661923.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: AW: set session-timeout

2013-10-24 Thread Paul Borș
Right, you would have to do it on the Log In page during authentication as 
Martijn suggested.

We have a global Settings page where we let admins configure this duration in 
minutes and we enable it via our Log In page.

To do it for unauthorized users it won't really make sense. Why would you let 
them waste your servers resources and keep your servers busy longer than the 
web.xml descriptor already is configured for? What would be such a real 
use-case?

Have a great day,
Paul Bors

 On Oct 23, 2013, at 5:41 AM, Martin Grigorov mgrigo...@apache.org wrote:
 
 On Wed, Oct 23, 2013 at 12:35 PM, Martijn Dashorst 
 martijn.dasho...@gmail.com wrote:
 
 AFAIK you can specify the session timeout in your web.xml or in your
 container. I don't see why Wicket should get involved in that, other
 than change the session timeout for logged in users (i.e. after they
 successfully authenticated with your application), or special users
 (administrators with limited session time, etc). In those cases you
 already have a bound session, and you can use the previous call. If
 you want to specify session timeout for all users, then do it in your
 deployment descriptor.
 
 Christoph's first message says: Now I want to make the time until the
 application expires *configurable*
 
 
 
 http://stackoverflow.com/questions/15382895/session-timeout-in-web-xml
 
 Martijn
 
 On Wed, Oct 23, 2013 at 7:23 AM, Martin Grigorov mgrigo...@apache.org
 wrote:
 On Wed, Oct 23, 2013 at 2:36 AM, Joachim Schrod jsch...@acm.org wrote:
 
 On 10/22/13 15:32, Martin Grigorov wrote:
 On Tue, Oct 22, 2013 at 4:27 PM, Joachim Schrod jsch...@acm.org
 wrote:
 
 On 10/22/13 10:34, christoph.ma...@t-systems.com wrote:
 If I do this in my WicketApplication class, in the init()
 method I get java.lang.reflect.UndeclaredThrowableException.
 But if I add this to my base page it works. Is there any
 possibility to do this in the WicketApplication class?
 
 You have to redefine WebApplication#newSession().
 
 It can't be done in init(), as no session exists yet. And you must
 set the Session timeout for each new session anew.
 
 Without having tried it, code like
 
@Override
public Session newSession(Request request, Response response) {
Session session = super.newSession(request, response);
 ((ServletWebRequest)request).getContainerRequest().getSession().setMaxInactiveInterval(TIMEOUT);
 
 ALARM!
 getSession() is the same as getSession(true). I.e. it will create a
 new
 http session for each and every http request, even for static
 resources.
 
 Wicket creates Wicket Session when Session.get() is used, but creates
 Http
 Session only when wicketSession.bind() is called.
 
 Interesting to hear; I'd have thought that works. Tricky thing,
 that. As I wrote, I didn't try the code; I just copied the access
 to HttpSession from the posts below.
 
 But, since wicketSession.bind() is final, one cannot subclass
 Session and redefine it either, to set the timeout there. (Much too
 many methods of Wicket classes are final, without really good
 reason; I copy them to my applications making the methods non-final
 much too often. :-( )
 
 If you override bind() and do something wrong then the functionality will
 break completely.
 
 
 
 Martin, what would you propose to be the hook that allows to
 establish a different session timeout application-wide within your
 Java application? I hadn't had yet that case, web.xml suffices by
 now, but it would be good to know for the future.
 
 It is much better from framework point of view to give you a hook:
 org.apache.wicket.session.ISessionStore#getBindListeners().add(myListener)
 
 
 
 Cheers,
Joachim
 
return session;
}
 
 should work. Maybe check that request is really a
 ServletWebRequest. (This is also a good place to set the locale.)
 
 HTH,
Joachim
 
 
 -Ursprüngliche Nachricht-
 Von: francois meillet [mailto:francois.meil...@gmail.com]
 Gesendet: Montag, 21. Oktober 2013 16:34
 An: users@wicket.apache.org
 Betreff: Re: set session-timeout
 
 HttpSession httpSession = ((ServletWebRequest)
 RequestCycle.get().getRequest()).getContainerRequest().getSession();
 httpSession.setMaxInactiveInterval(timeOut);
 
 François
 
 
 On Mon, Oct 21, 2013 at 4:12 PM, Martin Grigorov 
 mgrigo...@apache.org
 wrote:
 
 http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.6/a
 pi/javax/servlet/http/HttpSession.html#setMaxInactiveInterval(int)
 
 
 On Mon, Oct 21, 2013 at 4:44 PM, christoph.ma...@t-systems.com
 wrote:
 
 Hello,
 
 in my application i have set the errorpage for expired pages
 like
 this:
 
 getApplicationSettings().setPageExpiredErrorPage(Timeout.class);
 
 Now I want to make the time until the application expires
 configurable.
 How can I do this? Can I set this in the
 WicketApplication.init()?
 --
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Joachim Schrod, Roedermark, Germany
 Email: jsch...@acm.org
 
 
 

Re: Slow performance when tabbing through form elements

2013-09-29 Thread Paul Borș
Yes, read about it at:
http://www.w3schools.com/tags/att_global_tabindex.asp

IE Specific:
http://msdn.microsoft.com/en-us/library/ie/ms534654(v=vs.85).aspx

MDN:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.tabIndex

Have a great day,
Paul Bors

 On Sep 22, 2013, at 11:23 AM, Tom Götz t...@decoded.de wrote:
 
 No, I don't have tabindex yet. Does this really help the browser in
 determining the next tab?
 
   -Tom
 
 _
 On 22.09.2013, at 09:54, Martin Grigorov mgrigo...@apache.org wrote:
 
 Hi,
 
 You can try with Chrome's Dev Tools - Timeline - Events and Profile -
 CPU.
 Maybe one of those will show what is the reason.
 
 Do you have tabindex on the form elements ?
 
 
 On Sat, Sep 21, 2013 at 11:21 AM, Tom Götz t...@decoded.de wrote:
 
 Hi!
 
 I've got a performance problem when navigating through form elements
 using
 the tab key. This issue is not directly wicket related, but maybe
 someone
 could point me into the right direction how to analyze/improve the
 situation:
 
 we're using a tabpanel to render several tabs (~8-10) containing lots
 of
 form components. Tab-switiching is done client-side only, so there's no
 ajax roundtrip. Now if you focus one of the form components and hit the
 'tab' key to skip to the next form element, there's a noticeable delay
 of
 ~200-400ms, although there's no ajax involved. Could this be related to
 the
 amount of form components displayed, i.e. does it take that long for
 the
 browser to calculate/determine which element to focus next?
 
 How could I determine the cause for the delay?
 
 Cheers,
  -Tom
 
 
 
 winmail.dat

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



Re: Wicket DropDownChoice Question about Constructors and its Behavior

2013-09-26 Thread Paul Borș
See section 9.2.2 CompoundPropertyModel and model inheritance of the Wicket 
Free Guide:
http://wicket.apache.org/learn/books/freeguide.html

Direct link:
https://wicket-guide.googlecode.com/files/Wicket%20free%20guide.pdf#page77

I think you're confusing components with null models (hence they look up the 
wicket components hierarchy for a ConpoundPropertyModel to use) with components 
using empty new Model() models. When you define an empty model the user input 
will start out blank as you would expect. The same can be done if your 
(Compound)PropertyModel resolves to a POJO with a property whose value is null.

If you don't specify a model at all, and none of your component's parents have 
a CompoundPropertyModel or they do but don't match your component's ID, then 
you're in troubles and you'll get you null model error.

Have a great day,
Paul Bors

 On Sep 26, 2013, at 3:57 AM, Patrick Davids patrick.dav...@nuboit.de wrote:
 
 Hmm... ok,
 does that mean, in forms I do not have to wrap my model(object) into a 
 CompundPropertyModel, because DropDownList (or even all FormComponents?) 
 automatically joins IComponentInheritedModel hierarchy?
 
 So, as conclusion, by using a constuctor with an empty model (id, new 
 Model(), List choices) a exclude my DropDownChoice from the hierarchy?
 
 Patrick
 
 Am 26.09.2013 09:47, schrieb Martin Grigorov:
 Hi,
 
 This use case will work only when the DropDownChoice has a parent in the
 hierarchy with org.apache.wicket.model.IComponentInheritedModel,
 like org.apache.wicket.model.CompoundPropertyModel.
 In this case the dropdown will use a slot from its parent's
 IComponentInheritedModel.
 
 
 On Thu, Sep 26, 2013 at 9:39 AM, Patrick Davids 
 patrick.dav...@nuboit.dewrote:
 
 Hi all,
 
 since I'm working with Wicket I am a bit confused about the Constructors
 of DropDownChoice Class.
 
 DropDownChoice provides Constructors without any Model or ModelObject.
 e.g. (id, List choices)
 
 This is logical in an use-case, for instance, having just a page with a
 SelectBox and my first click is about to choose something.
 And I may do not have any parent model object of the page, so I did
 not bind my DropDownChoice by PropertyModel expressions.
 
 So, in such cases...
 
 Why Wicket always complaints about try to set ModelObject of null model?
 
 Yes, I explicitly decided to use DropDownChoice without a model.
 Since nothing is chosen, the model object of the DropDownChoice is null.
 The behavior I expect is, the model object is the chosen option (object)
 after selecting one.
 
 But it seems, it does not work like this.
 
 Can someone please light me. :-)
 
 kind regards
 Patrick
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 -- 
 Mit freundlichen Grüßen,
 
 Patrick Davids
 
 NuboIT GmbH  Co. KG
 Kieler Str. 103-107 • 25474 Bönningstedt
 
 Email: patrick.dav...@nuboit.de
 
 Handelsregister: HRA6819 Pi  | Amtsgericht Pinneberg
 
 Geschäftsführung der Verwaltungsgesellschaft
 Daniel Fraga Zander
 
 HRB10145Pi | Amtsgericht Pinneberg
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


Re: Bunch of Page Expired exceptions in Wicket 6.10.0

2013-09-25 Thread Paul Borș
I think I found my answer here:
https://cwiki.apache.org/confluence/display/WICKET/Page+Storage

I'll grab the Wicket sources tomorrow and hook my IntelliJ IDEA debugger to the 
DiskDataStore and work it backwards to see what happens.

Stay tuned... ;)

Have a great day,
Paul Bors

 On Sep 25, 2013, at 5:59 PM, Paul Bors p...@bors.ws wrote:
 
 Hey guys,
  
 Just wondering what could be the cause of the many page expired exceptions I 
 am running into with this webapp whenever the user changes tabs and then 
 selects the browser’s “Back” button or whenever the user downloads a resource 
 via a button and the form is being submitted a second time.
  
 My first guess is that the page might have issues with its stateless flags 
 but help is welcomed as I’m still new to Wicket 6.x.
  
 If needed I can create a quick-start.
  
 The following is an example of the log right after the button has been hit a 
 second time to submit the form:
  
 DEBUG: 09/25 17:35:40.954: ServletWebRequest: Calculating context relative 
 path from: context path '', filterPrefix 'app/', uri '/app/wicket/page'
 DEBUG: 09/25 17:35:40.955: ServletWebRequest: Calculating context relative 
 path from: context path '', filterPrefix 'app/', uri '/app/wicket/page'
 DEBUG: 09/25 17:35:40.955: ServletWebRequest: Calculating context relative 
 path from: context path '', filterPrefix 'app/', uri '/app/wicket/page'
 DEBUG: 09/25 17:35:40.956: CompoundRequestMapper: One compatible mapper found 
 for URL 'wicket/page?53-1.IFormSubmitListener-exportForm' - 'Mapper: 
 org.apache.wicket.core.request.mapper.PageInstanceMapper; Score: 2147483647'
 DEBUG: 09/25 17:35:40.956: ServletWebRequest: Calculating context relative 
 path from: context path '', filterPrefix 'app/', uri '/app/wicket/page'
 DEBUG: 09/25 17:35:40.956: PageAccessSynchronizer: 'http-thread-pool-5311(4)' 
 attempting to acquire lock to page with id '53'
 DEBUG: 09/25 17:35:40.956: PageAccessSynchronizer: http-thread-pool-5311(4) 
 acquired lock to page 53
 DEBUG: 09/25 17:35:40.957: DiskDataStore: Removing data for pages in session 
 with id '702b17085b39e8a599d07e81df51'
 DEBUG: 09/25 17:35:40.960: DiskDataStore: Returning data(null) for page with 
 id '53' in session with id '702b17085b39e8a599d07e81df51'
 DEBUG: 09/25 17:35:40.960: AsynchronousDataStore: Returning the data of a 
 stored entry with sessionId '702b17085b39e8a599d07e81df51' and pageId '53'
 DEBUG: 09/25 17:35:40.961: PageAccessSynchronizer: 'http-thread-pool-5311(4)' 
 released lock to page with id '53'
 DEBUG: 09/25 17:35:40.961: PageAccessSynchronizer: 'http-thread-pool-5311(4)' 
 notifying blocked threads
 DEBUG: 09/25 17:35:40.961: ServletWebRequest: Calculating context relative 
 path from: context path '', filterPrefix 'app/', uri '/app/wicket/page'
 DEBUG: 09/25 17:35:40.964: PageAccessSynchronizer: 'http-thread-pool-5311(4)' 
 attempting to acquire lock to page with id '55'
 DEBUG: 09/25 17:35:40.964: PageAccessSynchronizer: http-thread-pool-5311(4) 
 acquired lock to page 55
 DEBUG: 09/25 17:35:40.966: MarkupContainer: Add homePageLink to [Page class = 
 org.apache.wicket.markup.html.pages.PageExpiredErrorPage, id = 55, render 
 count = 0]
 DEBUG: 09/25 17:35:40.966: Component: Begin render [Page class = 
 org.apache.wicket.markup.html.pages.PageExpiredErrorPage, id = 55, render 
 count = 1]
 DEBUG: 09/25 17:35:40.967: MarkupContainer: Add _header_0 to [Page class = 
 org.apache.wicket.markup.html.pages.PageExpiredErrorPage, id = 55, render 
 count = 1]
 DEBUG: 09/25 17:35:40.967: Component: Begin render [HtmlHeaderContainer 
 [Component id = _header_0]]
 DEBUG: 09/25 17:35:40.967: Component: renderHead: [BookmarkablePageLink 
 [Component id = homePageLink]]
 DEBUG: 09/25 17:35:40.967: Component: renderHead: [HtmlHeaderContainer 
 [Component id = _header_0]]
 DEBUG: 09/25 17:35:40.967: Component: renderHead: [PageExpiredErrorPage 
 [Component id = 55]]
 DEBUG: 09/25 17:35:40.968: Component: End render [HtmlHeaderContainer 
 [Component id = _header_0]]
 DEBUG: 09/25 17:35:40.968: Component: Begin render [BookmarkablePageLink 
 [Component id = homePageLink]]
 DEBUG: 09/25 17:35:40.969: ServletWebRequest: Calculating context relative 
 path from: context path '', filterPrefix 'app/', uri '/app/wicket/page'
 DEBUG: 09/25 17:35:40.970: ServletWebRequest: Calculating context relative 
 path from: context path '', filterPrefix 'app/', uri '/app/wicket/page'
 DEBUG: 09/25 17:35:40.970: ServletWebRequest: Calculating context relative 
 path from: context path '', filterPrefix 'app/', uri '/app/wicket/page'
 DEBUG: 09/25 17:35:40.970: ServletWebRequest: Calculating context relative 
 path from: context path '', filterPrefix 'app/', uri '/app/wicket/page'
 DEBUG: 09/25 17:35:40.971: Component: End render [BookmarkablePageLink 
 [Component id = homePageLink]]
 DEBUG: 09/25 17:35:40.971: Component: End render [Page class = 
 org.apache.wicket.markup.html.pages.PageExpiredErrorPage, id = 55, render 
 count = 1]
 DEBUG: 

Re: Mutliple forms - single login popup

2013-07-14 Thread Paul Borș
So what's stopping you from doing so again?

You simply keep the same conditions, if not logged you show the modal pop-up 
with the authentication form. User clicks submit on the login form and inside 
the onSubmit() of the form/button you run your authentication and if it passes 
you post the data, if not you give an error.

~ Thank you,
Paul Bors

On Jul 14, 2013, at 10:07 AM, Jeff Schneller j...@mootus.com wrote:

 Paul - 
 
 That is how I am doing it.  But I want the buttons to always appear even if 
 not logged in.  Then when clicked a modal is shown to login through a form 
 and then the button action is finally executed.
 
 On Sunday, July 14, 2013 at 1:15 AM, Paul Bors wrote: 
 Keep a flag in your customized Session for when the user is logged in. I 
 keep the ID of the user record from the db so that if I need the user POJO I 
 can lazy load it later (say to e-mail the user or to show the user's name 
 under the My Profile page etc).
 
 If that is null, then show your pop-up, if valid then show your button.
 
 ~ Thank you,
 Paul Bors
 
 -Original Message-
 From: Jeff Schneller [mailto:j...@mootus.com] 
 Sent: Sunday, July 14, 2013 12:13 AM
 To: users@wicket.apache.org (mailto:users@wicket.apache.org)
 Subject: Mutliple forms - single login popup
 
 Using 1.5.x.
 
 I have multiple forms (minimum of 2 but could be any number) on my page 
 being put on the page as a ListView. Each form has its own model and 2 
 buttons within it that perform some action on its model. Similar to the 
 facebook newsfeed where each news article has its own like and comment 
 button. I have a login form on the page being shown as a jquery modal 
 window. 
 
 My requirement is that the user must be logged in before either button click 
 is processed. I have code that works but only for one form. 
 
 I want the button click to perform the business logic when user is logged in 
 and if not logged in - show a modal login form, after successful login then 
 perform the business logic.
 
 What is the best/easiest way to do this?
 
 Jeff Schneller
 Co-Founder/CTO, Mootus (http://www.mootus.com) j...@mootus.com 
 (mailto:a...@mootus.com)
 M: 1-617-851-0200
 Skype: jeff.schneller
 
 LinkedIn (http://www.linkedin.com/in/jeffschneller) | Twitter 
 (https://twitter.com/Mootusco) | Website (http://www.mootus.com/)
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
 (mailto:users-unsubscr...@wicket.apache.org)
 For additional commands, e-mail: users-h...@wicket.apache.org 
 (mailto: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: jquery dialog onclick AjaxButton

2013-07-14 Thread Paul Borș
This is not the java script nor the jQuery mailing list. If you use those 
technologies then you should pick up a book or two on them and get familiar 
with them.

In the mid time, Wicket is awesome in that it makes things simple for the 
developer. Try using an AjaxButton or better yet an AjaxFallbackButton. See the 
java doc at:
http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/ajax/markup/html/form/AjaxButton.html

http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/ajax/markup/html/form/AjaxFallbackButton.html

For examples see Wicket's website or direct link:
http://www.wicket-library.com/wicket-examples/ajax/form

And if you Google this will pop-up too:
http://www.7thweb.net/wicket-jquery-ui/button/AjaxButtonPage

Have a great day,
Paul Bors

On Jul 14, 2013, at 6:29 PM, fachhoch fachh...@gmail.com wrote:

 I am not java script expert please   advice is there anything wrong with the
 script ?  sdimilar script works for ajax link but for submit buttons   its
 not please advice .
 Thanks
 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/jquery-dialog-onclick-AjaxButton-tp4660124p4660262.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


Re: jquery dialog onclick AjaxButton

2013-07-14 Thread Paul Borș
Sorry my mail client just caught your original post too.
For the dialog, you want a modal window. Example at:
http://www.wicket-library.com/wicket-examples/ajax/modal-window

Have a great day,
Paul Bors

On Jul 14, 2013, at 11:48 PM, Paul Borș p...@bors.ws wrote:

 This is not the java script nor the jQuery mailing list. If you use those 
 technologies then you should pick up a book or two on them and get familiar 
 with them.
 
 In the mid time, Wicket is awesome in that it makes things simple for the 
 developer. Try using an AjaxButton or better yet an AjaxFallbackButton. See 
 the java doc at:
 http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/ajax/markup/html/form/AjaxButton.html
 
 http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/ajax/markup/html/form/AjaxFallbackButton.html
 
 For examples see Wicket's website or direct link:
 http://www.wicket-library.com/wicket-examples/ajax/form
 
 And if you Google this will pop-up too:
 http://www.7thweb.net/wicket-jquery-ui/button/AjaxButtonPage
 
 Have a great day,
 Paul Bors
 
 On Jul 14, 2013, at 6:29 PM, fachhoch fachh...@gmail.com wrote:
 
 I am not java script expert please   advice is there anything wrong with the
 script ?  sdimilar script works for ajax link but for submit buttons   its
 not please advice .
 Thanks
 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/jquery-dialog-onclick-AjaxButton-tp4660124p4660262.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


Re: Looking to pair

2013-07-08 Thread Paul Borș
As Martin M. said Hands-on head-first head-banging is the way to go. Watching 
aside won't
take you fare and won't float long.

If you're a manager, why even bother? You should be confident in your staff and 
they should follow your methodologies. I know as a team lead that the 
involvement between management and development can be crucial, but still... You 
ought to know better !!! 

Have a great day,
Paul Bors

On Jul 8, 2013, at 1:03 AM, Martin Grigorov mgrigo...@apache.org wrote:

 Hi,
 
 You can watch some Wicket project in GitHub.
 For example:
 https://github.com/l0rdn1kk0n/wicket-bootstrap
 https://github.com/sebfz1/wicket-jquery-ui
 https://github.com/wicketstuff/core
 
 
 On Sun, Jul 7, 2013 at 8:16 PM, Mike Pence mike.pe...@gmail.com wrote:
 
 Hi guys. Hope that this is appropriate for this list: I am looking for
 someone who is willing to pair program with me (although it would probably
 be mostly me on the watching side). I need to get strong with Wicket,
 Spring, and maybe even Neo4J as quickly as possible, as I have committed to
 using these technologies on a big new project. And I know from experience
 that pair programming with someone who is very proficient in those
 technologies is the quickest way to get there.
 
 I posted a job listing on Elance for a similar arrangement, but if any of
 you Wicket masters would let me look over your virtual shoulder for a few
 hours sometime, it would be much appreciated.
 
 FYI, I have been programming for 20+ years (VB, Delphi, Java, Ruby, etc.)
 so it is not like I am a total newbie.
 
 Thanks in advance.
 
 Mike Pence
 

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



Re: how to solve this problem

2013-07-08 Thread Paul Borș
Simply put? RTFM... sorry for being mean and direct.

Okay, so you are missing the markup (aka HTML file) with all the silly 
wicket:id tags.
The missing tag as per your exception is a header 0 of some sort.

Post more code or tell us what you're trying to achieve if you want more help.
Better yet, read the Wicket free guide off the home page for Wicket's project 
under the Books section,mi guess you are trying out some sort of repeater?!?!?

In case you need the direct link:
http://wicket.apache.org/learn/books/freeguide.html
  
Have a great day,
Paul Bors

PS: Again, sorry for being direct :)


On Jul 7, 2013, at 9:57 PM, fan wang xingfan_w...@live.cn wrote:

 when i close my browser and open the project again,then show the
 Exception,what's wrong? thx!!!
 
 Last cause: Markup not found for Component: [HtmlHeaderContainer [Component
 id = _header_0]]
 
 Stacktrace
 
 Root cause:
 org.apache.wicket.markup.MarkupNotFoundException: Markup not found f
 Component: [HtmlHeaderContainer [Component id = _header_0]]
 at org.apache.wicket.Component.internalRender(Component.java:2333)
 at org.apache.wicket.Component.render(Component.java:2293)
 at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:, 13
 at
 org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1553)
 at org.apache.wicket.Page.onRender(Page.java:884)
 at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:142)
 at org.apache.wicket.Component.internalRender(Component.java:2365)
 at org.apache.wicket.Component.render(Component.java:2293)
 at org.apache.wicket.Page.renderPage(Page.java:1021)
 at
 org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:116)
 at
 org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:244)
 at
 org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:165)
 at
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:830)
 at
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
 at
 org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:253)
 at
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210)
 at
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281)
 at
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:245)
 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:127)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
 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:861)
 at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
 at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 at java.lang.Thread.run(Thread.java:722)
 
 
 
 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/how-to-solve-this-problem-tp4660122.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


Re: Multiple wicket.properties files in uber JAR

2013-07-08 Thread Paul Borș
See the Wicket Free Guid section on the properties files.
https://wicket-guide.googlecode.com/files/Wicket%20free%20guide.pdf#page92

Long story short, you can define the language pack at your application level 
and overrite the default labels Wicket ships with.
Per say, i use your ubber properties file (master properties file) because of 
our translatiomn firm ;)

Have a great day,
Paul Bors

On Jul 7, 2013, at 5:35 PM, William Speirs wspe...@apache.org wrote:

 I'm attempting to create an uber JAR using the Maven shade plugin and
 running into an issue shading wicket, wicket-extensions and
 wicket-devutils. All 3 of these module contain a wicket.properties file
 that point at their respective Initializers. The problem
 is that when I
 create the shaded JAR, the wicket.properties files all want to live in the
 same place and overwrite each other. I can combine them into a single
 wicket.properties file, but when the properties are loaded
 via addInitializer(properties.getProperty(initializer)); only the last
 one in the file is used.
 
 Has anyone ever created an uber JAR with wicket and wicket-extensions (I
 can drop wicket-devutils if needed)? If so, how did you do it?
 
 If I needed to hack this together, knowing the names of the Initializers,
 can I call them manually?
 
 Thanks...
 
 Bill-


Re: how to solve this problem

2013-07-08 Thread Paul Borș
I was trying to nicely ask for a bit of development effort such some coding. 
But ya, a quick start or at least more details (your Java o/and HTML) would 
help us help you ;)

QuickStart is always preferred:
http://wicket.apache.org/start/quickstart.html

Modify it to reproduce the missing markup error you got with the least steps 
possible.

Have a great day,
Paul Bors

On Jul 8, 2013, at 2:22 AM, Martin Grigorov mgrigo...@apache.org wrote:

 On Mon, Jul 8, 2013 at 9:13 AM, Paul Borș p...@bors.ws wrote:
 
 Simply put? RTFM... sorry for being mean and direct.
 
 Don't be so mean and direct ;-)
 
 Component: [HtmlHeaderContainer [Component id = _header_0]] is a component
 auto-created by Wicket.
 Why this error is thrown - I cannot say. But the user application should
 not provide manually any markup for this.
 
 If the problem can be reproduced in a quickstart then please attach it to a
 ticket and we will debug it.
 
 
 Okay, so you are missing the markup (aka HTML file) with all the si
 wicket:id tags.
 The missing tag as per your exception is a header 0 of some sort.
 
 Post more code or tell us what you're trying to achieve if you want more
 help.
 Better yet, read the Wicket free guide off the home page for Wicket's
 project under the Books section,mi guess you are trying out some sort of
 repeater?!?!?
 
 In case you need the direct link:
 http://wicket.apache.org/learn/books/freeguide.html
 
 Have a great day,
Paul Bors
 
 PS: Again, sorry for being direct :)
 
 
 On Jul 7, 2013, at 9:57 PM, fan wang xingfan_w...@live.cn wrote:
 
 when i close my browser and open the project again,then show the
 Exception,what's wrong? thx!!!
 
 Last cause: Markup not found for Component: [HtmlHeaderContainer
 [Component
 id = _header_0]]
 
 Stacktrace
 
 Root cause:
 org.apache.wicket.markup.MarkupNotFoundException: Markup not found f
 Component: [HtmlHeaderContainer [Component id = _header_0]]
at org.apache.wicket.Component.internalRender(Component.java:2333)
at org.apache.wicket.Component.render(Component.java:2293)
at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:, 13
at
 org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1553)
at org.apache.wicket.Page.onRender(Page.java:884)
at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:142)
at org.apache.wicket.Component.internalRender(Component.java:2365)
at org.apache.wicket.Component.render(Component.java:2293)
at org.apache.wicket.Page.renderPage(Page.java:1021)
at
 org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:116)
at
 org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:244)
at
 org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:165)
at
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:830)
at
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
 org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:253)
at
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210)
at
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281)
at
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:245)
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:127)
at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
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:861)
at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:722)
 
 
 
 
 
 
 
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/how-to-solve-this-problem-tp4660122.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


Re: Multiple wicket.properties files in uber JAR

2013-07-08 Thread Paul Borș
Hmm, sorry then. Got that one wrong :(

But wait, I think I overcome that in a similar way... We overwrite most string 
(especially the NULL keys) for most messages.

I don't have the code in front of me, but I recall we do it through the Lang 
pack.

Have a great day,
Paul Bors

On Jul 8, 2013, at 2:29 AM, Martin Grigorov mgrigo...@apache.org wrote:

 Hey Paul.
 
 On Mon, Jul 8, 2013 at 9:24 AM, Paul Borș p...@bors.ws wrote:
 
 See the Wicket Free Guid section on the properties files.
 https://wicket-guide.googlecode.com/files/Wicket%20free%20guide.pdf#page92
 
 Long story short, you can define the language pack at your application
 level and overrite the default labels Wicket ships with.
 Per say, i use your ubber properties file (master properties file)
 because of our translatiomn firm ;)
 
 William talks about wicket.properties (IInitializer), not
 Application.properties.
 
 
 Have a great day,
Paul Bors
 
 On Jul 7, 2013, at 5:35 PM, William Speirs wspe...@apache.org wrote:
 
 I'm attempting to create an uber JAR using the Maven shade plugin and
 running into an issue shading wicket, wicket-extensions and
 wicket-devutils. All 3 of these module contain a wicket.properties file
 that point at their respective Initializers. The problem
 is that when I
 create the shaded JAR, the wicket.properties files all want to live in
 the
 same place and overwrite each other. I can combine them into a single
 wicket.properties file, but when the properties are loaded
 via addInitializer(properties.getProperty(initializer)); only the last
 one in the file is used.
 
 Has anyone ever created an uber JAR with wicket and wicket-extensions (I
 can drop wicket-devutils if needed)? If so, how did you do it?
 
 If I needed to hack this together, knowing the names of the Initializers,
 can I call them manually?
 
 I don't see another solution.
 Call them manually in the beginning of your MyApp#init() method.
 
 
 
 Thanks...
 
 Bill-
 

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



Re: how to solve this problem

2013-07-08 Thread Paul Borș
No need to read a full book if you know Wicket, isolate it in a quick start. If 
we see your java and HTML we might better understand your use case.

Have a great day,
Paul Bors

On Jul 8, 2013, at 2:42 AM, fan wang xingfan_w...@live.cn wrote:

 thx,i dont know how to describe this question, the project sometimes is okay
 ,but some times when i open it again and then throw the exception..
 
 thx everyone..i will read the manual..thx...
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/how-to-solve-this-problem-tp4660122p4660136.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: Multiple wicket.properties files in uber JAR

2013-07-08 Thread Paul Borș
N/m initializers are way trickier than what we do in our web app.

I would imagine you have to write your own intelligent initializer here to 
fallback to you own lang pack? I never tried it, so I won't know Count me 
outta this one :)

Have a great day,
   Paul Bors

On Jul 8, 2013, at 2:35 AM, Paul Borș p...@bors.ws wrote:

 Hmm, sorry then. Got that one wrong :(
 
 But wait, I think I overcome that in a similar way... We overwrite most 
 string (especially the NULL keys) for most messages.
 
 I don't have the code in front of me, but I recall we do it through the Lang 
 pack.
 
 Have a great day,
Paul Bors
 
 On Jul 8, 2013, at 2:29 AM, Martin Grigorov mgrigo...@apache.org wrote:
 
 Hey Paul.
 
 On Mon, Jul 8, 2013 at 9:24 AM, Paul Borș p...@bors.ws wrote:
 
 See the Wicket Free Guid section on the properties files.
 https://wicket-guide.googlecode.com/files/Wicket%20free%20guide.pdf#page92
 
 Long story short, you can define the language pack at your application
 level and overrite the default labels Wicket ships with.
 Per say, i use your ubber properties file (master properties file)
 because of our translatiomn firm ;)
 
 William talks about wicket.properties (IInitializer), not
 Application.properties.
 
 
 Have a great day,
   Paul Bors
 
 On Jul 7, 2013, at 5:35 PM, William Speirs wspe...@apache.org wrote:
 
 I'm attempting to create an uber JAR using the Maven shade plugin and
 running into an issue shading wicket, wicket-extensions and
 wicket-devutils. All 3 of these module contain a wicket.properties file
 that point at their respective Initializers. The problem
 is that when I
 create the shaded JAR, the wicket.properties files all want to live in
 the
 same place and overwrite each other. I can combine them into a single
 wicket.properties file, but when the properties are loaded
 via addInitializer(properties.getProperty(initializer)); only the last
 one in the file is used.
 
 Has anyone ever created an uber JAR with wicket and wicket-extensions (I
 can drop wicket-devutils if needed)? If so, how did you do it?
 
 If I needed to hack this together, knowing the names of the Initializers,
 can I call them manually?
 
 I don't see another solution.
 Call them manually in the beginning of your MyApp#init() method.
 
 
 
 Thanks...
 
 Bill-
 

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



Re: how to solve this problem

2013-07-08 Thread Paul Borș
That's a basic use case we all have to preserve our app's layout.
Yes, put together a quick start and share it with us as there must be something 
else you're doing wrong.

Have a great day,
Paul Bors

On Jul 8, 2013, at 3:10 AM, fan wang xingfan_w...@live.cn wrote:

 in fact i have a main page and other pages extends this page.when i login in
 this page first time ,its work, but when i close the page and login again
 ,then throw the exception..
 
 should i show some code of java or html?
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/how-to-solve-this-problem-tp4660122p4660140.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: wicketstuff-gmap3 and CryptoMapper

2013-07-07 Thread Paul Borș
QuickStart, Jira ticket, attaché the fix (unit test too).

Have a great day,
Paul Bors

On Jul 7, 2013, at 10:47 AM, Nemat Rakhmatov nemat.rakhma...@gmail.com wrote:

 Tried 6.9.0 release, got the same error.
 
 Regards,
 Nemat
 
 
 Nemat Rakhmatov wrote
 Will try the 6.9.0 version as soon as I'll get to my devel machine.
 
 Regards,
 Nemat
 Paul Bors wrote
 Btw, Martin released wicket-stuff 6.9.0 last Friday.
 Did you try that version?
 
 Have a great day,
Paul Bors
 
 On Jul 7, 2013, at 12:25 AM, Paul Borș lt;
 
 paul@
 
 gt; wrote:
 
 First search for a Jira ticket in Wicket's queue that's related to your
 problem at:
 https://issues.apache.org/jira/browse/WICKET
 
 If one doesn't exist (I remember seeming a few ones about the
 CryptoMapper recently), then create a quick start that reproduces the
 bug in the fewest steps possible and attach it to a new ticket. Add a
 code patch or a pull request with the fix too if you won't mind.
 
 Have a great day,
Paul Bors
 
 On Jul 6, 2013, at 12:41 PM, Nemat Rakhmatov lt;
 
 nemat.rakhmatov@
 
 gt; wrote:
 
 Hello all,
 
 I was playing with newly released wicketstuff-gmap3 to explore the
 possibility of integrating google maps into
 my application. Quickly added the map and marker listener, it was a
 cake.
 But got a problem with marker listener. Find out Not found ajax
 response
 error in the Wicket Ajax debug console, went to chrome developer tools
 console and found out the error http 404. 
 
 Turns out it is related to CryptoMapper, when I switched off the
 CryptoMapper it start working.
 
 I'm using the latest wicket release - 6.9.0, and the 6.8.0 for
 wicketstuff-gmap3
 
 Regards,
 Nemat
 
 
 
 
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicketstuff-gmap3-and-CryptoMapper-tp4660109.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail:
 
 users-unsubscribe@.apache
 
 For additional commands, e-mail:
 
 users-help@.apache
 
 
 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicketstuff-gmap3-and-CryptoMapper-tp4660109p4660114.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: Spring: cannot inject bean with scope request/session

2013-07-07 Thread Paul Borș
See chapter 17 Integration with enterprise containers of the of the Wicket 
Free Guide.
Log on to Wicket's homepage, select Books and follow the link from there.

You might be interested in section 17.1 Integrating Wicket with Spring.

Have a great day,
Paul Bors

On Jul 7, 2013, at 5:58 AM, Alexey Mukas alexey.mu...@gmail.com wrote:

 Hi all,
 
 I'm trying to use Spring in my app.
 Using:
 - wicket 6.9
 - spring 3.2.3
 
 Injection works fine with prototype/singleton, but not with request/session
 scope.
 I have following exception: No Scope registered for scope 'request'
 
 I've added 
 listener
 
 listener-classorg.springframework.web.context.request.RequestContextListener/listener-class
  
  /listener
 but it didn't help
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Spring-cannot-inject-bean-with-scope-request-session-tp4660112.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: Looking to pair

2013-07-07 Thread Paul Borș
Have you glimpsed over the few books offered under the Books section on 
Wicket's home page?

In my experience pair programming works for two developers within the same 
physical location when one can explain the other quickly why it's best to 
archive something one way rather than the other.

Have a great day,
Paul Bors

On Jul 7, 2013, at 1:16 PM, Mike Pence mike.pe...@gmail.com wrote:

 Hi guys. Hope that this is appropriate for this list: I am looking for
 someone who is willing to pair program with me (although it would probably
 be mostly me on the watching side). I need to get strong with Wicket,
 Spring, and maybe even Neo4J as quickly as possible, as I have committed to
 using these technologies on a big new project. And I know from experience
 that pair programming with someone who is very proficient in those
 technologies is the quickest way to get there.
 
 I posted a job listing on Elance for a similar arrangement, but if any of
 you Wicket masters would let me look over your virtual shoulder for a few
 hours sometime, it would be much appreciated.
 
 FYI, I have been programming for 20+ years (VB, Delphi, Java, Ruby, etc.)
 so it is not like I am a total newbie.
 
 Thanks in advance.
 
 Mike Pence

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



Re: Button tag

2013-07-06 Thread Paul Borș
Yes.

See the books section on Wicket's website http://wicket.apache.org, also 
consult HTML's protocol.

Have a great day,
   Paul Bors

On Jul 5, 2013, at 1:01 PM, Jered Myers jer...@maplewoodsoftware.com wrote:

 I am looking at switching my input type=submit / submit buttons over to 
 button type=submit/buttons buttons.  Is this safe to do in Wicket (e.g. 
 my forms will still submit correctly, submit components don't have a 
 onComponent tag that requires an input element)?  I am supporting IE7 along 
 with modern browsers.
 -- 
 Jered Myers
 

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



Re: How can i render json into markup?

2013-07-06 Thread Paul Borș
Your question is better addressed at http://wicked-charts.2319560.n4.nabble.com/

The mailing list for https://code.google.com/p/wicked-charts/

Tom H. did a super good job on integrating High Charts with Wicket so I'm not 
sure why you're reinventing the wheel.

Have a great day,
Paul Bors

On Jul 5, 2013, at 3:04 PM, Per Newgro per.new...@gmx.ch wrote:

 Hi,
 
 i would like to include highcharts. I know there is a wicket module but we 
 want to use the script.
 So my requirement is it to render the div below with the json content in it.
 Do i have to use a label and render body only? Or is there another way. I 
 couldn't find any example
 for this.
 
 Thanks for your Support
 Per
 
 code
div class=row main-content
script type=application/json id=chart-data 
 data-chart-generator=SingleBodyShopChartGenerator
{
title: ,
subtitle: ,
yTitle: Benchmark,
columns: [
{
label: Total,
colorClass: chart-platin,
value: 92
},
{
label: Cat 1,
colorClass: chart-platin,
value: 96
},
{
label: Cat 2,
colorClass: chart-platin,
value: 90
},
{
label: Cat 3,
colorClass: chart-platin,
value: 93
},
{
label: Cat 4,
colorClass: chart-platin,
value: 95
},
{
label: Cat 5,
colorClass: chart-gold,
value: 88
},
{
label: Cat 6,
colorClass: chart-platin,
value: 93
}
]
}
/script
div wicket:id=chart style=display: none/div
/div
 /code
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


Re: cryptic error messages

2013-07-06 Thread Paul Borș
As Per you're HTML you're component path is repeatingDocTypes:docTypeName ie:
  div wicket:id=repeatingDocTypes 
  span wicket:id=docTypeNameOrders/spanbr/

Where repeatingDocTypes is a repeating view and its children are numbered 
(1,2,3,4..). Yet you added docTypeName and repeatingDocRef.

Now, to make it work try to use inline panels or separate panels for the 
RepeatingView content and/or call the newChildId() methos.

See the API
http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/markup/repeater/RepeatingView.html

Have a great day,
Paul Bors

On Jul 3, 2013, at 7:05 AM, Lucio Crusca lu...@sulweb.org wrote:

 Hi *,
 
 I have the following markup snippet:
 
div wicket:id=repeatingDocTypes 
  span wicket:id=docTypeNameOrders/spanbr/
  hr/
  div wicket:id=repeatingDocRef
a href=# wicket:id=doclinkspan 
 wicket:id=docid/span/abr/
  /div
/div
 
 which is bound to this code snippet:
 
 [...]
   RepeatingView rv = new RepeatingView(repeatingDocTypes);
   for (...)
 addDocTypeBox(rv, docs);
 
 
  private void addDocTypeBox(RepeatingView rv, ListDocument docs)
  {
AbstractItem i = new AbstractItem(rv.newChildId());
i.add(new Label(docTypeName, getDocTypeDescription());
RepeatingView rdr = new RepeatingView(repeatingDocRef);
i.add(rdr);
 
for (Document d: docs)
{
  AbstractItem docsummary = new AbstractItem(rdr.newChildId());
  Link l = new Link(doclink)
  {
 ...
  };
  docsummary.add(l);
  l.add(createSummaryPanel(docid, d));
  rdr.add(docsummary);
}
 
rv.add(i);
  }
 
 Please note that the two for loops execute just 1 iteration each with my 
 current test data.
 
 I get the following exception:
 
 Last cause: Unable to find component with id 'docTypeName' in [AbstractItem 
 [Component id = 1]]
Expected: 'footerPanel:repeatingDocTypes:1.docTypeName'.
Found with similar names: 'footerPanel:repeatingDocTypes:2:docTypeName'
 
 which does shed some light on what's going on, but I find it hard to 
 understand 
 what do 1.docTypeName and 2:docTypeName mean. Where did those 1 and 2 
 come from? What information do they give me in order to spot the bug? Why is 
 1 followed by a dot while 2 is followed by a column?
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


Re: Tree with different BookmarkablePageLink per Node

2013-07-06 Thread Paul Borș
What have you tried so far? Has it worked for you?

Have a great day,
   Paul Bors

On Jul 5, 2013, at 5:11 PM, Piratenvisier hansheinrichbr...@yahoo.de wrote:

 What is the best way to build a nested Tree with different 
 BookmarkablePageLinks per node?
 The best would be when I build the Foo node to give the information to build 
 the  BookmarkablePageLink.
 Who should know the different PageClasses?
 
 
 
 -
 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 free guide updated.

2013-07-06 Thread Paul Borș
I won't print it just yet, the book is still going through revisions.
See the open issues at http://code.google.com/p/wicket-guide/issues/list

Otherwise you can always take it to Staples and pay $10 to have it printed for 
you ;)

Have a great day,
Paul Bors

On Jul 6, 2013, at 4:17 AM, lucast lucastol...@hotmail.com wrote:

 Hi Andrea,
 Thank you for writing this really good book.
 I would like to have a hard copy of it from amazon or any other site. Have
 you found a publisher that would print it for you?
 
 kind regards,
 Lucas
 
 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-free-guide-updated-tp4658427p4660101.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


Re: How can i render json into markup?

2013-07-06 Thread Paul Borș
Then your on your own. However you can modify any HTML tag in wicket by giving 
it a wicket:I'd and then grabbing a reference to it via the WebMarkupContainer:
http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/markup/html/WebMarkupContainer.html

You can the. Attach your own behavior to it.

Have a great day,
Paul Bors

On Jul 6, 2013, at 8:23 AM, Per Newgro per.new...@gmx.ch wrote:

 Hi Paul,
 
 thanks for your reply. As i wrote we don't want to use the wicked-charts 
 integration.
 Reinventing the wheel is not our goal.
 
 What i want to know was how i can render the script with the json content 
 inside the div.
 So far i've found a chart example in Igor's excelent Cookbook. But the 
 problem of add a script
 in a div is still open.
 
 Thanks
 Per
 
 Am 06.07.2013 09:44, schrieb Paul Borș:
 Your question is better addressed at 
 http://wicked-charts.2319560.n4.nabble.com/
 
 The mailing list for https://code.google.com/p/wicked-charts/
 
 Tom H. did a super good job on integrating High Charts with Wicket so I'm 
 not sure why you're reinventing the wheel.
 
 Have a great day,
 Paul Bors
 
 On Jul 5, 2013, at 3:04 PM, Per Newgro per.new...@gmx.ch wrote:
 
 Hi,
 
 i would like to include highcharts. I know there is a wicket module but we 
 want to use the script.
 So my requirement is it to render the div below with the json content in it.
 Do i have to use a label and render body only? Or is there another way. I 
 couldn't find any example
 for this.
 
 Thanks for your Support
 Per
 
 code
div class=row main-content
script type=application/json id=chart-data 
 data-chart-generator=SingleBodyShopChartGenerator
{
title: ,
subtitle: ,
yTitle: Benchmark,
columns: [
{
label: Total,
colorClass: chart-platin,
value: 92
},
{
label: Cat 1,
colorClass: chart-platin,
value: 96
},
{
label: Cat 2,
colorClass: chart-platin,
value: 90
},
{
label: Cat 3,
colorClass: chart-platin,
value: 93
},
{
label: Cat 4,
colorClass: chart-platin,
value: 95
},
{
label: Cat 5,
colorClass: chart-gold,
value: 88
},
{
label: Cat 6,
colorClass: chart-platin,
value: 93
}
]
}
/script
div wicket:id=chart style=display: none/div
/div
 /code
 
 -
 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: wicketstuff-gmap3 and CryptoMapper

2013-07-06 Thread Paul Borș
First search for a Jira ticket in Wicket's queue that's related to your problem 
at:
https://issues.apache.org/jira/browse/WICKET

If one doesn't exist (I remember seeming a few ones about the CryptoMapper 
recently), then create a quick start that reproduces the bug in the fewest 
steps possible and attach it to a new ticket. Add a code patch or a pull 
request with the fix too if you won't mind.

Have a great day,
Paul Bors

On Jul 6, 2013, at 12:41 PM, Nemat Rakhmatov nemat.rakhma...@gmail.com wrote:

 Hello all,
 
 I was playing with newly released wicketstuff-gmap3 to explore the
 possibility of integrating google maps into
 my application. Quickly added the map and marker listener, it was a cake.
 But got a problem with marker listener. Find out Not found ajax response
 error in the Wicket Ajax debug console, went to chrome developer tools
 console and found out the error http 404. 
 
 Turns out it is related to CryptoMapper, when I switched off the
 CryptoMapper it start working.
 
 I'm using the latest wicket release - 6.9.0, and the 6.8.0 for
 wicketstuff-gmap3
 
 Regards,
 Nemat
 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicketstuff-gmap3-and-CryptoMapper-tp4660109.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


Re: wicketstuff-gmap3 and CryptoMapper

2013-07-06 Thread Paul Borș
Btw, Martin released wicket-stuff 6.9.0 last Friday.
Did you try that version?

Have a great day,
Paul Bors

On Jul 7, 2013, at 12:25 AM, Paul Borș p...@bors.ws wrote:

 First search for a Jira ticket in Wicket's queue that's related to your 
 problem at:
 https://issues.apache.org/jira/browse/WICKET
 
 If one doesn't exist (I remember seeming a few ones about the CryptoMapper 
 recently), then create a quick start that reproduces the bug in the fewest 
 steps possible and attach it to a new ticket. Add a code patch or a pull 
 request with the fix too if you won't mind.
 
 Have a great day,
 Paul Bors
 
 On Jul 6, 2013, at 12:41 PM, Nemat Rakhmatov nemat.rakhma...@gmail.com 
 wrote:
 
 Hello all,
 
 I was playing with newly released wicketstuff-gmap3 to explore the
 possibility of integrating google maps into
 my application. Quickly added the map and marker listener, it was a cake.
 But got a problem with marker listener. Find out Not found ajax response
 error in the Wicket Ajax debug console, went to chrome developer tools
 console and found out the error http 404. 
 
 Turns out it is related to CryptoMapper, when I switched off the
 CryptoMapper it start working.
 
 I'm using the latest wicket release - 6.9.0, and the 6.8.0 for
 wicketstuff-gmap3
 
 Regards,
 Nemat
 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicketstuff-gmap3-and-CryptoMapper-tp4660109.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


Wicket 6.9.0 released?

2013-06-30 Thread Paul Borș
Has the development team released or is in process of releasing Wicket 6.9.0?

I see it exist in Maven central but there hasn't been any announcement yet:
http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.apache.wicket%22

Have a great day,
Paul Bors

Re: Ajax form submit and Tomcat maxPostSize/connectionTimeout

2013-06-20 Thread Paul Borș
Blank form prob means empty model objects.

Start Wicket in DEVELOPMENT mode:
https://cwiki.apache.org/WICKET/faqs.html#FAQs-Myapplicationsays%2522DEVELOPMENTMODE%2522%252ChowdoIswitchtoproduction%253F

Add the  DebugBar to your page:
http://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/devutils/debugbar/DebugBar.html

Then analyze the output in the AjaxConsole (lower right corner of your screen).
You should see all the AJAX replies from the server to your browser.

You can also use breakpoints and figure out what's going on in your Java code 
on the server side.

Read up on Wicket and AJAX in chapter 16 of the Wicket Free Guide at:
http://wicket.apache.org/learn/books/

Have a great day,
Paul Bors

On Jun 20, 2013, at 4:54 PM, Paul Bors p...@bors.ws wrote:

 Stack trace?
 
 -Original Message-
 From: Marios Skounakis [mailto:msc...@gmail.com] 
 Sent: Thursday, June 20, 2013 4:12 PM
 To: users@wicket.apache.org
 Subject: Ajax form submit and Tomcat maxPostSize/connectionTimeout
 
 Hi all,
 
 I have the following problem:
 - User submits form with lots of textareas via ajax
 - User gets a blank page
 
 I think (but I'm not quite sure yet) this happens when the textareas contain
 so much text that either maxPostSize or connectionTimeout (submit tries to
 store to db as well) are exceeded.
 
 The weird thing is that there is no exception. The form comes back after the
 ajax request with blank components.
 
 Has anyone else seen this behavior? Why is there no exception?
 
 Thanks
 Marios
 


Re: Model is null after submit, using FormComponentPanel

2012-12-05 Thread Paul Borș
Take a look at https://cwiki.apache.org/WICKET/working-with-wicket-models.html

Okay so Account is the type of the model object and your FormComponentPanel 
seem to work off a CustomerAccountCodeModel:
 CustomerAccountCodeModel ccc = getModelObject();


If I'm understanding this right, what does your CustomerAccountCodeModel's 
getObject() and setObject() do?

I would switch to a CompundPropertyModel and I would leave the models null for 
the form fields. This way you won't need any your own implementation of 
onModelChange().

~ Thank you,
Paul Bors

On Dec 4, 2012, at 1:48 PM, Joachim Schrod jsch...@acm.org wrote:

 Raul wrote:
 Thank Col, But I have no validation, my component code is the code of the
 component is
 
 public class CustomerAccountCode extends
FormComponentPanelAccount {
 
private FormComponentString entity;
private FormComponentString office;
private FormComponentString dc;
private FormComponentString number;
 
 
public CustomerAccountCode(String id, ModelAccount model) {
super(id, model);

entity = new TextFieldString(entity, new ModelString());
office = new TextFieldString(office, new ModelString());
dc = new TextFieldString(dc, new ModelString());
number = new TextFieldString(number, new ModelString());
 
onModelChanged();
add(entity);
add(office);
add(dc);
add(number);
 //add(CustomerAccountCodeValidator.getInstance());
 
}
 
protected void onModelChanged() {
super.onModelChanged();
CustomerAccountCodeModel ccc = getModelObject();
if (ccc != null) {
entity.setModelObject(ccc.getEntity());
office.setModelObject(ccc.getOffice());
dc.setModelObject(ccc.getDc());
number.setModelObject(ccc.getAccount());
} else {
entity.setModelObject(null);
office.setModelObject(null);
dc.setModelObject(null);
number.setModelObject(null);
}
}
 
 Did you try to use PropertyModels of your account object, maybe a
 CompoundPropertyModel instead of setting the TextField's model
 objects in the constructor that way?
 
Joachim
 
 -- 
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Joachim Schrod, Roedermark, Germany
 Email: jsch...@acm.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


Re: DropDownChoice.setNullValid

2012-11-23 Thread Paul Borș
Are you confusing nullValid w/ nullAllowed?

~ Thank you,
   Paul Bors

On Nov 14, 2012, at 5:43 PM, Nick Pratt nbpr...@gmail.com wrote:

 As a followup - if you dont pass the null in the choices list, then it
 works as expected.
 
 
 On Wed, Nov 14, 2012 at 5:35 PM, Nick Pratt nbpr...@gmail.com wrote:
 
 public ListString choices = Arrays.asList(null,RENDER,ENABLE);
 DropDownChoiceString defaultPerm = new DropDownChoice( perm,
 permModel, choices );
 defaultPerm.setNullValid( true );
 
 When this renders, I see a select box with 4 options - 2 blanks, and the
 two text options.
 I expected to only see three - a blank (null) and the two text options.
 
 Is this expected behavior? (Wicket 6.2)
 
 
 Nick
 

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



Re: Wicket 1.5.8 + EJB 3.1 - strange problem

2012-11-23 Thread Paul Borș
Why don't you instead use a bigger and more robust IoC framework like Spring 
and a persistence framework you can trust like Hibernate?

Check out:
http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/

Have a great day,
Paul Bors

On Nov 19, 2012, at 8:39 AM, Satrix satrix...@gmail.com wrote:

 Nope. Look at the example:
 
 1. User has chose to add a product to the Cart (so now the cart number is 1
 and he can see that number in a proper place on the page).
 
 2. Now when he clicks back button - bean is recreated - so the cart number
 is 0 (list is recreated).
 
 3. BUT now when I click on any other link on my page container returns
 previous EJB bean so the cart number is 1.
 
 Btw Im using LoadableDetachableModel so there is no way that the user is
 seeing stale data.
 
 Regards, Satrix
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-EJB-3-1-strange-problem-tp4653977p4653995.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


Re: Updating datatable ajax

2012-11-23 Thread Paul Borș
Silly question, but do you refresh the table either via Ajax or a page refresh 
by sending a parameter of your data provider through a constructor or something?

Because simply manipulating the data provider will no magically redraw things 
on the screen :)

Put a log or break in your data provider and see it for your self.

Have a great day,
Paul Bors

On Nov 20, 2012, at 6:21 PM, anton antoniovalenciasp...@hotmail.com wrote:

 help please 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Updating-datatable-ajax-tp4653734p4654051.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: Updating datatable ajax

2012-11-23 Thread Paul Borș
I stand corrected as I missed one of your replies. I see now that you're using 
Ajax and you have a drop down of which value you would like to append an extra 
row to your table.

Yes, keep the list in memory if its small enough and add the enter in the 
correct place and the refresh the table via Ajax. As long as your data provider 
manipulates the same list it should work just fine.

If you want code examples let me know, I have plenty of those add new editable 
rows.

Have a great day,
Paul Bors

On Nov 24, 2012, at 1:03 AM, Paul Borș p...@bors.ws wrote:

 Silly question, but do you refresh the table either via Ajax or a page 
 refresh by sending a parameter of your data provider through a constructor or 
 something?
 
 Because simply manipulating the data provider will no magically redraw things 
 on the screen :)
 
 Put a log or break in your data provider and see it for your self.
 
 Have a great day,
 Paul Bors
 
 On Nov 20, 2012, at 6:21 PM, anton antoniovalenciasp...@hotmail.com wrote:
 
 help please 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Updating-datatable-ajax-tp4653734p4654051.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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



Re: Unable to get response page from PageRequestHandlerTracker

2012-08-28 Thread Paul Borș
Might help if you provide a stack trace for the NPE :)

Have a great day,
Paul Borș

On Aug 29, 2012, at 0:37, James Eliyezar ja...@mcruncher.com wrote:

 Hi,
 
 We recently migrated our application to wicket-1.5.8.
 
 We have an audit aspect based on Spring AOP that shall log the actions
 performed in the current page.
 In wicket 1.4 we use to get that like
 RequestCycle.get().getResponsePage().
 
 This has changed and I know that wicket 1.5 doesn't support this anymore.
 
 The suggested method as per the wiki is to use a custom
 RequestCycleListenerhttps://cwiki.apache.org/WICKET/requestcycle-in-wicket-15.html
 .
 
 Fortunately, as highlighted in the mailing list, there is a new class in
 wicket 1.5.8 named
 PageRequestHandlerTrackerhttp://apache-wicket.1842946.n4.nabble.com/Interpolate-response-with-IResponseFilter-td4651476.htmlto
 meet this common requirement.
 
 However, when we use
 PageRequestHandlerTracker.getLastHandler(RequestCycle.get()),
 and then attempt to call #getPage(), a null pointer exception is thrown.
 
 Am I doing something wrong here? Please give your suggestions.
 
 -- 
 Thanks  regards
 James Selvakumar
 mcruncher.com

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