Re: FormComponentPanel and list edit

2010-08-06 Thread Igor Vaynberg
so make it extend it. the same way formcomponentpanel does but minus the markup bits. -igor On Fri, Aug 6, 2010 at 6:01 AM, Joseph Pachod wrote: > hi > >  > >  > List convertedInput ; >  > >  > public void convertInput(){ >  >  List list= new ArrayList() >  >  // how to compose the list ? >    

Re: relationship of DAO to IDataProvider and DetachableLoadableModel

2010-08-06 Thread Leszek Gawron
On 2010-08-06 22:58, Chris Merrill wrote: On 8/6/2010 4:35 PM, Leszek Gawron wrote: you can actually do it in any class you like :) So I was about to ask how this works on deserialization, since the constructor will not be called. Then I re-read your previous and I think I now understand thi

Re: relationship of DAO to IDataProvider and DetachableLoadableModel

2010-08-06 Thread Chris Merrill
On 8/6/2010 4:35 PM, Leszek Gawron wrote: > you can actually do it in any class you like :) So I was about to ask how this works on deserialization, since the constructor will not be called. Then I re-read your previous and I think I now understand this "Injector injects a serializable proxy in

Re: relationship of DAO to IDataProvider and DetachableLoadableModel

2010-08-06 Thread Leszek Gawron
On Fri, Aug 6, 2010 at 10:30 PM, Chris Merrill wrote: > Wow, that was easy! Thanks!! > > Now, do I do the same thing in my LoadableDetachableModel?  (so that load() > can get > access to the DAO as well)  Should detach() be doing anything related to this? you can actually do it in any class you

Re: relationship of DAO to IDataProvider and DetachableLoadableModel

