Re: Callbacks triggered by keyboard...

2007-08-07 Thread Erik Underbjerg

Actually, I have been wondering about something like this.

I have a gridView, that I would like to page through using, say, the  
left and right keyboard arrows. However, I can't seem to figure out  
how to hook up the javascript that captures the keyboard events to  
wicket, and make it flip through pages.


Any pointers?

/Erik

On 07/08/2007, at 5.46, Igor Vaynberg wrote:


why would you want a serverside callback for this? you just need a
javascript handler.

-igor


On 8/6/07, Patrick Angeles [EMAIL PROTECTED] wrote:



Is this possible in Wicket, say for example, as a way to scroll  
down a

listing, or go left and right on a menu?

Thanks in advance...
--
View this message in context:
http://www.nabble.com/Callbacks-triggered-by-keyboard...- 
tf4227815.html#a12027815

Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: BBcode component?

2007-08-07 Thread Nino Saturnino Martinez Vazquez Wael

resend, since I wasnt subscribed to the list when mailing this.

Nino Saturnino Martinez Vazquez Wael wrote:
Hi I was wondering if any one had done a bbcode component for wicket 
that they would share?


Im needing something that will do the following:

A component where you can enter text and format it via BBcode.
A component that displays a text string that has been formatted with 
BBcode.


Other wise I will be creating a component, would be glad to have some 
help if anyone are interested. Where should such a component be 
placed, extensions or wicket stuff?



Info about bbcode :

http://en.wikipedia.org/wiki/BBCode


regards Nino



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Showing an alert

2007-08-07 Thread Federico Fanton
On Thu, 2 Aug 2007 18:25:28 +0200
Federico Fanton [EMAIL PROTECTED] wrote:

  I'm sorry, I'm looking for a way to show an alert dialog when a condition 
  is met.. For example, the user fills in a search form, submits it and if 
  there's no data matching the query, a no data found! should pop up.. I'd 
  like to use something like the alert JavaScript function, but I'm a bit 
  confused about where to put it.. ^^;

 class alert extends abstractbehavior {
  boolean istemporary() { return false; }
  void renderhead(iheaderresponse r) {
 renderonloadjavascript(alert('error!');); }
 }
 
 form searchform=new form(...) {
   onerror() { add(new alert(); }
 }

I tried as you suggested, but I'm facing a little problem.. If I'm not 
mistaken, onError is called on form validation, so I added my check for no 
data in a FormValidator.. My problem is that this check needs the form 
CompoundPropertyModel to be up to date with the form contents, but form 
validation is called *before* the model gets updated.. Am I going the wrong 
way? :/
Many thanks for your time!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



{wicket 1.3 Beta 2} Adding panel via ajax...

2007-08-07 Thread Nino Saturnino Martinez Vazquez Wael

Hi

I have a panel I want to replace by another panel via ajax. However when 
trying to replace the panel I get this message:


WicketMessage: This component is not (yet) coupled to a page. It has to 
be able to find the page it is supposed to operate in before you can 
call this method (Component#getMarkupId)


What should I do to avoid this?

regards Nino



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



BBcode component?

2007-08-07 Thread Nino Saturnino Martinez Vazquez Wael
Hi I was wondering if any one had done a bbcode component for wicket 
that they would share?


Im needing something that will do the following:

A component where you can enter text and format it via BBcode.
A component that displays a text string that has been formatted with BBcode.

Other wise I will be creating a component, would be glad to have some 
help if anyone are interested. Where should such a component be placed, 
extensions or wicket stuff?



Info about bbcode :

http://en.wikipedia.org/wiki/BBCode


regards Nino

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tonight: London Wicket - Code Jam Lightning Talks (6:30pm - 8:30pm)

2007-08-07 Thread Al Maw

Hi folks,

Just a quick reminder that it's the London Wicket Event tonight.

I'm going to give a couple of really short talks on the following topics:

1) Setting up a new Wicket 1.3 project using a Maven 2 archetype.
   (5 mins).

2) Building a generic bean editor (10 to 15 mins).

We'll spend the rest of the time looking at code, fixing any outstanding 
Wicket bugs that are biting you, and generally code jamming. There will 
be plenty of opportunity to network and ask questions.


