Getting a JS confirmation when uploading via Ajax

2009-06-23 Thread HHB
Hey, I'm uploading a file via Ajax, I literally copied the Wicket sample application. The uploading form is included in a modal window. Upon clicking on the upload button, I got a JavaScript dialog: ++ Are you sure you want to navigate from this page? Reloading this page will cause the

Re: Tips to start writing tests

2009-05-26 Thread HHB
gt; tester.setupRequestAndResponse(); > MySession wicketSession = (MySession) tester.getWicketSession(); > wicketSession.setUser(fakeUser); > } > > > /Per > > > 2009/5/26 HHB : >> Hey, >> I want to write tests for my Wicket pages and panels. >> Th

Tips to start writing tests

2009-05-26 Thread HHB
Hey, I want to write tests for my Wicket pages and panels. The application is guarded via login functionality and all the pages and panels are depending on a User object in the session. I know who to write tests for Wicket, but I'm not sure what to do in my case due the authentication and authoriza

Re: Whats wrong with my component?

2009-05-26 Thread HHB
: > > So the TextArea gets a CompoundPropertyModel that has a MessageVO object. > > The MessageVO has a method "getLanguage" ? > > How should the TextArea display the contents of MessageVO? > > HTH > > /Per > > 2009/5/24 HHB : >> >>

Re: Whats wrong with my component?

2009-05-24 Thread HHB
> MessageTextArea's model is bound to what? > > On Sun, May 24, 2009 at 7:32 AM, HHB wrote: >> >> Would you please tell me in code (my code I posted earlier) what do you >> mean? >> I really appreciate your time and help. >> >> >> igor.

Re: Whats wrong with my component?

2009-05-24 Thread HHB
o your model? > > -igor > > On Thu, May 21, 2009 at 4:45 AM, HHB wrote: >> Hey, >> I'm trying to create my first component in Wicket: >> + >> public class MessageTextArea extends >>    FormComponentPanel { >> >>    private S

Error while trying to run tests

2009-05-24 Thread HHB
Hey, Our application is built on Wicket 1.3.5 , Spring 2.5 and Hibernate 3.2 I'm trying to write tests (with TestNG) for Wicket pages and panels: ++ WicketFilter org.apache.wicket.protocol.http. WicketFilter applicationFactoryClassNa

Re: Whats wrong with my component?

2009-05-21 Thread HHB
tArea("text", > model).setRequired(true).setOutputMarkupId(true); > add(textArea); > } > } > > Also, I don't think that you need at all to setOutputMarkupId to true, do > you use ajax? It seems that your component doesn't do anyth

Re: Whats wrong with my component?

2009-05-21 Thread HHB
> will try to find a mapping from the parent based on its wicket id. > > In your case, if the MessageVO would have a "text" property (with setters > and getters) everything would work fine. > > Alex > > > HHB wrote: >> >> Hey, >> I&#

Re: Whats wrong with my component?

2009-05-21 Thread HHB
ing from the parent based on its wicket id. > > In your case, if the MessageVO would have a "text" property (with setters > and getters) everything would work fine. > > Alex > > > HHB wrote: >> >> Hey, >> I'm trying to crea

Writing tests for protected components

2009-05-21 Thread HHB
Hey, I want to write tests for my Wicket pages and panels. The application is guarded via login functionality and all the pages and panels are depending on a User object in the session. I know who to write tests for Wicket, but I'm not sure what to do in my case due the authentication and authori

Whats wrong with my component?

2009-05-21 Thread HHB
Hey, I'm trying to create my first component in Wicket: + public class MessageTextArea extends FormComponentPanel { private String text; public MessageTextArea(String id) { this(id, null); } public MessageTextArea(String id, IModel model) { su

Why I'm getting an empty list?

2009-05-19 Thread HHB
Hey, This problem is really driving me crazy. I have this panel that I want to set it as the content of a ModalWindow. + public abstract class GroupsPalettePanel extends BasePanel { private ArrayList selectedGroups = new ArrayList(); public Gr

Re: How to get ride of page's state?

2009-05-18 Thread HHB
gt; Make it stateless :) > > 2009/5/18 HHB : >> Hey, >> How to get ride of the page's state after the request is done? >> Thanks. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr.

How to get ride of page's state?

2009-05-18 Thread HHB
Hey, How to get ride of the page's state after the request is done? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Misfunctionality in WIA source code

2009-05-17 Thread HHB
Hey, I think the code of chapter 11 of "Wicket In Action" book isn't functioning properly. After logging in, try to logout, you should notice that you are still in the same page and you have to click on Logout link again in order to be taken to the sign in page. Any ideas? I'm using the same log

