Re: [Wicket-user] Sessionless Wicket?

2007-07-22 Thread Lec
> Yeah, you can give provide a HINT that they shouldn't be stored (that > they are stateless) by overriding getStatelessHint on the components > you put on the page. Note that if there is just one stateful component > on the page, that'll trigger the page to be marked as stateful UNLESS > you ex

Re: [Wicket-user] Page lifetime in wicket

2007-07-22 Thread Lec
By default which temp directory does all the all pages stored into? Johan Compagner wrote: > > With wicket 1.3 (and the SecondLevelCacheSessionStore thats default in > 1.3) > only one page is kept in (session)memory > this is the active page that is just rendered. All other pages (for > backbu

[Wicket-user] some errors appear in wicket-example 1.3beta2

2007-07-15 Thread Lec
I just run through the library sample - http://wicketstuff.org/wicket13/library/ Supposedly, if you don't key in the title and author field, it will show error as it has FormComponentFeedbackBorder component wrapped around the title and author fields. but in wicket1.3 beta2, it seems like it does

[Wicket-user] Why wicket-phonebook 1.3 doesn't reload and run in glassfish?

2007-07-03 Thread Lec
I have been trying to figure out a reason as to why wicket-phonebook 1.3 couldn't be executed anymore after reloading in glassfish but it can be done in tomcat 5.x...I could reload it in glassfish without seeing error on the glassfish console, but if i type the URL pointing to the wicket-phonebook

Re: [Wicket-user] Error reloading wicket-phonebook - wicket1.3 in glassfish

2007-06-30 Thread Lec
How does the code look like to kill off the ehcache Thread I tried ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); LogFactory.release(contextClassLoader); but it doesn't work igor.vaynberg wrote: > > On 6/30/07, Lec <[EMAIL PRO

Re: [Wicket-user] Paging data without using DataProvider.size() ?

2007-06-30 Thread Lec
hie Gwyn, May be this will help - read all the threads http://www.nabble.com/RE%3A--Contract-for-%22Iterator-IDataProvider.iterator%28int-first%2C-int-count%29%22-tf1395451.html#a11057660 Gwyn wrote: > > Hi, > > Anyone got any suggestions as to the best way to provide a pag

Re: [Wicket-user] Error reloading wicket-phonebook - wicket1.3 in glassfish

2007-06-30 Thread Lec
ested resource () is not available. And i had no chance at all to trace what error caused the http 404. Take note, this is only happened when I reload in glassfish. I had no problem reloading in tomcat. Would be appreciated if somebody can give me a pointer here. Thanks Lec wrote: > > If i dep

[Wicket-user] Error reloading wicket-phonebook - wicket1.3 in glassfish

2007-06-30 Thread Lec
If i deploy the war file and run it, it works fine for the first time. But if i reload the exploded directory in glassfish, it gave me this strange error. So Im wondering if anybody know what this error means... What strange is, this doesn't happen in tomcat 5.1.x.x but in glassfish. And it 's run

Re: [Wicket-user] where can i get the wicket1.3 documentation

2007-06-27 Thread Lec
hmm..how about site for the javadoc wicket1.3 extension? and where is the site that I download all these 1.3 javadoc? thanks If you mean 1.3 api javadoc, it is here: http://www.wicketstuff.org/wicket13doc/ - This SF.net ema

Re: [Wicket-user] where can i get the wicket1.3 documentation

2007-06-26 Thread Lec
thanks guyz ptrthomas wrote: > > On 6/26/07, Lec <[EMAIL PROTECTED]> wrote: >> >> >> Im just wondering where can i get the wicket1.3 documentation. Been >> searching >> around but to no avail >> Would be appreciated if somebody point me to the

[Wicket-user] where can i get the wicket1.3 documentation

2007-06-25 Thread Lec
Im just wondering where can i get the wicket1.3 documentation. Been searching around but to no avail Would be appreciated if somebody point me to the site. -- View this message in context: http://www.nabble.com/where-can-i-get-the-wicket1.3-documentation-tf3980393.html#a11299683 Sent from the W

Re: [Wicket-user] ?Contract for "IteratorIDataProvider.iterator(int first, int count)" ???