2010-08-06 Thread Chris Merrill
Wow, that was easy! Thanks!! Now, do I do the same thing in my LoadableDetachableModel? (so that load() can get access to the DAO as well) Should detach() be doing anything related to this? Chris On 8/6/2010 4:10 PM, Leszek Gawron wrote: > public class MyDataProvider ... { > > @SpringBean

Re: relationship of DAO to IDataProvider and DetachableLoadableModel

2010-08-06 Thread Leszek Gawron
On 2010-08-06 20:43, Chris Merrill wrote: I've been away from server-side development for quite a while...working on a massively multi-threaded network-centric Eclipse-based app . I'm now working on a proof-of-concept for the technology stack for an upcoming project web-based product and am tr

relationship of DAO to IDataProvider and DetachableLoadableModel

2010-08-06 Thread Chris Merrill
I've been away from server-side development for quite a while...working on a massively multi-threaded network-centric Eclipse-based app . I'm now working on a proof-of-concept for the technology stack for an upcoming project web-based product and am trying to get my head around Wicket, JPA, IOC

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread Martin Makundi
You don't lose for all fols if you check whether it is a bot or not... but the question remains.. what else do you strip by skipping super.encodeUrl except just jsessionid.. some other encoding happening there? ** Martin 2010/8/6 James Carman : > On Fri, Aug 6, 2010 at 1:06 PM,   wrote: >> Right

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread James Carman
On Fri, Aug 6, 2010 at 1:06 PM, wrote: > Right, I guess that's my question, what are you losing by not calling > super.encodeURL(url), but it may not matter because its only omitted for > bots in the SEO example > You're losing session support for folks who have said they don't want to allow coo

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread MZemeck
As a side effect you will disable session for cookieless connections. Wouldn't this be desired, ie bots... Depends what you want to strip/not-strip... skipping encoding also strips but I am not sure if there is any other encoding happening... Right, I guess that's my question, what are you losin

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread Martin Makundi
Hi! > 1.  What are the implications of stripping jsessionid for all users...like > so in app object... > CharSequence encodedUrl = super.encodeURL(url); > return Strings.stripJSessionId(encodedUrl); As a side effect you will disable session for cookieless connections. > 2.  What does super.encod

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread MZemeck
Yes I realize you've solved the jetty issue, but I was posing some additional questions relating to jsessionid... 1. What are the implications of stripping jsessionid for all users...like so in app object... CharSequence encodedUrl = super.encodeURL(url); return Strings.stripJSessionId(encodedU

Re: SV: back link

2010-08-06 Thread Leszek Gawron
On 2010-08-06 14:29, Wilhelmsen Tor Iver wrote: public TargetPage( IModel model, final Page returnPage ) { You should use PageReference objects instead to avoid issues with serialization. - Tor Iver - To unsubscribe, e-m

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread Martin Makundi
Hi! > And the Wicket SEO wiki provides a way to remove the JSessionId... > https://cwiki.apache.org/WICKET/seo-search-engine-optimization.html This particular code does not work for first browser hit. > I understand why you would want to remove the jsessionid for bots, would > it be "safe" to re

Re: BIRT Wicket Integration

2010-08-06 Thread sylvia
By the way, i'm just returning html, not the pdf. I have a pdf as a separate report option. So really I would just like to take the html version of my report and put it in a div tag. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/BIRT-Wicket-Integration-tp2315184p23

Re: AutoCompleteTextField and long result list in WebKit browsers

2010-08-06 Thread Thomas Gier
same behavior in wicket examples http://wicketstuff.org/wicket14/ajax/autocomplete.1 Am 06.08.10 15:56, schrieb Martin Grigorov: Try with newer Wicket. It could be fixed already. On Fri, Aug 6, 2010 at 3:33 PM, Thomas Gier wrote: Hi, I have problems with long result lists for an AutoComp

Re: BIRT Wicket Integration

2010-08-06 Thread sylvia
Yes, i was able to re-arrange my code to get to what I needed. Now I'm trying to get it into a div or panel instead of an iframe. I tried creating a DocumentDiv, similar to your DocumentInlineFrame and using that, but it doesn't seem to be working. Is there a limitation on what I can send the byte

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread MZemeck
On a related note... The Wicket Strings class provides the method stripJSessionId... http://wicket.apache.org/apidocs/1.4/org/apache/wicket/util/string/Strings.html#stripJSessionId(java.lang.CharSequence) And the Wicket SEO wiki provides a way to remove the JSessionId... https://cwiki.apache.org/

Re: Encrypt Form Fields Using JS

2010-08-06 Thread MZemeck
I should make it clear, the intention is to use SSL and JS one-way hash, not just JS... Jeremy Thomerson 08/03/2010 03:49 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: Encrypt Form Fields Using JS On Tue, Aug 3, 2010 at 1:24 PM, wrote: > I

Re: AutoCompleteTextField and long result list in WebKit browsers

2010-08-06 Thread Martin Grigorov
Try with newer Wicket. It could be fixed already. On Fri, Aug 6, 2010 at 3:33 PM, Thomas Gier wrote: > Hi, > > I have problems with long result lists for an AutoCompleteTextField in > WebKit-based browsers. We're using wicket 1.4.0. > > If the bottom of a result is outside the browser's viewport

AutoCompleteTextField and long result list in WebKit browsers

2010-08-06 Thread Thomas Gier
Hi, I have problems with long result lists for an AutoCompleteTextField in WebKit-based browsers. We're using wicket 1.4.0. If the bottom of a result is outside the browser's viewport and you scroll down so that now the text field itself is outside the view port, a selected list entry is not

Re: FormComponentPanel and list edit

2010-08-06 Thread Joseph Pachod
hi > > List convertedInput ; > > public void convertInput(){ > List list= new ArrayList() > // how to compose the list ? listeditor.convertinput(); setConvertedInput(listeditor.getconvertedinput()); -igorlisteditor isn't a FormComponent, so there's no convertinput to

Portlets in Liferay 5.2.3 -> 6.0.4

2010-08-06 Thread Wilhelmsen Tor Iver
We have some Wicket portlets that work fine in the Glassfish 2.1 + Liferay 5.2.3 combination, but fail in the more modern Glassfish 3.0.1 + Liferay 6.0.4 combo. What happens is that all requests always lead to a new (view or edit) page being constructed while in the old framework the portlet use

SV: back link

2010-08-06 Thread Wilhelmsen Tor Iver
>public TargetPage( IModel model, final Page returnPage ) { You should use PageReference objects instead to avoid issues with serialization. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additi

Re: back link

2010-08-06 Thread Leszek Gawron
On 2010-08-06 13:44, Alex Rass wrote: Hi. Here's a "cooky-wacky" problem: Added this to my markup: Back But when I am running this under the wicket (w/ FFox), it works great once. Then it starts jumping me back to this page after I leave it. Is there something I should be doing differently t

back link

2010-08-06 Thread Alex Rass
Hi. Here's a "cooky-wacky" problem: Added this to my markup: Back But when I am running this under the wicket (w/ FFox), it works great once. Then it starts jumping me back to this page after I leave it. Is there something I should be doing differently to create a back button? :) I know this i

Re: Tomcat 7 stylesheet problem

2010-08-06 Thread Thies Edeling
It's an odd thing with Tomcat. Do you have an index.html or index.jsp in your root dir? Remove that and suddenly it works. See the comments in https://issues.apache.org/jira/browse/WICKET-1205 On 08/06/2010 10:57 AM, PDiefent wrote: Hello, I tried to start my Wicket application with the new Tom

SV: Ajax-Panel Toggling Visibility

2010-08-06 Thread Wilhelmsen Tor Iver
> this.setModelObject(updatedModelInstance); Are you sure you do not mean setModel() instead of setModelObject() here? Also, look into whether you use setReuseItems(true) on the listview, then you probably want modelChanged() somewhere too. - Tor Iver --

RE: Tomcat 7 stylesheet problem

2010-08-06 Thread Alex Rass
Try posting that in the Tomcat forums. 7 is still an early beta. Could be just a bug or a config issue. - Alex -Original Message- From: PDiefent [mailto:pdief...@csc.com] Sent: Friday, August 06, 2010 4:57 AM To: users@wicket.apache.org Subject: Tomcat 7 stylesheet problem Hello, I tri

Re: Add/Remove Dynamic FormComponent In RepeatingView

2010-08-06 Thread Duy Do
Thanks a lot for your helps, Martin. I will give it a try. On Fri, Aug 6, 2010 at 12:14 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Use a reusemanager that manages the rawinput values. > > public class FormComponentReuseManager implements Serializable { > private final Map>

Re: Ajax-Panel Toggling Visibility

2010-08-06 Thread Nivedan Nadaraj
I initalised the ListView with some data and now when i click the search ajax button it renders the header and content that the list was first at the time of construction initialised with. However, as part of onSearch click i do update the list and set the model. This new data is not being rendered

Re: BIRT Wicket Integration

2010-08-06 Thread Ernesto Reinaldo Barreiro
Sylvia, On the article on the dzone you have options.setOutputStream(os); Where os is an OutputStream. What stop you from creating a ByteArrayOutputString and do the same as above? The you could use it to retrieve the bytes. Ernesto On Thu, Aug 5, 2010 at 8:53 PM, sylvia wrote: > > I can't g

Re: Ajax-Panel Toggling Visibility

2010-08-06 Thread Nivedan Nadaraj
Hi Thank's for correcting me on how to update the ListView, nicely explained. 1. I am able to view the results panel now. 2. I have made change in the following way to update the list by updating the model. Added a WebMarkupContainer and wrapped the ListView within it. The visibility is applie

Tomcat 7 stylesheet problem

2010-08-06 Thread PDiefent
Hello, I tried to start my Wicket application with the new Tomcat 7.0.0 release and got a problem with the stylesheet path: Source HTML: http://www.w3.org/1999/xhtml"; xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"; xml:lang="en" lang="en">

Re: Ajax-Panel Toggling Visibility

2010-08-06 Thread Wilhelmsen Tor Iver
> searchResults = new SearchResults("id",list); //-> Not sure if this > is the > correct way to refresh a ListView... It's not. Creating a new object like this will defeat the logic because it has not been added to the hierarchy that the Ajax call expects. What you want to do is to modify the

Re: Ajax-Panel Toggling Visibility

2010-08-06 Thread Niv
Hi I think I failed to explicitly mention that the panel is not being made visible even though the code to setVisible is executed. Thanks niv -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Panel-Toggling-Visibility-tp2316018p2316020.html Sent from the Wicket

Ajax-Panel Toggling Visibility

2010-08-06 Thread Niv
Hi I got an issue with making a panel visible via Ajax. I had a look at the following link to refer and I seemed to have done all that was mentioned out there. http://apache-wicket.1842946.n4.nabble.com/Panel-setVisible-in-Ajax-call-td1861998.html#a1861998 When i first create the panel, I se