Displaying parameterized text

2009-05-11 Thread HHB
Hey, I have parameterized message in the properties file. Is there a Wicket specific component to display this parameterized text or I have to fallback to MessageFormat and Label? Thanks. - To unsubscribe, e-mail: users-unsubsc

How to manipulate values in a data table?

2009-05-06 Thread HHB
Hey, I have a message class that has a status (which it is an integer) to indicate whether the message has been sent successfully. Inside a data table, how to handle this integer values so instead of displaying 0 or 1, it displays "Sent" or "Not Sent"? Thanks. ---

How to append JavaScript to a link?

2009-05-05 Thread HHB
Hey, The last cell in a data table is a link (that is contained in a form) that will delete the row. How to append JavaScript code that will display a confirmation dialog? Thanks for help and time. - To unsubscribe, e-mail: users

Why the ModalWindow isn't getting closed?

2009-05-05 Thread HHB
Hey, I have a ModalWindow with an Ajaxified form. Upon a successful submitting, a data table in the original panel that caused the modalwindow to be appeared is getting updated. The problem is the close button of the ModalWindow is not working, I mean the window isn't getting shut down. editCont

How to enable debugging port for Jetty

2009-05-03 Thread HHB
Hey, How to enable debugging port for Jetty server that is launched via the command: mvn jetty:run ? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache

Re: How to remove a row from DataTable?

2009-04-30 Thread HHB
Thanks, your suggestion works like a charm. I like the technique of using abstract method, you have a Swing development background, right? Thanks again. Mathias P.W Nilsson wrote: > > I don't know if you can remove one row and just update the row as you can > with TreeTable but maybe some here

How to remove a row from DataTable?