2007-06-11 Thread Lec
in a cache and use that. > > so basically, dont cry wolf until you actually encounter the problem. > you can play what-if for a long time :) > > -igor > > On 6/10/07, Lec < [EMAIL PROTECTED]> wrote: > > > Igor, > > if calling paging 1,2,3

Re: [Wicket-user] IDataProvider.size()

2007-06-10 Thread Lec
Eelco, What i mean is that, you don't necessary have to cache the result just do the paging lists. you can directly call the db to query the page just like that... void iterator( int first, int count) { db.getPage( parameter, first, count ).iterator(); } int size() { db.getPageCount

Re: [Wicket-user] IDataProvider.size()

2007-06-10 Thread Lec
ength of the request. > > You can verify, but I don't think memory will be an issue there. > > -- > Jeremy Thomerson > jthomerson AT users DOT sourceforge DOT net > > On 6/10/07, Lec <[EMAIL PROTECTED]> wrote: >> >> >> Why would want to cach

Re: [Wicket-user] IDataProvider.size()

2007-06-10 Thread Lec
Why would want to cache the result? what happened if the results returned are big and if that s not enought, what will happened if 5000 concurrent users are accessing the paging and hence caching a potential big records returned? the memory of the server will be eaten away right? Timo Stamm wro

Re: [Wicket-user] ?Contract for "Iterator IDataProvider.iterator(int first, int count)" ???

2007-06-10 Thread Lec
cuted? Lec wrote: > > Igor, > > if calling paging 1,2,3 n each time requires a call to > iterator(first, count) and size(), which means a call to db, wouldn't this > way, it ll give a bottleneck at the database layer? Imagine there are > about concurrent 5000 us

Re: [Wicket-user] ?Contract for "Iterator IDataProvider.iterator(int first, int count)" ???

2007-06-10 Thread Lec
Igor, if calling paging 1,2,3 n each time requires a call to iterator(first, count) and size(), which means a call to db, wouldn't this way, it ll give a bottleneck at the database layer? Imagine there are about concurrent 5000 users doing the pagingim sure the database will slow

Re: [Wicket-user] Getting error - java.lang.VerifyError: class wicket.behavior.AbstractAjaxBehavior overrides final method getComponent.()Lwicket/Component

2007-06-06 Thread Lec
t, it runs fine during the war file loading up, but as when the webapp runs during runtime, it just generate this error. Anyway, hope this will provide one of the trace that could help if somebody face the same problem as me in the future. *wink* *wink*<^O^><3 Lec wrote: > > What d

[Wicket-user] Getting error - java.lang.VerifyError: class wicket.behavior.AbstractAjaxBehavior overrides final method getComponent.()Lwicket/Component

2007-06-06 Thread Lec
What does this error means? I got this error when I my webapp war into another newer version of application server. I have been trying to figure out the whole day finding what the root problem is, but still couldn't find any. Help needed 29b66-d8b8-429a-922c-a6b41e70348c;|StandardWrapperValve[fcs

Re: [Wicket-user] How to position the panel tab

2007-05-30 Thread Lec
Do you happen to know the attribute and its value for setting the position to the right? Timo Rantalaiho wrote: > > On Wed, 30 May 2007, Lec wrote: >> I need some guidance. By default, normally we will see either a panel tab >> or >> multiple tab appear on the far left

[Wicket-user] How to position the panel tab

2007-05-30 Thread Lec
I need some guidance. By default, normally we will see either a panel tab or multiple tab appear on the far left of the screen. How do we position them ( the panel tabs ) in such a way that they will appear on the far right rather than the left? -- View this message in context: http://www.nabble

Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-23 Thread Lec
click();"); run in IE and mozilla. Currently this code only run in IE but not in Firefox. Is this a bug? Gerolf Seitz wrote: > > i meant you should rather call > document.getElementById('paragraph').onclick() > than > document.getElementById('paragraph&#

Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-22 Thread Lec
rror with click() in firefox. > onclick() worked like a charm. > > hth, > gerolf > > On 5/22/07, Lec <[EMAIL PROTECTED]> wrote: >> >> >> This portion of code works in IE >> >> public void onClick( AjaxRequestTarget target ) >> { >>

Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-22 Thread Lec
ing javascript: TypeError: document.getElementById("paragraph").click is not a function Is this a bug? igor.vaynberg wrote: > > you do this using javascript, no roundtrip to the server is required. see > some "smooth scroll" javascripts on the net. > > -igor > >

Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Lec
to trouble myself for now. Any other workaround to this? Johan Compagner wrote: > > AjaxRequestTarget has an own method now for giving a component focus: > http://wicketstuff.org/wicket13doc/org/apache/wicket/ajax/AjaxRequestTarget.html > > > On 5/21/07, Lec <[EM

Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Lec
pCompoent.getMarkupId() + "').focus();"); } }); Tracing back the error, it said "has no properties". what does that mean? Timo Rantalaiho wrote: > > On Mon, 21 May 2007, Lec wrote: >> compo

[Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Lec
Im trying to figure out a way to make button behave as if it's like a link component upon clicked. I want a button to archieve the same behaviour as link, and upon clicked, a particular html region will be focused or displayed, just like the same behaviour when you setAnchor in link component. But

Re: [Wicket-user] Check the mime type of uploaded file and its binary content

2007-05-21 Thread Lec
Thanks Johan Lec wrote: > > How to check the binary contents of the uploaded file. For example, to > prevent the fake file being uploaded, because I really want to check if > the uploaded file is really the pdf file or image file. How can you do it? > I realise checking the m

Re: [Wicket-user] Check the mime type of uploaded file and its binary content

2007-05-18 Thread Lec
How do I do that? Any pointer? igor.vaynberg wrote: > > you want to check the received bytes as the file is being uploaded? > > -igor > > > On 5/18/07, Lec <[EMAIL PROTECTED]> wrote: >> >> >> How to check the binary contents of the uploaded f

[Wicket-user] Check the mime type of uploaded file and its binary content

2007-05-18 Thread Lec
How to check the binary contents of the uploaded file. For example, to prevent the fake file being uploaded, because I really want to check if the uploaded file is really the pdf file or image file. How can you do it? I realise checking the mime type of the file is not enough as the file extension

Re: [Wicket-user] use images in pagingNavigator

2007-04-21 Thread Lec
logic to create the navigation, links, etc. Just keep the > wicket id's and markup hierarchy intact in your html file. > > The only reason you would need to re-implement is if you actually > want to add new components to the links. But hopefully I just > demonstrated two w

Re: [Wicket-user] use images in pagingNavigator

2007-04-21 Thread Lec
If this is the case of implementation in the markup, then how do we go about doing its implementation in Subclass of ajax paging navigator. Do we need to combine its implementation with the AjaxPagingNavigation, AjaxPagingNavigationLink and AjaxPagingNavigationBehaviour all together? how do these

Re: [Wicket-user] How to get desired DataTable layout

2007-04-21 Thread Lec
cket/ItemListPanel.java?r=946 > > It's not Ajax, but may help as a reference. The pagination code is lines > 75 > - 167 > > HTML code is here: > > http://fisheye3.cenqua.com/browse/j-trac/trunk/jtrac/src/main/java/info/jtrac/wicket/ItemListPanel.html?r=962 > > Reg

Re: [Wicket-user] How to get desired DataTable layout

2007-04-20 Thread Lec
iour. But I don't know where to begin and what I'm missing now. A sample skeleton code will greatly help me to understand the correlation here. :) Any helps for me on this? igor.vaynberg wrote: > > On 4/20/07, Lec <[EMAIL PROTECTED]> wrote: >> >> >> I didn

Re: [Wicket-user] How to get desired DataTable layout

2007-04-20 Thread Lec
on practice with repeaters, you cannot repaint them > directly, > but rather have to repaint some container higher above. > > by default ajaxpagingnavigator repaints the ipageable, when that is a > tag (datatable) it works fine, when it isnt you have to do a bit > more work. &g

Re: [Wicket-user] How to get desired DataTable layout

2007-04-19 Thread Lec
I try to click onto other page number, the displayed data still remain on the same page of the GridView. Any idea? Lec wrote: > > Hie Igor, > I need to check with you. I noticed GridView only works in > PagingNavigator but not in AjaxPagingNavigator, and to have it work

Re: [Wicket-user] How to get desired DataTable layout

2007-04-19 Thread Lec
Hie Igor, I need to check with you. I noticed GridView only works in PagingNavigator but not in AjaxPagingNavigator, and to have it working in AjaxPagingNavigator, I tried implementing a "IPageable" interface into GridView but it wasn't fruitful. As far as I know and If im right about