Zoomf.com are kindly hosting the event again, and we're meet from 6:30pm 
at their offices. See londonwicket.org for details and sign-up.


We'll be done by about 8:30pm, at which point we may well head for a 
local drinking establishment. ;)



I'm going to do a pizza order to arrive at 7pm. PLEASE E-MAIL ME before 
5pm if you want in, and tell me if you're a veggie. ;-)



Hope to see some of you there!

Best regards,

Al

--
Alastair Maw
Wicket-biased blog at http://herebebeasties.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Showing an alert

2007-08-07 Thread Federico Fanton
On Tue, 7 Aug 2007 10:57:03 +0200
Federico Fanton [EMAIL PROTECTED] wrote:

 I tried as you suggested, but I'm facing a little problem..
 If I'm not mistaken, onError is called on form validation,
 so I added my check for no data in a FormValidator.. My
 problem is that this check needs the form CompoundPropertyModel
 to be up to date with the form contents, but form validation is
 called *before* the model gets updated.. Am I going the wrong way? :/

I solved by overriding my button's onSubmit with something like

Form f=getForm();
f.process();
// snipped check for data size
if(showAlert){
   f.error(no data!);
   f.onError();
}

How does it look like? ^^;

Many thanks again for your help!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: {wicket 1.3 Beta 2} Adding panel via ajax...

2007-08-07 Thread Nino Saturnino Martinez Vazquez Wael

Ok, I'll try to explain myself a little better.

Im using the tabs from extensions, tabs require that what you work with 
are panels (otherwise I would have done this with pages).


So some of my tabs have a certain flow. Inorder to create that flow I 
have to replace panels along the way, for example start with the search 
panel, then replace the search panel with the edit panel.


However wicket complains that you cant add the panel via ajax with being 
attached to a page, and since im replaceing not adding this cant be done?


Am I using a wrong approach on this?

regards Nino

Nino Saturnino Martinez Vazquez Wael wrote:

Hi

I have a panel I want to replace by another panel via ajax. However 
when trying to replace the panel I get this message:


