FileUploads - keep them around for multiple requests...

2009-07-16 Thread Ned Collyer
I'm building a wizard. It has 3 steps. Persistence occurs for all my models after the completion of the 3rd step. Each step has a number of forms. Each form is brought in dynamically from 3rd party jars. This works great so far. The exception to the rule is FileUploads - as these are only

Re: Nested forms not working in wizard.

2009-07-16 Thread Ned Collyer
Thanks I got it sorted. Previously I was overriding delegateSubmit to perform validation. I have moved some of my validation logic into onSubmit which has remedied the situation. On Tue, Jul 7, 2009 at 9:01 PM, nino martinez waelnino.martinez.w...@gmail.com wrote: Hi Ned I know I have

Liferay InlineFrame

2009-07-16 Thread Michal Velecky
Hi, I'm trying to make InlineFrame in my portlet deployed in Liferay Portal. in page: add(new InlineFrame(myFrame, PageMap.forName(xys), MyFrame. class)); in markup: div iframe wicket:id=myFrame pYour browser does not support

Re: How to throw new PageExpiredException?

2009-07-16 Thread Ann Baert
Can anyone help me with this problem please? Thanks in advance, Ann. Ann Baert wrote: I have overridden the RequestCycle.onRuntimeException method: @Override public RequestCycle newRequestCycle(final Request request, final Response response) { return new WebRequestCycle(this,

Re: How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-16 Thread Petr Fejfar
I've made some changes on the trunk to allow AjaxLinkAction, and remove the setRenderBodyOnly so that you can basically modify the menu 'ajaxically'. [...] check out the yui-examples Hi Joshua, thank for your effort. I tried your improvements, but it stil does not work for me. It is possible

Re: How to throw new PageExpiredException?

2009-07-16 Thread Serkan Camurcuoglu
If all you want is to display a page expired page, maybe you could just use throw new RestartResponseException(PageExpiredErrorPage.class); in your page constructor. Ann Baert wrote: Can anyone help me with this problem please? Thanks in advance, Ann. Ann Baert wrote: I have

Re: How to throw new PageExpiredException?

2009-07-16 Thread Ann Baert
That's not how I want it. I have a custom PageExpiredErrorPage (and AccessDenied...), so he has to take those automaticly. getApplicationSettings().setPageExpiredErrorPage(CustomPageExpiredErrorPage.class); With your solution I have to repeat them everywhere, like I do now with setResponsePage().

Re: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2009-07-16 Thread freak182
Hello, Is there a patch/servlet to run cometd in glassfish? because im having trouble to run push-examples on glassfish as it will be used in production. Thanks a lot. Cheers. Rodolfo Hansen wrote: On Mon, Apr 20, 2009 at 6:26 AM, pmarrone paolo.marr...@gmail.com wrote: Hi Rodolfo,

Re: How to throw new PageExpiredException?

2009-07-16 Thread Linda van der Pal
A quote from Wicket in Action: = The three custom error pages can be set in the init method of your Application using the application settings. Here’s an example: @Override protected void init() { IApplicationSettings settings = getApplicationSettings();

Re: add html-attribute to a tab

2009-07-16 Thread ptrash
So, it is not possible? -- View this message in context: http://www.nabble.com/add-html-attribute-to-a-tab-tp24468087p24512963.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: How to throw new PageExpiredException?

2009-07-16 Thread Ann Baert
I do that already, see my previous post. But the PageExpiredException is wrapped into WicketRuntimeException, so that he doesn't come on those pages. Linda van der Pal wrote: A quote from Wicket in Action: = The three custom error pages can be set in the init method of your

Re: Accessing the rowItem from the populateItem of a column

2009-07-16 Thread Lorenzo Bolzani
2009/7/15 Iain Reddick iain.redd...@beatsystems.com: cellItem.getParent().getParent() will get the row component, but it's not a very clean solution. Hi, thanks for the replies. I'm using wicket 1.3.3 and this method was not yet present. I'm not upgrading due to some problems with ajax tests

Re: add html-attribute to a tab

2009-07-16 Thread Jonas
usually, you can attach an AttributeModifier to the component representing the tag, like new AttributeModifier(title, true, new Model(The Title Text)) I never tried it in a TabbedPanel, but its probably one of the Components generated by one of the newXXX methods on TabbedPanel where you should

Re: Help - Mounting a dynamic generated image

2009-07-16 Thread Hbiloo
Ooh, I forgot to say that I'm using these images to be displayed in a lightbox. This lightbox expects an image URL in it's href i.e images/myImage.png. Someone already has the same issue? Kind Regards, Hbiloo On Thu, Jul 16, 2009 at 12:29 AM, Hbiloo waarhei...@gmail.com wrote: Hi everybody,

Pageable FormComponent

2009-07-16 Thread Emanuele Gesuato
Hi there, I've got an extension of a FormComponent that basically show a list of data (an element for row) with three buttons for permitting the crud operation (new, modify and delete). This component can show only a list of static data (ArrayList) and it isn't a DataTable but now i would

How to Hidden/Disabled Wicket tree with implementation wicket security

2009-07-16 Thread Rizal Indra
Hi, I have created my welcome page with menu tree (http://wicketstuff.org/wicket13/nested/ ). I want to hide/disabled some item menu depend on user right principal. I have try put some tricks but not work :-) MyTree.java public class MyTree extends Tree { @Override     protected void

Re: How to throw new PageExpiredException?

2009-07-16 Thread Major Péter
Which wicket version are you using? With 1.4-rc7 this behaviour should be fixed. Peter 2009-07-16 11:13 keltezéssel, Ann Baert írta: I do that already, see my previous post. But the PageExpiredException is wrapped into WicketRuntimeException, so that he doesn't come on those pages. Linda

How to access user form data (simple question)

2009-07-16 Thread Jedadiah Ashford
Im new to Wicket and I have a simple problem. I have TWO list boxes. Using javascript I need to move some choices from the first box to the second box, which works fine, but how do I now see what the user has added to the second box via an ajax submit button. Here is the declaration of the

Re: How to access user form data (simple question)

2009-07-16 Thread Martin Makundi
Are you trying to reinvent the Palette component? http://wicketstuff.org/wicket13/compref?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.PalettePage ** Martin 2009/7/15 Jedadiah Ashford jedashf...@gmail.com: Im new to Wicket and I have a simple problem. I have TWO list boxes.

DatePicker

2009-07-16 Thread Martin Letendre
In the latest wicket javadoc I see that there is a DatePicker componenent based on yui. http://wicket.apache.org/docs/1.4/org/apache/wicket/extensions/yui/calendar/DatePicker.html Great ! I have these dependencies in my project dependency groupIdorg.apache.wicket/groupId

Re: DatePicker

2009-07-16 Thread Marat Radchenko
DatePicker is in wicket-datetime artifact. 2009/7/16 Martin Letendre letendre.mar...@gmail.com: In the latest wicket javadoc I see that there is a DatePicker componenent based on yui. http://wicket.apache.org/docs/1.4/org/apache/wicket/extensions/yui/calendar/DatePicker.html Great ! I

Re: Radio and Radio Group problems

2009-07-16 Thread Trojahn, Cassia
Always the last of the list is the selected. I had tried also this proposal .. and it does not work. Michael O'Cleirigh wrote: Hello, I don't think you need to track the selected (true/false) state your self. Let the radio group model do it automatically for you like: listLanguages.add(new

AutoCompleteTextField with initial focus not working

2009-07-16 Thread Marieke Vandamme
Hello, I have AutoCompleteTextField which has the focus when my page is loaded. When I just start typing (because the field has initial focus), then no list is shown. If I leave the field and then click in it again (loosing focus and then gaining it again), the list is shown. Can somebody

Re: Accessing the rowItem from the populateItem of a column

2009-07-16 Thread Iain Reddick
That should work fine in 1.3.3. I thought this was what you were looking for: public class SomeColumnClass extends AbstractColumn { public void populateItem( Item cellItem, String componentId, IModel rowModel ) { MarkupContainer rowItem = cellItem.getParent().getParent();

Re: Radio and Radio Group problems

2009-07-16 Thread Trojahn, Cassia
Trojahn, Cassia wrote: Always the last of the list is the selected. I had tried also this proposal .. and it does not work. Michael O'Cleirigh wrote: Hello, I don't think you need to track the selected (true/false) state your self. Let the radio group model do it automatically for you like:

Re: Pageable FormComponent

2009-07-16 Thread Jeremy Thomerson
Typically the pattern would be to use a repeating view of some sort (ListView, etc) and inside that repeater, add form components. A list is not a form component - in most cases. An input field is... etc... -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jul 16, 2009 at 5:36 AM,

Re: How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-16 Thread Joshua Lim
2009/7/16 Petr Fejfar petr.fej...@gmail.com thank for your effort. I tried your improvements, but it stil does not work for me. It is possible that I'm missing something, but some problems can be seen in your yui-example as well: After you click M2:L3 item to remove 1st item from menu: -

Re: How to Hidden/Disabled Wicket tree with implementation wicket security

2009-07-16 Thread Warren Bell
Try this: Warren public class SecureWebMarkupContainer extends WebMarkupContainer implements ISecureComponent { public SecureWebMarkupContainer(String id) { super(id); setSecurityCheck(new ComponentSecurityCheck(this)); } public SecureWebMarkupContainer(String

Re: FileUploads - keep them around for multiple requests...

2009-07-16 Thread Igor Vaynberg
i dont think there is a better way. i think storing the files in some tmp location is your best bet. -igor On Wed, Jul 15, 2009 at 11:01 PM, Ned Collyerned.coll...@gmail.com wrote: I'm building a wizard.  It has 3 steps.  Persistence occurs for all my models after the completion of the 3rd

Re: Help - Mounting a dynamic generated image

2009-07-16 Thread Igor Vaynberg
i believe there is a pickwick project somewhere in wicketstuff svn that is an image gallery. you can have a look there for inspiration. -igor On Thu, Jul 16, 2009 at 2:55 AM, Hbiloowaarhei...@gmail.com wrote: Ooh, I forgot to say that I'm using these images to be displayed in a lightbox. This

Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Anton Veretennikov
Hello, wicket users and developers, This is a problem I can't work out myself, I need your help. In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior works as expected. But in production I try to hide application name (let's say, AppNamePay-1.0-SNAPSHOT) from URL using

Re: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2009-07-16 Thread Rodolfo Hansen
No, not yet. I haven't had a chance to write it, nor test it out. Check bellow in the thread for some guidance, and if you want write me directly at kryptt at gmail.com to see if we can start a patch with it. On Thu, Jul 16, 2009 at 5:06 AM, freak182 eman.noll...@gmail.com wrote: Hello,

Re: problem with Wizard wizard = (Wizard) ctor.newInstance(new String[]{wizard})

2009-07-16 Thread Steve Olara
Hello All,   I am having a problem with wizard.   I managed to run the orignal examples, I need to customise it a little and make the Wizard step class accept a object as a second aurgment of its constructor.   The problem am having is how to call it using   Wizard wizard = (Wizard)

Re: problem with Wizard wizard = (Wizard) ctor.newInstance(new String[]{wizard})

2009-07-16 Thread Steve Olara
Hello All,   Sorry sent before finishing the mail   I am having a problem with wizard.   I managed to run the orignal examples, I need to customise it a little and make the Wizard step class accept a object as a second aurgment of its constructor.   The problem am having is how to call it using  

YUI integration (and is BSD License compatible with Apache license)?

2009-07-16 Thread Ralf Eichinger
as I am looking for good wicket widgets I found the datatable and layouting widgets from YUI very pleasant. look this: http://developer.yahoo.com/yui/examples/layout/adv_layout_source.html !!! there is a yui-project at wicketstuff, but hardly to find, which repository path is the right one for

Re: YUI integration (and is BSD License compatible with Apache license)?

2009-07-16 Thread Igor Vaynberg
you like yui, but other people like jquery, yet others like ext, and so on and so forth. so we would rather make it easy to integrate with all of these in the core and let others create actual implementations. -igor On Thu, Jul 16, 2009 at 8:58 AM, Ralf Eichingerralf.eichin...@googlemail.com

Re: YUI integration (and is BSD License compatible with Apache license)?

2009-07-16 Thread Jeremy Thomerson
there is a yui-project at wicketstuff, but hardly to find, which repository path is the right one for trunk... oh myabe it is this: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/yui-parent/ am I right? Um, yeah - trunk is the one with trunk in the

Re: AutoCompleteTextField with initial focus not working

2009-07-16 Thread Igor Vaynberg
how are you setting the initial focus? -igor On Thu, Jul 16, 2009 at 6:45 AM, Marieke Vandammemarieke.vanda...@tvh.be wrote: Hello, I have AutoCompleteTextField which has the focus when my page is loaded. When I just start typing (because the field has initial focus), then no list is shown.

Re: Radio and Radio Group problems

2009-07-16 Thread Igor Vaynberg
where is your Form in your example? -igor On Thu, Jul 16, 2009 at 7:04 AM, Trojahn, Cassiacassia.troj...@xrce.xerox.com wrote: Trojahn, Cassia wrote: Always the last of the list is the selected. I had tried also this proposal .. and it does not work. Michael O'Cleirigh wrote: Hello, I

Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Igor Vaynberg
just rename your war to something else before deploying it. -igor On Thu, Jul 16, 2009 at 8:25 AM, Anton Veretennikovanton.veretenni...@gmail.com wrote: Hello, wicket users and developers, This is a problem I can't work out myself, I need your help. In a local environment (direct calls to

Get Wicket Variable Inside Applet

2009-07-16 Thread Joshua Martin
How can I access a variable in the Wicket Application class from inside my Java Applet on a Wicket page? -- _ Joshua S. Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Joshua Martin
Rephrase that... How can I access a non-String variable in the Wicket Application class from an Applet? On Thu, Jul 16, 2009 at 1:37 PM, Joshua Martinjosmar52...@gmail.com wrote: How can I access a variable in the Wicket Application class from inside my Java Applet on a Wicket page? --

Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Igor Vaynberg
you have to wire it as a param tag to the applet -igor On Thu, Jul 16, 2009 at 10:39 AM, Joshua Martinjosmar52...@gmail.com wrote: Rephrase that... How can I access a non-String variable in the Wicket Application class from an Applet? On Thu, Jul 16, 2009 at 1:37 PM, Joshua

Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Joshua Martin
Yeah, I know how to pass a String, but I need to somehow pass an object... add(new WebMarkupContainer(appletId).add(new SimpleAttributeModifier(value, yourValue))); On Thu, Jul 16, 2009 at 1:50 PM, Nicolas Melendeznmelen...@getsense.com.ar wrote: Remember the applet is in client-side,

Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Igor Vaynberg
then you have to marshall the object. you can either use something like xstream or simple to create an xml representation and send that over. or, more directly, you can serialize the object using java's serialization, base64 encode it, and pass that. -igor On Thu, Jul 16, 2009 at 10:53 AM,

Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Joshua Martin
Actually, it may not be necessary to pass the object... I'm creating an Applet that will enable remote desktop within my Wicket application (it's a new Systems Management application). The application uses JXTA for networking so that NAT and firewalls will be much less of a problem. Normally,

Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Nicolas Melendez
remember, you can only do TCP/IP request to the server from the applet came from, if you do to another IP, you will have problem with the sandbox. if you want to do the request to another IP, the applet should be sing, and the user should accept a molest Dialog. On Thu, Jul 16, 2009 at 8:03 PM,

WicketStuff Developers - please read

2009-07-16 Thread Jeremy Thomerson
I'm trying to build wicketstuff-core 1.4-rc7 to match the Wicket release. I have spent hours tracking down pom issues where you either: 1 - declared a specific version of Wicket to use. Don't do this - it's declared in the parent pom and it should always match Wicket's trunk (or in this case a

Re: How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-16 Thread Petr Fejfar
On Thu, Jul 16, 2009 at 4:25 PM, Joshua Limlim.j...@gmail.com wrote: Did you check out yui as well? This marks disappears should be redrawn in the new code. Yes. I tested it on revision 4808 from July 15. What browser are you using though I 've only tested on FF. I see. While learning

Update separate current select panel from AjaxSelfUpdatingTimerBehavior of inmethod DataGrid

2009-07-16 Thread Steve Tarlton
Stumbling on this one: I am using an AjaxSelfUpdatingTimerBehavior added to an inmethod DataGrid to have it update its datasource from a database every 15 seconds. This worked well but then I also want to update a corresponding panel that contains data from the currently selected row of the

Re: Update separate current select panel from AjaxSelfUpdatingTimerBehavior of inmethod DataGrid

2009-07-16 Thread satar
Sorry, I should have explored deeper into the user list on this one. It was basically already answered before in thread: http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-and-Panels-td24301204.html#a24301204 I simply changed the scope of my timer to be the whole page beings that is all it has

Re: How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-16 Thread Joshua Lim
Hi Petr, The table would be interesting, could you email it to me ? thanks I'll take a look at the rest of the yuimenu when I reach that point. :) Joshua 2009/7/17 Petr Fejfar petr.fej...@gmail.com On Thu, Jul 16, 2009 at 4:25 PM, Joshua Limlim.j...@gmail.com wrote: Did you check out yui as

Re: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-16 Thread rolandpeng
hi wicket poles, Does anyone know who still works around the maintenance of the wicket-tinymce in wicketstuff? I'd like to pass my problem to the group. thank you. Roland. rolandpeng wrote: thanks for your teach,igor. I've find the way to build the quickstart with tinymce included.

Re: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-16 Thread Dane Laverty
When you called us wicket poles, I had just assumed that you were referring to the stumps that hold up the bails on a cricket wicket. However, I'm glad to see that we're also pals and not just poles ;) On Thu, Jul 16, 2009 at 6:42 PM, rolandpeng rolandp...@cht.com.tw wrote: hi wicket poles,

Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Anton Veretennikov
Thank you, Igor, for your suggestion. I need full hiding of app name. Renaming still creates additional path in url like http://sitename.com/AppName/ May be there exists other way or my URL Rewriting is not correct: VirtualHost *:80 ServerName www.sitename.com ServerAlias sitename.com

Re: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-16 Thread rolandpeng
oh,sorry it's my typo. I've already corrected the post. no defense,pals. ^^ insom wrote: When you called us wicket poles, I had just assumed that you were referring to the stumps that hold up the bails on a cricket wicket. However, I'm glad to see that we're also pals and not just poles

Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Igor Vaynberg
rename it to ROOT.war -igor On Thu, Jul 16, 2009 at 7:00 PM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Thank you, Igor, for your suggestion. I need full hiding of app name. Renaming still creates additional path in url like http://sitename.com/AppName/ May be there exists

Re: How to Hidden/Disabled Wicket tree with implementation wicket security

2009-07-16 Thread Rizal Indra
Thanks for quick reply Warren, exactly my code SecureWebMarkupContainer.java is same as with your code. But its still not working. I am newbie in java wicket, so i need more example/hint for understanding its. I am sure that missing something but i dont know how to solve it. Can anyone help

Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Anton Veretennikov
Igor, I have several applications working on one server. They can't all be ROOT.war. -- Tony On Fri, Jul 17, 2009 at 11:40 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote: rename it to ROOT.war -igor On Thu, Jul 16, 2009 at 7:00 PM, Anton Veretennikov anton.veretenni...@gmail.com wrote:

Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Igor Vaynberg
well, thats how things work when you have multiple applications, they each need their own context. -igor On Thu, Jul 16, 2009 at 10:29 PM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Igor, I have several applications working on one server. They can't all be ROOT.war. -- Tony