2009-04-30 Thread HHB
Hey, I employed AjaxFallbackDefaultDataTable to list contacts. The last column contains a delete link that I created it this way: final List columns = new ArrayList(); columns.add(new AbstractColumn(new Model("Delete")) { public void populateItem(Item cellItem,

Re: Not a Wicket question but ...

2009-04-30 Thread HHB
s nothing todo with C3P0 afaik. > > 2009/4/30 HHB : >> Hey, >> I understand this is not a Wicket question but I hope I can get some >> help. >> Our application uses c3p0 connection pooling. >> How to set the character encoding for database connection? >> Ev

Not a Wicket question but ...

2009-04-30 Thread HHB
Hey, I understand this is not a Wicket question but I hope I can get some help. Our application uses c3p0 connection pooling. How to set the character encoding for database connection? Even if you aware of how to set the character encoding for Apache DBCP, I will be thankful. The application is bui

Which repeater to use for my case?

2009-04-29 Thread HHB
Hey, I'm using a PageableListView with Ajax-enabled paginator. My team leader asked me to add two buttons in front of each row: Edit and Delete button. Edit will bring a ModalWindow to edit the contact. Delete will delete the record from the backend. For this functionality, which repeater do you su

Re: Why I'm getting NPE?

2009-04-29 Thread HHB
y SpringComponentInjector--but > that only works with components.) > > You can call InjectorHolder.getInjector().inject(whatever) to resolve > @SpringBean annotations in the whatever object. > > W > > > > On Apr 29, 2009, at 6:38 AM, HHB wrote: > &g

Why I'm getting NPE?

2009-04-29 Thread HHB
Hey, I'm trying to employ DataTable in our application. * public class SortableContactDataProvider extends SortableDataProvider { @SpringBean private Service service; private Group group; public SortableContactDataProvider(Group group) { if (g

How to erase model values?

2009-04-28 Thread HHB
Hey, Usually, I set the model for a form like this: final Form form = new Form("form", new CompoundPropertyModel(new Contact())); But when the panel or the modalwindow that contains the form is rendered again, the model's values are still saved and displayed. So upon successful operatio

Any RefreshingView-like repeater but with pagination?

2009-04-28 Thread HHB
Hey, Is there any repeater that has the features of RefreshingView but supports paginations? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

How to get an i18n message?

2009-04-27 Thread HHB
Hey, How to get a message (that will be displayed in FeedbackPanel) from properties file in order to use it for info() method of Component class? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additiona

Example of DataTable and Hibernate

2009-04-27 Thread HHB
Hey, Do you know any example regarding using DataTable repeater with Spring Dao bean (Hibernate preferably)? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket

Re: PagingNavigator isn't working properly

2009-04-26 Thread HHB
actual objects to >> show? >> >> new Model() doesn't provide a list to iterate through. >> >> Martijn >> >> On Sun, Apr 26, 2009 at 12:05 PM, HHB wrote: >>> Hey, >>> I have a panel that consists of two divs: >>> one for listi

PagingNavigator isn't working properly

2009-04-26 Thread HHB
Hey, I have a panel that consists of two divs: one for listing available groups. second will display contacts for a group. The contacts div will get populated upon clicking of group name. ** public class ContactsModel extends LoadableDetachableModel { private

Embedding a ListView in scrollable area

2009-04-23 Thread HHB
Hey, I have a ListView that could hold a lot of rows. Is there a way to embed the list view an a scroll-able area/thing? or I have to fallback to pagination ? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

How to set content of an ajax enabled link?

2009-04-23 Thread HHB
Hey, Is there a way to set the content of a link dynamically (the value is coming from model object)? The link has to be Ajax enabled for sure. Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Basic help please

2009-04-22 Thread HHB
Hey, I have a panel that consists of two parts: the first lists groups names. the second lists the contacts of a group, which gets populated upon clicking on the group name (via Ajax). Group Name

Re: Submitting form via Ajax isn't working

2009-04-19 Thread HHB
ase. Also, your > feedback panel probably needs setOutputMarkupId(true) to be of any > use, given that you're submitting with ajax. > > -Clint > > On Sun, Apr 19, 2009 at 9:11 AM, HHB wrote: >>

Submitting form via Ajax isn't working

2009-04-19 Thread HHB
Hey, I have a form and I want to submit it via Ajax: public CreateGroupPanel(String id)

Re: GWT vs. Wicket?

2009-04-13 Thread HHB
Currently, I'm rewriting our GWT-based application and I picked Wicket. GWT is delicious but only on papers. GWT cons: 1. lack of roles separation, building the GUI in the code doesn't work for me. 2. Hibernate integration is a nightmare. 3. Unit testing isn't that agile thing. I like GWT but I wo

Re: Spring integration problem

2009-04-06 Thread HHB
framework.web.context.ContextLoaderListener >> >> >> contextConfigLocation >> WEB-INF/applicationContext.xml >> >> >> Regards, >> >> >> Leandro. >> >> >> 2009/4/6 HHB >>

Spring integration problem

2009-04-06 Thread HHB
Hey, I'm trying to integrate Spring 2.5 into our Wicket application, I did the following: web.xml: contextConfigLocation classpath:applicationContext.xml org.springframework.web. context.ContextLoaderListener OpenSessionInViewFilter

Tips to implement this switch technique

2009-04-06 Thread HHB
Hey, For our application layout we decided to go with switching panels technique. The Index page contains the navigation panel which contains links to switch panels. I know how to implement this technique but only when the links that are supposed to switch panels are on the same Index page, not

How to refer to files under /WEB-INF ?

2009-04-02 Thread HHB
Hey, How to refer to files under /WEB-INF/js in Wicket templates? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: NPE : Exception in rendering component

2009-04-02 Thread HHB
Issue solved, I'm using href instead of src attribute of script tag HHB wrote: > > Hey, > I created this panel: > > > > > > > > > > > > # First header > >

NPE : Exception in rendering component

2009-04-02 Thread HHB
Hey, I created this panel: First header First content Second header Second content This is supposed to be jQuery Accordion component. public class NavigationPanel extends Panel {

What are those jars?

2009-04-02 Thread HHB
Hey, What are wicket-objectsizeof-agent-1.3.5 wicket-datetime-1.3.5 wicket-velocity-1.3.5 wicket-auth-roles-1.3.5 Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@

Employ JQuery Accordion in Wicket

2009-04-01 Thread HHB
Hey, My team lead is insisting on employing JQuery Accordion in our Wicket application. As you know that the Accordion consists of pairs of headers and contents panels. The requirement is to hide/show some pairs depending on the user's permission. Is is possible to do so? if yes, would you plea

Start Wicket project with Spring and Hibernate

2009-03-31 Thread HHB
Hey, Our new Wicket application is to be build with Spring and Hibernate, so I included these: org.springframework spring 2.5.6 org.hibernate hibernate 3.2.6.ga org.apac

Re: Equivalent of StackPanel for Wicket

2009-03-29 Thread HHB
2007/06/wicket-jquery-tab-component.html > [2] - https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff > [3] - http://code.google.com/p/wickext/ > > > > 2009/3/29 HHB > >> >> The stack panel (or the suggested jQuery) is the navigation widget for >> the >&

Re: Equivalent of StackPanel for Wicket

2009-03-29 Thread HHB
The stack panel (or the suggested jQuery) is the navigation widget for the application which means it should be part of the markup of the top level parent class. Should this jQuery widget be wrapped as Wicket component? Leszek Gawron-2 wrote: > > HHB wrote: >> Hey, >>

Equivalent of StackPanel for Wicket

2009-03-26 Thread HHB
Hey, I want to employ something like StackPanel of GWT in my Wicket application. Any production ready component? Thanks for help and time. -- View this message in context: http://www.nabble.com/Equivalent-of-StackPanel-for-Wicket-tp22726615p22726615.html Sent from the Wicket - User mailing list

Re: Why Wicket application contains maven-jetty-plugin?

2009-02-08 Thread HHB
Does maven-jetty-plugin getting used when we run Wicket tests (WicketTester), you know, integration tests? Timo Rantalaiho wrote: > > On Sun, 08 Feb 2009, HHB wrote: >> Why POM of a Wicket skeleton application contains maven-jetty-plugin? > > To be able to run your ap

Why Wicket application contains maven-jetty-plugin?

2009-02-08 Thread HHB
Hey, Why POM of a Wicket skeleton application contains maven-jetty-plugin? Thanks. -- View this message in context: http://www.nabble.com/Why-Wicket-application-contains-maven-jetty-plugin--tp21899056p21899056.html Sent from the Wicket - User mailing list archive at Nabble.com. ---

Behaviors and Strategy pattern

2009-02-08 Thread HHB
Hey, Is Behaviors in Wicket are implementation of the Strategy Pattern? Thanks. -- View this message in context: http://www.nabble.com/Behaviors-and-Strategy-pattern-tp21897409p21897409.html Sent from the Wicket - User mailing list archive at Nabble.com. --

Re: Getting an error when trying to install via Maven

2009-01-26 Thread HHB
hanks. Michael Sparer wrote: > > Looks like you're mixing up different wicket versions. wicket.Initializer > was before the move to apache. Check your pom if you're using different > wicket versions - or perform a clean if you did an update recently > > hth, > Michael

Re: Getting an error when trying to install via Maven

2009-01-26 Thread HHB
hanks. Michael Sparer wrote: > > Looks like you're mixing up different wicket versions. wicket.Initializer > was before the move to apache. Check your pom if you're using different > wicket versions - or perform a clean if you did an update recently > > hth, > Michael

Getting an error when trying to install via Maven

2009-01-25 Thread HHB
Hey, I created a Wicket skeleton project via Maven. When trying to install the project, I got this error: java.lang.ClassCastException: wicket.Initializer cannot be cast to org.apache.wicket.IInitializer at org.apache.wicket.Application.addInitializer(Application.java:755)

What are Behaviors in Wicket?

2009-01-18 Thread HHB
Hey, In easy words, what are Wicket Behaviors? what is their role? Thanks. -- View this message in context: http://www.nabble.com/What-are-Behaviors-in-Wicket--tp21525487p21525487.html Sent from the Wicket - User mailing list archive at Nabble.com.

RE: How much this graph is accurate?

2009-01-05 Thread HHB
essage- > From: HHB [mailto:hubaghd...@yahoo.ca] > Sent: Monday, January 05, 2009 9:37 AM > To: users@wicket.apache.org > Subject: RE: How much this graph is accurate? > > > What does this mean? > :-/ > > Hoover, William wrote: >> >> I think

Re: Question

2009-01-05 Thread HHB
Any preferred nationalities? Joshua Stein-4 wrote: > > A couple of users have told me that I should post more information on > what we are looking for, so here it is. We are a startup looking for > someone to take us through our beta phase and beyond. Urgently, we > need someone to develo

RE: How much this graph is accurate?

2009-01-05 Thread HHB
What does this mean? :-/ Hoover, William wrote: > > I think this: > http://www.indeed.com/jobtrends?q=Seam%2C+Grails%2C+Tapestry%2C+Wicket%2 > C+Stripes&l=&relative=1 is more accurate ;o) > > -Original Message- > From: HHB [mailto:hubaghd...@yahoo.ca] >

How much this graph is accurate?

2009-01-05 Thread HHB
Hey, How much this graph is accurate? http://www.indeed.com/jobtrends?q=Seam%2C+Grails%2C+Tapestry%2C+Wicket%2C+Stripes&l= Tapestry is so hot these day?:confused: Don't get me wrong, I respect Tapestry and HLS, I only find it strange. T5 has only one book and you can hardly find some one blog abou

Re: [OT] Merb-Rails Merge

2008-12-25 Thread HHB
good replacement of PHP, nothing more. > I think you severely underestimate both. (When given to the right people > of course.) > >> I hope Java web frameworks never got merged together. >> > Too late :) Struts merged with Webworks. > > But I agree; choice is goo

Re: [OT] Merb-Rails Merge

2008-12-24 Thread HHB
I hope Java web frameworks never got merged together. Whenever my Rails dudes points toward how many Java has web frameworks and considering this as a bad thing, I smile. I smile because they don't have an option, just Rails. We (Java guys), have request/action frameworks, component-based framewor

Re: Multi-tap operations in Wicket

2008-12-23 Thread HHB
are kept as state. This is done by storing complete page > component hierarchies to a page map. Usually you have one page map per > session. Wicket's transaction support is no better or worse then the > next web framework. > > Regards, > Erik. > > > HHB wrote: &

Re: Multi-tap operations in Wicket

2008-12-22 Thread HHB
Erik. > > > PS. If that really is /the/ gem of Seam, you're in for a treat with > Wicket! ;) > > > HHB wrote: >> This effects all the Wicket pages in the application, right? >> Seam folks advertise this feature as one of the gems of Seam framework, >&g

Re: Multi-tap operations in Wicket

2008-12-22 Thread HHB
ageSettings().getAutomaticMultiWindowSupport() and the > explanation given at javadoc. > On Mon, Dec 22, 2008 at 11:39 AM, HHB wrote: > >> >> Hey, >> Seam framework supports the multi-tab / multi-window operations, it >> isolates >> each process from the other out-of-the-b

Multi-tap operations in Wicket

2008-12-22 Thread HHB
Hey, Seam framework supports the multi-tab / multi-window operations, it isolates each process from the other out-of-the-box. Does Wicket offer the same thing? Thanks. -- View this message in context: http://www.nabble.com/Multi-tap-operations-in-Wicket-tp21125698p21125698.html Sent from the Wic

Re: Participating in Wicket

2008-12-18 Thread HHB
he > developers can review it. > > cheers. > > > On 18/12/2008, at 8:19 AM, HHB wrote: > >> >> Thanks. >> My problem is I don't where to start. >> Lets say I want to fix that bug, in order to know how to fix it, I >> have to >> be awar

Re: Participating in Wicket

2008-12-18 Thread HHB
his helpful. > > http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html > > Scott > > > On Wed, Dec 17, 2008 at 2:38 AM, HHB wrote: >> >> Thanks Martijn >> How do you suggest to start studying Wicket core code (I don't mean >> g

Re: When to pass object instance /class type?

2008-12-17 Thread HHB
We call setResponsePage(new CoolPage()) if want to pass some data to CoolPage and we call setResponsePage(CoolPage.class) if we only want to render CoolPage Am I right? HHB wrote: > > Hey, > What is the difference between: > setResponsePage(CoolPage.class) > and > setRespons

Re: Participating in Wicket

2008-12-17 Thread HHB
n we like your code and are tired of applying the fixes > for you, you might be proposed to become a committer yourself. > > Valuable info: > > http://apache.org/dev/contributors.html#patches > > Martijn > > On Wed, Dec 17, 2008 at 11:13 AM, HHB wrote: >> >>

Participating in Wicket

2008-12-17 Thread HHB
Hey, I really have a great passion toward Wicket framework and I really want to participate with their core developer teams. My problem is that this framework has really great and passion developers and I can't imagine myself trying to join them (nor they will accept, I think) not to mention this

Getting API/Wiki pages for offline reading

2008-12-14 Thread HHB
Hey, Why Wicket package doesn't include the API and Wiki pages (like Struts2 for example)? Any ideas how to get them for late night offline reading? Thanks. -- View this message in context: http://www.nabble.com/Getting-API-Wiki-pages-for-offline-reading-tp20998576p20998576.html Sent from the Wi

How to update base page panel from child page?

2008-12-14 Thread HHB
Hey, I use inheritance to do layout. The base page containing main section that should contains child's markup, and cart section. Child pages are supposed to perform operations that will update the cart section (lets say via Ajax). My question is how to ask the cart section to updates its state (

When to pass object instance /class type?

2008-12-14 Thread HHB
Hey, What is the difference between: setResponsePage(CoolPage.class) and setResponsePage(new CoolPage()) ? When to use each one? Thanks. -- View this message in context: http://www.nabble.com/When-to-pass-object-instance--class-type--tp20998410p20998410.html Sent from the Wicket - User mailing