WicketMessage: This component is not (yet) coupled to a page. It has 
to be able to find the page it is supposed to operate in before you 
can call this method (Component#getMarkupId)


What should I do to avoid this?

regards Nino



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to use form method=get?

2007-08-07 Thread Gohan

Hi, 

I have a simple HTML file that contains: 
form wicket:id=form method=get
...
/form

However, wicket seems to change the form method from get to post. Is there a
way to stop wicket from changing the method to post? I need to use get
because the application should work from a mobile phone and it seems like
many browsers doesn't support post. 

Everything works if I manually takes a copy of the generated page and change
the method back from post to get. But this is not really an option if you
have many pages.

Thanks


-- 
View this message in context: 
http://www.nabble.com/How-to-use-form-method%3D%22get%22--tf4229581.html#a12032581
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: {wicket 1.3 Beta 2} Adding panel via ajax...

2007-08-07 Thread Matej Knopp
The error looks like you are trying to render a component that is not
attached to a page. You can add/remove components as much as you want,
but when it comes to render, all components have to be attached to the
page.

-Matej

On 8/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote:
 Ok, I'll try to explain myself a little better.

 Im using the tabs from extensions, tabs require that what you work with
 are panels (otherwise I would have done this with pages).

 So some of my tabs have a certain flow. Inorder to create that flow I
 have to replace panels along the way, for example start with the search
 panel, then replace the search panel with the edit panel.

 However wicket complains that you cant add the panel via ajax with being
 attached to a page, and since im replaceing not adding this cant be done?

 Am I using a wrong approach on this?

 regards Nino

 Nino Saturnino Martinez Vazquez Wael wrote:
  Hi
 
  I have a panel I want to replace by another panel via ajax. However
  when trying to replace the panel I get this message:
 
  WicketMessage: This component is not (yet) coupled to a page. It has
  to be able to find the page it is supposed to operate in before you
  can call this method (Component#getMarkupId)
 
  What should I do to avoid this?
 
  regards Nino
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: {wicket 1.3 Beta 2} Adding panel via ajax...

2007-08-07 Thread Nino Saturnino Martinez Vazquez Wael
This is somewhat working as wanted, but feels wrong, since I have to add 
the next page panel inorder to be able to show it later on:


   public PhoneSearchPanel(String id, final IPhoneManipulationPanel 
gotoPage) {

   super(id);
   setOutputMarkupId(true);
   Form form = new Form(form);
   final Panel panel = this;
   add(form);
   AutoCompleteTextField phoneName = new AutoCompleteTextField(
   phoneName, selectedPhone) {
   @Override
   protected Iterator getChoices(String input) {

   return 
SDUTApplication.getService().findPhonesByFilter(input,
   null, null, null, null, null, null, 
null).iterator();

   }
   };
   form.add(phoneName);

   form.add(new AjaxButton(submit, form) {

   @Override
   protected void onSubmit(AjaxRequestTarget target, Form form) {
   gotoPage.setPhone(selectedPhone);
   ((Component) gotoPage).setVisible(true);
   panel.setVisible(false);
   target.addComponent(panel);
   target.addComponent((Component) gotoPage, 
panel.getMarkupId());

   }

   });
   ((Component) gotoPage).setVisible(false);
   add(((Component) gotoPage));

   }
}


Matej Knopp wrote:

The error looks like you are trying to render a component that is not
attached to a page. You can add/remove components as much as you want,
but when it comes to render, all components have to be attached to the
page.

-Matej

On 8/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote:
  

Ok, I'll try to explain myself a little better.

Im using the tabs from extensions, tabs require that what you work with
are panels (otherwise I would have done this with pages).

So some of my tabs have a certain flow. Inorder to create that flow I
have to replace panels along the way, for example start with the search
panel, then replace the search panel with the edit panel.

However wicket complains that you cant add the panel via ajax with being
attached to a page, and since im replaceing not adding this cant be done?

Am I using a wrong approach on this?

regards Nino

Nino Saturnino Martinez Vazquez Wael wrote:


Hi

I have a panel I want to replace by another panel via ajax. However
when trying to replace the panel I get this message:

WicketMessage: This component is not (yet) coupled to a page. It has
to be able to find the page it is supposed to operate in before you
can call this method (Component#getMarkupId)

What should I do to avoid this?

regards Nino



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Radio buttons in an AjaxFallbackDefaultDataTable

2007-08-07 Thread Evgeniy Platonov

Hi All,

Maybe the question was already there, but I wasn't able to find it. Please
redirect me if it so.

And the question is: how can I create a column of radio buttons (which all
are in a radio group) using AjaxFallbackDefaultDataTable. Is it posible at
all?

Thanks.

Evgeniy.
-- 
View this message in context: 
http://www.nabble.com/Radio-buttons-in-an-AjaxFallbackDefaultDataTable-tf4229757.html#a12033167
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket-event.js returning unreadable

2007-08-07 Thread Joel Hill
 This way you end up not using compression at all? I would be interested in a
 solution which would help me to use the compression without any problems. 

Now I'm just using wicket's default compression (which I didn't know existed 
before this problem arose).

 Maybe someone from the wicket core team would help us to understand the
 difference between using IHeaderContributor and adding directly
 JavascriptReference as a behavior? 

Have you taken a look at the html source of the rendered page in both cases?  
That might give an indication of how wicket handles these differently.

Are you also using a fine Oracle product for your webserver?  I think they 
might be right that this could be an Oracle-caused issue.  Wouldn't be the 
first time I've had Oracle mess me up with their non-open source, blackbox 
implementation.  Oracle interferred with my first stab at Jaas authentication, 
so I had to completely circumvent it; and when I was trying to include a jsp 
menu on a wicket page, it worked great until I upgraded to a newer version of 
oc4j (from 10.1.3.1.1 to 10.1.3.2 I believe * should anything past the second 
minor version number even be a public release??), and I ran into a conflict 
between Oracle and wicket writing to the output stream.  I wrote that one off 
as unsolvable.  Unfortunately, I have no say in what webserver we use, so I 
have to deal with it.

Like I said before, we're trying to do slightly different things.  You're 
trying to dynamically include an external js file.  I just wanted to write 
dynamic js code which ran onload.  But the wicket implementation of that 
includes a js file from the wicket jar.  I'm curious, is the js file you're 
trying to call inside a jar or just in a directory on the webserver?  Maybe 
this issue is related to including a jarred js file.  I don't know, at times 
this problem has behaved so erratically for me, it's hard to get a grip on.  
That's why I'm glad I figured out a workaround.

Joel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to use form method=get?

2007-08-07 Thread Gohan

I've tried extending Form and adding tag.put(method, get) in
onComponentTag(..), but this doesn't work either. The page gets rendered as
with form method=get but submits won't work. Is this possible achieve? 
-- 
View this message in context: 
http://www.nabble.com/How-to-use-form-method%3D%22get%22--tf4229581.html#a12035690
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to use form method=get?

2007-08-07 Thread Martijn Dashorst
Have you tried adding it *after* the super.onComponentTag() ?

Martijn

On 8/7/07, Gohan [EMAIL PROTECTED] wrote:

 I've tried extending Form and adding tag.put(method, get) in
 onComponentTag(..), but this doesn't work either. The page gets rendered as
 with form method=get but submits won't work. Is this possible achieve?
 --
 View this message in context: 
 http://www.nabble.com/How-to-use-form-method%3D%22get%22--tf4229581.html#a12035690
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Apache Wicket 1.3.0-beta2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WicketTester vs Component.error()

2007-08-07 Thread Igor Vaynberg
in 1.2 you cannot call error/info/etc from component's constructor because
you havent added that component to the page yet. in 1.3 it just works.

-igor


On 8/7/07, Gabor Szokoli [EMAIL PROTECTED] wrote:

 Hi,

 I'm using wicket 1.2, and use the WicketTester startPage(...) method
 in a unit test.
 (In fact there's nothing else in it, I just want to test if the markup
 matches the component hierarchy.)
 Problem is, a component on the page uses its error(...) method to
 display its dissatisfaction with the mock data in a feedbackpanel,
 which is perfectly normal operation.
 But that causes an exception:

 java.lang.IllegalStateException: No Page found for component
 [MarkupContainer [Component id = signInForm, page = No Page, path =
 signInForm.LoginPanel$SignInForm]]

 Is this expected? Did I do something wrong?

 Any advice is appreciated.
 Upgrading to wicket 1.3 is planned, but I'd rather have tests even before
 that.


 Thank you for your attention and the great framework!

 Gabor

 Ps: Here's the full output:


 SEVERE: tester: unexpected
 wicket.WicketRuntimeException: tester: unexpected
 at wicket.util.tester.WicketTester.convertoUnexpect(
 WicketTester.java:381)
 at wicket.util.tester.WicketTester.access$200(WicketTester.java
 :178)
 at wicket.util.tester.WicketTester$3.getTestPanel(
 WicketTester.java:365)
 at wicket.util.tester.DummyPanelPage.init(DummyPanelPage.java
 :40)
 at wicket.util.tester.WicketTester$2.getTestPage(WicketTester.java
 :336)
 at wicket.util.tester.DummyHomePage$TestLink.onClick(
 DummyHomePage.java:84)
 at wicket.markup.html.link.Link.onLinkClicked(Link.java:254)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at wicket.RequestListenerInterface.invoke(
 RequestListenerInterface.java:187)
 at
 wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents
 (ListenerInterfaceRequestTarget.java:74)
 at
 wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
 DefaultEventProcessorStrategy.java:65)
 at
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents
 (AbstractCompoundRequestCycleProcessor.java:57)
 at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java
 :896)
 at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
 :929)
 at wicket.RequestCycle.step(RequestCycle.java:1010)
 at wicket.RequestCycle.steps(RequestCycle.java:1084)
 at wicket.RequestCycle.request(RequestCycle.java:454)
 at wicket.protocol.http.MockWebApplication.processRequestCycle(
 MockWebApplication.java:318)
 at wicket.protocol.http.MockWebApplication.processRequestCycle(
 MockWebApplication.java:307)
 at wicket.util.tester.WicketTester.newRequestToComponent(
 WicketTester.java:248)
 at wicket.util.tester.WicketTester.startPage(WicketTester.java
 :235)
 at wicket.util.tester.WicketTester.startPanel(WicketTester.java
 :330)
 at com.deverto.centrex.panels.LoginPanelTest.testForm(
 LoginPanelTest.java:26)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at junit.framework.TestCase.runTest(TestCase.java:164)
 at junit.framework.TestCase.runBare(TestCase.java:130)
 at junit.framework.TestResult$1.protect(TestResult.java:110)
 at junit.framework.TestResult.runProtected(TestResult.java:128)
 at junit.framework.TestResult.run(TestResult.java:113)
 at junit.framework.TestCase.run(TestCase.java:120)
 at junit.framework.TestSuite.runTest(TestSuite.java:228)
 at junit.framework.TestSuite.run(TestSuite.java:223)
 at org.junit.internal.runners.OldTestClassRunner.run(
 OldTestClassRunner.java:35)
 at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(
 JUnit4TestSet.java:62)
 at
 org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
 AbstractDirectoryTestSuite.java:138)
 at
 org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
 AbstractDirectoryTestSuite.java:125)
 at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 

Re: How to use form method=get?

2007-08-07 Thread Eelco Hillenius
 I've tried extending Form and adding tag.put(method, get) in
 onComponentTag(..), but this doesn't work either. The page gets rendered as
 with form method=get but submits won't work. Is this possible achieve?

It looks like you can override method 'getMethod' in your form and let
it return get.

I actually think it is a bug that Wicket doesn't try to determine the
current value first. You mind opening up a JIRA issue for it?

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ListView + AjaxEditableLabel + move down and move up

2007-08-07 Thread anita nichols
Ok. Actually my code already have ajaxrequest target, how do I use this
http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListViewcode?

Also anyone know where the wicket extension and javadoc go after they move
their web site to apache?

Anita


On 8/3/07, Gerolf Seitz [EMAIL PROTECTED] wrote:

 maybe this is something for you:
 at

 http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListView

 what you could also do is the following:
 + add two ajaxbuttons up and down (or images)
 + change the position of the row-data in the backing list in the onSubmit
 method of the ajaxbuttons
 + add the parent container of the listview to the ajaxrequesttarget

 i haven't tried the approach myself, but maybe it's something to get you
 started.

 hth,
   gerolf

 On 8/4/07, anita nichols [EMAIL PROTECTED] wrote:
 
  I have a list view (to do list sample) with AjaxEditableLabel.
  But I also would like to be able to move the items on the list up or
 down.
  Is that possible?
 
  Thanks
 



Re: NullPointerException when clicking on an expired wizard button

2007-08-07 Thread Eelco Hillenius
On 8/6/07, David Leangen [EMAIL PROTECTED] wrote:
   After completing a wizard, clicking the browser's back button, then
   clicking the previous button of the wizard, I get the error below.

  Looks like a bug. Are you using 1.2.6?

 Yes.

 Unfortunately, I'm still stuck on 1.2.6+ for the foreseeable future...

Could you open up a JIRA issue for it? Can you reproduce it using
wicket-examples?

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: {wicket 1.3 Beta 2} Adding panel via ajax...

2007-08-07 Thread Eelco Hillenius
On 8/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote:
 Ok, I'll try to explain myself a little better.

 Im using the tabs from extensions, tabs require that what you work with
 are panels (otherwise I would have done this with pages).

 So some of my tabs have a certain flow. Inorder to create that flow I
 have to replace panels along the way, for example start with the search
 panel, then replace the search panel with the edit panel.

 However wicket complains that you cant add the panel via ajax with being
 attached to a page, and since im replaceing not adding this cant be done?

 Am I using a wrong approach on this?

I'm not sure what goes wrong. I'm doing component replacements via
Ajax all the time, without any wizardy needed. Can you give us a code
fragment of what you were doing earlier?

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: BBcode component?

2007-08-07 Thread Eelco Hillenius
On 8/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote:
 Hi I was wondering if any one had done a bbcode component for wicket
 that they would share?

Not that I know of. But I would be surprised if no-one every did this
before with Wicket :)

 Im needing something that will do the following:

 A component where you can enter text and format it via BBcode.
 A component that displays a text string that has been formatted with BBcode.

 Other wise I will be creating a component, would be glad to have some
 help if anyone are interested. Where should such a component be placed,
 extensions or wicket stuff?

A good initial place would be wicket-stuff. If it is really good, and
licenses of any dependencies are compatible we can consider putting it
into wicket-extensions later if you wish.

Looking forward to your contribution!

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to use form method=get?

2007-08-07 Thread Gohan

Yes, that's exactly what I did. And unfortunately it doesn't seem to work.


Martijn Dashorst wrote:
 
 Have you tried adding it *after* the super.onComponentTag() ?
 
 Martijn
 
 On 8/7/07, Gohan [EMAIL PROTECTED] wrote:

 I've tried extending Form and adding tag.put(method, get) in
 onComponentTag(..), but this doesn't work either. The page gets rendered
 as
 with form method=get but submits won't work. Is this possible achieve?
 --
 View this message in context:
 http://www.nabble.com/How-to-use-form-method%3D%22get%22--tf4229581.html#a12035690
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 Wicket joins the Apache Software Foundation as Apache Wicket
 Apache Wicket 1.3.0-beta2 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-form-method%3D%22get%22--tf4229581.html#a12040938
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to use form method=get?

2007-08-07 Thread Gohan

Btw I'm using wicket 1.2.6.


Gohan wrote:
 
 Yes, that's exactly what I did. And unfortunately it doesn't seem to work.
 
 
 Martijn Dashorst wrote:
 
 Have you tried adding it *after* the super.onComponentTag() ?
 
 Martijn
 
 On 8/7/07, Gohan [EMAIL PROTECTED] wrote:

 I've tried extending Form and adding tag.put(method, get) in
 onComponentTag(..), but this doesn't work either. The page gets rendered
 as
 with form method=get but submits won't work. Is this possible achieve?
 --
 View this message in context:
 http://www.nabble.com/How-to-use-form-method%3D%22get%22--tf4229581.html#a12035690
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 Wicket joins the Apache Software Foundation as Apache Wicket
 Apache Wicket 1.3.0-beta2 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-form-method%3D%22get%22--tf4229581.html#a12040953
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to use form method=get?

2007-08-07 Thread Gohan

I'll open a jira issue tomorrow morning when I have a bit more time.

Do you have a clue what's might be causing the behavior? Perhaps I can work
my way around it somehow (like creating my own wicket version). I'd love for
this to work, otherwise we may be forced to switch to another framework.

Thanks


Eelco Hillenius wrote:
 
 I've tried extending Form and adding tag.put(method, get) in
 onComponentTag(..), but this doesn't work either. The page gets rendered
 as
 with form method=get but submits won't work. Is this possible achieve?
 
 It looks like you can override method 'getMethod' in your form and let
 it return get.
 
 I actually think it is a bug that Wicket doesn't try to determine the
 current value first. You mind opening up a JIRA issue for it?
 
 Eelco
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-form-method%3D%22get%22--tf4229581.html#a12041089
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help script.aculo.us wicket

2007-08-07 Thread anita nichols
I download the jar, but how do I use script.aculo.us on wicket?

Thanks,
Anita


Re: resource reference vs resource

2007-08-07 Thread Kent Tong
Matej Knopp matej.knopp at gmail.com writes:

 basically, there are two kinds of resources in wicket. One is
 application-scope resources, that don't need the context of a page
 (javascriptps, css...) and the other is component resources, which
 kind of belong to a component - so they have access to component,
 page, etc (chart generation).

Thanks for the informative reply. So Resource Reference is a registration
and lookup mechanism for global and static resources while Resource is 
a resource for a certain component and could be dynamic.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: resource reference vs resource

2007-08-07 Thread Matej Knopp
Yeah, ResourceReference is like global resource factory. That is for
resources that don't belong to any component/page (they can't touch
any component instance while they are served).

-Matej

On 8/8/07, Kent Tong [EMAIL PROTECTED] wrote:
 Matej Knopp matej.knopp at gmail.com writes:

  basically, there are two kinds of resources in wicket. One is
  application-scope resources, that don't need the context of a page
  (javascriptps, css...) and the other is component resources, which
  kind of belong to a component - so they have access to component,
  page, etc (chart generation).

 Thanks for the informative reply. So Resource Reference is a registration
 and lookup mechanism for global and static resources while Resource is
 a resource for a certain component and could be dynamic.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]